/** * This file uses jQuery materials and hashchange plugin licensed under the MIT license * Portions, Copyright (c) 2010 "Cowboy" Ben Alman * http://benalman.com/projects/jquery-hashchange-plugin/ * Portions, Copyright 2012 jQueryFoundation and other contributors * http://jquery.com/ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */if(function(a,b){function c(){if(!s.isReady){try{v.documentElement.doScroll("left")}catch(a){return void setTimeout(c,1)}s.ready()}}function d(a,b){b.src?s.ajax({url:b.src,async:!1,dataType:"script"}):s.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function e(a,c,d,f,g,h){var i=a.length;if("object"==typeof c){for(var j in c)e(a,j,c[j],f,g,d);return a}if(d!==b){for(f=!h&&f&&s.isFunction(d),j=0;j)[^>]*$|^#([\w-]+)$/,x=/^.[^:#\[\.,]*$/,y=/\S/,z=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,B=navigator.userAgent,C=!1,D=[],E=Object.prototype.toString,F=Object.prototype.hasOwnProperty,G=Array.prototype.push,H=Array.prototype.slice,I=Array.prototype.indexOf;s.fn=s.prototype={init:function(a,c){var d,e;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!c)return this.context=v,this[0]=v.body,this.selector="body",this.length=1,this;if("string"==typeof a){if(!(d=w.exec(a))||!d[1]&&c)return!c&&/^\w+$/.test(a)?(this.selector=a,this.context=v,a=v.getElementsByTagName(a),s.merge(this,a)):!c||c.jquery?(c||q).find(a):s(c).find(a);if(d[1])return e=c?c.ownerDocument||c:v,(a=A.exec(a))?s.isPlainObject(c)?(a=[v.createElement(a[1])],s.fn.attr.call(a,c,!0)):a=[e.createElement(a[1])]:(a=n([d[1]],[e]),a=(a.cacheable?a.fragment.cloneNode(!0):a.fragment).childNodes),s.merge(this,a);if(c=v.getElementById(d[2])){if(c.id!==d[2])return q.find(a);this.length=1,this[0]=c}return this.context=v,this.selector=a,this}return s.isFunction(a)?q.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),s.makeArray(a,this))},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return H.call(this,0)},get:function(a){return null==a?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,c){var d=s();return s.isArray(a)?G.apply(d,a):s.merge(d,a),d.prevObject=this,d.context=this.context,"find"===b?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return s.each(this,a,b)},ready:function(a){return s.bindReady(),s.isReady?a.call(v,s):D&&D.push(a),this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(H.apply(this,arguments),"slice",H.call(arguments).join(","))},map:function(a){return this.pushStack(s.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||s(null)},push:G,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var a,c,d,e,f=arguments[0]||{},g=1,h=arguments.length,i=!1;for("boolean"==typeof f&&(i=f,f=arguments[1]||{},g=2),"object"==typeof f||s.isFunction(f)||(f={}),h===g&&(f=this,--g);g
a";var g=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0];if(g&&g.length&&h){s.support={leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:"/a"===h.getAttribute("href"),opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:"on"===d.getElementsByTagName("input")[0].value,optSelected:v.createElement("select").appendChild(v.createElement("option")).selected,parentNode:null===d.removeChild(d.appendChild(v.createElement("div"))).parentNode,deleteExpando:!0,checkClone:!1,scriptEval:!1,noCloneEvent:!0,boxModel:null},c.type="text/javascript";try{c.appendChild(v.createTextNode("window."+e+"=1;"))}catch(i){}b.insertBefore(c,b.firstChild),a[e]&&(s.support.scriptEval=!0,delete a[e]);try{delete c.test}catch(j){s.support.deleteExpando=!1}b.removeChild(c),d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",function k(){s.support.noCloneEvent=!1,d.detachEvent("onclick",k)}),d.cloneNode(!0).fireEvent("onclick")),d=v.createElement("div"),d.innerHTML="",b=v.createDocumentFragment(),b.appendChild(d.firstChild),s.support.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,s(function(){var a=v.createElement("div");a.style.width=a.style.paddingLeft="1px",v.body.appendChild(a),s.boxModel=s.support.boxModel=2===a.offsetWidth,v.body.removeChild(a).style.display="none"}),b=function(a){var b=v.createElement("div");a="on"+a;var c=a in b;return c||(b.setAttribute(a,"return;"),c="function"==typeof b[a]),c},s.support.submitBubbles=b("submit"),s.support.changeBubbles=b("change"),b=c=d=g=h=null}}(),s.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var J="jQuery"+f(),K=0,L={};s.extend({cache:{},expando:J,noData:{embed:!0,object:!0,applet:!0},data:function(c,d,e){if(!c.nodeName||!s.noData[c.nodeName.toLowerCase()]){c=c==a?L:c;var f=c[J],g=s.cache;return f||"string"!=typeof d||e!==b?(f||(f=++K),"object"==typeof d?(c[J]=f,g[f]=s.extend(!0,{},d)):g[f]||(c[J]=f,g[f]={}),c=g[f],e!==b&&(c[d]=e),"string"==typeof d?c[d]:c):null}},removeData:function(b,c){if(!b.nodeName||!s.noData[b.nodeName.toLowerCase()]){b=b==a?L:b;var d=b[J],e=s.cache,f=e[d];c?f&&(delete f[c],s.isEmptyObject(f)&&s.removeData(b)):(s.support.deleteExpando?delete b[s.expando]:b.removeAttribute&&b.removeAttribute(s.expando),delete e[d])}}}),s.fn.extend({data:function(a,c){if("undefined"==typeof a&&this.length)return s.data(this[0]);if("object"==typeof a)return this.each(function(){s.data(this,a)});var d=a.split(".");if(d[1]=d[1]?"."+d[1]:"",c===b){var e=this.triggerHandler("getData"+d[1]+"!",[d[0]]);return e===b&&this.length&&(e=s.data(this[0],a)),e===b&&d[1]?this.data(d[0]):e}return this.trigger("setData"+d[1]+"!",[d[0],c]).each(function(){s.data(this,a,c)})},removeData:function(a){return this.each(function(){s.removeData(this,a)})}}),s.extend({queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var d=s.data(a,b);return c?(!d||s.isArray(c)?d=s.data(a,b,s.makeArray(c)):d.push(c),d):d||[]}},dequeue:function(a,b){b=b||"fx";var c=s.queue(a,b),d=c.shift();"inprogress"===d&&(d=c.shift()),d&&("fx"===b&&c.unshift("inprogress"),d.call(a,function(){s.dequeue(a,b)}))}}),s.fn.extend({queue:function(a,c){return"string"!=typeof a&&(c=a,a="fx"),c===b?s.queue(this[0],a):this.each(function(){var b=s.queue(this,a,c);"fx"===a&&"inprogress"!==b[0]&&s.dequeue(this,a)})},dequeue:function(a){return this.each(function(){s.dequeue(this,a)})},delay:function(a,b){return a=s.fx?s.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(){var c=this;setTimeout(function(){s.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var M=/[\n\t]/g,N=/\s+/,O=/\r/g,P=/href|src|style/,Q=/(button|input)/i,R=/(button|input|object|select|textarea)/i,S=/^(a|area)$/i,T=/radio|checkbox/;s.fn.extend({attr:function(a,b){return e(this,a,b,!0,s.attr)},removeAttr:function(a){return this.each(function(){s.attr(this,a,""),1===this.nodeType&&this.removeAttribute(a)})},addClass:function(a){if(s.isFunction(a))return this.each(function(b){var c=s(this);c.addClass(a.call(this,b,c.attr("class")))});if(a&&"string"==typeof a)for(var b=(a||"").split(N),c=0,d=this.length;c-1)return!0;return!1},val:function(a){if(a===b){var c=this[0];if(c){if(s.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(s.nodeName(c,"select")){var d=c.selectedIndex,e=[],f=c.options;if(c="select-one"===c.type,d<0)return null;var g=c?d:0;for(d=c?d+1:f.length;g=0;else if(s.nodeName(this,"select")){var e=s.makeArray(d);s("option",this).each(function(){this.selected=s.inArray(s(this).val(),e)>=0}),e.length||(this.selectedIndex=-1)}else this.value=d})}}),s.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){if(!a||3===a.nodeType||8===a.nodeType)return b;if(e&&c in s.attrFn)return s(a)[c](d);e=1!==a.nodeType||!s.isXMLDoc(a);var f=d!==b;if(c=e&&s.props[c]||c,1===a.nodeType){var g=P.test(c);return c in a&&e&&!g?(f&&("type"===c&&Q.test(a.nodeName)&&a.parentNode&&s.error("type property can't be changed"),a[c]=d),s.nodeName(a,"form")&&a.getAttributeNode(c)?a.getAttributeNode(c).nodeValue:"tabIndex"===c?(c=a.getAttributeNode("tabIndex"))&&c.specified?c.value:R.test(a.nodeName)||S.test(a.nodeName)&&a.href?0:b:a[c]):!s.support.style&&e&&"style"===c?(f&&(a.style.cssText=""+d),a.style.cssText):(f&&a.setAttribute(c,""+d),a=!s.support.hrefNormalized&&e&&g?a.getAttribute(c,2):a.getAttribute(c),null===a?b:a)}return s.style(a,c,d)}});var U=/\.(.*)$/,V=function(a){return a.replace(/[^\w\s\.\|`]/g,function(a){return"\\"+a})};s.event={add:function(c,d,e,f){if(3!==c.nodeType&&8!==c.nodeType){c.setInterval&&c!==a&&!c.frameElement&&(c=a);var g,h;if(e.handler&&(g=e,e=g.handler),e.guid||(e.guid=s.guid++),h=s.data(c)){var i=h.events=h.events||{},j=h.handle;j||(h.handle=j=function(){return"undefined"==typeof s||s.event.triggered?b:s.event.handle.apply(j.elem,arguments)}),j.elem=c,d=d.split(" ");for(var k,l,m=0;k=d[m++];){h=g?s.extend({},g):{handler:e,data:f},k.indexOf(".")>-1?(l=k.split("."),k=l.shift(),h.namespace=l.slice(0).sort().join(".")):(l=[],h.namespace=""),h.type=k,h.guid=e.guid;var n=i[k],o=s.event.special[k]||{};n||(n=i[k]=[],o.setup&&o.setup.call(c,f,l,j)!==!1||(c.addEventListener?c.addEventListener(k,j,!1):c.attachEvent&&c.attachEvent("on"+k,j))),o.add&&(o.add.call(c,h),h.handler.guid||(h.handler.guid=e.guid)),n.push(h),s.event.global[k]=!0}c=null}}},global:{},remove:function(a,b,c,d){if(3!==a.nodeType&&8!==a.nodeType){var e,f,g,h,i,j,k,l=0,m=s.data(a),n=m&&m.events;if(m&&n)if(b&&b.type&&(c=b.handler,b=b.type),!b||"string"==typeof b&&"."===b.charAt(0)){b=b||"";for(e in n)s.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[l++];)if(i=e,f=e.indexOf(".")<0,g=[],f||(g=e.split("."),e=g.shift(),h=new RegExp("(^|\\.)"+s.map(g.slice(0).sort(),V).join("\\.(?:.*\\.)?")+"(\\.|$)")),j=n[e])if(c){for(i=s.event.special[e]||{},o=d||0;o=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),d||(a.stopPropagation(),s.event.global[f]&&s.each(s.cache,function(){this.events&&this.events[f]&&s.event.trigger(a,c,this.handle.elem)})),!d||3===d.nodeType||8===d.nodeType)return b;a.result=b,a.target=d,c=s.makeArray(c),c.unshift(a)}a.currentTarget=d,(e=s.data(d,"handle"))&&e.apply(d,c),e=d.parentNode||d.ownerDocument;try{d&&d.nodeName&&s.noData[d.nodeName.toLowerCase()]||d["on"+f]&&d["on"+f].apply(d,c)===!1&&(a.result=!1)}catch(g){}if(!a.isPropagationStopped()&&e)s.event.trigger(a,c,e,!0);else if(!a.isDefaultPrevented()){e=a.target;var h,i=s.nodeName(e,"a")&&"click"===f,j=s.event.special[f]||{};if(!(j._default&&j._default.call(d,a)!==!1||i||e&&e.nodeName&&s.noData[e.nodeName.toLowerCase()])){try{e[f]&&((h=e["on"+f])&&(e["on"+f]=null),s.event.triggered=!0,e[f]())}catch(k){}h&&(e["on"+f]=h),s.event.triggered=!1}}},handle:function(c){var d,e,f,g;if(c=arguments[0]=s.event.fix(c||a.event),c.currentTarget=this,d=c.type.indexOf(".")<0&&!c.exclusive,d||(e=c.type.split("."),c.type=e.shift(),f=new RegExp("(^|\\.)"+e.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")),g=s.data(this,"events"),e=g[c.type],g&&e){e=e.slice(0),g=0;for(var h=e.length;g-1?s.map(a.options,function(a){return a.selected}).join("-"):"":"select"===a.nodeName.toLowerCase()&&(c=a.selectedIndex),c},aa=function(a,c){var d,e,f=a.target;if($.test(f.nodeName)&&!f.readOnly&&(d=s.data(f,"_change_data"),e=_(f),"focusout"===a.type&&"radio"===f.type||s.data(f,"_change_data",e),d!==b&&e!==d&&(null!=d||e)))return a.type="change",s.event.trigger(a,c,f)};s.event.special.change={filters:{focusout:aa,click:function(a){var b=a.target,c=b.type;if("radio"===c||"checkbox"===c||"select"===b.nodeName.toLowerCase())return aa.call(this,a)},keydown:function(a){var b=a.target,c=b.type;if(13===a.keyCode&&"textarea"!==b.nodeName.toLowerCase()||32===a.keyCode&&("checkbox"===c||"radio"===c)||"select-multiple"===c)return aa.call(this,a)},beforeactivate:function(a){a=a.target,s.data(a,"_change_data",_(a))}},setup:function(){if("file"===this.type)return!1;for(var a in Z)s.event.add(this,a+".specialChange",Z[a]);return $.test(this.nodeName)},teardown:function(){return s.event.remove(this,".specialChange"),$.test(this.nodeName)}},Z=s.event.special.change.filters}v.addEventListener&&s.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){return a=s.event.fix(a),a.type=b,s.event.handle.call(this,a)}s.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),s.each(["bind","one"],function(a,c){s.fn[c]=function(a,d,e){if("object"==typeof a){for(var f in a)this[c](f,d,a[f],e);return this}s.isFunction(d)&&(e=d,d=b);var g="one"===c?s.proxy(e,function(a){return s(this).unbind(a,g),e.apply(this,arguments)}):e;if("unload"===a&&"one"!==c)this.one(a,d,e);else{f=0;for(var h=this.length;f0){i=h;break}h=h[a]}d[e]=i}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f=0,g=Object.prototype.toString,h=!1,i=!0;[0,0].sort(function(){return i=!1,0});var j=function(a,b,c,d){c=c||[];var f=b=b||v;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!=typeof a)return c;for(var h,i,m,o,p=[],s=!0,u=r(b),w=a;null!==(e.exec(""),h=e.exec(w));)if(w=h[3],p.push(h[1]),h[2]){o=h[3];break}if(p.length>1&&l.exec(a))if(2===p.length&&k.relative[p[0]])i=t(p[0]+p[1],b);else for(i=k.relative[p[0]]?[b]:j(p.shift(),b);p.length;)a=p.shift(),k.relative[a]&&(a+=p.shift()),i=t(a,i);else if(!d&&p.length>1&&9===b.nodeType&&!u&&k.match.ID.test(p[0])&&!k.match.ID.test(p[p.length-1])&&(h=j.find(p.shift(),b,u),b=h.expr?j.filter(h.expr,h.set)[0]:h.set[0]),b)for(h=d?{expr:p.pop(),set:n(d)}:j.find(p.pop(),1!==p.length||"~"!==p[0]&&"+"!==p[0]||!b.parentNode?b:b.parentNode,u),i=h.expr?j.filter(h.expr,h.set):h.set,p.length>0?m=n(i):s=!1;p.length;){var x=p.pop();h=x,k.relative[x]?h=p.pop():x="",null==h&&(h=b),k.relative[x](m,h,u)}else m=[];if(m||(m=i),m||j.error(x||a),"[object Array]"===g.call(m))if(s)if(b&&1===b.nodeType)for(a=0;null!=m[a];a++)m[a]&&(m[a]===!0||1===m[a].nodeType&&q(b,m[a]))&&c.push(i[a]);else for(a=0;null!=m[a];a++)m[a]&&1===m[a].nodeType&&c.push(i[a]);else c.push.apply(c,m);else n(m,c);return o&&(j(o,f,c,d),j.uniqueSort(c)),c};j.uniqueSort=function(a){if(p&&(h=i,a.sort(p),h))for(var b=1;b":function(a,b){var c="string"==typeof b;if(c&&!/\W/.test(b)){b=b.toLowerCase();for(var d=0,e=a.length;d=0)?c||d.push(g):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if("nth"===a[1]){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec("even"===a[2]&&"2n"||"odd"===a[2]&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}return a[0]=f++,a},ATTR:function(a,b,c,d,e,f){return b=a[1].replace(/\\/g,""),!f&&k.attrMap[b]&&(a[1]=k.attrMap[b]),"~="===a[2]&&(a[4]=" "+a[4]+" "),a},PSEUDO:function(a,b,c,d,f){if("not"===a[1]){if(!((e.exec(a[3])||"").length>1||/^\w/.test(a[3])))return a=j.filter(a[3],b,c,!0^f),c||d.push.apply(d,a),!1;a[3]=j(a[3],null,null,b)}else if(k.match.POS.test(a[0])||k.match.CHILD.test(a[0]))return!0;return a},POS:function(a){return a.unshift(!0),a}},filters:{enabled:function(a){return a.disabled===!1&&"hidden"!==a.type},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!j(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||"button"===a.nodeName.toLowerCase()},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return 0===b},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(b,c,d,e){var f=c[1],g=k.filters[f];if(g)return g(b,d,c,e);if("contains"===f)return(b.textContent||b.innerText||a([b])||"").indexOf(c[3])>=0;if("not"===f){for(c=c[3],d=0,e=c.length;d=0}},ID:function(a,b){return 1===a.nodeType&&a.getAttribute("id")===b},TAG:function(a,b){return"*"===b&&1===a.nodeType||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1];a=k.attrHandle[c]?k.attrHandle[c](a):null!=a[c]?a[c]:a.getAttribute(c),c=a+"";var d=b[2];return b=b[4],null==a?"!="===d:"="===d?c===b:"*="===d?c.indexOf(b)>=0:"~="===d?(" "+c+" ").indexOf(b)>=0:b?"!="===d?c!==b:"^="===d?0===c.indexOf(b):"$="===d?c.substr(c.length-b.length)===b:"|="===d&&(c===b||c.substr(0,b.length+1)===b+"-"):c&&a!==!1},POS:function(a,b,c,d){var e=k.setFilters[b[2]];if(e)return e(a,c,b,d)}}},l=k.match.POS;for(var m in k.match)k.match[m]=new RegExp(k.match[m].source+/(?![^\[]*\])(?![^\(]*\))/.source),k.leftMatch[m]=new RegExp(/(^(?:.|\r|\n)*?)/.source+k.match[m].source.replace(/\\(\d+)/g,function(a,b){return"\\"+(b-0+1)}));var n=function(a,b){return a=Array.prototype.slice.call(a,0),b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(v.documentElement.childNodes,0)}catch(o){n=function(a,b){if(b=b||[],"[object Array]"===g.call(a))Array.prototype.push.apply(b,a);else if("number"==typeof a.length)for(var c=0,d=a.length;c";var d=v.documentElement;d.insertBefore(a,d.firstChild),v.getElementById(c)&&(k.find.ID=function(a,c,d){if("undefined"!=typeof c.getElementById&&!d)return(c=c.getElementById(a[1]))?c.id===a[1]||"undefined"!=typeof c.getAttributeNode&&c.getAttributeNode("id").nodeValue===a[1]?[c]:b:[]},k.filter.ID=function(a,b){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b}),d.removeChild(a),d=a=null}(),function(){var a=v.createElement("div");a.appendChild(v.createComment("")),a.getElementsByTagName("*").length>0&&(k.find.TAG=function(a,b){if(b=b.getElementsByTagName(a[1]),"*"===a[1]){a=[];for(var c=0;b[c];c++)1===b[c].nodeType&&a.push(b[c]);b=a}return b}),a.innerHTML="",a.firstChild&&"undefined"!=typeof a.firstChild.getAttribute&&"#"!==a.firstChild.getAttribute("href")&&(k.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),v.querySelectorAll&&function(){var a=j,b=v.createElement("div");if(b.innerHTML="

",!b.querySelectorAll||0!==b.querySelectorAll(".TEST").length){j=function(b,c,d,e){if(c=c||v,!e&&9===c.nodeType&&!r(c))try{return n(c.querySelectorAll(b),d)}catch(f){}return a(b,c,d,e)};for(var c in a)j[c]=a[c];b=null}}(),function(){var a=v.createElement("div");a.innerHTML="
",a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length&&(k.order.splice(1,0,"CLASS"),k.find.CLASS=function(a,b,c){if("undefined"!=typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},a=null))}();var q=v.compareDocumentPosition?function(a,b){return!!(16&a.compareDocumentPosition(b))}:function(a,b){return a!==b&&(!a.contains||a.contains(b))},r=function(a){return!!(a=(a?a.ownerDocument||a:0).documentElement)&&"HTML"!==a.nodeName},t=function(a,b){var c,d=[],e="";for(b=b.nodeType?[b]:b;c=k.match.PSEUDO.exec(a);)e+=c[0],a=a.replace(k.match.PSEUDO,"");a=k.relative[a]?a+"*":a,c=0;for(var f=b.length;c=0===c})};s.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),c=0,d=0,e=this.length;d0)for(var f=c;f0},closest:function(a,b){if(s.isArray(a)){var c,d,e=[],f=this[0],g={};if(f&&a.length){c=0;for(var h=a.length;c-1:s(f).is(c))&&(e.push({selector:d,elem:f}),delete g[d]);f=f.parentNode}}return e}var i=s.expr.match.POS.test(a)?s(a,b||this.context):null;return this.map(function(c,d){for(;d&&d.ownerDocument&&d!==b;){if(i?i.index(d)>-1:s(d).is(a))return d;d=d.parentNode}return null})},index:function(a){return a&&"string"!=typeof a?s.inArray(a.jquery?a[0]:a,this):s.inArray(this[0],a?s(a):this.parent().children())},add:function(a,b){return a="string"==typeof a?s(a,b||this.context):s.makeArray(a),b=s.merge(this.get(),a),this.pushStack(l(a[0])||l(b[0])?b:s.unique(b))},andSelf:function(){return this.add(this.prevObject)}}),s.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return s.dir(a,"parentNode")},parentsUntil:function(a,b,c){return s.dir(a,"parentNode",c)},next:function(a){return s.nth(a,2,"nextSibling")},prev:function(a){return s.nth(a,2,"previousSibling")},nextAll:function(a){return s.dir(a,"nextSibling")},prevAll:function(a){return s.dir(a,"previousSibling")},nextUntil:function(a,b,c){return s.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return s.dir(a,"previousSibling",c)},siblings:function(a){return s.sibling(a.parentNode.firstChild,a)},children:function(a){return s.sibling(a.firstChild)},contents:function(a){return s.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:s.makeArray(a.childNodes)}},function(a,b){s.fn[a]=function(c,d){var e=s.map(this,b,c);return ca.test(a)||(d=c),d&&"string"==typeof d&&(e=s.filter(d,e)),e=this.length>1?s.unique(e):e,(this.length>1||ea.test(d))&&da.test(a)&&(e=e.reverse()),this.pushStack(e,a,H.call(arguments).join(","))}}),s.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),s.find.matches(a,b)},dir:function(a,c,d){var e=[];for(a=a[c];a&&9!==a.nodeType&&(d===b||1!==a.nodeType||!s(a).is(d));)1===a.nodeType&&e.push(a),a=a[c];return e},nth:function(a,b,c){b=b||1;for(var d=0;a&&(1!==a.nodeType||++d!==b);a=a[c]);return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}});var ga=/ jQuery\d+="(?:\d+|null)"/g,ha=/^\s+/,ia=/(<([\w:]+)[^>]*?)\/>/g,ja=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,ka=/<([\w:]+)/,la=/"},qa={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};qa.optgroup=qa.option,qa.tbody=qa.tfoot=qa.colgroup=qa.caption=qa.thead,qa.th=qa.td,s.support.htmlSerialize||(qa._default=[1,"div
","
"]),s.fn.extend({text:function(a){return s.isFunction(a)?this.each(function(b){var c=s(this);c.text(a.call(this,b,c.text()))}):"object"!=typeof a&&a!==b?this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(a)):s.text(this)},wrapAll:function(a){if(s.isFunction(a))return this.each(function(b){s(this).wrapAll(a.call(this,b))});if(this[0]){var b=s(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return s.isFunction(a)?this.each(function(b){s(this).wrapInner(a.call(this,b))}):this.each(function(){var b=s(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){s(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){s.nodeName(this,"body")||s(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=s(arguments[0]);return a.push.apply(a,this.toArray()),this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);return a.push.apply(a,s(arguments[0]).toArray()),a}},remove:function(a,b){for(var c,d=0;null!=(c=this[d]);d++)a&&!s.filter(a,[c]).length||(b||1!==c.nodeType||(s.cleanData(c.getElementsByTagName("*")),s.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)for(1===a.nodeType&&s.cleanData(a.getElementsByTagName("*"));a.firstChild;)a.removeChild(a.firstChild);return this},clone:function(a){var b=this.map(function(){if(s.support.noCloneEvent||s.isXMLDoc(this))return this.cloneNode(!0);var a=this.outerHTML,b=this.ownerDocument;return a||(a=b.createElement("div"),a.appendChild(this.cloneNode(!0)),a=a.innerHTML),s.clean([a.replace(ga,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(ha,"")],b)[0]});return a===!0&&(m(this,b),m(this.find("*"),b.find("*"))),b},html:function(a){if(a===b)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(ga,""):null;if("string"!=typeof a||na.test(a)||!s.support.leadingWhitespace&&ha.test(a)||qa[(ka.exec(a)||["",""])[1].toLowerCase()])s.isFunction(a)?this.each(function(b){var c=s(this),d=c.html();c.empty().append(function(){return a.call(this,b,d)})}):this.empty().append(a);else{a=a.replace(ia,pa);try{for(var c=0,d=this.length;c0||g.cacheable||this.length>1?i.cloneNode(!0):i)}k.length&&s.each(k,d)}return this}}),s.fragments={},s.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){s.fn[a]=function(c){var d=[];c=s(c);var e=1===this.length&&this[0].parentNode;if(e&&11===e.nodeType&&1===e.childNodes.length&&1===c.length)return c[b](this[0]),this;e=0;for(var f=c.length;e0?this.clone(!0):this).get();s.fn[b].apply(s(c[e]),g),d=d.concat(g)}return this.pushStack(d,a,c.selector)}}),s.extend({clean:function(a,b,c,d){b=b||v,"undefined"==typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||v);for(var e,f=[],g=0;null!=(e=a[g]);g++)if("number"==typeof e&&(e+=""),e){if("string"!=typeof e||ma.test(e)){if("string"==typeof e){e=e.replace(ia,pa);var h=(ka.exec(e)||["",""])[1].toLowerCase(),i=qa[h]||qa._default,j=i[0],k=b.createElement("div");for(k.innerHTML=i[1]+e+i[2];j--;)k=k.lastChild;if(!s.support.tbody)for(j=la.test(e),h="table"!==h||j?""!==i[1]||j?[]:k.childNodes:k.firstChild&&k.firstChild.childNodes,i=h.length-1;i>=0;--i)s.nodeName(h[i],"tbody")&&!h[i].childNodes.length&&h[i].parentNode.removeChild(h[i]);!s.support.leadingWhitespace&&ha.test(e)&&k.insertBefore(b.createTextNode(ha.exec(e)[0]),k.firstChild),e=k.childNodes}}else e=b.createTextNode(e);e.nodeType?f.push(e):f=s.merge(f,e)}if(c)for(g=0;f[g];g++)!d||!s.nodeName(f[g],"script")||f[g].type&&"text/javascript"!==f[g].type.toLowerCase()?(1===f[g].nodeType&&f.splice.apply(f,[g+1,0].concat(s.makeArray(f[g].getElementsByTagName("script")))),c.appendChild(f[g])):d.push(f[g].parentNode?f[g].parentNode.removeChild(f[g]):f[g]);return f},cleanData:function(a){for(var b,c,d,e=s.cache,f=s.event.special,g=s.support.deleteExpando,h=0;null!=(d=a[h]);h++)if(c=d[s.expando]){if(b=e[c],b.events)for(var i in b.events)f[i]?s.event.remove(d,i):W(d,i,b.handle);g?delete d[s.expando]:d.removeAttribute&&d.removeAttribute(s.expando),delete e[c]}}});var ra=/z-?index|font-?weight|opacity|zoom|line-?height/i,sa=/alpha\([^)]*\)/,ta=/opacity=([^)]*)/,ua=/float/i,va=/-([a-z])/gi,wa=/([A-Z])/g,xa=/^-?\d+(?:px)?$/i,ya=/^-?\d/,za={position:"absolute",visibility:"hidden",display:"block"},Aa=["Left","Right"],Ba=["Top","Bottom"],Ca=v.defaultView&&v.defaultView.getComputedStyle,Da=s.support.cssFloat?"cssFloat":"styleFloat",Ea=function(a,b){return b.toUpperCase()};s.fn.css=function(a,c){return e(this,a,c,!0,function(a,c,d){return d===b?s.curCSS(a,c):("number"!=typeof d||ra.test(c)||(d+="px"),void s.style(a,c,d))})},s.extend({style:function(a,c,d){if(!a||3===a.nodeType||8===a.nodeType)return b;("width"===c||"height"===c)&&parseFloat(d)<0&&(d=b);var e=a.style||a,f=d!==b;if(!s.support.opacity&&"opacity"===c)return f&&(e.zoom=1,c=parseInt(d,10)+""=="NaN"?"":"alpha(opacity="+100*d+")",a=e.filter||s.curCSS(a,"filter")||"",e.filter=sa.test(a)?a.replace(sa,c):c),e.filter&&e.filter.indexOf("opacity=")>=0?parseFloat(ta.exec(e.filter)[1])/100+"":"";if(ua.test(c)&&(c=Da),c=c.replace(va,Ea),f)try{e[c]=d}catch(a){}return e[c]},css:function(a,b,c,d){function e(){f="width"===b?a.offsetWidth:a.offsetHeight,"border"!==d&&s.each(g,function(){d||(f-=parseFloat(s.curCSS(a,"padding"+this,!0))||0),"margin"===d?f+=parseFloat(s.curCSS(a,"margin"+this,!0))||0:f-=parseFloat(s.curCSS(a,"border"+this+"Width",!0))||0})}if("width"===b||"height"===b){var f,g="width"===b?Aa:Ba;return 0!==a.offsetWidth?e():s.swap(a,za,e),Math.max(0,Math.round(f))}return s.curCSS(a,b,c)},curCSS:function(a,b,c){var d,e=a.style;if(!s.support.opacity&&"opacity"===b&&a.currentStyle)return d=ta.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"",""===d?"1":d;if(ua.test(b)&&(b=Da),!c&&e&&e[b])d=e[b];else if(Ca){if(ua.test(b)&&(b="float"),b=b.replace(wa,"-$1").toLowerCase(),e=a.ownerDocument.defaultView,!e)return null;(a=e.getComputedStyle(a,null))&&(d=a.getPropertyValue(b)),"opacity"===b&&""===d&&(d="1")}else if(a.currentStyle&&(c=b.replace(va,Ea),d=a.currentStyle[b]||a.currentStyle[c],!xa.test(d)&&ya.test(d))){b=e.left;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left,e.left="fontSize"===c?"1em":d||0,d=e.pixelLeft+"px",e.left=b,a.runtimeStyle.left=f}return d},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),s.expr&&s.expr.filters&&(s.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight,d="tr"===a.nodeName.toLowerCase();return 0===b&&0===c&&!d||!(b>0&&c>0&&!d)&&"none"===s.curCSS(a,"display")},s.expr.filters.visible=function(a){return!s.expr.filters.hidden(a)});var Fa=f(),Ga=//gi,Ha=/select|textarea/i,Ia=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,Ja=/=\?(&|$)/,Ka=/\?/,La=/(\?|&)_=.*?(&|$)/,Ma=/^(\w+:)?\/\/([^\/?#]+)/,Na=/%20/g,Oa=s.fn.load;s.fn.extend({load:function(a,b,c){if("string"!=typeof a)return Oa.call(this,a);if(!this.length)return this;var d=a.indexOf(" ");if(d>=0){var e=a.slice(d,a.length);a=a.slice(0,d)}d="GET",b&&(s.isFunction(b)?(c=b,b=null):"object"==typeof b&&(b=s.param(b,s.ajaxSettings.traditional),d="POST"));var f=this;return s.ajax({url:a,type:d,dataType:"html",data:b,complete:function(a,b){"success"!==b&&"notmodified"!==b||f.html(e?s("
").append(a.responseText.replace(Ga,"")).find(e):a.responseText),c&&f.each(c,[a.responseText,b,a])}}),this},serialize:function(){return s.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?s.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Ha.test(this.nodeName)||Ia.test(this.type))}).map(function(a,b){return a=s(this).val(),null==a?null:s.isArray(a)?s.map(a,function(a){return{name:b.name,value:a}}):{name:b.name,value:a}}).get()}}),s.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){s.fn[b]=function(a){return this.bind(b,a)}}),s.extend({get:function(a,b,c,d){return s.isFunction(b)&&(d=d||c,c=b,b=null),s.ajax({type:"GET",url:a,data:b,success:c,dataType:d})},getScript:function(a,b){return s.get(a,null,b,"script")},getJSON:function(a,b,c){return s.get(a,b,c,"json")},post:function(a,b,c,d){return s.isFunction(b)&&(d=d||c,c=b,b={}),s.ajax({type:"POST",url:a,data:b,success:c,dataType:d})},ajaxSetup:function(a){s.extend(s.ajaxSettings,a)},ajaxSettings:{url:location.href,global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,xhr:!a.XMLHttpRequest||"file:"===a.location.protocol&&a.ActiveXObject?function(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}:function(){return new a.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(c){function d(){k.success&&k.success.call(l,j,i,u),k.global&&g("ajaxSuccess",[u,k])}function e(){k.complete&&k.complete.call(l,u,i),k.global&&g("ajaxComplete",[u,k]),k.global&&!--s.active&&s.event.trigger("ajaxStop")}function g(a,b){(k.context?s(k.context):s.event).trigger(a,b)}var h,i,j,k=s.extend(!0,{},s.ajaxSettings,c),l=c&&c.context||k,m=k.type.toUpperCase();if(k.data&&k.processData&&"string"!=typeof k.data&&(k.data=s.param(k.data,k.traditional)),"jsonp"===k.dataType&&("GET"===m?Ja.test(k.url)||(k.url+=(Ka.test(k.url)?"&":"?")+(k.jsonp||"callback")+"=?"):k.data&&Ja.test(k.data)||(k.data=(k.data?k.data+"&":"")+(k.jsonp||"callback")+"=?"),k.dataType="json"),"json"===k.dataType&&(k.data&&Ja.test(k.data)||Ja.test(k.url))&&(h=k.jsonpCallback||"jsonp"+Fa++,k.data&&(k.data=(k.data+"").replace(Ja,"="+h+"$1")),k.url=k.url.replace(Ja,"="+h+"$1"),k.dataType="script",a[h]=a[h]||function(c){j=c,d(),e(),a[h]=b;try{delete a[h]}catch(f){}p&&p.removeChild(q)}),"script"===k.dataType&&null===k.cache&&(k.cache=!1),k.cache===!1&&"GET"===m){var n=f(),o=k.url.replace(La,"$1_="+n+"$2");k.url=o+(o===k.url?(Ka.test(k.url)?"&":"?")+"_="+n:"")}if(k.data&&"GET"===m&&(k.url+=(Ka.test(k.url)?"&":"?")+k.data),k.global&&!s.active++&&s.event.trigger("ajaxStart"),n=(n=Ma.exec(k.url))&&(n[1]&&n[1]!==location.protocol||n[2]!==location.host),"script"===k.dataType&&"GET"===m&&n){var p=v.getElementsByTagName("head")[0]||v.documentElement,q=v.createElement("script");if(q.src=k.url,k.scriptCharset&&(q.charset=k.scriptCharset),!h){var r=!1;q.onload=q.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(r=!0,d(),e(),q.onload=q.onreadystatechange=null,p&&q.parentNode&&p.removeChild(q))}}return p.insertBefore(q,p.firstChild),b}var t=!1,u=k.xhr();if(u){k.username?u.open(m,k.url,k.async,k.username,k.password):u.open(m,k.url,k.async);try{(k.data||c&&c.contentType)&&u.setRequestHeader("Content-Type",k.contentType),k.ifModified&&(s.lastModified[k.url]&&u.setRequestHeader("If-Modified-Since",s.lastModified[k.url]),s.etag[k.url]&&u.setRequestHeader("If-None-Match",s.etag[k.url])),n||u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("Accept",k.dataType&&k.accepts[k.dataType]?k.accepts[k.dataType]+", */*":k.accepts._default)}catch(w){}if(k.beforeSend&&k.beforeSend.call(l,u,k)===!1)return k.global&&!--s.active&&s.event.trigger("ajaxStop"),u.abort(),!1;k.global&&g("ajaxSend",[u,k]);var x=u.onreadystatechange=function(a){if(u&&0!==u.readyState&&"abort"!==a){if(!t&&u&&(4===u.readyState||"timeout"===a)){t=!0,u.onreadystatechange=s.noop,i="timeout"===a?"timeout":s.httpSuccess(u)?k.ifModified&&s.httpNotModified(u,k.url)?"notmodified":"success":"error";var b;if("success"===i)try{j=s.httpData(u,k.dataType,k)}catch(c){i="parsererror",b=c}"success"===i||"notmodified"===i?h||d():s.handleError(k,u,i,b),e(),"timeout"===a&&u.abort(),k.async&&(u=null)}}else t||e(),t=!0,u&&(u.onreadystatechange=s.noop)};try{var y=u.abort;u.abort=function(){u&&y.call(u),x("abort")}}catch(z){}k.async&&k.timeout>0&&setTimeout(function(){u&&!t&&x("timeout")},k.timeout);try{u.send("POST"===m||"PUT"===m||"DELETE"===m?k.data:null)}catch(A){s.handleError(k,u,null,A),e()}return k.async||x(),u}},handleError:function(a,b,c,d){a.error&&a.error.call(a.context||a,b,c,d),a.global&&(a.context?s(a.context):s.event).trigger("ajaxError",[b,a,d])},active:0,httpSuccess:function(a){try{return!a.status&&"file:"===location.protocol||a.status>=200&&a.status<300||304===a.status||1223===a.status||0===a.status}catch(b){}return!1},httpNotModified:function(a,b){var c=a.getResponseHeader("Last-Modified"),d=a.getResponseHeader("Etag");return c&&(s.lastModified[b]=c),d&&(s.etag[b]=d),304===a.status||0===a.status},httpData:function(a,b,c){var d=a.getResponseHeader("content-type")||"",e="xml"===b||!b&&d.indexOf("xml")>=0;return a=e?a.responseXML:a.responseText,e&&"parsererror"===a.documentElement.nodeName&&s.error("parsererror"),c&&c.dataFilter&&(a=c.dataFilter(a,b)),"string"==typeof a&&("json"===b||!b&&d.indexOf("json")>=0?a=s.parseJSON(a):("script"===b||!b&&d.indexOf("javascript")>=0)&&s.globalEval(a)),a},param:function(a,c){function d(a,b){s.isArray(b)?s.each(b,function(b,f){c||/\[\]$/.test(a)?e(a,f):d(a+"["+("object"==typeof f||s.isArray(f)?b:"")+"]",f)}):c||null==b||"object"!=typeof b?e(a,b):s.each(b,function(b,c){d(a+"["+b+"]",c)})}function e(a,b){b=s.isFunction(b)?b():b,f[f.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}var f=[];if(c===b&&(c=s.ajaxSettings.traditional),s.isArray(a)||a.jquery)s.each(a,function(){e(this.name,this.value)});else for(var g in a)d(g,a[g]);return f.join("&").replace(Na,"+")}});var Pa,Qa={},Ra=/toggle|show|hide/,Sa=/^([+-]=)?([\d+-.]+)(.*)$/,Ta=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];s.fn.extend({show:function(a,b){if(a||0===a)return this.animate(o("show",3),a,b);for(a=0,b=this.length;a").appendTo("body");d=e.css("display"),"none"===d&&(d="block"),e.remove(),Qa[c]=d}s.data(this[a],"olddisplay",d)}}for(a=0,b=this.length;a=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue(),this}}),s.each({slideDown:o("show",1),slideUp:o("hide",1),slideToggle:o("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){s.fn[a]=function(a,c){return this.animate(b,a,c)}}),s.extend({speed:function(a,b,c){var d=a&&"object"==typeof a?a:{complete:c||!c&&b||s.isFunction(a)&&a,duration:a,easing:c&&b||b&&!s.isFunction(b)&&b};return d.duration=s.fx.off?0:"number"==typeof d.duration?d.duration:s.fx.speeds[d.duration]||s.fx.speeds._default,d.old=d.complete,d.complete=function(){d.queue!==!1&&s(this).dequeue(),s.isFunction(d.old)&&d.old.call(this)},d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),s.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(s.fx.step[this.prop]||s.fx.step._default)(this),"height"!==this.prop&&"width"!==this.prop||!this.elem.style||(this.elem.style.display="block")},cur:function(a){return null==this.elem[this.prop]||this.elem.style&&null!=this.elem.style[this.prop]?(a=parseFloat(s.css(this.elem,this.prop,a)))&&a>-1e4?a:parseFloat(s.curCSS(this.elem,this.prop))||0:this.elem[this.prop]},custom:function(a,b,c){function d(a){return e.step(a)}this.startTime=f(),this.start=a,this.end=b,this.unit=c||this.unit||"px",this.now=this.start,this.pos=this.state=0;var e=this;d.elem=this.elem,d()&&s.timers.push(d)&&!Pa&&(Pa=setInterval(s.fx.tick,13))},show:function(){this.options.orig[this.prop]=s.style(this.elem,this.prop),this.options.show=!0,this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),s(this.elem).show()},hide:function(){this.options.orig[this.prop]=s.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=f(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var d in this.options.curAnim)this.options.curAnim[d]!==!0&&(c=!1);if(c){if(null!=this.options.display&&(this.elem.style.overflow=this.options.overflow,a=s.data(this.elem,"olddisplay"),this.elem.style.display=a?a:this.options.display,"none"===s.css(this.elem,"display")&&(this.elem.style.display="block")),this.options.hide&&s(this.elem).hide(), this.options.hide||this.options.show)for(var e in this.options.curAnim)s.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return!1}return e=b-this.startTime,this.state=e/this.options.duration,a=this.options.easing||(s.easing.swing?"swing":"linear"),this.pos=s.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),!0}},s.extend(s.fx,{tick:function(){for(var a=s.timers,b=0;b
",d.insertBefore(e,d.firstChild),a=e.firstChild,b=a.firstChild,c=a.nextSibling.firstChild.firstChild,this.doesNotAddBorder=5!==b.offsetTop,this.doesAddBorderForTableAndCells=5===c.offsetTop,b.style.position="fixed",b.style.top="20px",this.supportsFixedPosition=20===b.offsetTop||15===b.offsetTop,b.style.position=b.style.top="",a.style.overflow="hidden",a.style.position="relative",this.subtractsBorderForOverflowNotVisible=b.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==f,d.removeChild(e),s.offset.initialize=s.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;return s.offset.initialize(),s.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(s.curCSS(a,"marginTop",!0))||0,c+=parseFloat(s.curCSS(a,"marginLeft",!0))||0),{top:b,left:c}},setOffset:function(a,b,c){/static/.test(s.curCSS(a,"position"))&&(a.style.position="relative");var d=s(a),e=d.offset(),f=parseInt(s.curCSS(a,"top",!0),10)||0,g=parseInt(s.curCSS(a,"left",!0),10)||0;s.isFunction(b)&&(b=b.call(a,c,e)),c={top:b.top-e.top+f,left:b.left-e.left+g},"using"in b?b.using.call(a,c):d.css(c)}},s.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(s.curCSS(a,"marginTop",!0))||0,c.left-=parseFloat(s.curCSS(a,"marginLeft",!0))||0,d.top+=parseFloat(s.curCSS(b[0],"borderTopWidth",!0))||0,d.left+=parseFloat(s.curCSS(b[0],"borderLeftWidth",!0))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||v.body;a&&!/^body|html$/i.test(a.nodeName)&&"static"===s.css(a,"position");)a=a.offsetParent;return a})}}),s.each(["Left","Top"],function(a,c){var d="scroll"+c;s.fn[d]=function(c){var e,f=this[0];return f?c!==b?this.each(function(){(e=p(this))?e.scrollTo(a?s(e).scrollLeft():c,a?c:s(e).scrollTop()):this[d]=c}):(e=p(f))?"pageXOffset"in e?e[a?"pageYOffset":"pageXOffset"]:s.support.boxModel&&e.document.documentElement[d]||e.document.body[d]:f[d]:null}}),s.each(["Height","Width"],function(a,c){var d=c.toLowerCase();s.fn["inner"+c]=function(){return this[0]?s.css(this[0],d,!1,"padding"):null},s.fn["outer"+c]=function(a){return this[0]?s.css(this[0],d,!1,a?"margin":"border"):null},s.fn[d]=function(a){var e=this[0];return e?s.isFunction(a)?this.each(function(b){var c=s(this);c[d](a.call(this,b,c[d]()))}):"scrollTo"in e&&e.document?"CSS1Compat"===e.document.compatMode&&e.document.documentElement["client"+c]||e.document.body["client"+c]:9===e.nodeType?Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]):a===b?s.css(e,d):this.css(d,"string"==typeof a?a:a+"px"):null==a?null:this}}),a.jQuery=s}(window),window.vwo_$=jQuery.noConflict(!0),window.$=window.$||window.jQuery,"undefined"==typeof window.jQuery)try{delete window.jQuery}catch(e){}if("undefined"==typeof window.$)try{delete window.$}catch(e){} window.vwo_$=window.vwo_$||window.jQuery; (function(){window.VWO=window.VWO||[];VWO.v="6.0.79";(function(u,aa,U){function M(){var u;u=u||location.href;return"#"+u.replace(/^[^#]*#?(.*)$/,"$1")}var z="hashchange",R,y=u.event.special,ba=document.documentMode,B="on"+z in aa&&(ba===U||7a&&(a=0);for(var d="";a;){var b=a%64,r=b.toString(36);36<=b&&(r= String.fromCharCode(b+29));62===b&&(r="_");63===b&&(r="-");d=r+d;a=Wa(a/64)}return d||a+""}function g(a){for(var d=0,b=0;a;){var r=a.slice(-1),c=26*+/[A-Z]/.test(r)+parseInt(r,36);"_"===r&&(c=62);"-"===r&&(c=63);d+=c*p(64,b++);a=a.slice(0,-1)}return d}function n(a,d,b){return""+a+hb+d+ib+k(Wa(100*b))}function o(a,d){return a&&"number"==typeof a[2]?h.now()>d+a[2]*La:!0}var v,q=b.encodeURIComponent,w=b.decodeURIComponent,I=b.localStorage,t=I.setItem.bind(I),ia=I.getItem.bind(I),s=b.clearTimeout,r=b.setTimeout, Wa=f.floor,p=f.pow,hb="~",ib="(",jb=")",La=864E5,N=(v={},v._vis_opt_out=0,v["_vis_opt_exp_*_combi"]=10,v["_vis_opt_exp_*_combi_choose"]=11,v["_vis_opt_exp_*_goal_*"]=12,v["_vis_opt_exp_*_exclude"]=13,v["_vis_opt_exp_*_split"]=14,v._vis_opt_test_cookie=20,v._vis_opt_s=21,v._vwo_ds=22,v._vwo_sn=23,v._vwo_referrer=24,v._vwo_uuid=30,v["_vwo_uuid_*"]=31,v._vwo_uuid_v2=32,v["_vwo_app_version_*_*"]=40,v["_vis_preview_*"]=41,v._vis_editor=42,v["_vis_heatmap_*"]=43,v),u;for(u in N)N[u]=k(N[u]),N["debug"+u]= "d"+N[u];var z=a(d);return function(a,d,f,p,Wa){function v(){for(var a=c.cookie.split(/; ?/),d=eb(),r=0;r").attr({height:"1px",width:"1px",border:"0","class":"vwo_iframe",name:"vwo_"+Math.random(),style:"position: absolute; left: -2000px; display: none"}).appendTo("head").load(function(){-1!== b.indexOf("split")&&this.parentNode.removeChild(this);if(!--k)for(var a=0;a").attr({action:"https://dev.visualwebsiteoptimizer.com/ping_tpc.php","accept-charset":"UTF-8",target:I.attr("name"),enctype:"application/x-www-form-urlencoded", method:"post",id:"vwo_form",style:"display:none"}).appendTo("head"),t.attr("action",q).submit(),t.remove()),c(e.SET_COOKIE,b,h,g,m,!0))},waitForThirdPartySync:function(a){i.push({c:a})},init:function(){VWO._.jar=null}},g=window._vis_opt_domain||g||b(location.host);m.domain=g;return window.VWO._.cookies=m}(B,M,R,z,ba);V=function(g,e){var b;return{init:function(){b=e.get("_vwo_referrer");e.erase("_vwo_referrer");"string"!==typeof b&&(b=document.referrer)},get:function(){return b},set:function(){e.create("_vwo_referrer", b,1.8E-4)}}}(V,B);ca=function(g,e,b){function c(d,a){e[a]=function(){return!h?!1:d.apply(this,arguments)}}var h=!0;e.R=function(){return b.get()};for(var f in e)e.hasOwnProperty(f)&&c(e[f],f);e.enable=function(){h=!0};e.disable=function(){h=!1};return function(){return e}}(ca,U,V);D=function(){var g={QUEUE_EXECUTE_ERROR:"qEE",PAUSE:"p",THIRD_PARTY_COOKIE_SYNC:"tpcS",MATCH_WILDCARD:"mW",REGISTER_HIT:"rH",VARIATION_SHOWN:"vS",DELETE_CSS_RULE:"dCSSR",CONVERT_ALL_VISIT_GOALS_FOR_EXPERIMENT:"cAVGFE",CONVERT_VISIT_GOAL_FOR_EXPERIMENT:"cVGFE", CONVERT_GOAL_FOR_ALL_EXPERIMENTS:"cGFAE",CONVERT_ALL_REVENUE_GOALS_FOR_ALL_EXPERIMENTS:"cARGFAE",CONVERT_REVENUE_GOALS_FOR_EXPERIMENT:"cRGFE",REGISTER_CONVERSION:"rC",OPT_OUT:"oO",TOP_INITIALIZE_BEGIN:"tIB",TOP_INITIALIZE_ERROR:"tIE",TOP_INITIALIZE_END:"tIEn",UNHIDE_ALL_VARIATIONS:"uAV",UNHIDE_SECTION:"uS",UNHIDE_VARIATION:"uV",UNHIDE_ELEMENT:"uE",EXCLUDE_URL:"eURL",EXCLUDE_GOAL_URL:"eGURL",SPLIT_URL:"sURL",POST_URL_CHANGE:"hC",ELEMENT_LOAD_TIMER_START:"eLTS",ELEMENT_LOAD_TIMER_STOP:"eLTSt",ELEMENT_LOAD_ERROR:"eLTTE", ELEMENT_LOADED:"eL",ELEMENT_NOT_LOADED:"eNL",ELEMENT_CHANGES_APPLIED:"eCA",API_SECTION_CALLBACK:"aSC",CHOOSE_COMBINATION:"cC",BEFORE_REDIRECT_TO_URL:"bRTR",BOTTOM_INITIALIZE_BEGIN:"bIB",BOTTOM_INITIALIZE_END:"bIE",HEATMAP_CLICK:"hCl",JSLIB_INIT:"jI",REDIRECT_DECISION:"rD",TRACK_SESSION_CREATED:"tSC",TRACK_SESSION_EXPIRED:"tSE",VARIATION_APPLIED:"vA",URL_CHANGED:"uC",NEW_SESSION:"nS",NEW_SURVEY_FOUND:"nSF",TEST_NOT_RUNNING:"tNR",NOT_REDIRECTING:"nR",DYNAMIC_INFO_FETCHED:"dIF",UPDATE_SETTINGS_CALL:"uSC", RETRACK_VISITOR:"rV",WAIT_FOR_BEHAVIOR:"wFB",ELEMENTS_SHOWN_WITHOUT_CHANGES:"eSWC",SEGMENTATION_EVALUATED:"sE",HIDE_ELEMENTS:"hE",RECORDING_NOT_ELIGIBLE:"rNE",NEW_SESSION_CREATED:"nSC",WAITING_FOR_MANUAL_ACTIVATION:"wFMA"};return VWO._.EventsEnum=g}(D);J=function(){function g(){return b?b:b=VWO.data.ts||e}var e=parseInt(+new Date/1E3,10),b,c={gte:function(b,c){return b>=c},getKeys:Object.keys||function(b){var c=[],d;for(d in b)b.hasOwnProperty(d)&&c.push(d);return c},extend:function(b,c){for(var d in c)c.hasOwnProperty(d)&& (b[d]=c[d])},forEach:function(b,c){if(b&&"function"===typeof c){var d;if(b instanceof Array)for(d=0;d").append(a.cloneNode(!0)).html():a.outerHTML},pause:function(a){for(var d=a,a=a+(new Date).getTime();(new Date).getTime()b.url.indexOf("&cu=")&&0>b.url.indexOf("&url=")&&(a+="&_cu="+encodeURIComponent(document.URL.slice(0, 100)));document.referrer&&0>b.url.indexOf("&ru=")&&(a+="&_ru="+encodeURIComponent(document.referrer.slice(0,100)));a+="&random="+Math.random();f.src=a;e(f)}}(W);ma=function(){return{postGresEnv:!1,get:function(){return this.postGresEnv},set:function(g){this.postGresEnv=g}}}(ma);na=function(){var g={AB_MIGRATED_CAMPAIGN_VERSION:4};return VWO._.ConstantsEnum=g}(na);X=function(g,e,b,c,h,f,d,a,i,k,m,n,o){function v(){}var q=window._vwo_exp,w=window._vwo_uuid,I=window._vwo_server_url,t={isBot:function(){return e().f_con(e().ua(), "bot")||e().f_con(e().ua(),"spider")||e().f_con(e().ua(),"preview")},createCookie:function(a,d,c,f){t.shouldTrackUserForCampaign(f)&&(f&&q[f].multiple_domains?b.createThirdParty(a,d,c,void 0,f):b.create(a,d,c))},getUUID:function(a){return w=(a&&q[a].multiple_domains?b.get("_vwo_uuid_"+a)||b.get("_vwo_uuid"):b.get("_vwo_uuid"))||w||function(){return"Jxxxxxxxxxxx4xxxyxxxxxx5xxxxxxxx9".replace(/[xy]/g,function(a){var d=16*Math.random()|0;return("x"==a?d:d&3|8).toString(16).toUpperCase()})}()},getUUIDString:function(a){return!a? "":"&u="+a},delCSS:function(a,b){var r=!1,f;if("string"===typeof a){var a=a.toLowerCase(),i,e,h,o,k,g;b?(i=document.getElementById("_vis_opt_path_hides_"+b),g="{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}",f=!0):(i=window._vwo_style||document.getElementById("_vis_opt_path_hides"),g=window._vwo_css);if(i||f){if(i)if(i.sheet){i.styleSheet||(a=a.replace(/\*:/g,":"));e=i.sheet;h=e.cssRules.length?e.cssRules[0].selectorText?e.cssRules[0].selectorText.toLowerCase().split(","): "":"";o="";var n=0;for(k=0;k= o.AB_MIGRATED_CAMPAIGN_VERSION},isSessionBasedCampaign:function(d){return q[d].type===a.GOAL_CAMPAIGN||q[d].type===a.FUNNEL_CAMPAIGN||q[d].type===a.ANALYZE_RECORDING_CAMPAIGN||q[d].type===a.ANALYZE_HEATMAP_CAMPAIGN||q[d].type===a.ANALYZE_FORM_CAMPAIGN},preProcessExp:function(d){var b=q[d],c,f=q[d].third_party;if("undefined"!==typeof f)for(c=k.getKeys(f).length;c;){var i=f[c];"_vwo_uuid_"===i.name.substring(0,10)?t.createCookie(i.name,i.value,3650):t.createCookie(i.name,i.value,100);c--}b.goals||(b.goals= {});!n.get()&&(t.isSessionBasedCampaign(d)||t.isAbMigrationEnabled(d))&&n.set(!0);if(b.type===a.ANALYSIS_CAMPAIGN||this.isAnalyzeCampaign(b.type))b.goals={};if(b.sections&&b.sections[1]&&(a.AB_CAMPAIGN===b.type||a.SPLIT_CAMPAIGN===b.type))k.extend(b.sections[1].segment,b.sections[1].segment_v2),delete b.sections[1].segment_v2;b.segment_code=b.segment_code_v2||b.segment_code;delete b.segment_code_v2;b.segment_code=b.segment_code.replace(/_vwo_u/g,"_vwo_t");b.version>=o.AB_MIGRATED_CAMPAIGN_VERSION&& (b.segment_code=b.segment_code.replace(/_vwo_s\(\)\.T\(\)/,"_vwo_s().vt()"));if(b.ss&&(b.ss.pu&&(b.ss.pu=b.ss.pu.replace(/_vwo_u/g,"_vwo_t")),b.ss.se))b.ss.se=b.ss.se.replace(/_vwo_u/g,"_vwo_t");t.isDomIndependentCampaign(b.type)&&(b.clickmap=0);b.pc_traffic="undefined"===typeof b.pc_traffic?100:b.pc_traffic;b.type===a.FUNNEL_CAMPAIGN?(b.g=b.g||b.goals,b.goals={},b.segment_code="undefined"===typeof b.segment_code?"true":b.segment_code,b.manual=!0,b.v=b.v||1):b.manual=!!b.manual;for(var e in b.goals)b.goals.hasOwnProperty(e)&& (c=b.goals[e],t.isPageBasedGoal(c.type)?(c.pUrl=c.pUrl||c.urlRegex,c.pExcludeUrl=c.pExcludeUrl||c.excludeUrl):c.pUrl=c.pUrl||".*");b.globalCode||(b.globalCode={pre:"",post:""});b.ss&&(b.ss.csa&&"undefined"===typeof window._vis_opt_check_segment[d])&&(window._vis_opt_check_segment[d]=!0)},isPageBasedGoal:function(a){return a===i.SEPARATE_PAGE||a===i.CUSTOM_GOAL||a===i.REVENUE_TRACKING},createUUIDCookie:function(a){var d=t.getUUID(a),c=a&&q[a].multiple_domains?"_"+a:"";b.get("_vwo_uuid"+c)||t.createCookie("_vwo_uuid"+ c,d,3650,a);return d},sendCall:function(a,b,d,c){var f=I+a+"&vn="+VWO.v;0>a.indexOf("&cu=")&&0>a.indexOf("&url=")&&(f+="&_cu="+encodeURIComponent(document.URL.slice(0,100)));document.referrer&&(f+="&_ru="+encodeURIComponent(document.referrer.slice(0,100)));f+="&random="+Math.random();b=b||v;VWO._.isBeaconAvailable=!0;(d=VWO.data.tB&&!c&&(VWO._.isLinkRedirecting||d)&&"function"===typeof navigator.sendBeacon)?navigator.sendBeacon(f)?b():(VWO._.isBeaconAvailable=!1,t.sendCall(a+"&_bf=1",b,!1,!0)):(VWO._.isBeaconAvailable= !1,m({serverUrl:I,url:a,vn:VWO.v},b,b))},isReturningVisitor:function(){return 1===parseInt((b.get("_vis_opt_s")||"").split("|")[0],10)?0:1},isDomIndependentCampaign:function(b){return b===a.ANALYSIS_CAMPAIGN||b===a.SURVEY_CAMPAIGN||b===a.GOAL_CAMPAIGN||b===a.FUNNEL_CAMPAIGN||b===a.ANALYZE_RECORDING_CAMPAIGN||b===a.ANALYZE_HEATMAP_CAMPAIGN||b===a.ANALYZE_FORM_CAMPAIGN},shouldTrackUserForCampaign:function(b){return!b||!_vwo_code.lT&&!_vwo_code.sT?!0:t.isDomIndependentCampaign(q[b].type)||q[b].type=== a.SPLIT_CAMPAIGN&&q[b].ivp},isAnalyzeCampaign:function(b){return b===a.ANALYZE_RECORDING_CAMPAIGN||b===a.ANALYZE_HEATMAP_CAMPAIGN||b===a.ANALYZE_FORM_CAMPAIGN},isLinkRedirecting:function(a){return a&&-1===a.indexOf("javascript:")&&"#"!==a[0]},doesUuidCookiesExist:function(){return b.get("_vwo_uuid")?!0:!!k.filter(document.cookie.split(";"),function(a){return a.trim().indexOf("_vwo_uuid_")===0&&a.trim().indexOf("_vwo_uuid_v2")!==0}).length},doesSessionBasedCampaignExistsInTags:function(a){var b=a&& f.jsonParse(a),a=0;if((b=b&&"object"===typeof b&&b.si)&&"object"===typeof b)for(var d in b)if(b.hasOwnProperty(d)&&(a=t.isSessionBasedCampaign(d)?1:0))break;return a},preProcessJS:function(a,b,d){if(a)return-1x';return c.firstChild.href},isHashPresent:function(b){return-1!==b.indexOf("#")},isQueryParamPresent:function(b,c){var e=b.indexOf("#"),f=b.indexOf("?"),d=c?-1:b.indexOf("=");return-1===e?-1!==f||-1!==d:-1!==f&&e>f||-1!==d&&e>d}}}(pa,F);Ra=function(g,e){function b(b){return b.replace(/^(https?:\/\/)(?:w{3}\.)?(.*?)(?:(?:home|default|index)\..{3,4})?([\?#].*)?$/i, "$1$2$3")}function c(b){return b.replace(/^(https?:\/\/)(?:w{3}\.)?(.*?)(?:\/(?:home|default|index)\..{3,4}|\/$)?(?:\/)?([\?#].*)?$/i,"$1$2$3")}var h=window._vis_opt_url,f={regexEscape:function(b){return b.replace(/[\-\[\]{}()*+?.,\/\\^$|#\s]/g,"\\$&")},cleanURL:function(b,a){return h&&!a?h:b.replace(/^(.*[^\*])(\/(home|default|index)\..{3,4})((\?|#).*)*$/i,"$1$4")},removeWWW:function(b,a){b=b.replace(/^(https?:\/\/)(www\.)?(.*)$/i,"$1$3");a&&(b=b.replace(/(^\*?|\/\/)www\./i,"$1"));return b},stripSlashes:function(b, a,c){b=b.replace(/\/$/,"");a&&(a=b.indexOf("/?"),b.indexOf("?")-1===a&&(b=b.replace(/\/\?([^\?]*)(.*)/,"?$1$2")));c&&(c=b.indexOf("/#"),b.indexOf("#")-1===c&&(b=b.replace(/\/#([^#]*)(.*)/,"#$1$2")));return b},matchWildcard:function(b,a,c){if("string"!==typeof b||"string"!==typeof a)return!1;var h=e.isQueryParamPresent(a),g=e.isHashPresent(a),n=e.isQueryParamPresent(b),o=e.isHashPresent(b);h||(n&&o?b=b.replace(/^(.*?)(\?[^#]*)(#?.*)$/,"$1$3"):n&&!o&&(b=b.replace(/^(.*)(\?.*)$/,"$1")));g||o&&(b=b.replace(/^(.*?)(#.*)$/, "$1"));"/"!==b&&(b=f.stripSlashes(b,n,o));"/"!==a&&(a=f.stripSlashes(a,h,g));h=RegExp("^"+f.regexEscape(a).replace(/\\\*/g,"(.*)")+"$","gi");if(h.test(b))return h=RegExp("^"+f.regexEscape(a).replace(/\\\*/g,"(.*)")+"$","gi"),!c||h.exec(b);b=f.removeWWW(b);a=f.removeWWW(a,!0);h=RegExp("^"+f.regexEscape(a).replace(/\\\*/g,"(.*)")+"$","gi");if(h.test(b))return h=RegExp("^"+f.regexEscape(a).replace(/\\\*/g,"(.*)")+"$","gi"),!c||h.exec(b);h=f.cleanURL(a,!0);if(-1===a.indexOf("*")&&(g=f.removeWWW(e.toAbsURL(b)).replace(/\/$/, "").replace(/\/\?/,"?"),g===a||g===h))return!0;b=f.cleanURL(b);a=h;h=RegExp("^"+f.regexEscape(a).replace(/\\\*/g,"(.*)")+"$","gi");return h.test(b)?(h=RegExp("^"+f.regexEscape(a).replace(/\\\*/g,"(.*)")+"$","gi"),!c||h.exec(b)):!1},matchRegex:function(d,a,f){function h(b){var c=RegExp(a,"gi").exec(d)||RegExp(a,"gi").exec(b(d));!c&&0!==d.indexOf("http")&&(c=RegExp(a,"gi").exec(e.toAbsURL(d))||RegExp(a,"gi").exec(b(e.toAbsURL(d))));return c}if("string"!==typeof d||"string"!==typeof a)return!1;var g= h(c);if(g)return f&&h(b)||g},setUrl:function(b){h=b},getUrl:function(){return h}};return f}(Ra,pa);za=function(){function g(b,e){var f=e[b](),d=e.get(0);if(!f){if(window.getComputedStyle&&(f=getComputedStyle(d)[b],"undefined"!==typeof f&&(f=parseInt(f,10),!isNaN(f)&&f)))return f;f=d["client"+b.toUpperCase()[0]+b.substring(1,b.length)]}return f}function e(b,e){if(b){var f,d=window.vwo_$,e=e||{};if(e[b])return!1;try{f=d("."+b)}catch(a){f=""}if(1===f.length)return!0;e[b]=!0;return!1}}var b={isUniqueClass:null, isNewVisitor:function(){var c=b.gC("_vis_opt_s");return c?1>=parseInt(c.split("|")[0],10):!0},previousElementSibling:function(b){if(b.previousElementSibling)return b.previousElementSibling;for(;b=b.previousSibling;)if(1===b.nodeType)return b},getXPath:function(c,h){if(!c)return null;if(c===document)return"#document";var h=h||{},f=c,d=[],a=c.tagName,i,g,m,n=window.vwo_$,o;if("string"===typeof a&&("body"===a.toLowerCase()||"head"===a.toLowerCase()))return a;for(;c;){a=c.tagName;i=a.match(/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/); if(!a||!i||(i&&i[0])!==a)a="*";try{g=n(c).attr("id")}catch(v){g=c.id}if(i=g)if(i="string"===typeof g)if(g){i=void 0;m=window.vwo_$;try{i=m("#"+g)}catch(q){i=""}i=i.length}else i=void 0;i&&(a=a+"#"+g);i=(i=c.getAttribute("class"))?i.split(/\s+/):[];for(var w=0;w "+d.join(" + ")}, getCorrectedTarget:function(c){return c instanceof SVGElement&&c.tagName&&"svg"!==c.tagName.toLowerCase()?b.getCorrectedTarget(c.parentNode):c},getElementWidth:function(b){return g("width",b)},getElementHeight:function(b){return g("height",b)},findParentsElements:function(b,e){var f=[],d=window.vwo_$,a=d(e);if(!b[0])return f;if(!e)return b.parents();b.parents().each(function(){0<=d.inArray(this,a)&&f.push(this)});return f}};b.isUniqueClass=e;return b}(za);Y=function(){return{logQueue:[],getKeys:function(g){var e= [],b;for(b in g)g.hasOwnProperty(b)&&e.push(b);return e},every:function(g,e,b){if("function"!==typeof e)return!1;for(var c=0;cparseFloat(a)},lt:function(d,a,e){return h(d)?b(d,a,e,"lt"):c(d, a,e)&&parseFloat(e[d])a.clientY);return b&&0>a.screenY-window.innerHeight&&0<(a.offsetX||a.clientX)-3&&0>a.clientX+3-window.innerWidth}function o(a){var b=s.getConfig(a),c=s.getData(a),d=a.domEvent;if(Math.abs(d.offsetY||d.clientY)>b.threshold&&n(d))c.callbackTimer=h.setTimeout(function(){s.triggerEvent(a,!1)},1E3*(c.delay||0))}var v=e.ls,q=e.ss,w={},I={mousedown:!1,click:!1},t=[],ia={dom:{listenerAdder:function(b){switch(b.shortName){case "load":a(document).ready(function(){b.domEvent=void 0;s.triggerEvent(b,!1)}); break;case "click":case "mousedown":t=t||[],t.push(b),I[b.shortName]||(I[b.shortName]=!0,document.addEventListener(b.shortName,function(b){t.forEach(function(c){var d=a(c.target),e=d.length,r;for(r=0;rb&&(b=0);s.addWaiter(a.relativeTo,function(){h.setTimeout(function(){s.triggerEvent(a, !1)},1E3*b)})}},interval:{listenerAdder:function(a){setInterval(function(){s.triggerEvent(a,!1)},1E3)}},leaveIntent:{threshold:2,delay:1,listenerAdder:function(b){a(document).mouseleave(function(a){b.domEvent=a;o(b)});a(document).mouseenter(function(a){b.domEvent=a;a=s.getData(b);clearTimeout(a.callbackTimer)})}},scroll:{listenerAdder:function(b){var c=b.target,d,e;c||(c=["tp","100"]);c instanceof Array||(c=["t",c]);d=c[0];e=c[1];a(window).scroll(function(){var c=e,f=a(document).height()-window.innerHeight, c=+c,c="tp"===d||"bp"===d?f*c/100:c;if("b"===d||"bp"===d)c=f-c;window.pageYOffset>=c-2&&s.triggerEvent(b,!1)})}},poll:{observer:function(a){try{return eval(a.target)}catch(b){return!1}},listenerAdder:function(a){function b(){a.observer(a)?(a.instantReturn=a.instantReturn&&a.stopped||!1,s.triggerEvent(a,!1),h.clearInterval(c)):a.stopped&&(a.instantReturn&&s.triggerEvent(a,!1),h.clearInterval(c))}var c;b();c=h.setInterval(b,a.config.pf);a.event=c}},js:{listenerAdder:function(b){s.getCustomTrigger(b.target, b.config.js)(function(){s.triggerEvent(b,!1)},a)}}},s={setPastTriggers:function(){var c=this,d;this.crossStore?d=this.crossStore.getLocal({key:"tE"})||{}:(d=v.get("tE")||{},a.extend(d,q.get("tE")));this.eventsReadFromPersistence=d;a.each(d,function(a,d){if(d)if(d instanceof Array)for(h=0;h=b.timers[e].expectedTime?(b.timers.splice(e,1),e--,f=!0):b.timers[e].s++;break;case "interval":b.timers[e].s=b.timers[e].sb,f=!0}f&&c()}b.deleteGlobalInterval()}, 50),b.initialized=!0)},_set:function(c,h,f){b.init();var d=Math.round(f/50+1)||1;b.timers.push({c:h,s:d,sb:d,type:c,id:++e,startTime:(new Date).getTime(),expectedTime:f||0});return e},_clear:function(c){b.timers=b.timers.filter(function(b){return b.id!==c});b.deleteGlobalInterval()},deleteGlobalInterval:function(){b.timers.length||(clearInterval(g),b.initialized=!1)},setTimeout:function(c,e){return b._set("timeout",c,e)},setInterval:function(c,e){return b._set("interval",c,e)},clearTimeout:function(c){return b._clear(c)}, clearInterval:function(c){return b._clear(c)}};return b}(lb),za,F,y);ga=function(){return{replaceZero:function(g,e,b){if(b&&b.cSId&&("s.q"===g||"s.s"===g||"s.r"===g))if(e instanceof Array&&e[0]instanceof Array)for(g=0;g=parseInt(b.split("|")[0],10):!0},gte:function(b,a){return b>=a},triggerLibEvent:function(b,a){a instanceof Array||(a=[a]);window._vwo_evq.push([b].concat(a))}, init:function(b){this.crossStore=b}};f.gC=f.getCookie;f.eO=f.hasEventOccurred;f.tS=f.stS=f.timeSpent;f.eC=f.checkEventOccurrence;f.pV=function(b){var b=b||[],a=f.getPvc();return eval(a+b.join(""))};f.T=function(){return this.isNewVisitor()?"new":"ret"};return f}(Ta,fa,ga,Y,F);y={poll:/_vwo_t\.cm\(\\?['"]eO\\?['"],\s*\\?['"]poll\\?['"]/,segment:/_vwo_s\(\)/};Aa=function(g,e,b,c,h,f,d){function a(){}var i=[].slice,k,m=!1,n,o,v,q={addTriggers:function(c){b.forEach(c,function(d){d=q.orifyTriggerExpression(d); if("1"===d||"true"===d)d="false";try{a=function(){eval(c);q.onTrigger()},eval(d),a=null}catch(e){b.log("Error in adding triggers",e)}});k=!0},clearEvents:function(a){if(a)for(var b=0;bf[h].indexOf("_vis_opt_out")&&b.erase(f[h],a.domain);c(a,function(){b.create("_vis_opt_out",2,100,a.domain);e.success()}, function(){a.retryRequest++;3>=a.retryRequest?setTimeout(function(){i.optOut(a,e)},50):e.error({errorType:"LOCAL_OPT_OUT_PARTIALLY_FAILED"})})}},updateGlobalOptOutState:function(a,b){i.options=a;m.checkGlobalOptOutStatus(b)}},k={checkOptOutStatus:function(){return!!b.get("_vis_opt_out")},optOut:function(a,c){a?i.process(i.options,c):(b.erase("_vis_opt_out",i.options.domain),k.isOptedOut=!1)}},m={globalOptOut:function(a,b){var d=i.options,e=[{name:"_vwo_global_opt_out",value:a?1:0,isDeleted:0}],b= b||{};d.url="cdc?cookies="+JSON.stringify(e)+"&accountId="+d.accountId+"&r="+Math.random();d.serverUrl="https://dev.visualwebsiteoptimizer.com/";c(d,function(){m.isGloballyOptedOut=a;b.success()},b.error)},checkGlobalOptOutStatus:function(a){a=a||{};a.success=a.success||d;a.error=a.error||d;m.isThirdPartyCookiesSupported({success:function(b){m.isGloballyOptedOut=b?!!parseInt(b._vwo_global_opt_out,10):!1;a.success(m.isGloballyOptedOut)},error:a.error})},isThirdPartyCookiesSupported:function(a){a=a|| {};a.success=a.success||d;a.error=a.error||d;var b=i.options.accountId;c({url:"cdc?cookies="+JSON.stringify([{name:"_vis_opt_test_cookie",value:1,isDeleted:0}])+"&accountId="+b+"&r="+Math.random(),serverUrl:"https://dev.visualwebsiteoptimizer.com/",vn:VWO.v},function(){f(function(c){c&&c["_vis_opt_test_cookie_"+b]?(m.tpc=!0,a.success(c)):(m.tpc=!1,a.success(m.tpc))})},function(){a.error({errorType:"TPC_SUPPORT_DETECTION_FAILED"})})}};VWO.optOut={init:i.init};e.init("optOut");return i}(qa,wa,B,W,Ua); Ca=function(){return{get:function(g){try{return window.localStorage.getItem(g)}catch(e){return""}},set:function(g,e){try{return window.localStorage.setItem(g,e)}catch(b){return""}},remove:function(g){try{return window.localStorage.removeItem(g)}catch(e){return!1}}}}(Ca);ha=function(){var g=VWO.TRACK_SESSION_COOKIE_EXPIRY_CUSTOM||1/48,g={TRACK_GLOBAL_COOKIE_NAME:"_vwo_ds",TRACK_SESSION_COOKIE_NAME:"_vwo_sn",TRACK_SESSION_COOKIE_EXPIRY:g,TRACK_GLOBAL_COOKIE_EXPIRY:Math.min(VWO.TRACK_GLOBAL_COOKIE_EXPIRY_CUSTOM|| window.VWO.data.rp||90,90),SESSION_TIMER_EXPIRE:864E5*g,COOKIE_VERSION:3,COOKIE_TS_INDEX:1,COOKIE_VERSION_INDEX:0,FIRST_SESSION_ID_INDEX:0,PC_TRAFFIC_INDEX:1,RELATIVE_SESSION_ID_INDEX:0,PAGE_ID_INFORMATION_INDEX:1,SESSION_SYNCED_STATE_INDEX:4,PAGE_ID_EXPIRY:15};return VWO._.CookieEnum=g}(ha);Da=document;Ea=function(g,e,b){g=new (function(){function c(){this.eventCallbacks=[];this.isInitialized=!1}c.prototype.onActivity=function(){for(var b=0;bthis.lastSent:"Hash"===this.type?0t.getFirstSessionId()};g.prototype.isSessionInfoSynced=function(){return this.getSNCookieValueByIndex(c.SESSION_SYNCED_STATE_INDEX)};g.prototype.updateAndSyncPageId= function(){VWO._.pageId||(VWO._.pageId=t.updatePageId())};g.prototype.updatePageId=function(){var a=this.getPageId();this.shouldUpdatePageCount()&&(a+=1);this.markPageId(a);return a};g.prototype.shouldUpdatePageCount=function(){var a=w();return(a=parseInt(a&&a[1],10))?e.getCurrentTimestamp(!0)-t.getFirstSessionId()>a:!0};g.prototype.getPageId=function(){var a=w();return(a=a&&a[0])?parseInt(a,10):0};g.prototype.markPageId=function(a){this.setSNCookieValueByIndex(c.PAGE_ID_INFORMATION_INDEX,a)};g.prototype.getSessionStore= function(){return n.get(c.TRACK_SESSION_COOKIE_NAME)};g.prototype.getSNCookieValueByIndex=function(a){var b=this.getSessionStore();return!b?null:b.split(":")[a]};g.prototype.getFirstSessionId=function(){var b=a.getDataStore();b||(this.createGlobalCookie(),b=a.getDataStore());return b&&+b.split(":")[c.FIRST_SESSION_ID_INDEX]};g.prototype.getDSCookieValueByIndex=function(a){var b=this.getGlobalCookie();return!b?null:b.split("$")[a]};g.prototype.shouldSendSessionInfoInCall=function(a){return m._vwo_exp[a].version>= h.AB_MIGRATED_CAMPAIGN_VERSION&&m._vwo_exp[a].ps};g.prototype.getRelativeSessionId=function(){var a=this.getSessionStore();a||(this.setSessionStore(e.getCurrentTimestamp(!0)-t.getFirstSessionId()),a=this.getSessionStore());return a&&+a.split(":")[c.RELATIVE_SESSION_ID_INDEX]};g.prototype.getSessionId=function(){return this.getFirstSessionId()+this.getRelativeSessionId()};g.prototype.getPcTraffic=function(){if(void 0===this.pcTraffic||null===this.pcTraffic)this.pcTraffic=(this.pcTraffic=this.getPcTrafficFromCookie())|| parseFloat((100*Math.random()).toFixed(8));return this.pcTraffic};g.prototype.getPcTrafficFromCookie=function(){var b=a.getDataStore();return!b?null:parseFloat(b.split(":")[c.PC_TRAFFIC_INDEX])};g.prototype.setSessionStore=function(a){k.createCookie(c.TRACK_SESSION_COOKIE_NAME,a,c.TRACK_SESSION_COOKIE_EXPIRY)};g.prototype.getGlobalCookie=function(){return n.get(c.TRACK_GLOBAL_COOKIE_NAME)};g.prototype.createGlobalCookie=function(){var a=c.COOKIE_VERSION+"$"+e.getServerStartTimestamp(!0)+":"+this.getPcTraffic()+ "::";k.createCookie(c.TRACK_GLOBAL_COOKIE_NAME,a,c.TRACK_GLOBAL_COOKIE_EXPIRY)};g.prototype.setSNCookieValueByIndex=function(a,b){var c=this.getSessionStore(),c=c&&c.split(":")||[];c[a]=b;this.setSessionStore(c.join(":"))};g.prototype.expireSessionOnDateChange=function(){if(this.getSessionStore()){var a=this.getSessionId();a&&(a=(new Date(1E3*a)).getDate(),(new Date(e.getCurrentTimestamp())).getDate()!==a&&this.expireSession())}};g.prototype.updateSession=function(){var a=this.getSessionStore();a&& this.expireSessionOnDateChange();a=this.getSessionStore();!this.sessionTimer&&!a?this.retrackVisitor():(a&&this.setSessionStore(a),this.updateSessionTimer())};g.prototype.updateSessionTimer=function(){var a=this;this.sessionTimer&&m.clearTimeout(this.sessionTimer);this.sessionTimer=m.setTimeout(function(){return a.expireSession()},c.SESSION_TIMER_EXPIRE)};g.prototype.expireSession=function(){this.sessionTimer=null;n.erase(c.TRACK_SESSION_COOKIE_NAME)};g.prototype.retrackVisitor=function(){this.setSessionStore(e.getCurrentTimestamp(!0)- t.getFirstSessionId());o(u.RETRACK_VISITOR)};g.prototype.getInfo=function(){return this.vwoSn};g.prototype.removeInfo=function(){b.remove(g.LOCAL_STORAGE_NAME);this.vwoSn={cu:"",r:"",lt:0,v:"0.1.0"}};g.prototype.getLocalStorageSession=function(a){var c=b.get(g.LOCAL_STORAGE_NAME);try{c=c?i.jsonParse(c):null}catch(d){b.remove(z.LOCAL_STORAGE_NAME),this.createLocalStorageSession(!0),a||this.getLocalStorageSession(!0)}return c?(c.v?(c.cu=decodeURIComponent(c.cu),c.r=decodeURIComponent(c.r)):c.v="0.1.0", c):null};g.prototype.setLocalStorageSession=function(){this.vwoSn.v&&(this.vwoSn.cu=encodeURIComponent(this.vwoSn.cu),this.vwoSn.r=encodeURIComponent(this.vwoSn.r));b.set(g.LOCAL_STORAGE_NAME,i.jsonStringify(this.vwoSn))};g.prototype.updateLocalStorageSession=function(){var a=this.getLocalStorageSession();(a?(e.getCurrentTimestamp(!0)-a.lt)/60>g.LOCAL_STORAGE_SESSION_EXPIRY:1)?this.createLocalStorageSession():this.updateTimestampInfo(a)};g.prototype.createLocalStorageSession=function(a){a?(this.vwoSn.cu= d.URL+"#vwo_fix",this.vwoSn.r=d.referrer+"#vwo_fix"):(this.vwoSn.cu=d.URL,this.vwoSn.r=d.referrer);this.vwoSn.lt=e.getCurrentTimestamp(!0);this.setLocalStorageSession()};g.prototype.updateTimestampInfo=function(a){this.vwoSn=a;this.vwoSn.lt=e.getCurrentTimestamp(!0);this.setLocalStorageSession()};g.LOCAL_STORAGE_SESSION_EXPIRY=30;g.LOCAL_STORAGE_NAME=m._vis_debug?"debug_vwoSn":"vwoSn";g.ACCOUNT_ID=m._vwo_acc_id;return g}();return z}(ra,J,Ca,ha,na,Ea,Da,Fa,da,X,u,B,z,Ga,Ia);Ja=function(g,e){return{getHashedFileName:function(b){var c= e._vwo_lib_cb||+new Date,b=b.split(".");b[0]=b[0]+"-"+c;return b.join(".")},getMajorVersion:function(b){return/^v?(\d+)(?:\.\d+)+.*$/.exec(b)[1]+".0"},getSyncLibraryVersion:function(b,c){var e,f=this.getMajorVersion(c);b!==f&&parseInt(f,10)<=parseInt(b,10)&&(e=b);"3.0"===e&&(e="track");return e}}}(Ja,u);Ka=function(g,e,b,c){for(var h=c._vwo_exp,f=VWO.data.gC||[],d=[],g=0;ge.arrayContains(d,a[g])?this.expPossibleToRunMap[a[g]]=0:b.isExcluded(parseInt(a[g]))?this.expPossibleToRunMap[a[g]]=3:(c=!0,b.isBucketed(parseInt(a[g]))||b.isLogged(a[g])||b.getSplitDecision(parseInt(a[g]))?this.expPossibleToRunMap[a[g]]=1:1!==this.expPossibleToRunMap[a[g]]&&this.isExperimentReadyToRun(a[g])&&(this.expPossibleToRunMap[a[g]]=2));c&&this.filterByGroupType();return this.getFilteredArrayFromList(a)},expPossibleToRunMap:{}}}(Ka, J,xa,u);Va=function(){var g=window._vwo_exp_ids,e=window._vwo_exp,b;return(b=(location.search+location.hash).match(/.*_vis_test_id=(.*?)&.*_vis_opt_preview_combination=(.*)$/))?0<=vwo_$.inArray(b[1],g)&&e[b[1]]&&void 0!==e[b[1]].combs[b[2]]?b[2]:!1:!1}(Va);db=function(g,e,b,c,h,f,d,a,i,k,m,n,o,v,q,u,z,t,y,s,r,B,p,F,D,J,M,N,R,aa,U,H){function V(){return"undefined"!==typeof VWO._.redirectionDelayTime?VWO._.redirectionDelayTime:Ua}function ba(){var a=VWO.data.deps;a&&(a.analyze&&la(a.analyze.core),a.track&& ha(a.track.core))}function da(a){var b=vwo_$(a.target),a=b.get(0);"string"===typeof a.tagName&&("form"!==a.tagName.toLowerCase()&&0C||1O||1'+a.unescape("%3C/s")+"cript>");if(a.vwoSyncTpcFailed){a._vwo_text="body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}"; j.hideElements();sa(b,function(){p.delCSS("body")})}}else X()}if(!a._vis_opt_heatmap&&a._vis_debug&&W())!a._vwo_settings_timed_out&&a._vwo_code.finished()&&j.triggerEvent(c.TOP_INITIALIZE_ERROR,null,void 0,void 0,void 0,true);else{a.clearTimeout(Sa);j.topInitialize();vwo_$(document).ready(j.bottomInitialize)}a._vwo_settings_timed_out=false;_vwo_code.libExecuted=1},bottomInitialize:function(a,b,d){var e=vwo_$("body")[0];b||(b=Xa);a&&(a.fn&&a.fn.jquery)&&(a=P?3:0);cb=true;j.triggerEvent(c.BOTTOM_INITIALIZE_BEGIN); if(1===Q)j.triggerEvent(c.BOTTOM_INITIALIZE_END,true);else{j.applyExperiments(a,b,d);e&&!e.vwoFEvent&&j.monitorSubmissions();e&&!e.vwoCEvent&&j.monitorClicks();j.timeout();Q||r.finish();Xa.length=0;j.triggerEvent(c.BOTTOM_INITIALIZE_END)}},collectAndSendDataForGA:function(b,c){if(!p.isSessionBasedCampaign(b)){var d=0;S[b]={};S[b].c=c;S[b].n=l[b].comb_n[S[b].c]||"";var e=l[b].GA?"GA":l[b].UA?"UA":"";if(e&&!l[b][e].tracked){j.gaTrack(b,l[b][e].s,l[b][e].p,e);l[b][e].tracked=true}if(l[b].GTM){d={};d["Campaign-"+ b]=S[b].n;a.dataLayer=a.dataLayer||[];a.dataLayer.push(d);d=1}d&&Va()}},applyExperiments:function(d,f,g){var i,C=f.length,k,x,m;for(x=false;C--;){i=f[C];g=!!g;if(l[i].manual===g){if(l[i].ready){k=l[i].type;x=false;if(b.SPLIT_CAMPAIGN!==k&&!p.isDomIndependentCampaign(k)){k=H||e.getCombi(i);if(!k){x=true;k=j.chooseCombination(i);if(!k)return}j.triggerEvent(c.ELEMENT_LOAD_TIMER_STOP,i,k);j.bottomRenderCombination(k,i,d);d===3&&l[i].ready?ea(i):K(d,i)&&j.clearTimeouts(i);e.record(k,i,x);if(k){x=p.preProcessJS(l[i].globalCode.post, i,k);B.executeCode(x)}for(var G in ja)ja.hasOwnProperty(G)&&j.triggerEvent(c.ELEMENT_NOT_LOADED,i,ja[G][0],ja[G][1],G)}}if("undefined"!==typeof a._vis_opt_revenue){j.triggerEvent(c.CONVERT_REVENUE_GOALS_FOR_EXPERIMENT,i,a._vis_opt_revenue);x=q.getKeys(l[i].goals);for(k=x.length;k--;){m=x[k];h.REVENUE_TRACKING===l[i].goals[m].type&&j.isGoalEligible(l[i].goals[m])&&j.registerConversion(m,i,a._vis_opt_revenue)}}}}Q||r.finish();bb=false},timeout:function(){a._vwo_code.finish();p.delAllCSS();j.finished= 1},monitorSubmissions:function(){var a=vwo_$("body")[0];if(!H){t.addJqEventListener(vwo_$(a),"bind","submit",da);if(a)a.vwoFEvent=1}},monitorClicks:function(){var a=vwo_$("body")[0],b=vwo_$(a);H||t.addJqEventListener(b,"bind","mousedown",wa).addJqEventListener(b,"bind","touchend",xa).addJqEventListener(b,"bind","touchmove",za);if(a)a.vwoCEvent=1},_revenueConversion:function(a,d){if(!isNaN(parseFloat(a))){var e,f,g=E.length,i,x;for(j.triggerEvent(c.CONVERT_ALL_REVENUE_GOALS_FOR_ALL_EXPERIMENTS,a);g--;){f= E[g];if(l[f].type===b.GOAL_CAMPAIGN===d){i=q.getKeys(l[f].goals);for(x=i.length;x--;){e=i[x];h.REVENUE_TRACKING===l[f].goals[e].type&&j.isGoalEligible(l[f].goals[e])&&j.registerConversion(e,f,a)}}}}},revenueConversion:function(a){j._revenueConversion(a,false)},revenueConversionForTrack:function(a){j._revenueConversion(a,true)},goalConversion:function(a){j._goalConversion(a,false)},_goalConversion:function(a,d){if(!isNaN(parseInt(a,10))){j.triggerEvent(c.CONVERT_GOAL_FOR_ALL_EXPERIMENTS,a);for(var e= E.length,f;e--;){f=E[e];"object"===typeof l[f].goals[a]&&(l[f].type===b.GOAL_CAMPAIGN===d&&j.isGoalEligible(l[f].goals[a]))&&j.registerConversion(a,f)}}},goalConversionForTrack:function(a){j._goalConversion(a,true)},recordVisitor:function(d,f,g){if(d){var h=l[f].type;if(g&&!e.isLogged(f)){j.registerHit(d,f);e.isDomDependent(h)&&e.createTempCombiCookie(f,d)}else{j.triggerEvent(c.VARIATION_SHOWN,f,d);j.triggerEvent(c.VARIATION_APPLIED,f,d)}(e.isDomDependent(h)||h===b.SPLIT_CAMPAIGN)&&a.VWO.push(["tag", f,d,"session",true]);j.collectAndSendDataForGA(f,d)}},runCampaigns:function(a,b,c){var d;d=false;if(typeof a==="object"){d=a;a=d.keepElementLoadedRunning;b=d.expIds;c=d.isManual;d=d.runFullFlow}if(c||_vwo_code.libExecuted){b||(b=E);b instanceof Array||(b=[b]);va(b);if(d){j.finished=0;j.clearTimeouts(b);j.topInitialize(b,c,a);vwo_$(document).ready(function(){j.bottomInitialize(a,b,c)})}else j.processExperiments(b,c,a)}},clearTimeouts:function(a){a||(a=E);a instanceof Array||(a=[a]);for(var b=0;b=4?VWO.data.vi&&VWO.data.vi.vt==="new"?1:2:parseInt((i.get("_vis_opt_s")||"").split("|")[0],10));C="l.gif?experiment_id="+ f+"&account_id="+Oa+"&cu="+encodeURIComponent(T)+"&combination="+d+x+m+p.getUUIDString(C)+k;p.isSessionBasedCampaign(f)||p.sendCall(C,h,true)}if(l[f].type===b.GOAL_CAMPAIGN){a.VWO.push(["tag",f,d,"session",true]);h=e.getTrackGoalIdFromExp(f);a.VWO.push(["tag",h,null,"eg"])}g||j.triggerEvent(c.REGISTER_HIT,f,d);j.triggerEvent(c.VARIATION_APPLIED,f,d)},registerConversion:function(b,d,f){var b=b||1,d=d||E[0],g=e.getCombi(d);if(!g||e.isGoalTriggered(d,b)||p.isBot()||!j.eligible({id:d,verifyForGoal:true}))j.triggerEvent(c.REGISTER_CONVERSION, d,b,f,false);else{l[d].goals[b].type!==h.REVENUE_TRACKING&&(f=void 0);if(g=j.getImgUrlForConversion(d,b,g,f)){!H&&(!a._vis_debug&&p.shouldTrackUserForCampaign(d)&&!parseInt(i.get(ta),10))&&p.sendCall(g);e.markGoalTriggered(d,b)}j.triggerEvent(c.REGISTER_CONVERSION,d,b,f,!!g)}},getImgUrlForConversion:function(a,c,d,e){var f=L.getSessionId(),e="c.gif?account_id="+Oa+"&experiment_id="+a+"&goal_id="+c+"&ru="+encodeURIComponent(m.get())+("undefined"===typeof e?"":"&r="+e)+p.getUUIDString(p.getUUID(a)); if(l[a].type===b.GOAL_CAMPAIGN){if(c=F.getGtAndF(c)){a=L.getFirstSessionId();return e+"&s="+f+"&ifs="+ +(f===a)+"&t=1&cu="+encodeURIComponent(T)+c}return""}f=L.shouldSendSessionInfoInCall(a)?"&sId="+f:"";return e+"&combination="+d+f},isGoalEligible:function(a){if(a.pExcludeUrl&&v.matchRegex(T,a.pExcludeUrl)){j.triggerEvent(c.EXCLUDE_GOAL_URL);return false}return a.pUrl?Ma(T,a.pUrl,null):Ma(T,null,a.url)},goalVisit:function(a){for(var b=q.getKeys(l[a].goals),d=b.length,e,f;d--;){e=b[d];if(isNaN(parseInt(e, 10)))j.triggerEvent(c.CONVERT_VISIT_GOAL_FOR_EXPERIMENT,a,void 0,ka);else{f=l[a].goals[e];if(h.SEPARATE_PAGE===f.type&&j.isGoalEligible(f)){j.triggerEvent(c.CONVERT_VISIT_GOAL_FOR_EXPERIMENT,a,e,ka);j.registerConversion(e,a)}}}},hideElements:function(b){var c,d,e=b?[b]:E;if(b)for(b=e.length;b--;){d=e[b];(c=(c=ma(d))?c+"{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}":"")&&p.insertCSS("_vis_opt_path_hides_"+d,c)}else{c=a._vwo_text||"";p.insertCSS("_vis_opt_path_hides", c)}},isChangeAppliedOnElForCampaign:function(a,b){return vwo_$(a).hasClass("vwo_loaded")&&vwo_$(a).hasClass("vwo_loaded_"+b)},markChangeAppliedOnElForCampaign:function(a,b){return vwo_$(a).addClass("vwo_loaded vwo_loaded_"+b)},bottomRenderCombination:function(d,e,f){if(!W()&&l[e].ready){var g=d.split(","),h=0,i,x,k,m=l[e].type,A,n,o,q,s,r=l[e].sections,t;try{if(b.AB_CAMPAIGN===m)if(o=r[1].variations[d]){typeof o!=="object"&&(o=vwo_$.parseJSON(o));g=Array(o.length)}else g=[];n=g.length;0===vwo_$("#vwo_temp").length&& vwo_$('').appendTo("body").html("

");for(A=0;A=2?o[A].js:o[A].content}else{if(!(x=r[++h].path))continue;x.toLowerCase()!=="head"&&!j.isChangeAppliedOnElForCampaign(x,e)&&(ja[x]=[h,g[A]]);if(1===l[e].version&&1===parseInt(g[A],10)){j.triggerEvent(c.ELEMENT_LOADED,e,h,g[A],x);j.markChangeAppliedOnElForCampaign(x, e);p.delCSS(x,e);continue}i=r[h].variations[g[A]];l[e].version>=2&&"string"===typeof i&&(i=i&&vwo_$.parseJSON(i)||"")}i=i.replace(/VWO_SECTION_ID/g,h);if("head"===x.toLowerCase()){r[h].loaded=r[h].loaded||{};if(true!==r[h].loaded[A]){r[h].loaded[A]=true;j.triggerEvent(c.ELEMENT_LOADED,e,h,b.MVT_CAMPAIGN===m?g[A]:d,x);var v=vwo_$(".vwo_loaded.vwo_loaded_"+e+"._vwo_variation_"+h);vwo_$(x).append(j.markChangeAppliedOnElForCampaign(vwo_$(i),e).addClass("_vwo_variation_"+h));v.remove();j.triggerEvent(c.ELEMENT_CHANGES_APPLIED, e,h,b.MVT_CAMPAIGN===m?g[A]:d,x,i)}}else{if((t=vwo_$(x))&&t.length){k=t.filter(function(a,b){return!j.isChangeAppliedOnElForCampaign(b,e)});if(0<\/script>";var u=[],w=function(a,b){u.push({path:b,changes:(""+a).split(" ")})};if(l[e].version>=2){if(-1!==i.indexOf("_vwo_api_section_callback")){q= [];k.each(function(){q.push(vwo_$(this).clone())})}if(a._vis_debug){i=i.replace(/\/\*vwo_debug/g,"").replace(/vwo_debug\*\//g,"");i="var log=arguments[2];"+i}s=new Function("var x=arguments[0],vwo_$=arguments[1];"+i);s.call(this,x,vwo_$,w);q!==void 0&&vwo_$(q).each(function(){if(Pa[h]&&typeof Pa[h]==="function")Pa[h](vwo_$(x),this)})}else k.each(function(){if("function"===typeof Pa[parseInt(h,10)]){j.triggerEvent(c.API_SECTION_CALLBACK,e,h,Pa[h]);Pa[h](vwo_$("#vwo_temp").children(),vwo_$(""+ B.outerHtml(this)+""))}}).replaceWith(vwo_$("#vwo_temp").html());document.getElementById("vwo_temp").innerHTML="

";p.delCSS(x,e);j.markChangeAppliedOnElForCampaign(x,e);l[e].version<2&&j.markChangeAppliedOnElForCampaign(vwo_$(x).find("*"),e);b.MVT_CAMPAIGN===m?j.triggerEvent(c.ELEMENT_CHANGES_APPLIED,e,h,g[A],x,i,u):j.triggerEvent(c.ELEMENT_CHANGES_APPLIED,e,"1",d,x,i,u);l[e].ca=1}else p.delCSS(x,e)}j.finished&&(P&&K(f,e))&&j.clearTimeouts(e)}}}catch(y){j.triggerEvent(c.ELEMENT_LOAD_ERROR, e,d,y)}return true}},elementLoaded:function(a,b){if(!p.isDomIndependentCampaign(l[a].type)){var c=l[a].combination_chosen;l[a].timeout=f(function(){j.elementLoaded(a,b)});j.bottomRenderCombination(c,a,b)}},isSplit:function(d){bb&&vwo_$("._vis_opt_hidden").remove();if(b.SPLIT_CAMPAIGN===l[d].type&&("RUNNING"===l[d].status||H)){var f,g=e.getSplitDecision(d);if(!g)return false;f="";var h=false;f=l[d].sections;if(f[1].variationsRegex){f=f[1].variationsRegex[g];h=Ma(T,f,null)}else{f=f[1].variations[g]; h=v.matchWildcard(ka,f)}if(h){j.triggerEvent(c.MATCH_WILDCARD,d,ka,f,true);f=e.getCombi(d);l[d].combination_chosen=g;l[d].ivp=1;j.triggerEvent(c.CHOOSE_COMBINATION,d,g,true);if(!f&&!H){f=g;e.include(d,f);a.VWO.push(["tag",d,f,"session",true]);j.triggerEvent(c.REGISTER_HIT,d,f);j.triggerEvent(c.VARIATION_APPLIED,d,f)}else{j.triggerEvent(c.CONVERT_ALL_VISIT_GOALS_FOR_EXPERIMENT,d,true);if(!H){a.VWO.push(["tag",d,g,"session",true]);j.triggerEvent(c.VARIATION_SHOWN,d,f);j.triggerEvent(c.VARIATION_APPLIED, d,f)}j.goalVisit(d)}j.collectAndSendDataForGA(d,f);return true}j.triggerEvent(c.MATCH_WILDCARD,d,ka,f,false)}return false},unhideVariation:function(a){var d=q.getKeys(l[a].sections),e=d.length,f,g,h,i,k,m,o,n;f=l[a].type;if(b.AB_CAMPAIGN===f)for(;e--;){f=d[e];g=l[a].sections[f];if(g.variations){h=q.getKeys(g.variations);i=h.length;for(j.triggerEvent(c.UNHIDE_SECTION,a,f,!i);i--;){k=h[i];o=g.variations[k];if(g.variations[k]=o="string"===typeof o?o&&vwo_$.parseJSON(o):o){m=o.length;for(j.triggerEvent(c.UNHIDE_VARIATION, a,f,k,!m);m--;){n=o[m].xpath;j.triggerEvent(c.UNHIDE_ELEMENT,a,f,k,n);p.delCSS(n,a)}}else j.triggerEvent(c.UNHIDE_VARIATION,a,f,k,!o)}}else j.triggerEvent(c.UNHIDE_SECTION,a,f,true)}else if(b.MVT_CAMPAIGN===f)for(;e--;){f=d[e];n=l[a].sections[f].path;j.triggerEvent(c.UNHIDE_ELEMENT,a,f,void 0,n);p.delCSS(n,a)}else if(b.SPLIT_CAMPAIGN===f){j.triggerEvent(c.UNHIDE_ELEMENT,a,void 0,void 0,"*");p.delCSS("*");j.triggerEvent(c.UNHIDE_ELEMENT,a,void 0,void 0,"body");p.delCSS("body")}},unhideVariationIfNotSplit:function(a){l[a].type!== b.SPLIT_CAMPAIGN&&j.unhideVariation(a)},compareUrlWithIncludeExcludeRegex:function(a,b,c,d){var e={};if(c&&v.matchRegex(a,c)){e.didMatch=false;e.reason=1;return e}e.didMatch=Ma(a,b,d);e.reason=e.didMatch?2:3;return e},doExperimentHere:function(a){var b=j.compareUrlWithIncludeExcludeRegex(T,l[a].urlRegex,l[a].exclude_url,l[a].url_pattern);b.reason===1?j.triggerEvent(c.EXCLUDE_URL,a):j.triggerEvent(c.MATCH_WILDCARD,a,ka,l[a].urlRegex||l[a].url_pattern,b.didMatch);return b.didMatch},chooseCombination:function(a, c){var d=a&&(l[a].combination_chosen||l[a].cc);if(d)return d;var e=Math.random(),f=c&&c.scaleInfo||l[a].combs,g,h=q.getKeys(f),i=h.length,j={},k={},m=0,o=false,p=false,n;for(n=0;n