/*
SPF 20 (v2.0.1)
(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 t(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 da(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 ea(a,b){if(a.filter)return a.filter(b,void 0);var c=[];t(a,function(a,e,f){b.call(void 0,a,e,f)&&c.push(a)});return c}
function fa(a,b){if(a.map)return a.map(b,void 0);var c=[];c.length=a.length;t(a,function(a,e,f){c[e]=b.call(void 0,a,e,f)});return c}function u(a){return"[object Array]"==Object.prototype.toString.call(a)?a:[a]};function ga(a){var b=v();a in b&&delete b[a]}function ha(){var a=v(),b;for(b in a)ia(a[b])||delete a[b];a=v();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 ia(a){if(!(a&&"data"in a))return!1;var b=a.life,b=isNaN(b)?Infinity:b;return n()-a.time<b}function ja(a){var b=parseInt(r["cache-counter"],10)||0;b++;q("cache-counter",b);a.count=b}
function v(a){return!a&&"cache-storage"in r?r["cache-storage"]:q("cache-storage",a||{})};function ka(a){return a.classList?a.classList:a.className&&a.className.match(/\S+/g)||[]}function w(a,b){if(a.classList)return a.classList.contains(b);for(var c=ka(a),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0;return!1}function la(a,b){a.classList?a.classList.add(b):w(a,b)||(a.className+=" "+b)}function ma(a,b){if(a.classList)a.classList.remove(b);else{for(var c=ka(a),d=[],e=0,f=c.length;e<f;e++)c[e]!=b&&d.push(c[e]);a.className=d.join(" ")}};function na(a,b){var c=b||document;return c.querySelectorAll?c.querySelectorAll(a):[]}function oa(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 pa(a,b,c){for(;a;){if(b(a))return a;if(c&&a==c)break;a=a.parentNode}return null}
function qa(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 ra(a,b,c,d){var e=window.history.state;d&&e&&(b=b||e);sa(!0,a,b,c)}function sa(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)ta(c,b);else if(a=ua().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 va(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),ta(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 ta(a,b){var c=ua().contentWindow.history.replaceState;if("function"==typeof c)c.call(window.history,a,"",b);else throw Error("history.replaceState is not a function");}function ua(){var a=document.getElementById("history-iframe");a||(a=qa("history-iframe"));return a};function wa(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==xa){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==ya?f&&e.l&&(a=g.responseText.substring(h),h=g.responseText.length,e.l(g,a)):g.readyState==za&&(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 xa=2,ya=3,za=4;function Aa(a,b){a&&b&&(a in x||(x[a]=[]),x[a].push(b))}function Ba(a,b){a in x&&b&&da(x[a],function(a,d,e){return a==b?(e[d]=null,!1):!0})}function Ca(a){a in x&&t(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 Da(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}var Ea=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){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 B(a,b){var c=A(a);return b?c.href:z(c.href)[0]}
function Fa(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:""});Da(a,"?")&&(a=a.slice(0,-1));return a+c[1]+c[2]};function C(a,b,c){var d=D[a];return a&&b?(d||(d=D[a]={items:[],k:0,h:0,n:1}),d.items.push({s:b,o:c||0})):d&&d.items.length||0}function E(a,b){var c=D[a];if(c){var d=!!c.k||!!c.h;0<c.n&&(b||!d)&&Ga(a,b)}}function F(a){(a=D[a])&&a.n--}function G(a,b){var c=D[a];c&&(c.n++,E(a,b))}function Ha(a){var b=D[a];b&&(Ia(b),delete D[a])}function Ja(a){var b=parseInt(r.uid,10)||0;b++;return a["spf-key"]||(a["spf-key"]=""+q("uid",b))}
function Ga(a,b){var c=D[a];if(c&&(Ia(c),0<c.n&&c.items.length)){var d=c.items[0];if(d){var e=l(function(a,b){b();a()},null,l(Ga,null,a,b));b?(c.items.shift(),e(d.s)):Ka(c,d,e)}}}function Ka(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 Ia(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 D={};function La(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}),Ma(a,c,k),Aa(h,l(Na,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;Oa(a,f,b);Aa(h,d);d=l(Pa,null,a);N(a,b)?(e&&f!=e&&(a=Qa(a,b))&&a.setAttribute("name",c||""),d()):(a=Ra(a,b,d,void 0,void 0,k))&&c&&a.setAttribute("name",c)}
function Sa(a,b){var c=K(a,b);Ma(a,b,c);Na(a,b,c)}function Ma(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 Na(a,b,c){var d=a==H;c&&(m(d?"spfjsunload":"spfcssunload",{name:b,url:c}),Ta(a,c))}function Pa(a){var b=J(a,""),c;for(c in x)0==c.indexOf(b)&&da(c.substring(b.length).split("|"),l(Ua,null,a))&&Ca(c)}
function Ra(a,b,c,d,e,f){function h(){N(a,b,e)&&Va(Wa,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);Va(Xa,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&&Qa(a,f,d))?y.insertBefore(p,d):y.appendChild(p));return p}function Ta(a,b){b=I(a,b);var c=Qa(a,b,void 0);c&&c.parentNode&&c.parentNode.removeChild(c);c=J(a,b);delete P[c]}function Qa(a,b,c){b=O(b);a=J(a,b);return na("."+a,c)[0]}function Ya(a){var b=a==H,c=[];t(na(b?"script[src]":'link[rel~="stylesheet"]'),function(d){var e=b?d.src:d.href,e=I(a,e);if(!N(a,e)){Va(Wa,a,e);var f=O(e),f=J(a,f);la(d,f);if(f=d.getAttribute("name")){var h=J(a,e);L[h]=f;Oa(a,f,e)}c.push(d)}})}
function Za(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=qa(e,null,function(a){a.title=e;E(e,!0)});else if(c.contentWindow.document.getElementById(d))return;d=l($a,null,c,a,b,d,e);c.title?d():C(e,d)}}
function $a(a,b,c,d,e){var f=b==Q;a=a.contentWindow.document;b==H?(b=a.createElement("object"),ab?a.createElement("script").src=c:b.data=c,b.id=d,a.body.appendChild(b)):f?(b=Ra(b,c,null,a,e),b.id=d):(b=a.createElement("img"),b.src=c,b.id=d,a.body.appendChild(b))}
function bb(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;Oa(a,c,f);!cb(a,f)&&(b=db(a,b))&&(Va(Wa,a,f),b&&!d&&(d=O(f),d=J(a,d),b.className=d,b.setAttribute("name",c)),(e=e&&e[0])&&Ta(a,e))}
function db(a,b){b=Ea(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=B(b)}else 0==d&&(b=B(b))}return b}function J(a,b,c){return a+"-"+b+(c?"-"+c:"")}function O(a){return a?String(a).replace(/[^\w]/g,""):""}function Va(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 cb(a,b){var c=N(a,b);return""==b||c==Wa}function Oa(a,b,c){a=J(a,b);M[a]=c}function K(a,b){var c=J(a,b);return M[c]}function Ua(a,b){var c=K(a,b);return void 0!=c&&cb(a,c)}var P={},L={},M={},ab=-1!=navigator.userAgent.indexOf(" Trident/"),Xa=1,Wa=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 eb(a){a=u(a);t(a,function(a){Za("img",a)})};function fb(a,b,c){La(H,a,b,c)}function gb(a){Sa(H,a)}function hb(a,b){Ra(H,a,b)}function ib(a){a=u(a);t(a,function(a){Za(H,a)})}function jb(a,b,c){a=u(a);a=ea(a,function(a){return!!a});var d=[];t(a,function(a){void 0==K(H,a)&&d.push(a)});var e=!d.length;if(b){var f=da(a,l(Ua,null,H));e&&f?b():(a=J(H,a.sort().join("|")),Aa(a,b))}c&&!e&&c(d)}function kb(a,b){a=u(a);t(a,function(a){if(a){var b=R[a]||a,b=I(H,b),e=K(H,a);e&&b!=e&&lb(a)}});jb(a,b,mb)}
function mb(a){t(a,function(a){function c(){fb(e,a)}var d=S[a],e=R[a]||a;d?kb(d,c):c()})}function lb(a){a=u(a);t(a,function(a){var c=[],d;for(d in S){var e=S[d],e=u(e);t(e,function(e){e==a&&c.push(d)})}t(c,function(a){lb(a)});gb(a)})}function nb(a,b){bb(H,a,b)}function ob(a){db(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 pb(a,b,c){La(Q,a,b,c)}function qb(a,b){Ra(Q,a,b)}function rb(a){a=u(a);t(a,function(a){Za(Q,a)})};function sb(a,b,c){if(b){b=[];var d,e=0;c&&(a+="\r\n");var f=a.indexOf(tb,e);for(-1<f&&(e=f+tb.length);-1<(f=a.indexOf(ub,e));)d=Ea(a.substring(e,f)),e=f+ub.length,d&&b.push(JSON.parse(d));f=a.indexOf(vb,e);-1<f&&(d=Ea(a.substring(e,f)),e=f+vb.length,d&&b.push(JSON.parse(d)));d="";a.length>e&&(d=a.substring(e),c&&Da(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 "+B(a),h=!s["experimental-process-async"],k;k=0;b.timing||(b.timing={});b.title&&(document.title=b.title);d&&b.url&&B(b.url)!=B(window.location.href)&&ra(b.url+window.location.hash,null,!1,!0);b.head&&(k=l(function(a,b){var c=U(a);wb(c);xb(c);F(f);yb(c,function(){b.spfProcessHead=n();G(f,h)})},null,b.head,b.timing),k=C(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=C(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(zb&&w(c,g)){F(f);var k=Ja(c);E(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){xb(a.p);la(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);C(k,c,0);c=l(function(a){ma(a.f,a.B);la(a.f,a.r)},null,g);C(k,c,0);c=l(function(a){a.f.removeChild(a.d);ma(a.f,a.r);oa(a.g);F(k);yb(a.p,function(){G(k)})},null,g);C(k,c,parseInt(s["animation-duration"],10));c=l(function(a,b){G(b)},null,g,f);
C(k,c);E(k)}else{xb(d);var p=function(){F(f);yb(d,function(){G(f,h)})};(g=s["experimental-html-handler"])?(F(f),g(d.i,c,function(){p();G(f,h)})):(c.innerHTML=d.i,p())}}},null,p,d[p],b.timing),k=C(f,k);p=k-g;b.foot?(k=l(function(a,b,c){c&&(b.spfProcessBody=n());a=U(a);xb(a);F(f);yb(a,function(){b.spfProcessFoot=n();G(f,h)})},null,b.foot,b.timing,p),k=C(f,k)):p&&(k=l(function(a){a.spfProcessBody=n()},null,b.timing),k=C(f,k));c&&(k=C(f,l(c,null,a,b)));E(f,h)}
function Ab(a,b,c){var d="preprocess "+B(a),e;b.head&&(e=l(function(a){a=U(a);wb(a);Bb(a);Cb(a)},null,b.head),C(d,e));var f=b.body||{},h;for(h in f)f[h]&&(e=l(function(a,b){var c=U(b);Bb(c);Cb(c)},null,h,f[h]),C(d,e));b.foot&&(e=l(function(a){a=U(a);Bb(a);Cb(a)},null,b.foot),C(d,e));c&&C(d,l(c,null,a,b));E(d)}
function U(a){var b=new Db;if(!a)return b;if("[object String]"!=Object.prototype.toString.call(a))return a.scripts&&t(a.scripts,function(a){b.scripts.push({url:a.url||"",text:a.text||"",name:a.name||"",async:a.async||!1})}),a.styles&&t(a.styles,function(a){b.c.push({url:a.url||"",text:a.text||"",name:a.name||""})}),a.links&&s["experimental-preconnect"]&&t(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(Eb,function(a,d,e,f){return"script"==
d?(a=(a=e.match(Fb))?a[1]:"",d=(d=e.match(Gb))?d[1]:"",e=Hb.test(e),b.scripts.push({url:d,text:f,name:a,async:e}),""):"style"==d?(a=(a=e.match(Fb))?a[1]:"",b.c.push({url:"",text:f,name:a}),""):a});a=a.replace(Ib,function(a,d){var e=d.match(Jb),e=e?e[1]:"";if("stylesheet"==e){var e=(e=d.match(Fb))?e[1]:"",f=d.match(Kb),f=f?f[1]:"";b.c.push({url:f,text:"",name:e});return""}return"spf-preconnect"==e&&s["experimental-preconnect"]?(f=(f=d.match(Kb))?f[1]:"",b.links.push({url:f,rel:e}),""):a});b.i=a;return b}
function yb(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(fb,null,e.url,e.name):l(hb,null,e.url):e.text&&(f=e.name?l(nb,null,e.text,e.name):l(ob,null,e.text));e.url&&!e.async?f(d):(f(),d())}else b&&b()};d()}}function Cb(a){0>=a.scripts.length||(a=fa(a.scripts,function(a){return a.url}),ib(a))}
function xb(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?pb(d.url,d.name):qb(d.url):d.text&&(d.name?bb(Q,d.text,d.name):db(Q,d.text))}}function Bb(a){0>=a.c.length||(a=fa(a.c,function(a){return a.url}),rb(a))}function wb(a){0>=a.links.length||(a=fa(a.links,function(a){return"spf-preconnect"==a.rel?a.url:""}),eb(a))}function Db(){this.i="";this.scripts=[];this.c=[];this.links=[]}
var zb=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}(),Ib=/\x3clink([\s\S]*?)\x3e/ig,Eb=/\x3c(script|style)([\s\S]*?)\x3e([\s\S]*?)\x3c\/\1\x3e/ig,Hb=/(?:\s|^)async(?:\s|=|$)/i,Kb=/(?:\s|^)href\s*=\s*["']?([^\s"']+)/i,Fb=/(?:\s|^)name\s*=\s*["']?([^\s"']+)/i,Jb=/(?:\s|^)rel\s*=\s*["']?([^\s"']+)/i,Gb=/(?:\s|^)src\s*=\s*["']?([^\s"']+)/i,tb="[\r\n",
ub=",\r\n",vb="]\r\n";function Lb(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=B(d);e={};e.spfUrl=d;e.startTime=n();e.fetchStart=e.startTime;a:{var h=Mb(a,c.current,null,c.type,!1),k=c.current,f=[];k&&(f.push(h+" previous "+k),f.push(h+" previous "+A(k).pathname));f.push(h);h=0;for(k=f.length;h<k;h++){var g;
b:{g=f[h];var p=v();if(g in p){p=p[g];if(ia(p)){ja(p);g=p.data;break b}ga(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(Nb,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(Ob,null,a,c,e,h);e={headers:f,C:s["request-timeout"],v:l(Pb,null,a,h),l:l(Qb,null,a,c,h),u:e,w:e};return"POST"==c.method?wa("POST",d,c.q,e):wa("GET",d,null,e)}function Nb(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"]||(ga(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])}Rb(a,b,c,e,f)}
function Pb(a,b,c){a=-1!=(c.getResponseHeader("X-SPF-Response-Type")||"").toLowerCase().indexOf("multipart");b.t=a}function Qb(a,b,c,d,e,f){if(c.t){e=c.a+e;var h;try{h=sb(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 Ob(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&&(Da(k,"Start")||Da(k,"End")||"startTime"==k)&&(c[k]=f+Math.round(h))}"load"!=b.type&&(c.navigationStart=c.startTime);d.complete.length&&(d.a=Ea(d.a),d.a&&Qb(a,b,d,e,"",!0));
var g;try{g=sb(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]:{};Rb(a,b,c,g,!0)}
function Rb(a,b,c,d,e){if(e&&"POST"!=b.method&&(e=Mb(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=v(),f={data:f,life:h,time:n(),count:0},ja(f),k[e]=f,setTimeout(ha,1E3))}d.timing=c;b.m&&b.m(a,d)}
function Mb(a,b,c,d,e){a=B(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 "+A(b).pathname);return f||""};function Sb(a){return pa(a,function(a){return w(a,s["link-class"])})}function Tb(a){return pa(a,function(a){return w(a,s["nolink-class"])})}function Ub(a,b){return pa(a,function(a){return a.href&&"img"!=a.tagName.toLowerCase()},b)}function Vb(a){if(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey||0<a.button)return null;var b=Sb(a.target);return!b||s["nolink-class"]&&Tb(a.target)?null:(a=Ub(a.target,b))?a.href:null}function Wb(a){return A(a).origin!=A(window.location.href).origin?!1:!0}
function Xb(){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 Yb(a){if(!a.defaultPrevented){var b=Vb(a);b&&Wb(b)&&Xb()&&m("spfclick",{url:b,target:a.target})&&(Zb(b),a.preventDefault())}}function $b(a){var b=Vb(a);b&&setTimeout(function(){ac(b,void 0)},0)}
function bc(a,b){var c=!(!b||!b["spf-back"]),d=b&&b["spf-referer"],e=b&&b["spf-current"],f=s["reload-identifier"];f&&(a=Fa(a,[f]));Wb(a)?Xb()?m("spfhistory",{url:a,referer:d,previous:e})&&Zb(a,null,e,d,!0,c):V(a,cc):V(a,dc)}
function Zb(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=B(a),z(c||window.location.href)[0]==h)){h=!1;break a}h=!0}if(h)if(ec(a,d,c,b)){q("nav-counter",(parseInt(r["nav-counter"],10)||0)+1);fc(a);h=B(a);var k="preprocess "+B(h),g;for(g in D)k!=g&&0==g.lastIndexOf("preprocess",0)&&Ha(g);g=gc()[h];q("nav-request",g);q("nav-promote",null);q("nav-promote-time",null);g&&4!=g.readyState?(c=!!e,f="preprocess "+B(a),e="promote "+
B(a),q("nav-promote",a),q("nav-promote-time",n()),Ha(f),E(e,!0),c||hc(a,d,l(X,null,b))):(e=!!e,g=!!f,f=l(X,null,b),h=l(ic,null,b,g),k=l(jc,null,b,g,""),s["advanced-navigate-persist-timing"]||kc(),b=Lb(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||hc(a,d,f))}else V(a,lc);else mc(a),e||hc(a,d,l(X,null,b))}function mc(a){a=z(a);a[1]&&(a[2]?(a=document.getElementById(a[2]))&&a.scrollIntoView():window.scroll(0,0))}
function hc(a,b,c){try{b={"spf-referer":b},B(a,!0)==window.location.href?ra(a,null,!1,!0):sa(!1,a,b,void 0)}catch(d){W(),c(a,d)}}function X(a,b,c){q("nav-request",null);nc(b,c,a)&&V(b,oc,c)}function ic(a,b,c,d){if(pc(c,d,a))if(d.reload)V(c,qc);else if(d.redirect)rc(a,d.redirect);else try{T(c,d,function(){sc(c,d,a)},!0,b)}catch(e){X(a,c,e)}else V(c,tc)}
function jc(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(!uc(d,e,a)){V(d,vc);return}if(e.reload){V(d,qc);return}if(e.redirect){rc(a,e.redirect);return}}try{T(d,c?{}:e,function(){mc(d);wc(d,e,a)},!0,b)}catch(f){X(a,d,f)}}function rc(a,b){try{b+=window.location.hash,ra(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();fc();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 xc(a,b,c){b=b||{};c=c||a;ec(a,void 0,void 0,b,!0)&&Lb(a,{method:b.method,b:l(yc,null,!1,b,c),e:l(zc,null,!1,b,c),m:l(Ac,null,!1,b,c),q:b.postData,type:"load"})}function ac(a,b,c){b=b||{};c=c||a;var d=window.location.href;ec(a,void 0,void 0,b,!0)&&(b=Lb(a,{method:b.method,b:l(yc,null,!0,b,c),e:l(zc,null,!0,b,c),m:l(Ac,null,!0,b,c),q:b.postData,type:"prefetch",current:d}),a=B(a),gc()[a]=b)}function zc(a,b,c,d,e){a&&Bc(d);a&&r["nav-promote"]==c?X(b,d,e):nc(d,e,b,!0)}
function yc(a,b,c,d,e){if(pc(d,e,b,!0)){if(e.reload){if(!a)return;if(r["nav-promote"]==c){V(d,qc);return}}if(e.redirect)Cc(a,b,c,e.redirect);else{if(a){var f=l(ic,null,b,!1,d,e),h="promote "+B(c);C(h,f);if(r["nav-promote"]==c){E(h,!0);return}}(a?Ab:T)(d,e,function(){sc(d,e,b,!0)})}}}
function Ac(a,b,c,d,e){var f="multipart"==e.type;if(!f){if(!uc(d,e,b,!0)){V(d,vc);return}if(e.reload){if(!a)return;if(r["nav-promote"]==c){V(d,qc);return}}if(e.redirect){Cc(a,b,c,e.redirect);return}}var h="promote "+B(c);if(a){Bc(d);if(r["nav-promote"]==c){C(h,l(jc,null,b,!1,c,d,e));E(h,!0);return}Ha(h)}h=a?Ab:T;try{h(d,f?{}:e,function(){wc(d,e,b,!0)})}catch(k){zc(a,b,c,d,k)}}function Cc(a,b,c,d){a=a?ac:xc;var e={};t([Dc,Ec,Fc,Gc,Hc,Ic],function(a){e[a]=b[a]});a(d,e,c)}
function nc(a,b,c,d){a={url:a,err:b};(c=Y((c||{})[Dc],a))&&!d&&(c=m("spferror",a));return c}function ec(a,b,c,d,e){a={url:a,referer:b,previous:c};(d=Y((d||{})[Ec],a))&&!e&&(d=m("spfrequest",a));return d}function pc(a,b,c,d){a={url:a,part:b};(c=Y((c||{})[Fc],a))&&!d&&(c=m("spfpartprocess",a));return c}function sc(a,b,c,d){a={url:a,part:b};Y((c||{})[Gc],a)&&!d&&m("spfpartdone",a)}function uc(a,b,c,d){a={url:a,response:b};(c=Y((c||{})[Hc],a))&&!d&&(c=m("spfprocess",a));return c}
function wc(a,b,c,d){a={url:a,response:b};Y((c||{})[Ic],a)&&!d&&m("spfdone",a)}function Bc(a){a=B(a);var b=gc(),c=b[a];c&&c.abort();delete b[a]}function fc(a){var b=gc();a=a&&B(a);for(var c in b)a!=c&&Bc(c)}var kc,Jc=window.performance&&(window.performance.clearResourceTimings||window.performance.webkitClearResourceTimings||window.performance.mozClearResourceTimings||window.performance.msClearResourceTimings||window.performance.oClearResourceTimings);kc=Jc?l(Jc,window.performance):ba;
function gc(){return"nav-prefetches"in r?r["nav-prefetches"]:q("nav-prefetches",{})}var Dc="onError",Ec="onRequest",Fc="onPartProcess",Gc="onPartDone",Hc="onProcess",Ic="onDone",cc="1",lc="2",tc="3",vc="4",qc="5",dc="9",oc="10";function Z(){Ya(H);Ya(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 Kc={init:function(a){var b=!("function"!=typeof window.history.pushState&&!ua().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=nc;if(!r["history-init"]&&window.addEventListener){a=window.location.href;window.addEventListener("popstate",va,!1);q("history-init",!0);q("history-callback",bc);q("history-error-callback",c);q("history-listener",va);q("history-url",a);q("history-timestamp",n());var d={"spf-referer":document.referrer};
try{ra(a,d)}catch(e){c&&c(a,e)}}!r["nav-init"]&&document.addEventListener&&(document.addEventListener("click",Yb,!1),!s["experimental-prefetch-mousedown"]||"ontouchstart"in window||0<window.navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints||(document.addEventListener("mousedown",$b,!1),q("prefetch-listener",$b)),q("nav-init",!0),q("nav-init-time",n()),q("nav-counter",0),q("nav-listener",Yb))}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&&(Wb(a)?Xb()?Zb(a,b):V(a,cc):V(a,dc))},load:function(a,b){xc(a,b)},prefetch:function(a,b){ac(a,b)},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)}},Lc={cache:{remove:ga,clear:function(){v({})}},script:{load:fb,get:hb,ready:jb,done:function(a){Oa(H,
a,"");Pa(H)},require:kb,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:gb,ignore:function(a,b){a=u(a);var c=J(H,a.sort().join("|"));Ba(c,b)},unrequire:lb,prefetch:ib},style:{load:pb,get:qb,unload:function(a){Sa(Q,a)},path:function(a){q("rsrc-p-"+Q,a)},prefetch:rb}},Mc=this.spf=this.spf||{},Nc;for(Nc in Kc)Mc[Nc]=Kc[Nc];for(var $ in Lc)for(var Oc in Lc[$])Mc[$]=Mc[$]||{},Mc[$][Oc]=Lc[$][Oc];m("spfready");if(typeof define=='function'&&define.amd)define(spf);else if(typeof exports=='object')for(var f in spf)exports[f]=spf[f];})();


