/*@ 2019 PayPal (v1.3.31) */ !function(){"use strict";function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return function n(t){if(Array.isArray(t))return t}(t)||function u(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=undefined;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c["return"]||c["return"]()}finally{if(i)throw o}}return n}(t,e)||function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(t,e,n){var r;if((n=n||{}).expires){var i=new Date;i.setTime(i.getTime()+24*n.expires*60*60*1e3),r="; expires="+i.toGMTString()}else r="";document.cookie=t+"="+e+r+"; path=/"}function v(t){for(var e=document.cookie.split(";"),n=0;n>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");1]*>/g},Y={GA:"ga",DC:"dc",GTAG:"gtag",MPP:"mpp"},W=null,$=null;try{W=window.localStorage,$=window.sessionStorage}catch(Fe){$=W=null}function K(t){if(!t||t.constructor!==Object&&t.constructor!==Array)return t;var e=t.constructor();for(var n in t)e[n]=K(t[n]);return e}function X(t,e){e=e||{};var n=K(t=t||{});for(var r in e)try{e[r].constructor===Object&&n[r]&&n[r].constructor===Object?n[r]=X(n[r],e[r]):n[r]=e[r]}catch(Fe){n[r]=e[r]}return n}function Q(t,e){return t&&t.data&&"string"==typeof t.data&&(t.data=Z(t.data)),e&&e.data&&"string"==typeof e.data&&(e.data=Z(e.data)),X(t,e)}function Z(t){var e={};if(!t||void 0===t)return e;if("object"===g(t))return t;for(var n=t.split("&"),r=0;r=V.LEN?e.substring(0,V.LEN):e}function Et(t){t&&void 0!==t&&(t.constructor===Object&&function n(t){if(!t||void 0===t||"object"!==g(t))return!0;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||Pt(z.TP_ID,JSON.stringify(t)))}function _t(t){if($)return $.getItem(t)}function Pt(t,e){if($&&e)try{$.setItem(t,e)}catch(Fe){}}function Ct(){var t=function r(){return JSON.parse(_t(z.TP_ID))}()||function s(t){var e=Z(t),n={};if(!e||void 0===e)return n;for(var r=0,i=Object.keys(e);ri.scr.t12&&(i.scr.t12=t.duration),i.scr.cnt++):""!==e&&!Dt.test(e)||-1!==n.indexOf(J)||i.xhr.push({nm:function a(t){var e=document.createElement("a");e.href=t;var n=e.pathname.replace(/\/*$/,""),r=n.indexOf("&");-1!==r&&(n=n.substr(0,r));var i=n.split("/"),o=e.hostname;return-1===o.indexOf(M)&&-1===o.indexOf(J)?i.join("").length?o+"/./"+i.pop():o:i.join("").length?i.slice(-2).join("/"):"/"}(t.name),t9:b(t.duration),ta:b(t.fetchStart)})}),i.scr.t9=Math.max.apply(null,i.scr.responseEnds)-Math.min.apply(null,i.scr.startTimes),i.scr.t9=i.scr.t9<0||null===i.scr.t9&&"object"===g(i.scr.t9)?i.scr.t12:i.scr.t9,i)if(delete i[o].startTimes,delete i[o].responseEnds,"xhr"!==o){for(var a in i[o])i[o][a]=b(i[o][a]);i[o].cnt||delete i[o]}else i[o].length||delete i[o];return r.res=i,r}function Bt(t,e){var n,r=t.res;!u()||!e&&r||(n=Ut(),r=r?Q(r,n.res):n.res,t.res=r),function i(t,e){(e=e||{}).rtt&&(t.rtt=e.rtt),0<=e.rdc&&(t.rdc=e.rdc);var n=t.view=t.view||{};n.t10=n.t10||t.t1||0,n.t11=n.t11||0,n.t11n.t11&&(n.t10=0),n.t11>It&&(n.t11=It);var r=e.view;r&&(r.tcp&&(n.tcp=r.tcp),r.nt&&(n.nt=r.nt),r.dbs&&(n.dbs=r.dbs),r.ebs&&(n.ebs=r.ebs))}(t,n)}function Mt(e){var n,o=qt(),a=o,c=0,s=0,l=function u(t){t=t||4;for(var e=[],n="",r=!1,i=0;io?t.vid:ce(),i=t.fpti&&t.fpti_exp>o?t.fpti:ce(),r=o+18e5):(n=ce(),r=o+18e5,i=ce()),t={vid:n,vid_exp:r,fpti:i,fpti_exp:o+94608e6},e.setItem("fpti_3p",JSON.stringify(t))}catch(Fe){}return t}();n&&tt(e.data,{"3p_vid":n.vid,"3p_fpti":n.fpti})}this.record(e)},_createBeacon:function(t){var e,n=new window.Image;"function"==typeof t.onBeaconCreate&&!1!==t.onBeaconCreate(n)?(e=this._generateBeaconUrl(t),t.unloadDelay&&this.setUnloadDelay(t.unloadDelay)):t.logActivity&&(e=this._generateLogBeaconUrl(t)),e&&(n.src=e,se.beaconURL=e),f.publish(B.BEACON,t)},_generateBeaconUrl:function(t){var e=t.url||window.fptiserverurl,n=e.split("?");e=n[0];var r=t.keys;if(e.match(/^\/\//)&&(e=window.location.protocol+e),e+="?",n[1]&&(e+=n[1]+"&"),e+=r.version+"="+encodeURIComponent(this.version),r.timestamp&&(e=s(e,r.timestamp,p())),r.gmtOffset&&(e=s(e,r.gmtOffset,this._getGmtOffset())),r.eventType&&(e=s(e,r.eventType,t.values.eventType)),t.data.opic){var i=t.data.opic;i=(i=i.replace(/\w+@\w+\.\w+/g,"")).replace(/\d+/g,""),t.data.opic=i}return lt(e=o(e,t.data))},_generateLogBeaconUrl:function(t){var e=window.fptiserverurl+"?v="+this.version;return t.g=this._getGmtOffset(),t.t=qt(),t.start&&(t.end=t.end||t.t,t.tt=t.end-t.start),delete t.logActivity,delete t.trackCPL,lt(e=o(e,t))},getTimeNow:qt,_getGmtOffset:function(){return(new Date).getTimezoneOffset()},_getPageTitle:function(){return document.title},_getReferrer:function(){return document.referrer},_getLastFormFocusedValue:function(){var t="";return this._lastForm&&(t=this._lastForm.getAttribute("name")||this._lastForm.getAttribute("id")||""),t},_getLastInputFocusedValue:function(){var t="";return this._lastInput&&(t=this._lastInput.getAttribute("name")||this._lastInput.getAttribute("id")||""),t},_getElements:function(t){var e=[];if(t)if("string"==typeof t)e=et(t);else if("object"===g(t))for(var n in t)t.hasOwnProperty(n)&&1===t[n].nodeType&&e.push(t[n]);else 1===t.nodeType&&e.push(t);return e},_click:function(t){t.getAttribute("href")&&(window.location.href=t.getAttribute("href"))},setOptions:function(t){var e=(t=t||{}).request&&t.request.data;e&&(delete t.request.data,"string"==typeof e&&(e=Z(e)),pe(e=Q(window.fpti,e))),this.options=Q(this.options,t)},setRequestData:function(t,e){if("object"===g(t))for(var n in t)this.options.request.data[n]=t[n];else"string"==typeof t&&e===undefined?this.setRequestData(Z(t)):"string"==typeof t&&e!==undefined&&(this.options.request.data[t]=e)},getRequestData:function(t){var e=this.options.request.data;return t&&(e=e[t]||window.fpti[t]),e},removeRequestData:function(t){void 0!==t?this.options.request.data[t]&&delete this.options.request.data[t]:this.options.request.data={}},setUnloadDelay:function(t){this._delayUnloadUntil=p()+t},recordImpression:function(o,t){se._imInProgress=!0;var a=this,c={};if((o=o||{}).data){o.data=Z(o.data);var e=le();o.data=Q(e,o.data),pe(o.data)}else o.data=Q(window.fpti,{});t&&(o.data=Q(o.data,t)),se._imId=o.data.page;var n=this.getRequestData("pglk")||v("tcs");m("tcs"),n&&(o.data.pglk=decodeURIComponent(n));var r=v("AKDC");r&&(o.data.akdc=decodeURIComponent(r)),de(o);var i=(o=Q(a.options.impression.request,o)).keys;c[i.pageTitle]=a._getPageTitle(),c[i.referrer]=a._getReferrer(),c[i.screenColorDepth]=function f(){return window.screen.colorDepth}();var s=function p(){var t=window.screen||{};return{width:t.width,height:t.height}}();c[i.screenWidth]=s.width,c[i.screenHeight]=s.height;var u=function d(){var t=window.screen||{},e=window.devicePixelRatio||1,n=b(t.width*e),r=b(t.height*e);if(90===Math.abs(window.orientation)){var i=n;n=r,r=i}return{width:n,height:r}}();c[i.deviceWidth]=u.width,c[i.deviceHeight]=u.height;var l=y();c[i.browserWidth]=l.width,c[i.browserHeight]=l.height,c[i.cookiesEnabled]=function g(){return"undefined"===navigator.cookieEnabled?(document.cookie="enabledCheck",-1!==document.cookie.indexOf("enabledCheck")?h:w):navigator.cookieEnabled?h:w}(),"mo"!==se.settings&&(c[i.plugins]=x()),o.data.view?a._recordEvent(c,o):(E&&(o.data.view=o.data.view||{},o.data.view._t11s=E.now()),Mt(function(t){var e=se.cpl&&se.cpl.beaconData||{},n=e.view&&e.view._t11s||0,r=o.data.view._t11s||0;o.data.view._t11s=Math.min.apply(null,[n,r].filter(Boolean));var i=Ft(c,o);i.view&&(i.view.bt=t),c=tt(c,i),se._imInProgress=!1,a._recordEvent(c,o)}))},recordClick:function(t){(t=t||{}).data=Z(t.data),t.data=Q(window.fpti,t.data),de(t=Q(this.options.click.request,t)),fe(t.data),this._recordEvent({},t)},recordFormAbandonment:function(t){var e={};(t=t||{}).data=Z(t.data),t.data=Q(window.fpti,t.data),fe((t=Q(this.options.formAbandonment.request,t)).data);var n=t.keys;e[n.lastFormFocused]=this._getLastFormFocusedValue(),e[n.lastInputFocused]=this._getLastInputFocusedValue(),this._recordEvent(e,t)},trackFormFocus:function(t){t=this._getElements(t);for(var r=function r(t){var e=t.currentTarget||t.srcElement,n={uicomp:ct(e,"data-pa-focus"),uitype:"form",action:"focus",value:t.target.value?t.target.value:ct(e)};se.logActivity(n)},e=0;e=t[1]&&t[1]>e&&_e(t[0])})}(r,i,o):function u(e,n){ye.scrollDepth.forEach(function(t){-1===we.indexOf(t)&&t<=n&&e