vendor: 87,462 bytes, lines 1-2
1/*! jQuery v3.7.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.0",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i)return e.textContent;if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=ce.text(t);return n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},R=function(){V()},M=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&z(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function X(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&M(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function U(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function z(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",R),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:X(!1),disabled:X(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:U(function(){return[0]}),last:U(function(e,t){return[t-1]}),eq:U(function(e,t,n){return[n<0?n+t:n]}),even:U(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:U(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:U(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:U(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&z(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&z(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var R=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)R(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},M=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(M,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,X=new B,U=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,z=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:U.test(i)?JSON.parse(i):i)}catch(e){}X.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return X.hasData(e)||_.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=X.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){X.set(this,n)}):R(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=X.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){X.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Me(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);X.hasData(e)&&(o=X.access(e),a=ce.extend({},o),X.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Re,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return R(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return R(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),Xe=/^--/,Ue=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},ze=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=Xe.test(t),u=e.style;return(n=n||Ue(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Ue(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=Xe.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return Xe.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):ze(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Ue(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return R(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ue(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return R(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return R(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Rt=/%20/g,Mt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},Xt="*/".concat("*"),Ut=C.createElement("a");function zt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Ut.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:zt(Bt),ajaxTransport:zt(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Ut.protocol+"//"+Ut.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Mt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Rt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Xt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return R(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
3 4/*! jQuery Migrate v1.4.1 | (c) jQuery Foundation and other contributors | jquery.org/license */ 5"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],b.console&&b.console.log&&b.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("<input/>",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr( props, pass ) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*</,u=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,v=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,w=/^([^<]*)(<[\w\W]+>)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(
5a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g<e.length;)e[g++].guid=f;return this.click(h)},a.fn.live=function(b,c,e){return d("jQuery.fn.live() is deprecated"),F?F.apply(this,arguments):(a(this.context).on(b,this.selector,c,e),this)},a.fn.die=function(b,c){return d("jQuery.fn.die() is deprecated"),G?G.apply(this,arguments):(a(this.context).off(b,this.selector||"**",c),this)},a.event.trigger=function(a,b,c,e){return c||J.test(a)||d("Global events are undocumented and deprecated"),D.call(this,a,b,c||document,e)},a.each(I.split("|"),function(b,c){a.event.special[c]={setup:function(){var b=this;return b!==document&&(a.event.add(document,c+"."+a.guid,function(){a.event.trigger(c,Array.prototype.slice.call(arguments,1),b,!0)}),a._data(this,c,a.guid++)),!1},teardown:function(){return this!==document&&a.event.remove(document,c+"."+a._data(this,c)),!1}}}),a.event.special.ready={setup:function(){this===document&&d("'ready' event is deprecated")}};var M=a.fn.andSelf||a.fn.addBack,N=a.fn.find;if(a.fn.andSelf=function(){return d("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),M.apply(this,arguments)},a.fn.find=function(a){var b=N.apply(this,arguments);return b.context=this.context,b.selector=this.selector?this.selector+" "+a:a,b},a.Callbacks){var O=a.Deferred,P=[["resolve","done",a.Callbacks("once memory"),a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory"),a.Callbacks("memory")]];a.Deferred=function(b){var c=O(),e=c.promise();return c.pipe=e.pipe=function(){var b=arguments;return d("deferred.pipe() is deprecated"),a.Deferred(function(d){a.each(P,function(f,g){var h=a.isFunction(b[f])&&b[f];c[g[1]](function(){var b=h&&h.apply(this,arguments);b&&a.isFunction(b.promise)?b.promise().done(d.resolve).fail(d.reject).progress(d.notify):d[g[0]+"With"](this===e?d.promise():this,h?[b]:arguments)})}),b=null}).promise()},c.isResolved=function(){return d("deferred.isResolved is deprecated"),"resolved"===c.state()},c.isRejected=function(){return d("deferred.isRejected is deprecated"),"rejected"===c.state()},b&&b.call(c,c),c}}}(jQuery,window); 6/** 7 * jQuery Unveil 8 * A very lightweight jQuery plugin to lazy load images 9 * http://luis-almeida.github.com/unveil 10 * 11 * Licensed under the MIT license. 12 * Copyright 2013 LuÃs Almeida 13 * https://github.com/luis-almeida 14 */ 15 16;(function($) { 17 18 $.fn.unveil = function(threshold, callback) { 19 20 var $w = $(window), 21 th = threshold || 0, 22 retina = window.devicePixelRatio > 1, 23 attrib = retina? "data-src-retina" : "data-src", 24 images = this, 25 loaded; 26 27 this.one("unveil", function() { 28 var source = this.getAttribute(attrib); 29 source = source || this.getAttribute("data-src"); 30 if (source) { 31 this.setAttribute("src", source); 32 if (typeof callback === "function") callback.call(this); 33 } 34 }); 35 36 function unveil() { 37 var inview = images.filter(function() { 38 var $e = $(this); 39 if ($e.is(":hidden")) return; 40 41 var wt = $w.scrollTop(), 42 wb = wt + $w.height(), 43 et = $e.offset().top, 44 eb = et + $e.height(); 45 46 return eb >= wt - th && et <= wb + th; 47 }); 48 49 loaded = inview.trigger("unveil"); 50 images = images.not(loaded); 51 } 52 53 $w.on("scroll.unveil resize.unveil lookup.unveil", unveil); 54 55 unveil(); 56 57 return this; 58 59 }; 60 61})(window.jQuery || window.Zepto); 62 63!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.SimpleLightbox=e()}(this,function(){function e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}return t}function i(t,e){t&&e&&(t.className+=" "+e)}function s(t,e){t&&e&&(t.className=t.className.replace(new RegExp("(\\s|^)"+e+"(\\s|$)")," ").trim())}function o(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.childNodes[0]}function l(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function r(t){this.init.apply(this,arguments)}return r.defaults={elementClass:"",elementLoadingClass:"slbLoading",htmlClass:"slbActive",closeBtnClass:"",nextBtnClass:"",prevBtnClass:"",loadingTextClass:"",closeBtnCaption:"Close",nextBtnCaption:"Next",prevBtnCaption:"Previous",loadingCaption:"Loading...",bindToItems:!0,closeOnOverlayClick:!0,closeOnEscapeKey:!0,nextOnImageClick:!0,showCaptions:!0,captionAttribute:"title",urlAttribute:"href",startAt:0,loadingTimeout:100,appendTarget:"body",beforeSetContent:null,beforeClose:null,afterClose:null,beforeDestroy:null,afterDestroy:null,videoRegex:new RegExp(/youtube.com|vimeo.com/)},e(r.prototype,{init:function(n){n=this.options=e({},r.defaults,n);var t,i=this;n.$items&&(t=n.$items.get()),n.elements&&(t=[].slice.call("string"==typeof n.elements?document.querySelectorAll(n.elements):n.elements)),this.eventRegistry={lightbox:[],thumbnails:[]},this.items=[],this.captions=[],t&&t.forEach(function(t,e){i.items.push(t.getAttribute(n.urlAttribute)),i.captions.push(t.getAttribute(n.captionAttribute)),n.bindToItems&&i.addEvent(t,"click",function(t){t.preventDefault(),i.showPosition(e)},"thumbnails")}),n.items&&(this.items=n.items),n.captions&&(this.captions=n.captions)},addEvent:function(t,e,n,i){return this.eventRegistry[i||"lightbox"].push({element:t,eventName:e,callback:n}),t.addEventListener(e,n),this},removeEvents:function(t){return this.eventRegistry[t].forEach(function(t){t.element.removeEventListener(t.eventName,t.callback)}),this.eventRegistry[t]=[],this},next:function(){return this.showPosition(this.currentPosition+1)},prev:function(){return this.showPosition(this.currentPosition-1)},normalizePosition:function(t){return t>=this.items.length?t=0:t<0&&(t=this.items.length-1),t},showPosition:function(t){var e=this.normalizePosition(t);return void 0!==this.currentPosition&&(this.direction=e>this.currentPosition?"next":"prev"),this.currentPosition=e,this.setupLightboxHtml().prepareItem(this.currentPosition,this.setContent).show()},loading:function(t){var e=this,n=this.options;t?this.loadingTimeout=setTimeout(function(){i(e.$el,n.elementLoadingClass),e.$content.innerHTML='<p class="slbLoadingText '+n.loadingTextClass+'">'+n.loadingCaption+"</p>",e.show()},n.loadingTimeout):(s(this.$el,n.elementLoadingClass),clearTimeout(this.loadingTimeout))},prepareItem:function(t,e){var n=this,i=this.items[t];if(this.loading(!0),this.options.videoRegex.test(i))e.call(n,o('<div class="slbIframeCont"><iframe class="slbIframe" style="border:0;" allowfullscreen src="'+i+'"></iframe></div>'));else{var s=o('<div class="slbImageWrap"><img class="slbImage" src="'+i+'" /></div>');this.$currentImage=s.querySelector(".slbImage"),this.options.showCaptions&&this.captions[t]&&s.appendChild(o('<div class="slbCaption">'+this.captions[t]+"</div>")),this.loadImage(i,function(){n.setImageDimensions(),e.call(n,s),n.loadImage(n.items[n.normalizePosition(n.currentPosition+1)])})}return this},loadImage:function(t,e){if(!this.options.videoRegex.test(t)){var n=new Image;e&&(n.onload=e),n.src=t}},setupLightboxHtml:function(){var t=this.options;return this.$el||(this.$el=o('<div class="slbElement '+t.elementClass+'"><div class="slbOverlay"></div><div class="slbWrapOuter"><div class="slbWrap"><div class="slbContentOuter"><div class="slbContent"></div><button type="button" title="'+t.closeBtnCaption+'" class="slbCloseBtn '+t.closeBtnClass+'">Ã</button>'+(1<this.items.length?'<div class="slbArrows"><button type="button" title="'+t.prevBtnCaption+'" class="prev slbArrow'+t.prevBtnClass+'">'+t.prevBtnCaption+'</button><button type="button" title="'+t.nextBtnCaption+'" class="next slbArrow'+t.nextBtnClass+'">'+t.nextBtnCaption+"</button></div>":"")+"</div></div></div></div>"),this.$content=this.$el.querySelector(".slbContent")),this.$content.innerHTML="",this},show:function(){return this.modalInDom||(document.querySelector(this.options.appendTarget).appendChild(this.$el),i(document.documentElement,this.options.htmlClass),this.setupLightboxEvents(),this.modalInDom=!0),this},setContent:function(t){var e="string"==typeof t?o(t):t;return this.loading(!1),this.setupLightboxHtml(),s(this.$content,"slbDirectionNext"),s(this.$content,"slbDirectionPrev"),this.direction&&i(this.$content,"next"===this.direction?"slbDirectionNext":"slbDirectionPrev"),this.options.beforeSetContent&&this.options.beforeSetContent(e,this),this.$content.appendChild(e),this},setImageDimensions:function(){this.$currentImage&&(this.$currentImage.style.maxHeight=("innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight)+"px")},setupLightboxEvents:function(){var n=this;return this.eventRegistry.lightbox.length||this.addEvent(this.$el,"click",function(t){var e=t.target;l(e,".slbCloseBtn")||n.options.closeOnOverlayClick&&l(e,".slbWrap")?n.close():l(e,".slbArrow")?l(e,".next")?n.next():n.prev():n.options.nextOnImageClick&&1<n.items.length&&l(e,".slbImage")&&n.next()}).addEvent(document,"keyup",function(t){n.options.closeOnEscapeKey&&27===t.keyCode&&n.close(),1<n.items.length&&((39===t.keyCode||68===t.keyCode)&&n.next(),(37===t.keyCode||65===t.keyCode)&&n.prev())}).addEvent(window,"resize",function(){n.setImageDimensions()}),this},close:function(){this.modalInDom&&(this.runHook("beforeClose"),this.removeEvents("lightbox"),this.$el&&this.$el.parentNode.removeChild(this.$el),s(document.documentElement,this.options.htmlClass),this.modalInDom=!1,this.runHook("afterClose")),this.direction=void 0,this.currentPosition=this.options.startAt},destroy:function(){this.close(),this.runHook("beforeDestroy"),this.removeEvents("thumbnails"),this.runHook("afterDestroy")},runHook:function(t){this.options[t]&&this.options[t](this)}}),r.open=function(t){var e=new r(t);return t.content?e.setContent(t.content).show():e.showPosition(e.options.startAt)},r.registerAsJqueryPlugin=function(i){i.fn.simpleLightbox=function(t){var e,n=this;return this.each(function(){i.data(this,"simpleLightbox")||(e=e||new r(i.extend({},t,{$items:n})),i.data(this,"simpleLightbox",e))})},i.SimpleLightbox=r},"undefined"!=typeof window&&window.jQuery&&r.registerAsJqueryPlugin(window.jQuery),r});
vendor: 43,881 bytes, lines 64-81
64/* 65 _ _ _ _ 66 ___| (_) ___| | __ (_)___ 67/ __| | |/ __| |/ / | / __| 68\__ \ | | (__| < _ | \__ \ 69|___/_|_|\___|_|\_(_)/ |___/ 70 |__/ 71 72 Version: 1.9.0 73 Author: Ken Wheeler 74 Website: http://kenwheeler.github.io 75 Docs: http://kenwheeler.github.io/slick 76 Repo: http://github.com/kenwheeler/slick 77 Issues: http://github.com/kenwheeler/slick/issues 78 79 */ 80(function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)})(function(i){"use strict";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(e).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,"undefined"!=typeof document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=t++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}var t=0;return e}(),e.prototype.activateADA=function(){var i=this;i.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):o===!0?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),s.options.vertical===!1?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this,o=t.getNavTarget();null!==o&&"object"==typeof o&&o.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};e.options.fade===!1?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1===0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||l===!1||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!==0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t,o=this;if(e=o.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var s in e){if(i<e[s]){i=t;break}t=e[s]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){var e=this;e.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;e.cssTransitions===!1?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(":focus")&&(e.focussed=!0,e.autoPlay())},0)}).on("blur.slick","*",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var i=this;return i.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!==0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,n.options.centerMode===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){var e=this;return e.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(e.options.infinite===!1?i=e.slideCount:(t=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s,n=this;return s=n.options.centerMode===!0?Math.floor(n.$list.width()/2):0,o=n.swipeLeft*-1+s,n.options.swipeToSlide===!0?(n.$slideTrack.find(".slick-slide").each(function(e,s){var r,l,d;if(r=i(s).outerWidth(),l=s.offsetLeft,n.options.centerMode!==!0&&(l+=r/2),d=l+r,o<d)return t=s,!1}),e=Math.abs(i(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){var t=this;t.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),s!==-1){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===i.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||r.$slider.attr("data-sizes"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,t])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,t])},n.src=t})}var t,o,s,n,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),n=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,n<=r.slideCount&&n++)),t=r.$slider.find(".slick-slide").slice(s,n),"anticipated"===r.options.lazyLoad)for(var l=s-1,d=n,a=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)l<0&&(l=r.slideCount-1),t=t.add(a.eq(l)),t=t.add(a.eq(d)),l--,d++;e(t),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(".slick-slide"),e(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(o)):0===r.currentSlide&&(o=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),e(o))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var i=this;i.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;if(!t.unslicked&&(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var o=i(t.$slides.get(t.currentSlide));o.attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var i=this;i.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),r=document.createElement("img"),r.onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;return"boolean"==typeof i?(e=i,i=e===!0?0:o.slideCount-1):i=e===!0?--i:i,!(o.slideCount<1||i<0||i>o.slideCount-1)&&(o.unload(),t===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},e.prototype.setCSS=function(i){var e,t,o=this,s={};o.options.rtl===!0&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,o.transformsEnabled===!1?o.$slideTrack.css(s):(s={},o.cssTransitions===!1?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,t.options.rtl===!0?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":"undefined"!=typeof arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=i.options.vertical===!0?"top":"left", 81"top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&i.animType!==!1&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&i.animType!==!1},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),n.options.centerMode===!0){var r=n.options.slidesToShow%2===0?1:0;e=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));return s||(s=0),t.slideCount<=t.options.slidesToShow?void t.slideHandler(s,!1,!0):void t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===i))return e===!1&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(i<0||i>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):a.options.infinite===!1&&a.options.centerMode===!0&&(i<0||i>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!==0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!==0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=a.getNavTarget(),l=l.slick("getSlick"),l.slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide)),a.updateDots(),a.updateArrows(),a.options.fade===!0?(t!==!0?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight()):void(t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),o=Math.round(180*t/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0?s.options.rtl===!1?"left":"right":o<=360&&o>=315?s.options.rtl===!1?"left":"right":o>=135&&o<=225?s.options.rtl===!1?"right":"left":s.options.verticalSwiping===!0?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(o.touchObject.edgeHit===!0&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&i.type.indexOf("mouse")!==-1))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.options.vertical===!1?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,l.options.verticalSwiping===!0&&(l.swipeLeft=e+o*s),l.options.fade!==!0&&l.options.touchMove!==!1&&(l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void(t.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i,e=this;i=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||"undefined"==typeof s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),"undefined"!=typeof t)return t;return o}});
81 82const revampHeaderutils = {}; 83 84const LOGIN_STATUS_COOKIE = 'mmu_ls'; 85const USER_LOGGED_IN = 'userLoggedIn'; 86const login_userName = 'mmu_pn'; 87 88// signin 89revampHeaderutils.signIn = function () { 90 $('.sign-in-button').on("click", function (e) { 91 e.preventDefault(); 92 ssoIn(false); 93 }); 94} 95 96// cookies 97revampHeaderutils.getCookieByName = function (cookieName) { 98 const cookie = document.cookie; 99 try { 100 let cookieValue = cookie.split(cookieName + '=')[1].split(';')[0].replace(/\+/g, '%20'); 101 return decodeURIComponent(cookieValue); 102 } catch (e) { 103 console.log('Error reading cookie'); 104 } 105} 106 107// username 108revampHeaderutils.getUserName = function () { 109 let userName = revampHeaderutils.getCookieByName(login_userName); 110 if (userName) { 111 $('.cmp-login-block .userName').text(decodeURIComponent(userName).trim()); 112 } 113} 114 115// myaccount check 116revampHeaderutils.myAccount = function () { 117 if (revampHeaderutils.isLoggedIn()) { 118 $(".cmp-login-block__before-login").hide(); 119 $(".cmp-login-block__after-login").show(); 120 } 121} 122 123revampHeaderutils.isLoggedIn = function () { 124 const loginStatus = revampHeaderutils.getCookieByName(LOGIN_STATUS_COOKIE); 125 return loginStatus === USER_LOGGED_IN; 126} 127 128revampHeaderutils.modalPopup = function () { 129 let appendthis = ("<div class='modal-overlay js-modal-close'></div>"); 130 131 $(".open-modal[data-target='signoutConfrm']").click(function (e) { 132 e.preventDefault(); 133 $(".cmp-modal-box, .modal-overlay").fadeOut(200, function () { 134 $('body').removeClass("overflow-hidden"); 135 }).removeClass("active"); 136 let modalBox = $(this).attr('data-target'); 137 $('[data-id=' + modalBox + ']').append(appendthis); 138 $(".modal-overlay").fadeIn(200); 139 $('body').addClass("overflow-hidden"); 140 $('[data-id=' + modalBox + ']').fadeIn($(this).data()).addClass("active"); 141 }); 142 $('body').on("click", ".js-modal-close, .modal-overlay", function () { 143 $(".cmp-modal-box, .modal-overlay").fadeOut(200, function () { 144 $(".modal-overlay").remove(); 145 $('body').removeClass("overflow-hidden"); 146 }).removeClass("active"); 147 }); 148} 149 150 151// Call functions when the document is ready 152$(function () { 153 try { 154 revampHeaderutils.signIn(); 155 revampHeaderutils.myAccount(); 156 revampHeaderutils.getUserName(); 157 revampHeaderutils.modalPopup(); 158 } catch (error) { } 159}); 160const mmlog_path = '/sso'; 161const login_stat = 'mmu_ls'; 162const login_un = 'mmu_pn'; 163const last_rf_time = 'mmu_lsrfd'; 164const rf_int = 'mmu_rfinv'; 165const rf_Int_default = 1500000; 166let rfTknTimer; 167let sso_auth = { 168 isLoggedIn: function() { 169 let loginStatus = getCookieVal(login_stat); 170 let loggedIn = false; 171 if (loginStatus && loginStatus === 'userLoggedIn') { 172 loggedIn = true; 173 } 174 return loggedIn; 175 } 176} 177 178function getCookieVal(v){ 179 let r = document.cookie.match('(^|[^;]+)\\s*' + v + '\\s*=\\s*([^;]+)'); 180 r = r ? r.pop(): undefined; 181 return r 182} 183 184function ssoIn(signUpFlag) { 185 let currLoc = encodeURIComponent(window.location.href); 186 window.location.href = mmlog_path + "?a=in&pageURL=" + currLoc + "&signUpFlag=" + signUpFlag; 187} 188 189 190function ssoOut(cl) { 191 let currLoc; 192 let randNo = Math.floor((Math.random() * 1000000) + 1); 193 if(cl){ 194 currLoc = encodeURIComponent(cl); 195 }else{ 196 currLoc = encodeURIComponent(window.location.href); 197 } 198 window.location.href = mmlog_path+"?a=out&pageURL="+currLoc+"&random="+randNo; 199} 200 201function rfAccessTkn() { 202 if(rfTknTimer) { 203 clearInterval(rfTknTimer); 204 } 205} 206 207function invokeRfTknReq() { 208 let rfInt = getCookieVal(rf_int); 209 let rfIntVal = 0; 210 if(rfInt) { 211 rfIntVal = parseInt(rfInt); 212 } 213 let lastRfTime = getCookieVal(last_rf_time); 214 if(lastRfTime) { 215 let lastRfTimeVal = parseInt(lastRfTime); 216 let cTimeVal = 0; 217 let cDate = new Date(); 218 if(cDate) { 219 let cTimeInMs = cDate.getTime(); 220 if(cTimeInMs) { 221 cTimeVal = parseInt(cTimeInMs); 222 } 223 } 224 let timeDiff = cTimeVal - (lastRfTimeVal - 60000); 225 if(timeDiff >= rfIntVal) { 226 rfAccessTkn(); 227 } else { 228 rfIntVal = rfIntVal - timeDiff; 229 } 230 } 231 232 if(!rfIntVal) { 233 rfIntVal = rf_Int_default; 234 } 235 236 if(rfTknTimer) { 237 clearInterval(rfTknTimer); 238 } 239 rfTknTimer = setInterval('rfAccessTkn()', rfIntVal); 240} 241 242function setRfTknInt() { 243 let rfInt = getCookieVal(rf_int); 244 if(!rfInt) { 245 rfInt = rf_Int_default; 246 } 247 rfTknTimer = setInterval('rfAccessTkn()', rfInt); 248} 249 250revampHeaderutils.signOut = function(){ 251 $(".sign-out-button").on("click", function(e){ 252 ssoOut(); 253 }); 254 $(".sso-signout-button").on("click", function(e){ 255 ssoOut(); 256 }); 257 258 if(sso_auth.isLoggedIn()) { 259 invokeRfTknReq(); 260 } 261} 262 263// Function to get a cookie by name 264function getCookie(cookieName) { 265 const name = cookieName + "="; 266 const decodedCookie = decodeURIComponent(document.cookie);
266 // Decode the cookie string and split it into individual cookies 267 const cookieArray = decodedCookie.split(';'); 268 for (const cookie of cookieArray) { 269 // Trim leading and trailing spaces from the cookie string 270 const trimmedCookie = cookie.trim(); 271 // Check if the cookie name matches the target name 272 if (trimmedCookie.indexOf(name) === 0) { 273 return trimmedCookie.substring(name.length); 274 } 275 } 276 return null; 277} 278 279$(function () { 280 revampHeaderutils.signOut() 281}); 282"use strict"; 283const revampCustomutils = {}; 284(function ($) { 285 // slider scripts 286 // Debounced single getDeviceType call â shared across all safeSlick inits. 287 // This replaces the per-function getDeviceType() calls that used to fire 288 // once per slider type on the same tick, running the same image-src loop 289 // repeatedly over the same lazyload elements. 290 let _deviceTypeTimer = null; 291 function scheduleGetDeviceType() { 292 if (typeof getDeviceType !== "function") return; 293 clearTimeout(_deviceTypeTimer); 294 // 250ms covers both the immediate init path and safeSlick's 220ms retry. 295 _deviceTypeTimer = setTimeout(getDeviceType, 250); 296 } 297 298 function safeSlick(selectorOrEl, options) { 299 const $el = selectorOrEl instanceof $ ? selectorOrEl : $(selectorOrEl); 300 if (!$el || !$el.length) return; 301 $el.each(function () { 302 const $single = $(this); 303 if ($single.hasClass("slick-initialized")) return; 304 if ($single.children().length < 2) return; 305 const rect = this.getBoundingClientRect(); 306 // prevent init on unstable layout 307 if (!$single.is(":visible") || rect.width === 0) { 308 setTimeout(() => safeSlick($single, options), 220); 309 return; 310 } 311 requestAnimationFrame(() => { 312 requestAnimationFrame(() => { 313 // Guard: element may have been removed or detached between the 314 // visibility check above and this rAF callback (e.g. tab switch, 315 // lazy content re-render). Slick calls classList.add() on child 316 // nodes and throws "Cannot read properties of null (reading 'add')" 317 // when those nodes are gone. 318 if (!document.contains($single[0])) return; 319 if (!$single.is(":visible") || $single.width() === 0) return; 320 if ($single.hasClass("slick-initialized")) return; 321 try { 322 $single.slick( 323 Object.assign( 324 { 325 waitForAnimate: false, 326 pauseOnFocus: false, 327 }, 328 options, 329 ), 330 ); 331 // fix opacity bug immediately 332 $single.find(".slick-track").css("opacity", 1); 333 // Single debounced call covers all sliders initialised in the 334 // same tick (or via the 220ms retry) without redundant loops. 335 scheduleGetDeviceType(); 336 } catch (err) { 337 console.warn("[safeSlick] init prevented", err); 338 } 339 }); 340 }); 341 }); 342 } 343 344 function initLatestIssueSlider(selectorOrEl) { 345 safeSlick(selectorOrEl, { 346 dots: true, 347 arrows: false, 348 infinite: false, 349 speed: 300, 350 slidesToShow: 1, 351 slidesToScroll: 1, 352 autoplay: true, 353 autoplaySpeed: 5000, 354 initialSlide: 0, 355 }); 356 } 357 358 function initWeekRanking(selectorOrEl) { 359 safeSlick(selectorOrEl, { 360 dots: true, 361 arrows: false, 362 infinite: false, 363 speed: 300, 364 slidesToShow: 4, 365 slidesToScroll: 4, 366 autoplay: true, 367 autoplaySpeed: 5000, 368 initialSlide: 0, 369 responsive: [ 370 { 371 breakpoint: 1024, 372 settings: { 373 slidesToShow: 3, 374 slidesToScroll: 2, 375 }, 376 }, 377 { 378 breakpoint: 575, 379 settings: { 380 slidesToShow: 2, 381 slidesToScroll: 1, 382 }, 383 }, 384 385 { 386 breakpoint: 350, 387 settings: { 388 slidesToShow: 1, 389 slidesToScroll: 1, 390 }, 391 }, 392 ], 393 }); 394 getDeviceType(); 395 } 396 397 function initCarouselSlider(selectorOrEl) { 398 const $el = selectorOrEl instanceof $ ? selectorOrEl : $(selectorOrEl); 399 $el.not('.slick-initialized').one('init', function() { 400 lazyLoadScreenWidth(this); 401 }); 402 safeSlick(selectorOrEl, { 403 dots: true, 404 arrows: true, 405 infinite: false, 406 speed: 300, 407 slidesToShow: 4, 408 slidesToScroll: 4, 409 autoplay: true, 410 autoplaySpeed: 5000, 411 initialSlide: 0, 412 responsive: [ 413 { 414 breakpoint: 1024, 415 settings: { 416 slidesToShow: 4, 417 slidesToScroll: 4, 418 }, 419 }, 420 { 421 breakpoint: 992, 422 settings: { 423 slidesToShow: 3, 424 slidesToScroll: 3,
425 arrows: false, 426 }, 427 }, 428 429 { 430 breakpoint: 768, 431 settings: { 432 slidesToShow: 2.5, 433 slidesToScroll: 1, 434 arrows: false, 435 }, 436 }, 437 438 { 439 breakpoint: 640, 440 settings: { 441 slidesToShow: 2, 442 slidesToScroll: 1, 443 arrows: false, 444 }, 445 }, 446 { 447 breakpoint: 575, 448 settings: { 449 slidesToShow: 1.5, 450 slidesToScroll: 1, 451 arrows: false, 452 }, 453 }, 454 { 455 breakpoint: 400, 456 settings: { 457 slidesToShow: 1.3, 458 slidesToScroll: 1, 459 arrows: false, 460 }, 461 }, 462 ], 463 }); 464 } 465 466 revampCustomutils.initCarouselSlider = initCarouselSlider; 467 468 function initVoiceCarouselSlider(selectorOrEl) { 469 safeSlick(selectorOrEl, { 470 dots: true, 471 arrows: true, 472 infinite: false, 473 speed: 300, 474 slidesToShow: 4, 475 slidesToScroll: 4, 476 autoplay: true, 477 autoplaySpeed: 5000, 478 initialSlide: 0, 479 responsive: [ 480 { 481 breakpoint: 1024, 482 settings: { 483 slidesToShow: 4, 484 slidesToScroll: 4, 485 }, 486 }, 487 { 488 breakpoint: 992, 489 settings: { 490 slidesToShow: 3, 491 slidesToScroll: 3, 492 arrows: false, 493 }, 494 }, 495 496 { 497 breakpoint: 768, 498 settings: { 499 slidesToShow: 2.5, 500 slidesToScroll: 1, 501 arrows: false, 502 }, 503 }, 504 505 { 506 breakpoint: 640, 507 settings: { 508 slidesToShow: 2, 509 slidesToScroll: 1, 510 arrows: false, 511 }, 512 }, 513 { 514 breakpoint: 575, 515 settings: { 516 slidesToShow: 1.5, 517 slidesToScroll: 1, 518 arrows: false, 519 }, 520 }, 521 { 522 breakpoint: 400, 523 settings: { 524 slidesToShow: 1.3, 525 slidesToScroll: 1, 526 arrows: false, 527 }, 528 }, 529 ], 530 }); 531 getDeviceType(); 532 } 533 534 function initCategeoryCarouselSlider(selectorOrEl) { 535 const $el = selectorOrEl instanceof $ ? selectorOrEl : $(selectorOrEl); 536 $el.not('.slick-initialized').one('init', function() { 537 lazyLoadScreenWidth(this); 538 }); 539 safeSlick(selectorOrEl, { 540 dots: true, 541 arrows: true, 542 infinite: false, 543 speed: 300, 544 slidesToShow: 4, 545 slidesToScroll: 4, 546 autoplay: true, 547 autoplaySpeed: 5000, 548 initialSlide: 0, 549 responsive: [ 550 { 551 breakpoint: 1024, 552 settings: { 553 slidesToShow: 4, 554 slidesToScroll: 4, 555 }, 556 }, 557 { 558 breakpoint: 992, 559 settings: { 560 slidesToShow: 2.5, 561 slidesToScroll: 1, 562 arrows: false, 563 }, 564 }, 565 { 566 breakpoint: 640, 567 settings: { 568 slidesToShow: 1.5, 569 slidesToScroll: 1, 570 arrows: false, 571 }, 572 }, 573 { 574 breakpoint: 375, 575 settings: { 576 slidesToShow: 1.3, 577 slidesToScroll: 1, 578 arrows: false, 579 }, 580 }, 581 ], 582 }); 583 getDeviceType(); 584 } 585 586 function initMagazineCarouselSlider(selectorOrEl) { 587 safeSlick(selectorOrEl, { 588 dots: true, 589 arrows: true, 590 infinite: false, 591 speed: 300, 592 slidesToShow: 5, 593 slidesToScroll: 5, 594 autoplay: true, 595 autoplaySpeed: 5000, 596 initialSlide: 0, 597 responsive: [ 598 { 599 breakpoint: 1200, 600 settings: { 601 slidesToShow: 5, 602 slidesToScroll: 5, 603 }, 604 }, 605 { 606 breakpoint: 1024, 607 settings: { 608 slidesToShow: 4, 609 slidesToScroll: 4, 610 }, 611 }, 612 { 613 breakpoint: 992, 614 settings: { 615 slidesToShow: 3, 616 slidesToScroll: 1, 617 arrows: false, 618 }, 619 }, 620 { 621 breakpoint: 640, 622 settings: { 623 slidesToShow: 2.2, 624 slidesToScroll: 1,
625 arrows: false, 626 }, 627 }, 628 { 629 breakpoint: 375, 630 settings: { 631 slidesToShow: 1.3, 632 slidesToScroll: 1, 633 arrows: false, 634 }, 635 }, 636 ], 637 }); 638 } 639 640 function initPodcastCarouselSlider(selectorOrEl) { 641 safeSlick(selectorOrEl, { 642 dots: true, 643 arrows: true, 644 infinite: false, 645 speed: 300, 646 slidesToShow: 4, 647 slidesToScroll: 4, 648 autoplay: true, 649 autoplaySpeed: 5000, 650 initialSlide: 0, 651 responsive: [ 652 { 653 breakpoint: 1024, 654 settings: { 655 slidesToShow: 4, 656 slidesToScroll: 4, 657 }, 658 }, 659 { 660 breakpoint: 992, 661 settings: { 662 slidesToShow: 2.5, 663 slidesToScroll: 1, 664 arrows: false, 665 }, 666 }, 667 { 668 breakpoint: 640, 669 settings: { 670 slidesToShow: 1, 671 slidesToScroll: 1, 672 centerMode: true, 673 arrows: false, 674 infinite: true, 675 }, 676 }, 677 { 678 breakpoint: 375, 679 settings: { 680 slidesToShow: 1.3, 681 slidesToScroll: 1, 682 arrows: false, 683 }, 684 }, 685 // You can unslick at a given breakpoint now by adding: 686 // settings: "unslick" 687 // instead of a settings object 688 ], 689 }); 690 getDeviceType(); 691 } 692 693 function initOptionCarouselSlider(selectorOrEl) { 694 safeSlick(selectorOrEl, { 695 dots: true, 696 arrows: false, 697 infinite: false, 698 speed: 300, 699 slidesToShow: 3, 700 slidesToScroll: 1, 701 autoplay: true, 702 autoplaySpeed: 5000, 703 initialSlide: 0, 704 responsive: [ 705 { 706 breakpoint: 1200, 707 settings: { 708 slidesToShow: 3, 709 slidesToScroll: 1, 710 }, 711 }, 712 { 713 breakpoint: 992, 714 settings: { 715 slidesToShow: 2, 716 slidesToScroll: 1, 717 }, 718 }, 719 { 720 breakpoint: 640, 721 settings: { 722 slidesToShow: 1, 723 slidesToScroll: 1, 724 }, 725 }, 726 ], 727 }); 728 getDeviceType(); 729 } 730 // Function to initialize sliders only on pages where needed 731 732 function latestIssueModule() { 733 if ( 734 $( 735 ".latest-issues-slider .story-slider-block__content-block .cmp-story-list--slider:not(.slick-initialized)" 736 ).length > 0 737 ) { 738 initLatestIssueSlider( 739 ".latest-issues-slider .story-slider-block__content-block .cmp-story-list--slider:not(.slick-initialized)" 740 ); 741 } 742 } 743 744 revampCustomutils.latestIssueModule = latestIssueModule; 745 746 function theWeekRanking() { 747 if ($(".story-col-list--book-list .cmp-story-list--book").length > 0) { 748 initWeekRanking(".story-col-list--book-list .cmp-story-list--book"); 749 } 750 } 751 752 revampCustomutils.theWeekRanking = theWeekRanking; 753 754 function articleCarouselModule() { 755 if ( 756 $( 757 ".story-slider-block.story-card-list-block .story-slider-block__content-block .cmp-story-list--slider" 758 ).length > 0 759 ) { 760 revampCustomutils.initCarouselSlider( 761 ".story-slider-block.story-card-list-block .story-slider-block__content-block .cmp-story-list--slider" 762 ); 763 } 764 } 765 766 revampCustomutils.articleCarouselModule = articleCarouselModule; 767 768 function visualStoriesCarouselModule() { 769 if ( 770 $( 771 ".visual-stories-block .story-slider-block__content-block .cmp-story-list--slider" 772 ).length > 0 773 ) { 774 revampCustomutils.initCarouselSlider( 775 ".visual-stories-block .story-slider-block__content-block .cmp-story-list--slider" 776 ); 777 } 778 } 779 780 revampCustomutils.visualStoriesCarouselModule = visualStoriesCarouselModule; 781 782 function shotsStoriesCarouselModule() { 783 if ( 784 $( 785 ".shots-stories-block .story-slider-block__content-block .cmp-story-list--slider" 786 ).length > 0 787 ) { 788 revampCustomutils.initCarouselSlider( 789 ".shots-stories-block .story-slider-block__content-block .cmp-story-list--slider" 790 ); 791 } 792 } 793
794 revampCustomutils.shotsStoriesCarouselModule = shotsStoriesCarouselModule; 795 796 function categeoryCarouselModule() { 797 const $sliders = $(".story-categeory-list-block"); 798 799 if (!$sliders.length) return; 800 801 $sliders.each(function () { 802 initCategeoryCarouselSlider($(this)); 803 }); 804 } 805 806 revampCustomutils.categeoryCarouselModule = categeoryCarouselModule; 807 808 function magazineCarouselModule() { 809 if ( 810 $( 811 ".magazine-slider-block .story-slider-block__content-block .cmp-story-list--slider" 812 ).length > 0 813 ) { 814 initMagazineCarouselSlider( 815 ".magazine-slider-block .story-slider-block__content-block .cmp-story-list--slider" 816 ); 817 } 818 } 819 820 revampCustomutils.magazineCarouselModule = magazineCarouselModule; 821 822 function podcastCarouselModule() { 823 if ($(".podcast-page-block--latest .cmp-podcast-list--slider").length > 0) { 824 initPodcastCarouselSlider( 825 ".podcast-page-block--latest .cmp-podcast-list--slider" 826 ); 827 } 828 } 829 830 revampCustomutils.podcastCarouselModule = podcastCarouselModule; 831 832 function opinionCarouselModule() { 833 if ($(".opinion-block .cmp-story-list").length > 0) { 834 initOptionCarouselSlider(".opinion-block .cmp-story-list"); 835 } 836 } 837 838 revampCustomutils.opinionCarouselModule = opinionCarouselModule; 839 840 function voiceCarouselModule() { 841 const $sliders = $( 842 ".cmp-videotab-block .story-slider-block__content-block .cmp-story-list--slider" 843 ); 844 845 if (!$sliders.length) return; 846 847 $sliders.each(function () { 848 const $slider = $(this); 849 850 // Only init sliders that are inside an active (visible) tab panel. 851 // Hidden-tab sliders will be initialised by content-lazy.js when 852 // their tab is selected, at which point the panel is already visible. 853 const $parentTab = $slider.closest(".cmp-videotab-block__item"); 854 if ($parentTab.length && !$parentTab.hasClass("active")) return; 855 856 initVoiceCarouselSlider($slider); 857 858 $slider 859 .on("init", function () {}) 860 .on("afterChange", function (e, slick, current) {}) 861 .on("breakpoint", function (e, slick, bp) {}); 862 }); 863 } 864 865 revampCustomutils.voiceCarouselModule = voiceCarouselModule; 866 // Slider 867 868 (function masterSlickResizeFix() { 869 let resizeTimer; 870 871 function stabilizeSliders() { 872 $(".slick-initialized").each(function () { 873 const $slider = $(this); 874 875 if (!$slider.is(":visible") || $slider.width() === 0) return; 876 877 try { 878 $slider.slick("setPosition"); 879 880 // fix opacity bug if stuck 881 const $track = $slider.find(".slick-track"); 882 if ($track.css("opacity") === "0") { 883 $track.css("opacity", 1); 884 } 885 } catch (e) { 886 // silent fail (prevents crash) 887 } 888 }); 889 } 890 891 $(window).on("resize orientationchange", function () { 892 clearTimeout(resizeTimer); 893 894 resizeTimer = setTimeout(stabilizeSliders, 320); 895 }); 896 })(); 897 898 document.addEventListener("visibilitychange", function () { 899 if (!document.hidden) { 900 var $sliders = $(".slick-initialized"); 901 if ($sliders.length && $.fn.slick) { 902 $sliders.slick("setPosition"); 903 } 904 } 905 }); 906 907 // Article page gallery slider 908 function articlePhotoGallery() { 909 const $large = $(".cmp-article-slider__large"); 910 const $thumb = $(".cmp-article-slider__thumb"); 911 912 // Bail completely if either slider is already live or missing 913 if (!$large.length || !$thumb.length) return; 914 if ( 915 $large.hasClass("slick-initialized") || 916 $thumb.hasClass("slick-initialized") 917 ) 918 return; 919 920 try { 921 $large.slick({ 922 slidesToShow: 1, 923 slidesToScroll: 1, 924 arrows: true, 925 fade: false, 926 adaptiveHeight: false, 927 infinite: false, 928 useTransform: true, 929 speed: 400, 930 cssEase: "cubic-bezier(0.77, 0, 0.18, 1)", 931 }); 932 933 $thumb 934 .on("init", function (event, slick) { 935 $thumb.find(".slick-slide.slick-current").addClass("is-active"); 936 }) 937 .slick({ 938 slidesToShow: 3, 939 slidesToScroll: 1, 940 dots: false, 941 centerMode: false, 942 focusOnSelect: true, 943 infinite: false, 944 responsive: [ 945 { 946 breakpoint: 992, 947 settings: { slidesToShow: 2.8, slidesToScroll: 1 }, 948 }, 949 { 950 breakpoint: 640, 951 settings: { slidesToShow: 2.5, slidesToScroll: 1 }, 952 }, 953 { 954 breakpoint: 420, 955 settings: { slidesToShow: 2.3, slidesToScroll: 1 }, 956 }, 957 ], 958 }); 959 960 $large.on("afterChange", function (event, slick, currentSlide) { 961 $thumb.slick("slickGoTo", currentSlide); 962 const currrentNavSlideElem = 963 '.cmp-article-slider__thumb .slick-slide[data-slick-index="' + 964 currentSlide + 965 '"]'; 966 $thumb.find(".slick-slide.is-active").removeClass("is-active"); 967 $(currrentNavSlideElem).addClass("is-active"); 968 }); 969 970 $thumb.on("click", ".slick-slide", function (event) { 971 event.preventDefault(); 972 const goToSingleSlide = $(this).data("slick-index"); 973 $large.slick("slickGoTo", goToSingleSlide); 974 }); 975 } catch (err) { 976 console.warn("[articlePhotoGallery] Slick init error:", err); 977 } 978 } 979 980 revampCustomutils.articlePhotoGallery = articlePhotoGallery; 981 // Article page gallery end 982 983 function menu() { 984 const html = document.documentElement; 985 const megamenu = document.getElementById("megamenu"); 986 const btnOpen = document.getElementById("megamenuOpen"); 987 const btnClose = document.getElementById("menuClose"); 988 989 if (!btnOpen || !btnClose || !megamenu) { 990 // defensive: core elements missing 991 return; 992 } 993 994 // utility: clear ALL matching inputs robustly 995 function clearSearchInputs() { 996 const inputs = document.querySelectorAll(".cmp-search-popup__input"); 997 if (!inputs || inputs.length === 0) return;
998 inputs.forEach((input) => { 999 try { 1000 // clear property & attribute 1001 input.value = ""; 1002 input.removeAttribute("value"); 1003 1004 // dispatch typical events to notify frameworks / listeners 1005 const evInput = new Event("input", { 1006 bubbles: true, 1007 cancelable: true, 1008 }); 1009 const evChange = new Event("change", { 1010 bubbles: true, 1011 cancelable: true, 1012 }); 1013 const evKeyUp = new KeyboardEvent("keyup", { 1014 bubbles: true, 1015 cancelable: true, 1016 key: "Backspace", 1017 }); 1018 1019 input.dispatchEvent(evInput); 1020 input.dispatchEvent(evChange); 1021 input.dispatchEvent(evKeyUp); 1022 } catch (err) { 1023 // ignore per-input errors, continue clearing others 1024 console.warn("clearSearchInputs error", err); 1025 } 1026 }); 1027 } 1028 1029 function toggleMenu() { 1030 html.classList.toggle("menu__open"); 1031 megamenu.classList.toggle("show__menu"); 1032 } 1033 1034 // clear after animations / possible re-renders: 1035 function clearAfterClose() { 1036 // immediate clear (first pass) 1037 clearSearchInputs(); 1038 // small timeout to handle frameworks / re-renders 1039 setTimeout(clearSearchInputs, 50); 1040 // one more delayed pass to out-race slower code or animations 1041 setTimeout(clearSearchInputs, 300); 1042 } 1043 1044 // handle transitionend if menu has CSS transition (preferred, exact) 1045 function onTransitionEnd(e) { 1046 // ensure we only respond to megamenu finishing a transition (not every child) 1047 if (e.target === megamenu) { 1048 // if menu is now closed, clear 1049 if (!megamenu.classList.contains("show__menu")) { 1050 clearSearchInputs(); 1051 } 1052 } 1053 } 1054 1055 // open 1056 btnOpen.addEventListener("click", function (e) { 1057 toggleMenu(); 1058 }); 1059 1060 // close 1061 btnClose.addEventListener("click", function (e) { 1062 toggleMenu(); 1063 // attempt clears, but also rely on transitionend / delayed clears 1064 clearAfterClose(); 1065 }); 1066 1067 // click outside to close 1068 document.addEventListener("click", function (e) { 1069 if (html.classList.contains("menu__open")) { 1070 // if click outside menu and not the open button 1071 if (!megamenu.contains(e.target) && !btnOpen.contains(e.target)) { 1072 toggleMenu(); 1073 clearAfterClose(); 1074 } 1075 } 1076 }); 1077 1078 // escape key to close 1079 document.addEventListener("keydown", function (e) { 1080 if (e.key === "Escape" && html.classList.contains("menu__open")) { 1081 toggleMenu(); 1082 clearAfterClose(); 1083 } 1084 }); 1085 1086 // listen for transition end if CSS transitions are used 1087 megamenu.addEventListener("transitionend", onTransitionEnd, false); 1088 1089 // defensive: if the menu content is replaced/removed by some framework,
1090 // watch for DOM mutations and clear any new inputs that appear when the menu closes. 1091 const mo = new MutationObserver((mutations) => { 1092 // if menu just lost the show class, clear inputs in case framework added a fresh input 1093 if (!megamenu.classList.contains("show__menu")) { 1094 clearSearchInputs(); 1095 } 1096 }); 1097 mo.observe(megamenu, { childList: true, subtree: true, attributes: true }); 1098 } 1099 1100 // Menu 1101 1102 function megamenu() { 1103 const menuTrigger = $( 1104 ".cmp-megamenu__navigation .cmp-megamenu-block-content__items .cmp-megamenu-content__title" 1105 ); 1106 const itemsContainer = $( 1107 ".cmp-megamenu__navigation .cmp-megamenu-block-content__items .cmp-megamenu-content__nav" 1108 ); 1109 1110 function resetAccordion() { 1111 menuTrigger.removeClass("active"); 1112 itemsContainer.slideDown("fast"); 1113 } 1114 1115 function toggleAccordion(element) { 1116 if (element.hasClass("active")) { 1117 element.removeClass("active"); 1118 element.next(itemsContainer).slideUp(); 1119 } else { 1120 menuTrigger.removeClass("active"); 1121 itemsContainer.slideUp(); 1122 element.addClass("active"); 1123 element.next(itemsContainer).slideDown(); 1124 } 1125 } 1126 1127 menuTrigger.click(function () { 1128 if ($(window).width() < 992) { 1129 toggleAccordion($(this)); 1130 } 1131 }); 1132 1133 $(window).resize(function () { 1134 if ($(window).width() >= 992) { 1135 resetAccordion(); 1136 } 1137 }); 1138 } 1139 // Megamenu 1140 1141 function groupMenuItem() { 1142 function adjustNav() { 1143 $(".cmp-channel-block__nav").each(function () { 1144 const $this = $(this); 1145 let navwidth2 = 0; 1146 const morewidth2 = $this 1147 .find(".cmp-channel-block__nav-ul .cmp-channel-block__nav-li--more") 1148 .outerWidth(true); 1149 1150 // Calculate navwidth2 for items 1151 $this 1152 .find( 1153 ".cmp-channel-block__nav-ul > li:not(.cmp-channel-block__nav-li--more)" 1154 ) 1155 .each(function () { 1156 navwidth2 += $(this).children("a").outerWidth(true) + 5; 1157 }); 1158 1159 const availablespace2 = $this.width() - morewidth2; 1160 1161 if ($(window).width() > 992) { 1162 // Handle "more" menu logic 1163 if (navwidth2 > availablespace2) { 1164 const lastItem2 = $this 1165 .find( 1166 ".cmp-channel-block__nav-ul > li:not(.cmp-channel-block__nav-li--more)" 1167 ) 1168 .last(); 1169 lastItem2.attr("data-width", lastItem2.outerWidth(true)); 1170 lastItem2.prependTo( 1171 $this.find( 1172 ".cmp-channel-block__nav-ul .cmp-channel-block__nav-li--more ul" 1173 ) 1174 ); 1175 $this.find(".cmp-channel-block__nav-ul").addClass("nav-visible"); 1176 groupMenuItem(); 1177 } else { 1178 $this.find(".cmp-channel-block__nav-ul").addClass("nav-visible"); 1179 const firstMoreElement2 = $this 1180 .find( 1181 ".cmp-channel-block__nav-ul li.cmp-channel-block__nav-li--more li" 1182 ) 1183 .first(); 1184 if (navwidth2 + firstMoreElement2.data("width") < availablespace2) { 1185 firstMoreElement2.insertBefore( 1186 $this.find( 1187 ".cmp-channel-block__nav-ul .cmp-channel-block__nav-li--more" 1188 ) 1189 ); 1190 } 1191 } 1192 1193 // Show "more" menu if there are items 1194 if ($this.find(".cmp-channel-block__nav-li--more li").length > 0) { 1195 $this 1196 .find(".cmp-channel-block__nav-li--more") 1197 .css("display", "inline-block"); 1198 $this 1199 .find(".cmp-channel-block__nav-ul") 1200 .addClass("channel-block__more-menu"); 1201 } else { 1202 $this 1203 .find(".cmp-channel-block__nav-li--more") 1204 .css("display", "none"); 1205 $this 1206 .find(".cmp-channel-block__nav-ul") 1207 .removeClass("channel-block__more-menu"); 1208 } 1209 } else { 1210 // Reset the "more" menu when screen width is less than 992px 1211 $this.find(".cmp-channel-block__nav-li--more").css("display", "none"); 1212 $this 1213 .find(".cmp-channel-block__nav-ul") 1214 .removeClass("channel-block__more-menu"); 1215 $this.find(".cmp-channel-block__nav-ul").removeClass("nav-visible"); 1216 1217 // Move items back if necessary (optional, based on your design) 1218 $this 1219 .find( 1220 ".cmp-channel-block__nav-ul .cmp-channel-block__nav-li--more ul" 1221 ) 1222 .find("li") 1223 .each(function () { 1224 $(this).insertBefore( 1225 $this.find(".cmp-channel-block__nav-li--more") 1226 ); 1227 }); 1228 } 1229 }); 1230 } 1231 1232 // Call adjustNav on document ready 1233 adjustNav(); 1234 1235 // Call on window resize to adjust navigation 1236 $(window).resize(function () { 1237 adjustNav(); 1238 }); 1239 } 1240 1241 $(".cmp-comp__video .comp-video__cover-img").click(function () { 1242 $(this).addClass("play--video"); 1243 }); 1244 1245 $("#subscriptions_menu").click(function () { 1246 $(this).addClass("play--video"); 1247 }); 1248 1249 function headerSubMenu() { 1250 $(".cmp-header .main-nav .has-sub__menu .main-nav__a").click(function (e) { 1251 $(".cmp-header .cmp-header__bottom").toggleClass("sub-menu__open"); 1252 $(this).next(".main-nav__sub-menu").toggleClass("show"); 1253 e.stopPropagation(); 1254 }); 1255 $(document).click(function (e) { 1256 if ( 1257 !$(e.target).closest( 1258 ".cmp-header .main-nav .has-sub__menu .main-nav__a" 1259 ).length 1260 ) { 1261 $(".cmp-header .cmp-header__bottom").removeClass("sub-menu__open"); 1262 $( 1263 ".cmp-header .main-nav .has-sub__menu .main-nav__a + .main-nav__sub-menu" 1264 ).removeClass("show"); 1265 } 1266 }); 1267 } 1268 1269 function subscriptionsMenu() { 1270 // Function to handle clicking on subscriptions menu 1271 $("#subscriptions_menu").click(function (e) { 1272 $("#subscriptions_menu + #porductPop").toggleClass("active"); 1273 e.stopPropagation(); // Prevent event from bubbling up 1274 }); 1275 1276 // Function to handle clicking outside of the subscriptions menu 1277 $(document).click(function (e) { 1278 if (!$(e.target).closest("#porductPop").length) { 1279 $("#subscriptions_menu + #porductPop").removeClass("active"); 1280 } 1281 }); 1282 1283 // Function to handle scroll event 1284 $(window).scroll(function () { 1285 const header = $(".cmp-header"); 1286 if (header.hasClass("sticky-nav")) { 1287 $("#subscriptions_menu + #porductPop").removeClass("active"); 1288 } 1289 }); 1290 } 1291 1292 function seachModal() { 1293 // cache selectors 1294 const $searchBtn = $("#searchBtn"); 1295 const $searchModule = $(".cmp-search-module"); 1296 const $searchModuleInnerBtn = $(".cmp-search-module .cmp-search-module__btn"); 1297 const $searchClose = $("#searchClose"); 1298 1299 // robust clear function: clears value, removes value attr and fires events 1300 function clearSearchInputs() {
1301 const $inputs = $(".cmp-search-popup__input"); 1302 if (!$inputs.length) return; 1303 $inputs.each(function () { 1304 try { 1305 $(this).val(""); 1306 $(this).removeAttr("value"); 1307 // trigger events so frameworks/listeners update 1308 $(this).trigger("input"); 1309 $(this).trigger("change"); 1310 $(this).trigger($.Event("keyup", { key: "Backspace" })); 1311 } catch (err) { 1312 // continue silently but log if needed 1313 console.warn("clearSearchInputs error", err); 1314 } 1315 }); 1316 } 1317 1318 // helper that clears now and does follow-up delayed clears to beat re-renders 1319 function clearAfterClose() { 1320 clearSearchInputs(); 1321 setTimeout(clearSearchInputs, 50); 1322 setTimeout(clearSearchInputs, 300); 1323 } 1324 1325 // open toggle 1326 $searchBtn.off("click.seachModal").on("click.seachModal", function (e) { 1327 $searchModule.toggleClass("show"); 1328 e.stopPropagation(); 1329 }); 1330 1331 // module inner button (close action) 1332 $searchModuleInnerBtn 1333 .off("click.seachModal") 1334 .on("click.seachModal", function (e) { 1335 $searchModule.removeClass("show"); 1336 e.stopPropagation(); 1337 clearAfterClose(); 1338 }); 1339 1340 // explicit close button 1341 $searchClose.off("click.seachModal").on("click.seachModal", function (e) { 1342 $searchModule.removeClass("show"); 1343 e.stopPropagation(); 1344 clearAfterClose(); 1345 }); 1346 1347 // click outside to close 1348 $(document) 1349 .off("click.seachModal") 1350 .on("click.seachModal", function (e) { 1351 // if module open and the click is not within it and not on open button 1352 if ( 1353 $searchModule.hasClass("show") && 1354 $(e.target).closest(".cmp-search-module").length === 0 && 1355 $(e.target).closest("#searchBtn").length === 0 1356 ) { 1357 $searchModule.removeClass("show"); 1358 clearAfterClose(); 1359 } 1360 }); 1361 1362 // Escape key closes 1363 $(document) 1364 .off("keydown.seachModal") 1365 .on("keydown.seachModal", function (e) { 1366 if (e.key === "Escape" || e.keyCode === 27) { 1367 if ($searchModule.hasClass("show")) { 1368 $searchModule.removeClass("show"); 1369 clearAfterClose(); 1370 } 1371 } 1372 }); 1373 1374 // Optional: observe DOM changes inside the module and clear inputs if module gets closed via some other script 1375 if (window.MutationObserver) { 1376 try { 1377 const mo = new MutationObserver(function (mutations) { 1378 // if module lost .show class, attempt to clear (covers re-render cases) 1379 if (!$searchModule.hasClass("show")) { 1380 clearSearchInputs(); 1381 } 1382 }); 1383 // watch for childList/subtree/attribute changes inside module 1384 $searchModule.each(function () { 1385 mo.observe(this, { 1386 childList: true, 1387 subtree: true, 1388 attributes: true, 1389 }); 1390 }); 1391 } catch (err) { 1392 // ignore if MutationObserver unavailable or errors out 1393 console.warn("MutationObserver not attached", err); 1394 } 1395 } 1396 } 1397 1398 function shareArticle() { 1399 $(".article-share-btn").click(function (e) { 1400 // Get the current clicked button 1401 const $this = $(this); 1402 1403 // Close all other popups 1404 $(".cmp-modal-box--article-share") 1405 .not($this.next(".cmp-modal-box--article-share")) 1406 .removeClass("show"); 1407 1408 // Hide the font-size dropdown 1409 $('.mm-drop-down[data-id="font-size-dropdown"]').removeClass("show"); 1410 1411 // Toggle the popup associated with the clicked button 1412 $this.next(".cmp-modal-box--article-share").toggleClass("show"); 1413 1414 // Prevent the event from propagating 1415 e.stopPropagation(); 1416 }); 1417 1418 $(".cmp-modal-box__close").click(function (e) { 1419 $(this).closest(".cmp-modal-box--article-share").removeClass("show"); 1420 e.stopPropagation(); 1421 }); 1422 1423 $(document).click(function (e) { 1424 if ( 1425 !$(e.target).closest(".article-share-btn").length && 1426 !$(e.target).closest(".cmp-modal-box--article-share").length 1427 ) { 1428 $(".cmp-modal-box--article-share").removeClass("show"); 1429 } 1430 }); 1431 } 1432 // Share Article 1433 1434 function fontLargeArticleDrop() { 1435 $(".mm-btn--fsize-control").click(function (e) { 1436 $( 1437 '.mm-btn--fsize-control + .mm-drop-down[data-id="font-size-dropdown"]' 1438 ).toggleClass("show"); 1439 $(".cmp-modal-box--article-share").removeClass("show"); 1440 e.stopPropagation(); 1441 }); 1442 $(document).click(function (e) { 1443 if ( 1444 !$(e.target).closest(".mm-btn--fsize-control").length && 1445 !$(e.target).closest('.mm-drop-down[data-id="font-size-dropdown"]') 1446 .length 1447 ) { 1448 $('.mm-drop-down[data-id="font-size-dropdown"]').removeClass("show"); 1449 } 1450 }); 1451 } 1452 // Font Large Article 1453 1454 function fontSizeChange() { 1455 const fontSizevalue = $("input[name='fontSize']:checked").val(); 1456 $("body") 1457 .removeClass("small-font medium-font large-font") 1458 .addClass(fontSizevalue); 1459 $(".cmp-font-size__label").click(function () { 1460 const fontValueselected = $(this) 1461 .find("input[name='fontSize']:checked") 1462 .val(); 1463 $("body") 1464 .removeClass("small-font medium-font large-font") 1465 .addClass(fontValueselected); 1466 }); 1467 } 1468 // Group Menu 1469 1470 // $(window).resize(function () { 1471 // groupMenuItem(); 1472 // }); 1473 1474 function latestIssuesTab() { 1475 const $tabLinks = $(".latest-issues-block .cmp-channel-block__nav-li"); 1476 const $tabContents = $(".latest-issuestab-block__item"); 1477 1478 function activateSlider($tab) { 1479 const $slider = $tab.find(".cmp-story-list--slider"); 1480 if (!$slider.length) return; 1481 1482 if (!$slider.hasClass("slick-initialized")) { 1483 // init for first time
1484 // revampCustomutils.initCarouselSlider($slider); 1485 initLatestIssueSlider($slider); 1486 } 1487 1488 // Only call slick methods if init succeeded 1489 if (!$slider.hasClass("slick-initialized")) return; 1490 1491 try { 1492 $slider.slick("slickGoTo", 0, true); 1493 $slider.slick("setPosition"); 1494 $slider.slick("slickPlay"); 1495 } catch (e) { 1496 // slider may have failed silently; ignore 1497 } 1498 } 1499 1500 function pauseOtherSliders($currentTab) { 1501 $tabContents.not($currentTab).each(function () { 1502 const $slider = $(this).find(".cmp-story-list--slider"); 1503 if ($slider.hasClass("slick-initialized")) { 1504 try { 1505 $slider.slick("slickPause"); 1506 } catch (e) {} 1507 } 1508 }); 1509 } 1510 1511 // init first visible tab correctly 1512 const $initialTab = $tabContents.filter(".active"); 1513 activateSlider($initialTab); 1514 pauseOtherSliders($initialTab); 1515 1516 // $tabLinks.on("click", ".cmp-channel-block__nav-a", function (e) { 1517 // e.preventDefault(); 1518 1519 // const $li = $(this).closest(".cmp-channel-block__nav-li"); 1520 // if ($li.hasClass("active")) return; 1521 1522 // const tabId = $(this).attr("href"); 1523 // const $targetTab = $(tabId); 1524 1525 // // tab state 1526 // $tabLinks.removeClass("active"); 1527 // $li.addClass("active"); 1528 1529 // $tabContents.removeClass("active"); 1530 // $targetTab.addClass("active"); 1531 1532 // // control autoplay properly 1533 // pauseOtherSliders($targetTab); 1534 // activateSlider($targetTab); 1535 // $(".lazyload").unveil(); 1536 // }); 1537 } 1538 1539 revampCustomutils.latestIssuesTab = latestIssuesTab; 1540 1541 function authorTab() { 1542 // Cache jQuery objects for tabs and content items 1543 const $tabLinks = $(".cmp-resulttab-block__nav-li"); 1544 const $tabContents = $(".cmp-resulttab-block__item"); 1545 1546 // Click event handler for tab links 1547 $tabLinks.each(function () { 1548 const $this = $(this); 1549 const $tabLinkAnchor = $this.find(".cmp-resulttab-block__nav-a"); 1550 1551 $tabLinkAnchor.on("click", function (e) { 1552 e.preventDefault(); 1553 1554 // Remove active class from all tab links 1555 $tabLinks.removeClass("active"); 1556 1557 // Add active class to the clicked tab link's parent li 1558 $this.addClass("active"); 1559 1560 // Hide all tab contents 1561 $tabContents.removeClass("active"); 1562 1563 // Show the corresponding tab content 1564 const tabId = $tabLinkAnchor.attr("href"); 1565 $(tabId).addClass("active"); 1566 }); 1567 }); 1568 } 1569 revampCustomutils.authorTab = authorTab; 1570 1571 function voiceTab() { 1572 const $tabContents = $(".cmp-videotab-block__item"); 1573 1574 function activateSlider($tab) { 1575 const $slider = $tab.find(".cmp-story-list--slider"); 1576 if (!$slider.length) return; 1577 1578 if ($slider.hasClass("slick-initialized")) { 1579 const trackWidth = $slider.find(".slick-track").width(); 1580 if (trackWidth === 0) { 1581 try { $slider.slick("unslick"); } catch (e) {} 1582 } 1583 } 1584 1585 if (!$slider.hasClass("slick-initialized")) { 1586 revampCustomutils.initCarouselSlider($slider); 1587 } 1588 1589 if (!$slider.hasClass("slick-initialized")) return; 1590 1591 try { 1592 $slider.slick("slickGoTo", 0, true); 1593 $slider.slick("setPosition"); 1594 $slider.slick("slickPlay"); 1595 } catch (e) {} 1596 } 1597 1598 function pauseOtherSliders($currentTab) { 1599 $tabContents.not($currentTab).each(function () { 1600 const $slider = $(this).find(".cmp-story-list--slider"); 1601 if ($slider.hasClass("slick-initialized")) { 1602 try { $slider.slick("slickPause"); } catch (e) {} 1603 } 1604 }); 1605 } 1606 1607 // Init the first visible tab only â tab switching is handled in content-lazy.js 1608 const $initialTab = $tabContents.filter(".active"); 1609 activateSlider($initialTab); 1610 pauseOtherSliders($initialTab); 1611 } 1612 1613 revampCustomutils.voiceTab = voiceTab; 1614 1615 function errorPageTab() { 1616 const $tabLinks = $(".cmp-nav-tab__li"); 1617 const $tabContents = $(".cmp-tabs__tabpanel"); 1618 1619 $tabLinks.each(function () { 1620 const $this = $(this); 1621 const $tabLinkAnchor = $this.find(".cmp-nav-tab__a"); 1622 1623 $tabLinkAnchor.on("click", function (e) { 1624 e.preventDefault(); 1625 1626 // Remove active class from all tab links 1627 $tabLinks.removeClass("active"); 1628 1629 // Add active class to the clicked tab link's parent li 1630 $this.addClass("active"); 1631 1632 // Hide all tab contents 1633 $tabContents.removeClass("cmp-tabs__tabpanel--active"); 1634 1635 // Show the corresponding tab content 1636 const tabId = $tabLinkAnchor.attr("href"); 1637 $(tabId).addClass("cmp-tabs__tabpanel--active"); 1638 1639 // Initialize the slider for the active tab content 1640 // articleCarouselModule(tabId); // Pass the active tab ID 1641 }); 1642 }); 1643 } 1644 1645 revampCustomutils.errorPageTab = errorPageTab; 1646 1647 function sortDrop() { 1648 const dropclick = $(".open-dropDown"); 1649 dropclick.removeClass("cmp-sortdrop__open"); 1650 const dropDown = $(".open-dropDown + .cmp-sortdrop__drop-down"); 1651 dropDown.removeClass("mm-drop-down"); 1652 1653 dropclick.click(function (e) { 1654 dropDown.toggleClass("mm-drop-down"); 1655 $(this).toggleClass("cmp-sortdrop__open"); 1656 e.stopPropagation(); 1657 }); 1658 $(document).click(function (e) { 1659 if ( 1660 !$(e.target).closest(".open-dropDown").length && 1661 !$(e.target).closest(".cmp-sortdrop__drop-down").length 1662 ) { 1663 dropDown.removeClass("mm-drop-down"); 1664 dropclick.removeClass("cmp-sortdrop__open"); 1665 } 1666 }); 1667 } 1668 // Sort Drop 1669 1670 function photoGalleryShare() { 1671 const dropclick = $(".open-dropDown"); 1672 dropclick.removeClass("cmp-sortdrop__open"); 1673 const dropDown = $(".open-dropDown + .cmp-sortdrop__drop-down"); 1674 dropDown.removeClass("mm-drop-down"); 1675 1676 dropclick.click(function (e) { 1677 dropDown.toggleClass("mm-drop-down"); 1678 $(this).toggleClass("cmp-sortdrop__open"); 1679 e.stopPropagation(); 1680 }); 1681 $(document).click(function (e) { 1682 if ( 1683 !$(e.target).closest(".open-dropDown").length && 1684 !$(e.target).closest(".cmp-sortdrop__drop-down").length 1685 ) { 1686 dropDown.removeClass("mm-drop-down"); 1687 dropclick.removeClass("cmp-sortdrop__open"); 1688 } 1689 }); 1690 } 1691 1692 revampCustomutils.photoGalleryShare = photoGalleryShare; 1693 1694 function menuGrouping() { 1695 const breakpoint = 768; 1696
1697 function init() { 1698 const mainNavWrap = document.querySelector(".main-nav"); 1699 const navbar = document.querySelector(".navbar"); 1700 const mainNav = document.querySelector(".navbar__ul"); 1701 const moreNavItem = document.querySelector(".navbar__more"); 1702 const moreNav = document.querySelector("#moreNavigations"); 1703 1704 if (!mainNavWrap || !navbar || !mainNav || !moreNavItem || !moreNav) { 1705 return; 1706 } 1707 1708 function resetMenu() { 1709 while (moreNav.firstChild) { 1710 mainNav.insertBefore(moreNav.firstChild, moreNavItem); 1711 } 1712 moreNavItem.classList.add("hiddenv"); 1713 } 1714 1715 function getUsableWidth() { 1716 const wrapStyles = getComputedStyle(mainNavWrap); 1717 const navStyles = getComputedStyle(navbar); 1718 1719 const wrapPadding = 1720 parseFloat(wrapStyles.paddingLeft) + 1721 parseFloat(wrapStyles.paddingRight); 1722 1723 const navPadding = 1724 parseFloat(navStyles.paddingLeft) + 1725 parseFloat(navStyles.paddingRight); 1726 1727 const rightControls = 1728 document.querySelector(".cmp-header__actions") || 1729 document.querySelector(".header-actions"); 1730 1731 const rightWidth = rightControls 1732 ? rightControls.getBoundingClientRect().width 1733 : 0; 1734 1735 return mainNavWrap.clientWidth - wrapPadding - navPadding - rightWidth; 1736 } 1737 1738 function getOuterWidth(el) { 1739 const styles = getComputedStyle(el); 1740 return ( 1741 el.getBoundingClientRect().width + 1742 parseFloat(styles.marginLeft) + 1743 parseFloat(styles.marginRight) 1744 ); 1745 } 1746 1747 function adjustNavigation() { 1748 // lock visibility immediately 1749 // navbar.classList.add('is-measuring'); 1750 1751 resetMenu(); 1752 1753 if (window.innerWidth < breakpoint) { 1754 // navbar.classList.remove('is-measuring'); 1755 navbar.style.visibility = "visible"; 1756 return; 1757 } 1758 1759 const availableWidth = getUsableWidth(); 1760 let usedWidth = 0; 1761 1762 const items = Array.from(mainNav.children).filter( 1763 (el) => el !== moreNavItem 1764 ); 1765 1766 for (const item of items) { 1767 const itemWidth = getOuterWidth(item); 1768 usedWidth += itemWidth; 1769 1770 if (usedWidth > availableWidth) { 1771 moreNav.appendChild(item); 1772 } 1773 } 1774 1775 if (moreNav.children.length) { 1776 moreNavItem.classList.remove("hiddenv"); 1777 } 1778 1779 // release visibility in SAME FRAME 1780 requestAnimationFrame(() => { 1781 // navbar.classList.remove('is-measuring'); 1782 navbar.style.visibility = "visible"; 1783 }); 1784 } 1785 1786 // --- observers & listeners --- 1787 let resizeRaf = null; 1788 1789 window.addEventListener("resize", () => { 1790 if (resizeRaf) return; 1791 1792 resizeRaf = requestAnimationFrame(() => { 1793 adjustNavigation(); 1794 resizeRaf = null; 1795 }); 1796 }); 1797 1798 // Run at every reliable lifecycle point 1799 adjustNavigation(); 1800 window.addEventListener("load", adjustNavigation); 1801 1802 if (document.fonts) { 1803 document.fonts.ready.then(adjustNavigation); 1804 } 1805 } 1806 1807 // Ensure DOM exists 1808 if (document.readyState === "loading") { 1809 document.addEventListener("DOMContentLoaded", init); 1810 } else { 1811 init(); 1812 } 1813 } 1814 1815 revampCustomutils.menuGrouping = menuGrouping; 1816 1817 function detectIosDevice() { 1818 if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { 1819 document.body.classList.add("ios-device"); 1820 } 1821 } 1822 1823 function newsTickerSlide() { 1824 const newsItems = $(".cmp-breaking-news__li"); 1825 const pauseButton = $(".cmp-breaking-news__pause"); 1826 const closeButton = $(".cmp-breaking-news__close"); 1827 const fadeInSpeed = 900; // Speed of fade in (in milliseconds) 1828 const fadeOutSpeed = 900; // Speed of fade out (in milliseconds) 1829 let isPaused = false; 1830 let currentIndex = 0; 1831 1832 // Initially, show the first item 1833 newsItems.eq(currentIndex).addClass("active").fadeIn(fadeInSpeed); 1834 1835 // Function to show the next item 1836 function showNextItem() { 1837 if (isPaused) return; // Don't change items if paused 1838 1839 const nextIndex = (currentIndex + 1) % newsItems.length; 1840 1841 // Fade out the current item 1842 newsItems.eq(currentIndex).fadeOut(fadeOutSpeed, function () { 1843 // Hide it and remove active class 1844 $(this).removeClass("active"); 1845 1846 // Show the next item 1847 newsItems.eq(nextIndex).addClass("active").fadeIn(fadeInSpeed); 1848 1849 // Update currentIndex 1850 currentIndex = nextIndex; 1851 }); 1852 } 1853 1854 // Set interval to change items every 4 seconds (adjust as needed) 1855 const intervalTime = 6000; // 4 seconds between each transition 1856 let tickerInterval = setInterval(showNextItem, intervalTime); 1857 1858 // Pause/Play Toggle functionality for the button 1859 pauseButton.on("click", function () { 1860 if (isPaused) { 1861 // Resume the ticker 1862 tickerInterval = setInterval(showNextItem, intervalTime); 1863 pauseButton.text("Pause"); 1864 pauseButton.removeClass("paused"); 1865 isPaused = false;
1866 } else { 1867 // Pause the ticker 1868 clearInterval(tickerInterval); 1869 pauseButton.text("Play"); 1870 pauseButton.addClass("paused"); 1871 isPaused = true; 1872 } 1873 }); 1874 1875 // Close the news ticker on button click 1876 closeButton.on("click", function () { 1877 clearInterval(tickerInterval); // Stop the interval when closed 1878 $(".cmp-breaking-news").hide(); // Hide the ticker 1879 }); 1880 } 1881 1882 revampCustomutils.newsTickerSlide = newsTickerSlide; 1883 1884 function specialFiveSccordion() { 1885 (function () { 1886 // ---------- CONFIG ---------- 1887 const MIN_WIDTH = 992; 1888 const SELECTORS = { 1889 parent: ".story-list-block.special-five-hero", 1890 list: ".story-list-block.special-five-hero .cmp-story-list", 1891 item: ".cmp-story-list__item", 1892 }; 1893 const INIT_INDEX = 0; 1894 const CLOSED_W = "20%"; 1895 const OPEN_W = "60%"; 1896 const RESIZE_DEBOUNCE = 140; 1897 const HEIGHT_CACHE_PREFIX = "hacc_h_px_v1_session"; // stored in sessionStorage 1898 1899 // ---------- STATE ---------- 1900 let enabled = false; 1901 let parentEl = null; 1902 let listEl = null; 1903 let items = []; 1904 let handlers = new Map(); 1905 let mo = null; 1906 let rt = null; 1907 1908 // ---------- HELPERS ---------- 1909 const $ = (sel, root = document) => (root || document).querySelector(sel); 1910 const $$ = (sel, root = document) => 1911 Array.from((root || document).querySelectorAll(sel)); 1912 1913 function annotate() { 1914 parentEl = $(SELECTORS.parent); 1915 listEl = $(SELECTORS.list); 1916 items = listEl ? $$(SELECTORS.item, listEl) : []; 1917 items.forEach((it, i) => { 1918 if (!it.dataset.index) it.dataset.index = String(i + 1); 1919 }); 1920 } 1921 1922 function heightCacheKey() { 1923 if (!parentEl) return `${HEIGHT_CACHE_PREFIX}_default`; 1924 const cw = Math.round( 1925 parentEl.getBoundingClientRect().width || window.innerWidth, 1926 ); 1927 return `${HEIGHT_CACHE_PREFIX}_${cw}_${items.length}`; 1928 } 1929 1930 function saveHeightCache(px) { 1931 try { 1932 sessionStorage.setItem(heightCacheKey(), String(Math.round(px))); 1933 } catch (e) {} 1934 } 1935 function readHeightCache() { 1936 try { 1937 const v = sessionStorage.getItem(heightCacheKey()); 1938 return v ? Number(v) : null; 1939 } catch (e) { 1940 return null; 1941 } 1942 } 1943 1944 function applyLockedParentHeight(px) { 1945 if (!parentEl) return; 1946 if (typeof px === "number" && !Number.isNaN(px) && px > 0) { 1947 parentEl.style.height = `${Math.round(px)}px`; 1948 parentEl.style.overflow = "hidden"; 1949 } 1950 } 1951 1952 function removeLockedParentHeight() { 1953 if (!parentEl) return; 1954 parentEl.style.removeProperty("height"); 1955 parentEl.style.removeProperty("overflow"); 1956 } 1957 1958 // measure active item height and cache only the parent lock height (no padding logic) 1959 function measureAndCache(openIndex = INIT_INDEX, cb) { 1960 if (!listEl || !items.length) { 1961 if (cb) cb(null); 1962 return; 1963 } 1964 1965 // ensure no other inline height is interfering 1966 removeLockedParentHeight(); 1967 1968 requestAnimationFrame(() => { 1969 requestAnimationFrame(() => { 1970 const idx = Math.max(0, Math.min(openIndex, items.length - 1)); 1971 const refItem = items[idx] || items[0]; 1972 const refRect = refItem.getBoundingClientRect(); 1973 const refH = refRect.height || 1; 1974 1975 const lockPx = Math.round(refH); 1976 saveHeightCache(lockPx); 1977 1978 if (cb) cb({ lockPx }); 1979 }); 1980 }); 1981 } 1982 1983 // set grid & classes; ensure parent locked height exists (from cache or measure) 1984 function applyState(openIndex = INIT_INDEX) { 1985 if (!listEl || !items.length) return; 1986 const idx = Math.max(0, Math.min(openIndex, items.length - 1)); 1987 1988 // apply cached locked height if present 1989 const cachedHeight = readHeightCache(); 1990 if (cachedHeight && parentEl) applyLockedParentHeight(cachedHeight); 1991 1992 // grid-template 1993 if (items.length === 3) { 1994 listEl.style.gridTemplateColumns = 1995 idx === 0 1996 ? `${OPEN_W} ${CLOSED_W} ${CLOSED_W}` 1997 : idx === 1 1998 ? `${CLOSED_W} ${OPEN_W} ${CLOSED_W}` 1999 : `${CLOSED_W} ${CLOSED_W} ${OPEN_W}`; 2000 } else { 2001 listEl.style.gridTemplateColumns = items 2002 .map((_, i) => (i === idx ? OPEN_W : CLOSED_W)) 2003 .join(" "); 2004 } 2005 2006 // classes
2007 items.forEach((it, i) => { 2008 it.classList.toggle("active", i === idx); 2009 it.classList.toggle("closed", i !== idx); 2010 }); 2011 } 2012 2013 // click handler: toggles to INIT_INDEX if clicking already-open item, else opens clicked 2014 function onClick(e) { 2015 const el = e.currentTarget; 2016 const idx = items.indexOf(el); 2017 if (idx === -1) return; 2018 const isOpen = el.classList.contains("active"); 2019 applyState(isOpen ? INIT_INDEX : idx); 2020 } 2021 2022 function bind() { 2023 items.forEach((it) => { 2024 if (handlers.has(it)) return; 2025 const h = onClick.bind(null); 2026 it.addEventListener("click", h); 2027 handlers.set(it, h); 2028 }); 2029 } 2030 function unbind() { 2031 handlers.forEach((h, el) => el.removeEventListener("click", h)); 2032 handlers.clear(); 2033 } 2034 2035 // enable: annotate, measure/cache height if missing, bind, observe children 2036 function enable() { 2037 if (enabled) return; 2038 annotate(); 2039 if (!listEl || !items.length) return; 2040 bind(); 2041 2042 const heightCached = readHeightCache(); 2043 const currWidth = Math.round( 2044 listEl.getBoundingClientRect().width || window.innerWidth 2045 ); 2046 const needMeasure = !heightCached; 2047 2048 if (needMeasure) { 2049 measureAndCache(INIT_INDEX, ({ lockPx } = {}) => { 2050 if (lockPx) applyLockedParentHeight(lockPx); 2051 applyState(INIT_INDEX); 2052 }); 2053 } else { 2054 applyLockedParentHeight(heightCached); 2055 applyState(INIT_INDEX); 2056 } 2057 2058 if (!mo) { 2059 mo = new MutationObserver((muts) => { 2060 for (const m of muts) { 2061 if ( 2062 m.type === "childList" && 2063 (m.addedNodes.length || m.removedNodes.length) 2064 ) { 2065 setTimeout(refresh, 80); 2066 break; 2067 } 2068 } 2069 }); 2070 mo.observe(listEl, { childList: true, subtree: false }); 2071 } 2072 2073 enabled = true; 2074 } 2075 2076 function disable() { 2077 if (!enabled) return; 2078 unbind(); 2079 if (mo) { 2080 mo.disconnect(); 2081 mo = null; 2082 } 2083 if (listEl) listEl.style.removeProperty("grid-template-columns"); 2084 items.forEach((it) => it.classList.remove("active", "closed")); 2085 removeLockedParentHeight(); 2086 enabled = false; 2087 } 2088 2089 function onResize() { 2090 if (rt) clearTimeout(rt); 2091 rt = setTimeout(() => { 2092 annotate(); 2093 if (window.innerWidth >= MIN_WIDTH) { 2094 measureAndCache(INIT_INDEX, ({ lockPx } = {}) => { 2095 if (lockPx) applyLockedParentHeight(lockPx); 2096 applyState(INIT_INDEX); 2097 }); 2098 enable(); 2099 } else { 2100 disable(); 2101 } 2102 }, RESIZE_DEBOUNCE); 2103 } 2104 2105 function refresh() { 2106 disable(); 2107 annotate(); 2108 if (window.innerWidth >= MIN_WIDTH) { 2109 measureAndCache(INIT_INDEX, ({ lockPx } = {}) => { 2110 if (lockPx) applyLockedParentHeight(lockPx); 2111 enable(); 2112 applyState(INIT_INDEX); 2113 }); 2114 } 2115 } 2116 2117 function cleanup() { 2118 disable(); 2119 window.removeEventListener("resize", onResize); 2120 try { 2121 delete window.horizontalAccordionDesktop; 2122 } catch (e) { 2123 window.horizontalAccordionDesktop = undefined; 2124 } 2125 } 2126 2127 // init 2128 function init() { 2129 annotate(); 2130 if (window.innerWidth >= MIN_WIDTH) enable(); 2131 window.addEventListener("resize", onResize); 2132 window.horizontalAccordionDesktop = { refresh, cleanup }; 2133 } 2134 2135 if (document.readyState === "loading") 2136 document.addEventListener("DOMContentLoaded", init); 2137 else init(); 2138 })(); 2139 } 2140 2141 revampCustomutils.specialFiveSccordion = specialFiveSccordion; 2142 2143 // quikread animation // 2144 document.addEventListener("DOMContentLoaded", () => { 2145 const quick = document.querySelector(".quikreadfloating"); 2146 if (!quick) return; 2147 2148 let lastY = window.scrollY; 2149 2150 window.addEventListener( 2151 "scroll", 2152 () => { 2153 const currentY = window.scrollY; 2154 2155 if (currentY > lastY) { 2156 // scrolling down â close 2157 quick.classList.add("closed"); 2158 } else { 2159 // scrolling up â open 2160 quick.classList.remove("closed"); 2161 } 2162 2163 lastY = currentY; 2164 }, 2165 { passive: true }, 2166 ); 2167 }); 2168 2169 // quikread animation // 2170 2171 function columnsListSlider() { 2172 (function () { 2173 const ROOT = ".author-details-list"; 2174 const LIST = ".cmp-story-list"; 2175 const ITEM = ".cmp-story-list__item"; 2176 const PREV_SEL = 2177 ".author-details-list__action-item.prev .author-details-list__action-link"; 2178 const NEXT_SEL = 2179 ".author-details-list__action-item.next .author-details-list__action-link"; 2180
2181 const SIDE_PADDING = 60; // parentWidth - 30px 2182 const GAP = 10; // flex gap between items 2183 const SCROLL_OFFSET = 150; // how far to scroll down on interaction (px) 2184 2185 const INFINITE = true; // â enable basic looping 2186 const DISABLE_ARROWS = false; // â disable arrows at edges 2187 const DISABLE_SWIPE = true; // â TRUE = no swipe / drag scroll 2188 2189 const root = document.querySelector(ROOT); 2190 if (!root) return; 2191 const list = root.querySelector(LIST); 2192 if (!list) return; 2193 const prevBtn = root.querySelector(PREV_SEL); 2194 const nextBtn = root.querySelector(NEXT_SEL); 2195 2196 let items = []; 2197 let hasScrolledOnce = false; // true after we programmatically scrolled down SCROLL_OFFSET 2198 2199 // ---------- helpers ---------- 2200 function getConfig() { 2201 const w = window.innerWidth; 2202 if (w >= 1200) return { count: 7, center: 3 }; 2203 if (w >= 1024) return { count: 5, center: 2 }; 2204 if (w >= 575) return { count: 3, center: 1 }; 2205 return { count: 1, center: 0 }; 2206 } 2207 function clamp(v, a, b) { 2208 return Math.max(a, Math.min(b, v)); 2209 } 2210 2211 function computeItemWidth(cfg) { 2212 const parentWidth = 2213 root.getBoundingClientRect().width || window.innerWidth; 2214 const usable = parentWidth - SIDE_PADDING; 2215 const totalGap = (cfg.count - 1) * GAP; 2216 return (usable - totalGap) / cfg.count; 2217 } 2218 2219 // centerActiveItem but clamp to available scroll range (so near edges active can be last/first) 2220 function centerActiveItem(active, cfg, itemWidth, smooth = true) { 2221 items = Array.from(list.querySelectorAll(ITEM)); 2222 if (!active) return; 2223 const index = items.indexOf(active); 2224 if (index === -1) return; 2225 2226 const step = itemWidth + GAP; 2227 const desired = index * step - cfg.center * step; 2228 const maxScroll = Math.max(0, list.scrollWidth - list.clientWidth); 2229 const scrollLeft = clamp(desired, 0, maxScroll); 2230 2231 if (smooth && "scrollTo" in list) { 2232 list.scrollTo({ left: scrollLeft, behavior: "smooth" }); 2233 } else { 2234 list.scrollLeft = scrollLeft; 2235 } 2236 } 2237 2238 // ---------- FIXED DISABLE LOGIC ---------- 2239 function updateControls() { 2240 if (!prevBtn || !nextBtn) return; 2241 if (!DISABLE_ARROWS) { 2242 prevBtn.classList.remove("disabled"); 2243 nextBtn.classList.remove("disabled"); 2244 return; 2245 } 2246 2247 if (INFINITE) { 2248 prevBtn.classList.remove("disabled"); 2249 nextBtn.classList.remove("disabled"); 2250 return; 2251 } 2252 2253 items = Array.from(list.querySelectorAll(ITEM)); 2254 const active = list.querySelector(".active"); 2255 const idx = active ? items.indexOf(active) : -1; 2256 if (idx <= 0) prevBtn.classList.add("disabled"); 2257 else prevBtn.classList.remove("disabled"); 2258 if (idx >= items.length - 1) nextBtn.classList.add("disabled"); 2259 else nextBtn.classList.remove("disabled"); 2260 } 2261 2262 // layout and initial centering 2263 function applyLayout() { 2264 items = Array.from(list.querySelectorAll(ITEM)); 2265 const cfg = getConfig(); 2266 if (!items.length) return; 2267 2268 const itemWidth = computeItemWidth(cfg); 2269 items.forEach((it) => (it.style.width = itemWidth + "px")); 2270 2271 let active = list.querySelector(".active"); 2272 if (!active) { 2273 active = items[cfg.center] || items[0]; 2274 active.classList.add("active"); 2275 } 2276 2277 centerActiveItem(active, cfg, itemWidth, false); 2278 updateControls(); 2279 applySwipeControl(); 2280 } 2281 2282 function step(delta) { 2283 const cfg = getConfig(); 2284 items = Array.from(list.querySelectorAll(ITEM)); 2285 if (!items.length) return; 2286 const active = list.querySelector(".active"); 2287 let idx = active ? items.indexOf(active) : 0; 2288 let target; 2289 2290 if (INFINITE) { 2291 target = idx + delta; 2292 if (target < 0) target = items.length - 1; 2293 if (target > items.length - 1) target = 0; 2294 } else { 2295 target = clamp(idx + delta, 0, items.length - 1); 2296 } 2297
2298 items.forEach((it, i) => it.classList.toggle("active", i === target)); 2299 const itemWidth = computeItemWidth(cfg); 2300 centerActiveItem(items[target], cfg, itemWidth, true); 2301 2302 // try scrolling page if allowed (single-shot) 2303 tryScrollPageOnce(); 2304 updateControls(); 2305 } 2306 2307 // attempt to perform the little page scroll once, only if we haven't already and user is near top 2308 function tryScrollPageOnce() { 2309 // Only scroll if we haven't already performed the programmatic scroll, 2310 // and the user hasn't manually scrolled down past the threshold. 2311 if (hasScrolledOnce) return; 2312 if (window.scrollY >= SCROLL_OFFSET) return; // user already scrolled down; don't auto-scroll 2313 // perform the one-time scroll 2314 window.scrollBy({ top: SCROLL_OFFSET, behavior: "smooth" }); 2315 hasScrolledOnce = true; 2316 } 2317 2318 function applySwipeControl() { 2319 if (!list) return; 2320 2321 if (DISABLE_SWIPE) { 2322 // stop touch swipe momentum 2323 list.style.touchAction = "pan-y"; 2324 2325 // stop horizontal wheel scroll 2326 list.addEventListener("wheel", preventScroll, { passive: false }); 2327 2328 // stop mouse drag scroll 2329 list.addEventListener("mousedown", preventScroll); 2330 2331 // stop touch drag scroll 2332 list.addEventListener("touchmove", preventScroll, { passive: false }); 2333 } else { 2334 list.style.touchAction = ""; 2335 2336 list.removeEventListener("wheel", preventScroll); 2337 list.removeEventListener("mousedown", preventScroll); 2338 list.removeEventListener("touchmove", preventScroll); 2339 } 2340 } 2341 2342 function preventScroll(e) { 2343 e.preventDefault(); 2344 } 2345 2346 // click on item => activate & center; then attempt page scroll (single-shot) 2347 list.addEventListener("click", (e) => { 2348 const item = e.target.closest(ITEM); 2349 if (!item) return; 2350 items = Array.from(list.querySelectorAll(ITEM)); 2351 items.forEach((it) => it.classList.remove("active")); 2352 item.classList.add("active"); 2353 2354 const cfg = getConfig(); 2355 const itemWidth = computeItemWidth(cfg); 2356 centerActiveItem(item, cfg, itemWidth, true); 2357 2358 tryScrollPageOnce(); 2359 updateControls(); 2360 }); 2361 2362 // prev/next handlers 2363 if (prevBtn) { 2364 prevBtn.addEventListener("click", () => { 2365 if (DISABLE_ARROWS && prevBtn.classList.contains("disabled")) return; 2366 step(-1); 2367 }); 2368 } 2369 2370 if (nextBtn) { 2371 nextBtn.addEventListener("click", () => { 2372 if (DISABLE_ARROWS && nextBtn.classList.contains("disabled")) return; 2373 step(+1); 2374 }); 2375 } 2376 2377 window.addEventListener("resize", () => { 2378 clearTimeout(window.__colResizeTimer); 2379 window.__colResizeTimer = setTimeout(applyLayout, 140); 2380 }); 2381 2382 window.addEventListener("load", applyLayout); 2383 2384 // expose API 2385 window.authorSimpleCenter = { 2386 refresh: applyLayout, 2387 next() { 2388 step(+1); 2389 }, 2390 prev() { 2391 step(-1); 2392 }, 2393 }; 2394 })(); 2395 } 2396 2397 revampCustomutils.columnsListSlider = columnsListSlider; 2398 2399 function articleVideoPreview() { 2400 $(".cmp-video-block").each(function () { 2401 const $videoBlock = $(this); 2402 const $previewIcon = $videoBlock.find(".cmp-video-block__icon-top"); 2403 const $overlay = $videoBlock.find(".cmp-video-block__overlay"); 2404 const $playerContainer = $videoBlock.find( 2405 ".cmp-video-block__inner--display" 2406 ); 2407 const $iframe = $playerContainer.find("iframe"); 2408 2409 const originalSrc = $iframe.attr("src"); 2410 2411 $previewIcon.on("click", function () { 2412 $overlay.hide(); 2413 $playerContainer.show(); 2414 2415 if (!$iframe.data("autoplay-started")) { 2416 const autoplaySrc = originalSrc.includes("autoplay") 2417 ? originalSrc 2418 : originalSrc + "&autoplay=1"; 2419 2420 $iframe.attr("src", autoplaySrc); 2421 $iframe.data("autoplay-started", true); 2422 } 2423 }); 2424 }); 2425 } 2426 2427 revampCustomutils.articleVideoPreview = articleVideoPreview; 2428 2429 function socialMediaShare() { 2430 $(".share-click").on("click", function () { 2431 $(this).toggleClass("open"); 2432 $(".shareboxwrp").slideToggle("fast"); 2433 }); 2434 } 2435 // Social Media Share 2436 function onScoll() { 2437 // Get the "Back to Top" button 2438 let goTopBtn = document.querySelector(".backto-top"); 2439 // Handle scrolling behavior 2440 window.onscroll = function () { 2441 if (window.scrollY >= 200) { 2442 goTopBtn.style.display = "inline-flex"; // Show the button when scrolled 200px or more 2443 } else { 2444 goTopBtn.style.display = "none"; // Hide the button when scrolled less than 200px 2445 } 2446 }; 2447 // Handle click event on the "Back to Top" button 2448 goTopBtn?.addEventListener("click", function (e) { 2449 e.preventDefault(); // Prevent the default anchor action 2450 window.scrollTo({ 2451 top: 0, // Scroll to the top of the page 2452 behavior: "smooth", // Smooth scrolling effect 2453 }); 2454 }); 2455 2456 $(document).on("click", 'a.nav-link[href^="#"]', function (event) { 2457 event.preventDefault(); 2458 $("html, body").animate( 2459 { 2460 scrollTop: $($.attr(this, "href")).offset().top - 50, 2461 }, 2462 150, 2463 ); 2464 }); 2465 2466 function stickyNav() { 2467 const header = document.querySelector(".cmp-header"); 2468 const headerBottom = document.querySelector(".cmp-header__bottom"); 2469 2470 if (!header || !headerBottom) return; 2471 2472 const placeholder = document.createElement("div"); 2473 2474 placeholder.style.display = "none"; 2475 2476 header.parentNode.insertBefore(placeholder, header.nextSibling); 2477 2478 const mq = window.matchMedia("(min-width: 768px)"); 2479 2480 let isSticky = false;
2481 let lastScrollTop = 2482 window.pageYOffset || document.documentElement.scrollTop; 2483 let scrollTicking = false; 2484 let resizeTicking = false; 2485 2486 function updatePlaceholderHeight() { 2487 const height = mq.matches 2488 ? headerBottom.offsetHeight 2489 : header.offsetHeight; 2490 placeholder.style.height = height + "px"; 2491 } 2492 2493 function setSticky(shouldStick) { 2494 if (shouldStick === isSticky) return; 2495 2496 isSticky = shouldStick; 2497 2498 if (shouldStick) { 2499 updatePlaceholderHeight(); 2500 2501 placeholder.style.display = "block"; 2502 2503 header.classList.add("sticky-nav"); 2504 } else { 2505 placeholder.style.display = "none"; 2506 header.classList.remove("sticky-nav"); 2507 } 2508 } 2509 2510 function handleScroll() { 2511 const scrollTop = 2512 window.pageYOffset || document.documentElement.scrollTop; 2513 const isDesktop = mq.matches; 2514 const triggerPoint = isDesktop ? 205 : 133; 2515 2516 let shouldStick; 2517 2518 if (isDesktop) { 2519 shouldStick = scrollTop >= triggerPoint; 2520 } else { 2521 const scrollingUp = scrollTop < lastScrollTop; 2522 shouldStick = scrollTop >= triggerPoint && scrollingUp; 2523 } 2524 2525 setSticky(shouldStick); 2526 2527 lastScrollTop = scrollTop <= 0 ? 0 : scrollTop; 2528 scrollTicking = false; 2529 } 2530 2531 function onScroll() { 2532 if (!scrollTicking) { 2533 window.requestAnimationFrame(handleScroll); 2534 scrollTicking = true; 2535 } 2536 } 2537 2538 function onResize() { 2539 if (!resizeTicking) { 2540 window.requestAnimationFrame(updatePlaceholderHeight); 2541 resizeTicking = true; 2542 setTimeout(() => { 2543 resizeTicking = false; 2544 }, 0); 2545 } 2546 } 2547 2548 function handleBreakpointChange() { 2549 isSticky = false; 2550 header.classList.remove("sticky-nav"); 2551 placeholder.style.display = "none"; 2552 updatePlaceholderHeight(); 2553 lastScrollTop = 2554 window.pageYOffset || document.documentElement.scrollTop; 2555 } 2556 2557 updatePlaceholderHeight(); 2558 2559 window.addEventListener("scroll", onScroll, { passive: true }); 2560 window.addEventListener("resize", onResize, { passive: true }); 2561 2562 if (mq.addEventListener) { 2563 mq.addEventListener("change", handleBreakpointChange); 2564 } else { 2565 mq.addListener(handleBreakpointChange); 2566 } 2567 } 2568 2569 stickyNav(); 2570 } 2571 2572 // Page scroll 2573 function modalPopup() { 2574 $(".cmp-list-gallery a").simpleLightbox({ 2575 showCaptions: true, 2576 appendTarget: "body", 2577 htmlClass: "slbActive", 2578 captionAttribute: "title", 2579 urlAttribute: "data-href", 2580 }); 2581 } 2582 revampCustomutils.modalPopup = modalPopup; 2583 // Image popup 2584 2585 function subMenu() { 2586 document.addEventListener("DOMContentLoaded", function () { 2587 // Select the menu toggle button and submenu using the specified selectors 2588 const menuToggle = document.querySelector( 2589 ".cmp-header__right-li--my-account .cmp-login-block .cmp-header__right-a" 2590 ); 2591 const submenu = document.querySelector( 2592 ".cmp-header__right-li--my-account .cmp-login-block .user-account__submenu" 2593 ); 2594 2595 // Function to handle the menu toggle (open/close) 2596 function toggleMenu() { 2597 submenu.classList.toggle("open"); // Toggle the 'open' class for the submenu 2598 menuToggle.classList.toggle("is-open"); // Toggle the 'is-open' class for the button 2599 } 2600 2601 // Add event listeners for both 'click' and 'touchstart' events 2602 menuToggle?.addEventListener("click", function (e) { 2603 e.stopPropagation(); // Prevent the click event from propagating to the document 2604 toggleMenu(); 2605 }); 2606 menuToggle?.addEventListener("touchstart", function (e) { 2607 e.preventDefault(); // Prevent the default touch action 2608 e.stopPropagation(); // Prevent the touch event from propagating to the document 2609 toggleMenu(); 2610 }); 2611 2612 // Close the dropdown if the user clicks outside of it 2613 document.addEventListener("click", function (e) { 2614 if (!submenu.contains(e.target) && !menuToggle.contains(e.target)) { 2615 submenu.classList.remove("open"); 2616 menuToggle.classList.remove("is-open"); 2617 } 2618 }); 2619 }); 2620 } 2621 2622 subMenu(); 2623 2624 document.addEventListener("DOMContentLoaded", () => { 2625 detectIosDevice(); 2626 headerSubMenu(); 2627 socialMediaShare(); 2628 // modalPopup(); 2629 // sliderModule(); 2630 // articlePhotoGallery(); 2631 onScoll(); 2632 megamenu(); 2633 groupMenuItem(); 2634 subscriptionsMenu(); 2635 seachModal(); 2636 shareArticle(); 2637 fontLargeArticleDrop(); 2638 fontSizeChange(); 2639 sortDrop(); 2640 // mainNavMoreMenu(); 2641 menu(); 2642 }); 2643})(jQuery); 2644 2645revampCustomutils.observeElementIntersection = function (targetEle, callbackExe, repeat) { 2646 let wH = window.innerHeight; 2647 let elementObserver = new IntersectionObserver((entries) => {
2648 entries.forEach(entry => { 2649 if (entry.isIntersecting) { 2650 callbackExe(); 2651 if (!repeat) { 2652 elementObserver.unobserve(targetEle); 2653 } 2654 } 2655 }); 2656 }, { rootMargin: `${wH}px 0px ${wH}px 0px` }); 2657 return elementObserver; 2658} 2659 2660function initTabNavClick() { 2661 $(".tab__nav-ul a.tab__nav-a").off("click").on("click", function (e) { 2662 e.preventDefault(); 2663 const $this = $(this); 2664 const $tab = $this.closest("li"); 2665 const categoryId = $tab.attr("id"); 2666 if (!categoryId) return; 2667 2668 const categorySelector = `[aria-labelledby='${categoryId}']`; 2669 const $tabContainer = $(".cmp-nav-tab__content"); 2670 const $allItems = $tabContainer.find(".cmp-nav-tab__item"); 2671 const $targetBlock = $allItems.filter(categorySelector); 2672 2673 const afterLazy = function () { 2674 // Switch tab visibility AFTER content is ready 2675 $tab.addClass("active").siblings().removeClass("active"); 2676 $targetBlock.addClass("active").siblings().removeClass("active"); 2677 2678 const $slider = $targetBlock.find('.cmp-story-list--slider'); 2679 if (!$slider.length || typeof $.fn.slick !== 'function') return; 2680 2681 if ($slider.hasClass("slick-initialized")) { 2682 const trackWidth = $slider.find(".slick-track").width(); 2683 if (trackWidth === 0) { 2684 try { $slider.slick("unslick"); } catch (ex) {} 2685 } 2686 } 2687 2688 if ($slider.hasClass("slick-initialized")) { 2689 try { 2690 $slider.slick('setPosition'); 2691 $slider.slick('slickGoTo', 0, true); 2692 $slider.slick('slickPlay'); 2693 } catch (ex) {} 2694 } else { 2695 if ($slider.closest('.latest-issues-slider').length) { 2696 revampCustomutils.latestIssueModule(); 2697 } else { 2698 revampCustomutils.initCarouselSlider($slider); 2699 } 2700 } 2701 2702 // Pause sliders in sibling (inactive) tabs 2703 $allItems.not($targetBlock).each(function () { 2704 var $otherSlider = $(this).find('.cmp-story-list--slider'); 2705 if ($otherSlider.hasClass('slick-initialized')) { 2706 try { $otherSlider.slick('slickPause'); } catch (ex) {} 2707 } 2708 }); 2709 2710 $slider.off('afterChange.unveil').on('afterChange.unveil', function () { 2711 $(".lazyload").unveil(); 2712 }); 2713 }; 2714 2715 if ( 2716 $targetBlock.hasClass("mm-component-cont-lazy") && 2717 $targetBlock.hasClass("cont-onclick") && 2718 typeof lazyloadHandler === 'function' 2719 ) { 2720 // Temporarily make target visible off-screen so slick can measure, 2721 // but don't visually switch the tab yet. 2722 $targetBlock.css({ 2723 position: 'absolute', 2724 visibility: 'hidden', 2725 display: 'block' 2726 }); 2727 2728 lazyloadHandler($targetBlock[0]).then(function () { 2729 // Remove the off-screen styles 2730 $targetBlock.css({ 2731 position: '', 2732 visibility: '', 2733 display: '' 2734 }); 2735 2736 // Now switch the tab â content is loaded 2737 setTimeout(afterLazy, 300); 2738 }); 2739 } else { 2740 afterLazy(); 2741 } 2742 }); 2743} 2744 2745$(document).ready(function () { 2746 initTabNavClick(); 2747}); 2748document.addEventListener("DOMContentLoaded", (event) => { 2749 try { 2750 document.querySelectorAll('.xf-cont-lazy:not(.cont-onclick), .mm-component-cont-lazy:not(.cont-onclick)').forEach(element => { 2751 let observer = revampCustomutils.observeElementIntersection(element, function () { lazyloadHandler(element) }, false); 2752 if (element) { observer.observe(element) } 2753 }); 2754 2755 } catch (error) { 2756 console.log("error while lazyloading the component", error) 2757 } 2758}); 2759document.addEventListener("DOMContentLoaded", (event) => { 2760 try { 2761 if(document.querySelector(".cmp-pagination__controls")){ 2762 generatePagination(); 2763 } 2764 document.querySelectorAll('.cont-onload').forEach(element => { 2765 lazyloadHandler(element) 2766 }); 2767 2768 } catch (error) { 2769 console.log("error while listcontainer onload", error) 2770 } 2771}); 2772 2773class Pagination { 2774 constructor(totalResults, perPage, totalPages) { 2775 this.totalResults = totalResults; 2776 this.perPage = perPage; 2777 this.totalPages = totalPages ? parseInt(totalPages) : Math.ceil(this.totalResults / this.perPage); 2778 } 2779 2780 getWebPages(currentPage) { 2781 let pages = []; 2782 pages.push("Previous"); 2783 pages.push(1); // Always show the first page 2784 2785 if (this.totalPages <= 5) { 2786 for (let i = 2; i <= this.totalPages; i++) { 2787 pages.push(i); 2788 } 2789 } else { 2790 // If the currentPage is the third 2791 if (currentPage === 3) { 2792 pages.push(2); 2793 pages.push(currentPage); 2794 pages.push(currentPage + 1); 2795 pages.push("more"); 2796 } 2797 // If the currentPage is among the first three but not the third 2798 else if (currentPage < 3) { 2799 pages.push(2); 2800 pages.push(3); 2801 pages.push("more"); 2802 }// If the currentPage is the third last 2803 else if (currentPage === this.totalPages - 2) { 2804 pages.push("more"); 2805 pages.push(currentPage - 1); 2806 pages.push(currentPage); 2807 pages.push(currentPage + 1); 2808 }// If the currentPage is the second last 2809 else if (currentPage === this.totalPages - 1) { 2810 pages.push("more"); 2811 pages.push(this.totalPages - 2); 2812 pages.push(currentPage); 2813 }// If the currentPage is the last 2814 else if (currentPage === this.totalPages) { 2815 pages.push("more"); 2816 pages.push(this.totalPages - 2); 2817 pages.push(this.totalPages - 1); 2818 }// General middle case 2819 else { 2820 pages.push("more"); 2821 pages.push(currentPage - 1); 2822 pages.push(currentPage); 2823 pages.push(currentPage + 1); 2824 pages.push("more"); 2825 } 2826 } 2827 2828 if (this.totalPages > 5 && this.totalPages !== 1) pages.push(this.totalPages); 2829 pages.push("Next"); 2830 return pages; 2831 } 2832 2833 getMobPages(currentPage) { 2834 let pages = []; 2835 pages.push("Previous"); 2836 2837 if (this.totalPages <= 4) { 2838 for (let i = 1; i <= this.totalPages; i++) { 2839 pages.push(i); 2840 } 2841 } else { 2842 pages.push(1); 2843 if (currentPage <= 3) { 2844 pages.push(2); 2845 pages.push(3); 2846 if (this.totalPages !== 4) { 2847 // Prevent displaying dots if total pages are 4 2848 pages.push("more"); 2849 } 2850 } else if (currentPage === this.totalPages) { 2851 pages.push("more"); 2852 pages.push(this.totalPages - 1); 2853 } else if (currentPage === this.totalPages - 1) { 2854 pages.push("more"); 2855 pages.push(currentPage); 2856 } else { 2857 pages.push("more"); 2858 pages.push(currentPage); 2859 pages.push("more"); 2860 } 2861 pages.push(this.totalPages); 2862 } 2863 2864 pages.push("Next"); 2865 return pages; 2866 } 2867} 2868 2869function getQueryParameterByName(name, url = window.location.href) { 2870 name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
2871 let regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), 2872 results = regex.exec(url); 2873 return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); 2874} 2875 2876function generateUrlWithPageParameter(pageNumber) { 2877 let url = new URL(window.location.href); 2878 let params = url.searchParams; 2879 params.set("page", pageNumber); 2880 return url.toString(); 2881} 2882 2883function generatePagination() { 2884 let div = document.querySelector(".cmp-pagination__controls"); 2885 if(div){ 2886 let totalResults = div.getAttribute("data-total"); 2887 let perPage = div.getAttribute("data-perpage"); 2888 // Hide pagination-block entirely when there are no results. 2889 // When there are results: always show pagination-block (so cmp-pagination__info stays visible), 2890 // but only show cmp-pagination__controls when results exceed the per-page limit. 2891 var paginationBlock = document.querySelector(".pagination-block"); 2892 if (paginationBlock) paginationBlock.style.display = parseInt(totalResults) > 0 ? "" : "none"; 2893 if (parseInt(totalResults) <= parseInt(perPage)) { 2894 div.setAttribute("style", "display:none"); 2895 return; 2896 } else { 2897 div.setAttribute("style", "display:flex"); 2898 } 2899 let totalPages = div.getAttribute("data-pages") ? div.getAttribute("data-pages") : ""; 2900 let pagination = new Pagination(totalResults, perPage, totalPages); 2901 2902 let currentPage = parseInt(getQueryParameterByName("page"), 10); 2903 currentPage = isNaN(currentPage) || currentPage < 1 ? 1 : currentPage; 2904 if (currentPage > pagination.totalPages) { 2905 currentPage = pagination.totalPages; 2906 } 2907 let pages; 2908 if (screen.width >= 480) { 2909 pages = pagination.getWebPages(currentPage); 2910 } else { 2911 pages = pagination.getMobPages(currentPage); 2912 } 2913 2914 div.innerHTML = ""; 2915 let ul = document.createElement("ul"); 2916 ul.className = "cmp-pagination__ul d-flex align-items-center"; 2917 2918 let prv = document.createElement("a"); 2919 prv.href = generateUrlWithPageParameter(Math.max(1, currentPage - 1)); 2920 prv.className = "cmp-pagination__btn cmp-pagination__btn--prev mm-btn"; 2921 prv.innerHTML = "<span><i class='mm-icon mm-icon__arrow-right-lg'></i> </span>"; 2922 prv.title = "Prev"; 2923 2924 if (currentPage === 1 || currentPage === 0) { 2925 prv.classList.add("disabled"); 2926 } 2927 2928 div.appendChild(prv); 2929 2930 for (let page of pages) { 2931 let li = document.createElement("li"); 2932 li.className = "cmp-pagination__li"; 2933 2934 if (typeof page === "number" || page === "more") { 2935 let a = document.createElement("a"); 2936 if (page !== "more") { 2937 a.href = generateUrlWithPageParameter(page); 2938 } 2939 2940 a.className = "cmp-pagination__btn mm-btn"; 2941 if (page === currentPage) { 2942 a.classList.add("cmp-pagination__btn--active"); 2943 } 2944 2945 if (page === "more") { 2946 a.innerHTML = "<span><i class='mm-icon mm-icon__more-vertical'></i></span>"; 2947 a.title = "More" 2948 } else { 2949 a.innerHTML = "<span>" + page + "</span>"; 2950 a.title = page; 2951 } 2952 2953 li.appendChild(a); 2954 ul.appendChild(li); 2955 } 2956 } 2957 2958 div.appendChild(ul); 2959 2960 let nxt = document.createElement("a"); 2961 nxt.href = generateUrlWithPageParameter(Math.min(pagination.totalPages, currentPage + 1)); 2962 nxt.className = "cmp-pagination__btn cmp-pagination__btn--prev mm-btn"; 2963 nxt.innerHTML = "<span><i class='mm-icon mm-icon__arrow-left-lg'></i> </span>"; 2964 nxt.title = "Next"; 2965 2966 if (currentPage === pagination.totalPages) { 2967 nxt.classList.add("disabled"); 2968 } 2969 2970 div.appendChild(nxt); 2971 } 2972} 2973 2974 2975function lazyLoadScreenWidth(tempEle) { 2976 let root = tempEle.documentElement ? tempEle.documentElement : tempEle; 2977 root.querySelectorAll(".lazyload").forEach(function(lazyLoadItem) { 2978 let lazyLoadItemSrc; 2979 if (screen.width >= 991) { 2980 lazyLoadItemSrc = lazyLoadItem.dataset.websrc; 2981 } else if (screen.width < 991 && screen.width >= 575) { 2982 lazyLoadItemSrc = lazyLoadItem.dataset.tabsrc; 2983 } else { 2984 lazyLoadItemSrc = lazyLoadItem.dataset.mobsrc; 2985 } 2986 if (lazyLoadItemSrc) { 2987 lazyLoadItem.classList.remove("lazyload"); 2988 lazyLoadItem.src = lazyLoadItemSrc; 2989 } 2990 }); 2991} 2992 2993 2994function handleCarouselSlider(element){ 2995 if (element.querySelector('.collectioncomponentlisting .story-categeory-list-block.slick-slider')) {
2996 revampCustomutils.categeoryCarouselModule(); 2997 } 2998 if (element.querySelector('.collectioncomponentlisting .video-list-block .cmp-video-list-block .story-slider-block__content-block .cmp-story-list--slider')) { 2999 revampCustomutils.initCarouselSlider('.collectioncomponentlisting .video-list-block .cmp-video-list-block .story-slider-block__content-block .cmp-story-list--slider'); 3000 } 3001 if (element.querySelector('.story-slider-block.latest-issues-slider .story-slider-block__content-block .cmp-story-list--slider')) { 3002 revampCustomutils.latestIssueModule(); 3003 } 3004 if (element.querySelector('.story-slider-block.story-card-list-block .story-slider-block__content-block .cmp-story-list--slider')) { 3005 revampCustomutils.articleCarouselModule(); 3006 } 3007 if (element.querySelector('.story-slider-block.magazine-slider-block .story-slider-block__content-block .cmp-story-list--slider')) { 3008 revampCustomutils.magazineCarouselModule(); 3009 } 3010 if (element.querySelector('.cmp-video-list-block .story-slider-block__content-block .cmp-story-list--slider:not(.slick-initialized)')) { 3011 revampCustomutils.initCarouselSlider('.cmp-video-list-block .story-slider-block__content-block .cmp-story-list--slider:not(.slick-initialized)'); 3012 } 3013 if (element.querySelector('.story-slider-block.visual-stories-block .story-slider-block__content-block .cmp-story-list--slider')) { 3014 revampCustomutils.visualStoriesCarouselModule(); 3015 } 3016 if (element.querySelector('.opinion-block-list-slider .story-list-block.opinion-block .story-list-block__content-block .cmp-story-list')) { 3017 revampCustomutils.opinionCarouselModule(); 3018 } 3019 if (element.querySelector('.story-slider-block.beats-stories-block .story-slider-block__content-block .cmp-story-list--slider')) { 3020 revampCustomutils.initCarouselSlider('.story-slider-block.beats-stories-block .story-slider-block__content-block .cmp-story-list--slider'); 3021 } 3022 if (element.querySelector('.shorts-slide-1 .story-list-block__content-block .cmp-story-list')) { 3023 revampCustomutils.initCarouselSlider('.shorts-slide-1 .story-list-block__content-block .cmp-story-list'); 3024 } 3025 if (element.querySelector('.shorts-slide-2 .story-list-block__content-block .cmp-story-list')) { 3026 revampCustomutils.initCarouselSlider('.shorts-slide-2 .story-list-block__content-block .cmp-story-list'); 3027 } 3028 if (element.querySelector('.story-slider-block.shots-stories-block .story-slider-block__content-block .cmp-story-list--slider')) { 3029 revampCustomutils.initCarouselSlider('.story-slider-block.shots-stories-block .story-slider-block__content-block .cmp-story-list--slider'); 3030 } 3031 if(document.querySelector(".cmp-pagination__controls")){ 3032 generatePagination(); 3033 } 3034 if(document.querySelector(".cmp-channel-block__nav")){ 3035 if (typeof revampCustomutils.menuGrouping === 'function') { 3036 revampCustomutils.menuGrouping(); 3037 } 3038 } 3039 if(document.querySelector(".story-list-block.moreInarticle-story-block")){ 3040 revampCustomutils.listShowMore(); 3041 } 3042 if(element.querySelector(".story-list-block.morefromvideos-block")){ 3043 revampCustomutils.morefromvideosPagination(); 3044 } 3045 if(element.querySelector(".tab__nav-ul")){ 3046 initTabNavClick(); 3047 } 3048} 3049 3050 3051function lazyloadHandler(element) { 3052 return new Promise(function(resolve) { 3053 try { 3054 if(element.classList.contains("cont-loaded")) { resolve(); return; } 3055 const url = element.getAttribute('data-lazy-url'); 3056 let scriptsEval = document.createElement("div"); 3057 let tempEle = document.createElement 3058 if (url) { 3059 const xhr = new XMLHttpRequest(); 3060 xhr.open('GET', url, true); 3061 xhr.onload = () => { 3062 if (xhr.status >= 200 && xhr.status < 300) { 3063 scriptsEval = new DOMParser().parseFromString(xhr.responseText, "text/html"); 3064 tempEle = new DOMParser().parseFromString(xhr.responseText, "text/html"); 3065 tempEle.documentElement.querySelectorAll("script").forEach(scripts => { 3066 if (scripts.type != "application/json" && scripts.type != "application/ld+json") { 3067 scripts.remove(); 3068 } 3069 }); 3070 lazyLoadScreenWidth(tempEle); 3071 element.innerHTML = tempEle.documentElement.innerHTML; 3072 scriptsEval.documentElement.querySelectorAll("script").forEach(scripts => { 3073 if (scripts.type != "application/json" && scripts.type != "application/ld+json") { 3074 eval(scripts.innerHTML.trim()); 3075 } 3076 }); 3077 element.classList.remove("cont-initial"); 3078 element.classList.remove("cont-onclick") 3079 element.classList.add("cont-loaded"); 3080 3081 handleCarouselSlider(element); 3082 3083 } else { 3084 console.error(`Request failed with status ${xhr.status}`); 3085 } 3086 resolve(); 3087 }; 3088 xhr.onerror = () => { 3089 console.error('Network error occurred'); 3090 resolve(); 3091 }; 3092 try { 3093 xhr.send(); 3094 } catch (error) { 3095 console.error('An error occurred during the request:', error); 3096 resolve(); 3097 } 3098 } else { 3099 resolve(); 3100 } 3101 } catch (error) { 3102 console.log("err >>>",error) 3103 resolve(); 3104 } 3105 }); 3106} 3107 3108// Search component 3109revampCustomutils.searchComponent = function () { 3110 const $switchLanguage = $('.cmp-search-popup__switch-language input[type="checkbox"]'); 3111 const $searchInput = $('.cmp-search-popup__input'); 3112 const $searchButton = $('.cmp-search-popup__btn'); 3113 let enPlaceHold; 3114 let searchURL; 3115 let searchVal; 3116 $switchLanguage.on('change', function() { 3117 console.log('clicked') 3118 const $ele = $(this); 3119 const isChecked = $ele.is(':checked'); 3120 const wrap = $ele.closest('.cmp-search-popup__filed-block'); 3121 const inputWrp = wrap.find('.cmp-search-popup__input-wrp'); 3122 const indicaElement = inputWrp.find('[id^="Indica_Wrapper"]'); 3123 if (isChecked) { 3124 let randNum = Math.floor(Math.random() * 1000); 3125 let newWrapId = 'search-mal-' + randNum; 3126 let Indica_Wrapper = 'Indica_Wrapper-' + randNum; 3127 3128 if(!inputWrp.attr('id')) { 3129 3130 wrap.find('.cmp-search-popup__input-wrp').attr({ 3131 'id': newWrapId, 3132 'data-language': 'malayalam', 3133 'data-keyboard': 'phonetic-mal' 3134 }); 3135 wrap.find('.cmp-search-popup__input-wrp input').val('') 3136 enPlaceHold = wrap.find('.cmp-search-popup__input-wrp input').attr('placeholder') 3137 3138 if(document.getElementById(Indica_Wrapper) === null){ 3139 new MMEditorSearch(document.getElementById(newWrapId), newWrapId, Indica_Wrapper); 3140 3141 } 3142 3143 } 3144 3145 }else{ 3146 inputWrp.find('.cmp-search-popup__input').removeAttr('id').removeAttr('placeholder'); 3147 inputWrp.find('.cmp-search-popup__input').attr('placeholder', enPlaceHold) 3148 inputWrp.removeAttr('id').removeAttr('data-language').removeAttr('data-keyboard'); 3149 const indicaCont = indicaElement.html(); 3150 indicaElement.replaceWith(indicaCont); 3151 } 3152 inputWrp.find('.cmp-search-popup__input').focus(); 3153 3154 }); 3155 $searchInput.on('keypress', function(e) { 3156 if (e.keyCode === 13) { 3157 searchVal = $(this).val(); 3158 searchURL = $(this).data('url'); 3159 searchResult(searchVal, searchURL, $(this)); 3160 } 3161 }); 3162 $searchButton.on('click', function() { 3163 const inpEle = $(this).closest('.cmp-search-popup__input-wrp').find('.cmp-search-popup__input'); 3164 searchVal = inpEle.val(); 3165 searchURL = inpEle.data('url'); 3166 searchResult(searchVal, searchURL, $(this)); 3167 }); 3168 function searchResult(val,url,ele) { 3169 if (val && url) { 3170 if (url.includes("/content/week/en")) { 3171 url = url.replace("/content/week/en", ""); 3172 } 3173 window.adobeDataLayer.push({ 3174 event: "search", 3175 searched_query: val 3176 }); 3177 const redirectUrl = url + encodeURI(val); 3178 window.location.href = redirectUrl; 3179 } 3180 } 3181} 3182revampCustomutils.vuukleComment = function () { 3183 $("#vuukleComment").on('click', function () { 3184 $('html, body').animate({ 3185 'scrollTop': $('#comments').offset().top - $('header').outerHeight() 3186 }, 2000); 3187 }); 3188} 3189$(function () { 3190 revampCustomutils.searchComponent(); 3191 revampCustomutils.vuukleComment(); 3192}); 3193$(() => { 3194 try { 3195 getDeviceType(); 3196 } catch (error) {} 3197}); 3198 3199$(window).on("orientationchange", (event) => { 3200 getDeviceType(); 3201}); 3202 3203const getDeviceType = () => { 3204 const docWidth = $(window).width(); 3205 if (docWidth > 991) { 3206 displayImages("web"); 3207 } else if (575 < docWidth && docWidth <= 991) { 3208 displayImages("tab"); 3209 } else { 3210 displayImages("mob"); 3211 } 3212}; 3213 3214const displayImages = (dType) => { 3215 const imageLength = $("img.lazyload").length; 3216 const imageDomain = $("#websiteImageDomain").val() || ""; 3217 for (let i = 0; i < imageLength; i++) { 3218 let attrFind = $($("img.lazyload")[i]).attr(`data-${dType}src`); 3219 3220 if (attrFind) { 3221 attrFind = `${imageDomain}${attrFind}`; 3222 $($("img.lazyload")[i]).attr("data-src", `${attrFind}`); 3223 } else { 3224 // console.log("Error in LazyLoading Images"); 3225 } 3226 } 3227 3228 $(".lazyload").unveil().on("load", function() { 3229 $(this).removeClass("lazyload").addClass("loaded"); 3230 }); 3231}; 3232(function ($) { 3233 revampCustomutils.menuGrouping(); 3234})(jQuery); 3235
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.