vendor: 84,380 bytes, lines 1-5
1/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ 2!function(a,b){"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){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.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||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},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?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;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;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b="length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=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*new 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=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.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,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$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("div");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=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);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 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 pa(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:!1},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=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),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){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.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===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(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,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):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(U,"='$1']"),!(!c.matchesSelector||!p||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&&D.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.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:X,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(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===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 X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.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(ca,da).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("(^|"+L+")"+a+"("+L+"|$)"))&&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(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},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;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/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=J(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(R,"$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(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).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:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!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 Z.test(a.nodeName)},input:function(a){return Y.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:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?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 qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,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=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[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 ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(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 ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(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?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(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}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};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=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0: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){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;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};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+K.uid++}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){ 3return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.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=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.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 L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.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=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),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),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==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,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(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=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ba=/<([\w:]+)/,ca=/<|&#?\w+;/,da=/<(?:script|style|link)/i,ea=/checked\s*(?:[^=]|=\s*.checked.)/i,fa=/^$|\/(?:java|ecma)script/i,ga=/^true\/(.*)/,ha=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ia={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,"",""]};ia.optgroup=ia.option,ia.tbody=ia.tfoot=ia.colgroup=ia.caption=ia.thead,ia.th=ia.td;function ja(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function ka(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function la(a){var b=ga.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function ma(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function na(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function oa(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pa(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=oa(h),f=oa(a),d=0,e=f.length;e>d;d++)pa(f[d],g[d]);if(b)if(c)for(f=f||oa(a),g=g||oa(h),d=0,e=f.length;e>d;d++)na(f[d],g[d]);else na(a,h);return g=oa(h,"script"),g.length>0&&ma(g,!i&&oa(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(ca.test(e)){f=f||k.appendChild(b.createElement("div")),g=(ba.exec(e)||["",""])[1].toLowerCase(),h=ia[g]||ia._default,f.innerHTML=h[1]+e.replace(aa,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=oa(k.appendChild(e),"script"),i&&ma(f),c)){j=0;while(e=f[j++])fa.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.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 this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ja(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ja(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(oa(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&ma(oa(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(oa(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(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&&!da.test(a)&&!ia[(ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(aa,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(oa(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(oa(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&ea.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(oa(c,"script"),ka),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,oa(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,la),j=0;g>j;j++)h=f[j],fa.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(ha,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qa,ra={};function sa(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function ta(a){var b=l,c=ra[a];return c||(c=sa(a,b),"none"!==c&&c||(qa=(qa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qa[0].contentDocument,b.write(),b.close(),c=sa(a,b),qa.detach()),ra[a]=c),c}var ua=/^margin/,va=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wa=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};function xa(a,b,c){var d,e,f,g,h=a.style;return c=c||wa(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),va.test(g)&&ua.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 ya(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),f.removeChild(c),b}})}}(),n.swap=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};var za=/^(none|table(?!-c[ea]).+)/,Aa=new RegExp("^("+Q+")(.*)$","i"),Ba=new RegExp("^([+-])=("+Q+")","i"),Ca={position:"absolute",visibility:"hidden",display:"block"},Da={letterSpacing:"0",fontWeight:"400"},Ea=["Webkit","O","Moz","ms"];function Fa(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Ea.length;while(e--)if(b=Ea[e]+c,b in a)return b;return d}function Ga(a,b,c){var d=Aa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Ha(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ia(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wa(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xa(a,b,f),(0>e||null==e)&&(e=a.style[b]),va.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Ha(a,b,c||(g?"border":"content"),d,f)+"px"}function Ja(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",ta(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xa(a,"opacity");return""===c?"1":c}}}},cssNumber:{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=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fa(i,h)),g=n.cssHooks[b]||n.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=Ba.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.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=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fa(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xa(a,b,d)),"normal"===e&&b in Da&&(e=Da[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?za.test(n.css(a,"display"))&&0===a.offsetWidth?n.swap(a,Ca,function(){return Ia(a,b,d)}):Ia(a,b,d):void 0},set:function(a,c,d){var e=d&&wa(a);return Ga(a,c,d?Ha(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=ya(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ua.test(a)||(n.cssHooks[a+b].set=Ga)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wa(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Ja(this,!0)},hide:function(){return Ja(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Ka(a,b,c,d,e){return new Ka.prototype.init(a,b,c,d,e)}n.Tween=Ka,Ka.prototype={constructor:Ka,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ka.propHooks[this.prop];return a&&a.get?a.get(this):Ka.propHooks._default.get(this)},run:function(a){var b,c=Ka.propHooks[this.prop];return this.options.duration?this.pos=b=n.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):Ka.propHooks._default.set(this),this}},Ka.prototype.init.prototype=Ka.prototype,Ka.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Ka.propHooks.scrollTop=Ka.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=Ka.prototype.init,n.fx.step={};var La,Ma,Na=/^(?:toggle|show|hide)$/,Oa=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pa=/queueHooks$/,Qa=[Va],Ra={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Oa.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Oa.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sa(){return setTimeout(function(){La=void 0}),La=n.now()}function Ta(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ua(a,b,c){for(var d,e=(Ra[b]||[]).concat(Ra["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Va(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||ta(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Na.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?ta(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ua(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wa(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.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 Xa(a,b,c){var d,e,f=0,g=Qa.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=La||Sa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:La||Sa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.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;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wa(k,j.opts.specialEasing);g>f;f++)if(d=Qa[f].call(j,a,k,j.opts))return d;return n.map(k,Ua,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.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)}n.Animation=n.extend(Xa,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Ra[c]=Ra[c]||[],Ra[c].unshift(b)},prefilter:function(a,b){b?Qa.unshift(a):Qa.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xa(this,n.extend({},a),f);(e||L.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=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pa.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)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.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;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Ta(b,!0),a,d,e)}}),n.each({slideDown:Ta("show"),slideUp:Ta("hide"),slideToggle:Ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(La=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),La=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ma||(Ma=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Ma),Ma=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement("input"),b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox",k.checkOn=""!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement("input"),a.value="t",a.type="radio",k.radioValue="t"===a.value}();var Ya,Za,$a=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Za:Ya)), 4void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Za={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$a[b]||n.find.attr;$a[b]=function(a,b,d){var e,f;return d||(f=$a[b],$a[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$a[b]=f),e}});var _a=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.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){return a.hasAttribute("tabindex")||_a.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ab=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ab," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ab," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ab," ").indexOf(b)>=0)return!0;return!1}});var bb=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},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)}});var cb=n.now(),db=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var eb=/#.*$/,fb=/([?&])_=[^&]*/,gb=/^(.*?):[ \t]*([^\r\n]*)$/gm,hb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ib=/^(?:GET|HEAD)$/,jb=/^\/\//,kb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,lb={},mb={},nb="*/".concat("*"),ob=a.location.href,pb=kb.exec(ob.toLowerCase())||[];function qb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.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 rb(a,b,c,d){var e={},f=a===mb;function g(h){var i;return e[h]=!0,n.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 sb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function tb(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}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function ub(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}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ob,type:"GET",isLocal:hb.test(pb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":nb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?sb(sb(a,n.ajaxSettings),b):sb(n.ajaxSettings,a)},ajaxPrefilter:qb(lb),ajaxTransport:qb(mb),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=gb.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||ob)+"").replace(eb,"").replace(jb,pb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=kb.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===pb[1]&&h[2]===pb[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(pb[3]||("http:"===pb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),rb(lb,k,b,v),2===t)return v;i=n.event&&k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!ib.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(db.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=fb.test(d)?d.replace(fb,"$1_="+cb++):d+(db.test(d)?"&":"?")+"_="+cb++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+nb+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=rb(mb,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=tb(k,v,f)),u=ub(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(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 this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var vb=/%20/g,wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Ab(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join("&").replace(vb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Bb=0,Cb={},Db={0:200,1223:204},Eb=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Cb)Cb[a]()}),k.cors=!!Eb&&"withCredentials"in Eb,k.ajax=Eb=!!Eb,n.ajaxTransport(function(a){var b;return k.cors||Eb&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Bb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Cb[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Db[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Cb[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Fb=[],Gb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Fb.pop()||n.expando+"_"+cb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Gb.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Gb,"$1"+e):b.jsonp!==!1&&(b.url+=(db.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Fb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Hb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Hb)return Hb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Ib=a.document.documentElement;function Jb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.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),n.isFunction(b)&&(b=b.call(a,c,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)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Jb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Ib;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ib})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Jb(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=ya(k.pixelPosition,function(a,c){return c?(c=xa(a,b),va.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Kb=a.jQuery,Lb=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Lb),b&&a.jQuery===n&&(a.jQuery=Kb),n},typeof b===U&&(a.jQuery=a.$=n),n}); 5//# sourceMappingURL=jquery.min.map
5 6/*IBARO*/ 7; 8var device, deviceType 9, url = location.host.replace(/^(www|local|log|dev)\.|\.(com|co|es|edu|gov|info|org|net|uol\.com)(|\.(br|))$/gi,'') 10; 11deviceType = function(e){ 12 return window.device = (e >= 997) ? 'pc' : (e <= 996 && e > 600) ? 'tablet' : 'mobile'; 13} 14deviceType(window.innerWidth); 15 16$('[data-js]').each(function(e, f){ 17 if(f.textContent.trim().length){ 18 var msg = { 19 text: 'Ueeeepa!! Chama os programadores e designers, pq exite algum script [data-js] nesta página, sem estar na all.js' 20 , tag: f 21 } 22 console.info(msg); 23 } 24}); 25$('[data-css]').each(function(e, f){ 26 if(f.sheet.cssRules.length){ 27 var msg = { 28 text: 'Exite um estilo na tag [data-css] nessa página' 29 , tag: f 30 } 31 console.info(msg); 32 } 33}); 34if(document.querySelector('[data-error-close]')){ 35 document.querySelector('[data-error-close]').addEventListener('click',function(e){ 36 var io_error = document.querySelector('.error-box'); 37 e.preventDefault(); 38 io_error.style.opacity=1; 39 setInterval(function(){ 40 (io_error.style.opacity<=0) ? io_error.style.display='none' : io_error.style.opacity-=.05; 41 },30); 42 }); 43} 44 45$(window).on('keyup', function(e){ 46 if(e.keyCode===13 && e.ctrlKey===true){ 47 window.open('http://adm.ibaro.com.br/'+url,'_blank'); 48 } 49}).on('resize', function(e){ 50 deviceType(window.innerWidth); 51}); 52$('img').on('error', function(){ 53 this.classList.add('img-error'); 54}); 55
vendor: 40,181 bytes, lines 56-1430
56/*! 57 * Bootstrap v3.3.7 (http://getbootstrap.com) 58 * Copyright 2011-2016 Twitter, Inc. 59 * Licensed under the MIT license 60 */ 61 62if (typeof jQuery === 'undefined') { 63 throw new Error('Bootstrap\'s JavaScript requires jQuery') 64} 65 66+function ($) { 67 'use strict'; 68 var version = $.fn.jquery.split(' ')[0].split('.') 69 if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) { 70 throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4') 71 } 72}(jQuery); 73 74/* ======================================================================== 75 * Bootstrap: transition.js v3.3.7 76 * http://getbootstrap.com/javascript/#transitions 77 * ======================================================================== 78 * Copyright 2011-2016 Twitter, Inc. 79 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 80 * ======================================================================== */ 81 82 83+function ($) { 84 'use strict'; 85 86 // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) 87 // ============================================================ 88 89 function transitionEnd() { 90 var el = document.createElement('bootstrap') 91 92 var transEndEventNames = { 93 WebkitTransition : 'webkitTransitionEnd', 94 MozTransition : 'transitionend', 95 OTransition : 'oTransitionEnd otransitionend', 96 transition : 'transitionend' 97 } 98 99 for (var name in transEndEventNames) { 100 if (el.style[name] !== undefined) { 101 return { end: transEndEventNames[name] } 102 } 103 } 104 105 return false // explicit for ie8 ( ._.) 106 } 107 108 // http://blog.alexmaccaw.com/css-transitions 109 $.fn.emulateTransitionEnd = function (duration) { 110 var called = false 111 var $el = this 112 $(this).one('bsTransitionEnd', function () { called = true }) 113 var callback = function () { if (!called) $($el).trigger($.support.transition.end) } 114 setTimeout(callback, duration) 115 return this 116 } 117 118 $(function () { 119 $.support.transition = transitionEnd() 120 121 if (!$.support.transition) return 122 123 $.event.special.bsTransitionEnd = { 124 bindType: $.support.transition.end, 125 delegateType: $.support.transition.end, 126 handle: function (e) { 127 if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) 128 } 129 } 130 }) 131 132}(jQuery); 133 134/* ======================================================================== 135 * Bootstrap: alert.js v3.3.7 136 * http://getbootstrap.com/javascript/#alerts 137 * ======================================================================== 138 * Copyright 2011-2016 Twitter, Inc. 139 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 140 * ======================================================================== */ 141 142 143+function ($) { 144 'use strict'; 145 146 // ALERT CLASS DEFINITION 147 // ====================== 148 149 var dismiss = '[data-dismiss="alert"]' 150 var Alert = function (el) { 151 $(el).on('click', dismiss, this.close) 152 } 153 154 Alert.VERSION = '3.3.7' 155 156 Alert.TRANSITION_DURATION = 150 157 158 Alert.prototype.close = function (e) { 159 var $this = $(this) 160 var selector = $this.attr('data-target') 161 162 if (!selector) { 163 selector = $this.attr('href') 164 selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 165 } 166 167 var $parent = $(selector === '#' ? [] : selector) 168 169 if (e) e.preventDefault() 170 171 if (!$parent.length) { 172 $parent = $this.closest('.alert') 173 } 174 175 $parent.trigger(e = $.Event('close.bs.alert')) 176 177 if (e.isDefaultPrevented()) return 178 179 $parent.removeClass('in') 180 181 function removeElement() { 182 // detach from parent, fire event then clean up data 183 $parent.detach().trigger('closed.bs.alert').remove() 184 } 185 186 $.support.transition && $parent.hasClass('fade') ? 187 $parent 188 .one('bsTransitionEnd', removeElement) 189 .emulateTransitionEnd(Alert.TRANSITION_DURATION) : 190 removeElement() 191 } 192 193 194 // ALERT PLUGIN DEFINITION 195 // ======================= 196 197 function Plugin(option) { 198 return this.each(function () { 199 var $this = $(this) 200 var data = $this.data('bs.alert') 201 202 if (!data) $this.data('bs.alert', (data = new Alert(this))) 203 if (typeof option == 'string') data[option].call($this) 204 }) 205 } 206 207 var old = $.fn.alert 208 209 $.fn.alert = Plugin 210 $.fn.alert.Constructor = Alert 211 212 213 // ALERT NO CONFLICT 214 // ================= 215 216 $.fn.alert.noConflict = function () { 217 $.fn.alert = old 218 return this 219 } 220 221 222 // ALERT DATA-API 223 // ============== 224 225 $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) 226 227}(jQuery); 228 229/* ======================================================================== 230 * Bootstrap: button.js v3.3.7 231 * http://getbootstrap.com/javascript/#buttons 232 * ======================================================================== 233 * Copyright 2011-2016 Twitter, Inc. 234 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 235 * ======================================================================== */ 236 237 238+function ($) { 239 'use strict'; 240 241 // BUTTON PUBLIC CLASS DEFINITION 242 // ============================== 243 244 var Button = function (element, options) { 245 this.$element = $(element) 246 this.options = $.extend({}, Button.DEFAULTS, options) 247 this.isLoading = false 248 } 249 250 Button.VERSION = '3.3.7' 251 252 Button.DEFAULTS = { 253 loadingText: 'loading...' 254 } 255 256 Button.prototype.setState = function (state) { 257 var d = 'disabled' 258 var $el = this.$element 259 var val = $el.is('input') ? 'val' : 'html' 260 var data = $el.data() 261 262 state += 'Text' 263 264 if (data.resetText == null) $el.data('resetText', $el[val]()) 265 266 // push to event loop to allow forms to submit 267 setTimeout($.proxy(function () { 268 $el[val](data[state] == null ? this.options[state] : data[state]) 269 270 if (state == 'loadingText') { 271 this.isLoading = true 272 $el.addClass(d).attr(d, d).prop(d, true) 273 } else if (this.isLoading) { 274 this.isLoading = false 275 $el.removeClass(d).removeAttr(d).prop(d, false) 276 } 277 }, this), 0) 278 } 279 280 Button.prototype.toggle = function () { 281 var changed = true 282 var $parent = this.$element.closest('[data-toggle="buttons"]') 283 284 if ($parent.length) { 285 var $input = this.$element.find('input') 286 if ($input.prop('type') == 'radio') { 287 if ($input.prop('checked')) changed = false 288 $parent.find('.active').removeClass('active') 289 this.$element.addClass('active') 290 } else if ($input.prop('type') == 'checkbox') { 291 if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false 292 this.$element.toggleClass('active') 293 } 294 $input.prop('checked', this.$element.hasClass('active')) 295 if (changed) $input.trigger('change') 296 } else { 297 this.$element.attr('aria-pressed', !this.$element.hasClass('active')) 298 this.$element.toggleClass('active') 299 } 300 } 301 302 303 // BUTTON PLUGIN DEFINITION 304 // ======================== 305 306 function Plugin(option) { 307 return this.each(function () { 308 var $this = $(this) 309 var data = $this.data('bs.button') 310 var options = typeof option == 'object' && option 311 312 if (!data) $this.data('bs.button', (data = new Button(this, options))) 313 314 if (option == 'toggle') data.toggle() 315 else if (option) data.setState(option) 316 }) 317 } 318 319 var old = $.fn.button 320 321 $.fn.button = Plugin 322 $.fn.button.Constructor = Button 323 324 325 // BUTTON NO CONFLICT 326 // ================== 327 328 $.fn.button.noConflict = function () { 329 $.fn.button = old 330 return this 331 } 332 333 334 // BUTTON DATA-API 335 // =============== 336 337 $(document) 338 .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { 339 var $btn = $(e.target).closest('.btn') 340 Plugin.call($btn, 'toggle') 341 if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) { 342 // Prevent double click on radios, and the double selections (so cancellation) on checkboxes 343 e.preventDefault() 344 // The target component still receive the focus 345 if ($btn.is('input,button')) $btn.trigger('focus') 346 else $btn.find('input:visible,button:visible').first().trigger('focus') 347 } 348 }) 349 .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { 350 $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type)) 351 }) 352 353}(jQuery); 354 355/* ======================================================================== 356 * Bootstrap: carousel.js v3.3.7 357 * http://getbootstrap.com/javascript/#carousel 358 * ======================================================================== 359 * Copyright 2011-2016 Twitter, Inc. 360 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 361 * ======================================================================== */ 362 363 364+function ($) { 365 'use strict'; 366 367 // CAROUSEL CLASS DEFINITION 368 // ========================= 369 370 var Carousel = function (element, options) { 371 this.$element = $(element) 372 this.$indicators = this.$element.find('.carousel-indicators') 373 this.options = options 374 this.paused = null 375 this.sliding = null 376 this.interval = null 377 this.$active = null 378 this.$items = null 379 380 this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) 381 382 this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element 383 .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) 384 .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) 385 } 386 387 Carousel.VERSION = '3.3.7' 388 389 Carousel.TRANSITION_DURATION = 600 390 391 Carousel.DEFAULTS = { 392 interval: 5000, 393 pause: 'hover', 394 wrap: true, 395 keyboard: true 396 } 397 398 Carousel.prototype.keydown = function (e) { 399 if (/input|textarea/i.test(e.target.tagName)) return 400 switch (e.which) { 401 case 37: this.prev(); break 402 case 39: this.next(); break 403 default: return 404 } 405 406 e.preventDefault() 407 } 408 409 Carousel.prototype.cycle = function (e) { 410 e || (this.paused = false) 411 412 this.interval && clearInterval(this.interval) 413 414 this.options.interval 415 && !this.paused 416 && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) 417 418 return this 419 } 420 421 Carousel.prototype.getItemIndex = function (item) { 422 this.$items = item.parent().children('.item') 423 return this.$items.index(item || this.$active) 424 } 425 426 Carousel.prototype.getItemForDirection = function (direction, active) { 427 var activeIndex = this.getItemIndex(active) 428 var willWrap = (direction == 'prev' && activeIndex === 0) 429 || (direction == 'next' && activeIndex == (this.$items.length - 1)) 430 if (willWrap && !this.options.wrap) return active 431 var delta = direction == 'prev' ? -1 : 1 432 var itemIndex = (activeIndex + delta) % this.$items.length 433 return this.$items.eq(itemIndex) 434 } 435 436 Carousel.prototype.to = function (pos) { 437 var that = this 438 var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')) 439 440 if (pos > (this.$items.length - 1) || pos < 0) return 441 442 if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid" 443 if (activeIndex == pos) return this.pause().cycle() 444 445 return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos)) 446 } 447 448 Carousel.prototype.pause = function (e) { 449 e || (this.paused = true) 450 451 if (this.$element.find('.next, .prev').length && $.support.transition) { 452 this.$element.trigger($.support.transition.end) 453 this.cycle(true) 454 } 455 456 this.interval = clearInterval(this.interval) 457 458 return this 459 } 460 461 Carousel.prototype.next = function () { 462 if (this.sliding) return 463 return this.slide('next') 464 } 465 466 Carousel.prototype.prev = function () { 467 if (this.sliding) return 468 return this.slide('prev') 469 } 470 471 Carousel.prototype.slide = function (type, next) { 472 var $active = this.$element.find('.item.active') 473 var $next = next || this.getItemForDirection(type, $active) 474 var isCycling = this.interval 475 var direction = type == 'next' ? 'left' : 'right' 476 var that = this 477 478 if ($next.hasClass('active')) return (this.sliding = false) 479 480 var relatedTarget = $next[0] 481 var slideEvent = $.Event('slide.bs.carousel', { 482 relatedTarget: relatedTarget, 483 direction: direction 484 }) 485 this.$element.trigger(slideEvent) 486 if (slideEvent.isDefaultPrevented()) return 487 488 this.sliding = true 489 490 isCycling && this.pause() 491 492 if (this.$indicators.length) { 493 this.$indicators.find('.active').removeClass('active') 494 var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)]) 495 $nextIndicator && $nextIndicator.addClass('active') 496 } 497 498 var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid" 499 if ($.support.transition && this.$element.hasClass('slide')) { 500 $next.addClass(type) 501 $next[0].offsetWidth // force reflow 502 $active.addClass(direction) 503 $next.addClass(direction) 504 $active 505 .one('bsTransitionEnd', function () { 506 $next.removeClass([type, direction].join(' ')).addClass('active') 507 $active.removeClass(['active', direction].join(' ')) 508 that.sliding = false 509 setTimeout(function () { 510 that.$element.trigger(slidEvent) 511 }, 0) 512 }) 513 .emulateTransitionEnd(Carousel.TRANSITION_DURATION) 514 } else { 515 $active.removeClass('active') 516 $next.addClass('active') 517 this.sliding = false 518 this.$element.trigger(slidEvent) 519 } 520 521 isCycling && this.cycle() 522 523 return this 524 } 525 526 527 // CAROUSEL PLUGIN DEFINITION 528 // ========================== 529 530 function Plugin(option) { 531 return this.each(function () { 532 var $this = $(this) 533 var data = $this.data('bs.carousel') 534 var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) 535 var action = typeof option == 'string' ? option : options.slide 536 537 if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) 538 if (typeof option == 'number') data.to(option) 539 else if (action) data[action]() 540 else if (options.interval) data.pause().cycle() 541 }) 542 } 543 544 var old = $.fn.carousel 545 546 $.fn.carousel = Plugin 547 $.fn.carousel.Constructor = Carousel 548 549 550 // CAROUSEL NO CONFLICT 551 // ==================== 552 553 $.fn.carousel.noConflict = function () { 554 $.fn.carousel = old 555 return this 556 } 557 558 559 // CAROUSEL DATA-API 560 // ================= 561 562 var clickHandler = function (e) { 563 var href 564 var $this = $(this) 565 var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 566 if (!$target.hasClass('carousel')) return 567 var options = $.extend({}, $target.data(), $this.data()) 568 var slideIndex = $this.attr('data-slide-to') 569 if (slideIndex) options.interval = false 570 571 Plugin.call($target, options) 572 573 if (slideIndex) { 574 $target.data('bs.carousel').to(slideIndex) 575 } 576 577 e.preventDefault() 578 } 579 580 $(document) 581 .on('click.bs.carousel.data-api', '[data-slide]', clickHandler) 582 .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler) 583 584 $(window).on('load', function () { 585 $('[data-ride="carousel"]').each(function () { 586 var $carousel = $(this) 587 Plugin.call($carousel, $carousel.data()) 588 }) 589 }) 590 591}(jQuery); 592 593/* ======================================================================== 594 * Bootstrap: collapse.js v3.3.7 595 * http://getbootstrap.com/javascript/#collapse 596 * ======================================================================== 597 * Copyright 2011-2016 Twitter, Inc. 598 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 599 * ======================================================================== */ 600 601/* jshint latedef: false */ 602 603+function ($) { 604 'use strict'; 605 606 // COLLAPSE PUBLIC CLASS DEFINITION 607 // ================================ 608 609 var Collapse = function (element, options) { 610 this.$element = $(element) 611 this.options = $.extend({}, Collapse.DEFAULTS, options) 612 this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' + 613 '[data-toggle="collapse"][data-target="#' + element.id + '"]') 614 this.transitioning = null 615 616 if (this.options.parent) { 617 this.$parent = this.getParent() 618 } else { 619 this.addAriaAndCollapsedClass(this.$element, this.$trigger) 620 } 621 622 if (this.options.toggle) this.toggle() 623 } 624 625 Collapse.VERSION = '3.3.7' 626 627 Collapse.TRANSITION_DURATION = 350 628 629 Collapse.DEFAULTS = { 630 toggle: true 631 } 632 633 Collapse.prototype.dimension = function () { 634 var hasWidth = this.$element.hasClass('width') 635 return hasWidth ? 'width' : 'height' 636 } 637 638 Collapse.prototype.show = function () { 639 if (this.transitioning || this.$element.hasClass('in')) return 640 641 var activesData 642 var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing') 643 644 if (actives && actives.length) { 645 activesData = actives.data('bs.collapse') 646 if (activesData && activesData.transitioning) return 647 } 648 649 var startEvent = $.Event('show.bs.collapse') 650 this.$element.trigger(startEvent) 651 if (startEvent.isDefaultPrevented()) return 652 653 if (actives && actives.length) { 654 Plugin.call(actives, 'hide') 655 activesData || actives.data('bs.collapse', null) 656 } 657 658 var dimension = this.dimension() 659 660 this.$element 661 .removeClass('collapse') 662 .addClass('collapsing')[dimension](0) 663 .attr('aria-expanded', true) 664 665 this.$trigger 666 .removeClass('collapsed') 667 .attr('aria-expanded', true) 668 669 this.transitioning = 1 670 671 var complete = function () { 672 this.$element 673 .removeClass('collapsing') 674 .addClass('collapse in')[dimension]('') 675 this.transitioning = 0 676 this.$element 677 .trigger('shown.bs.collapse') 678 } 679 680 if (!$.support.transition) return complete.call(this) 681 682 var scrollSize = $.camelCase(['scroll', dimension].join('-')) 683 684 this.$element 685 .one('bsTransitionEnd', $.proxy(complete, this)) 686 .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize]) 687 } 688 689 Collapse.prototype.hide = function () { 690 if (this.transitioning || !this.$element.hasClass('in')) return 691 692 var startEvent = $.Event('hide.bs.collapse') 693 this.$element.trigger(startEvent) 694 if (startEvent.isDefaultPrevented()) return 695 696 var dimension = this.dimension() 697 698 this.$element[dimension](this.$element[dimension]())[0].offsetHeight 699 700 this.$element 701 .addClass('collapsing') 702 .removeClass('collapse in') 703 .attr('aria-expanded', false) 704 705 this.$trigger 706 .addClass('collapsed') 707 .attr('aria-expanded', false) 708 709 this.transitioning = 1 710 711 var complete = function () { 712 this.transitioning = 0 713 this.$element 714 .removeClass('collapsing') 715 .addClass('collapse') 716 .trigger('hidden.bs.collapse') 717 } 718 719 if (!$.support.transition) return complete.call(this) 720 721 this.$element 722 [dimension](0) 723 .one('bsTransitionEnd', $.proxy(complete, this)) 724 .emulateTransitionEnd(Collapse.TRANSITION_DURATION) 725 } 726 727 Collapse.prototype.toggle = function () { 728 this[this.$element.hasClass('in') ? 'hide' : 'show']() 729 } 730 731 Collapse.prototype.getParent = function () { 732 return $(this.options.parent) 733 .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]') 734 .each($.proxy(function (i, element) { 735 var $element = $(element) 736 this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element) 737 }, this)) 738 .end() 739 } 740 741 Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) { 742 var isOpen = $element.hasClass('in') 743 744 $element.attr('aria-expanded', isOpen) 745 $trigger 746 .toggleClass('collapsed', !isOpen) 747 .attr('aria-expanded', isOpen) 748 } 749 750 function getTargetFromTrigger($trigger) { 751 var href 752 var target = $trigger.attr('data-target') 753 || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7 754 755 return $(target) 756 } 757 758 759 // COLLAPSE PLUGIN DEFINITION 760 // ========================== 761 762 function Plugin(option) { 763 return this.each(function () { 764 var $this = $(this) 765 var data = $this.data('bs.collapse') 766 var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) 767 768 if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false 769 if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) 770 if (typeof option == 'string') data[option]() 771 }) 772 } 773 774 var old = $.fn.collapse 775 776 $.fn.collapse = Plugin 777 $.fn.collapse.Constructor = Collapse 778 779 780 // COLLAPSE NO CONFLICT 781 // ==================== 782 783 $.fn.collapse.noConflict = function () { 784 $.fn.collapse = old 785 return this 786 } 787 788 789 // COLLAPSE DATA-API 790 // ================= 791 792 $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) { 793 var $this = $(this) 794 795 if (!$this.attr('data-target')) e.preventDefault() 796 797 var $target = getTargetFromTrigger($this) 798 var data = $target.data('bs.collapse') 799 var option = data ? 'toggle' : $this.data() 800 801 Plugin.call($target, option) 802 }) 803 804}(jQuery); 805 806/* ======================================================================== 807 * Bootstrap: dropdown.js v3.3.7 808 * http://getbootstrap.com/javascript/#dropdowns 809 * ======================================================================== 810 * Copyright 2011-2016 Twitter, Inc. 811 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 812 * ======================================================================== */ 813 814 815+function ($) { 816 'use strict'; 817 818 // DROPDOWN CLASS DEFINITION 819 // ========================= 820 821 var backdrop = '.dropdown-backdrop' 822 var toggle = '[data-toggle="dropdown"]' 823 var Dropdown = function (element) { 824 $(element).on('click.bs.dropdown', this.toggle) 825 } 826 827 Dropdown.VERSION = '3.3.7' 828 829 function getParent($this) { 830 var selector = $this.attr('data-target') 831 832 if (!selector) { 833 selector = $this.attr('href') 834 selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 835 } 836 837 var $parent = selector && $(selector) 838 839 return $parent && $parent.length ? $parent : $this.parent() 840 } 841 842 function clearMenus(e) { 843 if (e && e.which === 3) return 844 $(backdrop).remove() 845 $(toggle).each(function () { 846 var $this = $(this) 847 var $parent = getParent($this) 848 var relatedTarget = { relatedTarget: this } 849 850 if (!$parent.hasClass('open')) return 851 852 if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return 853 854 $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget)) 855 856 if (e.isDefaultPrevented()) return 857 858 $this.attr('aria-expanded', 'false') 859 $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget)) 860 }) 861 } 862 863 Dropdown.prototype.toggle = function (e) { 864 var $this = $(this) 865 866 if ($this.is('.disabled, :disabled')) return 867 868 var $parent = getParent($this) 869 var isActive = $parent.hasClass('open') 870 871 clearMenus() 872 873 if (!isActive) { 874 if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { 875 // if mobile we use a backdrop because click events don't delegate 876 $(document.createElement('div')) 877 .addClass('dropdown-backdrop') 878 .insertAfter($(this)) 879 .on('click', clearMenus) 880 } 881 882 var relatedTarget = { relatedTarget: this } 883 $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget)) 884 885 if (e.isDefaultPrevented()) return 886 887 $this 888 .trigger('focus') 889 .attr('aria-expanded', 'true') 890 891 $parent 892 .toggleClass('open') 893 .trigger($.Event('shown.bs.dropdown', relatedTarget)) 894 } 895 896 return false 897 } 898 899 Dropdown.prototype.keydown = function (e) { 900 if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return 901 902 var $this = $(this) 903 904 e.preventDefault() 905 e.stopPropagation() 906 907 if ($this.is('.disabled, :disabled')) return 908 909 var $parent = getParent($this) 910 var isActive = $parent.hasClass('open') 911 912 if (!isActive && e.which != 27 || isActive && e.which == 27) { 913 if (e.which == 27) $parent.find(toggle).trigger('focus') 914 return $this.trigger('click') 915 } 916 917 var desc = ' li:not(.disabled):visible a' 918 var $items = $parent.find('.dropdown-menu' + desc) 919 920 if (!$items.length) return 921 922 var index = $items.index(e.target) 923 924 if (e.which == 38 && index > 0) index-- // up 925 if (e.which == 40 && index < $items.length - 1) index++ // down 926 if (!~index) index = 0 927 928 $items.eq(index).trigger('focus') 929 } 930 931 932 // DROPDOWN PLUGIN DEFINITION 933 // ========================== 934 935 function Plugin(option) { 936 return this.each(function () { 937 var $this = $(this) 938 var data = $this.data('bs.dropdown') 939 940 if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) 941 if (typeof option == 'string') data[option].call($this) 942 }) 943 } 944 945 var old = $.fn.dropdown 946 947 $.fn.dropdown = Plugin 948 $.fn.dropdown.Constructor = Dropdown 949 950 951 // DROPDOWN NO CONFLICT 952 // ==================== 953 954 $.fn.dropdown.noConflict = function () { 955 $.fn.dropdown = old 956 return this 957 } 958 959 960 // APPLY TO STANDARD DROPDOWN ELEMENTS 961 // =================================== 962 963 $(document) 964 .on('click.bs.dropdown.data-api', clearMenus) 965 .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) 966 .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) 967 .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown) 968 .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown) 969 970}(jQuery); 971 972/* ======================================================================== 973 * Bootstrap: modal.js v3.3.7 974 * http://getbootstrap.com/javascript/#modals 975 * ======================================================================== 976 * Copyright 2011-2016 Twitter, Inc. 977 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 978 * ======================================================================== */ 979 980 981+function ($) { 982 'use strict'; 983 984 // MODAL CLASS DEFINITION 985 // ====================== 986 987 var Modal = function (element, options) { 988 this.options = options 989 this.$body = $(document.body) 990 this.$element = $(element) 991 this.$dialog = this.$element.find('.modal-dialog') 992 this.$backdrop = null 993 this.isShown = null 994 this.originalBodyPad = null 995 this.scrollbarWidth = 0 996 this.ignoreBackdropClick = false 997 998 if (this.options.remote) { 999 this.$element 1000 .find('.modal-content') 1001 .load(this.options.remote, $.proxy(function () { 1002 this.$element.trigger('loaded.bs.modal') 1003 }, this)) 1004 } 1005 } 1006 1007 Modal.VERSION = '3.3.7' 1008 1009 Modal.TRANSITION_DURATION = 300 1010 Modal.BACKDROP_TRANSITION_DURATION = 150 1011 1012 Modal.DEFAULTS = { 1013 backdrop: true, 1014 keyboard: true, 1015 show: true 1016 } 1017 1018 Modal.prototype.toggle = function (_relatedTarget) { 1019 return this.isShown ? this.hide() : this.show(_relatedTarget) 1020 } 1021 1022 Modal.prototype.show = function (_relatedTarget) { 1023 var that = this 1024 var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget }) 1025 1026 this.$element.trigger(e) 1027 1028 if (this.isShown || e.isDefaultPrevented()) return 1029 1030 this.isShown = true 1031 1032 this.checkScrollbar() 1033 this.setScrollbar() 1034 this.$body.addClass('modal-open') 1035 1036 this.escape() 1037 this.resize() 1038 1039 this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) 1040 1041 this.$dialog.on('mousedown.dismiss.bs.modal', function () { 1042 that.$element.one('mouseup.dismiss.bs.modal', function (e) { 1043 if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true 1044 }) 1045 }) 1046 1047 this.backdrop(function () { 1048 var transition = $.support.transition && that.$element.hasClass('fade') 1049 1050 if (!that.$element.parent().length) { 1051 that.$element.appendTo(that.$body) // don't move modals dom position 1052 } 1053 1054 that.$element 1055 .show() 1056 .scrollTop(0) 1057 1058 that.adjustDialog() 1059 1060 if (transition) { 1061 that.$element[0].offsetWidth // force reflow 1062 } 1063 1064 that.$element.addClass('in') 1065 1066 that.enforceFocus() 1067 1068 var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget }) 1069 1070 transition ? 1071 that.$dialog // wait for modal to slide in 1072 .one('bsTransitionEnd', function () { 1073 that.$element.trigger('focus').trigger(e) 1074 }) 1075 .emulateTransitionEnd(Modal.TRANSITION_DURATION) : 1076 that.$element.trigger('focus').trigger(e) 1077 }) 1078 } 1079 1080 Modal.prototype.hide = function (e) { 1081 if (e) e.preventDefault() 1082 1083 e = $.Event('hide.bs.modal') 1084 1085 this.$element.trigger(e) 1086 1087 if (!this.isShown || e.isDefaultPrevented()) return 1088 1089 this.isShown = false 1090 1091 this.escape() 1092 this.resize() 1093 1094 $(document).off('focusin.bs.modal') 1095 1096 this.$element 1097 .removeClass('in') 1098 .off('click.dismiss.bs.modal') 1099 .off('mouseup.dismiss.bs.modal') 1100 1101 this.$dialog.off('mousedown.dismiss.bs.modal') 1102 1103 $.support.transition && this.$element.hasClass('fade') ? 1104 this.$element 1105 .one('bsTransitionEnd', $.proxy(this.hideModal, this)) 1106 .emulateTransitionEnd(Modal.TRANSITION_DURATION) : 1107 this.hideModal() 1108 } 1109 1110 Modal.prototype.enforceFocus = function () { 1111 $(document) 1112 .off('focusin.bs.modal') // guard against infinite focus loop 1113 .on('focusin.bs.modal', $.proxy(function (e) { 1114 if (document !== e.target && 1115 this.$element[0] !== e.target && 1116 !this.$element.has(e.target).length) { 1117 this.$element.trigger('focus') 1118 } 1119 }, this)) 1120 } 1121 1122 Modal.prototype.escape = function () { 1123 if (this.isShown && this.options.keyboard) { 1124 this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) { 1125 e.which == 27 && this.hide() 1126 }, this)) 1127 } else if (!this.isShown) { 1128 this.$element.off('keydown.dismiss.bs.modal') 1129 } 1130 } 1131 1132 Modal.prototype.resize = function () { 1133 if (this.isShown) { 1134 $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this)) 1135 } else { 1136 $(window).off('resize.bs.modal') 1137 } 1138 } 1139 1140 Modal.prototype.hideModal = function () { 1141 var that = this 1142 this.$element.hide() 1143 this.backdrop(function () { 1144 that.$body.removeClass('modal-open') 1145 that.resetAdjustments() 1146 that.resetScrollbar() 1147 that.$element.trigger('hidden.bs.modal') 1148 }) 1149 } 1150 1151 Modal.prototype.removeBackdrop = function () { 1152 this.$backdrop && this.$backdrop.remove() 1153 this.$backdrop = null 1154 } 1155 1156 Modal.prototype.backdrop = function (callback) { 1157 var that = this 1158 var animate = this.$element.hasClass('fade') ? 'fade' : '' 1159 1160 if (this.isShown && this.options.backdrop) { 1161 var doAnimate = $.support.transition && animate 1162 1163 this.$backdrop = $(document.createElement('div')) 1164 .addClass('modal-backdrop ' + animate) 1165 .appendTo(this.$body) 1166 1167 this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) { 1168 if (this.ignoreBackdropClick) { 1169 this.ignoreBackdropClick = false 1170 return 1171 } 1172 if (e.target !== e.currentTarget) return 1173 this.options.backdrop == 'static' 1174 ? this.$element[0].focus() 1175 : this.hide() 1176 }, this)) 1177 1178 if (doAnimate) this.$backdrop[0].offsetWidth // force reflow 1179 1180 this.$backdrop.addClass('in') 1181 1182 if (!callback) return 1183 1184 doAnimate ? 1185 this.$backdrop 1186 .one('bsTransitionEnd', callback) 1187 .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) : 1188 callback() 1189 1190 } else if (!this.isShown && this.$backdrop) { 1191 this.$backdrop.removeClass('in') 1192 1193 var callbackRemove = function () { 1194 that.removeBackdrop() 1195 callback && callback() 1196 } 1197 $.support.transition && this.$element.hasClass('fade') ? 1198 this.$backdrop 1199 .one('bsTransitionEnd', callbackRemove) 1200 .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) : 1201 callbackRemove() 1202 1203 } else if (callback) { 1204 callback() 1205 } 1206 } 1207 1208 // these following methods are used to handle overflowing modals 1209 1210 Modal.prototype.handleUpdate = function () { 1211 this.adjustDialog() 1212 } 1213 1214 Modal.prototype.adjustDialog = function () { 1215 var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight 1216 1217 this.$element.css({ 1218 paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '', 1219 paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : '' 1220 }) 1221 } 1222 1223 Modal.prototype.resetAdjustments = function () { 1224 this.$element.css({ 1225 paddingLeft: '', 1226 paddingRight: '' 1227 }) 1228 } 1229 1230 Modal.prototype.checkScrollbar = function () { 1231 var fullWindowWidth = window.innerWidth 1232 if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8 1233 var documentElementRect = document.documentElement.getBoundingClientRect() 1234 fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left) 1235 } 1236 this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth 1237 this.scrollbarWidth = this.measureScrollbar() 1238 } 1239 1240 Modal.prototype.setScrollbar = function () { 1241 var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10) 1242 this.originalBodyPad = document.body.style.paddingRight || '' 1243 if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth) 1244 } 1245 1246 Modal.prototype.resetScrollbar = function () { 1247 this.$body.css('padding-right', this.originalBodyPad) 1248 } 1249 1250 Modal.prototype.measureScrollbar = function () { // thx walsh 1251 var scrollDiv = document.createElement('div') 1252 scrollDiv.className = 'modal-scrollbar-measure' 1253 this.$body.append(scrollDiv) 1254 var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth 1255 this.$body[0].removeChild(scrollDiv) 1256 return scrollbarWidth 1257 } 1258 1259 1260 // MODAL PLUGIN DEFINITION 1261 // ======================= 1262 1263 function Plugin(option, _relatedTarget) { 1264 return this.each(function () { 1265 var $this = $(this) 1266 var data = $this.data('bs.modal') 1267 var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) 1268 1269 if (!data) $this.data('bs.modal', (data = new Modal(this, options))) 1270 if (typeof option == 'string') data[option](_relatedTarget) 1271 else if (options.show) data.show(_relatedTarget) 1272 }) 1273 } 1274 1275 var old = $.fn.modal 1276 1277 $.fn.modal = Plugin 1278 $.fn.modal.Constructor = Modal 1279 1280 1281 // MODAL NO CONFLICT 1282 // ================= 1283 1284 $.fn.modal.noConflict = function () { 1285 $.fn.modal = old 1286 return this 1287 } 1288 1289 1290 // MODAL DATA-API 1291 // ============== 1292 1293 $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) { 1294 var $this = $(this) 1295 var href = $this.attr('href') 1296 var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7 1297 var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()) 1298 1299 if ($this.is('a')) e.preventDefault() 1300 1301 $target.one('show.bs.modal', function (showEvent) { 1302 if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown 1303 $target.one('hidden.bs.modal', function () { 1304 $this.is(':visible') && $this.trigger('focus') 1305 }) 1306 }) 1307 Plugin.call($target, option, this) 1308 }) 1309 1310}(jQuery); 1311 1312/* ======================================================================== 1313 * Bootstrap: tooltip.js v3.3.7 1314 * http://getbootstrap.com/javascript/#tooltip 1315 * Inspired by the original jQuery.tipsy by Jason Frame 1316 * ======================================================================== 1317 * Copyright 2011-2016 Twitter, Inc. 1318 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 1319 * ======================================================================== */ 1320 1321 1322+function ($) { 1323 'use strict'; 1324 1325 // TOOLTIP PUBLIC CLASS DEFINITION 1326 // =============================== 1327 1328 var Tooltip = function (element, options) { 1329 this.type = null 1330 this.options = null 1331 this.enabled = null 1332 this.timeout = null 1333 this.hoverState = null 1334 this.$element = null 1335 this.inState = null 1336 1337 this.init('tooltip', element, options) 1338 } 1339 1340 Tooltip.VERSION = '3.3.7' 1341 1342 Tooltip.TRANSITION_DURATION = 150 1343 1344 Tooltip.DEFAULTS = { 1345 animation: true, 1346 placement: 'top', 1347 selector: false, 1348 template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', 1349 trigger: 'hover focus', 1350 title: '', 1351 delay: 0, 1352 html: false, 1353 container: false, 1354 viewport: { 1355 selector: 'body', 1356 padding: 0 1357 } 1358 } 1359 1360 Tooltip.prototype.init = function (type, element, options) { 1361 this.enabled = true 1362 this.type = type 1363 this.$element = $(element) 1364 this.options = this.getOptions(options) 1365 this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport)) 1366 this.inState = { click: false, hover: false, focus: false } 1367 1368 if (this.$element[0] instanceof document.constructor && !this.options.selector) { 1369 throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!') 1370 } 1371 1372 var triggers = this.options.trigger.split(' ') 1373 1374 for (var i = triggers.length; i--;) { 1375 var trigger = triggers[i] 1376 1377 if (trigger == 'click') { 1378 this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this)) 1379 } else if (trigger != 'manual') { 1380 var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin' 1381 var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout' 1382 1383 this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this)) 1384 this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this)) 1385 } 1386 } 1387 1388 this.options.selector ? 1389 (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) : 1390 this.fixTitle() 1391 } 1392 1393 Tooltip.prototype.getDefaults = function () { 1394 return Tooltip.DEFAULTS 1395 } 1396 1397 Tooltip.prototype.getOptions = function (options) { 1398 options = $.extend({}, this.getDefaults(), this.$element.data(), options) 1399 1400 if (options.delay && typeof options.delay == 'number') { 1401 options.delay = { 1402 show: options.delay, 1403 hide: options.delay 1404 } 1405 } 1406 1407 return options 1408 } 1409 1410 Tooltip.prototype.getDelegateOptions = function () { 1411 var options = {} 1412 var defaults = this.getDefaults() 1413 1414 this._options && $.each(this._options, function (key, value) { 1415 if (defaults[key] != value) options[key] = value 1416 }) 1417 1418 return options 1419 } 1420 1421 Tooltip.prototype.enter = function (obj) { 1422 var self = obj instanceof this.constructor ? 1423 obj : $(obj.currentTarget).data('bs.' + this.type) 1424 1425 if (!self) { 1426 self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) 1427 $(obj.currentTarget).data('bs.' + this.type, self) 1428 } 1429 1430 if (obj instanceof $.Event) {
vendor: 9,753 bytes, lines 1431-1709
1431 self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true 1432 } 1433 1434 if (self.tip().hasClass('in') || self.hoverState == 'in') { 1435 self.hoverState = 'in' 1436 return 1437 } 1438 1439 clearTimeout(self.timeout) 1440 1441 self.hoverState = 'in' 1442 1443 if (!self.options.delay || !self.options.delay.show) return self.show() 1444 1445 self.timeout = setTimeout(function () { 1446 if (self.hoverState == 'in') self.show() 1447 }, self.options.delay.show) 1448 } 1449 1450 Tooltip.prototype.isInStateTrue = function () { 1451 for (var key in this.inState) { 1452 if (this.inState[key]) return true 1453 } 1454 1455 return false 1456 } 1457 1458 Tooltip.prototype.leave = function (obj) { 1459 var self = obj instanceof this.constructor ? 1460 obj : $(obj.currentTarget).data('bs.' + this.type) 1461 1462 if (!self) { 1463 self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) 1464 $(obj.currentTarget).data('bs.' + this.type, self) 1465 } 1466 1467 if (obj instanceof $.Event) { 1468 self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false 1469 } 1470 1471 if (self.isInStateTrue()) return 1472 1473 clearTimeout(self.timeout) 1474 1475 self.hoverState = 'out' 1476 1477 if (!self.options.delay || !self.options.delay.hide) return self.hide() 1478 1479 self.timeout = setTimeout(function () { 1480 if (self.hoverState == 'out') self.hide() 1481 }, self.options.delay.hide) 1482 } 1483 1484 Tooltip.prototype.show = function () { 1485 var e = $.Event('show.bs.' + this.type) 1486 1487 if (this.hasContent() && this.enabled) { 1488 this.$element.trigger(e) 1489 1490 var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]) 1491 if (e.isDefaultPrevented() || !inDom) return 1492 var that = this 1493 1494 var $tip = this.tip() 1495 1496 var tipId = this.getUID(this.type) 1497 1498 this.setContent() 1499 $tip.attr('id', tipId) 1500 this.$element.attr('aria-describedby', tipId) 1501 1502 if (this.options.animation) $tip.addClass('fade') 1503 1504 var placement = typeof this.options.placement == 'function' ? 1505 this.options.placement.call(this, $tip[0], this.$element[0]) : 1506 this.options.placement 1507 1508 var autoToken = /\s?auto?\s?/i 1509 var autoPlace = autoToken.test(placement) 1510 if (autoPlace) placement = placement.replace(autoToken, '') || 'top' 1511 1512 $tip 1513 .detach() 1514 .css({ top: 0, left: 0, display: 'block' }) 1515 .addClass(placement) 1516 .data('bs.' + this.type, this) 1517 1518 this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element) 1519 this.$element.trigger('inserted.bs.' + this.type) 1520 1521 var pos = this.getPosition() 1522 var actualWidth = $tip[0].offsetWidth 1523 var actualHeight = $tip[0].offsetHeight 1524 1525 if (autoPlace) { 1526 var orgPlacement = placement 1527 var viewportDim = this.getPosition(this.$viewport) 1528 1529 placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top' : 1530 placement == 'top' && pos.top - actualHeight < viewportDim.top ? 'bottom' : 1531 placement == 'right' && pos.right + actualWidth > viewportDim.width ? 'left' : 1532 placement == 'left' && pos.left - actualWidth < viewportDim.left ? 'right' : 1533 placement 1534 1535 $tip 1536 .removeClass(orgPlacement) 1537 .addClass(placement) 1538 } 1539 1540 var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight) 1541 1542 this.applyPlacement(calculatedOffset, placement) 1543 1544 var complete = function () { 1545 var prevHoverState = that.hoverState 1546 that.$element.trigger('shown.bs.' + that.type) 1547 that.hoverState = null 1548 1549 if (prevHoverState == 'out') that.leave(that) 1550 } 1551 1552 $.support.transition && this.$tip.hasClass('fade') ? 1553 $tip 1554 .one('bsTransitionEnd', complete) 1555 .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : 1556 complete() 1557 } 1558 } 1559 1560 Tooltip.prototype.applyPlacement = function (offset, placement) { 1561 var $tip = this.tip() 1562 var width = $tip[0].offsetWidth 1563 var height = $tip[0].offsetHeight 1564 1565 // manually read margins because getBoundingClientRect includes difference 1566 var marginTop = parseInt($tip.css('margin-top'), 10) 1567 var marginLeft = parseInt($tip.css('margin-left'), 10) 1568 1569 // we must check for NaN for ie 8/9 1570 if (isNaN(marginTop)) marginTop = 0 1571 if (isNaN(marginLeft)) marginLeft = 0 1572 1573 offset.top += marginTop 1574 offset.left += marginLeft 1575 1576 // $.fn.offset doesn't round pixel values 1577 // so we use setOffset directly with our own function B-0 1578 $.offset.setOffset($tip[0], $.extend({ 1579 using: function (props) { 1580 $tip.css({ 1581 top: Math.round(props.top), 1582 left: Math.round(props.left) 1583 }) 1584 } 1585 }, offset), 0) 1586 1587 $tip.addClass('in') 1588 1589 // check to see if placing tip in new offset caused the tip to resize itself 1590 var actualWidth = $tip[0].offsetWidth 1591 var actualHeight = $tip[0].offsetHeight 1592 1593 if (placement == 'top' && actualHeight != height) { 1594 offset.top = offset.top + height - actualHeight 1595 } 1596 1597 var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight) 1598 1599 if (delta.left) offset.left += delta.left 1600 else offset.top += delta.top 1601 1602 var isVertical = /top|bottom/.test(placement) 1603 var arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight 1604 var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight' 1605 1606 $tip.offset(offset) 1607 this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical) 1608 } 1609 1610 Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) { 1611 this.arrow() 1612 .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%') 1613 .css(isVertical ? 'top' : 'left', '') 1614 } 1615 1616 Tooltip.prototype.setContent = function () { 1617 var $tip = this.tip() 1618 var title = this.getTitle() 1619 1620 $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title) 1621 $tip.removeClass('fade in top bottom left right') 1622 } 1623 1624 Tooltip.prototype.hide = function (callback) { 1625 var that = this 1626 var $tip = $(this.$tip) 1627 var e = $.Event('hide.bs.' + this.type) 1628 1629 function complete() { 1630 if (that.hoverState != 'in') $tip.detach() 1631 if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary. 1632 that.$element 1633 .removeAttr('aria-describedby') 1634 .trigger('hidden.bs.' + that.type) 1635 } 1636 callback && callback() 1637 } 1638 1639 this.$element.trigger(e) 1640 1641 if (e.isDefaultPrevented()) return 1642 1643 $tip.removeClass('in') 1644 1645 $.support.transition && $tip.hasClass('fade') ? 1646 $tip 1647 .one('bsTransitionEnd', complete) 1648 .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : 1649 complete() 1650 1651 this.hoverState = null 1652 1653 return this 1654 } 1655 1656 Tooltip.prototype.fixTitle = function () { 1657 var $e = this.$element 1658 if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') { 1659 $e.attr('data-original-title', $e.attr('title') || '').attr('title', '') 1660 } 1661 } 1662 1663 Tooltip.prototype.hasContent = function () { 1664 return this.getTitle() 1665 } 1666 1667 Tooltip.prototype.getPosition = function ($element) { 1668 $element = $element || this.$element 1669 1670 var el = $element[0] 1671 var isBody = el.tagName == 'BODY' 1672 1673 var elRect = el.getBoundingClientRect() 1674 if (elRect.width == null) { 1675 // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093 1676 elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top }) 1677 } 1678 var isSvg = window.SVGElement && el instanceof window.SVGElement 1679 // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3. 1680 // See https://github.com/twbs/bootstrap/issues/20280 1681 var elOffset = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset()) 1682 var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() } 1683 var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null 1684 1685 return $.extend({}, elRect, scroll, outerDims, elOffset) 1686 } 1687 1688 Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) { 1689 return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } : 1690 placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } : 1691 placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } : 1692 /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width } 1693 1694 } 1695 1696 Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) { 1697 var delta = { top: 0, left: 0 } 1698 if (!this.$viewport) return delta 1699 1700 var viewportPadding = this.options.viewport && this.options.viewport.padding || 0 1701 var viewportDimensions = this.getPosition(this.$viewport) 1702 1703 if (/right|left/.test(placement)) { 1704 var topEdgeOffset = pos.top - viewportPadding - viewportDimensions.scroll 1705 var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight 1706 if (topEdgeOffset < viewportDimensions.top) { // top overflow 1707 delta.top = viewportDimensions.top - topEdgeOffset 1708 } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow 1709 delta.top = viewportDimensions.top + viewportDimensions.height - bottom
vendor: 19,773 bytes, lines 1709-2432
1709EdgeOffset 1710 } 1711 } else { 1712 var leftEdgeOffset = pos.left - viewportPadding 1713 var rightEdgeOffset = pos.left + viewportPadding + actualWidth 1714 if (leftEdgeOffset < viewportDimensions.left) { // left overflow 1715 delta.left = viewportDimensions.left - leftEdgeOffset 1716 } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow 1717 delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset 1718 } 1719 } 1720 1721 return delta 1722 } 1723 1724 Tooltip.prototype.getTitle = function () { 1725 var title 1726 var $e = this.$element 1727 var o = this.options 1728 1729 title = $e.attr('data-original-title') 1730 || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title) 1731 1732 return title 1733 } 1734 1735 Tooltip.prototype.getUID = function (prefix) { 1736 do prefix += ~~(Math.random() * 1000000) 1737 while (document.getElementById(prefix)) 1738 return prefix 1739 } 1740 1741 Tooltip.prototype.tip = function () { 1742 if (!this.$tip) { 1743 this.$tip = $(this.options.template) 1744 if (this.$tip.length != 1) { 1745 throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!') 1746 } 1747 } 1748 return this.$tip 1749 } 1750 1751 Tooltip.prototype.arrow = function () { 1752 return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')) 1753 } 1754 1755 Tooltip.prototype.enable = function () { 1756 this.enabled = true 1757 } 1758 1759 Tooltip.prototype.disable = function () { 1760 this.enabled = false 1761 } 1762 1763 Tooltip.prototype.toggleEnabled = function () { 1764 this.enabled = !this.enabled 1765 } 1766 1767 Tooltip.prototype.toggle = function (e) { 1768 var self = this 1769 if (e) { 1770 self = $(e.currentTarget).data('bs.' + this.type) 1771 if (!self) { 1772 self = new this.constructor(e.currentTarget, this.getDelegateOptions()) 1773 $(e.currentTarget).data('bs.' + this.type, self) 1774 } 1775 } 1776 1777 if (e) { 1778 self.inState.click = !self.inState.click 1779 if (self.isInStateTrue()) self.enter(self) 1780 else self.leave(self) 1781 } else { 1782 self.tip().hasClass('in') ? self.leave(self) : self.enter(self) 1783 } 1784 } 1785 1786 Tooltip.prototype.destroy = function () { 1787 var that = this 1788 clearTimeout(this.timeout) 1789 this.hide(function () { 1790 that.$element.off('.' + that.type).removeData('bs.' + that.type) 1791 if (that.$tip) { 1792 that.$tip.detach() 1793 } 1794 that.$tip = null 1795 that.$arrow = null 1796 that.$viewport = null 1797 that.$element = null 1798 }) 1799 } 1800 1801 1802 // TOOLTIP PLUGIN DEFINITION 1803 // ========================= 1804 1805 function Plugin(option) { 1806 return this.each(function () { 1807 var $this = $(this) 1808 var data = $this.data('bs.tooltip') 1809 var options = typeof option == 'object' && option 1810 1811 if (!data && /destroy|hide/.test(option)) return 1812 if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options))) 1813 if (typeof option == 'string') data[option]() 1814 }) 1815 } 1816 1817 var old = $.fn.tooltip 1818 1819 $.fn.tooltip = Plugin 1820 $.fn.tooltip.Constructor = Tooltip 1821 1822 1823 // TOOLTIP NO CONFLICT 1824 // =================== 1825 1826 $.fn.tooltip.noConflict = function () { 1827 $.fn.tooltip = old 1828 return this 1829 } 1830 1831}(jQuery); 1832 1833/* ======================================================================== 1834 * Bootstrap: popover.js v3.3.7 1835 * http://getbootstrap.com/javascript/#popovers 1836 * ======================================================================== 1837 * Copyright 2011-2016 Twitter, Inc. 1838 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 1839 * ======================================================================== */ 1840 1841 1842+function ($) { 1843 'use strict'; 1844 1845 // POPOVER PUBLIC CLASS DEFINITION 1846 // =============================== 1847 1848 var Popover = function (element, options) { 1849 this.init('popover', element, options) 1850 } 1851 1852 if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') 1853 1854 Popover.VERSION = '3.3.7' 1855 1856 Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { 1857 placement: 'right', 1858 trigger: 'click', 1859 content: '', 1860 template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' 1861 }) 1862 1863 1864 // NOTE: POPOVER EXTENDS tooltip.js 1865 // ================================ 1866 1867 Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype) 1868 1869 Popover.prototype.constructor = Popover 1870 1871 Popover.prototype.getDefaults = function () { 1872 return Popover.DEFAULTS 1873 } 1874 1875 Popover.prototype.setContent = function () { 1876 var $tip = this.tip() 1877 var title = this.getTitle() 1878 var content = this.getContent() 1879 1880 $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title) 1881 $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events 1882 this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text' 1883 ](content) 1884 1885 $tip.removeClass('fade top bottom left right in') 1886 1887 // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do 1888 // this manually by checking the contents. 1889 if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide() 1890 } 1891 1892 Popover.prototype.hasContent = function () { 1893 return this.getTitle() || this.getContent() 1894 } 1895 1896 Popover.prototype.getContent = function () { 1897 var $e = this.$element 1898 var o = this.options 1899 1900 return $e.attr('data-content') 1901 || (typeof o.content == 'function' ? 1902 o.content.call($e[0]) : 1903 o.content) 1904 } 1905 1906 Popover.prototype.arrow = function () { 1907 return (this.$arrow = this.$arrow || this.tip().find('.arrow')) 1908 } 1909 1910 1911 // POPOVER PLUGIN DEFINITION 1912 // ========================= 1913 1914 function Plugin(option) { 1915 return this.each(function () { 1916 var $this = $(this) 1917 var data = $this.data('bs.popover') 1918 var options = typeof option == 'object' && option 1919 1920 if (!data && /destroy|hide/.test(option)) return 1921 if (!data) $this.data('bs.popover', (data = new Popover(this, options))) 1922 if (typeof option == 'string') data[option]() 1923 }) 1924 } 1925 1926 var old = $.fn.popover 1927 1928 $.fn.popover = Plugin 1929 $.fn.popover.Constructor = Popover 1930 1931 1932 // POPOVER NO CONFLICT 1933 // =================== 1934 1935 $.fn.popover.noConflict = function () { 1936 $.fn.popover = old 1937 return this 1938 } 1939 1940}(jQuery); 1941 1942/* ======================================================================== 1943 * Bootstrap: scrollspy.js v3.3.7 1944 * http://getbootstrap.com/javascript/#scrollspy 1945 * ======================================================================== 1946 * Copyright 2011-2016 Twitter, Inc. 1947 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 1948 * ======================================================================== */ 1949 1950 1951+function ($) { 1952 'use strict'; 1953 1954 // SCROLLSPY CLASS DEFINITION 1955 // ========================== 1956 1957 function ScrollSpy(element, options) { 1958 this.$body = $(document.body) 1959 this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) 1960 this.options = $.extend({}, ScrollSpy.DEFAULTS, options) 1961 this.selector = (this.options.target || '') + ' .nav li > a' 1962 this.offsets = [] 1963 this.targets = [] 1964 this.activeTarget = null 1965 this.scrollHeight = 0 1966 1967 this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this)) 1968 this.refresh() 1969 this.process() 1970 } 1971 1972 ScrollSpy.VERSION = '3.3.7' 1973 1974 ScrollSpy.DEFAULTS = { 1975 offset: 10 1976 } 1977 1978 ScrollSpy.prototype.getScrollHeight = function () { 1979 return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) 1980 } 1981 1982 ScrollSpy.prototype.refresh = function () { 1983 var that = this 1984 var offsetMethod = 'offset' 1985 var offsetBase = 0 1986 1987 this.offsets = [] 1988 this.targets = [] 1989 this.scrollHeight = this.getScrollHeight() 1990 1991 if (!$.isWindow(this.$scrollElement[0])) { 1992 offsetMethod = 'position' 1993 offsetBase = this.$scrollElement.scrollTop() 1994 } 1995 1996 this.$body 1997 .find(this.selector) 1998 .map(function () { 1999 var $el = $(this) 2000 var href = $el.data('target') || $el.attr('href') 2001 var $href = /^#./.test(href) && $(href) 2002 2003 return ($href 2004 && $href.length 2005 && $href.is(':visible') 2006 && [[$href[offsetMethod]().top + offsetBase, href]]) || null 2007 }) 2008 .sort(function (a, b) { return a[0] - b[0] }) 2009 .each(function () { 2010 that.offsets.push(this[0]) 2011 that.targets.push(this[1]) 2012 }) 2013 } 2014 2015 ScrollSpy.prototype.process = function () { 2016 var scrollTop = this.$scrollElement.scrollTop() + this.options.offset 2017 var scrollHeight = this.getScrollHeight() 2018 var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height() 2019 var offsets = this.offsets 2020 var targets = this.targets 2021 var activeTarget = this.activeTarget 2022 var i 2023 2024 if (this.scrollHeight != scrollHeight) { 2025 this.refresh() 2026 } 2027 2028 if (scrollTop >= maxScroll) { 2029 return activeTarget != (i = targets[targets.length - 1]) && this.activate(i) 2030 } 2031 2032 if (activeTarget && scrollTop < offsets[0]) { 2033 this.activeTarget = null 2034 return this.clear() 2035 } 2036 2037 for (i = offsets.length; i--;) { 2038 activeTarget != targets[i] 2039 && scrollTop >= offsets[i] 2040 && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) 2041 && this.activate(targets[i]) 2042 } 2043 } 2044 2045 ScrollSpy.prototype.activate = function (target) { 2046 this.activeTarget = target 2047 2048 this.clear() 2049 2050 var selector = this.selector + 2051 '[data-target="' + target + '"],' + 2052 this.selector + '[href="' + target + '"]' 2053 2054 var active = $(selector) 2055 .parents('li') 2056 .addClass('active') 2057 2058 if (active.parent('.dropdown-menu').length) { 2059 active = active 2060 .closest('li.dropdown') 2061 .addClass('active') 2062 } 2063 2064 active.trigger('activate.bs.scrollspy') 2065 } 2066 2067 ScrollSpy.prototype.clear = function () { 2068 $(this.selector) 2069 .parentsUntil(this.options.target, '.active') 2070 .removeClass('active') 2071 } 2072 2073 2074 // SCROLLSPY PLUGIN DEFINITION 2075 // =========================== 2076 2077 function Plugin(option) { 2078 return this.each(function () { 2079 var $this = $(this) 2080 var data = $this.data('bs.scrollspy') 2081 var options = typeof option == 'object' && option 2082 2083 if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) 2084 if (typeof option == 'string') data[option]() 2085 }) 2086 } 2087 2088 var old = $.fn.scrollspy 2089 2090 $.fn.scrollspy = Plugin 2091 $.fn.scrollspy.Constructor = ScrollSpy 2092 2093 2094 // SCROLLSPY NO CONFLICT 2095 // ===================== 2096 2097 $.fn.scrollspy.noConflict = function () { 2098 $.fn.scrollspy = old 2099 return this 2100 } 2101 2102 2103 // SCROLLSPY DATA-API 2104 // ================== 2105 2106 $(window).on('load.bs.scrollspy.data-api', function () { 2107 $('[data-spy="scroll"]').each(function () { 2108 var $spy = $(this) 2109 Plugin.call($spy, $spy.data()) 2110 }) 2111 }) 2112 2113}(jQuery); 2114 2115/* ======================================================================== 2116 * Bootstrap: tab.js v3.3.7 2117 * http://getbootstrap.com/javascript/#tabs 2118 * ======================================================================== 2119 * Copyright 2011-2016 Twitter, Inc. 2120 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 2121 * ======================================================================== */ 2122 2123 2124+function ($) { 2125 'use strict'; 2126 2127 // TAB CLASS DEFINITION 2128 // ==================== 2129 2130 var Tab = function (element) { 2131 // jscs:disable requireDollarBeforejQueryAssignment 2132 this.element = $(element) 2133 // jscs:enable requireDollarBeforejQueryAssignment 2134 } 2135 2136 Tab.VERSION = '3.3.7' 2137 2138 Tab.TRANSITION_DURATION = 150 2139 2140 Tab.prototype.show = function () { 2141 var $this = this.element 2142 var $ul = $this.closest('ul:not(.dropdown-menu)') 2143 var selector = $this.data('target') 2144 2145 if (!selector) { 2146 selector = $this.attr('href') 2147 selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 2148 } 2149 2150 if ($this.parent('li').hasClass('active')) return 2151 2152 var $previous = $ul.find('.active:last a') 2153 var hideEvent = $.Event('hide.bs.tab', { 2154 relatedTarget: $this[0] 2155 }) 2156 var showEvent = $.Event('show.bs.tab', { 2157 relatedTarget: $previous[0] 2158 }) 2159 2160 $previous.trigger(hideEvent) 2161 $this.trigger(showEvent) 2162 2163 if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return 2164 2165 var $target = $(selector) 2166 2167 this.activate($this.closest('li'), $ul) 2168 this.activate($target, $target.parent(), function () { 2169 $previous.trigger({ 2170 type: 'hidden.bs.tab', 2171 relatedTarget: $this[0] 2172 }) 2173 $this.trigger({ 2174 type: 'shown.bs.tab', 2175 relatedTarget: $previous[0] 2176 }) 2177 }) 2178 } 2179 2180 Tab.prototype.activate = function (element, container, callback) { 2181 var $active = container.find('> .active') 2182 var transition = callback 2183 && $.support.transition 2184 && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length) 2185 2186 function next() { 2187 $active 2188 .removeClass('active') 2189 .find('> .dropdown-menu > .active') 2190 .removeClass('active') 2191 .end() 2192 .find('[data-toggle="tab"]') 2193 .attr('aria-expanded', false) 2194 2195 element 2196 .addClass('active') 2197 .find('[data-toggle="tab"]') 2198 .attr('aria-expanded', true) 2199 2200 if (transition) { 2201 element[0].offsetWidth // reflow for transition 2202 element.addClass('in') 2203 } else { 2204 element.removeClass('fade') 2205 } 2206 2207 if (element.parent('.dropdown-menu').length) { 2208 element 2209 .closest('li.dropdown') 2210 .addClass('active') 2211 .end() 2212 .find('[data-toggle="tab"]') 2213 .attr('aria-expanded', true) 2214 } 2215 2216 callback && callback() 2217 } 2218 2219 $active.length && transition ? 2220 $active 2221 .one('bsTransitionEnd', next) 2222 .emulateTransitionEnd(Tab.TRANSITION_DURATION) : 2223 next() 2224 2225 $active.removeClass('in') 2226 } 2227 2228 2229 // TAB PLUGIN DEFINITION 2230 // ===================== 2231 2232 function Plugin(option) { 2233 return this.each(function () { 2234 var $this = $(this) 2235 var data = $this.data('bs.tab') 2236 2237 if (!data) $this.data('bs.tab', (data = new Tab(this))) 2238 if (typeof option == 'string') data[option]() 2239 }) 2240 } 2241 2242 var old = $.fn.tab 2243 2244 $.fn.tab = Plugin 2245 $.fn.tab.Constructor = Tab 2246 2247 2248 // TAB NO CONFLICT 2249 // =============== 2250 2251 $.fn.tab.noConflict = function () { 2252 $.fn.tab = old 2253 return this 2254 } 2255 2256 2257 // TAB DATA-API 2258 // ============ 2259 2260 var clickHandler = function (e) { 2261 e.preventDefault() 2262 Plugin.call($(this), 'show') 2263 } 2264 2265 $(document) 2266 .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler) 2267 .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler) 2268 2269}(jQuery); 2270 2271/* ======================================================================== 2272 * Bootstrap: affix.js v3.3.7 2273 * http://getbootstrap.com/javascript/#affix 2274 * ======================================================================== 2275 * Copyright 2011-2016 Twitter, Inc. 2276 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 2277 * ======================================================================== */ 2278 2279 2280+function ($) { 2281 'use strict'; 2282 2283 // AFFIX CLASS DEFINITION 2284 // ====================== 2285 2286 var Affix = function (element, options) { 2287 this.options = $.extend({}, Affix.DEFAULTS, options) 2288 2289 this.$target = $(this.options.target) 2290 .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) 2291 .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) 2292 2293 this.$element = $(element) 2294 this.affixed = null 2295 this.unpin = null 2296 this.pinnedOffset = null 2297 2298 this.checkPosition() 2299 } 2300 2301 Affix.VERSION = '3.3.7' 2302 2303 Affix.RESET = 'affix affix-top affix-bottom' 2304 2305 Affix.DEFAULTS = { 2306 offset: 0, 2307 target: window 2308 } 2309 2310 Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) { 2311 var scrollTop = this.$target.scrollTop() 2312 var position = this.$element.offset() 2313 var targetHeight = this.$target.height() 2314 2315 if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false 2316 2317 if (this.affixed == 'bottom') { 2318 if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom' 2319 return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom' 2320 } 2321 2322 var initializing = this.affixed == null 2323 var colliderTop = initializing ? scrollTop : position.top 2324 var colliderHeight = initializing ? targetHeight : height 2325 2326 if (offsetTop != null && scrollTop <= offsetTop) return 'top' 2327 if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom' 2328 2329 return false 2330 } 2331 2332 Affix.prototype.getPinnedOffset = function () { 2333 if (this.pinnedOffset) return this.pinnedOffset 2334 this.$element.removeClass(Affix.RESET).addClass('affix') 2335 var scrollTop = this.$target.scrollTop() 2336 var position = this.$element.offset() 2337 return (this.pinnedOffset = position.top - scrollTop) 2338 } 2339 2340 Affix.prototype.checkPositionWithEventLoop = function () { 2341 setTimeout($.proxy(this.checkPosition, this), 1) 2342 } 2343 2344 Affix.prototype.checkPosition = function () { 2345 if (!this.$element.is(':visible')) return 2346 2347 var height = this.$element.height() 2348 var offset = this.options.offset 2349 var offsetTop = offset.top 2350 var offsetBottom = offset.bottom 2351 var scrollHeight = Math.max($(document).height(), $(document.body).height()) 2352 2353 if (typeof offset != 'object') offsetBottom = offsetTop = offset 2354 if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) 2355 if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) 2356 2357 var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom) 2358 2359 if (this.affixed != affix) { 2360 if (this.unpin != null) this.$element.css('top', '') 2361 2362 var affixType = 'affix' + (affix ? '-' + affix : '') 2363 var e = $.Event(affixType + '.bs.affix') 2364 2365 this.$element.trigger(e) 2366 2367 if (e.isDefaultPrevented()) return 2368 2369 this.affixed = affix 2370 this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null 2371 2372 this.$element 2373 .removeClass(Affix.RESET) 2374 .addClass(affixType) 2375 .trigger(affixType.replace('affix', 'affixed') + '.bs.affix') 2376 } 2377 2378 if (affix == 'bottom') { 2379 this.$element.offset({ 2380 top: scrollHeight - height - offsetBottom 2381 }) 2382 } 2383 } 2384 2385 2386 // AFFIX PLUGIN DEFINITION 2387 // ======================= 2388 2389 function Plugin(option) { 2390 return this.each(function () { 2391 var $this = $(this) 2392 var data = $this.data('bs.affix') 2393 var options = typeof option == 'object' && option 2394 2395 if (!data) $this.data('bs.affix', (data = new Affix(this, options))) 2396 if (typeof option == 'string') data[option]() 2397 }) 2398 } 2399 2400 var old = $.fn.affix 2401 2402 $.fn.affix = Plugin 2403 $.fn.affix.Constructor = Affix 2404 2405 2406 // AFFIX NO CONFLICT 2407 // ================= 2408 2409 $.fn.affix.noConflict = function () { 2410 $.fn.affix = old 2411 return this 2412 } 2413 2414 2415 // AFFIX DATA-API 2416 // ============== 2417 2418 $(window).on('load', function () { 2419 $('[data-spy="affix"]').each(function () { 2420 var $spy = $(this) 2421 var data = $spy.data() 2422 2423 data.offset = data.offset || {} 2424 2425 if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom 2426 if (data.offsetTop != null) data.offset.top = data.offsetTop 2427 2428 Plugin.call($spy, data) 2429 }) 2430 }) 2431 2432}(jQuery);
2433 2434+function (n) { "use strict"; function r(i) { return this.each(function () { var u = n(this), r = u.data("bs.tooltip"), f = typeof i == "object" && i; (r || !/destroy|hide/.test(i)) && (r || u.data("bs.tooltip", r = new t(this, f)), typeof i == "string" && r[i]()) }) } var t = function (n, t) { this.type = null; this.options = null; this.enabled = null; this.timeout = null; this.hoverState = null; this.$element = null; this.inState = null; this.init("tooltip", n, t) }, i; t.VERSION = "3.3.5"; t.TRANSITION_DURATION = 150; t.DEFAULTS = { animation: !0, placement: "top", selector: !1, template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>', trigger: "hover focus", title: "", delay: 0, html: !1, container: !1, viewport: { selector: "body", padding: 0 } }; t.prototype.init = function (t, i, r) { var f, e, u, o, s; if (this.enabled = !0, this.type = t, this.$element = n(i), this.options = this.getOptions(r), this.$viewport = this.options.viewport && n(n.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = { click: !1, hover: !1, focus: !1 }, this.$element[0] instanceof document.constructor && !this.options.selector) throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!"); for (f = this.options.trigger.split(" "), e = f.length; e--;) if (u = f[e], u == "click") this.$element.on("click." + this.type, this.options.selector, n.proxy(this.toggle, this)); else if (u != "manual") { o = u == "hover" ? "mouseenter" : "focusin"; s = u == "hover" ? "mouseleave" : "focusout"; this.$element.on(o + "." + this.type, this.options.selector, n.proxy(this.enter, this)); this.$element.on(s + "." + this.type, this.options.selector, n.proxy(this.leave, this)) } this.options.selector ? this._options = n.extend({}, this.options, { trigger: "manual", selector: "" }) : this.fixTitle() }; t.prototype.getDefaults = function () { return t.DEFAULTS }; t.prototype.getOptions = function (t) { return t = n.extend({}, this.getDefaults(), this.$element.data(), t), t.delay && typeof t.delay == "number" && (t.delay = { show: t.delay, hide: t.delay }), t }; t.prototype.getDelegateOptions = function () { var t = {}, i = this.getDefaults(); return this._options && n.each(this._options, function (n, r) { i[n] != r && (t[n] = r) }), t }; t.prototype.enter = function (t) { var i = t instanceof this.constructor ? t : n(t.currentTarget).data("bs." + this.type); if (i || (i = new this.constructor(t.currentTarget, this.getDelegateOptions()), n(t.currentTarget).data("bs." + this.type, i)), t instanceof n.Event && (i.inState[t.type == "focusin" ? "focus" : "hover"] = !0), i.tip().hasClass("in") || i.hoverState == "in") { i.hoverState = "in"; return } if (clearTimeout(i.timeout), i.hoverState = "in", !i.options.delay || !i.options.delay.show) return i.show(); i.timeout = setTimeout(function () { i.hoverState == "in" && i.show() }, i.options.delay.show) }; t.prototype.isInStateTrue = function () { for (var n in this.inState) if (this.inState[n]) return !0; return !1 }; t.prototype.leave = function (t) { var i = t instanceof this.constructor ? t : n(t.currentTarget).data("bs." + this.type); if (i || (i = new this.constructor(t.currentTarget, this.getDelegateOptions()), n(t.currentTarget).data("bs." + this.type, i)), t instanceof n.Event && (i.inState[t.type == "focusout" ? "focus" : "hover"] = !1), !i.isInStateTrue()) { if (clearTimeout(i.timeout), i.hoverState = "out", !i.options.delay || !i.options.delay.hide) return i.hide(); i.timeout = setTimeout(function () { i.hoverState == "out" && i.hide() }, i.options.delay.hide) } }; t.prototype.show = function () { var c = n.Event("show.bs." + this.type), l, p, e, w, h; if (this.hasContent() && this.enabled) { if (this.$element.trigger(c), l = n.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]), c.isDefaultPrevented() || !l) return; var u = this, r = this.tip(), a = this.getUID(this.type); this.setContent(); r.attr("id", a); this.$element.attr("aria-describedby", a); this.options.animation && r.addClass("fade"); var i = typeof this.options.placement == "function" ? this.options.placement.call(this, r[0], this.$element[0]) : this.options.placement, v = /\s?auto?\s?/i, y = v.test(i); y && (i = i.replace(v, "") || "top"); r.detach().css({ top: 0, left: 0, display: "block" }).addClass(i).data("bs." + this.type, this); this.options.container ? r.appendTo(this.options.container) : r.insertAfter(this.$element); this.$element.trigger("inserted.bs." + this.type); var f = this.getPosition(), o = r[0].offsetWidth, s = r[0].offsetHeight; y && (p = i, e = this.getPosition(this.$viewport), i = i == "bottom" && f.bottom + s > e.bottom ? "top" : i == "top" && f.top - s < e.top ? "bottom" : i == "right" && f.right + o > e.width ? "left" : i == "left" && f.left - o < e.left ? "right" : i, r.removeClass(p).addClass(i)); w = this.getCalculatedOffset(i, f, o, s); this.applyPlacement(w, i); h = function () { var n = u.hoverState; u.$element.trigger("shown.bs." + u.type); u.hoverState = null; n == "out" && u.leave(u) }; n.support.transition && this.$tip.hasClass("fade") ? r.one("bsTransitionEnd", h).emulateTransitionEnd(t.TRANSITION_DURATION) : h() } }; t.prototype.applyPlacement = function (t, i) { var r = this.tip(), l = r[0].offsetWidth, e = r[0].offsetHeight, o = parseInt(r.css("margin-top"), 10), s = parseInt(r.css("margin-left"), 10), h, f, u; isNaN(o) && (o = 0); isNaN(s) && (s = 0); t.top += o; t.left += s; n.offset.setOffset(r[0], n.extend({ using: function (n) { r.css({ top: Math.round(n.top), left: Math.round(n.left) }) } }, t), 0); r.addClass("in"); h = r[0].offsetWidth; f = r[0].offsetHeight; i == "top" && f != e && (t.top = t.top + e - f); u = this.getViewportAdjustedDelta(i, t, h, f); u.left ? t.left += u.left : t.top += u.top; var c = /top|bottom/.test(i), a = c ? u.left * 2 - l + h : u.top * 2 - e + f, v = c ? "offsetWidth" : "offsetHeight"; r.offset(t); this.replaceArrow(a, r[0][v], c) }; t.prototype.replaceArrow = function (n, t, i) { this.arrow().css(i ? "left" : "top", 50 * (1 - n / t) + "%").css(i ? "top" : "left", "") }; t.prototype.setContent = function () { var n = this.tip(), t = this.getTitle(); n.find(".tooltip-inner")[this.options.html ? "html" : "text"](t); n.removeClass("fade in top bottom left right") }; t.prototype.hide = function (i) { function e() { u.hoverState != "in" && r.detach(); u.$element.removeAttr("aria-describedby").trigger("hidden.bs." + u.type); i && i() } var u = this, r = n(this.$tip), f = n.Event("hide.bs." + this.type); if (this.$element.trigger(f), !f.isDefaultPrevented()) return r.removeClass("in"), n.support.transition && r.hasClass("fade") ? r.one("bsTransitionEnd", e).emulateTransitionEnd(t.TRANSITION_DURATION) : e(), this.hoverState = null, this }; t.prototype.fixTitle = function () { var n = this.$element; (n.attr("title") || typeof n.attr("data-original-title") != "string") && n.attr("data-original-title", n.attr("title") || "").attr("title", "") }; t.prototype.hasContent = function () { return this.getTitle() }; t.prototype.getPosition = function (t) { t = t || this.$element; var u = t[0], r = u.tagName == "BODY", i = u.getBoundingClientRect(); i.width == null && (i = n.extend({}, i, { width: i.right - i.left, height: i.bottom - i.top })); var f = r ? { top: 0, left: 0 } : t.offset(), e = { scroll: r ? document.documentElement.scrollTop || document.body.scrollTop : t.scrollTop() }, o = r ? { width: n(window).width(), height: n(window).height() } : null; return n.extend({}, i, e, o, f) }; t.prototype.getCalculatedOffset = function (n, t, i, r) { return n == "bottom" ? { top: t.top + t.height, left: t.left + t.width / 2 - i / 2 } : n == "top" ? { top: t.top - r, left: t.left + t.width / 2 - i / 2 } : n == "left" ? { top: t.top + t.height / 2 - r / 2, left: t.left - i } : { top: t.top + t.height / 2 - r / 2, left: t.left + t.width } }; t.prototype.getViewportAdjustedDelta = function (n, t, i, r) { var f = { top: 0, left: 0 }, e, u, o, s, h, c; return this.$viewport ? (e = this.options.viewport && this.options.viewport.padding || 0, u = this.getPosition(this.$viewport), /right|left/.test(n) ? (o = t.top - e - u.scroll, s = t.top + e - u.scroll + r, o < u.top ? f.top = u.top - o : s > u.top + u.height && (f.top = u.top + u.height - s)) : (h = t.left - e, c = t.left + e + i, h < u.left ? f.left = u.left - h : c > u.right && (f.left = u.left + u.width - c)), f) : f }; t.prototype.getTitle = function () { var t = this.$element, n = this.options; return t.attr("data-original-title") || (typeof n.title == "function" ? n.title.call(t[0]) : n.title) }; t.prototype.getUID = function (n) { do n += ~~(Math.random() * 1e6); while (document.getElementById(n)); return n }; t.prototype.tip = function () { if (!this.$tip && (this.$tip = n(this.options.template), this.$tip.length != 1)) throw new Error(this.t
2434ype + " `template` option must consist of exactly 1 top-level element!"); return this.$tip }; t.prototype.arrow = function () { return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow") }; t.prototype.enable = function () { this.enabled = !0 }; t.prototype.disable = function () { this.enabled = !1 }; t.prototype.toggleEnabled = function () { this.enabled = !this.enabled }; t.prototype.toggle = function (t) { var i = this; t && (i = n(t.currentTarget).data("bs." + this.type), i || (i = new this.constructor(t.currentTarget, this.getDelegateOptions()), n(t.currentTarget).data("bs." + this.type, i))); t ? (i.inState.click = !i.inState.click, i.isInStateTrue() ? i.enter(i) : i.leave(i)) : i.tip().hasClass("in") ? i.leave(i) : i.enter(i) }; t.prototype.destroy = function () { var n = this; clearTimeout(this.timeout); this.hide(function () { n.$element.off("." + n.type).removeData("bs." + n.type); n.$tip && n.$tip.detach(); n.$tip = null; n.$arrow = null; n.$viewport = null }) }; i = n.fn.tooltip; n.fn.tooltip = r; n.fn.tooltip.Constructor = t; n.fn.tooltip.noConflict = function () { return n.fn.tooltip = i, this } }(jQuery); +function (n) { "use strict"; function r(i) { return this.each(function () { var u = n(this), r = u.data("bs.popover"), f = typeof i == "object" && i; (r || !/destroy|hide/.test(i)) && (r || u.data("bs.popover", r = new t(this, f)), typeof i == "string" && r[i]()) }) } var t = function (n, t) { this.init("popover", n, t) }, i; if (!n.fn.tooltip) throw new Error("Popover requires tooltip.js"); t.VERSION = "3.3.5"; t.DEFAULTS = n.extend({}, n.fn.tooltip.Constructor.DEFAULTS, { placement: "right", trigger: "click", content: "", template: '<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>' }); t.prototype = n.extend({}, n.fn.tooltip.Constructor.prototype); t.prototype.constructor = t; t.prototype.getDefaults = function () { return t.DEFAULTS }; t.prototype.setContent = function () { var n = this.tip(), i = this.getTitle(), t = this.getContent(); n.find(".popover-title")[this.options.html ? "html" : "text"](i); n.find(".popover-content").children().detach().end()[this.options.html ? typeof t == "string" ? "html" : "append" : "text"](t); n.removeClass("fade top bottom left right in"); n.find(".popover-title").html() || n.find(".popover-title").hide() }; t.prototype.hasContent = function () { return this.getTitle() || this.getContent() }; t.prototype.getContent = function () { var t = this.$element, n = this.options; return t.attr("data-content") || (typeof n.content == "function" ? n.content.call(t[0]) : n.content) }; t.prototype.arrow = function () { return this.$arrow = this.$arrow || this.tip().find(".arrow") }; i = n.fn.popover; n.fn.popover = r; n.fn.popover.Constructor = t; n.fn.popover.noConflict = function () { return n.fn.popover = i, this } }(jQuery); 2435 2436/* 2437* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 2438*/ 2439 2440(function ($) { 2441 $('[data-toggle="tooltip"]').tooltip(); 2442 $('[data-toggle="popover"]').popover(); 2443}(jQuery)); 2444 2445/* 2446-------------------------------- 2447Ajax Contact Form 2448-------------------------------- 2449+ https://github.com/pinceladasdaweb/Ajax-Contact-Form 2450+ A Simple Ajax Contact Form developed in PHP with HTML5 Form validation. 2451+ Has a fallback in jQuery for browsers that do not support HTML5 form validation. 2452+ version 1.0.1 2453+ Copyright 2014 Pedro Rogerio 2454+ Licensed under the MIT license 2455+ https://github.com/pinceladasdaweb/Ajax-Contact-Form 2456*/ 2457 2458(function ($, window, document, undefined) { 2459 'use strict'; 2460 2461 $(document).ready(function () { 2462 $('.form-ajax').each(function (index) { 2463 var form = this; 2464 var sendToEmail = $(this).attr("data-email"); 2465 if (isEmpty(sendToEmail)) sendToEmail = ''; 2466 2467 $(form).submit(function (e) { 2468 // remove the error class 2469 $('.form-group').removeClass('has-error'); 2470 $('.help-block').remove(); 2471 2472 // get the form data 2473 var formData = { 2474 'values': {}, 2475 'domain': window.location.hostname.replace("www.", ""), 2476 'email': sendToEmail 2477 }; 2478 2479 $(form).find(".form-value").each(function () { 2480 var val = $(this).val(); 2481 if (!isEmpty(val)) { 2482 var name = $(this).attr("data-name"); 2483 if (isEmpty(name)) name = $(this).attr("name"); 2484 if (isEmpty(name)) name = $(this).attr("id"); 2485 var error_msg = $(this).attr("data-error"); 2486 if (isEmpty(error_msg)) error_msg = ""; 2487 formData['values'][name] = [val, error_msg]; 2488 } 2489 }); 2490 2491 // process the form 2492 $.ajax({ 2493 type: 'POST', 2494 url: $(form).attr("action"), 2495 data: formData, 2496 dataType: 'json', 2497 encode: true 2498 }).done(function (data) { 2499 if (!data.success) { 2500 // Error 2501 console.log(data.errors.name); 2502 $(form).find(".success-box").show(); 2503 } else { 2504 // Success 2505 $(form).html($(form).find(".success-box").html()); 2506 } 2507 }).fail(function (data) { 2508 // Error 2509 console.log(data); 2510 $(form).find(".success-box").show(); 2511 }); 2512 2513 e.preventDefault(); 2514 }); 2515 }); 2516 }); 2517 2518}(jQuery, window, document)); 2519 2520/*! 2521 * imagesLoaded PACKAGED v3.1.8 2522 * JavaScript is all like "You images are done yet or what?" 2523 * MIT License 2524 */ 2525 2526(function () { function e() { } function t(e, t) { for (var n = e.length; n--;
2526) if (e[n].listener === t) return n; return -1 } function n(e) { return function () { return this[e].apply(this, arguments) } } var i = e.prototype, r = this, o = r.EventEmitter; i.getListeners = function (e) { var t, n, i = this._getEvents(); if ("object" == typeof e) { t = {}; for (n in i) i.hasOwnProperty(n) && e.test(n) && (t[n] = i[n]) } else t = i[e] || (i[e] = []); return t }, i.flattenListeners = function (e) { var t, n = []; for (t = 0; e.length > t; t += 1) n.push(e[t].listener); return n }, i.getListenersAsObject = function (e) { var t, n = this.getListeners(e); return n instanceof Array && (t = {}, t[e] = n), t || n }, i.addListener = function (e, n) { var i, r = this.getListenersAsObject(e), o = "object" == typeof n; for (i in r) r.hasOwnProperty(i) && -1 === t(r[i], n) && r[i].push(o ? n : { listener: n, once: !1 }); return this }, i.on = n("addListener"), i.addOnceListener = function (e, t) { return this.addListener(e, { listener: t, once: !0 }) }, i.once = n("addOnceListener"), i.defineEvent = function (e) { return this.getListeners(e), this }, i.defineEvents = function (e) { for (var t = 0; e.length > t; t += 1) this.defineEvent(e[t]); return this }, i.removeListener = function (e, n) { var i, r, o = this.getListenersAsObject(e); for (r in o) o.hasOwnProperty(r) && (i = t(o[r], n), -1 !== i && o[r].splice(i, 1)); return this }, i.off = n("removeListener"), i.addListeners = function (e, t) { return this.manipulateListeners(!1, e, t) }, i.removeListeners = function (e, t) { return this.manipulateListeners(!0, e, t) }, i.manipulateListeners = function (e, t, n) { var i, r, o = e ? this.removeListener : this.addListener, s = e ? this.removeListeners : this.addListeners; if ("object" != typeof t || t instanceof RegExp) for (i = n.length; i--;) o.call(this, t, n[i]); else for (i in t) t.hasOwnProperty(i) && (r = t[i]) && ("function" == typeof r ? o.call(this, i, r) : s.call(this, i, r)); return this }, i.removeEvent = function (e) { var t, n = typeof e, i = this._getEvents(); if ("string" === n) delete i[e]; else if ("object" === n) for (t in i) i.hasOwnProperty(t) && e.test(t) && delete i[t]; else delete this._events; return this }, i.removeAllListeners = n("removeEvent"), i.emitEvent = function (e, t) { var n, i, r, o, s = this.getListenersAsObject(e); for (r in s) if (s.hasOwnProperty(r)) for (i = s[r].length; i--;) n = s[r][i], n.once === !0 && this.removeListener(e, n.listener), o = n.listener.apply(this, t || []), o === this._getOnceReturnValue() && this.removeListener(e, n.listener); return this }, i.trigger = n("emitEvent"), i.emit = function (e) { var t = Array.prototype.slice.call(arguments, 1); return this.emitEvent(e, t) }, i.setOnceReturnValue = function (e) { return this._onceReturnValue = e, this }, i._getOnceReturnValue = function () { return this.hasOwnProperty("_onceReturnValue") ? this._onceReturnValue : !0 }, i._getEvents = function () { return this._events || (this._events = {}) }, e.noConflict = function () { return r.EventEmitter = o, e }, "function" == typeof define && define.amd ? define("eventEmitter/EventEmitter", [], function () { return e }) : "object" == typeof module && module.exports ? module.exports = e : this.EventEmitter = e }).call(this), function (e) { function t(t) { var n = e.event; return n.target = n.target || n.srcElement || t, n } var n = document.documentElement, i = function () { }; n.addEventListener ? i = function (e, t, n) { e.addEventListener(t, n, !1) } : n.attachEvent && (i = function (e, n, i) { e[n + i] = i.handleEvent ? function () { var n = t(e); i.handleEvent.call(i, n) } : function () { var n = t(e); i.call(e, n) }, e.attachEvent("on" + n, e[n + i]) }); var r = function () { }; n.removeEventListener ? r = function (e, t, n) { e.removeEventListener(t, n, !1) } : n.detachEvent && (r = function (e, t, n) { e.detachEvent("on" + t, e[t + n]); try { delete e[t + n] } catch (i) { e[t + n] = void 0 } }); var o = { bind: i, unbind: r }; "function" == typeof define && define.amd ? define("eventie/eventie", o) : e.eventie = o }(this), function (e, t) { "function" == typeof define && define.amd ? define(["eventEmitter/EventEmitter", "eventie/eventie"], function (n, i) { return t(e, n, i) }) : "object" == typeof exports ? module.exports = t(e, require("wolfy87-eventemitter"), require("eventie")) : e.imagesLoaded = t(e, e.EventEmitter, e.eventie) }(window, function (e, t, n) { function i(e, t) { for (var n in t) e[n] = t[n]; return e } function r(e) { return "[object Array]" === d.call(e) } function o(e) { var t = []; if (r(e)) t = e; else if ("number" == typeof e.length) for (var n = 0, i = e.length; i > n; n++) t.push(e[n]); else t.push(e); return t } function s(e, t, n) { if (!(this instanceof s)) return new s(e, t); "string" == typeof e && (e = document.querySelectorAll(e)), this.elements = o(e), this.options = i({}, this.options), "function" == typeof t ? n = t : i(this.options, t), n && this.on("always", n), this.getImages(), a && (this.jqDeferred = new a.Deferred); var r = this; setTimeout(function () { r.check() }) } function f(e) { this.img = e } function c(e) { this.src = e, v[e] = this } var a = e.jQuery, u = e.console, h = u !== void 0, d = Object.prototype.toString; s.prototype = new t, s.prototype.options = {}, s.prototype.getImages = function () { this.images = []; for (var e = 0, t = this.elements.length; t > e; e++) { var n = this.elements[e]; "IMG" === n.nodeName && this.addImage(n); var i = n.nodeType; if (i && (1 === i || 9 === i || 11 === i)) for (var r = n.querySelectorAll("img"), o = 0, s = r.length; s > o; o++) { var f = r[o]; this.addImage(f) } } }, s.prototype.addImage = function (e) { var t = new f(e); this.images.push(t) }
2526, s.prototype.check = function () { function e(e, r) { return t.options.debug && h && u.log("confirm", e, r), t.progress(e), n++, n === i && t.complete(), !0 } var t = this, n = 0, i = this.images.length; if (this.hasAnyBroken = !1, !i) return this.complete(), void 0; for (var r = 0; i > r; r++) { var o = this.images[r]; o.on("confirm", e), o.check() } }, s.prototype.progress = function (e) { this.hasAnyBroken = this.hasAnyBroken || !e.isLoaded; var t = this; setTimeout(function () { t.emit("progress", t, e), t.jqDeferred && t.jqDeferred.notify && t.jqDeferred.notify(t, e) }) }, s.prototype.complete = function () { var e = this.hasAnyBroken ? "fail" : "done"; this.isComplete = !0; var t = this; setTimeout(function () { if (t.emit(e, t), t.emit("always", t), t.jqDeferred) { var n = t.hasAnyBroken ? "reject" : "resolve"; t.jqDeferred[n](t) } }) }, a && (a.fn.imagesLoaded = function (e, t) { var n = new s(this, e, t); return n.jqDeferred.promise(a(this)) }), f.prototype = new t, f.prototype.check = function () { var e = v[this.img.src] || new c(this.img.src); if (e.isConfirmed) return this.confirm(e.isLoaded, "cached was confirmed"), void 0; if (this.img.complete && void 0 !== this.img.naturalWidth) return this.confirm(0 !== this.img.naturalWidth, "naturalWidth"), void 0; var t = this; e.on("confirm", function (e, n) { return t.confirm(e.isLoaded, n), !0 }), e.check() }, f.prototype.confirm = function (e, t) { this.isLoaded = e, this.emit("confirm", this, t) }; var v = {}; return c.prototype = new t, c.prototype.check = function () { if (!this.isChecked) { var e = new Image; n.bind(e, "load", this), n.bind(e, "error", this), e.src = this.src, this.isChecked = !0 } }, c.prototype.handleEvent = function (e) { var t = "on" + e.type; this[t] && this[t](e) }, c.prototype.onload = function (e) { this.confirm(!0, "onload"), this.unbindProxyEvents(e) }, c.prototype.onerror = function (e) { this.confirm(!1, "onerror"), this.unbindProxyEvents(e) }, c.prototype.confirm = function (e, t) { this.isConfirmed = !0, this.isLoaded = e, this.emit("confirm", this, t) }, c.prototype.unbindProxyEvents = function (e) { n.unbind(e.target, "load", this), n.unbind(e.target, "error", this) }, s }); 2527 2528/* 2529* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 2530*/ 2531 2532(function ($) { 2533 $.fn.renderLoadedImgs = function () { 2534 var isIsotope = false; 2535 var $isotope; 2536 var imgLoad = imagesLoaded($(this)); 2537 if ($(this).hasClass("maso-box")) { isIsotope = true; $isotope = this; } 2538 imgLoad.on('progress', function (instance, image) { 2539 var result = image.isLoaded ? 'loaded' : 'broken'; 2540 var target = "a" 2541 if ($(image.img).closest("ul.slides").length) target = ".slides li"; 2542 if ($(image.img).closest(".img-box").length) target = ".img-box"; 2543 if ($(image.img).closest(".img-box.thumbnail span img").length) target = "span"; 2544 if ($(image.img).closest("figure").length) target = "figure"; 2545 var cont = $(image.img).closest(target); 2546 var imgHeight = image.img.clientHeight; 2547 var colHeight = cont.get(0).clientHeight; 2548 var imgWidth = image.img.clientWidth; 2549 var colWidth = cont.get(0).clientWidth; 2550 if (result == "loaded") { 2551 if (isIsotope) { 2552 $isotope.isotope('layout'); 2553 var mi = $(image.img).closest('.maso-item'); 2554 $(mi).css("visibility", "visible"); 2555 $(mi).find("> *").animate({ "opacity": 1 }, 300); 2556 } 2557 if (imgHeight > colHeight) { 2558 $(image.img).css("margin-top", "-" + Math.floor(((imgHeight - colHeight) / 2)) + "px"); 2559 } else { 2560 var proportion = colHeight / imgHeight; 2561 var newWidth = imgWidth * proportion; 2562 if (newWidth / imgWidth > 1) { 2563 $(image.img).css("max-width", Math.ceil(newWidth) + "px").css("width", Math.ceil(newWidth) + "px");
2564 $(image.img).css("margin-left", "-" + Math.floor(((newWidth - colWidth) / 2)) + "px"); 2565 } 2566 } 2567 } 2568 }); 2569 } 2570 $(document).ready(function () { 2571 $(".img-box").each(function () { 2572 $(this).renderLoadedImgs(); 2573 }); 2574 }); 2575}(jQuery)); 2576 2577 2578 2579 2580 2581/*! 2582 * Isotope PACKAGED v2.2.0 2583 * 2584 * Licensed GPLv3 for open source use 2585 * or Isotope Commercial License for commercial use 2586 * 2587 * http://isotope.metafizzy.co 2588 * Copyright 2015 Metafizzy 2589 */ 2590 2591(function (t) { function e() { } function i(t) { function i(e) { e.prototype.option || (e.prototype.option = function (e) { t.isPlainObject(e) && (this.options = t.extend(!0, this.options, e)) }) } function n(e, i) { t.fn[e] = function (n) { if ("string" == typeof n) { for (var s = o.call(arguments, 1), a = 0, u = this.length; u > a; a++) { var p = this[a], h = t.data(p, e); if (h) if (t.isFunction(h[n]) && "_" !== n.charAt(0)) { var f = h[n].apply(h, s); if (void 0 !== f) return f } else r("no such method '" + n + "' for " + e + " instance"); else r("cannot call methods on " + e + " prior to initialization; " + "attempted to call '" + n + "'") } return this } return this.each(function () { var o = t.data(this, e); o ? (o.option(n), o._init()) : (o = new i(this, n), t.data(this, e, o)) }) } } if (t) { var r = "undefined" == typeof console ? e : function (t) { console.error(t) }; return t.bridget = function (t, e) { i(e), n(t, e) }, t.bridget } } var o = Array.prototype.slice; "function" == typeof define && define.amd ? define("jquery-bridget/jquery.bridget", ["jquery"], i) : "object" == typeof exports ? i(require("jquery")) : i(t.jQuery) })(window), function (t) { function e(e) { var i = t.event; return i.target = i.target || i.srcElement || e, i } var i = document.documentElement, o = function () { }; i.addEventListener ? o = function (t, e, i) { t.addEventListener(e, i, !1) } : i.attachEvent && (o = function (t, i, o) { t[i + o] = o.handleEvent ? function () { var i = e(t); o.handleEvent.call(o, i) } : function () { var i = e(t); o.call(t, i) }, t.attachEvent("on" + i, t[i + o]) }); var n = function () { }; i.removeEventListener ? n = function (t, e, i) { t.removeEventListener(e, i, !1) } : i.detachEvent && (n = function (t, e, i) { t.detachEvent("on" + e, t[e + i]); try { delete t[e + i] } catch (o) { t[e + i] = void 0 } }); var r = { bind: o, unbind: n }; "function" == typeof define && define.amd ? define("eventie/eventie", r) : "object" == typeof exports ? module.exports = r : t.eventie = r }(window), function () { function t() { } function e(t, e) { for (var i = t.length; i--;) if (t[i].listener === e) return i; return -1 } function i(t) { return function () { return this[t].apply(this, arguments) } } var o = t.prototype, n = this, r = n.EventEmitter; o.getListeners = function (t) { var e, i, o = this._getEvents(); if (t instanceof RegExp) { e = {}; for (i in o) o.hasOwnProperty(i) && t.test(i) && (e[i] = o[i]) } else e = o[t] || (o[t] = []); return e }, o.flattenListeners = function (t) { var e, i = []; for (e = 0; t.length > e; e += 1) i.push(t[e].listener); return i }, o.getListenersAsObject = function (t) { var e, i = this.getListeners(t); return i instanceof Array && (e = {}, e[t] = i), e || i }, o.addListener = function (t, i) { var o, n = this.getListenersAsObject(t), r = "object" == typeof i; for (o in n) n.hasOwnProperty(o) && -1 === e(n[o], i) && n[o].push(r ? i : { listener: i, once: !1 }); return this }, o.on = i("addListener"), o.addOnceListener = function (t, e) { return this.addListener(t, { listener: e, once: !0 }) }, o.once = i("addOnceListener"), o.defineEvent = function (t) { return this.getListeners(t), this }, o.defineEvents = function (t) { for (var e = 0; t.length > e; e += 1) this.defineEvent(t[e]); return this }, o.removeListener = function (t, i) { var o, n, r = this.getListenersAsObject(t); for (n in r) r.hasOwnProperty(n) && (o = e(r[n], i), -1 !== o && r[n].splice(o, 1)); return this }, o.off = i("removeListener"), o.addListeners = function (t, e) { return this.manipulateListeners(!1, t, e) }, o.removeListeners = function (t, e) { return this.manipulateListeners(!0, t, e) }, o.manipulateListeners = function (t, e, i) { var o, n, r = t ? this.removeListener : this.addListener, s = t ? this.removeListeners : this.addListeners; if ("object" != typeof e || e instanceof RegExp) for (o = i.length; o--;) r.call(this, e, i[o]); else for (o in e) e.hasOwnProperty(o) && (n = e[o]) && ("function" == typeof n ? r.call(this, o, n) : s.call(this, o, n)); return this }, o.removeEvent = function (t) { var e, i = typeof t, o = this._getEvents(); if ("string" === i) delete o[t]; else if (t instanceof RegExp) for (e in o) o.hasOwnProperty(e) && t.test(e) && delete o[e]; else delete this._events; return this }, o.removeAllListeners = i("removeEvent"), o.emitEvent = function (t, e) { var i, o, n, r, s = this.getListenersAsObject(t); for (n in s) if (s.hasOwnProperty(n)) for (o = s[n].length; o--;) i = s[n][o], i.once === !0 && this.removeListener(t, i.listener), r = i.listener.apply(this, e || []), r === this._getOnceReturnValue() && this.removeListener(t, i.listener); return this }, o.trigger = i("emitEvent"), o.emit = function (t) { var e = Array.prototype.slice.call(arguments, 1); return this.emitEvent(t, e) }, o.setOnceReturnValue = function (t) { return this._onceReturnValue = t, this }, o._getOnceReturnValue = function () { return this.hasOwnProperty("_onceReturnValue") ? this._onceReturnValue : !0 }, o._getEvents = function () { return this._events || (this._events = {}) }, t.noConflict = function () { return n.EventEmitter = r, t }, "function" == typeof define && define.amd ? define("eventEmitter/EventEmitter", [], function () { return t }) : "object" == typeof module && module.exports ? module.exports = t : n.EventEmitter = t }.call(this), function (t) { function e(t) { if (t) { if ("string" == typeof o[t]) return t; t = t.charAt(0).toUpperCase() + t.slice(1); for (var e, n = 0, r = i.length; r > n; n++) if (e = i[n] + t, "string" == typeof o[e]) return e } } var i = "Webkit Moz ms Ms O".split(" "), o = document.documentElement.style; "function" == typeof define && define.amd ? define("get-style-property/get-style-property", [], function () { return e }) : "object" == typeof exports ? module.exports = e : t.getStyleProperty = e }(window), function (t) { function e(t) { var e = parseFloat(t), i = -1 === t.indexOf("%") && !isNaN(e); return i && e } function i() { } function o() { for (var t = { width: 0, height: 0, innerWidth: 0, innerHeight: 0, outerWidth: 0, outerHeight: 0 }, e = 0, i = s.length; i > e; e++) { var o = s[e]; t[o] = 0 } return t } function n(i) { function n() { if (!d) { d = !0; var o = t.getComputedStyle; if (p = function () { var t = o ? function (t) { return o(t, null) } : function (t) { return t.currentStyle }; return function (e) { var i = t(e); return i || r("Style returned " + i + ". Are you running this code in a hidden iframe on Firefox? " + "See http://bit.ly/getsizebug1"), i } }(), h = i("boxSizing")) { var n = document.createElement("div"); n.style.width = "200px", n.style.padding = "1px 2px 3px 4px", n.style.borderStyle = "solid", n.style.borderWidth = "1px 2px 3px 4px", n.style[h] = "border-box"; var s = document.body || document.documentElement; s.appendChild(n); var a = p(n); f = 200 === e(a.width), s.removeChild(n) } } } function a(t) { if (n(), "string" == typeof t && (t = document.querySelector(t)), t && "object" == typeof t && t.nodeType) { var i = p(t); if ("none" === i.display) return o(); var r = {}; r.width = t.offsetWidth, r.height = t.offsetHeight; for (var a = r.isBorderBox = !(!h || !i[h] || "border-box" !== i[h]), d = 0, l = s.length; l > d; d++) { var c = s[d], m = i[c]; m = u(t, m); var y = parseFloat(m); r[c] = isNaN(y) ? 0 : y } var g = r.paddingLeft + r.paddingRight, v = r.paddingTop + r.paddingBottom, _ = r.marginLeft + r.marginRight, I = r.marginTop + r.marginBottom, z = r.borderLeftWidth + r.borderRightWidth, L = r.borderTopWidth + r.borderBottomWidth, x = a && f, E = e(i.width); E !== !1 && (r.width = E + (x ? 0 : g + z)); var b = e(i.height); return b !== !1 && (r.height = b + (x ? 0 : v + L)), r.innerWidth = r.width - (g + z), r.innerHe
2591ight = r.height - (v + L), r.outerWidth = r.width + _, r.outerHeight = r.height + I, r } } function u(e, i) { if (t.getComputedStyle || -1 === i.indexOf("%")) return i; var o = e.style, n = o.left, r = e.runtimeStyle, s = r && r.left; return s && (r.left = e.currentStyle.left), o.left = i, i = o.pixelLeft, o.left = n, s && (r.left = s), i } var p, h, f, d = !1; return a } var r = "undefined" == typeof console ? i : function (t) { console.error(t) }, s = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"]; "function" == typeof define && define.amd ? define("get-size/get-size", ["get-style-property/get-style-property"], n) : "object" == typeof exports ? module.exports = n(require("desandro-get-style-property")) : t.getSize = n(t.getStyleProperty) }(window), function (t) { function e(t) { "function" == typeof t && (e.isReady ? t() : s.push(t)) } function i(t) { var i = "readystatechange" === t.type && "complete" !== r.readyState; e.isReady || i || o() } function o() { e.isReady = !0; for (var t = 0, i = s.length; i > t; t++) { var o = s[t]; o() } } function n(n) { return "complete" === r.readyState ? o() : (n.bind(r, "DOMContentLoaded", i), n.bind(r, "readystatechange", i), n.bind(t, "load", i)), e } var r = t.document, s = []; e.isReady = !1, "function" == typeof define && define.amd ? define("doc-ready/doc-ready", ["eventie/eventie"], n) : "object" == typeof exports ? module.exports = n(require("eventie")) : t.docReady = n(t.eventie) }(window), function (t) { function e(t, e) { return t[s](e) } function i(t) { if (!t.parentNode) { var e = document.createDocumentFragment(); e.appendChild(t) } } function o(t, e) { i(t); for (var o = t.parentNode.querySelectorAll(e), n = 0, r = o.length; r > n; n++) if (o[n] === t) return !0; return !1 } function n(t, o) { return i(t), e(t, o) } var r, s = function () { if (t.matches) return "matches"; if (t.matchesSelector) return "matchesSelector"; for (var e = ["webkit", "moz", "ms", "o"], i = 0, o = e.length; o > i; i++) { var n = e[i], r = n + "MatchesSelector"; if (t[r]) return r } }(); if (s) { var a = document.createElement("div"), u = e(a, "div"); r = u ? e : n } else r = o; "function" == typeof define && define.amd ? define("matches-selector/matches-selector", [], function () { return r }) : "object" == typeof exports ? module.exports = r : window.matchesSelector = r }(Element.prototype), function (t, e) { "function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["doc-ready/doc-ready", "matches-selector/matches-selector"], function (i, o) { return e(t, i, o) }) : "object" == typeof exports ? module.exports = e(t, require("doc-ready"), require("desandro-matches-selector")) : t.fizzyUIUtils = e(t, t.docReady, t.matchesSelector) }(window, function (t, e, i) { var o = {}; o.extend = function (t, e) { for (var i in e) t[i] = e[i]; return t }, o.modulo = function (t, e) { return (t % e + e) % e }; var n = Object.prototype.toString; o.isArray = function (t) { return "[object Array]" == n.call(t) }, o.makeArray = function (t) { var e = []; if (o.isArray(t)) e = t; else if (t && "number" == typeof t.length) for (var i = 0, n = t.length; n > i; i++) e.push(t[i]); else e.push(t); return e }, o.indexOf = Array.prototype.indexOf ? function (t, e) { return t.indexOf(e) } : function (t, e) { for (var i = 0, o = t.length; o > i; i++) if (t[i] === e) return i; return -1 }, o.removeFrom = function (t, e) { var i = o.indexOf(t, e); -1 != i && t.splice(i, 1) }, o.isElement = "function" == typeof HTMLElement || "object" == typeof HTMLElement ? function (t) { return t instanceof HTMLElement } : function (t) { return t && "object" == typeof t && 1 == t.nodeType && "string" == typeof t.nodeName }, o.setText = function () { function t(t, i) { e = e || (void 0 !== document.documentElement.textContent ? "textContent" : "innerText"), t[e] = i } var e; return t }(), o.getParent = function (t, e) { for (; t != document.body;) if (t = t.parentNode, i(t, e)) return t }, o.getQueryElement = function (t) { return "string" == typeof t ? document.querySelector(t) : t }, o.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t) }, o.filterFindElements = function (t, e) { t = o.makeArray(t); for (var n = [], r = 0, s = t.length; s > r; r++) { var a = t[r]; if (o.isElement(a)) if (e) { i(a, e) && n.push(a); for (var u = a.querySelectorAll(e), p = 0, h = u.length; h > p; p++) n.push(u[p]) } else n.push(a) } return n }, o.debounceMethod = function (t, e, i) { var o = t.prototype[e], n = e + "Timeout"; t.prototype[e] = function () { var t = this[n]; t && clearTimeout(t); var e = arguments, r = this; this[n] = setTimeout(function () { o.apply(r, e), delete r[n] }, i || 100) } }, o.toDashed = function (t) { return t.replace(/(.)([A-Z])/g, function (t, e, i) { return e + "-" + i }).toLowerCase() }; var r = t.console; return o.htmlInit = function (i, n) { e(function () { for (var e = o.toDashed(n), s = document.querySelectorAll(".js-" + e), a = "data-" + e + "-options", u = 0, p = s.length; p > u; u++) { var h, f = s[u], d = f.getAttribute(a); try { h = d && JSON.parse(d) } catch (l) { r && r.error("Error parsing " + a + " on " + f.nodeName.toLowerCase() + (f.id ? "#" + f.id : "") + ": " + l); continue } var c = new i(f, h), m = t.jQuery;
2591 m && m.data(f, n, c) } }) }, o }), function (t, e) { "function" == typeof define && define.amd ? define("outlayer/item", ["eventEmitter/EventEmitter", "get-size/get-size", "get-style-property/get-style-property", "fizzy-ui-utils/utils"], function (i, o, n, r) { return e(t, i, o, n, r) }) : "object" == typeof exports ? module.exports = e(t, require("wolfy87-eventemitter"), require("get-size"), require("desandro-get-style-property"), require("fizzy-ui-utils")) : (t.Outlayer = {}, t.Outlayer.Item = e(t, t.EventEmitter, t.getSize, t.getStyleProperty, t.fizzyUIUtils)) }(window, function (t, e, i, o, n) { function r(t) { for (var e in t) return !1; return e = null, !0 } function s(t, e) { t && (this.element = t, this.layout = e, this.position = { x: 0, y: 0 }, this._create()) } var a = t.getComputedStyle, u = a ? function (t) { return a(t, null) } : function (t) { return t.currentStyle }, p = o("transition"), h = o("transform"), f = p && h, d = !!o("perspective"), l = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "otransitionend", transition: "transitionend" }[p], c = ["transform", "transition", "transitionDuration", "transitionProperty"], m = function () { for (var t = {}, e = 0, i = c.length; i > e; e++) { var n = c[e], r = o(n); r && r !== n && (t[n] = r) } return t }(); n.extend(s.prototype, e.prototype), s.prototype._create = function () { this._transn = { ingProperties: {}, clean: {}, onEnd: {} }, this.css({ position: "absolute" }) }, s.prototype.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t) }, s.prototype.getSize = function () { this.size = i(this.element) }, s.prototype.css = function (t) { var e = this.element.style; for (var i in t) { var o = m[i] || i; e[o] = t[i] } }, s.prototype.getPosition = function () { var t = u(this.element), e = this.layout.options, i = e.isOriginLeft, o = e.isOriginTop, n = parseInt(t[i ? "left" : "right"], 10), r = parseInt(t[o ? "top" : "bottom"], 10); n = isNaN(n) ? 0 : n, r = isNaN(r) ? 0 : r; var s = this.layout.size; n -= i ? s.paddingLeft : s.paddingRight, r -= o ? s.paddingTop : s.paddingBottom, this.position.x = n, this.position.y = r }, s.prototype.layoutPosition = function () { var t = this.layout.size, e = this.layout.options, i = {}, o = e.isOriginLeft ? "paddingLeft" : "paddingRight", n = e.isOriginLeft ? "left" : "right", r = e.isOriginLeft ? "right" : "left", s = this.position.x + t[o]; s = e.percentPosition && !e.isHorizontal ? 100 * (s / t.width) + "%" : s + "px", i[n] = s, i[r] = ""; var a = e.isOriginTop ? "paddingTop" : "paddingBottom", u = e.isOriginTop ? "top" : "bottom", p = e.isOriginTop ? "bottom" : "top", h = this.position.y + t[a]; h = e.percentPosition && e.isHorizontal ? 100 * (h / t.height) + "%" : h + "px", i[u] = h, i[p] = "", this.css(i), this.emitEvent("layout", [this]) }; var y = d ? function (t, e) { return "translate3d(" + t + "px, " + e + "px, 0)" } : function (t, e) { return "translate(" + t + "px, " + e + "px)" }; s.prototype._transitionTo = function (t, e) { this.getPosition(); var i = this.position.x, o = this.position.y, n = parseInt(t, 10), r = parseInt(e, 10), s = n === this.position.x && r === this.position.y; if (this.setPosition(t, e), s && !this.isTransitioning) return this.layoutPosition(), void 0; var a = t - i, u = e - o, p = {}, h = this.layout.options; a = h.isOriginLeft ? a : -a, u = h.isOriginTop ? u : -u, p.transform = y(a, u), this.transition({ to: p, onTransitionEnd: { transform: this.layoutPosition }, isCleaning: !0 }) }, s.prototype.goTo = function (t, e) { this.setPosition(t, e), this.layoutPosition() }, s.prototype.moveTo = f ? s.prototype._transitionTo : s.prototype.goTo, s.prototype.setPosition = function (t, e) { this.position.x = parseInt(t, 10), this.position.y = parseInt(e, 10) }, s.prototype._nonTransition = function (t) { this.css(t.to), t.isCleaning && this._removeStyles(t.to); for (var e in t.onTransitionEnd) t.onTransitionEnd[e].call(this) }, s.prototype._transition = function (t) { if (!parseFloat(this.layout.options.transitionDuration)) return this._nonTransition(t), void 0; var e = this._transn; for (var i in t.onTransitionEnd) e.onEnd[i] = t.onTransitionEnd[i]; for (i in t.to) e.ingProperties[i] = !0, t.isCleaning && (e.clean[i] = !0); if (t.from) { this.css(t.from); var o = this.element.offsetHeight; o = null } this.enableTransition(t.to), this.css(t.to), this.isTransitioning = !0 }; var g = h && n.toDashed(h) + ",opacity"; s.prototype.enableTransition = function () { this.isTransitioning || (this.css({ transitionProperty: g, transitionDuration: this.layout.options.transitionDuration }), this.element.addEventListener(l, this, !1)) }, s.prototype.transition = s.prototype[p ? "_transition" : "_nonTransition"], s.prototype.onwebkitTransitionEnd = function (t) { this.ontransitionend(t) }, s.prototype.onotransitionend = function (t) { this.ontransitionend(t) }; var v = { "-webkit-transform": "transform", "-moz-transform": "transform", "-o-transform": "transform" }; s.prototype.ontransitionend = function (t) { if (t.target === this.element) { var e = this._transn, i = v[t.propertyName] || t.propertyName; if (delete e.ingProperties[i], r(e.ingProperties) && this.disableTransition(), i in e.clean && (this.element.style[t.propertyName] = "", delete e.clean[i]), i in e.onEnd) { var o = e.onEnd[i]; o.call(this), delete e.onEnd[i] } this.emitEvent("transitionEnd", [this]) } }, s.prototype.disableTransition = function () { this.removeTransitionStyles(), this.element.removeEventListener(l, this, !1), this.isTransitioning = !1 }, s.prototype._removeStyles = function (t) { var e = {}; for (var i in t) e[i] = ""; this.css(e) }; var _ = { transitionProperty: "", transitionDuration: "" }; return s.prototype.removeTransitionStyles = function () { this.css(_) }, s.prototype.removeElem = function () { this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]) }, s.prototype.remove = function () { if (!p || !parseFloat(this.layout.options.transitionDuration)) return this.removeElem(), void 0; var t = this; this.once("transitionEnd", function () { t.removeElem() }), this.hide() }, s.prototype.reveal = function () { delete this.isHidden, this.css({ display: "" }); var t = this.layout.options, e = {}, i = this.getHideRevealTransitionEndProperty("visibleStyle"); e[i] = this.onRevealTransitionEnd, this.transition({ from: t.hiddenStyle, to: t.visibleStyle, isCleaning: !0, onTransitionEnd: e }) }, s.prototype.onRevealTransitionEnd = function () { this.isHidden || this.emitEvent("reveal") }, s.prototype.getHideRevealTransitionEndProperty = function (t) { var e = this.layout.options[t]; if (e.opacity) return "opacity"; for (var i in e) return i }, s.prototype.hide = function () { this.isHidden = !0, this.css({ display: "" }); var t = this.layout.options, e = {}, i = this.getHideRevealTransitionEndProperty("hiddenStyle"); e[i] = this.onHideTransitionEnd, this.transition({ from: t.visibleStyle, to: t.hiddenStyle, isCleaning: !0, onTransitionEnd: e }) }, s.prototype.onHideTransitionEnd = function () { this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide")) }, s.prototype.destroy = function () { this.css({ position: "", left: "", right: "", top: "", bottom: "", transition: "", transform: "" }) }, s }), function (t, e) { "function" == typeof define && define.amd ? define("outlayer/outlayer", ["eventie/eventie", "eventEmitter/EventEmitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function (i, o, n, r, s) { return e(t, i, o, n, r, s) }) : "object" == typeof exports ? module.exports = e(t, require("eventie"), require("wolfy87-eventemitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : t.Outlayer = e(t, t.eventie, t.EventEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item) }(window, function (t, e, i, o, n, r) { function s(t, e) { var i = n.getQueryElement(t); if (!i) return a && a.error("Bad element for " + this.constructor.namespace + ": " + (i || t)), void 0; this.element = i, u && (this.$element = u(this.element)), this.options = n.extend({}, this.constructor.defaults), this.option(e); var o = ++h; this.element.outlayerGUID = o, f[o] = this, this._create(), this.options.isInitLayout && this.layout() } var a = t.console, u = t.jQuery, p = function () { }, h = 0, f = {}; return s.namespace = "outlayer", s.Item = r, s.defaults = { containerStyle: { position: "relative" }, isInitLayout: !0, isOriginLeft: !0, isOriginTop: !0, isResizeBound: !0, isResizingContainer: !0, transitionDuration: "0.4s", hiddenStyle: { opacity: 0, transform: "scale(0.001)" }, visibleStyle: { opacity: 1, transform: "scale(1)" } }, n.extend(s.prototype, i.prototype), s.prototype.option = function (t) { n.extend(this.options, t) }, s.prototype._create = function () { this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), n.extend(this.element.style, this.options.containerStyle), this.options.isResizeBound && this.bindResize() }, s.prototype.reloadItems = function () { this.items = this._itemize(this.element.children) }, s.prototype._itemize = function (t) { for (var e = this._filterFindItemElements(t), i = this.constructor.Item, o = [], n = 0, r = e.length; r > n; n++) { var s = e[n], a = new i(s, this); o.push(a) } return o }, s.prototype._filterFindItemElements = function (t) { return n.filterFindElements(t, this.options.itemSelector) }, s.prototype.getItemElements = function () { for (var t = [], e = 0, i = this.items.length; i > e; e++) t.push(this.items[e].element); return t }, s.prototype.layout = function () { this._resetLayout(), this._manageStamps(); var t = void 0 !== this.options.isLayoutInstant ? this.options.isLayoutInstant : !this._isLayoutInited; this.layoutItems(this.items, t), this._isLayoutInited = !0 }, s.prototype._init = s.prototype.layout, s.prototype._resetLayout = function () { this.get
2591Size() }, s.prototype.getSize = function () { this.size = o(this.element) }, s.prototype._getMeasurement = function (t, e) { var i, r = this.options[t]; r ? ("string" == typeof r ? i = this.element.querySelector(r) : n.isElement(r) && (i = r), this[t] = i ? o(i)[e] : r) : this[t] = 0 }, s.prototype.layoutItems = function (t, e) { t = this._getItemsForLayout(t), this._layoutItems(t, e), this._postLayout() }, s.prototype._getItemsForLayout = function (t) { for (var e = [], i = 0, o = t.length; o > i; i++) { var n = t[i]; n.isIgnored || e.push(n) } return e }, s.prototype._layoutItems = function (t, e) { if (this._emitCompleteOnItems("layout", t), t && t.length) { for (var i = [], o = 0, n = t.length; n > o; o++) { var r = t[o], s = this._getItemLayoutPosition(r); s.item = r, s.isInstant = e || r.isLayoutInstant, i.push(s) } this._processLayoutQueue(i) } }, s.prototype._getItemLayoutPosition = function () { return { x: 0, y: 0 } }, s.prototype._processLayoutQueue = function (t) { for (var e = 0, i = t.length; i > e; e++) { var o = t[e]; this._positionItem(o.item, o.x, o.y, o.isInstant) } }, s.prototype._positionItem = function (t, e, i, o) { o ? t.goTo(e, i) : t.moveTo(e, i) }, s.prototype._postLayout = function () { this.resizeContainer() }, s.prototype.resizeContainer = function () { if (this.options.isResizingContainer) { var t = this._getContainerSize(); t && (this._setContainerMeasure(t.width, !0), this._setContainerMeasure(t.height, !1)) } }, s.prototype._getContainerSize = p, s.prototype._setContainerMeasure = function (t, e) { if (void 0 !== t) { var i = this.size; i.isBorderBox && (t += e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth : i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth), t = Math.max(t, 0), this.element.style[e ? "width" : "height"] = t + "px" } }, s.prototype._emitCompleteOnItems = function (t, e) { function i() { n.emitEvent(t + "Complete", [e]) } function o() { s++, s === r && i() } var n = this, r = e.length; if (!e || !r) return i(), void 0; for (var s = 0, a = 0, u = e.length; u > a; a++) { var p = e[a]; p.once(t, o) } }, s.prototype.ignore = function (t) { var e = this.getItem(t); e && (e.isIgnored = !0) }, s.prototype.unignore = function (t) { var e = this.getItem(t); e && delete e.isIgnored }, s.prototype.stamp = function (t) { if (t = this._find(t)) { this.stamps = this.stamps.concat(t); for (var e = 0, i = t.length; i > e; e++) { var o = t[e]; this.ignore(o) } } }, s.prototype.unstamp = function (t) { if (t = this._find(t)) for (var e = 0, i = t.length; i > e; e++) { var o = t[e]; n.removeFrom(this.stamps, o), this.unignore(o) } }, s.prototype._find = function (t) { return t ? ("string" == typeof t && (t = this.element.querySelectorAll(t)), t = n.makeArray(t)) : void 0 }, s.prototype._manageStamps = function () { if (this.stamps && this.stamps.length) { this._getBoundingRect(); for (var t = 0, e = this.stamps.length; e > t; t++) { var i = this.stamps[t]; this._manageStamp(i) } } }, s.prototype._getBoundingRect = function () { var t = this.element.getBoundingClientRect(), e = this.size; this._boundingRect = { left: t.left + e.paddingLeft + e.borderLeftWidth, top: t.top + e.paddingTop + e.borderTopWidth, right: t.right - (e.paddingRight + e.borderRightWidth), bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth) } }, s.prototype._manageStamp = p, s.prototype._getElementOffset = function (t) { var e = t.getBoundingClientRect(), i = this._boundingRect, n = o(t), r = { left: e.left - i.left - n.marginLeft, top: e.top - i.top - n.marginTop, right: i.right - e.right - n.marginRight, bottom: i.bottom - e.bottom - n.marginBottom }; return r }, s.prototype.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t) }, s.prototype.bindResize = function () { this.isResizeBound || (e.bind(t, "resize", this), this.isResizeBound = !0) }, s.prototype.unbindResize = function () { this.isResizeBound && e.unbind(t, "resize", this), this.isResizeBound = !1 }, s.prototype.onresize = function () { function t() { e.resize(), delete e.resizeTimeout } this.resizeTimeout && clearTimeout(this.resizeTimeout); var e = this; this.resizeTimeout = setTimeout(t, 100) }, s.prototype.resize = function () { this.isResizeBound && this.needsResizeLayout() && this.layout() }, s.prototype.needsResizeLayout = function () { var t = o(this.element), e = this.size && t; return e && t.innerWidth !== this.size.innerWidth }, s.prototype.addItems = function (t) { var e = this._itemize(t); return e.length && (this.items = this.items.concat(e)), e }, s.prototype.appended = function (t) { var e = this.addItems(t); e.length && (this.layoutItems(e, !0), this.reveal(e)) }, s.prototype.prepended = function (t) { var e = this._itemize(t); if (e.length) { var i = this.items.slice(0); this.items = e.concat(i), this._resetLayout(), this._manageStamps(), this.layoutItems(e, !0), this.reveal(e), this.layoutItems(i) } }, s.prototype.reveal = function (t) { this._emitCompleteOnItems("reveal", t); for (var e = t && t.length, i = 0; e && e > i; i++) { var o = t[i]; o.reveal() } }, s.prototype.hide = function (t) { this._emitCompleteOnItems("hide", t); for (var e = t && t.length, i = 0; e && e > i; i++) { var o = t[i]; o.hide() } }, s.prototype.revealItemElements = function (t) { var e = this.getItems(t); this.reveal(e) }, s.prototype.hideItemElements = function (t) { var e = this.getItems(t); this.hide(e) }, s.prototype.getItem = function (t) { for (var e = 0, i = this.items.length; i > e; e++) { var o = this.items[e]; if (o.element === t) return o } }, s.prototype.getItems = function (t) { t = n.makeArray(t); for (var e = [], i = 0, o = t.length; o > i; i++) { var r = t[i], s = this.getItem(r); s && e.push(s) } return e }, s.prototype.remove = function (t) { var e = this.getItems(t); if (this._emitCompleteOnItems("remove", e), e && e.length) for (var i = 0, o = e.length; o > i; i++) { var r = e[i]; r.remove(), n.removeFrom(this.items, r) } }, s.prototype.destroy = function () { var t = this.element.style; t.height = "", t.position = "", t.width = ""; for (var e = 0, i = this.items.length; i > e; e++) { var o = this.items[e]; o.destroy() } this.unbindResize(); var n = this.element.outlayerGUID; delete f[n], delete this.element.outlayerGUID, u && u.removeData(this.element, this.constructor.namespace) }, s.data = function (t) { t = n.getQueryElement(t); var e = t && t.outlayerGUID; return e && f[e] }, s.create = function (t, e) { function i() { s.apply(this, arguments) } return Object.create ? i.prototype = Object.create(s.prototype) : n.extend(i.prototype, s.prototype), i.prototype.constructor = i, i.defaults = n.extend({}, s.defaults), n.extend(i.defaults, e), i.prototype.settings = {}, i.namespace = t, i.data = s.data, i.Item = function () { r.apply(this, arguments) }, i.Item.prototype = new r, n.htmlInit(i, t), u && u.bridget && u.bridget(t, i), i }, s.Item = r, s }), function (t, e) { "function" == typeof define && define.amd ? define("isotope/js/item", ["outlayer/outlayer"], e) : "object" == typeof exports ? module.exports = e(require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.Item = e(t.Outlayer)) }(window, function (t) { function e() { t.Item.apply(this, arguments) } e.prototype = new t.Item, e.prototype._create = function () { this.id = this.layout.itemGUID++, t.Item.prototype._create.call(this), this.sortData = {} }, e.prototype.updateSortData = function () { if (!this.isIgnored) { this.sortData.id = this.id, this.sortData["original-order"] = this.id, this.sortData.random = Math.random(); var t = this.layout.options.getSortData, e = this.layout._sorters; for (var i in t) { var o = e[i]; this.sortData[i] = o(this.element, this) } } }; var i = e.prototype.destroy; return e.prototype.destroy = function () { i.apply(this, arguments), this.css({ display: "" }) }, e }), function (t, e) { "function" == typeof define && define.amd ? define("isotope/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], e) : "object" == typeof exports ? module.exports = e(require("get-size"), require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.LayoutMode = e(t.getSize, t.Outlayer)) }(window, function (t, e) { function i(t) { this.isotope = t, t && (this.options = t.options[this.namespace], this.element = t.element, this.items = t.filteredItems, this.size = t.size) } return function () { function t(t) { return function () { return e.prototype[t].apply(this.isotope, arguments) } } for (var o = ["_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout"], n = 0, r = o.length; r > n; n++) { var s = o[n]; i.prototype[s] = t(s) } }(), i.prototype.needsVerticalResizeLayout = function () { var e = t(this.isotope.element), i = this.isotope.size && e;
2591 return i && e.innerHeight != this.isotope.size.innerHeight }, i.prototype._getMeasurement = function () { this.isotope._getMeasurement.apply(this, arguments) }, i.prototype.getColumnWidth = function () { this.getSegmentSize("column", "Width") }, i.prototype.getRowHeight = function () { this.getSegmentSize("row", "Height") }, i.prototype.getSegmentSize = function (t, e) { var i = t + e, o = "outer" + e; if (this._getMeasurement(i, o), !this[i]) { var n = this.getFirstItemSize(); this[i] = n && n[o] || this.isotope.size["inner" + e] } }, i.prototype.getFirstItemSize = function () { var e = this.isotope.filteredItems[0]; return e && e.element && t(e.element) }, i.prototype.layout = function () { this.isotope.layout.apply(this.isotope, arguments) }, i.prototype.getSize = function () { this.isotope.getSize(), this.size = this.isotope.size }, i.modes = {}, i.create = function (t, e) { function o() { i.apply(this, arguments) } return o.prototype = new i, e && (o.options = e), o.prototype.namespace = t, i.modes[t] = o, o }, i }), function (t, e) { "function" == typeof define && define.amd ? define("masonry/masonry", ["outlayer/outlayer", "get-size/get-size", "fizzy-ui-utils/utils"], e) : "object" == typeof exports ? module.exports = e(require("outlayer"), require("get-size"), require("fizzy-ui-utils")) : t.Masonry = e(t.Outlayer, t.getSize, t.fizzyUIUtils) }(window, function (t, e, i) { var o = t.create("masonry"); return o.prototype._resetLayout = function () { this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(); var t = this.cols; for (this.colYs = []; t--;) this.colYs.push(0); this.maxY = 0 }, o.prototype.measureColumns = function () { if (this.getContainerWidth(), !this.columnWidth) { var t = this.items[0], i = t && t.element; this.columnWidth = i && e(i).outerWidth || this.containerWidth } var o = this.columnWidth += this.gutter, n = this.containerWidth + this.gutter, r = n / o, s = o - n % o, a = s && 1 > s ? "round" : "floor"; r = Math[a](r), this.cols = Math.max(r, 1) }, o.prototype.getContainerWidth = function () { var t = this.options.isFitWidth ? this.element.parentNode : this.element, i = e(t); this.containerWidth = i && i.innerWidth }, o.prototype._getItemLayoutPosition = function (t) { t.getSize(); var e = t.size.outerWidth % this.columnWidth, o = e && 1 > e ? "round" : "ceil", n = Math[o](t.size.outerWidth / this.columnWidth); n = Math.min(n, this.cols); for (var r = this._getColGroup(n), s = Math.min.apply(Math, r), a = i.indexOf(r, s), u = { x: this.columnWidth * a, y: s }, p = s + t.size.outerHeight, h = this.cols + 1 - r.length, f = 0; h > f; f++) this.colYs[a + f] = p; return u }, o.prototype._getColGroup = function (t) { if (2 > t) return this.colYs; for (var e = [], i = this.cols + 1 - t, o = 0; i > o; o++) { var n = this.colYs.slice(o, o + t); e[o] = Math.max.apply(Math, n) } return e }, o.prototype._manageStamp = function (t) { var i = e(t), o = this._getElementOffset(t), n = this.options.isOriginLeft ? o.left : o.right, r = n + i.outerWidth, s = Math.floor(n / this.columnWidth); s = Math.max(0, s); var a = Math.floor(r / this.columnWidth); a -= r % this.columnWidth ? 0 : 1, a = Math.min(this.cols - 1, a); for (var u = (this.options.isOriginTop ? o.top : o.bottom) + i.outerHeight, p = s; a >= p; p++) this.colYs[p] = Math.max(u, this.colYs[p]) }, o.prototype._getContainerSize = function () { this.maxY = Math.max.apply(Math, this.colYs); var t = { height: this.maxY }; return this.options.isFitWidth && (t.width = this._getContainerFitWidth()), t }, o.prototype._getContainerFitWidth = function () { for (var t = 0, e = this.cols; --e && 0 === this.colYs[e];) t++; return (this.cols - t) * this.columnWidth - this.gutter }, o.prototype.needsResizeLayout = function () { var t = this.containerWidth; return this.getContainerWidth(), t !== this.containerWidth }, o }), function (t, e) { "function" == typeof define && define.amd ? define("isotope/js/layout-modes/masonry", ["../layout-mode", "masonry/masonry"], e) : "object" == typeof exports ? module.exports = e(require("../layout-mode"), require("masonry-layout")) : e(t.Isotope.LayoutMode, t.Masonry) }(window, function (t, e) { function i(t, e) { for (var i in e) t[i] = e[i]; return t } var o = t.create("masonry"), n = o.prototype._getElementOffset, r = o.prototype.layout, s = o.prototype._getMeasurement; i(o.prototype, e.prototype), o.prototype._getElementOffset = n, o.prototype.layout = r, o.prototype._getMeasurement = s; var a = o.prototype.measureColumns; o.prototype.measureColumns = function () { this.items = this.isotope.filteredItems, a.call(this) }; var u = o.prototype._manageStamp; return o.prototype._manageStamp = function () { this.options.isOriginLeft = this.isotope.options.isOriginLeft, this.options.isOriginTop = this.isotope.options.isOriginTop, u.apply(this, arguments) }, o }), function (t, e) { "function" == typeof define && define.amd ? define("isotope/js/layout-modes/fit-rows", ["../layout-mode"], e) : "object" == typeof exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode) }(window, function (t) { 2592 var e = t.create("fitRows"); return e.prototype._resetLayout = function () { 2593 this.x = 0, this.y = 0, this.maxY = 0, this._getMeasurement("gutter", "outerWidth") 2594 }, e.prototype._getItemLayoutPosition = function (t) { t.getSize(); var e = t.size.outerWidth + this.gutter, i = this.isotope.size.innerWidth + this.gutter; 0 !== this.x && e + this.x > i && (this.x = 0, this.y = this.maxY); var o = { x: this.x, y: this.y }; return this.maxY = Math.max(this.maxY, this.y + t.size.outerHeight), this.x += e, o }, e.prototype._getContainerSize = function () { return { height: this.maxY } }, e 2595}), function (t, e) { "function" == typeof define && define.amd ? define("isotope/js/layout-modes/vertical", ["../layout-mode"], e) : "object" == typeof exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode) }(window, function (t) { var e = t.create("vertical", { horizontalAlignment: 0 }); return e.prototype._resetLayout = function () { this.y = 0 }, e.prototype._getItemLayoutPosition = function (t) { t.getSize(); var e = (this.isotope.size.innerWidth - t.size.outerWidth) * this.options.horizontalAlignment, i = this.y; return this.y += t.size.outerHeight, { x: e, y: i } }, e.prototype._getContainerSize = function () { return { height: this.y } }, e }), function (t, e) { "function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size", "matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope/js/item", "isotope/js/layout-mode", "isotope/js/layout-modes/masonry", "isotope/js/layout-modes/fit-rows", "isotope/js/layout-modes/vertical"], function (i, o, n, r, s, a) { return e(t, i, o, n, r, s, a) }) : "object" == typeof exports ? module.exports = e(t, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("./item"), require("./layout-mode"), require("./layout-modes/masonry"), require("./layout-modes/fit-rows"), require("./layout-modes/vertical")) : t.Isotope = e(t, t.Outlayer, t.getSize, t.matchesSelector, t.fizzyUIUtils, t.Isotope.Item, t.Isotope.LayoutMode) }(window, function (t, e, i, o, n, r, s) { function a(t, e) { return function (i, o) { for (var n = 0, r = t.length; r > n; n++) { var s = t[n], a = i.sortData[s], u = o.sortData[s]; if (a > u || u > a) { var p = void 0 !== e[s] ? e[s] : e, h = p ? 1 : -1; return (a > u ? 1 : -1) * h } } return 0 } } var u = t.jQuery, p = String.prototype.trim ? function (t) { return t.trim() } : function (t) { return t.replace(/^\s+|\s+$/g, "") }
2595, h = document.documentElement, f = h.textContent ? function (t) { return t.textContent } : function (t) { return t.innerText }, d = e.create("isotope", { layoutMode: "masonry", isJQueryFiltering: !0, sortAscending: !0 }); d.Item = r, d.LayoutMode = s, d.prototype._create = function () { this.itemGUID = 0, this._sorters = {}, this._getSorters(), e.prototype._create.call(this), this.modes = {}, this.filteredItems = this.items, this.sortHistory = ["original-order"]; for (var t in s.modes) this._initLayoutMode(t) }, d.prototype.reloadItems = function () { this.itemGUID = 0, e.prototype.reloadItems.call(this) }, d.prototype._itemize = function () { for (var t = e.prototype._itemize.apply(this, arguments), i = 0, o = t.length; o > i; i++) { var n = t[i]; n.id = this.itemGUID++ } return this._updateItemsSortData(t), t }, d.prototype._initLayoutMode = function (t) { var e = s.modes[t], i = this.options[t] || {}; this.options[t] = e.options ? n.extend(e.options, i) : i, this.modes[t] = new e(this) }, d.prototype.layout = function () { return !this._isLayoutInited && this.options.isInitLayout ? (this.arrange(), void 0) : (this._layout(), void 0) }, d.prototype._layout = function () { var t = this._getIsInstant(); this._resetLayout(), this._manageStamps(), this.layoutItems(this.filteredItems, t), this._isLayoutInited = !0 }, d.prototype.arrange = function (t) { function e() { o.reveal(i.needReveal), o.hide(i.needHide) } this.option(t), this._getIsInstant(); var i = this._filter(this.items); this.filteredItems = i.matches; var o = this; this._bindArrangeComplete(), this._isInstant ? this._noTransition(e) : e(), this._sort(), this._layout() }, d.prototype._init = d.prototype.arrange, d.prototype._getIsInstant = function () { var t = void 0 !== this.options.isLayoutInstant ? this.options.isLayoutInstant : !this._isLayoutInited; return this._isInstant = t, t }, d.prototype._bindArrangeComplete = function () { function t() { e && i && o && n.emitEvent("arrangeComplete", [n.filteredItems]) } var e, i, o, n = this; this.once("layoutComplete", function () { e = !0, t() }), this.once("hideComplete", function () { i = !0, t() }), this.once("revealComplete", function () { o = !0, t() }) }, d.prototype._filter = function (t) { var e = this.options.filter; e = e || "*"; for (var i = [], o = [], n = [], r = this._getFilterTest(e), s = 0, a = t.length; a > s; s++) { var u = t[s]; if (!u.isIgnored) { var p = r(u); p && i.push(u), p && u.isHidden ? o.push(u) : p || u.isHidden || n.push(u) } } return { matches: i, needReveal: o, needHide: n } }, d.prototype._getFilterTest = function (t) { return u && this.options.isJQueryFiltering ? function (e) { return u(e.element).is(t) } : "function" == typeof t ? function (e) { return t(e.element) } : function (e) { return o(e.element, t) } }, d.prototype.updateSortData = function (t) { var e; t ? (t = n.makeArray(t), e = this.getItems(t)) : e = this.items, this._getSorters(), this._updateItemsSortData(e) }, d.prototype._getSorters = function () { var t = this.options.getSortData; for (var e in t) { var i = t[e]; this._sorters[e] = l(i) } }, d.prototype._updateItemsSortData = function (t) { for (var e = t && t.length, i = 0; e && e > i; i++) { var o = t[i]; o.updateSortData() } }; var l = function () { function t(t) { if ("string" != typeof t) return t; var i = p(t).split(" "), o = i[0], n = o.match(/^\[(.+)\]$/), r = n && n[1], s = e(r, o), a = d.sortDataParsers[i[1]]; return t = a ? function (t) { return t && a(s(t)) } : function (t) { return t && s(t) } } function e(t, e) { var i; return i = t ? function (e) { return e.getAttribute(t) } : function (t) { var i = t.querySelector(e); return i && f(i) } } return t }(); d.sortDataParsers = { parseInt: function (t) { return parseInt(t, 10) }, parseFloat: function (t) { return parseFloat(t) } }, d.prototype._sort = function () { var t = this.options.sortBy; if (t) { var e = [].concat.apply(t, this.sortHistory), i = a(e, this.options.sortAscending); this.filteredItems.sort(i), t != this.sortHistory[0] && this.sortHistory.unshift(t) } }, d.prototype._mode = function () { var t = this.options.layoutMode, e = this.modes[t]; if (!e) throw Error("No layout mode: " + t); return e.options = this.options[t], e }, d.prototype._resetLayout = function () { e.prototype._resetLayout.call(this), this._mode()._resetLayout() }, d.prototype._getItemLayoutPosition = function (t) { return this._mode()._getItemLayoutPosition(t) }, d.prototype._manageStamp = function (t) { this._mode()._manageStamp(t) }, d.prototype._getContainerSize = function () { return this._mode()._getContainerSize() }, d.prototype.needsResizeLayout = function () { return this._mode().needsResizeLayout() }, d.prototype.appended = function (t) { var e = this.addItems(t); if (e.length) { var i = this._filterRevealAdded(e); this.filteredItems = this.filteredItems.concat(i) } }, d.prototype.prepended = function (t) { var e = this._itemize(t); if (e.length) { this._resetLayout(), this._manageStamps(); var i = this._filterRevealAdded(e); this.layoutItems(this.filteredItems), this.filteredItems = i.concat(this.filteredItems), this.items = e.concat(this.items) } }, d.prototype._filterRevealAdded = function (t) { var e = this._filter(t); return this.hide(e.needHide), this.reveal(e.matches), this.layoutItems(e.matches, !0), e.matches }, d.prototype.insert = function (t) { var e = this.addItems(t); if (e.length) { var i, o, n = e.length; for (i = 0; n > i; i++) o = e[i], this.element.appendChild(o.element); var r = this._filter(e).matches; for (i = 0; n > i; i++) e[i].isLayoutInstant = !0; for (this.arrange(), i = 0; n > i; i++) delete e[i].isLayoutInstant; this.reveal(r) } }; var c = d.prototype.remove; return d.prototype.remove = function (t) { t = n.makeArray(t); var e = this.getItems(t); c.call(this, t); var i = e && e.length; if (i) for (var o = 0; i > o; o++) { var r = e[o]; n.removeFrom(this.filteredItems, r) } }, d.prototype.shuffle = function () { for (var t = 0, e = this.items.length; e > t; t++) { var i = this.items[t]; i.sortData.random = Math.random() } this.options.sortBy = "random", this._sort(), this._layout() }, d.prototype._noTransition = function (t) { var e = this.options.transitionDuration; this.options.transitionDuration = 0; var i = t.call(this); return this.options.transitionDuration = e, i }, d.prototype.getFilteredItemElements = function () { for (var t = [], e = 0, i = this.filteredItems.length; i > e; e++) t.push(this.filteredItems[e].element); return t }, d }); 2596 2597 2598/* 2599* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 2600*/ 2601 2602function setImgPos(n) { 2603 var t = parseInt($(n).find(".maso img").css("height"), 10), 2604 i = parseInt($(n).find(".maso").css("height"), 10); 2605 i < t && $(n).find(".maso img").css("margin-top", "-" + (t - i) / 2 + "px"); 2606} 2607 2608(function ($) { 2609 var firstLoad = true; 2610 $.fn.initPagination = function () { 2611 var opt = $(this).attr("data-options"); 2612 var a = $(this).attr("data-pagination-anima"); 2613 var p = parseInt($(this).attr("data-page-items"), 10); 2614 var c = $(this).closest(".maso-list"); 2615 var t = $(c).find(".maso-box"); 2616 var items = t.isotope('getItemElements'); 2617 var n = $(items).length; 2618 var type = ""; 2619 if ($(this).hasClass('load-more-maso')) type = 'load-more'; 2620 if ($(this).hasClass('pagination-maso')) type = 'pagination'; 2621 2622 for (var i = p; i < n; i++) { 2623 t.isotope('remove', items[i]); 2624 } 2625 t.isotope('layout'); 2626 2627 if (type == 'pagination') { 2628 var optionsArr; 2629 var options = { 2630 totalPages: Math.ceil(n / p), 2631 visiblePages: 7, 2632 first: "<i class='fa fa-angle-double-left'></i> <span>First</span>", 2633 last: "<span>Last</span> <i class='fa fa-angle-double-right'></i>", 2634 next: "<span>Next</span> <i class='fa fa-angle-right'></i>", 2635 prev: " <i class='fa fa-angle-left'></i> <span>Previous</span>", 2636 onPageClick: function (event, page) { 2637 t.isotope('remove', t.isotope('getItemElements')); 2638 for (var i = (p * (page - 1)) ; i < (p * (page)) ; i++) { 2639 t.isotope('insert', items[i]); 2640 } 2641 t.isotope('layout'); 2642 if (!isEmpty(opt) && opt.indexOf("scrollTop:true") != -1) $(c).scrollTo(); 2643 } 2644 } 2645 if (!isEmpty(opt)) { 2646 optionsArr = opt.split(","); 2647 options = getOptionsString(opt, options); 2648 } 2649 $(this).twbsPagination(options); 2650 } 2651 if (type == 'load-more') { 2652 var tl = this; 2653 $(tl).click(function (index) {
2654 loadMoreMaso(this); 2655 }); 2656 if (!isEmpty(opt) && opt.indexOf("lazyLoad:true") != -1) { 2657 $(window).scroll(function () { 2658 if ($(window).scrollTop() + $(window).height() == $(document).height()) { 2659 if (firstLoad) setTimeout(function () { loadMoreMaso(tl) }, 800); 2660 else loadMoreMaso(tl); 2661 } 2662 }); 2663 } 2664 } 2665 2666 function loadMoreMaso(obj) { 2667 var page = $(obj).attr("data-current-page"); 2668 if (isEmpty(page)) page = 1; 2669 page++; 2670 $(obj).attr("data-current-page", page); 2671 var s = p * (page - 1); 2672 var e = p * (page); 2673 for (var i = s ; i < (p * (page)) ; i++) { 2674 t.isotope('insert', items[i]); 2675 } 2676 t.isotope('layout'); 2677 if ($.isFunction($.fn.renderLoadedImgs)) { 2678 $(t).renderLoadedImgs(); 2679 } 2680 if (e >= n) $(obj).hide(300); 2681 } 2682 } 2683 $.fn.initIsotope = function () { 2684 var m = $(this).find('.maso-box'); 2685 var optionsString = $(this).attr("data-options"); 2686 var optionsArr; 2687 var options = { 2688 itemSelector: '.maso-item', 2689 percentPosition: true, 2690 masonry: { 2691 columnWidth: '.maso-item', 2692 }, 2693 getSortData: { 2694 number: function (e) { 2695 return parseInt(jQuery(e).attr('data-sort'), 10); 2696 } 2697 }, 2698 sortBy: 'number' 2699 } 2700 if (!isEmpty(optionsString)) { 2701 optionsArr = optionsString.split(","); 2702 options = getOptionsString(optionsString, options); 2703 } 2704 $(m).isotope(options); 2705 if ($.isFunction($.fn.renderLoadedImgs)) { 2706 var items = m.isotope('getItemElements'); 2707 $(m).renderLoadedImgs(); 2708 } 2709 $(this).find(".pagination-maso,.load-more-maso").initPagination(); 2710 }; 2711 2712 $(document).ready(function () { 2713 setTimeout(function () { firstLoad = false }, 1000); 2714 $('.maso-list').each(function () { 2715 if ($(this).attr("data-trigger") != "manual") $(this).initIsotope(); 2716 }); 2717 2718 $(".maso-filters a").click(function () { 2719 var f = $(this).attr('data-filter'); 2720 var t = $(this).closest(".maso-list"); 2721 if (!isEmpty(f)) $(t).find('.maso-box').isotope({ filter: "." + $(this).attr('data-filter') }); 2722 var lm = $(t).find('.load-more-maso'); 2723 if (lm.length) { 2724 setTimeout(function () { 2725 var i = 0; 2726 $(t).find('.maso-box .maso-item').each(function () { 2727 if ($(this).attr("style").indexOf("display: none") == -1) i++; 2728 }); 2729 if (i < parseInt($(lm).attr("data-page-items")), 10) $(t).find('.load-more-maso').click(); 2730 }, 450); 2731 } 2732 if ($(t).find('.maso-box .maso-item').length < 3) $(t).find('.load-more-maso').click(); 2733 }) 2734 $(".maso-order").click(function () { 2735 var t = $(this).closest(".maso-list").find('.maso-box'); 2736 var sort = $(this).attr("data-sort"); 2737 if (sort == "asc") { 2738 t.isotope({ sortAscending: false }); 2739 $(this).attr("data-sort", "desc"); 2740 $(this).html("<i class='fa fa-arrow-up'></i>"); 2741 } else { 2742 t.isotope({ sortAscending: true }); 2743 $(this).attr("data-sort", "asc"); 2744 $(this).html("data-sort"); 2745 $(this).html("<i class='fa fa-arrow-down'></i>"); 2746 } 2747 }); 2748 $(".maso-item .advs-box").each(function () { 2749 $(this).css("visibility", "visible").css("opacity", "1"); 2750 $(this).find("> *").animate({ "opacity": 1 }, 300); 2751 }); 2752 }); 2753}(jQuery)); 2754 2755 2756 2757/* 2758 * jQuery FlexSlider v2.4.0 2759 * Copyright 2012 WooThemes 2760 * Contributing Author: Tyler Smith 2761 */ 2762/* 2763 * jQuery FlexSlider v2.5.0 2764 * Copyright 2012 WooThemes 2765 * Contributing Author: Tyler Smith 2766 */ 2767; 2768(function (n) { n.flexslider = function (t, i) { var r = n(t); r.vars = n.extend({}, n.flexslider.defaults, i); var f = r.vars.namespace, v = window.navigator && window.navigator.msPointerEnabled && window.MSGesture, y = ("ontouchstart" in window || v || window.DocumentTouch && document instanceof DocumentTouch) && r.vars.touch, a = "click touchend MSPointerUp keyup", s = "", p, h = r.vars.direction === "vertical", o = r.vars.reverse, e = r.vars.itemWidth > 0, c = r.vars.animation === "fade", l = r.vars.asNavFor !== "", u = {}, w = !0; n.data(t, "flexslider", r); u = { init: function () { r.animating = !1; r.currentSlide = parseInt(r.vars.startAt ? r.vars.startAt : 0, 10); isNaN(r.currentSlide) && (r.currentSlide = 0); r.animatingTo = r.currentSlide; r.atEnd = r.currentSlide === 0 || r.currentSlide === r.last; r.containerSelector = r.vars.selector.substr(0, r.vars.selector.search(" ")); r.slides = n(r.vars.selector, r); r.container = n(r.containerSelector, r); r.count = r.slides.length; r.syncExists = n(r.vars.sync).length > 0; r.vars.animation === "slide" && (r.vars.animation = "swing"); r.prop = h ? "top" : "marginLeft"; r.args = {}; r.manualPause = !1; r.stopped = !1; r.started = !1; r.startTimeout = null; r.transitions = !r.vars.video && !c && r.vars.useCSS && function () { var i = document.createElement("div"), n = ["perspectiveProperty", "WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]; for (var t in n) if (i.style[n[t]] !== undefined) return r.pfx = n[t].replace("Perspective", "").toLowerCase(), r.prop = "-" + r.pfx + "-transform", !0; return !1 }(); r.ensureAnimationEnd = ""; r.vars.controlsContainer !== "" && (r.controlsContainer = n(r.vars.controlsContainer).length > 0 && n(r.vars.controlsContainer)); r.vars.manualControls !== "" && (r.manualControls = n(r.vars.manualControls).length > 0 && n(r.vars.manualControls)); r.vars.customDirectionNav !== "" && (r.customDirectionNav = n(r.vars.customDirectionNav).length === 2 && n(r.vars.customDirectionNav)); r.vars.randomize && (r.slides.sort(function () { return Math.round(Math.random()) - .5 }), r.container.empty().append(r.slides)); r.doMath(); r.setup("init"); r.vars.controlNav && u.controlNav.setup(); r.vars.directionNav && u.directionNav.setup(); r.vars.keyboard && (n(r.containerSelector).length === 1 || r.vars.multipleKeyboard) && n(document).bind("keyup", function (n) { var t = n.keyCode, i; r.animating || t !== 39 && t !== 37 || (i = t === 39 ? r.getTarget("next") : t === 37 ? r.getTarget("prev") : !1, r.flexAnimate(i, r.vars.pauseOnAction)) }); r.vars.mousewheel && r.bind("mousewheel", function (n, t) { n.preventDefault(); var i = t < 0 ? r.getTarget("next") : r.getTarget("prev"); r.flexAnimate(i, r.vars.pauseOnAction) }); r.vars.pausePlay && u.pausePlay.setup(); r.vars.slideshow && r.vars.pauseInvisible && u.pauseInvisible.init(
2768); r.vars.slideshow && (r.vars.pauseOnHover && r.hover(function () { r.manualPlay || r.manualPause || r.pause() }, function () { r.manualPause || r.manualPlay || r.stopped || r.play() }), r.vars.pauseInvisible && u.pauseInvisible.isHidden() || (r.vars.initDelay > 0 ? r.startTimeout = setTimeout(r.play, r.vars.initDelay) : r.play())); l && u.asNav.setup(); y && r.vars.touch && u.touch(); (!c || c && r.vars.smoothHeight) && n(window).bind("resize orientationchange focus", u.resize); r.find("img").attr("draggable", "false"); setTimeout(function () { r.vars.start(r) }, 200) }, asNav: { setup: function () { if (r.asNav = !0, r.animatingTo = Math.floor(r.currentSlide / r.move), r.currentItem = r.currentSlide, r.slides.removeClass(f + "active-slide").eq(r.currentItem).addClass(f + "active-slide"), v) t._slider = r, r.slides.each(function () { var t = this; t._gesture = new MSGesture; t._gesture.target = t; t.addEventListener("MSPointerDown", function (n) { n.preventDefault(); n.currentTarget._gesture && n.currentTarget._gesture.addPointer(n.pointerId) }, !1); t.addEventListener("MSGestureTap", function (t) { t.preventDefault(); var i = n(this), u = i.index(); n(r.vars.asNavFor).data("flexslider").animating || i.hasClass("active") || (r.direction = r.currentItem < u ? "next" : "prev", r.flexAnimate(u, r.vars.pauseOnAction, !1, !0, !0)) }) }); else r.slides.on(a, function (t) { t.preventDefault(); var i = n(this), u = i.index(), e = i.offset().left - n(r).scrollLeft(); e <= 0 && i.hasClass(f + "active-slide") ? r.flexAnimate(r.getTarget("prev"), !0) : n(r.vars.asNavFor).data("flexslider").animating || i.hasClass(f + "active-slide") || (r.direction = r.currentItem < u ? "next" : "prev", r.flexAnimate(u, r.vars.pauseOnAction, !1, !0, !0)) }) } }, controlNav: { setup: function () { r.manualControls ? u.controlNav.setupManual() : u.controlNav.setupPaging() }, setupPaging: function () { var c = r.vars.controlNav === "thumbnails" ? "control-thumbs" : "control-paging", h = 1, e, o, t, i; if (r.controlNavScaffold = n('<ol class="' + f + "control-nav " + f + c + '"><\/ol>'), r.pagingCount > 1) for (t = 0; t < r.pagingCount; t++) o = r.slides.eq(t), e = r.vars.controlNav === "thumbnails" ? '<img src="' + o.attr("data-thumb") + '"/>' : "<a>" + h + "<\/a>", "thumbnails" === r.vars.controlNav && !0 === r.vars.thumbCaptions && (i = o.attr("data-thumbcaption"), "" !== i && undefined !== i && (e += '<span class="' + f + 'caption">' + i + "<\/span>")), r.controlNavScaffold.append("<li>" + e + "<\/li>"), h++; r.controlsContainer ? n(r.controlsContainer).append(r.controlNavScaffold) : r.append(r.controlNavScaffold); u.controlNav.set(); u.controlNav.active(); r.controlNavScaffold.delegate("a, img", a, function (t) { if (t.preventDefault(), s === "" || s === t.type) { var i = n(this), e = r.controlNav.index(i); i.hasClass(f + "active") || (r.direction = e > r.currentSlide ? "next" : "prev", r.flexAnimate(e, r.vars.pauseOnAction)) } s === "" && (s = t.type); u.setToClearWatchedEvent() }) }, setupManual: function () { r.controlNav = r.manualControls; u.controlNav.active(); r.controlNav.bind(a, function (t) { if (t.preventDefault(), s === "" || s === t.type) { var i = n(this), e = r.controlNav.index(i); i.hasClass(f + "active") || (r.direction = e > r.currentSlide ? "next" : "prev", r.flexAnimate(e, r.vars.pauseOnAction)) } s === "" && (s = t.type); u.setToClearWatchedEvent() }) }, set: function () { var t = r.vars.controlNav === "thumbnails" ? "img" : "a"; r.controlNav = n("." + f + "control-nav li " + t, r.controlsContainer ? r.controlsContainer : r) }, active: function () { r.controlNav.removeClass(f + "active").eq(r.animatingTo).addClass(f + "active") }, update: function (t, i) { r.pagingCount > 1 && t === "add" ? r.controlNavScaffold.append(n("<li><a>" + r.count + "<\/a><\/li>")) : r.pagingCount === 1 ? r.controlNavScaffold.find("li").remove() : r.controlNav.eq(i).closest("li").remove(); u.controlNav.set(); r.pagingCount > 1 && r.pagingCount !== r.controlNav.length ? r.update(i, t) : u.controlNav.active() } }, directionNav: { setup: function () { var t = n('<ul class="' + f + 'direction-nav"><li class="' + f + 'nav-prev"><a class="' + f + 'prev" href="#">
2768' + r.vars.prevText + '<\/a><\/li><li class="' + f + 'nav-next"><a class="' + f + 'next" href="#">' + r.vars.nextText + "<\/a><\/li><\/ul>"); r.customDirectionNav ? r.directionNav = r.customDirectionNav : r.controlsContainer ? (n(r.controlsContainer).append(t), r.directionNav = n("." + f + "direction-nav li a", r.controlsContainer)) : (r.append(t), r.directionNav = n("." + f + "direction-nav li a", r)); u.directionNav.update(); r.directionNav.bind(a, function (t) { t.preventDefault(); var i; (s === "" || s === t.type) && (i = n(this).hasClass(f + "next") ? r.getTarget("next") : r.getTarget("prev"), r.flexAnimate(i, r.vars.pauseOnAction)); s === "" && (s = t.type); u.setToClearWatchedEvent() }) }, update: function () { var n = f + "disabled"; r.pagingCount === 1 ? r.directionNav.addClass(n).attr("tabindex", "-1") : r.vars.animationLoop ? r.directionNav.removeClass(n).removeAttr("tabindex") : r.animatingTo === 0 ? r.directionNav.removeClass(n).filter("." + f + "prev").addClass(n).attr("tabindex", "-1") : r.animatingTo === r.last ? r.directionNav.removeClass(n).filter("." + f + "next").addClass(n).attr("tabindex", "-1") : r.directionNav.removeClass(n).removeAttr("tabindex") } }, pausePlay: { setup: function () { var t = n('<div class="' + f + 'pauseplay"><a><\/a><\/div>'); r.controlsContainer ? (r.controlsContainer.append(t), r.pausePlay = n("." + f + "pauseplay a", r.controlsContainer)) : (r.append(t), r.pausePlay = n("." + f + "pauseplay a", r)); u.pausePlay.update(r.vars.slideshow ? f + "pause" : f + "play"); r.pausePlay.bind(a, function (t) { t.preventDefault(); (s === "" || s === t.type) && (n(this).hasClass(f + "pause") ? (r.manualPause = !0, r.manualPlay = !1, r.pause()) : (r.manualPause = !1, r.manualPlay = !0, r.play())); s === "" && (s = t.type); u.setToClearWatchedEvent() }) }, update: function (n) { n === "play" ? r.pausePlay.removeClass(f + "pause").addClass(f + "play").html(r.vars.playText) : r.pausePlay.removeClass(f + "play").addClass(f + "pause").html(r.vars.pauseText) } }, touch: function () { var p, w, f, u, n, s, d, b, k, l = !1, a = 0, y = 0, i = 0; if (v) { t.style.msTouchAction = "none"; t._gesture = new MSGesture; t._gesture.target = t; t.addEventListener("MSPointerDown", g, !1); t._slider = r; t.addEventListener("MSGestureChange", nt, !1); t.addEventListener("MSGestureEnd", tt, !1); function g(n) { n.stopPropagation(); r.animating ? n.preventDefault() : (r.pause(), t._gesture.addPointer(n.pointerId), i = 0, u = h ? r.h : r.w, s = Number(new Date), f = e && o && r.animatingTo === r.last ? 0 : e && o ? r.limit - (r.itemW + r.vars.itemMargin) * r.move * r.animatingTo : e && r.currentSlide === r.last ? r.limit : e ? (r.itemW + r.vars.itemMargin) * r.move * r.currentSlide : o ? (r.last - r.currentSlide + r.cloneOffset) * u : (r.currentSlide + r.cloneOffset) * u) } function nt(r) { var e, o, a; if (r.stopPropagation(), e = r.target._slider, e) { if (o = -r.translationX, a = -r.translationY, i = i + (h ? a : o), n = i, l = h ? Math.abs(i) < Math.abs(-o) : Math.abs(i) < Math.abs(-a), r.detail === r.MSGESTURE_FLAG_INERTIA) { setImmediate(function () { t._gesture.stop() }); return } (!l || Number(new Date) - s > 500) && (r.preventDefault(), !c && e.transitions && (e.vars.animationLoop || (n = i / (e.currentSlide === 0 && i < 0 || e.currentSlide === e.last && i > 0 ? Math.abs(i) / u + 2 : 1)), e.setProps(f + n, "setTouch"))) } } function tt(t) { var r, e, h; (t.stopPropagation(), r = t.target._slider, r) && (r.animatingTo !== r.currentSlide || l || n === null || (e = o ? -n : n, h = e > 0 ? r.getTarget("next") : r.getTarget("prev"), r.canAdvance(h) && (Number(new Date) - s < 550 && Math.abs(e) > 50 || Math.abs(e) > u / 2) ? r.flexAnimate(h, r.vars.pauseOnAction) : c || r.flexAnimate(r.currentSlide, r.vars.pauseOnAction, !0)), p = null, w = null, n = null, f = null, i = 0) } } else d = function (n) { r.animating ? n.preventDefault() : (window.navigator.msPointerEnabled || n.touches.length === 1) && (r.pause(), u = h ? r.h : r.w, s = Number(new Date), a = n.touches[0].pageX, y = n.touches[0].pageY, f = e && o && r.animatingTo === r.last ? 0 : e && o ? r.limit - (r.itemW + r.vars.itemMargin) * r.move * r.animatingTo : e && r.currentSlide === r.last ? r.limit : e ? (r.itemW + r.vars.itemMargin) * r.move * r.currentSlide : o ? (r.last - r.currentSlide + r.cloneOffset) * u : (r.currentSlide + r.cloneOffset) * u, p = h ? y : a, w = h ? a : y, t.addEventListener("touchmove", b, !1), t.addEventListener("touchend", k, !1)) }, b = function (t) { a = t.touches[0].pageX; y = t.touches[0].pageY; n = h ? p - y : p - a; l = h ? Math.abs(n) < Math.abs(a - w) : Math.abs(n) < Math.abs(y - w); (!l || Number(new Date) - s > 500) && (t.preventDefault(), !c && r.transitions && (r.vars.animationLoop || (n = n / (r.currentSlide === 0 && n < 0 || r.currentSlide === r.last && n > 0 ? Math.abs(n) / u + 2 : 1)), r.setProps(f + n, "setTouch"))) }, k = function () { if (t.removeEventListener("touchmove", b, !1), r.animatingTo === r.currentSlide && !l && !(n === null)) { var i = o ? -n : n, e = i > 0 ? r.getTarget("next") : r.getTarget("prev"); r.canAdvance(e) && (Number(new Date) - s < 550 && Math.abs(i) > 50 || Math.abs(i) > u / 2) ? r.flexAnimate(e, r.vars.pauseOnAction) : c || r.flexAnimate(r.currentSlide, r.vars.pauseOnAction, !0) } t.removeEventListener("touchend", k, !1); p = null; w = null; n = null; f = null }, t.addEventListener("touchstart", d, !1) }, resize: function () { !r.animating && r.is(":visible") && (e || r.doMath(), c ? u.smoothHeight() : e ? (r.slides.width(r.computedW), r.update(r.pagingCount), r.setProps()) : h ? (r.viewport.height(r.h), r.setProps(r.h, "setTotal")) : (r.vars.smoothHeight && u.smoothHeight(), r.newSlides.width(r.computedW), r.setProps(r.computedW, "setTotal"))) }, smoothHeight: function (n) { if (!h || c) { var t = c ? r : r.viewport; n ? t.animate({ height: r.slides.eq(r.animatingTo).height() }, n) : t.height(r.slides.eq(r.animatingTo).height()) } }, sync: function (t) { var i = n(r.vars.sync).data("flexslider"), u = r.animatingTo; switch (t) { case "animate": i.flexAnimate(u, r.vars.pauseOnAction, !1, !0); break; case "play": i.playing || i.asNav || i.play(); break; case "pause": i.pause() } }, uniqueID: function (t) { return t.filter("[id]").add(t.find("[id]")).each(function () { var t = n(this); t.attr("id", t.attr("id") + "_clone") }), t }, pauseInvisible: { visProp: null, init: function () { var n = u.pauseInvisible.getHiddenProp(), t; n && (t = n.replace(/[H|h]idden/, "") + "visibilitychange", document.addEventListener(t, function () { u.pauseInvisible.isHidden() ? r.startTimeout ? clearTimeout(r.startTimeout) : r.pause() : r.started ? r.play() : r.vars.initDelay > 0 ? setTimeout(r.play, r.vars.initDelay) : r.play() })) }, isHidden: function () { var n = u.pauseInvisible.getHiddenProp(); return n ? document[n] : !1 }, getHiddenProp: function () { var t = ["webkit", "moz", "ms", "o"], n; if ("hidden" in document) return "hidden"; for (n = 0; n < t.length; n++) if (t[n] + "Hidden" in document) return t[n] + "Hidden"; return null } }, setToClearWatchedEvent: function () { clearTimeout(p); p = setTimeout(function () { s = "" }, 3e3) } }; r.flexAnimate = function (t, i, s, a, v) { var w, p, d, b, k; if (r.vars.animationLoop || t === r.currentSlide || (r.direction = t > r.currentSlide ? "next" : "prev"), l && r.pagingCount === 1 && (r.direction = r.currentItem < t ? "next" : "prev"), !r.animating && (r.canAdvance(t, v) || s) && r.is(":visible")) { if (l && a) if (w = n(r.vars.asNavFor).data("flexslider"), r.atEnd = t === 0 || t === r.count - 1, w.flexAnimate(t, !0, !1, !0, v), r.direction = r.currentItem < t ? "next" : "prev", w.direction = r.direction, Math.ceil((t + 1) / r.visible) - 1 !== r.currentSlide && t !== 0) r.currentItem = t, r.slides.removeClass(f + "active-slide").eq(t).addClass(f + "active-slide"), t = Math.floor(t / r.visible); else return r.currentItem = t, r.slides.removeClass(f + "active-slide").eq(t).addClass(f + "active-slide"), !1; r.animating = !0; r.animatingTo = t; i && r.pause(); r.vars.before(r); r.syncExists && !v && u.sync("animate"); r.vars.controlNav && u.controlNav.active(); e || r.slides.removeClass(f + "active-slide").eq(t).addClass(f + "active-slide"); r.atEnd = t === 0 || t === r.last;
2768 r.vars.directionNav && u.directionNav.update(); t === r.last && (r.vars.end(r), r.vars.animationLoop || r.pause()); c ? y ? (r.slides.eq(r.currentSlide).css({ opacity: 0, zIndex: 1 }), r.slides.eq(t).css({ opacity: 1, zIndex: 2 }), r.wrapup(p)) : (r.slides.eq(r.currentSlide).css({ zIndex: 1 }).animate({ opacity: 0 }, r.vars.animationSpeed, r.vars.easing), r.slides.eq(t).css({ zIndex: 2 }).animate({ opacity: 1 }, r.vars.animationSpeed, r.vars.easing, r.wrapup)) : (p = h ? r.slides.filter(":first").height() : r.computedW, e ? (d = r.vars.itemMargin, k = (r.itemW + d) * r.move * r.animatingTo, b = k > r.limit && r.visible !== 1 ? r.limit : k) : b = r.currentSlide === 0 && t === r.count - 1 && r.vars.animationLoop && r.direction !== "next" ? o ? (r.count + r.cloneOffset) * p : 0 : r.currentSlide === r.last && t === 0 && r.vars.animationLoop && r.direction !== "prev" ? o ? 0 : (r.count + 1) * p : o ? (r.count - 1 - t + r.cloneOffset) * p : (t + r.cloneOffset) * p, r.setProps(b, "", r.vars.animationSpeed), r.transitions ? (r.vars.animationLoop && r.atEnd || (r.animating = !1, r.currentSlide = r.animatingTo), r.container.unbind("webkitTransitionEnd transitionend"), r.container.bind("webkitTransitionEnd transitionend", function () { clearTimeout(r.ensureAnimationEnd); r.wrapup(p) }), clearTimeout(r.ensureAnimationEnd), r.ensureAnimationEnd = setTimeout(function () { r.wrapup(p) }, r.vars.animationSpeed + 100)) : r.container.animate(r.args, r.vars.animationSpeed, r.vars.easing, function () { r.wrapup(p) })); r.vars.smoothHeight && u.smoothHeight(r.vars.animationSpeed) } }; r.wrapup = function (n) { c || e || (r.currentSlide === 0 && r.animatingTo === r.last && r.vars.animationLoop ? r.setProps(n, "jumpEnd") : r.currentSlide === r.last && r.animatingTo === 0 && r.vars.animationLoop && r.setProps(n, "jumpStart")); r.animating = !1; r.currentSlide = r.animatingTo; r.vars.after(r) }; r.animateSlides = function () { !r.animating && w && r.flexAnimate(r.getTarget("next")) }; r.pause = function () { clearInterval(r.animatedSlides); r.animatedSlides = null; r.playing = !1; r.vars.pausePlay && u.pausePlay.update("play"); r.syncExists && u.sync("pause") }; r.play = function () { r.playing && clearInterval(r.animatedSlides); r.animatedSlides = r.animatedSlides || setInterval(r.animateSlides, r.vars.slideshowSpeed); r.started = r.playing = !0; r.vars.pausePlay && u.pausePlay.update("pause"); r.syncExists && u.sync("play") }; r.stop = function () { r.pause(); r.stopped = !0 }; r.canAdvance = function (n, t) { var i = l ? r.pagingCount - 1 : r.last; return t ? !0 : l && r.currentItem === r.count - 1 && n === 0 && r.direction === "prev" ? !0 : l && r.currentItem === 0 && n === r.pagingCount - 1 && r.direction !== "next" ? !1 : n === r.currentSlide && !l ? !1 : r.vars.animationLoop ? !0 : r.atEnd && r.currentSlide === 0 && n === i && r.direction !== "next" ? !1 : r.atEnd && r.currentSlide === i && n === 0 && r.direction === "next" ? !1 : !0 }; r.getTarget = function (n) { return r.direction = n, n === "next" ? r.currentSlide === r.last ? 0 : r.currentSlide + 1 : r.currentSlide === 0 ? r.last : r.currentSlide - 1 }; r.setProps = function (n, t, i) { var u = function () { var i = n ? n : (r.itemW + r.vars.itemMargin) * r.move * r.animatingTo, u = function () { if (e) return t === "setTouch" ? n : o && r.animatingTo === r.last ? 0 : o ? r.limit - (r.itemW + r.vars.itemMargin) * r.move * r.animatingTo : r.animatingTo === r.last ? r.limit : i; switch (t) { case "setTotal": return o ? (r.count - 1 - r.currentSlide + r.cloneOffset) * n : (r.currentSlide + r.cloneOffset) * n; case "setTouch": return o ? n : n; case "jumpEnd": return o ? n : r.count * n; case "jumpStart": return o ? r.count * n : n; default: return n } }(); return Math.floor(u) * -1 + "px" }(); r.transitions && (u = h ? "translate3d(0," + u + ",0)" : "translate3d(" + u + ",0,0)", i = i !== undefined ? i / 1e3 + "s" : "0s", r.container.css("-" + r.pfx + "-transition-duration", i), r.container.css("transition-duration", i)); r.args[r.prop] = u; (r.transitions || i === undefined) && r.container.css(r.args); r.container.css("transform", u) }; r.setup = function (t) { if (c) r.slides.css({ width: "100%", float: "left", marginRight: "-100%", position: "relative" }), t === "init" && (y ? r.slides.css({ opacity: 0, display: "block", webkitTransition: "opacity " + r.vars.animationSpeed / 1e3 + "s ease", zIndex: 1 }).eq(r.currentSlide).css({ opacity: 1, zIndex: 2 }) : r.vars.fadeFirstSlide == !1 ? r.slides.css({ opacity: 0, display: "block", zIndex: 1 }).eq(r.currentSlide).css({ zIndex: 2 }).css({ opacity: 1 }) : r.slides.css({ opacity: 0, display: "block", zIndex: 1 }).eq(r.currentSlide).css({ zIndex: 2 }).animate({ opacity: 1 }, r.vars.animationSpeed, r.vars.easing)), r.vars.smoothHeight && u.smoothHeight(); else { var i, s; t === "init" && (r.viewport = n('<div class="' + f + 'viewport"><\/div>').css({ overflow: "hidden", position: "relative" }).appendTo(r).append(r.container), r.cloneCount = 0, r.cloneOffset = 0, o && (s = n.makeArray(r.slides).reverse(), r.slides = n(s), r.container.empty().append(r.slides))); r.vars.animationLoop && !e && (r.cloneCount = 2, r.cloneOffset = 1, t !== "init" && r.container.find(".clone").remove(), r.container.append(u.uniqueID(r.slides.first().clone().addClass("clone")).attr("aria-hidden", "true")).prepend(u.uniqueID(r.slides.last().clone().addClass("clone")).attr("aria-hidden", "true"))); r.newSlides = n(r.vars.selector, r); i = o ? r.count - 1 - r.currentSlide + r.cloneOffset : r.currentSlide + r.cloneOffset; h && !e ? (r.container.height((r.count + r.cloneCount) * 200 + "%").css("position", "absolute").width("100%"), setTimeout(function () { r.newSlides.css({ display: "block" }); r.doMath(); r.viewport.height(r.h); r.setProps(i * r.h, "init") }, t === "init" ? 100 : 0)) : (r.container.width((r.count + r.cloneCount) * 200 + "%"), r.setProps(i * r.computedW, "init"), setTimeout(function () { r.doMath(); r.newSlides.css({ width: r.computedW, float: "left", display: "block" }); r.vars.smoothHeight && u.smoothHeight() }, t === "init" ? 100 : 0)) } e || r.slides.removeClass(f + "active-slide").eq(r.currentSlide).addClass(f + "active-slide"); r.vars.init(r) }; r.doMath = function () { var f = r.slides.first(), n = r.vars.itemMargin, t = r.vars.minItems, u = r.vars.maxItems; r.w = r.viewport === undefined ? r.width() : r.viewport.width(); r.h = f.height(); r.boxPadding = f.outerWidth() - f.width(); e ? (r.itemT = r.vars.itemWidth + n, r.minW = t ? t * r.itemT : r.w, r.maxW = u ? u * r.itemT - n : r.w, r.itemW = r.minW > r.w ? (r.w - n * (t - 1)) / t : r.maxW < r.w ? (r.w - n * (u - 1)) / u : r.vars.itemWidth > r.w ? r.w : r.vars.itemWidth, r.visible = i.numItems, r.move = r.vars.move > 0 && r.vars.move < r.visible ? r.vars.move : r.visible, r.pagingCount = Math.
2768ceil((r.count - r.visible) / r.move) + 1, r.last = r.pagingCount - 1, r.limit = r.pagingCount === 1 ? 0 : r.vars.itemWidth > r.w ? r.itemW * (r.count - 1) + n * (r.count - 1) : (r.itemW + n) * r.count - r.w - n) : (r.itemW = r.w, r.pagingCount = r.count, r.last = r.count - 1); r.computedW = r.itemW - r.boxPadding }; r.update = function (n, t) { r.doMath(); e || (n < r.currentSlide ? r.currentSlide += 1 : n <= r.currentSlide && n !== 0 && (r.currentSlide -= 1), r.animatingTo = r.currentSlide); r.vars.controlNav && !r.manualControls && (t === "add" && !e || r.pagingCount > r.controlNav.length ? u.controlNav.update("add") : (t === "remove" && !e || r.pagingCount < r.controlNav.length) && (e && r.currentSlide > r.last && (r.currentSlide -= 1, r.animatingTo -= 1), u.controlNav.update("remove", r.last))); r.vars.directionNav && u.directionNav.update() }; r.addSlide = function (t, i) { var u = n(t); r.count += 1; r.last = r.count - 1; h && o ? i !== undefined ? r.slides.eq(r.count - i).after(u) : r.container.prepend(u) : i !== undefined ? r.slides.eq(i).before(u) : r.container.append(u); r.update(i, "add"); r.slides = n(r.vars.selector + ":not(.clone)", r); r.setup(); r.vars.added(r) }; r.removeSlide = function (t) { var i = isNaN(t) ? r.slides.index(n(t)) : t; r.count -= 1; r.last = r.count - 1; isNaN(t) ? n(t, r.slides).remove() : h && o ? r.slides.eq(r.last).remove() : r.slides.eq(t).remove(); r.doMath(); r.update(i, "remove"); r.slides = n(r.vars.selector + ":not(.clone)", r); r.setup(); r.vars.removed(r) }; u.init() }; n(window).blur(function () { var focused = !1 }).focus(function () { var focused = !0 }); n.flexslider.defaults = { namespace: "flex-", selector: ".slides > li", animation: "fade", easing: "swing", direction: "horizontal", reverse: !1, animationLoop: !0, smoothHeight: !1, startAt: 0, slideshow: !0, slideshowSpeed: 7e3, animationSpeed: 600, initDelay: 0, randomize: !1, fadeFirstSlide: !0, thumbCaptions: !1, numItems: 1, pauseOnAction: !0, pauseOnHover: !1, pauseInvisible: !0, useCSS: !0, touch: !0, video: !1, controlNav: !0, directionNav: !0, prevText: "", nextText: "", keyboard: !0, multipleKeyboard: !1, mousewheel: !1, pausePlay: !1, pauseText: "Pause", playText: "Play", controlsContainer: "", manualControls: "", customDirectionNav: "", sync: "", asNavFor: "", itemWidth: 0, itemMargin: 0, minItems: 1, maxItems: 0, move: 0, allowOneSlide: !0, start: function () { }, before: function () { }, after: function () { }, end: function () { }, added: function () { }, removed: function () { }, init: function () { } }; n.fn.flexslider = function (t) { if (t === undefined && (t = {}), typeof t == "object") return this.each(function () { var i = n(this), u = t.selector ? t.selector : ".slides > li", r = i.find(u); r.length === 1 && t.allowOneSlide === !0 || r.length === 0 ? (r.fadeIn(400), t.start && t.start(i)) : i.data("flexslider") === undefined && new n.flexslider(this, t) }); var i = n(this).data("flexslider"); switch (t) { case "play": i.play(); break; case "pause": i.pause(); break; case "stop": i.stop(); break; case "next": i.flexAnimate(i.getTarget("next"), !0); break; case "prev": case "previous": i.flexAnimate(i.getTarget("prev"), !0); break; default: typeof t == "number" && i.flexAnimate(t, !0) } } })(jQuery); 2769 2770/* 2771* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 2772*/ 2773 2774(function ($) { 2775 2776 $(document).ready(function () { 2777 $('.flexslider.slider,.flexslider.carousel').each(function () { 2778 if ($(this).attr("data-trigger") != "manual") $(this).initFlexSlider(); 2779 }); 2780 $('.list-full-screen li').css("height", $('.list-full-screen ').height() - 10); 2781 }); 2782 $.fn.restartFlexSlider = function () { 2783 var t = this; 2784 setTimeout(function () { $(t).removeData('flexslider'); $(t).find('li.clone').remove(); $(t).find('.flex-control-nav').remove(); $(t).initFlexSlider(); }, 100); 2785 } 2786 function animaSlider(obj) { 2787 var anima_li = $(obj).find(".flex-active-slide"); 2788 var anima = $(anima_li).attr("data-slider-anima"); 2789 if (!isEmpty(anima)) { 2790 $(anima_li).attr("data-anima", anima); 2791 initAnima(anima_li); 2792 } 2793 } 2794 $.fn.initFlexSlider = function () { 2795 var obj = this; 2796 var itemWidth = 250; 2797 var optionsString = $(obj).attr("data-options"); 2798 var optionsArr; 2799 var options = { 2800 animation: "slide", 2801 slideshowSpeed: 6000, 2802 controlNav: ($(obj).hasClass("thumb")) ? "thumbnails" : true, 2803 start: function () { 2804 if (!$(obj).hasClass("advanced-slider") && $.fn.renderLoadedImgs) $(obj).find(".slides").renderLoadedImgs(); 2805 if ($(obj).hasClass("carousel")) { 2806 $(obj).find(".slides > li").css("width", itemWidth + "px"); 2807 } 2808 if ($(obj).hasClass("thumb") || $(obj).hasClass("nav-middle")) $(obj).find(".flex-prev,.flex-next").css("top", $(obj).find(".slides > li img")[0].clientHeight / 2 + "px"); 2809 $(obj).find(".background-page video,.section-bg-video").each(function () { 2810 $(this).setVideoBgSize($(window).height(), $(window).width()); 2811 }); 2812 $(obj).find(".pos-slider.pos-center").each(function () {
2813 $(this).css("margin-left", "-" + $(this).width() / 2 + "px"); 2814 }); 2815 $(obj).find(".pos-slider.pos-middle").each(function () { 2816 $(this).css("margin-top", "-" + $(this).height() / 2 + "px"); 2817 }); 2818 animaSlider(obj); 2819 }, 2820 after: function () { 2821 animaSlider(obj); 2822 } 2823 } 2824 if (!isEmpty(optionsString)) { 2825 optionsArr = optionsString.split(","); 2826 options = getOptionsString(optionsString, options); 2827 if (optionsString.indexOf("controlNav:false") != -1) $(this).addClass("no-navs"); 2828 } 2829 2830 if ($(obj).hasClass("carousel")) { 2831 var slides = $(obj).find(".slides > li"); 2832 var minWidth = 110; 2833 if (wh < 993) { 2834 minWidth = 180; 2835 } 2836 var itemMargin = 5; 2837 var numItems = 3; 2838 var ow = $(obj).outerWidth(); 2839 if (!isEmpty(optionsString)) { 2840 for (i = 0; i < optionsArr.length; i++) { 2841 var val = optionsArr[i].split(":"); 2842 if (val[0] == "minWidth") minWidth = val[1]; 2843 if (val[0] == "itemWidth") itemWidth = val[1]; 2844 if (val[0] == "itemMargin") itemMargin = val[1]; 2845 if (val[0] == "numItems") numItems = parseInt(val[1]); 2846 } 2847 } 2848 itemWidth = ow / numItems; 2849 if (itemWidth < minWidth) { 2850 numItems = 1; 2851 if (ow / 2 > minWidth) numItems = 2; 2852 if (ow / 3 > minWidth) numItems = 3; 2853 itemWidth = ow / numItems; 2854 } 2855 if (numItems == 1) itemMargin = 0; 2856 itemWidth = itemWidth + itemMargin / numItems; 2857 itemWidth = itemWidth.toFixed(1); 2858 minWidth = itemWidth; 2859 2860 options["itemWidth"] = itemWidth; 2861 options["itemMargin"] = itemMargin; 2862 var m = Math.ceil(slides.length / numItems); 2863 options["move"] = (m > numItems) ? numItems : m; 2864 if (slides.length < numItems) options["move"] = 0; 2865 options["numItems"] = numItems; 2866 if (itemMargin > 0) { 2867 $(slides).css("padding-right", itemMargin + "px"); 2868 } 2869 } 2870 $("*[data-slider-anima] .anima").each(function () { 2871 $(this).css("opacity", 0); 2872 }); 2873 $(obj).flexslider(options); 2874 2875 } 2876}(jQuery)); 2877 2878// Magnific Popup v1.0.0 by Dmitry Semenov 2879// http://bit.ly/magnific-popup#build=inline+image+ajax+iframe+gallery+retina+imagezoom+fastclick 2880(function (a) { typeof define == "function" && define.amd ? define(["jquery"], a) : typeof exports == "object" ? a(require("jquery")) : a(window.jQuery || window.Zepto) })(function (a) { var b = "Close", c = "BeforeClose", d = "AfterClose", e = "BeforeAppend", f = "MarkupParse", g = "Open", h = "Change", i = "mfp", j = "." + i, k = "mfp-ready", l = "mfp-removing", m = "mfp-prevent-close", n, o = function () { }, p = !!window.jQuery, q, r = a(window), s, t, u, v, w = function (a, b) { n.ev.on(i + a + j, b) }, x = function (b, c, d, e) { var f = document.createElement("div"); return f.className = "mfp-" + b, d && (f.innerHTML = d), e ? c && c.appendChild(f) : (f = a(f), c && f.appendTo(c)), f }, y = function (b, c) { n.ev.triggerHandler(i + b, c), n.st.callbacks && (b = b.charAt(0).toLowerCase() + b.slice(1), n.st.callbacks[b] && n.st.callbacks[b].apply(n, a.isArray(c) ? c : [c])) }, z = function (b) { if (b !== v || !n.currTemplate.closeBtn) n.currTemplate.closeBtn = a(n.st.closeMarkup.replace("%title%", n.st.tClose)), v = b; return n.currTemplate.closeBtn }, A = function () { a.magnificPopup.instance || (n = new o, n.init(), a.magnificPopup.instance = n) }, B = function () { var a = document.createElement("p").style, b = ["ms", "O", "Moz", "Webkit"]; if (a.transition !== undefined) return !0; while (b.length) if (b.pop() + "Transition" in a) return !0; return !1 }; o.prototype = { constructor: o, init: function () { var b = navigator.appVersion; n.isIE7 = b.indexOf("MSIE 7.") !== -1, n.isIE8 = b.indexOf("MSIE 8.") !== -1, n.isLowIE = n.isIE7 || n.isIE8, n.isAndroid = /android/gi.test(b), n.isIOS = /iphone|ipad|ipod/gi.test(b), n.supportsTransition = B(), n.probablyMobile = n.isAndroid || n.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), s = a(document), n.popupsCache = {} }, open: function (b) { var c; if (b.isObj === !1) { n.items = b.items.toArray(), n.index = 0; var d = b.items, e; for (c = 0; c < d.length; c++) { e = d[c], e.parsed && (e = e.el[0]); if (e === b.el[0]) { n.index = c; break } } } else n.items = a.isArray(b.items) ? b.items : [b.items], n.index = b.index || 0; if (n.isOpen) { n.updateItemHTML(); return } n.types = [], u = "", b.mainEl && b.mainEl.length ? n.ev = b.mainEl.eq(0) : n.ev = s, b.key ? (n.popupsCache[b.key] || (n.popupsCache[b.key] = {}), n.currTemplate = n.popupsCache[b.key]) : n.currTemplate = {}, n.st = a.extend(!0, {}, a.magnificPopup.defaults, b), n.fixedContentPos = n.st.fixedContentPos === "auto" ? !n.probablyMobile : n.st.fixedContentPos, n.st.modal && (n.st.closeOnContentClick = !1, n.st.closeOnBgClick = !1, n.st.showCloseBtn = !1, n.st.enableEscapeKey = !1), n.bgOverlay || (n.bgOverlay = x("bg").on("click" + j, function () { n.close() }), n.wrap = x("wrap").attr("tabindex", -1).on("click" + j, function (a) { n._checkIfClose(a.target) && n.close() }), n.container = x("container", n.wrap)), n.contentContainer = x("content"), n.st.preloader && (n.preloader = x("preloader", n.container, n.st.tLoading));
2880 var h = a.magnificPopup.modules; for (c = 0; c < h.length; c++) { var i = h[c]; i = i.charAt(0).toUpperCase() + i.slice(1), n["init" + i].call(n) } y("BeforeOpen"), n.st.showCloseBtn && (n.st.closeBtnInside ? (w(f, function (a, b, c, d) { c.close_replaceWith = z(d.type) }), u += " mfp-close-btn-in") : n.wrap.append(z())), n.st.alignTop && (u += " mfp-align-top"), n.fixedContentPos ? n.wrap.css({ overflow: n.st.overflowY, overflowX: "hidden", overflowY: n.st.overflowY }) : n.wrap.css({ top: r.scrollTop(), position: "absolute" }), (n.st.fixedBgPos === !1 || n.st.fixedBgPos === "auto" && !n.fixedContentPos) && n.bgOverlay.css({ height: s.height(), position: "absolute" }), n.st.enableEscapeKey && s.on("keyup" + j, function (a) { a.keyCode === 27 && n.close() }), r.on("resize" + j, function () { n.updateSize() }), n.st.closeOnContentClick || (u += " mfp-auto-cursor"), u && n.wrap.addClass(u); var l = n.wH = r.height(), m = {}; if (n.fixedContentPos && n._hasScrollBar(l)) { var o = n._getScrollbarSize(); o && (m.marginRight = o) } n.fixedContentPos && (n.isIE7 ? a("body, html").css("overflow", "hidden") : m.overflow = "hidden"); var p = n.st.mainClass; return n.isIE7 && (p += " mfp-ie7"), p && n._addClassToMFP(p), n.updateItemHTML(), y("BuildControls"), a("html").css(m), n.bgOverlay.add(n.wrap).prependTo(n.st.prependTo || a(document.body)), n._lastFocusedEl = document.activeElement, setTimeout(function () { n.content ? (n._addClassToMFP(k), n._setFocus()) : n.bgOverlay.addClass(k), s.on("focusin" + j, n._onFocusIn) }, 16), n.isOpen = !0, n.updateSize(l), y(g), b }, close: function () { if (!n.isOpen) return; y(c), n.isOpen = !1, n.st.removalDelay && !n.isLowIE && n.supportsTransition ? (n._addClassToMFP(l), setTimeout(function () { n._close() }, n.st.removalDelay)) : n._close() }, _close: function () { y(b); var c = l + " " + k + " "; n.bgOverlay.detach(), n.wrap.detach(), n.container.empty(), n.st.mainClass && (c += n.st.mainClass + " "), n._removeClassFromMFP(c); if (n.fixedContentPos) { var e = { marginRight: "" }; n.isIE7 ? a("body, html").css("overflow", "") : e.overflow = "", a("html").css(e) } s.off("keyup" + j + " focusin" + j), n.ev.off(j), n.wrap.attr("class", "mfp-wrap").removeAttr("style"), n.bgOverlay.attr("class", "mfp-bg"), n.container.attr("class", "mfp-container"), n.st.showCloseBtn && (!n.st.closeBtnInside || n.currTemplate[n.currItem.type] === !0) && n.currTemplate.closeBtn && n.currTemplate.closeBtn.detach(), n._lastFocusedEl && a(n._lastFocusedEl).focus(), n.currItem = null, n.content = null, n.currTemplate = null, n.prevHeight = 0, y(d) }, updateSize: function (a) { if (n.isIOS) { var b = document.documentElement.clientWidth / window.innerWidth, c = window.innerHeight * b; n.wrap.css("height", c), n.wH = c } else n.wH = a || r.height(); n.fixedContentPos || n.wrap.css("height", n.wH), y("Resize") }, updateItemHTML: function () { var b = n.items[n.index]; n.contentContainer.detach(), n.content && n.content.detach(), b.parsed || (b = n.parseEl(n.index)); var c = b.type; y("BeforeChange", [n.currItem ? n.currItem.type : "", c]), n.currItem = b; if (!n.currTemplate[c]) { var d = n.st[c] ? n.st[c].markup : !1; y("FirstMarkupParse", d), d ? n.currTemplate[c] = a(d) : n.currTemplate[c] = !0 } t && t !== b.type && n.container.removeClass("mfp-" + t + "-holder"); var e = n["get" + c.charAt(0).toUpperCase() + c.slice(1)](b, n.currTemplate[c]); n.appendContent(e, c), b.preloaded = !0, y(h, b), t = b.type, n.container.prepend(n.contentContainer), y("AfterChange") }, appendContent: function (a, b) { n.content = a, a ? n.st.showCloseBtn && n.st.closeBtnInside && n.currTemplate[b] === !0 ? n.content.find(".mfp-close").length || n.content.append(z()) : n.content = a : n.content = "", y(e), n.container.addClass("mfp-" + b + "-holder"), n.contentContainer.append(n.content) }, parseEl: function (b) { var c = n.items[b], d; c.tagName ? c = { el: a(c) } : (d = c.type, c = { data: c, src: c.src }); if (c.el) { var e = n.types; for (var f = 0; f < e.length; f++) if (c.el.hasClass("mfp-" + e[f])) { d = e[f]; break } c.src = c.el.attr("data-mfp-src"), c.src || (c.src = c.el.attr("href")) } return c.type = d || n.st.type || "inline", c.index = b, c.parsed = !0, n.items[b] = c, y("ElementParse", c), n.items[b] }, addGroup: function (a, b) { var c = function (c) { c.mfpEl = this, n._openClick(c, a, b) }; b || (b = {}); var d = "click.magnificPopup"; b.mainEl = a, b.items ? (b.isObj = !0, a.off(d).on(d, c)) : (b.isObj = !1, b.delegate ? a.off(d).on(d, b.delegate, c) : (b.items = a, a.off(d).on(d, c))) }, _openClick: function (b, c, d) { var e = d.midClick !== undefined ? d.midClick : a.magnificPopup.defaults.midClick; if (!e && (b.which === 2 || b.ctrlKey || b.metaKey)) return; var f = d.disableOn !== undefined ? d.disableOn : a.magnificPopup.defaults.disableOn; if (f) if (a.isFunction(f)) { if (!f.call(n)) return !0 } else if (r.width() < f) return !0; b.type && (b.preventDefault(), n.isOpen && b.stopPropagation()), d.el = a(b.mfpEl), d.delegate && (d.items = c.find(d.delegate)), n.open(d) }, updateStatus: function (a, b) { if (n.preloader) { q !== a && n.container.removeClass("mfp-s-" + q), !b && a === "loading" && (b = n.st.tLoading); var c = { status: a, text: b }; y("UpdateStatus", c), a = c.status, b = c.text, n.preloader.html(b), n.preloader.find("a").on("click", function (a) { a.stopImmediatePropagation() }), n.container.addClass("mfp-s-" + a), q = a } }, _checkIfClose: function (b) { if (a(b).hasClass(m)) return; var c = n.st.closeOnContentClick, d = n.st.closeOnBgClick; if (c && d) return !0; if (!n.content || a(b).hasClass("mfp-close") || n.preloader && b === n.preloader[0]) return !0; if (b !== n.content[0] && !a.contains(n.content[0], b)) { if (d && a.contains(document, b)) return !0 } else if (c) return !0; return !1 }, _addClassToMFP: function (a) { n.bgOverlay.addClass(a), n.wrap.addClass(a) }, _removeClassFromMFP: function (a) { this.bgOverlay.removeClass(a), n.wrap.removeClass(a) }, _hasScrollBar: function (a) { return (n.isIE7 ? s.height() : document.body.scrollHeight) > (a || r.height()) }, _setFocus: function () { (n.st.focus ? n.content.find(n.st.focus).eq(0) : n.wrap).focus() }, _onFocusIn: function (b) { if (b.target !== n.wrap[0] && !a.contains(n.wrap[0], b.target)) return n._setFocus(), !1 }, _parseMarkup: function (b, c, d) { var e; d.data && (c = a.extend(d.data, c)), y(f, [b, c, d]), a.each(c, function (a, c) { if (c === undefined || c === !1) return !0; e = a.split("_"); if (e.length >
2880 1) { var d = b.find(j + "-" + e[0]); if (d.length > 0) { var f = e[1]; f === "replaceWith" ? d[0] !== c[0] && d.replaceWith(c) : f === "img" ? d.is("img") ? d.attr("src", c) : d.replaceWith('<img src="' + c + '" class="' + d.attr("class") + '" />') : d.attr(e[1], c) } } else b.find(j + "-" + a).html(c) }) }, _getScrollbarSize: function () { if (n.scrollbarSize === undefined) { var a = document.createElement("div"); a.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(a), n.scrollbarSize = a.offsetWidth - a.clientWidth, document.body.removeChild(a) } return n.scrollbarSize } }, a.magnificPopup = { instance: null, proto: o.prototype, modules: [], open: function (b, c) { return A(), b ? b = a.extend(!0, {}, b) : b = {}, b.isObj = !0, b.index = c || 0, this.instance.open(b) }, close: function () { return a.magnificPopup.instance && a.magnificPopup.instance.close() }, registerModule: function (b, c) { c.options && (a.magnificPopup.defaults[b] = c.options), a.extend(this.proto, c.proto), this.modules.push(b) }, defaults: { disableOn: 0, key: null, midClick: !1, mainClass: "", preloader: !0, focus: "", closeOnContentClick: !1, closeOnBgClick: !0, closeBtnInside: !0, showCloseBtn: !0, enableEscapeKey: !0, modal: !1, alignTop: !1, removalDelay: 0, prependTo: null, fixedContentPos: "auto", fixedBgPos: "auto", overflowY: "auto", closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>', tClose: "Close (Esc)", tLoading: "" } }, a.fn.magnificPopup = function (b) { A(); var c = a(this); if (typeof b == "string") if (b === "open") { var d, e = p ? c.data("magnificPopup") : c[0].magnificPopup, f = parseInt(arguments[1], 10) || 0; e.items ? d = e.items[f] : (d = c, e.delegate && (d = d.find(e.delegate)), d = d.eq(f)), n._openClick({ mfpEl: d }, c, e) } else n.isOpen && n[b].apply(n, Array.prototype.slice.call(arguments, 1)); else b = a.extend(!0, {}, b), p ? c.data("magnificPopup", b) : c[0].magnificPopup = b, n.addGroup(c, b); return c }; var C = "inline", D, E, F, G = function () { F && (E.after(F.addClass(D)).detach(), F = null) }; a.magnificPopup.registerModule(C, { options: { hiddenClass: "hide", markup: "", tNotFound: "Content not found" }, proto: { initInline: function () { n.types.push(C), w(b + "." + C, function () { G() }) }, getInline: function (b, c) { G(); if (b.src) { var d = n.st.inline, e = a(b.src); if (e.length) { var f = e[0].parentNode; f && f.tagName && (E || (D = d.hiddenClass, E = x(D), D = "mfp-" + D), F = e.after(E).detach().removeClass(D)), n.updateStatus("ready") } else n.updateStatus("error", d.tNotFound), e = a("<div>"); return b.inlineElement = e, e } return n.updateStatus("ready"), n._parseMarkup(c, {}, b), c } } }); var H = "ajax", I, J = function () { I && a(document.body).removeClass(I) }, K = function () { J(), n.req && n.req.abort() }; a.magnificPopup.registerModule(H, { options: { settings: null, cursor: "mfp-ajax-cur", tError: '<a href="%url%">The content</a> could not be loaded.' }, proto: { initAjax: function () { n.types.push(H), I = n.st.ajax.cursor, w(b + "." + H, K), w("BeforeChange." + H, K) }, getAjax: function (b) { I && a(document.body).addClass(I), n.updateStatus("loading"); var c = a.extend({ url: b.src, success: function (c, d, e) { var f = { data: c, xhr: e }; y("ParseAjax", f), n.appendContent(a(f.data), H), b.finished = !0, J(), n._setFocus(), setTimeout(function () { n.wrap.addClass(k) }, 16), n.updateStatus("ready"), y("AjaxContentAdded") }, error: function () { J(), b.finished = b.loadError = !0, n.updateStatus("error", n.st.ajax.tError.replace("%url%", b.src)) } }, n.st.ajax.settings); return n.req = a.ajax(c), "" } } }); var L, M = function (b) { if (b.data && b.data.title !== undefined) return b.data.title; var c = n.st.image.titleSrc; if (c) { if (a.isFunction(c)) return c.call(n, b); if (b.el) return b.el.attr(c) || "" } return "" }; a.magnificPopup.registerModule("image", { options: { markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>', cursor: "mfp-zoom-out-cur", titleSrc: "title", verticalFit: !0, tError: '<a href="%url%">The image</a> could not be loaded.' }, proto: { initImage: function () { var c = n.st.image, d = ".image"; n.types.push("image"), w(g + d, function () { n.currItem.type === "image" && c.cursor && a(document.body).addClass(c.cursor) }), w(b + d, function () { c.cursor && a(document.body).removeClass(c.cursor), r.off("resize" + j) }), w("Resize" + d, n.resizeImage), n.isLowIE && w("AfterChange", n.resizeImage) }, resizeImage: function () { var a = n.currItem; if (!a || !a.img) return; if (n.st.image.verticalFit) { var b = 0; n.isLowIE && (b = parseInt(a.img.css("padding-top"), 10) + parseInt(a.img.css("padding-bottom"), 10)), a.img.css("max-height", n.wH - b) } }, _onImageHasSize: function (a) { a.img && (a.hasSize = !0, L && clearInterval(L), a.isCheckingImgSize = !1, y("ImageHasSize", a), a.imgHidden && (n.content && n.content.removeClass("mfp-loading"), a.imgHidden = !1)) }, findImageSize: function (a) { var b = 0, c = a.img[0], d = function (e) { L && clearInterval(L), L = setInterval(function () { if (c.naturalWi
2880dth > 0) { n._onImageHasSize(a); return } b > 200 && clearInterval(L), b++, b === 3 ? d(10) : b === 40 ? d(50) : b === 100 && d(500) }, e) }; d(1) }, getImage: function (b, c) { var d = 0, e = function () { b && (b.img[0].complete ? (b.img.off(".mfploader"), b === n.currItem && (n._onImageHasSize(b), n.updateStatus("ready")), b.hasSize = !0, b.loaded = !0, y("ImageLoadComplete")) : (d++, d < 200 ? setTimeout(e, 100) : f())) }, f = function () { b && (b.img.off(".mfploader"), b === n.currItem && (n._onImageHasSize(b), n.updateStatus("error", g.tError.replace("%url%", b.src))), b.hasSize = !0, b.loaded = !0, b.loadError = !0) }, g = n.st.image, h = c.find(".mfp-img"); if (h.length) { var i = document.createElement("img"); i.className = "mfp-img", b.el && b.el.find("img").length && (i.alt = b.el.find("img").attr("alt")), b.img = a(i).on("load.mfploader", e).on("error.mfploader", f), i.src = b.src, h.is("img") && (b.img = b.img.clone()), i = b.img[0], i.naturalWidth > 0 ? b.hasSize = !0 : i.width || (b.hasSize = !1) } return n._parseMarkup(c, { title: M(b), img_replaceWith: b.img }, b), n.resizeImage(), b.hasSize ? (L && clearInterval(L), b.loadError ? (c.addClass("mfp-loading"), n.updateStatus("error", g.tError.replace("%url%", b.src))) : (c.removeClass("mfp-loading"), n.updateStatus("ready")), c) : (n.updateStatus("loading"), b.loading = !0, b.hasSize || (b.imgHidden = !0, c.addClass("mfp-loading"), n.findImageSize(b)), c) } } }); var N, O = function () { return N === undefined && (N = document.createElement("p").style.MozTransform !== undefined), N }; a.magnificPopup.registerModule("zoom", { options: { enabled: !1, easing: "ease-in-out", duration: 300, opener: function (a) { return a.is("img") ? a : a.find("img") } }, proto: { initZoom: function () { var a = n.st.zoom, d = ".zoom", e; if (!a.enabled || !n.supportsTransition) return; var f = a.duration, g = function (b) { var c = b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"), d = "all " + a.duration / 1e3 + "s " + a.easing, e = { position: "fixed", zIndex: 9999, left: 0, top: 0, "-webkit-backface-visibility": "hidden" }, f = "transition"; return e["-webkit-" + f] = e["-moz-" + f] = e["-o-" + f] = e[f] = d, c.css(e), c }, h = function () { n.content.css("visibility", "visible") }, i, j; w("BuildControls" + d, function () { if (n._allowZoom()) { clearTimeout(i), n.content.css("visibility", "hidden"), e = n._getItemToZoom(); if (!e) { h(); return } j = g(e), j.css(n._getOffset()), n.wrap.append(j), i = setTimeout(function () { j.css(n._getOffset(!0)), i = setTimeout(function () { h(), setTimeout(function () { j.remove(), e = j = null, y("ZoomAnimationEnded") }, 16) }, f) }, 16) } }), w(c + d, function () { if (n._allowZoom()) { clearTimeout(i), n.st.removalDelay = f; if (!e) { e = n._getItemToZoom(); if (!e) return; j = g(e) } j.css(n._getOffset(!0)), n.wrap.append(j), n.content.css("visibility", "hidden"), setTimeout(function () { j.css(n._getOffset()) }, 16) } }), w(b + d, function () { n._allowZoom() && (h(), j && j.remove(), e = null) }) }, _allowZoom: function () { return n.currItem.type === "image" }, _getItemToZoom: function () { return n.currItem.hasSize ? n.currItem.img : !1 }, _getOffset: function (b) { var c; b ? c = n.currItem.img : c = n.st.zoom.opener(n.currItem.el || n.currItem); var d = c.offset(), e = parseInt(c.css("padding-top"), 10), f = parseInt(c.css("padding-bottom"), 10); d.top -= a(window).scrollTop() - e; var g = { width: c.width(), height: (p ? c.innerHeight() : c[0].offsetHeight) - f - e }; return O() ? g["-moz-transform"] = g.transform = "translate(" + d.left + "px," + d.top + "px)" : (g.left = d.left, g.top = d.top), g } } }); var P = "iframe", Q = "//about:blank", R = function (a) { if (n.currTemplate[P]) { var b = n.currTemplate[P].find("iframe"); b.length && (a || (b[0].src = Q), n.isIE8 && b.css("display", a ? "block" : "none")) } }; a.magnificPopup.registerModule(P, { options: { markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>', srcAction: "iframe_src", patterns: { youtube: { index: "youtube.com", id: "v=", src: "http://www.youtube.com/embed/%id%" }, vimeo: { index: "vimeo.com/", id: "/", src: "https://player.vimeo.com/video/%id%?autoplay=1" }, gmaps: { index: "https://maps.google.", src: "%id%&output=embed" } } }, proto: { initIframe: function () { n.types.push(P), w("BeforeChange", function (a, b, c) { b !== c && (b === P ? R() : c === P && R(!0)) }), w(b + "." + P, function () { R() }) }, getIframe: function (b, c) { var d = b.src, e = n.st.iframe; a.each(e.patterns, function () { if (d.indexOf(this.index) > -1) return this.id && (typeof this.id == "string" ? d = d.substr(d.lastIndexOf(this.id
2880) + this.id.length, d.length) : d = this.id.call(this, d)), d = this.src.replace("%id%", d), !1 }); var f = {}; return e.srcAction && (f[e.srcAction] = d), n._parseMarkup(c, f, b), n.updateStatus("ready"), c } } }); var S = function (a) { var b = n.items.length; return a > b - 1 ? a - b : a < 0 ? b + a : a }, T = function (a, b, c) { return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c) }; a.magnificPopup.registerModule("gallery", { options: { enabled: !1, arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', preload: [0, 2], navigateByImgClick: !0, arrows: !0, tPrev: "Previous (Left arrow key)", tNext: "Next (Right arrow key)", tCounter: "%curr% of %total%" }, proto: { initGallery: function () { var c = n.st.gallery, d = ".mfp-gallery", e = Boolean(a.fn.mfpFastClick); n.direction = !0; if (!c || !c.enabled) return !1; u += " mfp-gallery", w(g + d, function () { c.navigateByImgClick && n.wrap.on("click" + d, ".mfp-img", function () { if (n.items.length > 1) return n.next(), !1 }), s.on("keydown" + d, function (a) { a.keyCode === 37 ? n.prev() : a.keyCode === 39 && n.next() }) }), w("UpdateStatus" + d, function (a, b) { b.text && (b.text = T(b.text, n.currItem.index, n.items.length)) }), w(f + d, function (a, b, d, e) { var f = n.items.length; d.counter = f > 1 ? T(c.tCounter, e.index, f) : "" }), w("BuildControls" + d, function () { if (n.items.length > 1 && c.arrows && !n.arrowLeft) { var b = c.arrowMarkup, d = n.arrowLeft = a(b.replace(/%title%/gi, c.tPrev).replace(/%dir%/gi, "left")).addClass(m), f = n.arrowRight = a(b.replace(/%title%/gi, c.tNext).replace(/%dir%/gi, "right")).addClass(m), g = e ? "mfpFastClick" : "click"; d[g](function () { n.prev() }), f[g](function () { n.next() }), n.isIE7 && (x("b", d[0], !1, !0), x("a", d[0], !1, !0), x("b", f[0], !1, !0), x("a", f[0], !1, !0)), n.container.append(d.add(f)) } }), w(h + d, function () { n._preloadTimeout && clearTimeout(n._preloadTimeout), n._preloadTimeout = setTimeout(function () { n.preloadNearbyImages(), n._preloadTimeout = null }, 16) }), w(b + d, function () { s.off(d), n.wrap.off("click" + d), n.arrowLeft && e && n.arrowLeft.add(n.arrowRight).destroyMfpFastClick(), n.arrowRight = n.arrowLeft = null }) }, next: function () { n.direction = !0, n.index = S(n.index + 1), n.updateItemHTML() }, prev: function () { n.direction = !1, n.index = S(n.index - 1), n.updateItemHTML() }, goTo: function (a) { n.direction = a >= n.index, n.index = a, n.updateItemHTML() }, preloadNearbyImages: function () { var a = n.st.gallery.preload, b = Math.min(a[0], n.items.length), c = Math.min(a[1], n.items.length), d; for (d = 1; d <= (n.direction ? c : b) ; d++) n._preloadItem(n.index + d); for (d = 1; d <= (n.direction ? b : c) ; d++) n._preloadItem(n.index - d) }, _preloadItem: function (b) { b = S(b); if (n.items[b].preloaded) return; var c = n.items[b]; c.parsed || (c = n.parseEl(b)), y("LazyLoad", c), c.type === "image" && (c.img = a('<img class="mfp-img" />').on("load.mfploader", function () { c.hasSize = !0 }).on("error.mfploader", function () { c.hasSize = !0, c.loadError = !0, y("LazyLoadError", c) }).attr("src", c.src)), c.preloaded = !0 } } }); var U = "retina"; a.magnificPopup.registerModule(U, { options: { replaceSrc: function (a) { return a.src.replace(/\.\w+$/, function (a) { return "@2x" + a }) }, ratio: 1 }, proto: { initRetina: function () { if (window.devicePixelRatio > 1) { var a = n.st.retina, b = a.ratio; b = isNaN(b) ? b() : b, b > 1 && (w("ImageHasSize." + U, function (a, c) { c.img.css({ "max-width": c.img[0].naturalWidth / b, width: "100%" }) }), w("ElementParse." + U, function (c, d) { d.src = a.replaceSrc(d, b) })) } } } }), function () { var b = 1e3, c = "ontouchstart" in window, d = function () { r.off("touchmove" + f + " touchend" + f) }, e = "mfpFastClick", f = "." + e; a.fn.mfpFastClick = function (e) { return a(this).each(function () { var g = a(this), h; if (c) { var i, j, k, l, m, n; g.on("touchstart" + f, function (a) { l = !1, n = 1, m = a.originalEvent ? a.originalEvent.touches[0] : a.touches[0], j = m.clientX, k = m.clientY, r.on("touchmove" + f, function (a) { m = a.originalEvent ? a.originalEvent.touches : a.touches, n = m.length, m = m[0]; if (Math.abs(m.clientX - j) > 10 || Math.abs(m.clientY - k) > 10) l = !0, d() }).on("touchend" + f, function (a) { d(); if (l || n > 1) return; h = !0, a.preventDefault(), clearTimeout(i), i = setTimeout(function () { h = !1 }, b), e() }) }) } g.on("click" + f, function () { h || e() }) }) }, a.fn.destroyMfpFastClick = function () { a(this).off("touchstart" + f + " click" + f), c && r.off("touchmove" + f + " touchend" + f) } }(), A() }); 2881 2882 2883/* 2884* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 2885*/ 2886(function ($) { 2887 2888 $.fn.showPopupBanner = function () { 2889 var t = this; 2890 var a = $(t).attr("data-popup-anima"); 2891 if (!isEmpty(a)) { 2892 $(t).css("opacity", 0); 2893 $(t).showAnima(a); 2894 } 2895 $(t).css("display", "block"); 2896 2897 }; 2898 $.fn.initMagnificPopup = function () { 2899 var obj = this; 2900 var optionsString = $(obj).attr("data-options"); 2901 var trigger = $(obj).attr("data-trigger"); 2902 if (isEmpty(trigger)) trigger = ""; 2903 var a = $(obj).attr("data-lightbox-anima"); 2904 var href = $(obj).attr("href"); 2905 if (isEmpty(href)) href = "" 2906 var optionsArr; 2907 var options = { 2908 type: 'iframe' 2909 } 2910 2911 if (!isEmpty(optionsString)) { 2912 optionsArr = optionsString.split(","); 2913 options = getOptionsString(optionsString, options); 2914 } 2915 if (isEmpty(options['mainClass'])) options['mainClass'] = ""; 2916 if (trigger == "load" || trigger == "scroll") { 2917 var l = $(obj).attr("data-link"); 2918 var c = $(obj).attr("data-click"); 2919 if (isEmpty(l)) { href = "#" + $(this).attr("id"); options['mainClass'] += ' custom-lightbox'; } 2920 else href = l; 2921 2922 if (!isEmpty(c)) { 2923 $("body").on("click", ".lightbox-on-load", function () { 2924 if ($(obj).attr("data-click-target") == "_blank") window.open(c); 2925 else document.location = c; 2926 }); 2927 } 2928 } 2929 2930 if ($(obj).hasClass("grid-box") || $(obj).hasClass("maso-box")) { 2931 options["type"] = "image"; 2932 options["delegate"] = "a.img-box,.advs-box a:not(.img-box)"; 2933 options["gallery"] = { enabled: 1 }; 2934 } 2935 if ((href.indexOf(".jpg") != -1) || (href.indexOf(".png") != -1)) options['type'] = 'image'; 2936 if (href.indexOf("#") == 0) { 2937 options['type'] = 'inline'; 2938 options['mainClass'] += ' box-inline'; 2939 options['closeBtnInside'] = 0; 2940 } 2941 options["callbacks"] = { 2942 "open": function () { 2943 var mfp_cnt = $('.mfp-content') 2944 , modalWrap = mfp_cnt.closest('.mfp-wrap') 2945 , btnClose = modalWrap.find('.mfp-close') 2946 , btnCloseClone = btnClose.clone() 2947 ; 2948 btnClose.remove(); 2949 mfp_cnt.find('.subtitle').prepend(btnCloseClone); 2950 //console.log(btnCloseClone); 2951 if (!isEmpty(a)) { 2952 $(mfp_cnt).showAnima(a); 2953 $(mfp_cnt).css("opacity", 0); 2954 } else { 2955 if ((!isEmpty(optionsString)) && optionsString.indexOf("anima:") != -1) { 2956 $(mfp_cnt).showAnima(options['anima']); 2957 $(mfp_cnt).css("opacity", 0); 2958 } 2959 } 2960 if (href.indexOf("#") == 0) { 2961 $(href).css("display", "block"); 2962 } 2963 if ($.isFunction($.fn.initFlexSlider)) { 2964 var i = 0; 2965 $(mfp_cnt).find(".flexslider").each(function () { 2966 $(this).initFlexSlider(); 2967 i++; 2968 }); 2969 if (i) $(window).trigger('resize').trigger('scroll'); 2970 } 2971 if ($.isFunction($.fn.googleMap)) $(mfp_cnt).find(".google-map").googleMap(); 2972 }, 2973 change: function (item) { 2974 var h = this.content; 2975 $('.mfp-container').removeClass("active"); 2976 setTimeout(function () { $('.mfp-container').addClass("active"); }, 500); 2977 if ($.isFunction($.fn.initFlexSlider)) { 2978 setTimeout(function () { 2979 var i = 0; 2980 $(h).find(".flexslider").each(function () { 2981 $(this).initFlexSlider(); 2982 i++; 2983 }); 2984 if (i) $(window).trigger('resize').trigger('scroll'); 2985 }, 100); 2986 } 2987 if ($.isFunction($.fn.googleMap)) setTimeout(function () { $(h).find(".google-map").googleMap(); }, 200); 2988 } 2989 }; 2990 if (trigger != "load" && trigger != "scroll") $(obj).magnificPopup(options); 2991 else { 2992 if (href.indexOf("#") == 0) $(href).css("display", "block"); 2993 options['items'] = { 'src': href } 2994 options['mainClass'] += ' lightbox-on-load'; 2995 $.magnificPopup.open(options); 2996 } 2997 }; 2998 $(document).ready(function () { 2999 $('.grid-list.gallery .grid-box,.maso-list.gallery .maso-box, .lightbox').each(function () { 3000 $(this).initMagnificPopup(); 3001 }); 3002 $('*[data-trigger="load"].box-lightbox').each(function () { 3003 var e = $(this).attr("data-expire"); 3004 if (!isEmpty(e) && e > 0) { 3005 var id = $(this).attr("id"); 3006 if (isEmpty(Cookies.get(id))) { 3007 $(this).initMagnificPopup(); 3008 Cookies.set(id, 'expiration-cookie', { expire: e }); 3009 } 3010 } else $(this).initMagnificPopup(); 3011 }); 3012 $('*[data-trigger="load"].popup-banner').each(function () { 3013 var e = $(this).attr("data-expire"); 3014 if (!isEmpty(e) && e > 0) { 3015 var id = $(this).attr("id"); 3016 if (isEmpty(Cookies.get(id))) { 3017 $(this).showPopupBanner(); 3018 Cookies.set(id, 'expiration-cookie', { expire: e }); 3019 } 3020 } else $(this).showPopupBanner(); 3021 }); 3022 $('.popup-trigger').each(function () { 3023 $(this).click(function () { 3024 $($(this).attr("href")).showPopupBanner(); 3025 }); 3026 }); 3027 $('.popup-banner [data-click]').each(function () { 3028 var t = this; 3029 var c = $(t).attr("data-click"); 3030 if (!isEmpty(c)) { 3031 $("body").on("click", $(t).attr("data-click-trigger"), function () { 3032 if ($(t).attr("data-click-target") == "_blank") window.open(c); 3033 else document.location = c; 3034 }); 3035 } 3036 }); 3037 }); 3038 $('.popup-close').click(function () { 3039 $(this).closest(".popup-banner").hide(); 3040 }); 3041 3042 $(window).scroll(function (event) { 3043 $('*[data-trigger="scroll"].popup-trigger').each(function () { 3044 if (isScrollView(this)) { 3045 var t = $(this).attr("href"); 3046 var a = $(t).attr("data-popup-anima"); 3047 if (!isEmpty(a)) { 3048 $(t).css("opacity", 0); 3049 $(t).showAnima(a); 3050 } 3051 $(t).css("display", "block"); 3052 $(this).removeClass("popup-trigger"); 3053 } 3054 }); 3055 $('*[data-trigger="scroll"].lightbox-trigger').each(function () { 3056 if (isScrollView(this)) { 3057 $($(this).attr("href")).initMagnificPopup(); 3058 $(this).attr("data-trigger", "null"); 3059 } 3060 }); 3061 }); 3062}(jQuery)); 3063 3064 3065/** 3066 * jquery.mask.js 3067 * @version: v1.14.11 3068 * @author: Igor Escobar 3069 * 3070 * Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com 3071 * 3072 * Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com 3073 * 3074 * The MIT License (http://www.opensource.org/licenses/mit-license.php) 3075 * 3076 * Permission is hereby granted, free of charge, to any person 3077 * obtaining a copy of this software and associated documentation 3078 * files (the "Software"), to deal in the Software without 3079 * restriction, including without limitation the rights to use, 3080 * copy, modify, merge, publish, distribute, sublicense, and/or sell 3081 * copies of the Software, and to permit persons to whom the 3082 * Software is furnished to do so, subject to the following 3083 * conditions: 3084 * 3085 * The above copyright notice and this permission notice shall be 3086 * included in all copies or substantial portions of the Software. 3087 * 3088 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 3089 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 3090 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 3091 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 3092 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 3093 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 3094 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 3095 * OTHER DEALINGS IN THE SOFTWARE. 3096 */ 3097 3098/* jshint laxbreak: true */ 3099/* jshint maxcomplexity:17 */ 3100/* global define */ 3101 3102'use strict'; 3103 3104// UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere. 3105// https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js 3106(function (factory, jQuery, Zepto) { 3107 3108 if (typeof define === 'function' && define.amd) { 3109 define(['jquery'], factory); 3110 } else if (typeof exports === 'object') { 3111 module.exports = factory(require('jquery')); 3112 } else { 3113 factory(jQuery || Zepto); 3114 } 3115 3116}(function ($) { 3117 3118 var Mask = function (el, mask, options) { 3119 3120 var p = { 3121 invalid: [], 3122 getCaret: function () { 3123 try { 3124 var sel, 3125 pos = 0, 3126 ctrl = el.get(0), 3127 dSel = document.selection, 3128 cSelStart = ctrl.selectionStart; 3129 3130 // IE Support 3131 if (dSel && navigator.appVersion.indexOf('MSIE 10') === -1) { 3132 sel = dSel.createRange(); 3133 sel.moveStart('character', -p.val().length); 3134 pos = sel.text.length; 3135 } 3136 // Firefox support 3137 else if (cSelStart || cSelStart === '0') { 3138 pos = cSelStart; 3139 } 3140 3141 return pos; 3142 } catch (e) {} 3143 }, 3144 setCaret: function(pos) { 3145 try { 3146 if (el.is(':focus')) { 3147 var range, ctrl = el.get(0); 3148 3149 // Firefox, WebKit, etc.. 3150 if (ctrl.setSelectionRange) { 3151 ctrl.setSelectionRange(pos, pos); 3152 } else { // IE 3153 range = ctrl.createTextRange(); 3154 range.collapse(true); 3155 range.moveEnd('character', pos); 3156 range.moveStart('character', pos); 3157 range.select(); 3158 } 3159 } 3160 } catch (e) {} 3161 }, 3162 events: function() { 3163 el 3164 .on('keydown.mask', function(e) { 3165 el.data('mask-keycode', e.keyCode || e.which); 3166 el.data('mask-previus-value', el.val()); 3167 el.data('mask-previus-caret-pos', p.getCaret()); 3168 p.maskDigitPosMapOld = p.maskDigitPosMap; 3169 }) 3170 .on($.jMaskGlobals.useInput ? 'input.mask' : 'keyup.mask', p.behaviour) 3171 .on('paste.mask drop.mask', function() { 3172 setTimeout(function() { 3173 el.keydown().keyup(); 3174 }, 100); 3175 }) 3176 .on('change.mask', function(){ 3177 el.data('changed', true); 3178 }) 3179
vendor: 12,567 bytes, lines 3179-3486
3179 .on('blur.mask', function(){ 3180 if (oldValue !== p.val() && !el.data('changed')) { 3181 el.trigger('change'); 3182 } 3183 el.data('changed', false); 3184 }) 3185 // it's very important that this callback remains in this position 3186 // otherwhise oldValue it's going to work buggy 3187 .on('blur.mask', function() { 3188 oldValue = p.val(); 3189 }) 3190 // select all text on focus 3191 .on('focus.mask', function (e) { 3192 if (options.selectOnFocus === true) { 3193 $(e.target).select(); 3194 } 3195 }) 3196 // clear the value if it not complete the mask 3197 .on('focusout.mask', function() { 3198 if (options.clearIfNotMatch && !regexMask.test(p.val())) { 3199 p.val(''); 3200 } 3201 }); 3202 }, 3203 getRegexMask: function() { 3204 var maskChunks = [], translation, pattern, optional, recursive, oRecursive, r; 3205 3206 for (var i = 0; i < mask.length; i++) { 3207 translation = jMask.translation[mask.charAt(i)]; 3208 3209 if (translation) { 3210 3211 pattern = translation.pattern.toString().replace(/.{1}$|^.{1}/g, ''); 3212 optional = translation.optional; 3213 recursive = translation.recursive; 3214 3215 if (recursive) { 3216 maskChunks.push(mask.charAt(i)); 3217 oRecursive = {digit: mask.charAt(i), pattern: pattern}; 3218 } else { 3219 maskChunks.push(!optional && !recursive ? pattern : (pattern + '?')); 3220 } 3221 3222 } else { 3223 maskChunks.push(mask.charAt(i).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')); 3224 } 3225 } 3226 3227 r = maskChunks.join(''); 3228 3229 if (oRecursive) { 3230 r = r.replace(new RegExp('(' + oRecursive.digit + '(.*' + oRecursive.digit + ')?)'), '($1)?') 3231 .replace(new RegExp(oRecursive.digit, 'g'), oRecursive.pattern); 3232 } 3233 3234 return new RegExp(r); 3235 }, 3236 destroyEvents: function() { 3237 el.off(['input', 'keydown', 'keyup', 'paste', 'drop', 'blur', 'focusout', ''].join('.mask ')); 3238 }, 3239 val: function(v) { 3240 var isInput = el.is('input'), 3241 method = isInput ? 'val' : 'text', 3242 r; 3243 3244 if (arguments.length > 0) { 3245 if (el[method]() !== v) { 3246 el[method](v); 3247 } 3248 r = el; 3249 } else { 3250 r = el[method](); 3251 } 3252 3253 return r; 3254 }, 3255 calculateCaretPosition: function() { 3256 var oldVal = el.data('mask-previus-value') || '', 3257 newVal = p.getMasked(), 3258 caretPosNew = p.getCaret(); 3259 if (oldVal !== newVal) { 3260 var caretPosOld = el.data('mask-previus-caret-pos') || 0, 3261 newValL = newVal.length, 3262 oldValL = oldVal.length, 3263 maskDigitsBeforeCaret = 0, 3264 maskDigitsAfterCaret = 0, 3265 maskDigitsBeforeCaretAll = 0, 3266 maskDigitsBeforeCaretAllOld = 0, 3267 i = 0; 3268 3269 for (i = caretPosNew; i < newValL; i++) { 3270 if (!p.maskDigitPosMap[i]) { 3271 break; 3272 } 3273 maskDigitsAfterCaret++; 3274 } 3275 3276 for (i = caretPosNew - 1; i >= 0; i--) { 3277 if (!p.maskDigitPosMap[i]) { 3278 break; 3279 } 3280 maskDigitsBeforeCaret++; 3281 } 3282 3283 for (i = caretPosNew - 1; i >= 0; i--) { 3284 if (p.maskDigitPosMap[i]) { 3285 maskDigitsBeforeCaretAll++; 3286 } 3287 } 3288 3289 for (i = caretPosOld - 1; i >= 0; i--) { 3290 if (p.maskDigitPosMapOld[i]) { 3291 maskDigitsBeforeCaretAllOld++; 3292 } 3293 } 3294 3295 if (caretPosNew > oldValL) { 3296 // if the cursor is at the end keep it there 3297 caretPosNew = newValL; 3298 } 3299 else if (caretPosOld >= caretPosNew && caretPosOld !== oldValL) { 3300 if (!p.maskDigitPosMapOld[caretPosNew]) { 3301 var caretPos = caretPosNew; 3302 caretPosNew -= maskDigitsBeforeCaretAllOld - maskDigitsBeforeCaretAll; 3303 caretPosNew -= maskDigitsBeforeCaret; 3304 if (p.maskDigitPosMap[caretPosNew]) { 3305 caretPosNew = caretPos; 3306 } 3307 } 3308 } 3309 else if (caretPosNew > caretPosOld) { 3310 caretPosNew += maskDigitsBeforeCaretAll - maskDigitsBeforeCaretAllOld; 3311 caretPosNew += maskDigitsAfterCaret; 3312 } 3313 } 3314 return caretPosNew; 3315 }, 3316 behaviour: function(e) { 3317 e = e || window.event; 3318 p.invalid = []; 3319 3320 var keyCode = el.data('mask-keycode'); 3321 3322 if ($.inArray(keyCode, jMask.byPassKeys) === -1) { 3323 var newVal = p.getMasked(), 3324 caretPos = p.getCaret(); 3325 3326 setTimeout(function() { 3327 p.setCaret(p.calculateCaretPosition()); 3328 }, 10); 3329 3330 p.val(newVal); 3331 p.setCaret(caretPos); 3332 return p.callbacks(e); 3333 } 3334 }, 3335 getMasked: function(skipMaskChars, val) { 3336 var buf = [], 3337 value = val === undefined ? p.val() : val + '', 3338 m = 0, maskLen = mask.length, 3339 v = 0, valLen = value.length, 3340 offset = 1, addMethod = 'push', 3341 resetPos = -1, 3342 maskDigitCount = 0, 3343 maskDigitPosArr = [], 3344 lastMaskChar, 3345 check; 3346 3347 if (options.reverse) { 3348 addMethod = 'unshift'; 3349 offset = -1; 3350 lastMaskChar = 0; 3351 m = maskLen - 1; 3352 v = valLen - 1; 3353 check = function () { 3354 return m > -1 && v > -1; 3355 }; 3356 } else { 3357 lastMaskChar = maskLen - 1; 3358 check = function () { 3359 return m < maskLen && v < valLen; 3360 }; 3361 } 3362 3363 var lastUntranslatedMaskChar; 3364 while (check()) { 3365 var maskDigit = mask.charAt(m), 3366 valDigit = value.charAt(v), 3367 translation = jMask.translation[maskDigit]; 3368 3369 if (translation) { 3370 if (valDigit.match(translation.pattern)) { 3371 buf[addMethod](valDigit); 3372 if (translation.recursive) { 3373 if (resetPos === -1) { 3374 resetPos = m; 3375 } else if (m === lastMaskChar) { 3376 m = resetPos - offset; 3377 } 3378 3379 if (lastMaskChar === resetPos) { 3380 m -= offset; 3381 } 3382 } 3383 m += offset; 3384 } else if (valDigit === lastUntranslatedMaskChar) { 3385 // matched the last untranslated (raw) mask character that we encountered 3386 // likely an insert offset the mask character from the last entry; fall 3387 // through and only increment v 3388 maskDigitCount--; 3389 lastUntranslatedMaskChar = undefined; 3390 } else if (translation.optional) { 3391 m += offset; 3392 v -= offset; 3393 } else if (translation.fallback) { 3394 buf[addMethod](translation.fallback); 3395 m += offset; 3396 v -= offset; 3397 } else { 3398 p.invalid.push({p: v, v: valDigit, e: translation.pattern}); 3399 } 3400 v += offset; 3401 } else { 3402 if (!skipMaskChars) { 3403 buf[addMethod](maskDigit); 3404 } 3405 3406 if (valDigit === maskDigit) { 3407 maskDigitPosArr.push(v); 3408 v += offset; 3409 } else { 3410 lastUntranslatedMaskChar = maskDigit; 3411 maskDigitPosArr.push(v + maskDigitCount); 3412 maskDigitCount++; 3413 } 3414 3415 m += offset; 3416 } 3417 } 3418 3419 var lastMaskCharDigit = mask.charAt(lastMaskChar); 3420 if (maskLen === valLen + 1 && !jMask.translation[lastMaskCharDigit]) { 3421 buf.push(lastMaskCharDigit); 3422 } 3423 3424 var newVal = buf.join(''); 3425 p.mapMaskdigitPositions(newVal, maskDigitPosArr, valLen); 3426 return newVal; 3427 }, 3428 mapMaskdigitPositions: function(newVal, maskDigitPosArr, valLen) { 3429 var maskDiff = options.reverse ? newVal.length - valLen : 0; 3430 p.maskDigitPosMap = {}; 3431 for (var i = 0; i < maskDigitPosArr.length; i++) { 3432 p.maskDigitPosMap[maskDigitPosArr[i] + maskDiff] = 1; 3433 } 3434 }, 3435 callbacks: function (e) { 3436 var val = p.val(), 3437 changed = val !== oldValue, 3438 defaultArgs = [val, e, el, options], 3439 callback = function(name, criteria, args) { 3440 if (typeof options[name] === 'function' && criteria) { 3441 options[name].apply(this, args); 3442 } 3443 }; 3444 3445 callback('onChange', changed === true, defaultArgs); 3446 callback('onKeyPress', changed === true, defaultArgs); 3447 callback('onComplete', val.length === mask.length, defaultArgs); 3448 callback('onInvalid', p.invalid.length > 0, [val, e, el, p.invalid, options]); 3449 } 3450 }; 3451 3452 el = $(el); 3453 var jMask = this, oldValue = p.val(), regexMask; 3454 3455 mask = typeof mask === 'function' ? mask(p.val(), undefined, el, options) : mask; 3456 3457 // public methods 3458 jMask.mask = mask; 3459 jMask.options = options; 3460 jMask.remove = function() { 3461 var caret = p.getCaret(); 3462 p.destroyEvents(); 3463 p.val(jMask.getCleanVal()); 3464 p.setCaret(caret); 3465 return el; 3466 }; 3467 3468 // get value without mask 3469 jMask.getCleanVal = function() { 3470 return p.getMasked(true); 3471 }; 3472 3473 // get masked value without the value being in the input or element 3474 jMask.getMaskedVal = function(val) { 3475 return p.getMasked(false, val); 3476 }; 3477 3478 jMask.init = function(onlyMask) { 3479 onlyMask = onlyMask || false; 3480 options = options || {}; 3481 3482 jMask.clearIfNotMatch = $.jMaskGlobals.clearIfNotMatch; 3483 jMask.byPassKeys = $.jMaskGlobals.byPassKeys; 3484 jMask.translation = $.extend({}, $.jMaskGlobals.translation, options.translation); 3485 3486 jMask = $.extend(true, {}
3486, jMask, options); 3487 3488 regexMask = p.getRegexMask(); 3489 3490 if (onlyMask) { 3491 p.events(); 3492 p.val(p.getMasked()); 3493 } else { 3494 if (options.placeholder) { 3495 el.attr('placeholder' , options.placeholder); 3496 } 3497 3498 // this is necessary, otherwise if the user submit the form 3499 // and then press the "back" button, the autocomplete will erase 3500 // the data. Works fine on IE9+, FF, Opera, Safari. 3501 if (el.data('mask')) { 3502 el.attr('autocomplete', 'off'); 3503 } 3504 3505 // detect if is necessary let the user type freely. 3506 // for is a lot faster than forEach. 3507 for (var i = 0, maxlength = true; i < mask.length; i++) { 3508 var translation = jMask.translation[mask.charAt(i)]; 3509 if (translation && translation.recursive) { 3510 maxlength = false; 3511 break; 3512 } 3513 } 3514 3515 if (maxlength) { 3516 el.attr('maxlength', mask.length); 3517 } 3518 3519 p.destroyEvents(); 3520 p.events(); 3521 3522 var caret = p.getCaret(); 3523 p.val(p.getMasked()); 3524 p.setCaret(caret); 3525 } 3526 }; 3527 3528 jMask.init(!el.is('input')); 3529 }; 3530 3531 $.maskWatchers = {}; 3532 var HTMLAttributes = function () { 3533 var input = $(this), 3534 options = {}, 3535 prefix = 'data-mask-', 3536 mask = input.attr('data-mask'); 3537 3538 if (input.attr(prefix + 'reverse')) { 3539 options.reverse = true; 3540 } 3541 3542 if (input.attr(prefix + 'clearifnotmatch')) { 3543 options.clearIfNotMatch = true; 3544 } 3545 3546 if (input.attr(prefix + 'selectonfocus') === 'true') { 3547 options.selectOnFocus = true; 3548 } 3549 3550 if (notSameMaskObject(input, mask, options)) { 3551 return input.data('mask', new Mask(this, mask, options)); 3552 } 3553 }, 3554 notSameMaskObject = function(field, mask, options) { 3555 options = options || {}; 3556 var maskObject = $(field).data('mask'), 3557 stringify = JSON.stringify, 3558 value = $(field).val() || $(field).text(); 3559 try { 3560 if (typeof mask === 'function') { 3561 mask = mask(value); 3562 } 3563 return typeof maskObject !== 'object' || stringify(maskObject.options) !== stringify(options) || maskObject.mask !== mask; 3564 } catch (e) {} 3565 }, 3566 eventSupported = function(eventName) { 3567 var el = document.createElement('div'), isSupported; 3568 3569 eventName = 'on' + eventName; 3570 isSupported = (eventName in el); 3571 3572 if ( !isSupported ) { 3573 el.setAttribute(eventName, 'return;'); 3574 isSupported = typeof el[eventName] === 'function'; 3575 } 3576 el = null; 3577 3578 return isSupported; 3579 }; 3580 3581 $.fn.mask = function(mask, options) { 3582 options = options || {}; 3583 var selector = this.selector, 3584 globals = $.jMaskGlobals, 3585 interval = globals.watchInterval, 3586 watchInputs = options.watchInputs || globals.watchInputs, 3587 maskFunction = function() { 3588 if (notSameMaskObject(this, mask, options)) { 3589 return $(this).data('mask', new Mask(this, mask, options)); 3590 } 3591 }; 3592 3593 $(this).each(maskFunction); 3594 3595 if (selector && selector !== '' && watchInputs) { 3596 clearInterval($.maskWatchers[selector]); 3597 $.maskWatchers[selector] = setInterval(function(){ 3598 $(document).find(selector).each(maskFunction); 3599 }, interval); 3600 } 3601 return this; 3602 }; 3603 3604 $.fn.masked = function(val) { 3605 return this.data('mask').getMaskedVal(val); 3606 }; 3607 3608 $.fn.unmask = function() { 3609 clearInterval($.maskWatchers[this.selector]); 3610 delete $.maskWatchers[this.selector]; 3611 return this.each(function() { 3612 var dataMask = $(this).data('mask'); 3613 if (dataMask) { 3614 dataMask.remove().removeData('mask'); 3615 } 3616 }); 3617 }; 3618 3619 $.fn.cleanVal = function() { 3620 return this.data('mask').getCleanVal(); 3621 }; 3622 3623 $.applyDataMask = function(selector) { 3624 selector = selector || $.jMaskGlobals.maskElements; 3625 var $selector = (selector instanceof $) ? selector : $(selector); 3626 $selector.filter($.jMaskGlobals.dataMaskAttr).each(HTMLAttributes); 3627 }; 3628 3629 var globals = { 3630 maskElements: 'input,td,span,div', 3631 dataMaskAttr: '*[data-mask]', 3632 dataMask: true, 3633 watchInterval: 300, 3634 watchInputs: true, 3635 // old versions of chrome dont work great with input event 3636 useInput: !/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent) && eventSupported('input'), 3637 watchDataMask: false, 3638 byPassKeys: [9, 16, 17, 18, 36, 37, 38, 39, 40, 91], 3639 translation: { 3640 '0': {pattern: /\d/}, 3641 '9': {pattern: /\d/, optional: true}, 3642 '#': {pattern: /\d/, recursive: true}, 3643 'A': {pattern: /[a-zA-Z0-9]/}, 3644 'S': {pattern: /[a-zA-Z]/} 3645 } 3646 }; 3647 3648 $.jMaskGlobals = $.jMaskGlobals || {}; 3649 globals = $.jMaskGlobals = $.extend(true, {}, globals, $.jMaskGlobals); 3650 3651 // looking for inputs with data-mask attribute 3652 if (globals.dataMask) { 3653 $.applyDataMask(); 3654 } 3655 3656 setInterval(function() { 3657 if ($.jMaskGlobals.watchDataMask) { 3658 $.applyDataMask(); 3659 } 3660 }, globals.watchInterval); 3661}, window.jQuery, window.Zepto)); 3662 3663/* 3664 * jquery-countTo 3665 * Copyright (c) 2012-2014 Matt Huggins - The MIT License 3666 * URL: https://github.com/mhuggins/jquery-countTo/ 3667 */ 3668 3669(function (n) { function i(n, t) { return n.toFixed(t.decimals) } var t = function (i, r) { this.$element = n(i); this.options = n.extend({}, t.DEFAULTS, this.dataOptions(), r); this.init() }; t.DEFAULTS = { from: 0, to: 0, speed: 1e3, refreshInterval: 100, decimals: 0, formatter: i, onUpdate: null, onComplete: null }; t.prototype.init = function () { this.value = this.options.from; this.loops = Math.ceil(this.options.speed / this.options.refreshInterval); this.loopCount = 0; this.increment = (this.options.to - this.options.from) / this.loops }; t.prototype.dataOptions = function () { var n = { from: this.$element.data("from"), to: this.$element.data("to"), speed: this.$element.data("speed"), refreshInterval: this.$element.data("refresh-interval"), decimals: this.$element.data("decimals") }, i = Object.keys(n), r, t; for (r in i) t = i[r], typeof n[t] == "undefined" && delete n[t]; return n }; t.prototype.update = function () { this.value += this.increment; this.loopCount++; this.render(); typeof this.options.onUpdate == "function" && this.options.onUpdate.call(this.$element, this.value); this.loopCount >= this.loops && (clearInterval(this.interval), this.value = this.options.to, typeof this.options.onComplete == "function" && this.options.onComplete.call(this.$element, this.value)) }; t.prototype.render = function () { var n = this.options.formatter.call(this.$element, this.value, this.options); this.$element.text(n) }; t.prototype.restart = function () { this.stop(); this.init(); this.start() }; t.prototype.start = function () { this.stop(); this.render(); this.interval = setInterval(this.update.bind(this), this.options.refreshInterval) }; t.prototype.stop = function () { this.interval && clearInterval(this.interval) }; t.prototype.toggle = function () { this.interval ? this.stop() : this.start() }; n.fn.countTo = function (i) { return this.each(function () { var u = n(this), r = u.data("countTo"), f = !r || typeof i == "object", e = typeof i == "object" ? i : {}, o = typeof i == "string" ? i : "start"; f && (r && r.stop(), u.data("countTo", r = new t(this, e))); r[o].call(r) }) } })(jQuery); 3670 3671/* 3672jquery-circle-progress - jQuery Plugin to draw animated circular progress bars 3673 3674URL: http://kottenator.github.io/jquery-circle-progress/ 3675Author: Rostyslav Bryzgunov <[email protected]> 3676Version: 1.1.3 3677License: MIT 3678*/ 3679(function(n){function t(n){this.init(n)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){n.extend(this,t);this.radius=this.size/2;this.initWidget();this.initFill();this.draw()},initWidget:function(){var t=this.canvas=this.canvas||n("<canvas>").prependTo(this.el)[0];t.width=this.size;t.height=this.size;this.ctx=t.getContext("2d")},initFill:function(){function a(){var t=n("<canvas>")[0];t.width=r.size;t.height=r.size;t.getContext("2d").drawImage(e,0,0,u,u);r.arcFill=r.ctx.createPattern(t,"no-repeat");r.drawFrame(r.lastFrameValue)}var r=this,t=this.fill,c=this.ctx,u=this.size,i,o,f,h,e;if(!t)throw Error("The fill is not specified!");if(t.color&&(this.arcFill=t.color),t.gradient)if(i=t.gradient,i.length==1)this.arcFill=i[0];else if(i.length>1){var s=t.gradientAngle||0,v=t.gradientDirection||[u/2*(1-Math.cos(s)),u/2*(1+Math.sin(s)),u/2*(1+Math.cos(s)),u/2*(1-Math.sin(s))],l=c.createLinearGradient.apply(c,v);for(o=0;o<i.length;o++)f=i[o],h=o/(i.length-1),n.isArray(f)&&(h=f[1],f=f[0]),l.addColorStop(h,f);this.arcFill=l}t.image&&(t.image instanceof Image?e=t.image:(e=new Image,e.src=t.image),e.complete?a():e.onload=a)},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(n){this.lastFrameValue=n;this.ctx.clearRect(0,0,this.size,this.size);this.drawEmptyArc(n);this.drawArc(n)},drawArc:function(n){var t=this.ctx,i=this.radius,u=this.getThickness(),r=this.startAngle;t.save();t.beginPath();this.reverse?t.arc(i,i,i-u/2,r-Math.PI*2*n,r):t.arc(i,i,i-u/2,r,r+Math.PI*2*n);t.lineWidth=u;t.lineCap=this.lineCap;t.strokeStyle=this.arcFill;t.stroke();
3679t.restore()},drawEmptyArc:function(n){var t=this.ctx,i=this.radius,r=this.getThickness(),u=this.startAngle;n<1&&(t.save(),t.beginPath(),n<=0?t.arc(i,i,i-r/2,0,Math.PI*2):this.reverse?t.arc(i,i,i-r/2,u,u-Math.PI*2*n):t.arc(i,i,i-r/2,u+Math.PI*2*n,u),t.lineWidth=r,t.strokeStyle=this.emptyFill,t.stroke(),t.restore())},drawAnimated:function(t){var r=this,i=this.el,u=n(this.canvas);u.stop(!0,!1);i.trigger("circle-animation-start");u.css({animationProgress:0}).animate({animationProgress:1},n.extend({},this.animation,{step:function(n){var u=r.animationStartValue*(1-n)+t*n;r.drawFrame(u);i.trigger("circle-animation-progress",[n,u])}})).promise().always(function(){i.trigger("circle-animation-end")})},getThickness:function(){return n.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(n){this.animation&&(this.animationStartValue=this.lastFrameValue);this.value=n;this.draw()}};n.circleProgress={defaults:t.prototype};n.easing.circleProgressEasing=function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i};n.fn.circleProgress=function(i,r){var u="circle-progress",f=this.data(u),e;if(i=="widget"){if(!f)throw Error('Calling "widget" method on not initialized instance is forbidden');return f.canvas}if(i=="value"){if(!f)throw Error('Calling "value" method on not initialized instance is forbidden');return typeof r=="undefined"?f.getValue():(e=arguments[1],this.each(function(){n(this).data(u).setValue(e)}))}return this.each(function(){var e=n(this),o=e.data(u),f=n.isPlainObject(i)?i:{},r;o?o.init(f):(r=n.extend({},e.data()),typeof r.fill=="string"&&(r.fill=JSON.parse(r.fill)),typeof r.animation=="str
3679ing"&&(r.animation=JSON.parse(r.animation)),f=n.extend(r,f),f.el=e,o=new t(f),e.data(u,o))})}})(jQuery); 3680 3681/** 3682 * downCount: Simple Countdown clock with offset 3683 * Author: Sonny T. <[email protected]>, sonnyt.com 3684 * License: MIT 3685 */ 3686 3687(function(n){n.fn.downCount=function(t,i){function o(){var y=new Date(u.date),p=f(),h=y-p;if(h<0){clearInterval(e);i&&typeof i=="function"&&i();return}var a=1e3,c=a*60,l=c*60,v=l*24,n=Math.floor(h/v),t=Math.floor(h%v/l),o=Math.floor(h%l/c),s=Math.floor(h%c/a);n=String(n).length>=2?n:"0"+n;t=String(t).length>=2?t:"0"+t;o=String(o).length>=2?o:"0"+o;s=String(s).length>=2?s:"0"+s;var w=n===1?"day":"days",b=t===1?"hour":"hours",k=o===1?"minute":"minutes",d=s===1?"second":"seconds";r.find(".days").text(n);r.find(".hours").text(t);r.find(".minutes").text(o);r.find(".seconds").text(s);r.find(".days_ref").text(w);r.find(".hours_ref").text(b);r.find(".minutes_ref").text(k);r.find(".seconds_ref").text(d)}var u=n.extend({date:null,offset:null},t),r,f,e;u.date||n.error("Date is not defined.");Date.parse(u.date)||n.error("Incorrect date format, it should look like this, 12/24/2012 12:00:00.");r=this;f=function(){var n=new Date,t=n.getTime()+n.getTimezoneOffset()*6e4;return new Date(t+36e5*u.offset)};e=setInterval(o,1e3)}})(jQuery); 3688 3689/* 3690* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 3691*/ 3692 3693(function ($) { 3694 $(document).ready(function () { 3695 $("*[data-time].countdown").each(function (index) { 3696 $(this).downCount({ 3697 date: $(this).attr("data-time"), 3698 offset: $(this).attr("data-utc-offset") 3699 }); 3700 }); 3701 $(window).scroll(function () { 3702 $(".counter").each(function () { 3703 if (isScrollView(this)) { 3704 var tr = $(this).attr("data-trigger"); 3705 if (isEmpty(tr) || tr == "scroll") { 3706 $(this).countTo({ 3707 formatter: function (value, options) { 3708 return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, '.'); 3709 } 3710 }); 3711 $(this).attr("data-trigger", "null"); 3712 } 3713 } 3714 }); 3715 $("*[data-progress].progress-bar").each(function () { 3716 if (isScrollView(this)) { 3717 var tr = $(this).attr("data-trigger"); 3718 if (isEmpty(tr) || tr == "scroll") { 3719 $(this).css("width", 0); 3720 $(this).css("width", $(this).attr("data-progress") + "%"); 3721 $(this).attr("data-trigger", "null"); 3722 } 3723 } 3724 }); 3725 $("*[data-progress].progress-circle").each(function () { 3726 if (isScrollView(this)) { 3727 var tr = $(this).attr("data-trigger"); 3728 if (isEmpty(tr) || tr == "scroll") { 3729 $(this).progressCircle(); 3730 $(this).attr("data-trigger", "null"); 3731 } 3732 } 3733 }); 3734 }) 3735 }); 3736 $.fn.progressCircle = function () { 3737 var optionsString = $(this).attr("data-options"); 3738 var optionsArr; 3739 var _size = $(this).attr("data-size"); 3740 var _color = $(this).attr("data-color"); 3741 var _unit = $(this).attr("data-unit"); 3742 var _thickness = $(this).attr("data-thickness"); 3743 var _thickness = $(this).attr("data-thickness"); 3744 if (isEmpty(_color)) _color = "#565656"; 3745 if (isEmpty(_thickness)) _thickness = 2; 3746 if (isEmpty(_size) || _size == "auto") _size = $(this).outerWidth(); 3747 if (_unit == null) _unit = "%"; 3748 var options = { 3749 value: parseInt($(this).attr("data-progress"), 10) / 100, 3750 size: _size, 3751 fill: { 3752 gradient: [_color, _color] 3753 }, 3754 thickness: _thickness, 3755 startAngle: -Math.PI / 2 3756 } 3757 if (!isEmpty(optionsString)) { 3758 optionsArr = optionsString.split(","); 3759 options = getOptionsString(optionsString, options); 3760 } 3761 $(this).circleProgress(options); 3762 var inner = $(this).find(".inner-circle .counter-circle"); 3763 if (inner) { 3764 $(this).find(".inner-circle").css("display", "table") 3765 $(this).on('circle-animation-progress', function (event, progress, stepValue) { 3766 $(inner).html(parseInt(stepValue.toFixed(2) * 100, 10) + " " + _unit); 3767 }); 3768 } 3769 } 3770}(jQuery)); 3771 3772 3773 3774/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) 3775 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 3776 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 3777 * 3778 * Version: 1.3.3 3779 * 3780 */ 3781(function (e) { 3782 e.fn.extend({ 3783 slimScroll: function (g) { 3784 var a = e.extend({ width: "auto", height: "250px", size: "7px", color: "#464646", position: "right", distance: "1p
vendor: 6,138 bytes, lines 3784-3834
3784x", start: "top", opacity: 1, alwaysVisible: !1, disableFadeOut: !1, railVisible: !1, railColor: "#333", railOpacity: .2, railDraggable: !0, railClass: "slimScrollRail", barClass: "slimScrollBar", wrapperClass: "slimScrollDiv", allowPageScroll: !1, wheelStep: 20, touchScrollStep: 200, borderRadius: "7px", railBorderRadius: "7px" }, g); this.each(function () { 3785 function u(d) { 3786 if (r) { 3787 d = d || window.event; 3788 var c = 0; d.wheelDelta && (c = -d.wheelDelta / 120); d.detail && (c = d.detail / 3); e(d.target || d.srcTarget || d.srcElement).closest("." + a.wrapperClass).is(b.parent()) && m(c, !0); d.preventDefault && !k && d.preventDefault(); k || (d.returnValue = !1) 3789 } 3790 } function m(d, e, g) { 3791 k = !1; var f = d, h = b.outerHeight() - c.outerHeight(); e && (f = parseInt(c.css("top")) + d * parseInt(a.wheelStep) / 100 * c.outerHeight(), f = Math.min(Math.max(f, 0), h), f = 0 < d ? Math.ceil(f) : Math.floor(f), c.css({ top: f + "px" })); l = parseInt(c.css("top")) / (b.outerHeight() - c.outerHeight()); 3792 f = l * (b[0].scrollHeight - b.outerHeight()); g && (f = d, d = f / b[0].scrollHeight * b.outerHeight(), d = Math.min(Math.max(d, 0), h), c.css({ top: d + "px" })); b.scrollTop(f); b.trigger("slimscrolling", ~~f); v(); p() 3793 } function C() { window.addEventListener ? (this.addEventListener("DOMMouseScroll", u, !1), this.addEventListener("mousewheel", u, !1)) : document.attachEvent("onmousewheel", u) } function w() { s = Math.max(b.outerHeight() / b[0].scrollHeight * b.outerHeight(), 30); c.css({ height: s + "px" }); var a = s == b.outerHeight() ? "none" : "block"; c.css({ display: a }) } 3794 function v() { w(); clearTimeout(A); l == ~~l ? (k = a.allowPageScroll, B != l && b.trigger("slimscroll", 0 == ~~l ? "top" : "bottom")) : k = !1; B = l; s >= b.outerHeight() ? k = !0 : (c.stop(!0, !0).fadeIn("fast"), a.railVisible && h.stop(!0, !0).fadeIn("fast")) } function p() { a.alwaysVisible || (A = setTimeout(function () { a.disableFadeOut && r || x || y || (c.fadeOut("slow"), h.fadeOut("slow")) }, 1E3)) } var r, x, y, A, z, s, l, B, k = !1, b = e(this); if (b.parent().hasClass(a.wrapperClass)) { 3795 var n = b.scrollTop(), c = b.parent().find("." + a.barClass), h = b.parent().find("." + a.railClass); 3796 w(); if (e.isPlainObject(g)) { if ("height" in g && "auto" == g.height) { b.parent().css("height", "auto"); b.css("height", "auto"); var q = b.parent().parent().height(); b.parent().css("height", q); b.css("height", q) } if ("scrollTo" in g) n = parseInt(a.scrollTo); else if ("scrollBy" in g) n += parseInt(a.scrollBy); else if ("destroy" in g) { c.remove(); h.remove(); b.unwrap(); return } m(n, !1, !0) } 3797 } else if (!(e.isPlainObject(g) && "destroy" in g)) { 3798 a.height = "auto" == a.height ? b.parent().height() : a.height; n = e("<div></div>").addClass(a.wrapperClass).css({ 3799 position: "relative", 3800 overflow: "hidden", width: a.width, height: a.height 3801 }); b.css({ overflow: "hidden", width: a.width, height: a.height }); var h = e("<div></div>").addClass(a.railClass).css({ width: a.size, height: "100%", position: "absolute", top: 0, display: a.alwaysVisible && a.railVisible ? "block" : "none", "border-radius": a.railBorderRadius, background: a.railColor, opacity: a.railOpacity, zIndex: 90 }), c = e("<div></div>").addClass(a.barClass).css({ 3802 background: a.color, width: a.size, position: "absolute", top: 0, opacity: a.opacity, display: a.alwaysVisible ? 3803 "block" : "none", "border-radius": a.borderRadius, BorderRadius: a.borderRadius, MozBorderRadius: a.borderRadius, WebkitBorderRadius: a.borderRadius, zIndex: 99 3804 }), q = "right" == a.position ? { right: a.distance } : { left: a.distance }; h.css(q); c.css(q); b.wrap(n); b.parent().append(c); b.parent().append(h); a.railDraggable && c.bind("mousedown", function (a) { 3805 var b = e(document); y = !0; t = parseFloat(c.css("top")); pageY = a.pageY; b.bind("mousemove.slimscroll", function (a) { currTop = t + a.pageY - pageY; c.css("top", currTop); m(0, c.position().top, !1) }); 3806 b.bind("mouseup.slimscroll", function (a) { y = !1; p(); b.unbind(".slimscroll") }); return !1 3807 }).bind("selectstart.slimscroll", function (a) { a.stopPropagation(); a.preventDefault(); return !1 }); h.hover(function () { v() }, function () { p() }); c.hover(function () { x = !0 }, function () { x = !1 }); b.hover(function () { r = !0; v(); p() }, function () { r = !1; p() }); b.bind("touchstart", function (a, b) { a.originalEvent.touches.length && (z = a.originalEvent.touches[0].pageY) }); b.bind("touchmove", function (b) { 3808 k || b.originalEvent.preventDefault(); b.originalEvent.touches.length && 3809 (m((z - b.originalEvent.touches[0].pageY) / a.touchScrollStep, !0), z = b.originalEvent.touches[0].pageY) 3810 }); w(); "bottom" === a.start ? (c.css({ top: b.outerHeight() - c.outerHeight() }), m(0, !0)) : "top" !== a.start && (m(e(a.start).position().top, null, !0), a.alwaysVisible || c.hide()); C() 3811 } 3812 }); return this 3813 } 3814 }); e.fn.extend({ slimscroll: e.fn.slimScroll }) 3815})(jQuery); 3816 3817/* 3818* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 3819*/ 3820 3821(function ($) { 3822 3823 $.fn.initSlimScroll = function () { 3824 if (!$(this).hasClass("scroll-mobile-disabled") || device_screen_size != "device-xs") { 3825 var optionsString = $(this).attr("data-options"); 3826 var optionsArr; 3827 var options = { 3828 height: 0, 3829 size: '4px' 3830 } 3831 if (!isEmpty(optionsString)) { 3832 optionsArr = optionsString.split(","); 3833 options = getOptionsString(optionsString, options); 3834 }
3835 if (device_screen_size == "device-xs") options['alwaysVisible'] = true; 3836 3837 var wh = $(window).height(); 3838 var vh = getHeightFullscreen(this, wh); 3839 var lh = $(this).attr("data-height-remove"); 3840 if (isEmpty(lh)) lh = 0; 3841 vh += ""; 3842 3843 if ((vh.indexOf("#") != -1) || (vh.indexOf(".") != -1)) vh = "" + ($(this).closest(vh).height() - lh); 3844 3845 options['height'] = vh + "px"; 3846 $(this).slimScroll(options); 3847 3848 if ($.isFunction($.fn.googleMap)) { 3849 $(this).find(".google-map").each(function (index) { 3850 $(this).googleMap(); 3851 }); 3852 } 3853 if (!options['alwaysVisible']) $(".slimScrollBar").hide(); 3854 } 3855 } 3856 function getHeightFullscreen(t, wh) { 3857 var vh = $(t).attr("data-height"); 3858 var lh = $(t).attr("data-height-remove"); 3859 if (isEmpty(vh) || vh == "auto") { 3860 var h = wh - $(t)[0].getBoundingClientRect().top - $("footer").outerHeight(), ch = $(t).outerHeight(); 3861 if (!isEmpty(lh)) h = wh - lh; 3862 vh = (ch < h) ? ch + 30 : h - 30; 3863 } 3864 if (vh == "fullscreen") { 3865 var h = wh; 3866 if (!isEmpty(lh) && ((wh - lh) > 150)) h = wh - lh; 3867 else h = wh - 100; 3868 vh = h; 3869 } 3870 return vh; 3871 } 3872 $(document).ready(function () { 3873 $(".scroll-content").each(function () { 3874 $(this).initSlimScroll(); 3875 if (device_screen_size == "device-xs") $(".slimScrollBar").css("height", "50px"); 3876 }); 3877 $(".scroll-content").bind("mousewheel DOMMouseScroll", function (n) { n.preventDefault() }); 3878 }); 3879}(jQuery)); 3880 3881 3882 3883 3884/* 3885* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 3886*/ 3887 3888(function ($) { 3889 3890 $(document).ready(function () { 3891 3892 $("body").on("click", ".tab-box .nav li", function (e) { 3893 var target = $(this).find("a").attr("href"); 3894 if (target == "#") target = null; 3895 var p = $(this).closest(".tab-box"); 3896 var anima = $(p).attr("data-tab-anima"); 3897 $(p).find("> .panel, > .panel-box .panel").removeClass("active"); 3898 $(p).find("> .nav li").removeClass("active"); 3899 $(this).addClass("active"); 3900 3901 var t = $(p).find("> .panel:eq(" + $(this).index() + "), > .panel-box .panel:eq(" + $(this).index() + ")"); 3902 if (!isEmpty(target)) t = $(p).find(target); 3903 3904 $(t).addClass("active"); 3905 if (!isEmpty(anima)) { 3906 $(t).css("opacity", 0); 3907 $(t).showAnima(anima); 3908 } 3909 if ($(this).closest(".mega-menu").length) return false; 3910 e.preventDefault(); 3911 3912 }); 3913 3914 3915 $("header .mega-tabs").click(function () { 3916 $(this).find(".nav-tabs li:first-child").addClass("active"); 3917 }); 3918 3919 3920 3921 $(".tab-box.left,.tab-box.right").each(function () { 3922 var t = $(this).find(".nav"); 3923 var p = $(this).find(".panel-box"); 3924 3925 if ($(p).outerHeight() < $(t).outerHeight()) $(p).find(".panel").css("height", $(t).outerHeight() + "px"); 3926 else $(t).css("height", $(p).find(".panel").outerHeight() + "px"); 3927 }); 3928 $(".nav.nav-justified-v").each(function () { 3929 var count_m = $(this).find("li").length; 3930 var a = $(this).find("li a"); 3931 $(a).css("height", $(this).outerHeight() / count_m + "px"); 3932 $(a).css("line-height", $(a).height() + "px") 3933 }); 3934 3935 $("*[data-height].collapse-box").each(function () { 3936 var t = $(this).find(".panel"); 3937 $(t).css("height", $(this).attr("data-height") + "px"); 3938 $(t).show(); 3939 }); 3940 3941 $('.collapse-box .collapse-button').toggleClick(function () { 3942 openCollapse(this); 3943 }, function() { 3944 closeCollapse(this); 3945 }); 3946 }); 3947 3948 function closeCollapse(obj) { 3949 var t = $(obj).closest(".collapse-box"); 3950 var tp = $(t).find(".panel"); 3951 var h = $(t).attr("data-height"); 3952 if (!isEmpty(h)) $(tp).removeClass("no-gradient"); 3953 var time = $(this).attr("data-time"); 3954 if (isEmpty(time)) time = 500; 3955 3956 $(tp).animate({ 3957 height: (isEmpty(h)) ? 0 : h 3958 }, parseInt(time,10), function () { 3959 if (isEmpty(h)) { 3960 $(tp).css("display", "none"); 3961 $(tp).css("height", ""); 3962 } 3963 }); 3964 } 3965 function openCollapse(obj) { 3966 var t = $(obj).closest(".collapse-box"); 3967 var tp = $(t).find(".panel"); 3968 var h = $(t).attr("data-height"); 3969 var ah = $(obj).attr("data-height"); 3970 3971 $(tp).css("display", "block").css("height", ""); 3972 var final_h = $(tp).height(); 3973 $(tp).css("height", 0); 3974 3975 if (!isEmpty(ah)) final_h = ah; 3976 3977 var time = $(obj).attr("data-time"); 3978 if (isEmpty(time)) time = 500; 3979 if (!isEmpty(h)) { 3980 $(tp).css("height", h + "px"); 3981 $(tp).addClass("no-gradient"); 3982 } 3983 $(tp).animate({ 3984 height: final_h 3985 }, parseInt(time, 10)); 3986 } 3987 3988 $('.accordion-list .list-group-item > a').click(function () { 3989 var t = $(this).closest(".accordion-list"); 3990 var it = $(this).closest(".list-group-item"); 3991 var dt = $(t).attr("data-type"); 3992 var time = $(t).attr("data-time"); 3993 var he = $(t).attr("data-height"); 3994 var act = $(t).find(".active-panel .panel"); 3995 $(t).find(".list-group-item").removeClass("active-panel"); 3996 3997 if (isEmpty(dt)) dt = ""; 3998 $($(t).find(".panel")).each(function () { 3999 $(this).clearQueue(); 4000 }); 4001 if ($(this).hasClass("active") || $(it).find(".panel").css("display") == "block") { 4002 $(this).removeClass("active"); 4003 4004 var tb = $(it).find(".panel"); 4005 if (isEmpty(time)) time = 500; 4006 $(tb).animate({ 4007 height: 0 4008 }, time, function () { $(tb).css("display", "none").css("height", ""); }); 4009 } else { 4010 var d = 0; 4011 var a = $(t).find(".list-group-item > a"); 4012 $(a).each(function () { 4013 if ($(this).hasClass("active")) d = 300; 4014 }); 4015 $(a).removeClass("active"); 4016 $(this).addClass("active"); 4017 $(it).addClass("active-panel"); 4018 4019 if (dt == "visible") $($(it).find(".panel")).collapse({ milliseconds: time, height: he }); 4020 else { 4021 $(act).animate({ 4022 height: 0 4023 }, d, function () { 4024 $(act).css("display", "none").css("height", ""); 4025 }); 4026 if (dt == "accordion") { 4027 $(it).find(".panel").collapse({ milliseconds: time, height: he }); 4028 } else { 4029 $(act).promise().done(function () { 4030 $(it).find(".panel").collapse({ milliseconds: time, height: he }); 4031 }); 4032 } 4033 } 4034 } 4035 }); 4036 $.fn.collapse = function (attr) { 4037 var time = ""; 4038 var height = ""; 4039 if (!isEmpty(attr)) { 4040 time = attr["milliseconds"]; 4041 height = attr["height"]; 4042 } 4043 if (isEmpty(time)) time = 500; 4044 var t = this; 4045 $(t).css("display", "block"); 4046 var h = $(t).height(); 4047 $(t).css("height", "0px"); 4048 if (!isEmpty(height)) h = height; 4049 4050 $(t).animate({ 4051 height: h 4052 }, parseInt(time, 10)); 4053 }; 4054}(jQuery)); 4055 4056 4057 4058/*! 4059 * jQuery pagination plugin v1.2.5 4060 * http://esimakin.github.io/twbs-pagination/ 4061 * 4062 * Copyright 2014, Eugene Simakin 4063 * Released under Apache 2.0 license 4064 * http://apache.org/licenses/LICENSE-2.0.html 4065 */ 4066; (function (e, d, a, f) { var b = e.fn.twbsPagination; var c = function (j, h) { this.$element = e(j); this.options = e.extend({}, e.fn.twbsPagination.defaults, h); this.options.totalPages = parseInt(this.options.totalPages); if (isNaN(this.options.totalPages)) { throw new Error("Total pages option is not correct!") } this.options.visiblePages = parseInt(this.options.visiblePages); if (isNaN(this.options.visiblePages)) { throw new Error("Visible pages option is not correct!") } if (this.options.totalPages < this.options.visiblePages) { this.options.visiblePages = this.options.totalPages } if (this.options.onPageClick instanceof Function) { this.$element.first().bind("page", this.options.onPageClick) } if (this.options.href) { var g, k = this.options.href.replace(/[-\/\\^$*+?.|[\]]/g, "\\$&"); k = k.replace(this.options.hrefVariable, "(\\d+)"); if ((g = new RegExp(k, "i").exec(d.location.href)) != null) { this.options.startPage = parseInt(g[1], 10) } } var i = (typeof this.$element.prop === "function") ? this.$element.prop("tagName") : this.$element.attr("tagName"); if (i === "UL") { this.$listContainer = this.$element } else { this.$listContainer = e("<ul></ul>") } this.$listContainer.addClass(this.options.paginationClass); if (i !== "UL") { this.$element.append(this.$listContainer) } this.render(this.getPages(this.options.startPage)); this.setupEvents(); return this }; c.prototype = { constructor: c, destroy: function () { this.$element.empty(); this.$element.removeData("twbs-pagination"); this.$element.unbind("page"); return this }, show: function (g) { if (g < 1 || g > this.options.totalPages) { throw new Error("Page is incorrect.") } this.render(this.getPages(g)); this.setupEvents(); this.$element.trigger("page", g); return this }, buildListItems: function (g) { var j = e(); if (this.options.first) { j = j.add(this.buildItem("first", 1)) } if (this.options.prev) { var l = g.currentPage > 1 ? g.currentPage - 1 : this.options.loop ? this.options.totalPages : 1; j = j.add(this.buildItem("prev", l)) } for (var h = 0; h < g.numeric.length; h++) { j = j.add(this.buildItem("page", g.numeric[h])) } if (this.options.next) { var k = g.currentPage < this.options.totalPages ? g.currentPage + 1 : this.options.loop ? 1 : this.options.totalPages; j = j.add(this.buildItem("next", k)) } if (this.options.last) { j = j.add(this.buildItem("last", this.options.totalPages)) } return j }, buildItem: function (i, j) { var h = e("<li></li>"), k = e("<a></a>"), g = null; switch (i) { case "page": g = j; h.addClass(this.options.pageClass); break; case "first": g = this.options.first; h.addClass(this.options.firstClass); break; case "prev": g = this.options.prev; h.addClass(this.options.prevClass); break; case "next": g = this.options.next; h.addClass(this.options.nextClass); break; case "last": g = this.options.last; h.addClass(this.options.lastClass); break; default: break } h.data("page", j); h.data("page-type", i); h.append(k.attr("href", this.makeHref(j)).html(g)); return h }, getPages: function (j) { var g = []; var k = Math.floor(this.options.visiblePages / 2); var l = j - k + 1 - this.options.visiblePages % 2; var h = j + k; if (l <= 0) { l = 1; h = this.options.visiblePages } if (h > this.options.totalPages) { l = this.options.totalPages - this.options.visiblePages + 1; h = this.options.totalPages } var i = l; while (i <= h) { g.push(i); i++ } return { currentPage: j, numeric: g } }, render: function (g) { this.$listContainer.children().remove(); this.$listContainer.append(this.buildListItems(g));
4066 var h = this.$listContainer.children(); h.filter(function () { return e(this).data("page") === g.currentPage && e(this).data("page-type") === "page" }).addClass(this.options.activeClass); h.filter(function () { return e(this).data("page-type") === "first" }).toggleClass(this.options.disabledClass, g.currentPage === 1); h.filter(function () { return e(this).data("page-type") === "last" }).toggleClass(this.options.disabledClass, g.currentPage === this.options.totalPages); h.filter(function () { return e(this).data("page-type") === "prev" }).toggleClass(this.options.disabledClass, !this.options.loop && g.currentPage === 1); h.filter(function () { return e(this).data("page-type") === "next" }).toggleClass(this.options.disabledClass, !this.options.loop && g.currentPage === this.options.totalPages) }, setupEvents: function () { var g = this; this.$listContainer.find("li").each(function () { var h = e(this); h.off(); if (h.hasClass(g.options.disabledClass) || h.hasClass(g.options.activeClass)) { h.click(function (i) { i.preventDefault() }); return } h.click(function (i) { !g.options.href && i.preventDefault(); g.show(parseInt(h.data("page"), 10)) }) }) }, makeHref: function (g) { return this.options.href ? this.options.href.replace(this.options.hrefVariable, g) : "#" } }; e.fn.twbsPagination = function (i) { var h = Array.prototype.slice.call(arguments, 1); var k; var l = e(this); var j = l.data("twbs-pagination"); var g = typeof i === "object" && i; if (!j) { l.data("twbs-pagination", (j = new c(this, g))) } if (typeof i === "string") { k = j[i].apply(j, h) } return (k === f) ? l : k }; e.fn.twbsPagination.defaults = { totalPages: 0, startPage: 1, visiblePages: 5, href: false, hrefVariable: "{{number}}", first: "First", prev: "Previous", next: "Next", last: "Last", loop: false, onPageClick: null, paginationClass: "pagination", nextClass: "next", prevClass: "prev", lastClass: "last", firstClass: "first", pageClass: "page", activeClass: "active", disabledClass: "disabled" }; e.fn.twbsPagination.Constructor = c; e.fn.twbsPagination.noConflict = function () { e.fn.twbsPagination = b; return this } })(jQuery, window, document); 4067 4068/* 4069* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 4070*/ 4071 4072(function ($) { 4073 var isRLI; 4074 $.fn.initTwbsPagination = function () { 4075 var opt = $(this).attr("data-options"); 4076 var a = $(this).attr("data-pagination-anima"); 4077 var p = parseInt($(this).attr("data-page-items")); 4078 var c = $(this).closest(".grid-list"); 4079 var t = $(c).find(".grid-box .grid-item"); 4080 var n = $(t).length; 4081 var type = "pagination"; 4082 if ($(this).hasClass('load-more-grid')) type = 'load-more'; 4083 4084 $(t).css("display", "none"); 4085 for (var i = 0; i < p; i++) { 4086 $($(t)[i]).css("display", "block"); 4087 } 4088 4089 if (type == 'pagination') { 4090 var optionsArr; 4091 var options = { 4092 totalPages: Math.ceil(n / p), 4093 visiblePages: 7, 4094 first: "<i class='fa fa-angle-double-left'></i> <span>Primeiro</span>", 4095 last: "<span>Ãltimo</span> <i class='fa fa-angle-double-right'></i>", 4096 next: "<span>Próximo</span> <i class='fa fa-angle-right'></i>", 4097 prev: "<i class='fa fa-angle-left'></i> <span>Anterior</span>", 4098 onPageClick: function (event, page) { 4099 $(t).css("display", "none"); 4100 for (var i = (p * (page - 1)) ; i < (p * (page)) ; i++) { 4101 var o = $($(t)[i]); 4102 if (!isEmpty(a)) { 4103 $(o).css("opacity", "0"); 4104 $(o).showAnima(a); 4105 } 4106 $(o).css("display", "block"); 4107 if (isRLI) $(o).renderLoadedImgs(); 4108 } 4109 if (!isEmpty(opt) && opt.indexOf("scrollTop:true") != -1) $(c).scrollTo(); 4110 } 4111 } 4112 if (!isEmpty(opt)) { 4113 optionsArr = opt.split(","); 4114 options = getOptionsString(opt, options); 4115 } 4116 $(this).twbsPagination(options); 4117 } 4118 if (type == 'load-more') { 4119 if (!isEmpty(opt) && opt.indexOf("lazyLoad:true") != -1) { 4120 var ths = this; 4121 $(window).scroll(function () { 4122 if ($(window).scrollTop() + $(window).height() == $(document).height()) {
4123 loadMoreGrid(ths); 4124 } 4125 }); 4126 } 4127 $(this).click(function () { 4128 loadMoreGrid(this); 4129 }); 4130 } 4131 function loadMoreGrid(obj) { 4132 var page = $(obj).attr("data-current-page"); 4133 if (isEmpty(page)) page = 1; 4134 page++; 4135 $(obj).attr("data-current-page", page); 4136 var s = p * (page - 1); 4137 var e = p * (page); 4138 4139 for (var i = s ; i < (p * (page)) ; i++) { 4140 var o = $($(t)[i]); 4141 if (!isEmpty(a)) { 4142 $(o).css("opacity", "0"); 4143 $(o).showAnima(a); 4144 } 4145 $(o).css("display", "block"); 4146 } 4147 if (e >= n) $(obj).hide(300); 4148 } 4149 } 4150 $(document).ready(function () { 4151 isRLI = $.fn.renderLoadedImgs; 4152 $(".pagination-grid,.load-more-grid").each(function () { 4153 $(this).initTwbsPagination(); 4154 }); 4155 4156 //ALBUM 4157 var alb = ".cont-album-box"; 4158 $(".album-item").hide(); 4159 $(".album-box").click(function () { 4160 var t = $(this).closest(".album-main"); 4161 var a = $(t).attr("data-album-anima"); 4162 var ida = $("#" + $(this).attr("data-album-id")); 4163 if (isEmpty(ida)) { 4164 ida = $(t).find(alb + " .album-item:eq(" + $(this).index() + ")"); 4165 } 4166 $(alb + " .album-item").hide(); 4167 $(t).find(".album-list").hide(); 4168 $(t).find(alb + " .album-title span").html($(this).find(".album-name").html().replace("<br>", " ").replace("<br />", " ")); 4169 $(t).find(alb + " .album-title").show(); 4170 if (!isEmpty(a)) { 4171 $(ida).css("opacity", 0); 4172 $(ida).showAnima(a); 4173 } 4174 $(ida).css("display", "block"); 4175 if ($.isFunction($.fn.initIsotope)) $(ida).find(".maso-list").initIsotope(); 4176 if (isRLI) $(t).find(ida).renderLoadedImgs(); 4177 4178 $(ida).find(".load-more-maso").attr("data-current-page", "1").css("display", "inline-block"); 4179 }); 4180 $(alb + " .album-title").click(function () { 4181 var t = $(this).closest(".album-main"); 4182 var a = $(t).attr("data-album-anima"); 4183 var b = $(t).find(".album-list"); 4184 $(alb + " .album-item").hide(); 4185 $(alb + " .album-title").hide(); 4186 if (!isEmpty(a)) { 4187 $(b).css("opacity", 0); 4188 $(b).showAnima(a); 4189 } 4190 $(b).css("display", "block"); 4191 }); 4192 }); 4193 4194}(jQuery)); 4195 4196 4197 4198/*! 4199 * parallax.js v1.4.2 (http://pixelcog.github.io/parallax.js/) 4200 * @copyright 2016 PixelCog, Inc. 4201 * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE) 4202 */ 4203!function (t, i, e, s) { function o(i, e) { var h = this; "object" == typeof e && (delete e.refresh, delete e.render, t.extend(this, e)), this.$element = t(i), !this.imageSrc && this.$element.is("img") && (this.imageSrc = this.$element.attr("src")); var r = (this.position + "").toLowerCase().match(/\S+/g) || []; if (r.length < 1 && r.push("center"), 1 == r.length && r.push(r[0]), ("top" == r[0] || "bottom" == r[0] || "left" == r[1] || "right" == r[1]) && (r = [r[1], r[0]]), this.positionX != s && (r[0] = this.positionX.toLowerCase()), this.positionY != s && (r[1] = this.positionY.toLowerCase()), h.positionX = r[0], h.positionY = r[1], "left" != this.positionX && "right" != this.positionX && (this.positionX = isNaN(parseInt(this.positionX)) ? "center" : parseInt(this.positionX)), "top" != this.positionY && "bottom" != this.positionY && (this.positionY = isNaN(parseInt(this.positionY)) ? "center" : parseInt(this.positionY)), this.position = this.positionX + (isNaN(this.positionX) ? "" : "px") + " " + this.positionY + (isNaN(this.positionY) ? "" : "px"), navigator.userAgent.match(/(iPod|iPhone|iPad)/)) return this.imageSrc && this.iosFix && !this.$element.is("img") && this.$element.css({ backgroundImage: "url(" + this.imageSrc + ")", backgroundSize: "cover", backgroundPosition: this.position }), this; if (navigator.userAgent.match(/(Android)/)) return this.imageSrc && this.androidFix && !this.$element.is("img") && this.$element.css({ backgroundImage: "url(" + this.imageSrc + ")", backgroundSize: "cover", backgroundPosition: this.position }), this; this.$mirror = t("<div />").prependTo("body"); var a = this.$element.find(">.parallax-slider"), n = !1; 0 == a.length ? this.$slider = t("<img />").prependTo(this.$mirror) : (this.$slider = a.prependTo(this.$mirror), n = !0), this.$mirror.addClass("parallax-mirror").css({ visibility: "hidden", zIndex: this.zIndex, position: "fixed", top: 0, left: 0, overflow: "hidden" }), this.$slider.addClass("parallax-slider").one("load", function () { h.naturalHeight && h.naturalWi
4203dth || (h.naturalHeight = this.naturalHeight || this.height || 1, h.naturalWidth = this.naturalWidth || this.width || 1), h.aspectRatio = h.naturalWidth / h.naturalHeight, o.isSetup || o.setup(), o.sliders.push(h), o.isFresh = !1, o.requestRender() }), n || (this.$slider[0].src = this.imageSrc), (this.naturalHeight && this.naturalWidth || this.$slider[0].complete || a.length > 0) && this.$slider.trigger("load") } function h(s) { return this.each(function () { var h = t(this), r = "object" == typeof s && s; this == i || this == e || h.is("body") ? o.configure(r) : h.data("px.parallax") ? "object" == typeof s && t.extend(h.data("px.parallax"), r) : (r = t.extend({}, h.data(), r), h.data("px.parallax", new o(this, r))), "string" == typeof s && ("destroy" == s ? o.destroy(this) : o[s]()) }) } !function () { for (var t = 0, e = ["ms", "moz", "webkit", "o"], s = 0; s < e.length && !i.requestAnimationFrame; ++s) i.requestAnimationFrame = i[e[s] + "RequestAnimationFrame"], i.cancelAnimationFrame = i[e[s] + "CancelAnimationFrame"] || i[e[s] + "CancelRequestAnimationFrame"]; i.requestAnimationFrame || (i.requestAnimationFrame = function (e) { var s = (new Date).getTime(), o = Math.max(0, 16 - (s - t)), h = i.setTimeout(function () { e(s + o) }, o); return t = s + o, h }), i.cancelAnimationFrame || (i.cancelAnimationFrame = function (t) { clearTimeout(t) }) }(), t.extend(o.prototype, { speed: .2, bleed: 0, zIndex: -100, iosFix: !0, androidFix: !0, position: "center", overScrollFix: !1, refresh: function () { this.boxWidth = this.$element.outerWidth(), this.boxHeight = this.$element.outerHeight() + 2 * this.bleed, this.boxOffsetTop = this.$element.offset().top - this.bleed, this.boxOffsetLeft = this.$element.offset().left, this.boxOffsetBottom = this.boxOffsetTop + this.boxHeight; var t = o.winHeight, i = o.docHeight, e = Math.min(this.boxOffsetTop, i - t), s = Math.max(this.boxOffsetTop + this.boxHeight - t, 0), h = this.boxHeight + (e - s) * (1 - this.speed) | 0, r = (this.boxOffsetTop - e) * (1 - this.speed) | 0; if (h * this.aspectRatio >= this.boxWidth) { this.imageWidth = h * this.aspectRatio | 0, this.imageHeight = h, this.offsetBaseTop = r; var a = this.imageWidth - this.boxWidth; this.offsetLeft = "left" == this.positionX ? 0 : "right" == this.positionX ? -a : isNaN(this.positionX) ? -a / 2 | 0 : Math.max(this.positionX, -a) } else { this.imageWidth = this.boxWidth, this.imageHeight = this.boxWidth / this.aspectRatio | 0, this.offsetLeft = 0; var a = this.imageHeight - h; this.offsetBaseTop = "top" == this.positionY ? r : "bottom" == this.positionY ? r - a : isNaN(this.positionY) ? r - a / 2 | 0 : r + Math.max(this.positionY, -a) } }, render: function () { var t = o.scrollTop, i = o.scrollLeft, e = this.overScrollFix ? o.overScroll : 0, s = t + o.winHeight; this.boxOffsetBottom > t && this.boxOffsetTop <= s ? (this.visibility = "visible", this.mirrorTop = this.boxOffsetTop - t, this.mirrorLeft = this.boxOffsetLeft - i, this.offsetTop = this.offsetBaseTop - this.mirrorTop * (1 - this.speed)) : this.visibility = "hidden", this.$mirror.css({ transform: "translate3d(0px, 0px, 0px)", visibility: this.visibility, top: this.mirrorTop - e, left: this.mirrorLeft, height: this.boxHeight, width: this.boxWidth }), this.$slider.css({ transform: "translate3d(0px, 0px, 0px)", position: "absolute", top: this.offsetTop, left: this.offsetLeft, height: this.imageHeight, width: this.imageWidth, maxWidth: "none" }) } }), t.extend(o, { scrollTop: 0, scrollLeft: 0, winHeight: 0, winWidth: 0, docHeight: 1 << 30, docWidth: 1 << 30, sliders: [], isReady: !1, isFresh: !1, isBusy: !1, setup: function () { if (!this.isReady) { var s = t(e), h = t(i), r = function () { o.winHeight = h.height(), o.winWidth = h.width(), o.docHeight = s.height(), o.docWidth = s.width() }, a = function () { var t = h.scrollTop(), i = o.docHeight - o.winHeight, e = o.docWidth - o.winWidth; o.scrollTop = Math.max(0, Math.min(i, t)), o.scrollLeft = Math.max(0, Math.min(e, h.scrollLeft())), o.overScroll = Math.max(t - i, Math.min(t, 0)) }; h.on("resize.px.parallax load.px.parallax", function () { r(), o.isFresh = !1, o.requestRender() }).on("scroll.px.parallax load.px.parallax", function () { a(), o.requestRender() }), r(), a(), this.isReady = !0 } }, configure: function (i) { "object" == typeof i && (delete i.refresh, delete i.render, t.extend(this.prototype, i)) }, refresh: function () { t.each(this.sliders, function () { this.refresh() }), this.isFresh = !0 }, render: function () { this.isFresh || this.refresh(), t.each(this.sliders, function () { this.render() }) }, requestRender: function () { var t = this; this.isBusy || (this.isBusy = !0, i.requestAnimationFrame(function () { t.render(), t.isBusy = !1 })) }, destroy: function (e) { var s, h = t(e).data("px.parallax"); for (h.$mirror.remove(), s = 0; s < this.sliders.length; s += 1) this.sliders[s] == h && this.sliders.splice(s, 1); t(e).data("px.parallax", !1), 0 === this.sliders.length && (t(i).off("scroll.px.parallax resize.px.parallax load.px.parallax"), this.isReady = !1, o.isSetup = !1) } }); var r = t.fn.parallax; t.fn.parallax = h, t.fn.parallax.Constructor = o, t.fn.parallax.noConflict = function () { return t.fn.parallax = r, this }, t(e).on("ready.px.parallax.data-api", function () { t('[data-parallax="scroll"]').parallax() }) }(jQuery, window, document); 4204 4205/* 4206* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 4207*/ 4208(function ($) { 4209 $(document).ready(function () { 4210 $('[data-parallax]').parallax({}); 4211 $(".section-bg-image,.section-bg-animation,*[data-parallax].header-title").each(function () { 4212 var ken = "";
4213 if ($(this).hasClass("ken-burn")) ken = "ken-burn"; 4214 if ($(this).hasClass("ken-burn-out")) ken = "ken-burn-out"; 4215 if ($(this).hasClass("ken-burn-center")) ken = "ken-burn-center"; 4216 if (ken.length > 0) { setTimeout(function () { $(".parallax-mirror").addClass(ken); }, 100) } 4217 }); 4218 var timerVar; 4219 var times = 0; 4220 var isFP = $("html").hasClass("fp-enabled"); 4221 timerVar = self.setInterval(function () { 4222 if (times > 30) { 4223 clearInterval(timerVar); 4224 } else { 4225 if (!isFP) $(window).trigger('resize').trigger('scroll'); 4226 } 4227 times = times + 1; 4228 }, 100); 4229 if ($(".section-bg-animation,.header-animation").length) { 4230 var c = $(".section-bg-animation,.header-animation"); 4231 var lays = $(c).find(".anima-layer"); 4232 $(window).scroll(function () { 4233 var po = window.pageYOffset - (c.offset().top - c.getHeight() / 4); 4234 $(lays).css("margin-top", po / 1.5); 4235 }); 4236 } 4237 }); 4238}(jQuery)); 4239 4240'use strict'; 4241 4242//PLUGINS 4243/* metismenu - v2.0.2 https://github.com/onokumus/metisMenu - Under MIT License */ 4244!function (a) { "use strict"; function b() { var a = document.createElement("mm"), b = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" }; for (var c in b) if (void 0 !== a.style[c]) return { end: b[c] }; return !1 } function c(b) { return this.each(function () { var c = a(this), d = c.data("mm"), f = a.extend({}, e.DEFAULTS, c.data(), "object" == typeof b && b); d || c.data("mm", d = new e(this, f)), "string" == typeof b && d[b]() }) } a.fn.emulateTransitionEnd = function (b) { var c = !1, e = this; a(this).one("mmTransitionEnd", function () { c = !0 }); var f = function () { c || a(e).trigger(d.end) }; return setTimeout(f, b), this }; var d = b(); d && (a.event.special.mmTransitionEnd = { bindType: d.end, delegateType: d.end, handle: function (b) { return a(b.target).is(this) ? b.handleObj.handler.apply(this, arguments) : void 0 } }); var e = function (b, c) { this.$element = a(b), this.options = a.extend({}, e.DEFAULTS, c), this.transitioning = null, this.init() }; e.TRANSITION_DURATION = 350, e.DEFAULTS = { toggle: !0, doubleTapToGo: !1, activeClass: "active" }, e.prototype.init = function () { var b = this, c = this.options.activeClass; this.$element.find("li." + c).has("ul").children("ul").addClass("collapse in"), this.$element.find("li").not("." + c).has("ul").children("ul").addClass("collapse"), this.options.doubleTapToGo && this.$element.find("li." + c).has("ul").children("a").addClass("doubleTapToGo"), this.$element.find("li").has("ul").children("a").on("click.metisMenu", function (d) { var e = a(this), f = e.parent("li"), g = f.children("ul"); return d.preventDefault(), f.hasClass(c) ? b.hide(g) : b.show(g), b.options.doubleTapToGo && b.doubleTapToGo(e) && "#" !== e.attr("href") && "" !== e.attr("href") ? (d.stopPropagation(), void (document.location = e.attr("href"))) : void 0 }) }, e.prototype.doubleTapToGo = function (a) { var b = this.$element; return a.hasClass("doubleTapToGo") ? (a.removeClass("doubleTapToGo"), !0) : a.parent().children("ul").length ? (b.find(".doubleTapToGo").removeClass("doubleTapToGo"), a.addClass("doubleTapToGo"), !1) : void 0 }, e.prototype.show = function (b) { var c = this.options.activeClass, f = a(b), g = f.parent("li"); if (!this.transitioning && !f.hasClass("in")) { g.addClass(c), this.options.toggle && this.hide(g.siblings().children("ul.in")), f.removeClass("collapse").addClass("collapsing").height(0), this.transitioning = 1; var h = function () { f.removeClass("collapsing").addClass("collapse in").height(""), this.transitioning = 0 }; return d ? void f.one("mmTransitionEnd", a.proxy(h, this)).emulateTransitionEnd(e.TRANSITION_DURATION).height(function () { try { return f[0].scrollHeight } catch (e) { return 0 } }) : h.call(this) } }, e.prototype.hide = function (b) { var c = this.options.activeClass, f = a(b); if (!this.transitioning && f.hasClass("in")) { f.parent("li").removeClass(c), f.height(f.height())[0].offsetHeight, f.addClass("collapsing").removeClass("collapse").removeClass("in"), this.transitioning = 1; var g = function () { this.transitioning = 0, f.removeClass("collapsing").addClass("collapse") };
4244 return d ? void f.height(0).one("mmTransitionEnd", a.proxy(g, this)).emulateTransitionEnd(e.TRANSITION_DURATION) : g.call(this) } }; var f = a.fn.metisMenu; a.fn.metisMenu = c, a.fn.metisMenu.Constructor = e, a.fn.metisMenu.noConflict = function () { return a.fn.metisMenu = f, this } }(jQuery); 4245 4246/* JavaScript Cookie v2.0.3 - https://github.com/js-cookie/js-cookie - Released under the MIT license */ 4247(function (n) { if (typeof define == "function" && define.amd) define(n); else if (typeof exports == "object") module.exports = n(); else { var i = window.Cookies, t = window.Cookies = n(); t.noConflict = function () { return window.Cookies = i, t } } })(function () { function n() { for (var n = 0, r = {}, t, i; n < arguments.length; n++) { t = arguments[n]; for (i in t) r[i] = t[i] } return r } function t(i) { function r(t, u, f) { var o, s; if (arguments.length > 1) { f = n({ path: "/" }, r.defaults, f); typeof f.expires == "number" && (s = new Date, s.setMilliseconds(s.getMilliseconds() + f.expires * 864e5), f.expires = s); try { o = JSON.stringify(u); /^[\{\[]/.test(o) && (u = o) } catch (y) { } return u = encodeURIComponent(String(u)), u = u.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), t = encodeURIComponent(String(t)), t = t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent), t = t.replace(/[\(\)]/g, escape), document.cookie = [t, "=", u, f.expires && "; expires=" + f.expires.toUTCString(), f.path && "; path=" + f.path, f.domain && "; domain=" + f.domain, f.secure ? "; secure" : ""].join("") } t || (o = {}); for (var l = document.cookie ? document.cookie.split("; ") : [], a = /(%[0-9A-Z]{2})+/g, h = 0; h < l.length; h++) { var v = l[h].split("="), c = v[0].replace(a, decodeURIComponent), e = v.slice(1).join("="); e.charAt(0) === '"' && (e = e.slice(1, -1)); try { if (e = i && i(e, c) || e.replace(a, decodeURIComponent), this.json) try { e = JSON.parse(e) } catch (y) { } if (t === c) { o = e; break } t || (o[c] = e) } catch (y) { } } return o } return r.get = r.set = r, r.getJSON = function () { return r.apply({ json: !0 }, [].slice.call(arguments)) }, r.defaults = {}, r.remove = function (t, i) { r(t, "", n(i, { expires: -1 })) }, r.withConverter = t, r } return t() }); 4248 4249//VARAIBLES 4250var obj; 4251var device_screen_size = ""; 4252var arrBgImage = []; 4253var timer; 4254var index = 0; 4255var color; 4256var wh = 1300; 4257var hh = 768; 4258var current_url = window.location.href; 4259 4260//ANIMATIONS 4261function cssInit(delay, speed) { 4262 delay += 'ms'; 4263 speed += 'ms'; 4264 return { 4265 'transition-duration': speed, 4266 'animation-duration': speed, 4267 'transition-timing-function': 'ease', 4268 'transition-delay': delay 4269 }; 4270} 4271var animaTimeout = []; 4272var animaTimeout_2 = []; 4273var default_anima = "fade-in"; 4274function initAnima(obj) { 4275 (function ($) { 4276 var da = $(obj).attr("data-anima"); 4277 var an = $(obj).find(".anima,*[data-anima]"); 4278 var t = $(obj).attr("data-time"); 4279 var ta = $(obj).attr("data-target"); 4280 var tm = $(obj).attr("data-timeline"); 4281 var tmt = $(obj).attr("data-timeline-time"); 4282 var tr = $(obj).attr("data-trigger"); 4283 var len = $(an).length; 4284 if (da == "default") da = default_anima; 4285 if (isEmpty(tmt)) tmt = 300; 4286 if (isEmpty(an)) an = obj; 4287 $(an).each(function (i) { 4288 if (!isEmpty($(this).attr("data-anima")) && i == 0) { an = obj; return false; } 4289 }); 4290 if (!isEmpty(ta)) an = $(ta); 4291 if (isEmpty(t)) t = 300; 4292 var time = 0, p = 1; 4293 if (!isEmpty(tm) && tm == "desc") { time = (len - 1) * tmt; p = -1 }; 4294 var cont = null; 4295 $(an).each(function (index) { 4296 var time_now = time; 4297 if (index == len - 1 && tm == "desc") time_now = 0; 4298 if (!$(this).hasClass("anima") && an != obj && isEmpty(ta)) { 4299 cont = this; 4300 } else { 4301 if (cont != null && !$.contains(cont, this) || cont == null) { 4302 var tobj = this; 4303 var pos = $(this).css("position"); 4304 if (pos != 'absolute' && pos != 'fixed') $(this).css("position", "relative"); 4305 var aid = Math.random(5) + ""; 4306 $(tobj).attr("aid", aid); 4307 if (animaTimeout.length > 30) { 4308 animaTimeout.shift(); 4309 animaTimeout_2.shift(); 4310 } 4311 animaTimeout.push([aid, setTimeout(function () { 4312 $(tobj).css(cssInit(0, 0)); 4313 var da_ = da; 4314 if (!isEmpty($(tobj).attr('class')) && $(tobj).attr('class').indexOf("anima-") != -1) { 4315 var arr_a = $(tobj).attr('class').split(" "); 4316 for (var i = 0; i < arr_a.length; i++) { 4317 if (arr_a[i].indexOf("anima-") != -1) da_ = arr_a[i].replace("anima-", ""); 4318 } 4319 } 4320 if (wh < 768 && (isEmpty(tr) || tr == "scroll" || tr == "load")) da_ = "fade-in"; 4321 animaTimeout_2.push([aid, setTimeout(function () { $(tobj).css(cssInit(0, t)).addClass(da_); $(tobj).css('opacity', '') }, 100)]); 4322 }, time_now)]); 4323 if (!isEmpty(tm)) time += tmt * p; 4324 } 4325 } 4326 }); 4327 }(jQuery)); 4328} 4329function outAnima(obj) { 4330 (function ($) { 4331 var da = $(obj).attr("data-anima"); 4332 var an = $(obj).find(".anima,*[data-anima]"); 4333 var t = $(obj).attr("data-time"); 4334 var o = $(obj).attr("data-anima-out"); 4335 var ta = $(obj).attr("data-target"); 4336 if (da == "default") da = default_anima; 4337 if (isEmpty(an)) an = obj; 4338 if (!isEmpty(ta)) an = $(ta); 4339 if (isEmpty(t)) t = 300; 4340 if (isEmpty(o)) o = "back"; 4341 if ((o == "back") || (o == "hide")) { 4342 var cont = null; 4343 $(an).each(function () { 4344 var aid = $(this).attr("aid"); 4345 if (!isEmpty(aid)) { 4346 for (var i = 0; i < animaTimeout.length; i++) { 4347 if (animaTimeout[i][0] == aid) { 4348 clearTimeout(animaTimeout[i][1]); 4349 } 4350 } 4351 for (var i = 0; i < animaTimeout_2.length; i++) { 4352 if (animaTimeout_2[i][0] == aid) { 4353 clearTimeout(animaTimeout_2[i][1]); 4354 } 4355 } 4356 } 4357 if (!$(this).hasClass("anima") && an != obj) { 4358 cont = this; 4359 } else { 4360 if (cont != null && !$.contains(cont, this) || cont == null) { 4361 var pos = $(this).css("position"); 4362 if (pos != 'absolute' && pos != 'fixed') $(this).css("position", "relative"); 4363 var da_ = da; 4364 try { 4365 if ($(this).attr('class').indexOf("anima-") != -1) { 4366 var arr_a = $(this).attr('class').split(" "); 4367 for (var i = 0; i < arr_a.length; i++) { 4368 if (arr_a[i].indexOf("anima-") != -1) da_ = arr_a[i].replace("anima-", ""); 4369 } 4370 } 4371 } catch (e) { } 4372 $(this).css(cssInit(0, t)).removeClass(da_); 4373 var op = parseFloat($(this).css("opacity")); 4374 if (op > 0 && op < 1) $(this).css("opacity", 1); 4375 } 4376 } 4377 }); 4378 if (o == "hide") { 4379 $(an).css(cssInit(0, t)).css("opacity", 0); 4380 setTimeout(function () { $(an).css("opacity", 0); }, 400); 4381 } 4382 } 4383 }(jQuery)); 4384} 4385 4386//OTHERS 4387window.onload = function () { function a(a, b) { var c = /^(?:file):/, d = new XMLHttpRequest, e = 0; d.onreadystatechange = function () { 4 == d.readyState && (e = d.status), c.test(location.href) && d.responseText && (e = 200), 4 == d.readyState && 200 == e && (a.outerHTML = d.responseText) }; try { d.open("GET", b, !0), d.send() } catch (f) { } } var b, c = document.getElementsByTagName("*"); for (b in c) c[b].hasAttribute && c[b].hasAttribute("data-include") && a(c[b], c[b].getAttribute("data-include")) }; 4388 4389//FUNCTIONS 4390function openWindow(link, width, height) { 4391 if (typeof width === 'undefined') width = 550; 4392 if (typeof height === 'undefined') height = 350; 4393 var left = (screen.width / 2) - (width / 2); 4394 var top = (screen.height / 2) - (height / 2); 4395 window.open(link, 'targetWindow', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height + ', top='
4395+ top + ', left=' + left); 4396 return false; 4397} 4398function changeBG() { 4399 var objTmp = jQuery(".overlay"); 4400 objTmp.removeClass("fadeOut"); objTmp.css("background-color", color); objTmp.addClass("fadeIn"); 4401 setTimeout(function () { 4402 if (arrBgImage.length == index) index = 0; 4403 jQuery("html").css("background-image", "url(" + arrBgImage[index] + ")"); 4404 objTmp.removeClass("fadeIn"); objTmp.addClass("fadeOut"); 4405 }, 1000); 4406 index = index + 1; 4407} 4408function onePageScroll(t) { 4409 if (!isEmpty(t)) { 4410 jQuery(t).find('a[href ^= "#"]').on('click', function (e) { 4411 e.preventDefault(); 4412 var target = this.hash, 4413 jtarget = jQuery(target); 4414 if (jtarget.length > 0) { 4415 if (target.indexOf('collapse') == -1) { 4416 try { 4417 jQuery('html, body').stop().animate({ 4418 'scrollTop': (jtarget.offset().top - 150) 4419 }, 900, 'swing', function () { 4420 window.location.hash = target; 4421 }); 4422 } catch (e) { } 4423 } 4424 } else { 4425 if (target != "#" && target.length > 2 && jQuery(this).closest("header").length) document.location = window.location.protocol + "//" + window.location.host; 4426 } 4427 }); 4428 } 4429} 4430function getOptionsString(txt, mainArray) { 4431 var optionsArr = txt.split(","); 4432 for (var i = 0; i < optionsArr.length; i++) { 4433 mainArray[optionsArr[i].split(":")[0]] = correctValue(optionsArr[i].split(":")[1]); 4434 } 4435 return mainArray; 4436} 4437function isEmpty(obj) { if (typeof (obj) !== "undefined" && obj !== null && (obj.length > 0 || typeof (obj) == 'number' || typeof (obj.length) == "undefined") && obj !== "undefined") return false; else return true; } 4438function correctValue(n) { return typeof n == "number" ? parseFloat(n) : n == "true" ? !0 : n == "false" ? !1 : n } 4439function isScrollView(t) { 4440 var tp = jQuery(window).height() * 0.5 + jQuery(window).scrollTop(); 4441 var e = jQuery(t).offset().top; 4442 if ((e < (tp + 300) || ((jQuery(window).scrollTop() + jQuery(window).height() == jQuery(document).height())))) return true; 4443 else return false; 4444} 4445 4446//MAIN BLOCK 4447(function ($) { 4448 var arrFA = []; 4449 4450 //FUNCTIONS 4451 $.fn.toggleClick = function (n) { var t = arguments, r = n.guid || $.guid++, i = 0, u = function (r) { var u = ($._data(this, "lastToggle" + n.guid) || 0) % i; return $._data(this, "lastToggle" + n.guid, u + 1), r.preventDefault(), t[u].apply(this, arguments) || !1 }; for (u.guid = r; i < t.length;) t[i++].guid = r; return this.click(u) }; 4452 $.fn.showAnima = function (a, b) { 4453 var t = this; 4454 if (a == "default") a = default_anima; 4455 $(t).removeClass(a); 4456 if (!isEmpty(b) && b == "complete") { $(t).attr("data-anima", a).attr("data-trigger", "manual"); initAnima(t); } 4457 else setTimeout(function () { $(t).css(cssInit(0, 300)).addClass(a); $(t).css('opacity', '') }, 100); 4458 }; 4459 $.fn.titleFullScreen = function (h) { 4460 if (!isEmpty(this)) { 4461 var o = $(this).find(".overlaybox"); 4462 $(this).sizeFullScreen(h); 4463 if (!($("header").css("position") == "absolute") && !($("header").css("position") == "fixed")) { 4464 $(this).css("height", $(this).height() - $("header").height() + "px"); 4465 } 4466 if (!isEmpty(o)) $(o).css("margin-top", "-" + $(o).height() / 2 - 10 + "px"); 4467 } 4468 } 4469 $.fn.sizeFullScreen = function (h) { 4470 if (!isEmpty(this)) { 4471 var h = $(window).outerHeight() - parseInt($(this).css("margin-top").replace("px", ""), 10) - parseInt($(this).css("margin-bottom").replace("px", ""), 10) - ((isEmpty(h)) ? 0 : parseInt(h, 10)); 4472 if (h > $(this).height()) $(this).css("height", h + "px"); 4473 } 4474 } 4475 $.fn.setMiddleBox = function (target) { 4476 if (isEmpty(target)) target = ".box-middle"; 4477 var t = $(this).find(target); 4478 var a = parseInt($(this).outerHeight(), 10); 4479 var b = parseInt($(t).outerHeight(true), 10); 4480 if (b < a) $(t).css("margin-top", (a - b) / 2 + "px"); 4481 } 4482 $.fn.scrollTo = function () { 4483 if (!isEmpty(this)) { 4484 $('html, body').animate({ 4485 scrollTop: $(this).offset().top - 50 4486 }, 1000); 4487 } 4488 } 4489 $.fn.expandItem = function () { 4490 var t = this; 4491 $(t).css("display", "block").css("height", ""); 4492 var h = $(t).height(); 4493 $(t).css("height", 0).css("opacity", 1); 4494 $(t).animate({ 4495 height: h 4496 }, 300, function () { $(t).css("height", "") }); 4497 } 4498 $.fn.collapseItem = function () { 4499 var t = this; 4500 $(t).animate({ 4501 height: 0 4502 }, 300, function () { $(t).css("display", "none") }); 4503 } 4504 $.fn.setVideoBgSize = function (hh, wh) { 4505 var obj = this; 4506 var cH = hh; 4507 var cW = wh; 4508 if ($(this).hasClass("section-bg-video") || $(this).hasClass("header-video")) { 4509 obj = $(this).find("video"); 4510 cH = $(this).height(); 4511 cW = $(this).width(); 4512 } 4513 if (wh > 992 && $(this).find("iframe").length) $(this).find(".videobox").css("height", "130%"); 4514 var vidH = $(obj).height(); 4515 var vidW = $(obj).width(); 4516 4517 var proportion = cH / vidH; 4518 var newWidth = vidW * proportion; 4519 if (newWidth / vidW > 1 && ($(window).width() < newWidth && vidH < $(this).height() || $(window).width() < 769)) { 4520 $(obj).css("width", Math.ceil(newWidth) + "px");
4521 $(obj).css("margin-left", "-" + Math.floor(((newWidth - cW) / 2)) + "px"); 4522 } 4523 } 4524 $.fn.getHeight = function () { 4525 if (!isEmpty(this)) return $(this)[0].clientHeight; 4526 else return 0; 4527 } 4528 $(document).ready(function () { 4529 //DEVICE SIZE 4530 wh = $(window).width(); 4531 hh = $(window).height(); 4532 if (wh < 993) device_screen_size = "device-xs"; 4533 if (wh > 992 && wh < 1200) device_screen_size = "device-m"; 4534 if (wh > 1200) device_screen_size = "device-l"; 4535 $("body").addClass(device_screen_size); 4536 4537 //VIDEO BG 4538 $(".background-page video,.section-bg-video,.header-video").each(function () { 4539 $(this).setVideoBgSize(hh, wh); 4540 }); 4541 4542 //SOCIAL 4543 $("body").on("click", "[data-social]", function () { 4544 var a = $(this).attr("data-social"); 4545 var link = $(this).attr("data-social-url"); 4546 var purl = link; 4547 if (isEmpty(link)) purl = window.location.href; 4548 4549 var url = 'https://www.facebook.com/sharer/sharer.php?u=' + purl; 4550 if (a == 'share-twitter') { 4551 url = 'https://twitter.com/intent/tweet?text=' + $('meta[name=description]').attr("content"); 4552 if (!isEmpty(link)) url = 'https://twitter.com/intent/tweet?url=' + link; 4553 } 4554 if (a == 'share-google') url = 'https://plus.google.com/share?url=' + purl; 4555 if (a == 'share-linkedin') url = 'https://www.linkedin.com/shareArticle?url=' + purl; 4556 openWindow(url); 4557 }); 4558 4559 //MENU - MOBILE 4560 $(".navbar-toggle").toggleClick(function () { 4561 $(this).closest('.navbar').find('.navbar-collapse').expandItem(); 4562 }, function () { 4563 $(this).closest('.navbar').find('.navbar-collapse').collapseItem(); 4564 $(".subline-bar ul").hide(); 4565 $('.search').addClass('hidden'); 4566 }); 4567 4568 //MENU - FIXED TOP 4569 setTimeout(function () { 4570 if (isEmpty($("header").attr("data-menu-eight"))) $("header.fixed-top").css("height", $("header > div").height() + "px"); 4571 else $("header").css("height", $("header").attr("data-menu-eight") + "px"); 4572 }, 150); 4573 4574 //COMPONENT - FIXED AREA 4575 $(".fixed-area").each(function (i) { 4576 $(this).css("width", $(this).width() + "px"); 4577 var top = $(this).attr("data-topscroll"); 4578 if (isEmpty(top)) top = $("header div").outerHeight(true); 4579 arrFA[i] = [$(this).offset().top, $(this).offset().left, top];
4580 $(this).closest(".section-item").css("z-index", "4").css("overflow", "visible"); 4581 }); 4582 4583 //ANIMATIONS 4584 $('*[data-anima]').each(function () { 4585 var tr = $(this).attr("data-trigger"); 4586 if (isEmpty(tr) || tr == "scroll" || tr == "load") { 4587 var an = $(this).find(".anima,*[data-anima]"); 4588 if (isEmpty(an)) an = this; 4589 var cont = null; 4590 var x = 0; 4591 $(an).each(function () { 4592 if (!$(this).hasClass("anima") && an != this) { 4593 cont = this; 4594 } else { 4595 if (cont != null && !$.contains(cont, this) || cont == null) { 4596 $(this).css("opacity", 0); 4597 x++; 4598 } 4599 } 4600 }); 4601 if (x == 0) $(this).css("opacity", 0); 4602 } 4603 if (!isEmpty(tr) && tr == "load") initAnima(this); 4604 }); 4605 4606 $("body").on("click", '*[data-anima]*[data-trigger="click"]', function () { 4607 outAnima(this); 4608 initAnima(this); 4609 }); 4610 $('*[data-anima]*[data-trigger="hover"]').mouseenter(function () { 4611 initAnima(this); 4612 }).mouseleave(function () { 4613 $(this).stop(true, false); 4614 outAnima(this); 4615 }); 4616 4617 //MENU 4618 $("body").on("click", ".nav > li", function () { 4619 var n = $(this).closest('.nav'); 4620 $(n).find("li").removeClass("active").removeClass("current-active"); 4621 $(this).addClass("active current-active"); 4622 }); 4623 4624 //MENU ANIMATIONS 4625 if (device_screen_size != "device-xs") { 4626 $("[data-menu-anima]").each(function () { 4627 var a = $(this).closest("[data-menu-anima]").attr("data-menu-anima"); 4628 $(this).find("ul:not(.side-menu):first-child li").hover(function () { 4629 $(this).find(" > ul, > .mega-menu").css("opacity", 0).css("transition-duration", "0ms").showAnima(a); 4630 }); 4631 $(this).find(".side-menu li").hover(function () { 4632 $(this).find(".panel").css("opacity", 0).css("transition-duration", "0ms").showAnima(a); 4633 }); 4634 if ($(this).hasClass("side-menu-lateral")) { 4635 $(this).find(".side-menu li").hover(function () { 4636 $(this).find("ul").css("opacity", 0).css("transition-duration", "0ms").showAnima(a); 4637 }); 4638 } 4639 }); 4640 $(".nav > li").hover(function (e) { 4641 $(this).closest(".nav").find("li").removeClass("open"); 4642 }); 4643 } 4644 4645 //MENU - SIDE 4646 function hide_mobile_menu(t) { 4647 var a = $(t).attr("data-menu-anima"); 4648 if (isEmpty(a)) a = "fade-in"; 4649 $(".hamburger-menu,.side-menu-fixed").css("visibility", "hidden").css("opacity", "0").removeClass(a); 4650 $(t).removeClass("active"); 4651 $("body").css("overflow", ""); 4652 } 4653 function show_mobile_menu(t) { 4654 var a = $(t).attr("data-menu-anima"); 4655 if (isEmpty(a)) a = "fade-in"; 4656 $(".hamburger-menu,.side-menu-fixed").css("visibility", "visible").showAnima(a); 4657 $(t).addClass("active"); 4658 if (device_screen_size == "device-xs") $("body").css("overflow", "hidden"); 4659 } 4660 if (device_screen_size == "device-xs") { 4661 $(".side-menu li > ul.collapse").each(function () { 4662 $(this).css("height", "0px"); 4663 }); 4664 4665 $("body").on("click", ".side-menu > li.panel-item", function (e) { 4666 if ($(e.target).closest(".collapse").length == 0) $(this).toggleClass("active"); 4667 }); 4668 4669 $("body").on("click", ".side-menu > li", function () { 4670 var t = this; 4671 $(".side-menu > li").each(function () { 4672 if (t !== this) { 4673 $(this).removeClass("active"); 4674 $(this).find(".collapse").removeClass("in").removeClass("open"); 4675 $(this).find("> ul.collapse").css("height", "0px"); 4676 } 4677 }); 4678 hide_mobile_menu($(".hamburger-button")); 4679 }); 4680 } 4681 if ($(".side-menu-fixed").length) { 4682 var mh = $(window).height() - ($('.side-menu-fixed .top-area').outerHeight(true) + $('.side-menu-fixed .bottom-area').outerHeight(true)); 4683 $('.side-menu-fixed .sidebar').css('height', mh + "px"); 4684 $(".side-menu-fixed .scroll-content").attr("data-height", mh); 4685 4686 if ($.isFunction($.fn.slimScroll)) { 4687 $("body").on("click", ".side-menu li", function () { 4688 $(".side-menu-fixed .scroll-content").slimScroll(); 4689 }); 4690 } 4691 } 4692 $("body").on("click", ".side-menu .panel-item", function () { 4693 $(this).find(".panel").toggleClass("open"); 4694 }); 4695 $("body").on("click", ".side-menu .panel-item li", function () { 4696 $(this).closest(".panel").toggleClass("open"); 4697 }); 4698 $(".side-menu").each(function () { 4699 if ($.isFunction($.fn.metisMenu)) $(this).metisMenu(); 4700 }); 4701 $(".one-page-menu,.navbar-nav.inner,.side-menu").each(function () { 4702 onePageScroll(this); 4703 }); 4704 if ($('.side-menu .panel-item').length) { 4705 var width = $(".side-menu-fixed").css("width"); 4706 $('.side-menu .panel-item .panel').css("left", width); 4707 } 4708 4709 //HAMBURGER BUTTON 4710 $(".hamburger-button").toggleClick(function () { 4711 show_mobile_menu(this); 4712 }, function () { 4713 if ($(this).hasClass("active")) hide_mobile_menu(this); 4714 else show_mobile_menu(this); 4715 }); 4716 4717 //OTHERS 4718 $('a[href="#"]').on('click', function (e) { 4719 e.preventDefault(); 4720 }); 4721 4722 $("body").on("click", ".img-box .caption", function () { 4723 $(this).closest(".img-box").find("a.img-box").click(); 4724 }); 4725 4726 $(".grid-list[class^='row-'], .grid-list[class*=' row-'],.maso-list[class^='row-'], .maso-list[class*=' row-']").each(function () { 4727 var css = $.grep(this.className.split(" "), function (v, i) { 4728 return v.indexOf('row') === 0; 4729 }).join(); 4730 $(this).find(".grid-item > *,.grid-item .flexslider li > *").addClass(css); 4731 }); 4732 4733 $(".header-slider,.header-video,.header-title").setMiddleBox(".container > div"); 4734 $(".full-screen-title .container > div").css("margin-top", ""); 4735 4736 $(".full-screen-size").each(function () { 4737 var h = $(this).attr("data-sub-height"); 4738 $(this).sizeFullScreen((isEmpty(h) ? null : h)); 4739 }); 4740 $(".full-screen-title").each(function () { 4741 var h = $(this).attr("data-sub-height"); 4742 $(this).titleFullScreen((isEmpty(h) ? null : h)); 4743 }); 4744 $(".box-middle-container").each(function () { 4745 $(this).setMiddleBox(); 4746 }); 4747 $(".social-group-button").toggleClick(function () { 4748 $(this).find(".social-group").css("display", "block"); 4749 $(this).find(".social-group i").showAnima("fade-left"); 4750 }, function () { 4751 $(this).find(".social-group").css("display", "none"); 4752 $(this).find(".social-group i").css("opacity", "0"); 4753 }); 4754 if (device_screen_size != "device-xs") { 4755 $(".section-two-blocks .content").each(function () { 4756 var t = this; 4757 setTimeout(function () { 4758 var tmp = $(t).closest(".section-two-blocks"); 4759 if (isEmpty($(tmp).attr("data-parallax"))) $(tmp).css("height", $(t).outerHeight()); 4760 $(tmp).renderLoadedImgs(); 4761 }, 300); 4762 }); 4763 } 4764 4765 //WORDPRESS 4766 if ($("#wpadminbar").length) { 4767 if ($("header").hasClass("fixed-top")) $("header > .navbar").css("margin-top", "32px"); 4768 if ($("header").hasClass("side-menu-header")) $("header .side-menu-fixed,header .navbar-fixed-top").css("margin-top", "32px"); 4769 } 4770 $("header a").each(function () { 4771 if ($(this).attr("href") == current_url) { 4772 if ($(this).closest(".dropdown-menu").length) $(this).closest(".dropdown").addClass("active"); 4773 else $(this).closest("li").addClass("active"); 4774 } 4775 }); 4776 4777 //BACKGROUND VIDEO YT 4778 $("*[data-video-youtube]").each(function () { 4779 var id = $(this).attr("data-video-youtube"); 4780 if (id.indexOf("http:") != -1 || id.indexOf("www.you") != -1 || id.indexOf("youtu.be") != -1) { 4781 if (id.indexOf("?v=") != -1) id = id.substring(id.indexOf("v=") + 2); 4782 if (id.indexOf("youtu.be") != -1) id = id.substring(id.lastIndexOf("/") + 1); 4783 } 4784 var vq = $(this).attr("data-video-quality"); 4785 var pars = ""; 4786 if (!isEmpty(vq)) { 4787 if (vq == "hc-hd") pars += "&vq=hd1080"; 4788 } 4789 $(this).html('<iframe frameborder="0" allowfullscreen="0" src="https://www.youtube.com/embed/' + id + '?playlist=' + id + '&vq=hd1080&loop=1&start=0&autoplay=1&controls=0&showinfo=0&wmode=transparent&iv_load_policy=3&modestbranding=1&rel=0&enablejsapi=1&volume=0' + pars + '"></iframe>'); 4790 }); 4791 if ($(".background-page iframe").length) { 4792 $(".background-page iframe").css("height", $(window).height() + 300 + "px").css("width", $(window).width() + 300 + "px").css("margin-left", "
4792-150px"); 4793 } 4794 4795 //MENU - SEARCH C 4796 $(".btn-search").toggleClick(function () { 4797 $(this).closest(".search-box-menu").find(".search-box").css("opacity", 0).css("display", "block").showAnima("fade-bottom"); 4798 }, 4799 function () { 4800 $(this).closest(".search-box-menu").find(".search-box").css("display", "none"); 4801 }); 4802 4803 //MENU - SUBLINE 4804 function showSublineMenu(item) { 4805 var p = $(item).closest("header"); 4806 var t = $(p).find(".subline-bar ul:eq(" + $(item).index() + ")"); 4807 $(p).find(".subline-bar ul").css("display", "none"); 4808 $(t).css("opacity", "0").css("display", "block").animate({ "opacity": 1 }, 300); 4809 } 4810 $(".subline-menu > li").mouseover(function () { 4811 showSublineMenu(this); 4812 }); 4813 $(".subline-bar").on("mouseleave", function () { 4814 $(this).find("ul").css("display", "none"); 4815 }); 4816 if ($("header").hasClass("fixed-top")) $(".subline-bar").css("margin-top", $("header").height() + "px"); 4817 4818 //MENU - MINI TOP - SEARCH 4819 $(".navbar-mini .form-control").focusin(function () { 4820 $(this).toggleClass("focus"); 4821 }); 4822 $(".navbar-mini .form-control").focusout(function () { 4823 $(this).toggleClass("focus"); 4824 }); 4825 4826 //SCROLL METHODS 4827 setTimeout(function () { $(window).scroll(); }, 50); 4828 $("body").on("click", ".scroll-top", function () { 4829 $("html, body").stop().animate({ scrollTop: 0 }, '500', 'swing'); 4830 }); 4831 $("body").on("click", ".scroll-to", function () { 4832 var t = $(this).attr("data-scroll-to"); 4833 if (isEmpty(t)) t = $(this).attr("href"); 4834 try { 4835 $(t).scrollTo(); 4836 } catch (e) { } 4837 }); 4838 4839 //LOADER 4840 $('#preloader').fadeOut(300); 4841 4842 //PAGE SCROLL 4843 var cnt_title = $(".header-slider .container,.header-video .container,.header-title .container,.header-animation .container"); 4844 var parallax_title = $(".header-parallax"); 4845 var fixed_area = $(".fixed-area"); 4846 var data_anima = $("*[data-anima]"); 4847 var old_scroll = 0; 4848 $(window).scroll(function () { 4849 var po = window.pageYOffset; 4850 $(cnt_title).css("margin-top", po / 2).css("opacity", (100 / po < 1) ? (100 / po) : 1); 4851 4852 var scroll = $(window).scrollTop(); 4853 var go = true; 4854 var dh = $(document).height(); 4855 4856 if ($(parallax_title).length) { 4857 if (po > $(window).outerHeight()) $(parallax_title).css("visibility", "hidden"); 4858 else $(parallax_title).css("visibility", "visible"); 4859 $(parallax_title).find(".layer-parallax").css("margin-top", -1 * po / 2); 4860 } 4861 4862 //COMPONENT - FIXED AREA 4863 $(fixed_area).each(function (i) { 4864 if (arrFA.length && scroll > arrFA[i][0]) { 4865 $(this).css("top", arrFA[i][2] + "px").css("left", arrFA[i][1] + "px").css("position", "fixed").addClass("active"); 4866 } else $(this).css("top", "").css("position", "").css("left", "").removeClass("active"); 4867 4868 var _bottom = $(this).attr("data-bottom"); 4869 if (!isEmpty(_bottom)) { 4870 if (scroll + hh > dh - _bottom) { 4871 if (old_scroll < scroll) { 4872 $(this).animate({ 4873 "margin-top": "-" + _bottom 4874 }, 200); 4875 } 4876 } else { 4877 if (old_scroll > scroll) { 4878 $(this).clearQueue(); 4879 $(this).css("margin-top", "") 4880 } 4881 } 4882 } 4883 }); 4884 4885 //ON SCROLL FUNCTIONS 4886 if (scroll > 100 && go) { 4887 go = false; 4888 $(".scroll-hide").addClass('hidden'); 4889 $(".scroll-change").addClass("scroll-css");
4890 $(".scroll-show").addClass('showed'); 4891 $(".menu-transparent").removeClass("bg-transparent"); 4892 if (device_screen_size == "device-xs") $(".scroll-show-mobile").removeClass('hidden'); 4893 4894 if (scroll + hh > (dh - hh)) { 4895 $(".footer-parallax").css("opacity", 1); 4896 } else $(".footer-parallax").css("opacity", 0); 4897 } 4898 if (scroll < 100) { 4899 go = true; 4900 $(".scroll-hide").removeClass("hidden"); 4901 if (!$(".fp-enabled").length) $(".scroll-change").removeClass("scroll-css"); 4902 $(".scroll-show").removeClass('showed'); 4903 $(".menu-transparent").addClass("bg-transparent"); 4904 } 4905 4906 //SCROLL INTO VIEWPORT 4907 $(data_anima).each(function () { 4908 var tr = $(this).attr("data-trigger"); 4909 if (isEmpty(tr) || tr == "scroll") { 4910 if (isScrollView(this)) { 4911 if (!isEmpty($(this).attr("data-anima"))) initAnima(this); 4912 $(this).attr("data-anima", ""); 4913 } 4914 } 4915 }); 4916 old_scroll = scroll; 4917 }); 4918 }); 4919}(jQuery)); 4920 4921/*Name : TweeCool 4922 *version: 1.9 4923 *Description: Get the latest tweets from twitter. 4924 *Website: www.tweecool.com 4925 *Licence: No licence, feel free to do whatever you want. 4926 *Author: TweeCool 4927 */ 4928!function (t) { t.fn.extend({ tweecool: function (e) { function a(t) { var e = new Date, a = Date.parse(e), r = 1e3 * t, i = (a - r) / 1e3, o = 1, n = 60, s = 3600, _ = 86400, l = 604800, c = 2592e3, u = 31536e3; return i > o && n > i ? Math.round(i / o) + " second" + (Math.round(i / o) > 1 ? "s" : "") + " ago" : i >= n && s > i ? Math.round(i / n) + " minute" + (Math.round(i / n) > 1 ? "s" : "") + " ago" : i >= s && _ > i ? Math.round(i / s) + " hour" + (Math.round(i / s) > 1 ? "s" : "") + " ago" : i >= _ && l > i ? Math.round(i / _) + " day" + (Math.round(i / _) > 1 ? "s" : "") + " ago" : i >= l && c > i ? Math.round(i / l) + " week" + (Math.round(i / l) > 1 ? "s" : "") + " ago" : i >= c && u > i ? Math.round(i / c) + " month" + (Math.round(i / c) > 1 ? "s" : "") + " ago" : "over a year ago" } var r = { username: "tweecool", limit: 5, profile_image: !0, show_time: !0, show_media: !1, show_media_size: "thumb", show_actions: !1, action_reply_icon: "↵", action_retweet_icon: "∝", action_favorite_icon: "❤", profile_img_url: "profile", show_retweeted_text: !1 }, e = t.extend(r, e); return this.each(function () { var r, i, o, n, s, _ = e, l = t(this), c = t("<ul class='slides'>").appendTo(l), u = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi, h = /@+(\w+)/gi, w = /#+(\w+)/gi; t.getJSON("http://www.framework-y.com/tweecool/index.php/api/" + _.username + "/" + _.limit, function (e) { return e.errors || null == e ? (l.html("No tweets available."), !1) : void t.each(e.tweets, function (t, l) { r = _.profile_image ? "tweet" == _.profile_img_url ? '<a href="https://twitter.com/' + _.username + "/status/" + l.id_str + '" target="_blank"><img src="' + e.user.profile_image_url + '" alt="' + _.username + '" /></a>' : '<a href="https://twitter.com/' + _.username + '" target="_blank"><img src="' + e.user.profile_image_url + '" alt="' + _.username + '" /></a>' : "", o = _.show_time ? a(l.timestamp) : "", i = _.show_media && l.media_url ? '<a href="https://twitter.com/' + _.username + "/status/" + l.id_str + '" target="_blank"><img src="' + l.media_url + ":" + _.show_media_size + '" alt="' + _.username + '" class="media" /></a>' : "", _.show_actions ? (n = '<div class="action-box"><ul>', n += '<li class="ab_reply"><a title="Reply" href="https://twitter.com/intent/tweet?in_reply_to=' + l.id_str + '">' + _.action_reply_icon + "</a></li>", n += '<li class="ab_retweet"><a title="Retweet" href="https://twitter.com/intent/retweet?tweet_id=' + l.id_str + '">' + _.action_retweet_icon + "</a>" + ("" != l.retweet_count_f ? "<span>" + l.retweet_count_f + "</span>" : "") + "</li>", n += '<li class="ab_favorite"><a title="Favorite" href="https://twitter.com/intent/favorite?tweet_id=' + l.id_str + '">' + _.action_favorite_icon + "</a>" + ("" != l.favorite_count_f ? "<span>" + l.favorite_count_f + "</span>" : "") + "</li>", n += "</ul></div>") : n = "", s = _.show_retweeted_text && l.retweeted_text ? l.retweeted_text : l.text, c.append("<li>" + r + '<div class="tweets_txt">' + s.replace(u, '<a href="$1" target="_blank">$1</a>').replace(h, '<a href="https://twitter.com/$1" target="_blank">@$1</a>').replace(w, '<a href="https://twitter.com/search?q=%23$1" target="_blank">#$1</a>') + i + " <span>" + o + "</span>" + n + "</div></li>") }) }).fail(function (t, e, a) { l.html("No tweets available") }) }) } }) }(jQuery); 4929 4930 4931/* 4932 * Facebook Wall 4933 * https://github.com/thomasclausen/jquery-facebook-wall 4934 * Under MIT License 4935 */ 4936(function (n) { 4937 n.fn.facebook_wall = function (t) { 4938 function i(n) { return e(o(s(n))) } 4939 function e(n) { return n.replace(/(\r\n)|(\n\r)|\r|\n/g, "<br />") } 4940 function o(n) { return n.replace(/((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g, '<a href="$1" target="_blank">$1<\/a>') } 4941 function s(n) { return n.replace(/</g, "<").replace(/>/g, ">") } 4942 function f(n) { 4943 var r = new Date(n * 1e3), 4944 u = r.toGMTString(), 4945 i = Math.round((new Date).getTime() / 1e3) - n; return i < 10 ? " seconds ago" : i < 60 ? Math.round(i) + " seconds ago" : Math.round(i / 60) === 1 ? Math.round(i / 60) + " minuts ago" : Math.round(i / 60) < 60 ? Math.round(i / 60) + " minuts ago" : Math.round(i / 3600) === 1 ? Math.round(i / 3600) + " hour ago" : Math.round(i / 3600) < 24 ? Math.round(i / 3600) + " hours ago" : Math.round(i / 86400) === 1 ? Math.round(i / 86400) + " day ago" : Math.round(i / 86400) <= 10 ? Math.round(i / 86400) + " days ago" : t.text_labels.days[r.getDay()] + " " + r.getDate() + ". " + t.text_labels.months[r.getMonth()] + " " + r.getFullYear() 4946 } 4947 if (t.id !== undefined && t.access_token !== undefined) { 4948 t = n.extend({ 4949 id: "", access_token: "", limit: 15, timeout: 400, speed: 400, effect: "slide", locale: "en_US", avatar_size: "square", message_length: 200, show_guest_entries: !0, text_labels: { 4950 shares: { singular: "Shared % time", plural: "Shared % times" },
4951 likes: { singular: "% Like", plural: "% Likes" }, 4952 comments: { singular: "% comment", plural: "% comments" }, 4953 like: "Like", comment: "Write comment", share: "Share", days: ["Sunday", "Monday", "Thuesday", "Wednesday", "Thursday", "Friday", "Saturday"], months: ["januari", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"] 4954 }, 4955 on_complete: null 4956 }, 4957 t); 4958 var u = "https://graph.facebook.com/", h = t.show_guest_entries === !1 ? "posts" : "feed", c = u + t.id + "/" + h + "/?access_token=" + t.access_token + "&limit=" + t.limit + "&locale=" + t.locale + "&date_format=U&callback=?", r = n(this); 4959 r.append('<div class="facebook-loading"><\/div>'); 4960 n.getJSON(c, function (e) { 4961 n.each(e.data, function () { 4962 var n = "", h = "", c = "", s = "", o, e; if (this.is_hidden === !1) { 4963 if (this.type === "link" ? h = "type-link " : this.type === "photo" ? h = "type-photo " : this.type === "status" ? h = "type-status " : this.type === "video" && (h = "type-video "), 4964 n += '<li class="post ' + h + "avatar-size-" + t.avatar_size + '">', n += '<div class="meta-header">', n += '<div class="avatar"><a href="http://www.facebook.com/profile.php?id=' + this.from.id + '" target="_blank" title="' + this.from.name + '"><img src="' + (u + this.from.id + "/picture?type=" + t.avatar_size) + '" alt="' + this.from.name + '" /><\/a><\/div>', n += '<div class="author"><a href="http://www.facebook.com/profile.php?id=' + this.from.id + '" target="_blank" title="' + this.from.name + '">' + this.from.name + "<\/a><\/div>", n += '<div class="date">' + f(this.created_time) + "<\/div>", n += "<\/div>", this.message !== undefined ? n += t.message_length > 0 && this.message.length > t.message_length ? '<div class="message">' + i(this.message.substring(0, t.message_length)) + "...<\/div>" : '<div class="message">' + i(this.message) + "<\/div>" : this.story !== undefined && (n += t.message_length > 0 && this.story.length > t.message_length ? '<div class="story">' + i(this.story.substring(0, t.message_length)) + "...<\/div>" : '<div class="story">' + i(this.story) + "<\/div>"), 4965 (this.type === "link" || this.type === "photo" || this.type === "video") && (c = this.picture !== undefined || this.object_id !== undefined ? " border-left" : "", n += '<div class="media' + c + ' clearfix">', this.picture !== undefined ? n += '<div class="image"><a href="' + this.link + '" target="_blank"><img src="' + this.picture + '" /><\/a><\/div>' : this.object_id !== undefined && (n += '<div class="image"><a href="' + this.link + '" target="_blank"><img src="' + (u + this.object_id + "/picture?type=album") + '" /><\/a><\/div>'), 4966 n += '<div class="media-meta">', this.name !== undefined && (n += '<div class="name"><a href="' + this.link + '" target="_blank">' + this.name + "<\/a><\/div>"), 4967 this.caption !== undefined && (n += '<div class="caption">' + i(this.caption) + "<\/div>"), 4968 this.description !== undefined && (n += '<div class="description">' + i(this.description) + "<\/div>"), 4969 n += "<\/div>", n += "<\/div>"), 4970 n += '<div class="meta-footer">', n += '<time class="date" datetime="' + this.created_time + '" pubdate>' + f(this.created_time) + "<\/time>", this.likes !== undefined && this.likes.data !== undefined && (n += this.likes.count !== undefined ? this.likes.count === 1 ? '<span class="seperator">·<\/span><span class="likes">' + t.text_labels.likes.singular.replace("%", this.likes.count) + "<\/span>" : '<span class="seperator">·<\/span><span class="likes">' + t.text_labels.likes.plural.replace("%", this.likes.count) + "<\/span>" : this.likes.data.length === 1 ? '<span class="seperator">·<\/span><span class="likes">' + t.text_labels.likes.singular.replace("%", this.likes.data.length) + "<\/span>" : '<span class="seperator">·<\/span>
4970<span class="likes">' + t.text_labels.likes.plural.replace("%", this.likes.data.length) + "<\/span>"), 4971 this.comments !== undefined && this.comments.data !== undefined && (n += this.comments.data.length === 1 ? '<span class="seperator">·<\/span><span class="comments">' + t.text_labels.comments.singular.replace("%", this.comments.data.length) + "<\/span>" : '<span class="seperator">·<\/span><span class="comments">' + t.text_labels.comments.plural.replace("%", this.comments.data.length) + "<\/span>"), 4972 n += this.shares !== undefined ? this.shares.count === 1 ? '<span class="seperator">·<\/span><span class="shares">' + t.text_labels.shares.singular.replace("%", this.shares.count) + "<\/span>" : '<span class="seperator">·<\/span><span class="shares">' + t.text_labels.shares.plural.replace("%", this.shares.count) + "<\/span>" : '<span class="seperator">·<\/span><span class="shares">' + t.text_labels.shares.plural.replace("%", "0") + "<\/span>", s = this.id.split("_"), 4973 n += '<div class="actionlinks"><span class="like"><a href="http://www.facebook.com/permalink.php?story_fbid=' + s[1] + "&id=" + s[0] + '" target="_blank">' + t.text_labels.like + '<\/a><\/span><span class="seperator">·<\/span><span class="comment"><a href="http://www.facebook.com/permalink.php?story_fbid=' + s[1] + "&id=" + s[0] + '" target="_blank">' + t.text_labels.comment + '<\/a><\/span><span class="seperator">·<\/span><span class="share"><a href="http://www.facebook.com/permalink.php?story_fbid=' + s[1] + "&id=" + s[0] + '" target="_blank">' + t.text_labels.share + "<\/a><\/span><\/div>", n += "<\/div>", this.likes !== undefined && this.likes.data !== undefined) { } 4974 if (this.comments !== undefined && this.comments.data !== undefined) { for (n += '<ul class="comment-list">', e = 0; e < this.comments.data.length; e++) n += '<li class="comment">', n += '<div class="meta-header">', n += '<div class="avatar"><a href="http://www.facebook.com/profile.php?id=' + this.comments.data[e].from.id + '" target="_blank" title="' + this.comments.data[e].from.name + '"><img src="' + (u + this.comments.data[e].from.id + "/picture?type=" + t.avatar_size) + '" alt="' + this.comments.data[e].from.name + '" /><\/a><\/div>', n += '<div class="author"><a href="http://www.facebook.com/profile.php?id=' + this.comments.data[e].from.id + '" target="_blank" title="' + this.comments.data[e].from.name + '">' + this.comments.data[e].from.name + "<\/a><\/div>", n += '<time class="date" datetime="' + this.comments.data[e].created_time + '" pubdate>' + f(this.comments.data[e].created_time) + "<\/time>", n += "<\/div>", n += '<div class="message">' + i(this.comments.data[e].message) + "<\/div>", n += '<time class="date" datetime="' + this.comments.data[e].created_time + '" pubdate>' + f(this.comments.data[e].created_time) + "<\/time>", n += "<\/li>"; n += "<\/ul>" } 4975 n += "<\/li>"; r.append(n) 4976 } 4977 }) 4978 }).complete(function () { 4979 n(".facebook-loading", r).fadeOut(800, function () { 4980 n(this).remove(); 4981 for (var i = 0; i < r.children("li").length; i++) t.effect === "none" ? r.children("li").eq(i).show() : t.effect === "fade" ? r.children("li").eq(i).delay(i * t.timeout).fadeIn(t.speed) : r.children("li").eq(i).delay(i * t.timeout).slideDown(t.speed, function () { n(this).css("overflow", "visible") }) 4982 }); 4983 n.isFunction(t.on_complete) && t.on_complete.call(); 4984 }) 4985 } 4986 } 4987})(jQuery); 4988 4989 4990/* 4991* Pixor - Copyright (c) Federico Schiocchet - Pixor (www.pixor.it) - Framework Y (www.framework-y.com) 4992*/ 4993var facebook_token = "821948481218796|87fGsmQYzi0SBmJBp2bUv4dXTjM"; 4994(function ($) { 4995 $(document).ready(function () { 4996 $("*[data-social-id].social-feed-fb").each(function () { 4997 var t = this; 4998 var count = 4; 4999 var optionsString = $(t).attr("data-options"); 5000 var id = $(t).attr("data-social-id"); 5001 var token = $(t).attr("data-token"); 5002 if (isEmpty(token)) token = facebook_token; 5003 var optionsArr; 5004 var options = { 5005 access_token: token, 5006 limit: count, 5007 locale: "en_US", 5008 show_guest_entries: false 5009 } 5010 5011 if (!isEmpty(optionsString)) { 5012 optionsArr = optionsString.split(","); 5013 options = getOptionsString(optionsString, options); 5014 } 5015 5016 if (!isEmpty(id)) options["id"] = id; 5017 $(t).facebook_wall(options); 5018 5019 if ($(t).hasClass("flexslider")) { 5020 var timerVar; 5021 timerVar = self.setInterval(function () { 5022 if ($(t).find('li.post').length == options["limit"] && $(t).find('.facebook-loading').length == 0) { 5023 $(t).html("<ul class='slides'>" + $(t).html() + "</ul>"); 5024 5025 5026 $(t).find("li").each(function (index) { 5027 $(this).html("<div class='fb-container'>" + $(this).html() + '</div>'); 5028 5029 }); 5030 5031 $(t).initFlexSlider(); 5032 $(t).css("opacity", 1); 5033 clearInterval(timerVar); 5034 } 5035 }, 1000); 5036 } 5037 }); 5038 5039 $("*[data-social-id].social-feed-tw").each(function () { 5040 var t = this; 5041 var optionsString = $(t).attr("data-options"); 5042 var id = $(t).attr("data-social-id"); 5043 var optionsArr; 5044 var options = { 5045 limit: 4, 5046 show_media: true 5047 } 5048 5049 if (!isEmpty(optionsString)) { 5050 optionsArr = optionsString.split(","); 5051 options = getOptionsString(optionsString, options); 5052 } 5053 5054 if (!isEmpty(id)) options["username"] = id; 5055 $(t).tweecool(options); 5056 5057 if ($(t).hasClass("flexslider")) { 5058 var timerVar; 5059 timerVar = self.setInterval(function () { 5060 if ($(t).find('ul li').length) { 5061 $(t).initFlexSlider(); 5062 clearInterval(timerVar); 5063 } 5064 }, 1300); 5065 } 5066 }); 5067 }); 5068}(jQuery)); 5069 5070 5071 5072$(function () { 5073 $('[type="tel"]').mask('(99) 99999-9999') 5074}) 5075 5076$(function(){ 5077 // ADD a dropdown class 5078 $('.navbar-menu ul').each(function(i, tag) { 5079 $(tag).addClass('dropdown-menu') 5080 }); 5081 5082 // Fixed menu 5083 $('[data-toggle="dropdown"]').each(function(i, tag){ 5084 var menuName = ['área do aluno', 'quem somos']; 5085 if(menuName.includes(tag.innerText.toLowerCase())){ 5086 tag.removeAttribute('data-toggle') 5087 } 5088 }); 5089 if(location.pathname==='/quem-somos/'){ 5090 $('.header a[href^="/quem-somos/"]').on('click', function(event){ 5091 var hash = this.hash || '#header' 5092 , top = $(hash).offset().top || 0 5093 ; 5094 event.preventDefault(); 5095 $("body,html").stop(false, false).animate({ 5096 scrollTop: top 5097 }, 800); 5098 }) 5099 } 5100}
5100) 5101$(function () { 5102 $('.grid-list-title').each(function (i, t) { 5103 t.textContent = t.textContent.replace(/^protegido: /i, '') 5104 }) 5105 5106 $('.aluno-dashboard .bg-warning .h4').each(function (i, t) { 5107 t.textContent = t.textContent.replace(/^protegido: /i, '') 5108 }) 5109}) 5110 5111$(function () { 5112 $(window).on('click', function (e) { 5113 console.log(e.target.closest('.next')); 5114 if (e.target.closest('.page') || e.target.closest('.next') || e.target.closest('.last') || e.target.closest('.prev') || e.target.closest('.first')) { 5115 var top = $('.content').offset().top - $('.header > .navbar').innerHeight() 5116 $('html, body').stop().animate({ 5117 scrollTop: top 5118 }, 800) 5119 } 5120 }) 5121 $('.pagination').each(function (i, item) { 5122 var size = $('.grid-box .grid-item').size(), 5123 maxSize = parseInt($(this).attr('data-page-items')) 5124 5125 if (maxSize > size) { 5126 $(this).remove() 5127 } 5128 }) 5129}) 5130 5131$(function(){ 5132 if(device==='mobile'){ 5133 $('.header .navbar-menu a:not([data-toggle="dropdown"])').on('click', function(event){ 5134 $('.header .navbar-toggle').trigger('click'); 5135 }); 5136 } 5137}) 5138$(function(){ 5139 $('[data-search]').on('click', function(e){ 5140 $('.search').toggleClass('hidden'); 5141 }); 5142 $(window).on('keyup', function(e){ 5143 if(!$('.search').is('.hidden')){ 5144 var key = e.keyCode; 5145 if(key===27){ 5146 $('.search').addClass('hidden'); 5147 } 5148 } 5149 }); 5150}); 5151$(function(){ 5152 $('.show-quote').on('click', function () { 5153 $('.quote-2').toggleClass('show-quote-2') 5154 }); 5155}); 5156$(function(){ 5157 if (innerWidth <= 480) { 5158 $('.cover-bgMobile').css({ 5159 background: 'url(' + wp_theme + '/assets/img/foto-meditante-mobile.png)', 5160 backgroundPosition: '-85px 0' 5161 }) 5162 } 5163 5164 $('[data-scroll-menu] a').on('click', function(e){ 5165 e.preventDefault(); 5166 var id = this.hash 5167 , top = $(id).offset().top 5168 ; 5169 $(id).addClass('title-active'); 5170 $('html, body').stop().animate({ 5171 'scrollTop': top 5172 }, 900, 'swing', function () { 5173 window.location.hash = id; 5174 setTimeout(function(){ 5175 $(window).one('scroll', function(){ 5176 $(id).removeClass('title-active'); 5177 }) 5178 }, 1000); 5179 }); 5180 }); 5181 $('[data-mask]').each(function(i, tag){ 5182 $(tag).mask(tag.dataset.mask); 5183 }); 5184}) 5185 5186$(window).on('scroll', function (e) { 5187 var scrollCount = $(window).scrollTop() 5188 5189 document.querySelectorAll('[data-scroll-offset]').forEach(function (item) { 5190 var itens = item.offsetTop - window.innerHeight + window.innerHeight / 2; 5191 if (scrollCount >= itens) { 5192 item.classList.add('animatedActive'); 5193 } else { 5194 item.classList.remove('animatedActive'); 5195 } 5196 }) 5197}); 5198$(function(){ 5199 $('[data-submit-ajax]').on('submit', function(e){ 5200 e.preventDefault(); 5201 var t = $(this) 5202 , action = t.attr('action') 5203 , input = $(':text, [type="tel"], [type="email"], [type="url"], textarea, select', t) 5204 , submit = $(':submit', t) 5205 , submitText = submit.text() 5206 ; 5207 $.ajax({ 5208 url: action 5209 , data: t.serialize() 5210 , beforeSend: function(f){ 5211 input.attr({disabled: 'disabled'}); 5212 submit.text('Aguarde...'); 5213 } 5214 , success: function(f){ 5215 input.val('') 5216 $('.success-box', t).removeClass('d-n'); 5217 } 5218 , complete: function(f){ 5219 input.removeAttr('disabled'); 5220 submit.text(submitText); 5221 } 5222 }) 5223 }); 5224})
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.