/*
SPF 21 (v2.1.0)
(c) 2012-2014 Google, Inc.
License: MIT
*/
(function(){function l(a,b,c){var d=Array.prototype.slice.call(arguments,2);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(b,c)}}function aa(a,b){if(a){var c=Array.prototype.slice.call(arguments,1);try{return a.apply(null,c)}catch(d){return d}}}function m(a,b){if(document.createEvent){var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!0,!0,b);return document.dispatchEvent(c)}return!0}function n(){return(new Date).getTime()}function ba(){};function q(a,b){return r[a]=b}var r=window._spf_state||{};window._spf_state=r;var ca={"animation-class":"spf-animate","animation-duration":425,"cache-lifetime":6E5,"cache-max":50,"cache-unified":!1,"link-class":"spf-link","nolink-class":"spf-nolink","navigate-limit":20,"navigate-lifetime":864E5,"reload-identifier":null,"request-timeout":0,"url-identifier":"?spf=__type__"},s={};"config"in r||q("config",s);s=r.config;function da(a,b){var c=b||document;return c.querySelectorAll?c.querySelectorAll(a):[]}function ea(a){var b,c=a.parentNode;if(c&&11!=c.nodeType)if(a.removeNode)a.removeNode(!1);else{for(;b=a.firstChild;)c.insertBefore(b,a);c.removeChild(a)}}function fa(a,b,c){for(;a;){if(b(a))return a;if(c&&a==c)break;a=a.parentNode}return null}
function ga(a,b,c){a=a||"";b=b||document;var d=b.createElement("iframe");d.id=a;d.src='javascript:""';d.style.display="none";c&&(d.onload=l(c,null,d));b.body.appendChild(d);return d};function t(a,b,c,d){var e=window.history.state;d&&e&&(b=b||e);ha(!0,a,b,c)}function ha(a,b,c,d){if(b||c){b=b||window.location.href;c=c||{};var e=n();q("history-timestamp",e);c["spf-timestamp"]=e;if(a)ia(c,b);else if(a=ja().contentWindow.history.pushState,"function"==typeof a)a.call(window.history,c,"",b);else throw Error("history.pushState is not a function.");q("history-url",b);d&&(d=r["history-callback"])&&d(b,c)}}
function ka(a){var b=window.location.href;if(r["history-ignore-pop"])q("history-ignore-pop",!1);else if(a.state){a=a.state;var c=a["spf-timestamp"];b==r["history-url"]?(q("history-timestamp",c),ia(a,b)):(a["spf-back"]=c<parseInt(r["history-timestamp"],10),a["spf-current"]=r["history-url"],q("history-timestamp",c),q("history-url",b),(c=r["history-callback"])&&c(b,a))}}
function ia(a,b){var c=ja().contentWindow.history.replaceState;if("function"==typeof c)c.call(window.history,a,"",b);else throw Error("history.replaceState is not a function");}function ja(){var a=document.getElementById("history-iframe");a||(a=ga("history-iframe"));return a};function u(a,b){if(a.forEach)a.forEach(b,void 0);else for(var c=0,d=a.length;c<d;c++)c in a&&b.call(void 0,a[c],c,a)}function la(a,b){if(a.every)return a.every(b,void 0);for(var c=0,d=a.length;c<d;c++)if(c in a&&!b.call(void 0,a[c],c,a))return!1;return!0}function ma(a,b){if(a.filter)return a.filter(b,void 0);var c=[];u(a,function(a,e,f){b.call(void 0,a,e,f)&&c.push(a)});return c}
function na(a,b){if(a.map)return a.map(b,void 0);var c=[];c.length=a.length;u(a,function(a,e,f){c[e]=b.call(void 0,a,e,f)});return c}function v(a){return"[object Array]"==Object.prototype.toString.call(a)?a:[a]};function oa(a){var b=w();a in b&&delete b[a]}function pa(){var a=w(),b;for(b in a)qa(a[b])||delete a[b];a=w();b=parseInt(s["cache-max"],10);b=isNaN(b)?Infinity:b;b=Object.keys(a).length-b;if(!(0>=b))for(var c=0;c<b;c++){var d=Infinity,e,f;for(f in a)a[f].count<d&&(e=f,d=a[f].count);delete a[e]}}function qa(a){if(!(a&&"data"in a))return!1;var b=a.life,b=isNaN(b)?Infinity:b;return n()-a.time<b}function ra(a){var b=parseInt(r["cache-counter"],10)||0;b++;q("cache-counter",b);a.count=b}
function w(a){return!a&&"cache-storage"in r?r["cache-storage"]:q("cache-storage",a||{})};function sa(a){return a.classList?a.classList:a.className&&a.className.match(/\S+/g)||[]}function ta(a,b){if(a.classList)return a.classList.contains(b);for(var c=sa(a),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0;return!1}function ua(a,b){a.classList?a.classList.add(b):ta(a,b)||(a.className+=" "+b)}function va(a,b){if(a.classList)a.classList.remove(b);else{for(var c=sa(a),d=[],e=0,f=c.length;e<f;e++)c[e]!=b&&d.push(c[e]);a.className=d.join(" ")}};function wa(a,b){a&&b&&(a in x||(x[a]=[]),x[a].push(b))}function xa(a,b){a in x&&b&&la(x[a],function(a,d,e){return a==b?(e[d]=null,!1):!0})}function ya(a){a in x&&u(x[a],function(a,c,d){d[c]=null;a&&a()})}var x={};"ps-s"in r||q("ps-s",x);x=r["ps-s"];function za(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}var Aa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")};function z(a){a=a.split("#");var b=1==a.length;return[a[0],b?"":"#",b?"":a.slice(1).join("#")]};function A(a,b,c){var d=B[a];return a&&b?(d||(d=B[a]={items:[],k:0,h:0,n:1}),d.items.push({s:b,o:c||0})):d&&d.items.length||0}function C(a,b){var c=B[a];if(c){var d=!!c.k||!!c.h;0<c.n&&(b||!d)&&Ba(a,b)}}function D(a){(a=B[a])&&a.n--}function E(a,b){var c=B[a];c&&(c.n++,C(a,b))}function Ca(a){var b=B[a];b&&(Da(b),delete B[a])}function Ea(a){var b=parseInt(r.uid,10)||0;b++;return a["spf-key"]||(a["spf-key"]=""+q("uid",b))}
function Ba(a,b){var c=B[a];if(c&&(Da(c),0<c.n&&c.items.length)){var d=c.items[0];if(d){var e=l(function(a,b){b();a()},null,l(Ba,null,a,b));b?(c.items.shift(),e(d.s)):Fa(c,d,e)}}}function Fa(a,b,c){b.o?(c=l(c,null,ba),a.h=setTimeout(c,b.o),b.o=0):(a.items.shift(),c=l(c,null,b.s),(b=(b=s["advanced-task-scheduler"])&&b.addTask)?a.k=b(c):a.h=setTimeout(c,0))}function Da(a){if(a.k){var b=s["advanced-task-scheduler"];(b=b&&b.cancelTask)&&b(a.k);a.k=0}a.h&&(clearTimeout(a.h),a.h=0)}var B={};function F(a){var b=document.createElement("a");b.href=a;b.href=b.href;a={href:b.href,protocol:b.protocol,host:b.host,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,hash:b.hash,H:b.H,F:b.F};a.origin=a.protocol+"//"+a.host;a.pathname&&"/"==a.pathname[0]||(a.pathname="/"+a.pathname);return a}function G(a,b){var c=F(a);return b?c.href:z(c.href)[0]}
function Ga(a,b){var c=z(a);a=c[0];for(var d=0;d<b.length;d++)a=a.replace(new RegExp("([?&])"+b[d]+"(?:=[^&]*)?(?:(?=[&])|$)","g"),function(a,b){return"?"==b?b:""});za(a,"?")&&(a=a.slice(0,-1));return a+c[1]+c[2]}function Ha(a){var b=s["advanced-persistent-parameters"]||"",c=z(a);a=c[0];var d=-1!=a.indexOf("?")?"&":"?";return a+(b?d+b:"")+c[1]+c[2]};function Ia(a,b,c,d){var e=a==H;b=I(a,b);var f=c||"^"+b,h=J(a,f),k;c&&(k=K(a,c))&&b!=k&&(m(e?"spfjsbeforeunload":"spfcssbeforeunload",{name:c,url:k}),Ja(a,c,k),wa(h,l(Ka,null,a,c,k)));e=J(a,b);if((e=L[e])&&f!=e){var g=J(a,e);delete M[g];g=J(a,b);delete L[g];(g=J(a,e))&&h&&g in x&&(x[h]=(x[h]||[]).concat(x[g]),delete x[g])}g=J(a,b);L[g]=f;La(a,f,b);wa(h,d);d=l(Ma,null,a);N(a,b)?(e&&f!=e&&(a=Na(a,b))&&a.setAttribute("name",c||""),d()):(a=Oa(a,b,d,void 0,void 0,k))&&c&&a.setAttribute("name",c)}
function Pa(a,b){var c=K(a,b);Ja(a,b,c);Ka(a,b,c)}function Ja(a,b,c){var d=J(a,b);delete M[d];c&&(c=J(a,c),delete L[c]);a=J(a,b);delete x[a]}function Ka(a,b,c){var d=a==H;c&&(m(d?"spfjsunload":"spfcssunload",{name:b,url:c}),Qa(a,c))}function Ma(a){var b=J(a,""),c;for(c in x)0==c.indexOf(b)&&la(c.substring(b.length).split("|"),l(Ra,null,a))&&ya(c)}
function Oa(a,b,c,d,e,f){function h(){N(a,b,e)&&Sa(Ta,a,b,e);k&&p&&p.parentNode&&g==document&&p.parentNode.removeChild(p);c&&setTimeout(c,0);return null}var k=a==H;b=I(a,b);Sa(Ua,a,b,e);var g=d||document,p=g.createElement(k?"script":"link");if(!b)return h();var y=O(b);p.className=J(a,y);"onload"in p?p.onerror=p.onload=h:p.onreadystatechange=function(){/^c|loade/.test(p.readyState)&&h()};y=g.getElementsByTagName("head")[0];k?(p.async=!0,p.src=b,y.insertBefore(p,y.firstChild)):(p.rel="stylesheet",p.href=
b,(d=f&&Na(a,f,d))?y.insertBefore(p,d):y.appendChild(p));return p}function Qa(a,b){b=I(a,b);var c=Na(a,b,void 0);c&&c.parentNode&&c.parentNode.removeChild(c);c=J(a,b);delete P[c]}function Na(a,b,c){b=O(b);a=J(a,b);return da("."+a,c)[0]}function Va(a){var b=a==H,c=[];u(da(b?"script[src]":'link[rel~="stylesheet"]'),function(d){var e=b?d.src:d.href,e=I(a,e);if(!N(a,e)){Sa(Ta,a,e);var f=O(e),f=J(a,f);ua(d,f);if(f=d.getAttribute("name")){var h=J(a,e);L[h]=f;La(a,f,e)}c.push(d)}})}
function Wa(a,b){if(b&&(b=I(a,b),!N(a,b))){var c=O(b),d=J(a,c),e=J(a,"prefetch"),c=document.getElementById(e);if(!c)c=ga(e,null,function(a){a.title=e;C(e,!0)});else if(c.contentWindow.document.getElementById(d))return;d=l(Xa,null,c,a,b,d,e);c.title?d():A(e,d)}}
function Xa(a,b,c,d,e){var f=b==Q;a=a.contentWindow.document;b==H?(b=a.createElement("object"),Ya?a.createElement("script").src=c:b.data=c,b.id=d,a.body.appendChild(b)):f?(b=Oa(b,c,null,a,e),b.id=d):(b=a.createElement("img"),b.src=c,b.id=d,a.body.appendChild(b))}
function Za(a,b,c){for(var d=a==H,e=K(a,c),f=b.replace(/\s/g,""),f=f||"",h=0,k=0,g=f.length;k<g;++k)h=31*h+f.charCodeAt(k),h%=4294967296;f="hash-"+h;La(a,c,f);!$a(a,f)&&(b=ab(a,b))&&(Sa(Ta,a,f),b&&!d&&(d=O(f),d=J(a,d),b.className=d,b.setAttribute("name",c)),(e=e&&e[0])&&Qa(a,e))}
function ab(a,b){b=Aa(b);if(!b)return null;var c=document.getElementsByTagName("head")[0]||document.body,d;a==H?(d=document.createElement("script"),d.text=b,c.appendChild(d),c.removeChild(d)):(d=document.createElement("style"),c.appendChild(d),"styleSheet"in d?d.styleSheet.cssText=b:d.appendChild(document.createTextNode(b)));return d}
function I(a,b){var c="rsrc-p-"+a;if(b){var d=b.indexOf("//");if(0>d){if(0==b.lastIndexOf("hash-",0))return b;c=r[c]||"";if("[object String]"==Object.prototype.toString.call(c))b=c+b;else for(var e in c)b=b.replace(e,c[e]);b=0>b.indexOf("."+a)?b+"."+a:b;b=G(b)}else 0==d&&(b=G(b))}return b}function J(a,b,c){return a+"-"+b+(c?"-"+c:"")}function O(a){return a?String(a).replace(/[^\w]/g,""):""}function Sa(a,b,c,d){b=J(b,c,d);P[b]=a}function N(a,b,c){a=J(a,b,c);return P[a]}
function $a(a,b){var c=N(a,b);return""==b||c==Ta}function La(a,b,c){a=J(a,b);M[a]=c}function K(a,b){var c=J(a,b);return M[c]}function Ra(a,b){var c=K(a,b);return void 0!=c&&$a(a,c)}var P={},L={},M={},Ya=-1!=navigator.userAgent.indexOf(" Trident/"),Ua=1,Ta=2,Q="css",H="js";"rsrc-s"in r||q("rsrc-s",P);P=r["rsrc-s"];"rsrc-n"in r||q("rsrc-n",L);L=r["rsrc-n"];"rsrc-u"in r||q("rsrc-u",M);M=r["rsrc-u"];function bb(a){a=v(a);u(a,function(a){Wa("img",a)})};function cb(a,b,c){Ia(H,a,b,c)}function db(a){Pa(H,a)}function eb(a,b){Oa(H,a,b)}function fb(a){a=v(a);u(a,function(a){Wa(H,a)})}function gb(a,b,c){a=v(a);a=ma(a,function(a){return!!a});var d=[];u(a,function(a){void 0==K(H,a)&&d.push(a)});var e=!d.length;if(b){var f=la(a,l(Ra,null,H));e&&f?b():(a=J(H,a.sort().join("|")),wa(a,b))}c&&!e&&c(d)}function hb(a,b){a=v(a);u(a,function(a){if(a){var b=R[a]||a,b=I(H,b),e=K(H,a);e&&b!=e&&ib(a)}});gb(a,b,jb)}
function jb(a){u(a,function(a){function c(){cb(e,a)}var d=S[a],e=R[a]||a;d?hb(d,c):c()})}function ib(a){a=v(a);u(a,function(a){var c=[],d;for(d in S){var e=S[d],e=v(e);u(e,function(e){e==a&&c.push(d)})}u(c,function(a){ib(a)});db(a)})}function kb(a,b){Za(H,a,b)}function lb(a){ab(H,a)}var S={};"js-d"in r||q("js-d",S);var S=r["js-d"],R={};"js-u"in r||q("js-u",R);R=r["js-u"];function mb(a,b,c){Ia(Q,a,b,c)}function nb(a,b){Oa(Q,a,b)}function ob(a){a=v(a);u(a,function(a){Wa(Q,a)})};function pb(a,b,c){if(b){b=[];var d,e=0;c&&(a+="\r\n");var f=a.indexOf(qb,e);for(-1<f&&(e=f+qb.length);-1<(f=a.indexOf(rb,e));)d=Aa(a.substring(e,f)),e=f+rb.length,d&&b.push(JSON.parse(d));f=a.indexOf(sb,e);-1<f&&(d=Aa(a.substring(e,f)),e=f+sb.length,d&&b.push(JSON.parse(d)));d="";a.length>e&&(d=a.substring(e),c&&za(d,"\r\n")&&(d=d.substring(0,d.length-2)));return{j:b,a:d}}a=JSON.parse(a);b="number"==typeof a.length?a:[a];return{j:b,a:""}}
function T(a,b,c,d,e){var f="process "+G(a),h=!s["experimental-process-async"],k;k=0;b.timing||(b.timing={});b.title&&(document.title=b.title);d&&b.url&&G(b.url)!=G(window.location.href)&&t(b.url+window.location.hash,null,!1,!0);b.head&&(k=l(function(a,b){var c=U(a);tb(c);ub(c);D(f);vb(c,function(){b.spfProcessHead=n();E(f,h)})},null,b.head,b.timing),k=A(f,k));b.attr&&(k=l(function(a,b){for(var c in a){var d=document.getElementById(c);if(d){var e=a[c],f=void 0;for(f in e){var h=e[f];"class"==f?d.className=
h:"style"==f?d.style.cssText=h:d.setAttribute(f,h)}}}b.spfProcessAttr=n()},null,b.attr,b.timing),k=A(f,k));d=b.body||{};var g=k,p;for(p in d)k=l(function(a,b){var c=document.getElementById(a);if(c){var d=U(b),g=s["animation-class"];if(wb&&ta(c,g)){D(f);var k=Ea(c);C(k,!0);g={p:d,reverse:!!e,d:null,g:null,f:c,D:g+"-old",G:g+"-new",B:e?g+"-reverse-start":g+"-forward-start",r:e?g+"-reverse-end":g+"-forward-end"};c=l(function(a){ub(a.p);ua(a.f,a.B);a.d=document.createElement("div");a.d.className=a.D;
var b=a.f,c=a.d;if(c){for(var d;d=b.firstChild;)c.appendChild(d);b.appendChild(c)}a.g=document.createElement("div");a.g.className=a.G;a.g.innerHTML=a.p.i;a.reverse?(b=a.d,b.parentNode.insertBefore(a.g,b)):(b=a.d,b.parentNode.insertBefore(a.g,b.nextSibling))},null,g);A(k,c,0);c=l(function(a){va(a.f,a.B);ua(a.f,a.r)},null,g);A(k,c,0);c=l(function(a){a.f.removeChild(a.d);va(a.f,a.r);ea(a.g);D(k);vb(a.p,function(){E(k)})},null,g);A(k,c,parseInt(s["animation-duration"],10));c=l(function(a,b){E(b)},null,
g,f);A(k,c);C(k)}else{ub(d);var p=function(){D(f);vb(d,function(){E(f,h)})};(g=s["experimental-html-handler"])?(D(f),g(d.i,c,function(){p();E(f,h)})):(c.innerHTML=d.i,p())}}},null,p,d[p],b.timing),k=A(f,k);p=k-g;b.foot?(k=l(function(a,b,c){c&&(b.spfProcessBody=n());a=U(a);ub(a);D(f);vb(a,function(){b.spfProcessFoot=n();E(f,h)})},null,b.foot,b.timing,p),k=A(f,k)):p&&(k=l(function(a){a.spfProcessBody=n()},null,b.timing),k=A(f,k));c&&(k=A(f,l(c,null,a,b)));C(f,h)}
function xb(a,b,c){var d="preprocess "+G(a),e;b.head&&(e=l(function(a){a=U(a);tb(a);yb(a);zb(a)},null,b.head),A(d,e));var f=b.body||{},h;for(h in f)f[h]&&(e=l(function(a,b){var c=U(b);yb(c);zb(c)},null,h,f[h]),A(d,e));b.foot&&(e=l(function(a){a=U(a);yb(a);zb(a)},null,b.foot),A(d,e));c&&A(d,l(c,null,a,b));C(d)}
function U(a){var b=new Ab;if(!a)return b;if("[object String]"!=Object.prototype.toString.call(a))return a.scripts&&u(a.scripts,function(a){b.scripts.push({url:a.url||"",text:a.text||"",name:a.name||"",async:a.async||!1})}),a.styles&&u(a.styles,function(a){b.c.push({url:a.url||"",text:a.text||"",name:a.name||""})}),a.links&&s["experimental-preconnect"]&&u(a.links,function(a){"spf-preconnect"==a.rel&&b.links.push({url:a.url||"",rel:a.rel||""})}),b.i=a.html||"",b;a=a.replace(Bb,function(a,d,e,f){return"script"==
d?(a=(a=e.match(Cb))?a[1]:"",d=(d=e.match(Db))?d[1]:"",e=Eb.test(e),b.scripts.push({url:d,text:f,name:a,async:e}),""):"style"==d?(a=(a=e.match(Cb))?a[1]:"",b.c.push({url:"",text:f,name:a}),""):a});a=a.replace(Fb,function(a,d){var e=d.match(Gb),e=e?e[1]:"";if("stylesheet"==e){var e=(e=d.match(Cb))?e[1]:"",f=d.match(Hb),f=f?f[1]:"";b.c.push({url:f,text:"",name:e});return""}return"spf-preconnect"==e&&s["experimental-preconnect"]?(f=(f=d.match(Hb))?f[1]:"",b.links.push({url:f,rel:e}),""):a});b.i=a;return b}
function vb(a,b){if(0>=a.scripts.length)b&&b();else{var c=-1,d=function(){c++;if(c<a.scripts.length){var e=a.scripts[c],f=function(){};e.url?f=e.name?l(cb,null,e.url,e.name):l(eb,null,e.url):e.text&&(f=e.name?l(kb,null,e.text,e.name):l(lb,null,e.text));e.url&&!e.async?f(d):(f(),d())}else b&&b()};d()}}function zb(a){0>=a.scripts.length||(a=na(a.scripts,function(a){return a.url}),fb(a))}
function ub(a){if(!(0>=a.c.length))for(var b=0,c=a.c.length;b<c;b++){var d=a.c[b];d.url?d.name?mb(d.url,d.name):nb(d.url):d.text&&(d.name?Za(Q,d.text,d.name):ab(Q,d.text))}}function yb(a){0>=a.c.length||(a=na(a.c,function(a){return a.url}),ob(a))}function tb(a){0>=a.links.length||(a=na(a.links,function(a){return"spf-preconnect"==a.rel?a.url:""}),bb(a))}function Ab(){this.i="";this.scripts=[];this.c=[];this.links=[]}
var wb=function(){var a=document.createElement("div");if("transition"in a.style)return!0;for(var b=["webkit","Moz","Ms","O","Khtml"],c=0,d=b.length;c<d;c++)if(b[c]+"Transition"in a.style)return!0;return!1}(),Fb=/\x3clink([\s\S]*?)\x3e/ig,Bb=/\x3c(script|style)([\s\S]*?)\x3e([\s\S]*?)\x3c\/\1\x3e/ig,Eb=/(?:\s|^)async(?:\s|=|$)/i,Hb=/(?:\s|^)href\s*=\s*["']?([^\s"']+)/i,Cb=/(?:\s|^)name\s*=\s*["']?([^\s"']+)/i,Gb=/(?:\s|^)rel\s*=\s*["']?([^\s"']+)/i,Db=/(?:\s|^)src\s*=\s*["']?([^\s"']+)/i,qb="[\r\n",
rb=",\r\n",sb="]\r\n";function Ib(a,b,c,d){var e=d||{},f=!1,h=0,k,g=new XMLHttpRequest;g.open(a,b,!0);g.timing={};var p=g.abort;g.abort=function(){clearTimeout(k);g.onreadystatechange=null;p.call(g)};g.onreadystatechange=function(){var a=g.timing;if(g.readyState==Jb){a.responseStart=a.responseStart||n();f=-1<(g.getResponseHeader("Transfer-Encoding")||"").toLowerCase().indexOf("chunked");if(!f){var a=g.getResponseHeader("X-Firefox-Spdy"),c=window.chrome&&chrome.loadTimes&&chrome.loadTimes(),c=c&&c.wasFetchedViaSpdy;f=!(!a&&
!c)}e.v&&e.v(g)}else g.readyState==Kb?f&&e.l&&(a=g.responseText.substring(h),h=g.responseText.length,e.l(g,a)):g.readyState==Lb&&(a.responseEnd=a.responseEnd||n(),window.performance&&window.performance.getEntriesByName&&(g.resourceTiming=window.performance.getEntriesByName(b)[0]),f&&e.l&&g.responseText.length>h&&(a=g.responseText.substring(h),h=g.responseText.length,e.l(g,a)),clearTimeout(k),e.u&&e.u(g))};a="POST"==a;if(e.headers)for(var y in e.headers)g.setRequestHeader(y,e.headers[y]),"content-type"==
y.toLowerCase()&&(a=!1);a&&g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");0<e.C&&(k=setTimeout(function(){g.abort();e.w&&e.w(g)},e.C));g.timing.fetchStart=n();g.send(c);return g}var Jb=2,Kb=3,Lb=4;function Mb(a,b){var c=b||{};c.method=((c.method||"GET")+"").toUpperCase();c.type=c.type||"request";var d=a,e=s["url-identifier"]||"";if(e){var e=e.replace("__type__",c.type||""),f=z(d),d=f[0];0==e.lastIndexOf("?",0)&&-1!=d.indexOf("?")&&(e=e.replace("?","&"));d+=e+f[1]+f[2]}d=G(d);e={};e.spfUrl=d;e.startTime=n();e.fetchStart=e.startTime;a:{var h=Nb(a,c.current,null,c.type,!1),k=c.current,f=[];k&&(f.push(h+" previous "+k),f.push(h+" previous "+F(k).pathname));f.push(h);h=0;for(k=f.length;h<k;h++){var g;
b:{g=f[h];var p=w();if(g in p){p=p[g];if(qa(p)){ra(p);g=p.data;break b}oa(g)}g=void 0}if(g){f={key:f[h],response:g.response,type:g.type};break a}}f=null}e.spfPrefetched=!!f&&"prefetch"==f.type;e.spfCached=!!f;if(f)return setTimeout(l(Ob,null,a,c,e,f.key,f.response),0),null;f={};void 0!=c.A&&(f["X-SPF-Referer"]=c.A);c.current&&(f["X-SPF-Previous"]=c.current);if(h=s["advanced-header-identifier"])f["X-SPF-Request"]=h.replace("__type__",c.type),f.Accept="application/json";h={t:!1,a:"",complete:[]};e=
l(Pb,null,a,c,e,h);e={headers:f,C:s["request-timeout"],v:l(Qb,null,a,h),l:l(Rb,null,a,c,h),u:e,w:e};return"POST"==c.method?Ib("POST",d,c.q,e):Ib("GET",d,null,e)}function Ob(a,b,c,d,e){var f=!1;c.responseStart=c.responseEnd=n();b.type&&0==b.type.lastIndexOf("navigate",0)&&(c.navigationStart=c.startTime,s["cache-unified"]||(oa(d),f=!0));if(b.b&&"multipart"==e.type){d=e.parts;for(var h=0;h<d.length;h++)b.b(a,d[h])}Sb(a,b,c,e,f)}
function Qb(a,b,c){a=-1!=(c.getResponseHeader("X-SPF-Response-Type")||"").toLowerCase().indexOf("multipart");b.t=a}function Rb(a,b,c,d,e,f){if(c.t){e=c.a+e;var h;try{h=pb(e,!0,f)}catch(k){d.abort();b.e&&b.e(a,k);return}if(b.b)for(d=0;d<h.j.length;d++)b.b(a,h.j[d]);c.complete=c.complete.concat(h.j);c.a=h.a}}
function Pb(a,b,c,d,e){if(e.timing)for(var f in e.timing)c[f]=e.timing[f];if(e.resourceTiming)if("load"==b.type)for(var h in e.resourceTiming)c[h]=e.resourceTiming[h];else if(window.performance&&window.performance.timing){f=window.performance.timing.navigationStart;for(var k in e.resourceTiming)h=e.resourceTiming[k],void 0!==h&&(za(k,"Start")||za(k,"End")||"startTime"==k)&&(c[k]=f+Math.round(h))}"load"!=b.type&&(c.navigationStart=c.startTime);d.complete.length&&(d.a=Aa(d.a),d.a&&Rb(a,b,d,e,"",!0));
var g;try{g=pb(e.responseText).j}catch(p){b.e&&b.e(a,p);return}if(b.b&&1<g.length)for(d=d.complete.length;d<g.length;d++)b.b(a,g[d]);if(1<g.length){var y;d=0;for(e=g.length;d<e;d++)k=g[d],k.cacheType&&(y=k.cacheType);g={parts:g,type:"multipart"};y&&(g.cacheType=y)}else g=1==g.length?g[0]:{};Sb(a,b,c,g,!0)}
function Sb(a,b,c,d,e){if(e&&"POST"!=b.method&&(e=Nb(a,b.current,d.cacheType,b.type,!0))){d.cacheKey=e;var f={response:d,type:b.type||""},h=parseInt(s["cache-lifetime"],10),k=parseInt(s["cache-max"],10);0>=h||0>=k||(k=w(),f={data:f,life:h,time:n(),count:0},ra(f),k[e]=f,setTimeout(pa,1E3))}d.timing=c;b.m&&b.m(a,d)}
function Nb(a,b,c,d,e){a=G(a);var f;s["cache-unified"]?f=a:"navigate-back"==d||"navigate-forward"==d?f="history "+a:"navigate"==d?f=(e?"history ":"prefetch ")+a:"prefetch"==d&&(f=e?"prefetch "+a:"");b&&"url"==c?f+=" previous "+b:b&&"path"==c&&(f+=" previous "+F(b).pathname);return f||""};function Tb(a){return fa(a,function(a){return ta(a,s["link-class"])})}function Ub(a){return fa(a,function(a){return ta(a,s["nolink-class"])})}function Vb(a,b){return fa(a,function(a){return a.href&&"img"!=a.tagName.toLowerCase()},b)}function Wb(a){if(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey||0<a.button)return null;var b=Tb(a.target);return!b||s["nolink-class"]&&Ub(a.target)?null:(a=Vb(a.target,b))?a.href:null}function Xb(a){return F(a).origin!=F(window.location.href).origin?!1:!0}
function Yb(){if(!r["nav-init"])return!1;var a=parseInt(r["nav-counter"],10)||0;a++;var b=parseInt(s["navigate-limit"],10),b=isNaN(b)?Infinity:b;if(a>b)return!1;a=parseInt(r["nav-init-time"],10);a--;a=n()-a;b=parseInt(s["navigate-lifetime"],10);b=isNaN(b)?Infinity:b;return a>b?!1:!0}function Zb(a){if(!a.defaultPrevented){var b=Wb(a);b&&(b=Ha(b),Xb(b)&&Yb()&&m("spfclick",{url:b,target:a.target})&&($b(b),a.preventDefault()))}}function ac(a){var b=Wb(a);b&&setTimeout(function(){bc(b)},0)}
function cc(a,b){var c=!(!b||!b["spf-back"]),d=b&&b["spf-referer"],e=b&&b["spf-current"],f=s["reload-identifier"];f&&(a=Ga(a,[f]));Xb(a)?Yb()?m("spfhistory",{url:a,referer:d,previous:e})&&$b(a,null,e,d,!0,c):V(a,dc):V(a,ec)}
function $b(a,b,c,d,e,f){W();b=b||{};d=void 0==d?window.location.href:d;c=e?c:window.location.href;var h;a:{if(-1!=a.indexOf("#")&&(h=G(a),z(c||window.location.href)[0]==h)){h=!1;break a}h=!0}if(h)if(fc(a,d,c,b)){q("nav-counter",(parseInt(r["nav-counter"],10)||0)+1);gc(a);h=G(a);var k="preprocess "+G(h),g;for(g in B)k!=g&&0==g.lastIndexOf("preprocess",0)&&Ca(g);g=hc()[h];q("nav-request",g);q("nav-promote",null);q("nav-promote-time",null);g&&4!=g.readyState?(c=!!e,f="preprocess "+G(a),e="promote "+
G(a),q("nav-promote",a),q("nav-promote-time",n()),Ca(f),C(e,!0),c||ic(a,d,l(X,null,b))):(e=!!e,g=!!f,f=l(X,null,b),h=l(jc,null,b,g),k=l(kc,null,b,g,""),s["advanced-navigate-persist-timing"]||lc(),b=Mb(a,{method:b.method,b:h,e:f,m:k,q:b.postData,type:"navigate"+(e?g?"-back":"-forward":""),current:c,A:d}),q("nav-request",b),e||ic(a,d,f))}else V(a,mc);else nc(a),e||ic(a,d,l(X,null,b))}function nc(a){a=z(a);a[1]&&(a[2]?(a=document.getElementById(a[2]))&&a.scrollIntoView():window.scroll(0,0))}
function ic(a,b,c){try{b={"spf-referer":b},G(a,!0)==window.location.href?t(a,null,!1,!0):ha(!1,a,b,void 0)}catch(d){W(),c(a,d)}}function X(a,b,c){q("nav-request",null);oc(b,c,a)&&V(b,pc,c)}function jc(a,b,c,d){if(qc(c,d,a))if(d.reload)V(c,rc);else if(d.redirect)sc(a,d.redirect);else try{T(c,d,function(){tc(c,d,a)},!0,b)}catch(e){X(a,c,e)}else V(c,uc)}
function kc(a,b,c,d,e){q("nav-request",null);r["nav-promote"]==c&&(c=e.timing||{},c.navigationStart=r["nav-promote-time"],c.spfPrefetched=!0);c="multipart"==e.type;if(!c){if(!vc(d,e,a)){V(d,wc);return}if(e.reload){V(d,rc);return}if(e.redirect){sc(a,e.redirect);return}}try{T(d,c?{}:e,function(){nc(d);xc(d,e,a)},!0,b)}catch(f){X(a,d,f)}}function sc(a,b){try{b+=window.location.hash,t(b,null,!0,!0)}catch(c){W(),X(a,b,c)}}function W(){var a=r["nav-request"];a&&(a.abort(),q("nav-request",null))}
function Y(a,b){var c;a&&(c=Array.prototype.slice.call(arguments),c[0]=a,c=aa.apply(null,c));return!1!==c}
function V(a,b,c){c=c?c.message:"";W();gc();var d=b;c&&(d+=" Message: "+c);m("spfreload",{url:a,reason:d});s["experimental-remove-history"]&&window.location.href==a&&(q("history-ignore-pop",!0),window.history.back());setTimeout(function(){var c=s["reload-identifier"];if(c){var d={};d[c]=encodeURIComponent(b);var c=a,h=z(c),c=h[0],k=-1!=c.indexOf("?")?"&":"?",g;for(g in d)c+=k+g,d[g]&&(c+="="+d[g]),k="&";a=c+h[1]+h[2]}window.location.href=a},0)}
function yc(a,b,c){b=b||{};c=c||a;fc(a,void 0,void 0,b,!0)&&Mb(a,{method:b.method,b:l(zc,null,!1,b,c),e:l(Ac,null,!1,b,c),m:l(Bc,null,!1,b,c),q:b.postData,type:"load"})}function bc(a,b){a=Ha(a);Cc(a,b)}function Cc(a,b,c){b=b||{};c=c||a;var d=window.location.href;fc(a,void 0,void 0,b,!0)&&(b=Mb(a,{method:b.method,b:l(zc,null,!0,b,c),e:l(Ac,null,!0,b,c),m:l(Bc,null,!0,b,c),q:b.postData,type:"prefetch",current:d}),a=G(a),hc()[a]=b)}
function Ac(a,b,c,d,e){a&&Dc(d);a&&r["nav-promote"]==c?X(b,d,e):oc(d,e,b,!0)}function zc(a,b,c,d,e){if(qc(d,e,b,!0)){if(e.reload){if(!a)return;if(r["nav-promote"]==c){V(d,rc);return}}if(e.redirect)Ec(a,b,c,e.redirect);else{if(a){var f=l(jc,null,b,!1,d,e),h="promote "+G(c);A(h,f);if(r["nav-promote"]==c){C(h,!0);return}}(a?xb:T)(d,e,function(){tc(d,e,b,!0)})}}}
function Bc(a,b,c,d,e){var f="multipart"==e.type;if(!f){if(!vc(d,e,b,!0)){V(d,wc);return}if(e.reload){if(!a)return;if(r["nav-promote"]==c){V(d,rc);return}}if(e.redirect){Ec(a,b,c,e.redirect);return}}var h="promote "+G(c);if(a){Dc(d);if(r["nav-promote"]==c){A(h,l(kc,null,b,!1,c,d,e));C(h,!0);return}Ca(h)}h=a?xb:T;try{h(d,f?{}:e,function(){xc(d,e,b,!0)})}catch(k){Ac(a,b,c,d,k)}}function Ec(a,b,c,d){a=a?Cc:yc;var e={};u([Fc,Gc,Hc,Ic,Jc,Kc],function(a){e[a]=b[a]});a(d,e,c)}
function oc(a,b,c,d){a={url:a,err:b};(c=Y((c||{})[Fc],a))&&!d&&(c=m("spferror",a));return c}function fc(a,b,c,d,e){a={url:a,referer:b,previous:c};(d=Y((d||{})[Gc],a))&&!e&&(d=m("spfrequest",a));return d}function qc(a,b,c,d){a={url:a,part:b};(c=Y((c||{})[Hc],a))&&!d&&(c=m("spfpartprocess",a));return c}function tc(a,b,c,d){a={url:a,part:b};Y((c||{})[Ic],a)&&!d&&m("spfpartdone",a)}function vc(a,b,c,d){a={url:a,response:b};(c=Y((c||{})[Jc],a))&&!d&&(c=m("spfprocess",a));return c}
function xc(a,b,c,d){a={url:a,response:b};Y((c||{})[Kc],a)&&!d&&m("spfdone",a)}function Dc(a){a=G(a);var b=hc(),c=b[a];c&&c.abort();delete b[a]}function gc(a){var b=hc();a=a&&G(a);for(var c in b)a!=c&&Dc(c)}var lc,Lc=window.performance&&(window.performance.clearResourceTimings||window.performance.webkitClearResourceTimings||window.performance.mozClearResourceTimings||window.performance.msClearResourceTimings||window.performance.oClearResourceTimings);lc=Lc?l(Lc,window.performance):ba;
function hc(){return"nav-prefetches"in r?r["nav-prefetches"]:q("nav-prefetches",{})}var Fc="onError",Gc="onRequest",Hc="onPartProcess",Ic="onPartDone",Jc="onProcess",Kc="onDone",dc="1",mc="2",uc="3",wc="4",rc="5",ec="9",pc="10";function Z(){Va(H);Va(Q);"complete"==document.readyState&&(document.removeEventListener?document.removeEventListener("DOMContentLoaded",Z,!1):document.detachEvent&&document.detachEvent("onreadystatechange",Z))}document.addEventListener?document.addEventListener("DOMContentLoaded",Z,!1):document.attachEvent&&document.attachEvent("onreadystatechange",Z);Z();
var Mc={init:function(a){var b=!("function"!=typeof window.history.pushState&&!ja().contentWindow.history.pushState);a=a||{};for(var c in ca)s[c]=c in a?a[c]:ca[c];for(c in a)c in ca||(s[c]=a[c]);if(b){c=oc;if(!r["history-init"]&&window.addEventListener){a=window.location.href;window.addEventListener("popstate",ka,!1);q("history-init",!0);q("history-callback",cc);q("history-error-callback",c);q("history-listener",ka);q("history-url",a);q("history-timestamp",n());var d={"spf-referer":document.referrer};
try{t(a,d)}catch(e){c&&c(a,e)}}!r["nav-init"]&&document.addEventListener&&(document.addEventListener("click",Zb,!1),!s["experimental-prefetch-mousedown"]||"ontouchstart"in window||0<window.navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints||(document.addEventListener("mousedown",ac,!1),q("prefetch-listener",ac)),q("nav-init",!0),q("nav-init-time",n()),q("nav-counter",0),q("nav-listener",Zb))}return b},dispose:function(){"undefined"!=typeof History&&History.prototype.pushState&&(W(),r["nav-init"]&&
(document.removeEventListener&&(document.removeEventListener("click",r["nav-listener"],!1),s["experimental-prefetch-mousedown"]&&document.removeEventListener("mousedown",r["prefetch-listener"],!1)),q("nav-init",!1),q("nav-init-time",null),q("nav-counter",null),q("nav-listener",null)),r["history-init"]&&(window.removeEventListener&&window.removeEventListener("popstate",r["history-listener"],!1),q("history-init",!1),q("history-callback",null),q("history-error-callback",null),q("history-listener",null),
q("history-url",null),q("history-timestamp",0)));for(var a in s)delete s[a]},navigate:function(a,b){a&&(a=Ha(a),Xb(a)?Yb()?$b(a,b):V(a,dc):V(a,ec))},load:function(a,b){a=Ha(a);yc(a,b)},prefetch:bc,process:function(a,b){function c(a,c,d,e){a==c&&b&&b(e)}var d=window.location.href;if("multipart"==a.type)for(var e=a.parts,f=0;f<e.length;f++){var h=l(c,null,f,e.length-1);T(d,e[f],h)}else h=l(c,null,0,0),T(d,a,h)}},Nc={cache:{remove:oa,clear:function(){w({})}},script:{load:cb,get:eb,ready:gb,done:function(a){La(H,
a,"");Ma(H)},require:hb,declare:function(a,b){if(a){for(var c in a)S[c]=a[c];if(b)for(c in b)R[c]=b[c]}},path:function(a){q("rsrc-p-"+H,a)},unload:db,ignore:function(a,b){a=v(a);var c=J(H,a.sort().join("|"));xa(c,b)},unrequire:ib,prefetch:fb},style:{load:mb,get:nb,unload:function(a){Pa(Q,a)},path:function(a){q("rsrc-p-"+Q,a)},prefetch:ob}},Oc=this.spf=this.spf||{},Pc;for(Pc in Mc)Oc[Pc]=Mc[Pc];for(var $ in Nc)for(var Qc in Nc[$])Oc[$]=Oc[$]||{},Oc[$][Qc]=Nc[$][Qc];m("spfready");if(typeof define=='function'&&define.amd)define(spf);else if(typeof exports=='object')for(var f in spf)exports[f]=spf[f];})();


