(function({__FIRST_RENDER_EXPERIMENTS__,__FUNDING_ELIGIBILITY__,__MESSAGING_GLOBALS__}){ !function(e,n){for(var t in n)e[t]=n[t]}(window,function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=9)}([,,function(e,n,t){e.exports=t(8)},function(e,n){e.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";function r(e,n){for(var t=[],r=0;r1?new i(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return r(this.children,e)},e}();function c(e){for(var n=[],t=0;t2?t-2:0),i=2;i=0||(o[t]=e[t]);return o}function c(){return window.navigator.mockUserAgent||window.navigator.userAgent}function s(e){return void 0===e&&(e=c()),/Firefox/i.test(e)}function d(e){return void 0===e&&(e=c()),/Opera Mini/i.test(e)}function l(e){return void 0===e&&(e=c()),/Android/.test(e)}function f(e){return void 0===e&&(e=c()),/iPhone|iPod|iPad/.test(e)}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function h(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,p(e,n)}function y(){return(y=Object.assign||function(e){for(var n=1;n>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t=3)return"stringifyError stack overflow";try{if(!e)return"";if("string"==typeof e)return e;if(e instanceof Error){var t=e&&e.stack,r=e&&e.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+Re(e,n+1)}}function Ae(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function Te(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function Fe(e){if(Object.values)return Object.values(e);var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}function Pe(e){return"data:image/svg+xml;base64,"+pe(e)}function Ce(e,n){void 0===n&&(n=Boolean);var t={};for(var r in e)e.hasOwnProperty(r)&&n(e[r],r)&&(t[r]=e[r]);return t}function Ie(e){return e}function Oe(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function xe(){var e={},n={},t={on:function(e,t){var r=n[e]=n[e]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(e,n){var r=t.on(e,(function(){r.cancel(),n()}));return r},trigger:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?r-1:0),i=1;i1e3&&e.now()-(e.timing.connectEnd-e.timing.navigationStart)>0)return e}))}function en(){return"undefined"!=typeof window&&void 0!==window.location}function nn(){return Ne(nn,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var e=Math.random().toString();window.localStorage.setItem("__test__localStorage__",e);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),e===n)return!0}}catch(e){}return!1}))}function tn(){var e=window.navigator,n=e.languages?[].concat(e.languages):[];return e.language&&n.push(e.language),e.userLanguage&&n.push(e.userLanguage),n.map((function(e){if(e&&e.match(/^[a-z]{2}[-_][A-Z]{2}$/)){var n=e.split(/[-_]/);return{country:n[1],lang:n[0]}}return e&&e.match(/^[a-z]{2}$/)?{lang:e}:null})).filter(Boolean)}function rn(e,n){e.appendChild(n)}function on(e,n){return void 0===n&&(n=document),de(e)?e:"string"==typeof e?n.querySelector(e):void 0}function an(e,n){void 0===n&&(n=document);var t=on(e,n);if(t)return t;throw new Error("Can not find element: "+Ae(e))}function un(e){return new b((function(n,t){var r=Ae(e),o=on(e);if(o)return n(o);if(Ye())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=on(e))?(n(o),void clearInterval(i)):Ye()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}ge((function(){return new b((function(e){if(Ye()||Ve())return e();var n=setInterval((function(){if(Ye()||Ve())return clearInterval(n),e()}),10)}))}));var cn,sn=function(e){function n(){return e.apply(this,arguments)||this}return h(n,e),n}(je);function dn(e){if((cn=cn||new ie).has(e)){var n=cn.get(e);if(n)return n}var t=new b((function(n,t){e.addEventListener("load",(function(){(function(e){if(function(){for(var e=0;er&&(t=null),t||(t={guid:o||he(),created:i}),n.__session__=t,e(t)}))}return{getState:u,getID:c,isStateFresh:function(){return c()===i},getSessionState:function(e){return s((function(n){return n.state=n.state||{},e(n.state)}))},getSessionID:function(){return s((function(e){return e.guid}))}}}),[{name:n,lifetime:r}])}var Cn=[];function In(e){var n=e.url,t=e.method,r=void 0===t?"get":t,o=e.headers,i=void 0===o?{}:o,a=e.json,u=e.data,c=e.body,s=e.win,d=void 0===s?window:s,l=e.timeout,f=void 0===l?0:l;return new b((function(e,t){if(a&&u||a&&c||u&&a)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,l=Object.keys(i);s\n\n'+r)}(0,0,e)}})),zn=ge((function(){for(var e={},n=0,t=Vn().attributes;nit.indexOf(i))){var r=[n];r.push(t),(t.error||t.warning)&&r.push("\n\n",t.error||t.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,r):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,r)}catch(e){}}}function N(){return b.try((function(){if(en()&&"file:"!==window.location.protocol&&(f.length||p.length||h.length)){for(var e={},t=0;t0&&!e.dimensions&&(e.dimensions={});for(var n=0;n";return e?e instanceof Error?e.message||n:"string"==typeof e.message&&e.message||n:n}(n),t)),e.error("paypal_js_sdk_v5_unhandled_exception",{err:Re(n)}),e.flush().catch(Se)})),Je().then((function(){var i,c,s=Vn(),d=function(e){var n=$e();if(n&&"function"==typeof n.getEntries)for(var t=n.getEntries(),r=0;r { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:i,name:a}}))}))}))}({on:o.on,send:o.send});var i=t.__id__||he();e=rr.unwrap(e);var a=t.__name__||t.name||r;return"string"==typeof a&&"function"==typeof a.indexOf&&0===a.indexOf("anonymous::")&&(a=a.replace("anonymous::",r+"::")),rr.isProxyWindow(e)?(or(i,t,a,e,n),e.awaitWindow().then((function(e){or(i,t,a,e,n)}))):or(i,t,a,e,n),zt("cross_domain_function",{id:i,name:a})}function ur(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=Xt);var t=JSON.stringify(e,(function(e){var t=this[e];if(Yt(this))return t;var r=Vt(t);if(!r)return t;var o=n[r]||Qt[r];return o?o(t,e):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(e,n,t,r,o){return zt("cross_domain_zalgo_promise",{then:ar(e,n,(function(e,n){return t.then(e,n)}),r,{on:o.on,send:o.send})})}(e,n,t,r,{on:i,send:a})},o.function=function(t,r){return ar(e,n,t,r,{on:i,send:a})},o.object=function(e){return ee(e)||rr.isProxyWindow(e)?zt("cross_domain_window",rr.serialize(e,{send:a})):e},o))}function cr(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=er),"undefined"!==e)return JSON.parse(e,(function(e,t){if(Yt(this))return t;var r,o;if(Yt(t)?(r=t.__type__,o=t.__val__):(r=Vt(t),o=t),!r)return o;var i=n[r]||$t[r];return i?i(o,e):o}))}(t,((o={}).cross_domain_zalgo_promise=function(e){return function(e,n,t){return new b(t.then)}(0,0,e)},o.cross_domain_function=function(t){return function(e,n,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return rr.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=ir(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:M()},u);var s=[].slice.call(u);return t.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=n,r.__source__=e,r.__id__=o,r.origin=n,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(e,n,t,{send:i})},o.cross_domain_window=function(e){return rr.deserialize(e,{send:i})},o))}var sr={};function dr(e,n,t,r){var o=r.on,i=r.send;return b.try((function(){var r=Ut().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||b.flush().then((function(){if(j(e))throw new Error("Window is closed");var t=ur(e,n,function(e){var n;return(n={})[Dt()]=e,n}(r.buffer||[]),{on:o,send:i});delete r.buffer;for(var a=Object.keys(sr),u=[],c=0;c0?i.trustedDomains.reduce((function(n,t){return n||Q(t,e)}),!1):Q(e,M(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=x[o])}}return b.hash(n)},fe=function(){return b.try((function(){return ae?ae():I}))},pe=function(e){return b.try((function(){return ue?ue(e):I=y({},I,e)}))},ye=function(){return W?W():b.try((function(){var e=x.window;if(e){var n=Rr(e);return F.register((function(){return e.close()})),n}return new rr({send:_r})}))},me=function(e){return K?K(e):b.try((function(){n=e}))},ve=function(){return B?B():b.hash({setState:pe({visible:!0}),showElement:t?t.get().then(wn):null}).then(Se)},Ee=function(){return U?U():b.hash({setState:pe({visible:!1}),showElement:t?t.get().then(gn):null}).then(Se)},we=function(){return"function"==typeof _?_({props:x}):_},_e=function(){return"function"==typeof E?E({props:x}):E},Ne=function(){return X(we())},Fe=function(e,n){var t=n.windowName;return V?V(e,{windowName:t}):b.try((function(){if(e===Br.IFRAME)return Dr(fn({attributes:y({name:t,title:v},_e().iframe)}))}))},Pe=function(e){return ee?ee(e):b.try((function(){if(e===Br.IFRAME)return Dr(fn({attributes:y({name:"__zoid_prerender_frame__"+v+"_"+he()+"__",title:"prerender__"+v},_e().iframe)}))}))},Ce=function(e,n,t){return oe?oe(e,n,t):b.try((function(){if(e===Br.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return F.register((function(){return _n(e)})),ln(e).then((function(e){return H(e)})).then((function(e){return Rr(e)}))}))}if(e===Br.POPUP)return n;throw new Error("No render context available for "+e)}))},Ie=function(){return b.try((function(){if(n)return b.all([O.trigger("zoid-focus"),n.focus()]).then(Se)}))},De=function(){var e=Or(window);return e.windows=e.windows||{},e.windows[a]=window,F.register((function(){delete e.windows[a]})),a},Me=function(e,n,t,r){if(n===M(window))return{type:"global",uid:De()};if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(x.window){var o=r.getWindow();if(!o)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(Y(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===Br.POPUP)return{type:"opener"};if(t===Br.IFRAME)return{type:"parent",distance:z(window)};throw new Error("Can not construct window reference for child")},He=function(e,t){return b.try((function(){var i;o=e,r=t,null==(i=n)||i.isPopup().then((function(e){var r;""!==(null==t?void 0:t.name)&&e&&(null==(r=n)||r.setName(null==t?void 0:t.name))})).finally((function(){se(),F.register((function(){return t.close.fireAndForget().catch(Se)}))}))}))},ke=function(e){var n=e.width,t=e.height;return b.try((function(){O.trigger("zoid-resize",{width:n,height:t})}))},Ze=function(e){return b.try((function(){return O.trigger("zoid-destroy")})).catch(Se).then((function(){return F.all(e)})).then((function(){var n=e||new Error(Zr.COMPONENT_DESTROYED);i&&Nn(i)||Object.values(Zr).includes(n.message)?A.resolve():A.asyncReject(n)}))},Ue=ge((function(e){return b.try((function(){if(G){if(j(G.__source__))return;return G()}return b.try((function(){return O.trigger("zoid-close")})).then((function(){return Ze(e||new Error(Zr.COMPONENT_CLOSED))}))}))})),Ge=function(e,n){var t=n.proxyWin,r=n.proxyFrame,o=n.windowName;return re?re(e,{proxyWin:t,proxyFrame:r,windowName:o}):b.try((function(){if(e===Br.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return ln(e).then((function(n){return F.register((function(){return _n(e)})),F.register((function(){return Pr(n)})),n}))}))}if(e===Br.POPUP){var n=ce(),t=n.width,i=void 0===t?"300px":t,a=n.height,u=void 0===a?"150px":a;i=Ln(i,window.outerWidth),u=Ln(u,window.outerWidth);var c=function(e,n){var t=(n=n||{}).closeOnUnload,r=void 0===t?1:t,o=n.name,i=void 0===o?"":o,a=n.width,u=n.height,c=0,s=0;a&&(window.outerWidth?s=Math.round((window.outerWidth-a)/2)+window.screenX:window.screen.width&&(s=Math.round((window.screen.width-a)/2))),u&&(window.outerHeight?c=Math.round((window.outerHeight-u)/2)+window.screenY:window.screen.height&&(c=Math.round((window.screen.height-u)/2))),delete n.closeOnUnload,delete n.name,a&&u&&(n=y({top:c,left:s,width:a,height:u,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var d,l,f=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+Ae(n[e])})).filter(Boolean).join(",");try{d=window.open("",i,f)}catch(l){throw new sn("Can not open popup window - "+(l.stack||l.message))}if(j(d))throw new sn("Can not open popup window - blocked");return r&&(window.addEventListener("beforeunload",(function(){d.close()})),"onpagehide"in window?window.addEventListener("pagehide",(function(){d.close()})):window.addEventListener("unload",(function(){d.close()}))),d}(0,y({name:o,width:i,height:u},_e().popup));return F.register((function(){return te(c)})),F.register((function(){return Pr(c)})),c}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:_r}),t.setName(o).then((function(){return t}))}))},We=function(){return b.try((function(){var e="onpagehide"in window?"pagehide":"unload",n=null,t=pn(window,e,(function(e){if(Boolean(e.persisted)&&R)return n=Date.now(),void O.trigger("zoid-bfcache-cache");Ze(new Error(Zr.NAVIGATED_AWAY))}));if(R&&"onpageshow"in window){var r=pn(window,"pageshow",(function(e){if(Boolean(e.persisted)){var t=n,r="number"==typeof t?Date.now()-t:null;n=null,O.trigger("zoid-bfcache-restore",{cachedDurationMs:r})}}));F.register(r.cancel)}var o=$(l,Ze,3e3);if(F.register(o.cancel),F.register(t.cancel),ie)return ie()}))},je=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,Ue(new Error(Zr.WINDOW_CLOSED))):b.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,Ue(new Error(Zr.WINDOW_CLOSED))}))})).then((function(){return n}))},Ke=function(e){return k?k(e):b.try((function(){if(-1===T.indexOf(e))return T.push(e),A.asyncReject(e),O.trigger("zoid-error",e)}))},Ye=new b,Ve=function(e){return b.try((function(){Ye.resolve(e)}))};He.onError=Ke;var ze=function(e,n){return e({uid:a,container:n.container,context:n.context,doc:n.doc,frame:n.frame,prerenderFrame:n.prerenderFrame,focus:Ie,close:Ue,state:P,props:x,tag:m,dimensions:ce(),event:O})},Je=function(e,n){var t=n.context;return ne?ne(e,{context:t}):b.try((function(){if(h){O.trigger("zoid-prerender");var n=e.getWindow();if(n&&L(n)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(n)){var r=(n=H(n)).document,o=ze(h,{context:t,doc:r});if(o){if(o.ownerDocument!==r)throw new Error("Expected prerender template to have been created with document from child window");!function(e,n){var t=n.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=e.document.documentElement,o=0,i=Le(r.children);o",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(y({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[De(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,Br.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(y({},this.$attrs)).catch(Se)},deep:!0}}}}},ao={register:function(e,n,t,r){return r.module(e,[]).directive(De(e),(function(){for(var e={},r=0,o=Object.keys(n);r",inputs:["props"]})];var d=function(){};return d.annotations=void 0,d.annotations=[new i({declarations:[s],exports:[s]})],d}};function co(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div");d.setAttribute("id",n);var l=o.createElement("style");return i.cspNonce&&l.setAttribute("nonce",i.cspNonce),l.appendChild(o.createTextNode("\n #"+n+" {\n display: inline-block;\n position: relative;\n width: "+c+";\n height: "+s+";\n }\n\n #"+n+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+n+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+n+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),d.appendChild(t),d.appendChild(r),d.appendChild(l),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on("zoid-rendered",(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),t.classList.remove("zoid-invisible"),t.classList.add("zoid-visible"),setTimeout((function(){_n(r)}),1)})),a.on("zoid-resize",(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=Mn(n)),"number"==typeof t&&(d.style.height=Mn(t))})),d}}function so(e){var n=e.doc,t=e.props,r=n.createElement("html"),o=n.createElement("body"),i=n.createElement("style"),a=n.createElement("div");return a.classList.add("spinner"),t.cspNonce&&i.setAttribute("nonce",t.cspNonce),r.appendChild(o),o.appendChild(a),o.appendChild(i),i.appendChild(n.createTextNode("\n html, body {\n width: 100%;\n height: 100%;\n }\n\n .spinner {\n position: fixed;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n }\n\n @keyframes rotation {\n from {\n transform: translateX(-50%) translateY(-50%) rotate(0deg);\n }\n to {\n transform: translateX(-50%) translateY(-50%) rotate(359deg);\n }\n }\n ")),r}var lo=qe(),fo=qe();function po(e){var n=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,i=e.props,a=void 0===i?{}:i,u=e.getExtensions,c=void 0===u?function(){return{}}:u,s=e.dimensions,d=void 0===s?{}:s,l=e.autoResize,f=void 0===l?{}:l,p=e.allowedParentDomains,h=void 0===p?"*":p,m=e.attributes,v=void 0===m?{}:m,E=e.defaultContext,w=void 0===E?Br.IFRAME:E,g=e.containerTemplate,_=void 0===g?co:g,N=e.prerenderTemplate,S=void 0===N?so:N,b=e.validate,R=e.eligible,A=void 0===R?function(){return{eligible:!0}}:R,T=e.logger,F=void 0===T?{info:Se}:T,P=e.exports,C=void 0===P?Se:P,I=e.method,O=e.enableBfcache,x=void 0!==O&&O,D=e.children,M=void 0===D?function(){return{}}:D,H=n.replace(/-/g,"_"),k=y({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!ee(n)&&!rr.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(ee(n)){if(j(n))throw new Error("Window is closed");if(!L(n))throw new Error("Window is not same domain")}},decorate:function(e){return Rr(e.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Xr,decorate:$r},onRendered:{type:"function",required:!1,sendToChild:!1,default:Xr,decorate:$r},onRender:{type:"function",required:!1,sendToChild:!1,default:Xr,decorate:$r},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:Xr,decorate:$r},onPrerender:{type:"function",required:!1,sendToChild:!1,default:Xr,decorate:$r},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Xr,decorate:$r},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Xr,decorate:$r},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Xr},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Xr},onBfcacheCache:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Xr},onBfcacheRestore:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:Xr},close:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},a);if(!_)throw new Error("Container template required");return{name:H,tag:n,url:t,domain:r,bridgeUrl:o,method:I,propsDef:k,dimensions:d,autoResize:f,allowedParentDomains:h,attributes:v,defaultContext:w,containerTemplate:_,prerenderTemplate:S,validate:b,logger:F,eligible:A,children:M,exports:"function"==typeof C?C:function(e){for(var n=e.getExports,t={},r=function(e,r){var o=r[e],i=C[o].type,a=n().then((function(e){return e[o]}));t[o]="function"===i?function(){for(var e=arguments.length,n=new Array(e),t=0;t0?d.trustedDomains.reduce((function(e,n){return e||Q(n,M(window))}),!1):r===M(window)||L(e);if((!d||!d.sameDomain||l)&&(!d||!d.trustedDomains||l)){d&&Yr(d.type,s,t[s]);var f=Vr(n,0,s,t[s],o);a[s]=f,d&&d.alias&&!a[d.alias]&&(a[d.alias]=f)}}if(!i)for(var p=0,h=Object.keys(n);p1?new Eo(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return mo(this.children,e)},e}();function _o(e){for(var n=[],t=0;t2?t-2:0),o=2;o/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}var Mo,Lo,Ho,ko,Zo,Bo,Uo,Go,qo,Wo,jo,Ko,Yo,Vo,zo,Jo,Qo,Xo,$o,ei,ni,ti,ri,oi,ii,ai,ui=["svg","cdnUrl"],ci=["render","name","logoColor"];function si(e){var n=e.svg,t=e.cdnUrl,r=u(e,ui);if(t){var o=y({src:t},r);return Ro("img",o)}if(!n)throw new TypeError("Expected svg prop");if("string"!=typeof(n=n.render((function e(n){if("component"===n.type)return[].concat(n.renderComponent(e)).join("");if("element"===n.type){var t=(o=n.props,(i=Object.keys(o).filter((function(e){var n=o[e];return"innerHTML"!==e&&("string"==typeof n||"number"==typeof n||!0===n)}))).length?" "+i.map((function(e){var n=o[e];if(!0===n)return""+Do(e);if("string"!=typeof n&&"number"!=typeof n)throw new TypeError("Unexpected prop type: "+typeof n);return""===n?Do(e):Do(e)+'="'+Do(n.toString())+'"'})).join(" "):"");if(xo[n.name])return"<"+n.name+t+" />";var r="string"==typeof n.props.innerHTML?n.props.innerHTML:n.renderChildren(e).join("");return"<"+n.name+t+">"+r+""}var o,i;if("text"===n.type)return Do(n.text);throw new TypeError("Unhandleable node: "+n.type)}))))throw new TypeError("Expected svg prop to be a string or jsx node");var i=y({src:Pe(n)},r);return Ro("img",i)}function di(e){var n=e.render,t=e.name,r=e.logoColor,o=u(e,ci);return Ro(si,y({},o,{svg:n?n():null,alt:"",class:"paypal-logo paypal-logo-"+t+" "+(r?"paypal-logo-color-"+r:"")}))}(Mo={}).default={primary:"#ffffff",secondary:"#ffffff"},Mo.white={primary:"#ffffff",secondary:"#ffffff"},Mo.black={primary:"#000000",secondary:"#000000"},(Lo={}).default={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Lo.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Lo.black={primary:"#1E3764",secondary:"#005AB9",tertiary:"#FBA900",quaternary:"#FFD800"},(Ho={}).default={primary:"#333030"},Ho.white={primary:"#ffffff"},Ho.black={primary:"#333030"},(ko={}).default={primary:"#000000"},ko.white={primary:"#FFFFFF"},ko.black={primary:"#000000"},(Zo={}).default={primary:"#003087"},Zo.blue={primary:"#003087"},Zo.white={primary:"#ffffff"},Zo.black={primary:"#333030"},(Bo={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Bo.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Bo.black={primary:"#C8036F",secondary:"#71706F"},(Uo={}).default={primary:"#FFFFFF",secondary:"#003A7D",tertiary:"#ED1C24",quaternary:"#FFFFFF",quinary:"#FFFFFF"},Uo.white={primary:"#000000",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#000000",quinary:"#FFFFFF"},Uo.black={primary:"#FFFFFF",secondary:"#003A7D",tertiary:"#ED1C24",quaternary:"#FFFFFF",quinary:"#003A7D"},(Go={}).default={primary:"#FFFFFF",secondary:"#CC0066"},Go.white={primary:"#FFFFFF",secondary:"#CC0066"},Go.black={primary:"#FFFFFF",secondary:"#CC0066"},(qo={}).default={primary:"#00C0EE",secondary:"#FFFFFF"},qo.white={primary:"#FFFFFF",secondary:"#FFFFFF"},qo.black={primary:"#00C0EE",secondary:"#1A4B67"},(Wo={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Wo.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Wo.black={primary:"#B3B1B1",secondary:"#D03238"},(jo={}).default={primary:"#003087",secondary:"#009cde"},jo.blue={primary:"#003087",secondary:"#009cde"},jo.white={primary:"#ffffff",secondary:"#ffffff"},jo.black={primary:"#333030",secondary:"#636363"},jo.monochrome={primary:"#000000",secondary:"#000000"},(Ko={}).default={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},Ko.blue={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},Ko.white={primary:"#ffffff",primaryOpacity:"0.7",secondary:"#ffffff",secondaryOpacity:"0.7",tertiary:"#ffffff"},Ko.black={primary:"#808080",secondary:"#000000",tertiary:"#1a1a1a"},(Yo={}).default={main:"#005DA0",card:"#AEB1BC"},Yo.white={main:"#FFFFFF",card:"#FFFFFF"},Yo.black={main:"#333030",card:"#333030"},(Vo={}).default={primary:"#EDEDED",secondary:"#393A41"},Vo.white={primary:"#FFFFFF",secondary:"#000000"},Vo.black={primary:"#393A41",secondary:"#EDEDED"},(zo={}).default={primary:"#3D93CE"},zo.blue={primary:"#3D93CE"},zo.white={primary:"#ffffff"},zo.black={primary:"#333030"},(Jo={}).default={primary:"#ffffff"},Jo.blue={primary:"#003087"},Jo.white={primary:"#ffffff"},Jo.black={primary:"#333030"},(Qo={}).default={primary:"#1AAD19",secondary:"#FFFFFF"},Qo.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Qo.black={primary:"#1AAD19",secondary:"#4D4D4D"},(Xo={}).default={primary:"#A6C307"},Xo.white={primary:"#FFFFFF"},Xo.black={primary:"#2C2E2F"},($o={}).default={primary:"#FF0000",secondary:"#E83E49",tertiary:"#FF00FF",quaternary:"#000000",senary:"#FFFFFF"},$o.white={primary:"#000000",secondary:"#000000",tertiary:"#000000",quaternary:"#000000",senary:"#FFFFFF"},$o.black={primary:"#FF0000",secondary:"#E83E49",tertiary:"#FF00FF",quaternary:"#4D4D4F",senary:"#FFFFFF"},(ei={}).default={primary:"#0EE06E"},ei.white={primary:"#FFFFFF"},ei.black={primary:"#000000"},(ni={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},ni.white={primary:"#FFFFFF",secondary:"#FFFFFF"},ni.black={primary:"#E39E39",secondary:"#D8232A"},(ti={}).default={primary:"#FFFFFF"},ti.white={primary:"#FFFFFF"},ti.black={primary:"#000000"},(ri={}).default={primary:"#009EE3",secondary:"#FFFFFF",tertiary:"#009EE3",quaternary:"#FFFFFF"},ri.white={primary:"#000000",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#FFFFFF"},ri.black={primary:"#FFFFFF",secondary:"#2D3277",tertiary:"#009EE3",quaternary:"#009EE3"},(oi={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},oi.white={primary:"#FFFFFF",secondary:"#FFFFFF"},oi.black={primary:"#1866AB",secondary:"#373535"},(ii={}).default={primary:"#FFFFFF"},ii.white={primary:"#FFFFFF"},ii.black={primary:"#2C2E2F"},(ai={}).default={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF"},ai.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF"},ai.black={primary:"#A6009C",secondary:"#FF009C",tertiary:"#1C1C1C"};var li,fi,pi,hi,yi,mi,vi,Ei=["logoColor"],wi=((li={}).default={primary:"#000000"},li.black={primary:"#000000"},li.white={primary:"#FFFFFF"},li.blue={primary:"#60CDFF"},li),gi=function(e){var n=e.logoColor,t=void 0===n?"default":n,r=u(e,Ei),o=function(e){var n=e.primary;return Ro("svg",{xmlns:"http://www.w3.org/2000/svg",width:"67",height:"23",viewBox:"0 0 67 23",fill:"none"},Ro("path",{d:"M66.7497 0.00256348V16.8071H62.9443V0.00256348H66.7497Z",fill:n}),Ro("path",{d:"M61.5406 5.66932V16.8306H58.1569V15.87C57.7301 16.2876 57.2412 16.6061 56.6979 16.8306C56.1521 17.0681 55.5623 17.1882 54.9285 17.1882C54.1317 17.1882 53.3944 17.0394 52.7167 16.7418C52.0389 16.4286 51.4491 16.0057 50.9472 15.4707C50.4454 14.9356 50.047 14.3091 49.7521 13.5965C49.4727 12.8683 49.333 12.0852 49.333 11.2526C49.333 10.4199 49.4727 9.64467 49.7521 8.93208C50.047 8.20383 50.4454 7.56955 50.9472 7.03446C51.4491 6.49937 52.0389 6.08173 52.7167 5.78417C53.3944 5.47094 54.1317 5.31433 54.9285 5.31433C55.5623 5.31433 56.1521 5.4344 56.6979 5.67193C57.2437 5.89641 57.7301 6.21485 58.1569 6.63249V5.67193H61.5406V5.66932ZM55.5442 13.7949C56.2374 13.7949 56.804 13.5574 57.2463 13.0797C57.7042 12.6046 57.9319 11.9939 57.9319 11.2499C57.9319 10.506 57.7042 9.89525 57.2463 9.42019C56.804 8.94513 56.2349 8.70499 55.5442 8.70499C54.8535 8.70499 54.2766 8.94252 53.8187 9.42019C53.3763 9.89525 53.1539 10.506 53.1539 11.2499C53.1539 11.9939 53.3763 12.6046 53.8187 13.0797C54.2766 13.5548 54.8509 13.7949 55.5442 13.7949Z",fill:n}),Ro("path",{d:"M43.9075 0C44.9112 0 45.7649 0.140951 46.4737 0.422854C47.1825 0.704756 47.7801 1.0989 48.2664 1.60528C48.7683 2.12732 49.1589 2.72245 49.4383 3.39066C49.7177 4.06149 49.8574 4.7819 49.8574 5.55714C49.8574 6.33237 49.7177 7.05278 49.4383 7.72361C49.1589 8.39443 48.7683 8.98956 48.2664 9.50899C47.7801 10.0154 47.1825 10.4095 46.4737 10.6914C45.7649 10.9733 44.9112 11.1143 43.9075 11.1143H42.0708V16.828H38.1982V0H43.9049H43.9075ZM43.3539 7.65574C43.8713 7.65574 44.2671 7.60354 44.5491 7.49913C44.844 7.37906 45.0872 7.23028 45.2786 7.05278C45.677 6.67952 45.8762 6.18097 45.8762 5.55714C45.8762 4.9333 45.677 4.43475 45.2786 4.06149C45.0872 3.88399 44.844 3.74043 44.5491 3.63863C44.2697 3.51856 43.8713 3.46114 43.3539 3.46114H42.0708V7.65835H43.3539V7.65574Z",fill:n}),Ro("path",{d:"M23.9352 5.66943H28.1389L30.9923 11.0256H31.0362L33.5792 5.66943H37.4724L29.1323 22.5001H25.2597L29.065 14.7999L23.9326 5.66943H23.9352Z",fill:n}),Ro("path",{d:"M23.1822 5.66932V16.8306H19.7985V15.87C19.3717 16.2876 18.8828 16.6061 18.3395 16.8306C17.7937 17.0681 17.2039 17.1882 16.5701 17.1882C15.7733 17.1882 15.036 17.0394 14.3583 16.7418C13.6805 16.4286 13.0907 16.0057 12.5888 15.4707C12.087 14.9356 11.6886 14.3091 11.3937 13.5965C11.1143 12.8683 10.9746 12.0852 10.9746 11.2526C10.9746 10.4199 11.1143 9.64467 11.3937 8.93208C11.6886 8.20383 12.087 7.56955 12.5888 7.03446C13.0907 6.49937 13.6805 6.08173 14.3583 5.78417C15.036 5.47094 15.7733 5.31433 16.5701 5.31433C17.2039 5.31433 17.7937 5.4344 18.3395 5.67193C18.8853 5.89641 19.3717 6.21485 19.7985 6.63249V5.67193H23.1822V5.66932ZM17.1858 13.7949C17.879 13.7949 18.4456 13.5574 18.8905 13.0797C19.3484 12.6046 19.576 11.9939 19.576 11.2499C19.576 10.506 19.3484 9.89525 18.8905 9.42019C18.4482 8.94513 17.879 8.70499 17.1858 8.70499C16.4925 8.70499 15.9182 8.94252 15.4603 9.42019C15.0179 9.89525 14.7955 10.506 14.7955 11.2499C14.7955 11.9939 15.0179 12.6046 15.4603 13.0797C15.9182 13.5548 16.4925 13.7949 17.1858 13.7949Z",fill:n}),Ro("path",{d:"M5.7067 0C6.71041 0 7.56409 0.140951 8.2729 0.422854C8.98171 0.704756 9.57928 1.0989 10.0656 1.60528C10.5675 2.12732 10.9581 2.72245 11.2375 3.39066C11.5169 4.06149 11.6566 4.7819 11.6566 5.55714C11.6566 6.33237 11.5169 7.05278 11.2375 7.72361C10.9581 8.39443 10.5675 8.98956 10.0656 9.50899C9.57928 10.0154 8.98171 10.4095 8.2729 10.6914C7.56409 10.9733 6.71041 11.1143 5.7067 11.1143H3.87V16.828H0V0H5.7067ZM5.15569 7.65574C5.67307 7.65574 6.06886 7.60354 6.35083 7.49913C6.64574 7.37906 6.88891 7.23028 7.08034 7.05278C7.47872 6.67952 7.67791 6.18097 7.67791 5.55714C7.67791 4.9333 7.47872 4.43475 7.08034 4.06149C6.88891 3.88399 6.64574 3.74043 6.35083 3.63863C6.07145 3.51856 5.67307 3.46114 5.15569 3.46114H3.87259V7.65835H5.15569V7.65574Z",fill:n}))}(function(e,n,t){var r;if(t&&(r=n[t]),r||(r=n.default),!r)throw new Error("No "+(t||"default")+" logo available for paypal-rebrand");return r}(0,wi,t));return Ro(di,y({},r,{name:"paypal-rebrand",alt:"PayPal",role:"presentation",logoColor:t,render:function(){return o}}))};function _i(e){return[].slice.call(e.querySelectorAll('a[href], button, input, select, textarea, iframe:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])')).filter((function(e){return e.getClientRects().length>0})).filter((function(e){return!e.hasAttribute("data-focus-trap-sentinel")}))}function Ni(e){var n,t,r,o=e.context,i=e.close,a=e.focus,u=e.event,p=e.frame,h=e.prerenderFrame,y=e.content,m=void 0===y?{}:y,v=e.autoResize,E=e.hideCloseButton,w=e.nonce,g=e.fullScreen,_=void 0!==g&&g,N=e.isUnbrandedFlow,S=void 0!==N&&N,b="paypal-overlay-"+he(),R="__paypal_checkout_sandbox_"+b+"__";function A(e){if(e.preventDefault(),e.stopPropagation(),function(e){return void 0===e&&(e=c()),!(function(e){return void 0===e&&(e=c()),/(iPhone|iPod|iPad|Macintosh).*AppleWebKit(?!.*Safari)|.*WKWebView/i.test(e)||/\bwv\b/.test(e)||/Android.*Version\/(\d)\.(\d)/i.test(e)}(e)||function(e){return void 0===e&&(e=c()),!!f(e)&&(!!function(e){return void 0===e&&(e=c()),/\bGSA\b/.test(e)}(e)||/.+AppleWebKit(?!.*Safari)|.*WKWebView/.test(e))}(e)||function(e){return void 0===e&&(e=c()),!!l(e)&&/Version\/[\d.]+/.test(e)&&!d(e)}(e)||d(e)||function(e){return void 0===e&&(e=c()),/FxiOS/i.test(e)}(e)||function(e){return void 0===e&&(e=c()),l(e)&&s(e)}(e)||function(e){return void 0===e&&(e=c()),/EdgiOS/i.test(e)}(e)||function(e){return void 0===e&&(e=c()),/FBAN/.test(e)||/FBAV/.test(e)}(e)||function(e){return void 0===e&&(e=c()),/QQBrowser/.test(e)}(e)||"undefined"!=typeof process&&process.versions&&process.versions.electron||(n=c(),/Macintosh.*AppleWebKit(?!.*Safari)/i.test(n))||!0===window.navigator.standalone||window.matchMedia("(display-mode: standalone)").matches);var n}()){var r,o,i,u,p,h,y=n||t;y&&y.focus(),f()||(void 0===h&&(h=c()),!/iPhone|iPod/.test(h)&&(/iPad/.test(h)||function(e){return void 0===e&&(e=c()),/Safari/.test(e)&&!function(e){return void 0===e&&(e=c()),/Chrome|Chromium|CriOS/.test(e)&&!/SamsungBrowser|Silk|EdgA/.test(e)}(e)&&!/Silk|FxiOS|EdgiOS/.test(e)}(h)&&navigator.maxTouchPoints>=1))?window.alert("Please switch tabs to reactivate the PayPal window"):s()&&(p=null==(u=null==(i=null==(r=document.getElementsByName(R))?void 0:r[0])?void 0:i.contentWindow.document)||null==(o=u.getElementsByClassName("paypal-checkout-focus-warning-hidden"))?void 0:o[0])&&(p.innerText='Still can\'t see it? Select "Window" in your toolbar to find "Log in to your PayPal account"',p.classList.remove("paypal-checkout-focus-warning-hidden")),a()}}var T,F=function(e){return function(n){u.on("zoid-display",(function(){return En(n,"show-"+e,Se)})),u.on("zoid-close",(function(){return En(n,"hide-"+e,Se)}))}};return p&&h&&(p.classList.add("component-frame"),h.classList.add("prerender-frame"),h.classList.add("visible"),p.classList.add("invisible"),u.on("zoid-rendered",(function(){h.classList.remove("visible"),h.classList.add("invisible"),p.classList.remove("invisible"),p.classList.add("visible"),setTimeout((function(){_n(h)}),1)})),T=Ro("div",{class:"outlet",onRender:function(e){F("component")(e),v&&function(e){u.on("zoid-resize",(function(n){var t=n.width,r=n.height;"number"==typeof t&&(e.style.width=Mn(t)),"number"==typeof r&&(e.style.height=Mn(r))}))}(e)}},Ro("node",{el:p}),Ro("node",{el:h}))),function(e,n){var t,r,o=[],i=function(e,n){var t=e.createElement("span");return t.setAttribute("tabindex","0"),t.setAttribute("data-focus-trap-sentinel",n),t.style.position="fixed",t.style.width="1px",t.style.height="1px",t.style.opacity="0",t.style.pointerEvents="none",t};n.on("zoid-display",(function(){var n=e();if(r=n&&n.ownerDocument,n&&r){var a=r;a.addEventListener("keydown",t=function(e){if("Tab"===e.key){var t=_i(n);if(t.length){var r=t[0],o=t.indexOf(a.activeElement);e.shiftKey?o<=0&&(e.preventDefault(),t[t.length-1].focus()):-1!==o&&o!==t.length-1||(e.preventDefault(),r.focus())}}},!0);var u=i(a,"start"),c=i(a,"end"),s=function(){var n=e(),t=n?_i(n):[],r=t[t.length-1];r&&r.focus()},d=function(){var n=e(),t=(n?_i(n):[])[0];t&&t.focus()};u.addEventListener("focus",s),c.addEventListener("focus",d),n.insertBefore(u,n.firstChild),n.appendChild(c),o.push((function(){u.removeEventListener("focus",s),c.removeEventListener("focus",d),u.parentNode&&u.parentNode.removeChild(u),c.parentNode&&c.parentNode.removeChild(c)}))}}));var a=function(){r&&t&&r.removeEventListener("keydown",t,!0),o.forEach((function(e){return e()})),o=[]};n.on("zoid-close",a),n.on("zoid-destroy",a)}((function(){return r}),u),Ro("div",{id:b,onRender:function(e){F("container")(e),function(e,r,o){var i=e.ownerDocument&&e.ownerDocument.defaultView;if(i){var a=function(){var e=n||t;if(e)try{e.focus()}catch(e){}};r.on("zoid-display",(function(){a(),i.addEventListener("focus",a)}));var u=function(){i.removeEventListener("focus",a)};r.on("zoid-close",u),r.on("zoid-destroy",u)}}(e,u)},class:"paypal-checkout-sandbox"},Ro("style",{nonce:w},function(e){var n=e.uid;return"\n #"+n+".paypal-checkout-sandbox {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n width: 100vw;\n height: 100vh;\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n min-height: 100%;\n\n z-index: 2147483647;\n\n animation-duration: 0.3s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards !important;\n opacity: 0;\n }\n\n #"+n+".paypal-checkout-sandbox .paypal-checkout-sandbox-iframe {\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n #"+n+".paypal-checkout-sandbox .paypal-checkout-sandbox-iframe-full {\n border: 0;\n height: 100%;\n width: 100vw;\n }\n\n @keyframes show-container {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n @keyframes hide-container {\n from {\n opacity: 1;\n }\n\n 50% {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n }\n "}({uid:b})),Ro("iframe",{title:"PayPal Checkout Overlay",name:R,scrolling:"no",tabindex:"-1",onRender:function(e){t=e},class:"paypal-checkout-sandbox-iframe"+(_?"-full":"")},Ro("html",null,Ro("body",null,Ro("div",{dir:"auto",id:b,onClick:A,onRender:function(e){r=e},class:"paypal-overlay-context-"+o+" paypal-checkout-overlay"},!E&&Ro("a",{href:"#",class:"paypal-checkout-close",onClick:function(e){e.preventDefault(),e.stopPropagation(),i()},onRender:function(e){n=e},"aria-label":"close",role:"button"}),!_&&Ro("div",{class:"paypal-checkout-modal"},S?null:Ro("div",{class:"paypal-checkout-logo",dir:"ltr"},Ro(gi,{logoColor:"white"})),m.windowMessage&&Ro("div",{class:"paypal-checkout-message"},m.windowMessage),Ro("div",{class:"paypal-checkout-focus-warning paypal-checkout-focus-warning-hidden"}),m.continueMessage&&Ro("div",{class:"paypal-checkout-continue"},Ro("a",{onClick:A,href:"#"},m.continueMessage)),Ro("div",{class:"paypal-checkout-loader"},Ro("div",{class:"paypal-spinner"}))),Ro("div",{class:_?"paypal-checkout-iframe-container-full":"paypal-checkout-iframe-container"},T),Ro("style",{nonce:w},function(e){var n=e.uid;return"\n #"+n+" {\n position: absolute;\n z-index: 2147483647;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n transform: translate3d(0, 0, 0);\n\n background-color: black;\n background-color: rgba(0, 0, 0, 0.8);\n background: radial-gradient(84.48% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.75) 100%);\n\n color: #fff;\n }\n\n #"+n+" a {\n color: #fff;\n }\n\n #"+n+" .paypal-checkout-close:before,\n #"+n+" .paypal-checkout-close:after {\n background-color: #fff;\n }\n\n #"+n+".paypal-overlay-context-"+Br.POPUP+" {\n cursor: pointer;\n }\n\n #"+n+" a {\n text-decoration: none;\n }\n\n #"+n+' .paypal-checkout-modal {\n font-family: PayPalOpen-Regular, system-ui, -apple-system, Roboto, "Segoe UI", Helvetica-Neue, Helvetica, Arial, sans-serif;\n font-size: 14px;\n text-align: center;\n\n box-sizing: border-box;\n max-width: 350px;\n width: 100%;\n top: 50%;\n left: 50%;\n position: absolute;\n transform: translateX(-50%) translateY(-50%);\n cursor: pointer;\n padding: 0 48px\n }\n\n #'+n+".paypal-overlay-loading .paypal-checkout-message, #"+n+".paypal-overlay-loading .paypal-checkout-continue {\n display: none;\n }\n\n .paypal-checkout-loader {\n display: none;\n }\n\n #"+n+".paypal-overlay-loading .paypal-checkout-loader {\n display: block;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-logo {\n cursor: pointer;\n margin-bottom: 8px;\n padding: 4px;\n display: inline-block;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-logo img {\n height: 38px;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-logo img.paypal-checkout-logo-pp {\n margin-right: 10px;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-message {\n font-size: 14px;\n line-height: 18px;\n padding: 8px 0;\n font-weight: 400;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-message, #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-continue {\n display: none;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-continue {\n font-size: 14px;\n line-height: 18px;\n padding: 8px 0;\n font-weight: 500;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-continue a {\n border-bottom: 1px solid white;\n }\n\n #"+n+" .paypal-checkout-close {\n cursor: pointer;\n position: absolute;\n right: 16px;\n top: 16px;\n width: 24px;\n height: 24px;\n }\n\n #"+n+".paypal-overlay-loading .paypal-checkout-close {\n display: none;\n }\n\n #"+n+" .paypal-checkout-close:hover {\n opacity: 1;\n }\n\n #"+n+" .paypal-checkout-close:before, .paypal-checkout-close:after {\n position: absolute;\n left: 11px;\n top: 2px;\n content: ' ';\n height: 20px;\n width: 2px;\n }\n\n #"+n+" .paypal-checkout-close:before {\n transform: rotate(45deg);\n }\n\n #"+n+" .paypal-checkout-close:after {\n transform: rotate(-45deg);\n }\n\n #"+n+' .paypal-checkout-focus-warning {\n font-family: PayPalOpen-Regular, system-ui, -apple-system, Roboto, "Segoe UI", Helvetica-Neue, Helvetica, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n line-height: 18px;\n padding: 8px 0;\n display: block;\n }\n \n #'+n+" .paypal-checkout-focus-warning-hidden {\n display: none;\n }\n\n #"+n+" .paypal-checkout-iframe-container {\n display: none;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container > .outlet,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container > .outlet > iframe {\n max-height: 95vh;\n max-width: 95vw;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container-full,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container-full > .outlet,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container-full > .outlet > iframe {\n height: 100vh;\n max-width: 100vw;\n width: 100vw;\n }\n\n @media screen and (max-width: 470px) {\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container > .outlet,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container > .outlet > iframe {\n max-height: 85vh;\n }\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container-full,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container-full > .outlet,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container-full > .outlet > iframe {\n height: 100vh;\n }\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container {\n\n display: block;\n\n position: absolute;\n\n top: 50%;\n left: 50%;\n\n min-width: 450px;\n\n transform: translate(-50%, -50%);\n transform: translate3d(-50%, -50%, 0);\n\n border-radius: 10px;\n overflow: hidden;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .outlet {\n\n position: relative;\n\n transition: all 0.3s ease;\n animation-duration: 0.3s;\n animation-fill-mode: forwards !important;\n\n min-width: 450px;\n max-width: 450px;\n width: 450px;\n height: 535px;\n\n background-color: white;\n\n overflow: auto;\n\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n\n -webkit-overflow-scrolling: touch;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .outlet > iframe {\n position: absolute;\n top: 0;\n left: 0;\n transition: opacity .4s ease-in-out;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .outlet > iframe.component-frame {\n z-index: 100;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .outlet > iframe.prerender-frame {\n z-index: 200;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .outlet > iframe.visible {\n opacity: 1;\n z-index: 200;\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .outlet > iframe.invisible {\n opacity: 0;\n z-index: 100;\n }\n\n @media screen and (max-width: 470px) {\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .paypal-checkout-iframe-container,\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .outlet {\n min-width: 100%;\n min-width: calc(100% - 20px);\n\n max-width: 100%;\n max-width: calc(100% - 20px);\n }\n }\n\n #"+n+".paypal-overlay-context-"+Br.IFRAME+" .outlet iframe {\n width: 1px;\n min-width: 100%;\n height: 100%;\n }\n\n @keyframes show-component {\n from {\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n }\n\n to {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n }\n\n @keyframes hide-component {\n from {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n\n to {\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n }\n }\n\n .paypal-spinner {\n height: 30px;\n width: 30px;\n display: inline-block;\n box-sizing: content-box;\n opacity: 1;\n filter: alpha(opacity=100);\n animation: rotation .7s infinite linear;\n border-left: 8px solid rgba(0, 0, 0, .2);\n border-right: 8px solid rgba(0, 0, 0, .2);\n border-bottom: 8px solid rgba(0, 0, 0, .2);\n border-top: 8px solid #fff;\n border-radius: 100%\n }\n\n @keyframes rotation {\n from {\n transform: rotate(0deg)\n }\n to {\n transform: rotate(359deg)\n }\n }\n "}({uid:b})))))))}(fi={}).default={primary:"#002991",secondary:"#60CDFF",tertiary:"#008CFF"},fi.blue={primary:"#002991",secondary:"#60CDFF",tertiary:"#008CFF"},fi.white={primary:"#F3F3F3",secondary:"#898989",tertiary:"#B8B8B8"},fi.black={primary:"#0D0D0D",secondary:"#808080",tertiary:"#4D4D4D"},(pi={}).default={background:"#60CDFF",foreground:"#000000"},pi.black={background:"#000000",foreground:"#FFFFFF"},pi.blue={background:"#60CDFF",foreground:"#000000"},pi.white={background:"#FFFFFF",foreground:"#000000"},(hi={}).default={primary:"#008CFF"},hi.blue={primary:"#008CFF"},hi.white={primary:"#ffffff"},(yi={}).default={primary:"#000000"},yi.black={primary:"#000000"},yi.white={primary:"#FFFFFF"},yi.blue={primary:"#60CDFF"},(mi={}).default={background:"#60CDFF",foreground:"#000000"},mi.black={background:"#000000",foreground:"#FFFFFF"},mi.blue={background:"#60CDFF",foreground:"#000000"},mi.white={background:"#FFFFFF",foreground:"#000000"},(vi={}).default={background:"#60CDFF",foreground:"#000000",primary:"#050A0E",secondary:"#31677F",tertiary:"#1E3E4C"},vi.black={background:"#000000",foreground:"#FFFFFF",primary:"#F3F3F3",secondary:"#898989",tertiary:"#B8B8B8"},vi.blue={background:"#60CDFF",foreground:"#000000",primary:"#050A0E",secondary:"#31677F",tertiary:"#1E3E4C"},vi.white={background:"#FFFFFF",foreground:"#000000",primary:"#002991",secondary:"#60CDFF",tertiary:"#008CFF"};function Si(){return"https://www.paypal.com/webapps/helios"}function bi(){return"https://www.paypal.com/heliosnext"}function Ri(){return Ne(Ri,(function(){var e=ho({tag:"three-domain-secure",url:Si,attributes:{iframe:{scrolling:"no"}},containerTemplate:function(e){var n=e.doc,t=e.props;return Ro(Ni,{context:e.context,close:e.close,focus:e.focus,event:e.event,frame:e.frame,prerenderFrame:e.prerenderFrame,content:t.content,nonce:t.nonce,isUnbrandedFlow:!0}).render(Oo({doc:n}))},props:{action:{type:"string",queryParam:!0,value:function(e){return e.props.action?e.props.action:"verify"}},xcomponent:{type:"string",queryParam:!0,value:function(){return"1"}},flow:{type:"string",queryParam:!0,value:function(){return"3ds"}},createOrder:{type:"function",queryParam:"cart_id",queryValue:function(e){return b.try(e.value)},required:!1},vaultToken:{type:"string",queryParam:"token",queryValue:function(e){return e.value},required:!1},clientID:{type:"string",value:Xn,queryParam:!0},onSuccess:{type:"function",alias:"onContingencyResult",decorate:function(e){var n=e.props,t=e.value,r=e.onError;return function(e,o){return("UNBRANDED_GUEST"===(null==n?void 0:n.userType)?Boolean(e):Boolean(e)||!1===(null==o?void 0:o.success))?r(e):t(o)}}},locale:{type:"object",queryParam:"locale.x",allowDelegate:!0,queryValue:function(e){var n=e.value;return n.lang+"_"+n.country},value:tt},onCancel:{type:"function",required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,value:mt},content:{type:"object",required:!1},userType:{type:"string",required:!1},nonce:{type:"string",default:rt},integrationType:{type:"string",required:!1,queryParam:!0},go_to:{type:"string",required:!1,queryParam:!0}}});return e.isChild()&&(window.xchild={props:e.xprops,close:Se}),e}))}function Ai(){return Ne(Ai,(function(){var e=ho({tag:"captcha",url:bi,attributes:{iframe:{scrolling:"no"}},containerTemplate:function(e){var n=e.doc,t=e.props;return Ro(Ni,{context:e.context,close:e.close,focus:e.focus,event:e.event,frame:e.frame,prerenderFrame:e.prerenderFrame,content:t.content,nonce:t.nonce,isUnbrandedFlow:!0}).render(Oo({doc:n}))},props:{action:{type:"string",queryParam:!0,value:function(e){return e.props.action?e.props.action:"verify"}},xcomponent:{type:"string",queryParam:!0,value:function(){return"1"}},flow:{type:"string",queryParam:!0,value:function(){return"rca"}},createOrder:{type:"function",queryParam:"token",queryValue:function(e){return b.try(e.value)},required:!1},token:{type:"string",queryParam:"token",queryValue:function(e){return e.value},required:!1},clientID:{type:"string",value:Xn,queryParam:!0},onError:{type:"function",required:!1},onSuccess:{type:"function",alias:"onContingencyResult",decorate:function(e){var n=e.props,t=e.value,r=e.onError;return function(e,o){return("UNBRANDED_GUEST"===(null==n?void 0:n.userType)?Boolean(e):Boolean(e)||!1===(null==o?void 0:o.success))?r?r(e||new Error("CAPTCHA verification failed")):void 0:t(o)}}},onCancel:{type:"function",required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,value:mt},content:{type:"object",required:!1},userType:{type:"string",required:!1},nonce:{type:"string",default:rt},integrationType:{type:"string",required:!1,queryParam:!0}}});return e.isChild()&&(window.xchild={props:e.xprops,close:Se}),e}))}function Ti(e){if(ct())return e}var Fi={__get__:function(){return Ti(Ri())}},Pi={__get__:function(){return Ti(Ai())}},Ci={__get__:function(){return Ti(o)}};function Ii(e){yo(e)}var Oi={PAY_LATER_LONG_TERM:"PAY_LATER_LONG_TERM",PAY_LATER_SHORT_TERM:"PAY_LATER_SHORT_TERM",PAY_LATER_PAY_IN_1:"PAY_LATER_PAY_IN_1",PAYPAL_CREDIT_NO_INTEREST:"PAYPAL_CREDIT_NO_INTEREST",PAY_LATER:"PAY_LATER",REWARDS:"REWARDS"},xi={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments",BUTTONS:"paypal-buttons"};function Di(){return!0}function Mi(){return"production"}function Li(){try{var e,n;return(null==(e=__MESSAGING_GLOBALS__)||null==(n=e.merchantProfile)?void 0:n.hash)||void 0}catch(e){var t,r;return(null==(t=__FUNDING_ELIGIBILITY__)||null==(r=t.paylater)?void 0:r.merchantConfigHash)||void 0}}function Hi(){return $n().join(",")||"client-id:"+Xn()}function ki(){return Xn()}function Zi(){return rt()}function Bi(){return Vn()}function Ui(){return mt()}function Gi(){return zn()}function qi(){return"paypal"}function Wi(){return et()}function ji(){return"1.101.0"}function Ki(){return Object.values(xi).some((function(e){return window.name.startsWith("__zoid__"+e.replace(/-/g,"_"))}))}function Yi(){return Pn({name:Wi()})}function Vi(){return Et()}function zi(){return vt().getID()}function Ji(e){return n=function(n){return Object.assign(n,e)},vt().getState(n);var n}"undefined"!=typeof document&&document;var Qi=function(){var e=Bi(),n=document.createElement("a");return n.href=e.src,Array.from(document.querySelectorAll('script[src*="'+n.host+'/sdk/js"]')).some((function(n){return n!==e&&n.getAttribute(Un.NAMESPACE)===e.getAttribute(Un.NAMESPACE)}))};function Xi(){return Object({__VERSION__:"1.101.0",__FEATURES__:"no-common",__DEMO__:!1,__NATIVE_MODAL__:!0,__TARGET__:"SDK",__DOMAIN__:Object({__LOCAL__:"https://localhost.paypal.com:8000",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"}),__URI__:Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"}),__FAQ__:Object({__BASE_URL__:"https://developer.paypal.com/docs/checkout/pay-later/us"})}).__STAGE_TAG__?"local"===Object({__VERSION__:"1.101.0",__FEATURES__:"no-common",__DEMO__:!1,__NATIVE_MODAL__:!0,__TARGET__:"SDK",__DOMAIN__:Object({__LOCAL__:"https://localhost.paypal.com:8000",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"}),__URI__:Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"}),__FAQ__:Object({__BASE_URL__:"https://developer.paypal.com/docs/checkout/pay-later/us"})}).__STAGE_TAG__?window.location.origin:Object({__VERSION__:"1.101.0",__FEATURES__:"no-common",__DEMO__:!1,__NATIVE_MODAL__:!0,__TARGET__:"SDK",__DOMAIN__:Object({__LOCAL__:"https://localhost.paypal.com:8000",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"}),__URI__:Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"}),__FAQ__:Object({__BASE_URL__:"https://developer.paypal.com/docs/checkout/pay-later/us"})}).__STAGE_TAG__:void 0}function $i(){null!=window.__DEV_TOUCHPOINT__||Object({__VERSION__:"1.101.0",__FEATURES__:"no-common",__DEMO__:!1,__NATIVE_MODAL__:!0,__TARGET__:"SDK",__DOMAIN__:Object({__LOCAL__:"https://localhost.paypal.com:8000",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"}),__URI__:Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"}),__FAQ__:Object({__BASE_URL__:"https://developer.paypal.com/docs/checkout/pay-later/us"})})}function ea(e){var n=[];n.push("native-modal");var t=e||"";return n.length>0&&(t+=t?","+n.join(","):n.join(",")),void 0===e&&""===t?void 0:t}function na(e){var n=new Map;return function(){for(var t=arguments.length,r=new Array(t),o=0;o1?n-1:0),r=1;rt.innerHeight||r<0||o>t.innerWidth||o<0)}function wa(e){var n=pa(e);if("function"==typeof n.getComputedStyle){var t=n.getComputedStyle(e);if("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")||"auto"!==t.getPropertyValue("clip"))return!0}var r=e.getBoundingClientRect();return r.left>n.document.body.scrollWidth||r.right<0||r.top>n.document.body.scrollHeight||r.bottom<0||0===e.offsetWidth||0===e.offsetHeight}function ga(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):ya(e)?[e]:Array.isArray(e)&&e.every(ya)?e.flatMap(ga):[]}var _a=function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return t.top<=r.top&&t.bottom>=r.bottom&&t.left<=r.left&&t.right>=r.right},Na="__paypal_messages_"+"1.101.0".replace(/[.-]/g,"_")+"__",Sa=function(){return{index:1,config:{},messagesMap:new Map}},ba=function(){var e,n,t;return null!=(e=window[Na])?e:((t=(n=function(e){void 0===e&&(e={});var n=y({},e);return[n,ta(Object.assign,n)]}(window[Na]||Sa()))[0]).setGlobalState=n[1],Object.defineProperty(window,Na,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[Na])},Ra=function(e){return ba().setGlobalState(e)},Aa=function(){var e=ba().index;return Ra({index:e+1}),e},Ta=function(){var e=0;return function(n){return n+" "+(e+=1)}};function Fa(e){return"https://www.paypal.com"+Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"})["__"+e.toUpperCase()+"__"]}var Pa=function(e,n){return function(){var t;return ba()[e]||Ra(((t={})[e]=n(),t)),ba()[e]}},Ca=xe(),Ia=function(){var e=Bi();if(e&&!e[Na]){sa("Script:",{debugObj:e});var n=ma(e),t=$n()[0]&&"client-id:"+Xn();Ra({config:y({},ba().config,{account:t||Hi(),merchantId:t&&Hi(),currency:Qn("currency"),pageType:nt()},n)}),e[Na]=!0}},Oa=new b((function(e){return Ca.once("treatments",e)})),xa=new b((function(e){return Ca.once("render",e)})),Da=(new b((function(e){return Ca.once("modal-render",e)})),new b((function(e){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",e):e()}))),Ma=new b((function(e){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()}));function La(e,n){var t,r,o,i,a,u,c,s,d=n.meta,l=n.events,f=n.tracking,p=null!=(t=d.global)?t:{},h=p.deviceID,m=p.sessionID,v=p.integration_type,E=p.integration_version,w=p.globalSessionID;e.startsWith("client-id:")&&(r=e.slice(10));var g=Object.entries(d).filter((function(n){return n[1].account===e})).map((function(e){var n,t,r,d,p,h,m,v,E=e[0],w=e[1],g=w.type,_=w.partnerClientId,N=w.buttonSessionId,S=w.messageRequestId,b=w.stats,R=void 0===b?{}:b,A=w.trackingDetails,T=w.language_requested,F=w.language_rendered,P=A.clickUrl;delete A.clickUrl,s=null!=(n=s)?n:_,o=null!=(t=o)?t:A.MERCHANT_PROFILE_HASH,i=null!=(r=i)?r:A.MERCHANT_PROFILE_VALID,a=null!=(d=a)?d:A.BUYER_PROFILE_HASH,u=null!=(p=u)?p:A.BUYER_PROFILE_VALID,c=null!=(h=c)?h:R.partner_attribution_id;var C=f.filter((function(e){return e.index===E}));c=null!=(m=c)?m:null==(v=C.find((function(e){return void 0!==e.partner_attribution_id})))?void 0:v.partner_attribution_id;var I=R.render_duration,O=R.request_duration;return delete R.render_duration,delete R.request_duration,y({component_type:g,instance_id:S,button_session_id:N,fdata:new URLSearchParams(P).get("fdata"),language_requested:null!=T?T:"undefined",language_rendered:null!=F?F:"undefined",merchant_events:l.filter((function(e){var n;return(null==(n=e.payload)?void 0:n.index)===E}))},A,R,{component_events:C.filter((function(e){return"MORS"!==e.event_type})).map((function(e){return y({render_duration:I,request_duration:O},e)}))})}));return{specversion:"1.0",type:"com.paypal.credit.upstream-presentment.v1",source:"urn:paypal:event-src:js-sdk:messages",datacontenttype:"application/json",dataschema:"ppaas:events.credit.FinancingPresentmentAsyncAPISpecification/v1/schema/json/credit_upstream_presentment_event.json",data:{client_id:r,merchant_id:e,partner_client_id:s,partner_attribution_id:c,merchant_profile_hash:o,merchant_profile_valid:i,buyer_profile_hash:a,buyer_profile_valid:u,device_id:h,global_session_id:w,session_id:m,integration_type:v,integration_version:E,components:g}}}var Ha=ut({url:Fa("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(e){var n=e.url,t=e.method,r=e.json,o=e.headers,i=r.events.reduce((function(e,n){var t=n.payload;return[].concat(e,[t.index,t.refIndex])}),[]),a=r.tracking.reduce((function(e,n){return[].concat(e,[n.index,n.refIndex])}),[]),u=i.concat(a),c=Object.keys(r.meta).filter((function(e){return u.includes(e)||"global"===e})).reduce((function(e,n){var t;return y({},e,((t={})[n]=r.meta[n],t))}),{}),s=r;s.meta=c;var d,l,f,p,h=n+"?disableSetCookie=true&features=disable-set-cookie",m=btoa(ki());return o.Authorization="Basic "+m,b.all((d=s,l=d.meta,f=d.events,p=d.tracking,Array.from(new Set(Object.values(l).map((function(e){return e.account})).filter(Boolean))).reduce((function(e,n){return[].concat(e,[La(n,{meta:l,events:f,tracking:p})])}),[])).map((function(e){return function(e,n,t){var r=void 0===t?{}:t,o=r.data,i=r.headers,a=r.withCredentials;return new b((function(t,r){var u=new XMLHttpRequest;a&&(u.withCredentials=!0),u.onreadystatechange=function(){if(4===u.readyState){var e=u.getAllResponseHeaders().trim().split("\n").reduce((function(e,n){var t,r=n.trim().split(": "),o=r[1];return y({},e,((t={})[r[0].toLowerCase()]=o,t))}),{});switch(u.status){case 200:t({headers:e,data:"string"==typeof e["content-type"]&&e["content-type"].includes("application/json")?JSON.parse(u.responseText):u.responseText});break;case 204:t({headers:e});break;default:r(new Error("Request failed"))}}},u.open(e,n,!0),i&&Object.entries(i).forEach((function(e){u.setRequestHeader(e[0],e[1])})),u.send("object"==typeof o?JSON.stringify(o):o)}))}(t,h,{headers:y({"content-type":"application/json"},o),data:e,withCredentials:!0})})))}});Ha.addMetaBuilder((function(){return{global:{integration_type:"SDK",integration_version:"1.101.0"}}})),Ha.addPayloadBuilder((function(e){return delete e.container,delete e.selector,{}})),Ha.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var ka={RENDERING:"/integrate/#enable-pay-later-messaging-on-your-website",GENERAL:"/integrate/reference/"};function Za(e){var n,t,r,o;return""+(null!=(n=null==(t=Object({__VERSION__:"1.101.0",__FEATURES__:"no-common",__DEMO__:!1,__NATIVE_MODAL__:!0,__TARGET__:"SDK",__DOMAIN__:Object({__LOCAL__:"https://localhost.paypal.com:8000",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"}),__URI__:Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/credit-application/paypal-credit-card/da/us/billing",__PREQUALIFICATION__:"/paylateracq/prequalify"}),__FAQ__:Object({__BASE_URL__:"https://developer.paypal.com/docs/checkout/pay-later/us"})}))||null==(r=t.__FAQ__)?void 0:r.__BASE_URL__)?n:"https://developer.paypal.com/docs/checkout/pay-later/us").replace(/\/$/,"")+(null!=(o=ka[e])?o:ka.GENERAL)}var Ba=Pa("__insertion_observer__",(function(){return new MutationObserver((function(e){var n=[];e.forEach((function(e){"attributes"===e.type&&"data-pp-message"===e.attributeName?n.push(e.target):Array.from(e.addedNodes).forEach((function(e){ya(e)&&(e.hasAttribute("data-pp-message")?n.push(e):Array.from(e.querySelectorAll("[data-pp-message]")).forEach((function(e){return n.push(e)})))}))})),n.length>0&&!Qi()&&n.forEach((function(e){var n;return null==(n=window[Wi()])?void 0:n.Messages({_auto:!0}).render(e)}))}))})),Ua=function(e){var n=function(e,n){return n.reduce((function(n,t){var r;return e.has(t.target)&&null!=(r=t.attributeName)&&r.startsWith("data-pp-")?(n.push(t.target),n):n}),[])}(ba().messagesMap,e);n.length>0&&!Qi()&&n.forEach((function(e){var n;return null==(n=window[Wi()])?void 0:n.Messages().render(e)}))},Ga=Pa("__attribute_observer__",(function(){return new MutationObserver(Ua)})),qa=function(){return b.resolve(void 0===window.IntersectionObserver?oa("https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=IntersectionObserver"):void 0)},Wa=Pa("__viewport_intersection_observer__",(function(){return qa().then((function(){return new IntersectionObserver((function(e,n){e.forEach((function(e){var t=e.target.getAttribute("data-pp-id");e.isIntersecting&&(Ha.track({index:t,et:"CLIENT_IMPRESSION",event_type:"scroll",visible:"true"}),n.unobserve(e.target))}))}),{threshold:.5})}))})),ja=Pa("__intersection_observer__",(function(){return qa().then((function(){return b.all([Da,xa])})).then((function(){var e=function(e){for(var n=pa(e),t=[],r=e;(null==(o=r)?void 0:o.parentNode.nodeType)===Node.ELEMENT_NODE;){var o;0!==r.parentNode.offsetHeight&&t.push(r.parentNode),r=r.parentNode}t.reverse();var i=t[0],a=t.find((function(e,t,r){var o,a=e.offsetHeight,u=r[t+1];if(u&&a<=u.offsetHeight)return i=u,!1;if(a>n.innerHeight&&a>=i.offsetHeight)return!0;var c=null!=(o=r[t-1])?o:e.parentNode;return!!(u&&u.offsetHeight0&&!function(e,n){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE&&!(e instanceof Window)||(null==n?void 0:n.nodeType)!==Node.ELEMENT_NODE)return!1;var t=e instanceof Window?{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}:e.getBoundingClientRect(),r=n.getBoundingClientRect();return r.left>=t.right||r.right<=t.left||r.bottom<=t.top||r.top>=t.bottom}(null!=e?e:window,i)||Math.ceil(i.getBoundingClientRect().width+1)2)throw iu("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(e){return uu(e,t),e}));return o[0]===o[1]?o[0]:o.sort().join()}return uu(n,t),n}return n},style:function(e){var n=e.props.style;if(ou("OBJECT",n)){var t=null!=n&&n.layout?n:y({},n,{layout:"text"});if(ou("STRING",t.layout))return t;if(au("style.layout","STRING",t.layout),ou("STRING",t.preset))return y({layout:"text"},t)}else void 0!==n&&au("style","OBJECT",n);return{layout:"text"}},currency:function(e){var n=e.props.currency;if(void 0!==n){if(ou("STRING",n))return n;au("currency","STRING",n)}},pageType:function(e){var n=e.props.pageType;if(void 0!==n){var t=["home","category","product","payment","product-list","product-listing","search-results","product-details","mini-cart","cart","checkout","view-edit-funding-instrument"];if(ou("STRING",n)){if(t.includes(n))return n;!function(e,n,t){iu("pageType",'Expected one of ["'+n.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,n)}else au("pageType","STRING",n)}},buyerCountry:function(e){var n=e.props.buyerCountry;if(void 0!==n){if(ou("STRING",n))return n;au("buyerCountry","STRING",n)}},language:function(e){var n=e.props.language;if(void 0!==n){if(ou("STRING",n))return n;au("language","STRING",n)}},locale:function(e){var n=e.props.locale;if(void 0!==n){if(ou("STRING",n))return n;au("locale","STRING",n)}},ignoreCache:function(e){var n=e.props.ignoreCache;if(void 0!==n){if(ou("BOOLEAN",n))return n;au("ignoreCache","BOOLEAN",n)}},channel:function(e){var n=e.props.channel;if(void 0!==n){if(ou("STRING",n))return/^[A-Z0-9_]+$/.test(n)?n:void 0;au("channel","STRING",n)}},ecToken:function(e){var n=e.props.ecToken;if(void 0!==n){if(ou("STRING",n))return n;au("ecToken","STRING",n)}},buttonSessionId:function(e){var n=e.props.buttonSessionId;if(void 0!==n){if(ou("STRING",n))return n;au("buttonSessionId","STRING",n)}},contextualComponents:function(e){var n=e.props.contextualComponents;if(void 0!==n){var t;if(Array.isArray(n))t=n.map((function(e){return e.toUpperCase()}));else{if("string"!=typeof n)return void au("contextualComponents","STRING or ARRAY",n);t=n.toUpperCase().split(",")}var r=t.every((function(e){return e.endsWith("_BUTTON")})),o=t.every((function(e){return e.endsWith("_MARK")}));if(r||o){if(!(t.filter((function(e){return e.endsWith("_MARK")})).length>1))return t.sort().join(",");iu("contextualComponents","Ensure only one type of mark value is provided.")}else iu("contextualComponents","Invalid contextualComponents combination. Expected all contextualComponents values to be either of type 'button' or 'mark' but received \""+n+'"')}},cspNonce:function(e){var n=e.props.cspNonce;if(void 0!==n){if(ou("STRING",n))return n;au("cspNonce","STRING",n)}},merchantConfig:function(e){var n=e.props.merchantConfig;if(void 0!==n){if(!ou("STRING",n))return;return n}},features:function(e){var n=e.props.features;if(void 0!==n){if(ou("STRING",n))return n;au("features","STRING",n)}}},fu=Ta(),pu=function(e){var n,t=e.uid,r=e.frame,o=e.prerenderFrame,i=e.doc,a=e.event,u=e.props,c=e.container,s=c,d=function(e){var n;if("text"!==(null==e?void 0:e.layout))return null;var t=null==e||null==(n=e.text)?void 0:n.size,r="number"==typeof t?t:Number(t),o=Number.isFinite(r)&&r>=10&&r<=16?r:14;return Math.round(1.3*o*1*10)/10}(u.style);!d||null==s||!s.style||null!=(n=s.dataset)&&n.ppPlaceholderApplied||(s.dataset.ppPlaceholderMinHeight=s.style.minHeight||"",s.dataset.ppPlaceholderApplied="true",s.style.minHeight=d+"px"),a.on("zoid-rendered",(function(){o.parentNode.removeChild(o)}));var l="\n #"+t+" > iframe {\n width: 100%;\n height: 0;\n }\n\n #"+t+" > iframe:nth-of-type(2) {\n display: none;\n }\n ";a.on("styles",(function(e){var n=e.styles;"string"==typeof n&&(c.querySelector("#"+t+" style").textContent="\n "+l+"\n "+n.replace(/\.pp-flex[^\s:,.#]*/g,"#"+t)+"\n ")}));var f=fu(r.title);return Ro("span",{id:t},Ro("style",{nonce:u.cspNonce},l),Ro("node",{el:r,title:f,onRender:function(e){a.on("zoid-resize",(function(n){var t,r=n.width,o=n.height;null!=s&&null!=(t=s.dataset)&&t.ppPlaceholderApplied&&(s.style.minHeight=s.dataset.ppPlaceholderMinHeight||"",delete s.dataset.ppPlaceholderMinHeight,delete s.dataset.ppPlaceholderApplied),0===r&&0===o||("flex"===u.style.layout?(e.style.setProperty("height",null),e.setAttribute("data-width",0),e.setAttribute("data-height",0)):(e.setAttribute("data-width",r),e.setAttribute("data-height",o),"number"==typeof o&&e.style.setProperty("height",o+"px")),e.__hasResizedBefore__?a.once("styles",(function(){ja().then((function(n){n.observe(e)}))})):(e.__hasResizedBefore__=!0,ja().then((function(n){n.observe(e)}))))}))}}),Ro("node",{el:o,title:"Prerender "+f})).render(Oo({doc:i}))},hu=["styles","warnings"],yu=Pa("__paypal_credit_message__",(function(){var e;return ho({tag:xi.MESSAGE,url:Fa("MESSAGE"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:pu,autoResize:{width:!0,height:!0,element:"button"},attributes:{iframe:{title:"PayPal Message",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:lu.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:lu.merchantId},customerId:{type:"string",queryParam:"customer_id",required:!1,value:lu.customerId},amount:{type:"number",queryParam:!0,required:!1,value:lu.amount},currency:{type:"string",queryParam:!0,required:!1,value:lu.currency},pageType:{type:"string",queryParam:"page_type",required:!1,value:lu.pageType},inlineExpression:{type:"boolean",queryParam:!1,required:!1,value:function(e){return e.props.inlineExpression}},inlineExpressionOnclickValue:{type:"string",queryParam:!1,required:!1,value:function(e){return e.props.inlineExpressionOnclickValue}},inlineExpressionOnapplyValue:{type:"string",queryParam:!1,required:!1,value:function(e){return e.props.inlineExpressionOnapplyValue}},inlineExpressionOnrenderValue:{type:"string",queryParam:!1,required:!1,value:function(e){return e.props.inlineExpressionOnrenderValue}},style:{type:"object",serialization:"json",queryParam:!0,required:!1,value:lu.style},offer:{type:"string",queryParam:"credit_type",required:!1,value:lu.offer},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:lu.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:lu.language},locale:{type:"string",queryParam:!0,required:!1,value:lu.locale},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:lu.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:lu.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:lu.ecToken},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:lu.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onClick;return function(e){var r=e.meta,o=n.modal,i=n.index,a=n.account,u=n.merchantId,c=n.currency,s=n.amount,d=n.buyerCountry,l=n.language,f=n.locale,p=n.onApply,h=r.offerType,y=r.offerCountry,m=r.messageRequestId,v=r.lander,E=r.prequalExperience;"PURCHASE_PROTECTION"===h?null==function(e,n){try{var t=new URL(e),r="https:"===t.protocol,o=/\.paypal\.com$/i.test(t.hostname);return r&&o?window.open(e,n,"width=460,height=900"):null}catch(e){return null}}(v,h)&&Ha.warn("Blocked unsafe lander URL",{lander:v,help_url:Za("GENERAL")}):o.show({account:a,merchantId:u,currency:c,amount:s,buyerCountry:d,language:l,locale:f,onApply:p,offer:h,offerCountry:y,prequalExperience:E,refId:m,refIndex:i,page_view_link_source:"message_click"}),Ha.track({index:i,et:"CLICK",event_type:"MORS"}),Ha.track({index:i,et:"CLICK",event_type:"message_clicked",page_view_link_name:"Banner Wrapper"}),"function"==typeof t&&t({meta:r})}}},onHover:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.index,r=n.onHover,o=!1;return function(e){var n=e.meta;o||(o=!0,Ha.track({index:t,et:"CLIENT_IMPRESSION",event_type:"message_hovered"})),"function"==typeof r&&r({meta:n})}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onReady;return function(e){var r=e.meta,o=e.activeTags,i=e.ts,a=e.requestDuration,u=e.messageRequestId,c=e.globalSessionID,s=n.account,d=n.merchantId,l=n.index,f=n.modal,p=n.getContainer,h=n.pageType,m=n.language,v=n.locale,E=n.inlineExpression,w=n.inlineExpressionOnclickValue,g=n.inlineExpressionOnapplyValue,_=n.inlineExpressionOnrenderValue,N=r.trackingDetails,S=r.offerType,b=r.ppDebugId,R=r.language,A=d&&s.slice(10);N.PAGE_TYPE=h,N.INLINE_EXPRESSION=Boolean(E),N.INLINE_EXPRESSION_ONCLICK_VALUE=w||"",N.INLINE_EXPRESSION_ONAPPLY_VALUE=g||"",N.INLINE_EXPRESSION_ONRENDER_VALUE=_||"",sa("Message Correlation ID: "+b);var T=void 0!==i?i:ca();Ji({ts:T}),Ha.addMetaBuilder((function(e){var n;delete e[l];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:y({},r,{ts:T,deviceID:zi(),sessionID:Vi(),globalSessionID:c})})[l]={type:"message",messageRequestId:u,account:d||s,partnerClientId:A,trackingDetails:N,language_requested:(null==v?void 0:v.replace("_","-"))||m,language_rendered:null!=R?R:"undefined"},n})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,i=ba().messagesMap.get(n).state,a=Math.round(ia()-i.renderStart).toString(),u=$a("firstRenderDelay");Ea(n)||Wa().then((function(e){return e.observe(n)})),function(e){var n=e.container,t=e.activeTags,r=e.index,o=e.requestDuration,i=e.renderDuration,a=n.getBoundingClientRect(),u=ha(),c=Gi(),s=function(e){return e.split("::").map((function(e){return e.split(":")[1]}))}(t),d=s[0],l=s[1],f=s[2];return tu().then((function(e){return{index:r,ad_blocker:e.toString(),blocked:wa(n).toString(),partner_attribution_id:c[Un.PARTNER_ATTRIBUTION_ID],position_in_page_x:Math.round(a.left).toString(),position_in_page_y:Math.round(a.top).toString(),browser_width:String(null==u?void 0:u.innerWidth),browser_height:String(null==u?void 0:u.innerHeight),in_viewport:Ea(n).toString(),headline:d,sub_headline:l,disclaimer:f,request_duration:ru(o),render_duration:i}}))}({container:n,activeTags:t,index:r,requestDuration:o,renderDuration:a}).then((function(e){!function(e,n){Ha.addMetaBuilder((function(t){var r,o=y({},t[e],n);return delete t[e],(r={})[e]=o,r}))}(r,{type:"message",stats:e}),Ha.track({index:r,et:"CLIENT_IMPRESSION",event_type:"message_rendered",first_render_delay:Math.round(u).toString()})}))}({container:p(),activeTags:o,index:l,requestDuration:a}),f.updateProps({refIndex:l,offer:S}),Ha.track({index:l,et:"CLIENT_IMPRESSION",event_type:"MORS"}),"function"==typeof t&&t({meta:r})}}},onMarkup:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.event,r=n.onMarkup;return function(e){var o=e.styles,i=e.warnings,a=u(e,hu),c=n.getContainer;return void 0!==o&&t.trigger("styles",{styles:o}),i&&i.forEach((function(e){Ha.warn("render_warning",{description:e,container:c(),help_url:Za("RENDERING")})})),r&&r(y({styles:o,warnings:i},a))}}},onDestroy:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onDestroy;return function(){var e=n.getContainer,r=ba().messagesMap,o=e();b.delay(0).then((function(){if(o&&o.ownerDocument.body.contains(o)&&!Qi()){var e=r.get(o).clone(),n=e.render,t=e.state,i=e.updateProps,a=e.clone;t.renderStart=ia(),r.set(o,{render:n,updateProps:i,state:t,clone:a}),n(o)}})),"function"==typeof t&&t()}}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return n.account.startsWith("client-id:")?null:n.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(e){var n=e.props;return n.account.startsWith("client-id:")?n.account.slice(10):null},default:function(){return""},required:!1},merchantConfigHash:{type:"string",queryParam:"merchant_config",required:!1,value:Li,debug:sa("Merchant Config Hash: "+Li())},treatmentsHash:{type:"string",queryParam:"treatments",required:!1,value:Ja,debug:sa("Treatments Hash: "+Ja())},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Ui,debug:sa("SDK Meta: "+Ui())},env:{type:"string",queryParam:!0,value:Mi,debug:sa("Environment: production")},version:{type:"string",queryParam:!0,value:ji,debug:sa("Library Version: 1.101.0")},integrationType:{type:"string",queryParam:!0,value:function(){return"SDK"},debug:sa("Library Integration: SDK")},deviceID:{type:"string",queryParam:!0,value:zi,debug:sa("Device ID: "+zi())},sessionID:{type:"string",queryParam:!0,value:Vi,debug:sa("Session ID: "+Vi())},scriptUID:{type:"string",queryParam:!0,value:Fn,debug:sa("ScriptUID: "+Fn())},messageRequestId:{type:"string",queryParam:"message_request_id",value:function(e){var n=e.state;return n.messageRequestId||(n.messageRequestId=he()),sa("Message Request ID: "+n.messageRequestId),n.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},messageLocation:{type:"string",queryParam:!1,value:function(){return window.location.href},debug:sa("Message Location: "+window.location.href)},stageTag:{type:"string",queryParam:!0,required:!1,value:Xi},partnerAttributionId:{type:"string",queryParam:!0,required:!1,value:function(){var e,n;return null!=(e=(null!=(n=Gi())?n:{})[Un.PARTNER_ATTRIBUTION_ID])?e:null},debug:sa("Partner Attribution ID: "+(null!=(e=Gi())?e:{})[Un.PARTNER_ATTRIBUTION_ID])},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:$i},cspNonce:{type:"string",required:!1,default:Zi,value:lu.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:Di},features:{type:"string",queryParam:"features",required:!1,value:function(e){return ea(lu.features({props:e.props}))}}}})})),mu=t(2),vu=Ta(),Eu=function(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.event,a=e.state,u=e.props,c=u.cspNonce,s=u.features;if("popup"!==e.context){var d=null!=s&&s.includes("new-checkout-design")?100:300,l=null!=s&&s.includes("new-checkout-design")?0:5,f=aa(),p=f[0],h=f[1],y={HIDDEN:n+"-hide",MODAL_SHOW:n+"-show",TRANSITION:n+"-transition"},m=vu(t.title);return Ro("div",{id:n,class:y.HIDDEN,onRender:function(e){var n=e.querySelector("div"),o=function(){a.open=!0,a.previousFocus=document.activeElement,e.classList.remove(y.HIDDEN),p(),requestAnimationFrame((function(){requestAnimationFrame((function(){n.classList.add(y.MODAL_SHOW),a.renderedModal&&window.document.activeElement!==t?t.focus():window.document.activeElement!==r&&r.focus()}))}))},u=function(){a.open=!1,n.classList.remove(y.MODAL_SHOW),h(),setTimeout((function(){e.classList.add(y.HIDDEN),a.previousFocus.focus()}),d)};a.open&&o(),i.on("modal-show",o),i.on("modal-hide",u),i.on("zoid-rendered",(function(){a.renderedModal=!0,b.delay(d).then((function(){return n.classList.add(y.TRANSITION)})).then((function(){return b.delay(d)})).then((function(){return _n(r)})).then((function(){a.open&&document.activeElement!==t&&t.focus()}))})),window.addEventListener("keyup",(function(e){!a.open||"Escape"!==e.key&&"Esc"!==e.key&&27!==e.charCode||u()}))}},Ro("style",{nonce:c},"\n #"+n+"."+y.HIDDEN+" {\n visibility: hidden;\n }\n\n #"+n+" > div > iframe {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n height: 100% !important;\n border: none !important;\n }\n\n @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {\n #"+n+"."+y.HIDDEN+" > div > iframe {\n opacity: 0;\n }\n }\n\n #"+n+" > div {\n background: rgba(108, 115, 120, 0);\n transition: background "+d+"ms linear;\n position: fixed !important; top: env(safe-area-inset-top, 0px) !important; left: 0 !important; width: 100% !important; height: calc(100% - env(safe-area-inset-top, 0px)) !important; z-index: 2147483647 !important; border: none !important;\n }\n\n "+("new-checkout-design"!==s?"#"+n+" > div."+y.MODAL_SHOW+" {\n background: rgba(108, 115, 120, 0.85);\n }":"")+"\n\n #"+n+" > div > iframe {\n transition: all "+d+"ms;\n transform: translateY("+l+"%);\n opacity: 0;\n }\n\n #"+n+" > div."+y.MODAL_SHOW+" > iframe {\n transform: translateY(0);\n opacity: 1;\n }\n\n #"+n+" > div > iframe:first-of-type {\n opacity: 0;\n }\n\n #"+n+" > div."+y.MODAL_SHOW+"."+y.TRANSITION+" > iframe:first-of-type {\n opacity: 1;\n z-index: 2;\n }\n\n #"+n+" > div."+y.TRANSITION+" > iframe:last-of-type {\n opacity: 0;\n }\n "),Ro("div",null,Ro("node",{el:t,title:m}),Ro("node",{el:r,title:"Prerender "+m}))).render(Oo({doc:o}))}},wu=t(3),gu=function(e){var n,t=e.doc,r=e.props,o=r.cspNonce,i=r.features,a=r.onError,u=r.onClose,c=e.event,s=e.state,d=null!=i&&i.includes("new-checkout-design")?"true":"false",l="\n @font-face {\n font-family: 'PayPalOpen';\n src: url(https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Regular.woff2) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n html {\n color: #2d2d2d;\n font-family: PayPalOpen, Helvetica, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n }\n .modal{\n overflow-y: scroll;\n }\n "+("true"===d?" @media screen and (min-width: 640px) {\n .overlay {\n background-color: #ffffff; \n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 424px;\n height: 90vh;\n border-radius: 32px;\n border: 1px solid #cdd0d4;\n }\n }\n @media screen and (max-width: 639px) {\n .overlay {\n background-color: #f1f2f3;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }\n }\n ":".overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }")+"\n .modal-content {\n position: relative;\n margin: auto;\n height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n }\n "+("true"===d&&"\n @media screen and (min-width: 640px) {\n #prerender-close-btn {\n position: relative;\n }\n .close-button {\n position: absolute;\n width: 424px;\n transform: translate(-50%, -50%);\n top: 85px;\n left: 50%;\n padding-left: 25px;\n z-index: 50;\n }\n }\n @media screen and (max-width: 639px) {\n #prerender-close-btn {\n left: 0;\n }\n }\n\n .spinnerImage{\n display: none;\n }\n .loader {\n width: 44px !important;\n height: 44px !important;\n margin: 0 0 0 -22px !important;\n background-color: transparent !important;\n animation: rotation 1.3s infinite linear !important;\n border-left: 3px solid #0544b5 !important;\n border-right: 3px solid #0544b5 !important;\n border-bottom: 3px solid transparent !important;\n border-top: 3px solid #0544b5 !important;\n border-radius: 100% !important;\n top: 20;\n }\n ")+"\n .spinner{\n position: relative !important;\n }\n\n .close-button > button {\n background-color: transparent;\n width: 48px;\n height: 48px;\n display: block;\n padding: 0;\n border: none;\n cursor: pointer;\n position: absolute;\n z-index: 50;\n right: 0;\n margin-right: 2px;\n margin-top: 2px;\n }\n\n .close-button > button > svg {\n width: 48px;\n height: 48px;\n }\n\n #modal-status {\n color: white;\n position: absolute;\n top: 67%;\n left: calc( 50% - 10px );\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n \n "+("true"===d&&"\n .close-button > button {\n background-color: transparent;\n width: 48px;\n height: 48px;\n }\n\n .close-button > button > svg {\n width: 48px;\n height: 48px;\n\n @include mobile {\n margin-left: 15px;\n }\n }\n\n @media screen and (max-width: 639px) {\n .close-button > button > svg {\n margin-top: auto;\n margin-left: auto;\n }\n }\n\n #modal-status {\n color: #545D68;\n position: absolute;\n top: 52%;\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n ")+"\n\n @media screen and (max-width: 639px), (max-height: 539px){\n .modal{\n overflow-y: hidden;\n }\n .modal-content {\n height: calc(100% - 84px);\n \n }\n }\n \n ",f=function(){u({linkName:"Pre-render Close"}),c.trigger("modal-hide")};return c.on("modal-show",(function(){s.renderedModal||window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){var e;null==(e=n)||e.focus()}))}))})),Ro("html",{lang:"en"},Ro("head",null,Ro("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),Ro("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),Ro("style",{nonce:o},l),Ro("body",{onRender:function(e){n=e.querySelector("#prerender-close-btn"),window.requestAnimationFrame((function(){var e;null==(e=n)||e.focus()})),b.delay(15e3).then((function(){return function(e){b.delay(15e3).then((function(){var n=e.querySelector("#modal-status");n&&!s.renderedModal&&(n.style.display="block",n.textContent="Error loading Modal",a&&a({message:n.textContent}))}))}(e)}))},onKeyUp:function(e){s.renderedModal||!s.open||"Escape"!==e.key&&"Esc"!==e.key&&27!==e.charCode||f()}},Ro("div",{class:"modal","aria-errormessage":"modal-status"},Ro("div",{class:"overlay",onClick:f,"aria-keyshortcuts":"escape"}),Ro("div",{class:"top-overlay"}),Ro("div",{class:"modal-content"},Ro("div",{class:"close-button"},Ro("button",{id:"prerender-close-btn",onClick:f,type:"button","aria-label":"Close",tabindex:"0"},"true"===d?Ro("svg",{width:"24",height:"24",viewBox:"0 0 48 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ro("rect",{x:"4",width:"40",height:"40",rx:"20",fill:"#EDF0F2"}),Ro("path",{d:"M26.5005 13.1245C26.6662 13.1246 26.8247 13.1909 26.9419 13.3081C27.0591 13.4253 27.1254 13.5838 27.1255 13.7495C27.1255 13.9154 27.0592 14.0746 26.9419 14.1919L21.1333 19.9995L26.9419 25.8081C26.9999 25.8661 27.0462 25.9345 27.0776 26.0103C27.109 26.086 27.1254 26.1675 27.1255 26.2495C27.1255 26.3315 27.109 26.413 27.0776 26.4888C27.0462 26.5646 27 26.6338 26.9419 26.6919C26.8839 26.7498 26.8155 26.7962 26.7397 26.8276C26.664 26.859 26.5825 26.8754 26.5005 26.8755C26.4185 26.8755 26.337 26.859 26.2612 26.8276C26.1854 26.7962 26.1162 26.75 26.0581 26.6919L19.8081 20.4419C19.7501 20.384 19.7038 20.3154 19.6724 20.2397C19.6409 20.1639 19.6245 20.0816 19.6245 19.9995C19.6246 19.9175 19.641 19.836 19.6724 19.7603C19.7038 19.6845 19.7501 19.616 19.8081 19.5581L26.0581 13.3081C26.1754 13.1908 26.3346 13.1245 26.5005 13.1245Z",fill:"black"})):Ro("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ro("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),Ro("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),Ro("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),Ro(wu.Spinner,{nonce:o}))))).render(Oo({doc:t}))},_u=Pa("__paypal_credit_modal__",(function(){return ho({tag:xi.MODAL,url:Fa("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:Eu,prerenderTemplate:gu,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:lu.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:lu.merchantId},integrationIdentifier:{type:"string",queryParam:!0,value:function(e){return e.props.refIndex?void 0:"messagesModal"},required:!1},customerId:{type:"string",queryParam:"customer_id",required:!1,value:lu.customerId},currency:{type:"string",queryParam:!0,required:!1,value:lu.currency},amount:{type:"number",queryParam:!0,required:!1,value:lu.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:lu.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:lu.language},locale:{type:"string",queryParam:!0,required:!1,value:lu.locale},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(e){return ua(e.value)}},refId:{type:"string",queryParam:!1,required:!1},refIndex:{type:"string",queryParam:!1,required:!1},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:lu.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:lu.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:lu.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:lu.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:lu.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:lu.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onClick,r=n.onApply;return function(e){var o=e.linkName,i=e.src;Ha.track({index:n.index,refIndex:n.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:o,page_view_link_source:null!=i?i:o}),"function"==typeof t&&t({linkName:o}),"function"==typeof r&&"string"==typeof o&&o.includes("Apply Now")&&r()}}},onCalculate:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onCalculate;return function(e){var r=e.value;Ha.track({index:n.index,refIndex:n.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:"Calculator",page_view_link_source:"Calculator",calculator_input:r}),"function"==typeof t&&t({value:r})}}},onError:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onError;return function(e){var r=e.message;Ha.track({index:n.index,refIndex:n.refIndex,et:"ERROR",event_type:"error",message:r}),"function"==typeof t&&t({message:r})}}},onShow:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=n.onShow;return function(){var e=n.src;Ha.track({index:n.index,refIndex:n.refIndex,et:"CLIENT_IMPRESSION",event_type:"modal_viewed",src:void 0===e?"show":e}),"function"==typeof t&&t()}}},onClose:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.event,r=n.onClose;return function(e){var o=(void 0===e?{}:e).linkName;if(void 0!==o){var i=n.index,a=n.refIndex;t.trigger("modal-hide"),Ha.track({index:i,refIndex:a,et:"CLICK",event_type:"modal_close",page_view_link_name:o}),"function"==typeof r&&r({linkName:o})}}}},onReady:{type:"function",queryParam:!1,value:function(e){var n=e.props,t=e.state,r=e.event,o=n.onReady,i=n.buttonSessionId;return function(e){var a=e.products,u=e.meta,c=e.ts,s=n.index,d=n.offer,l=n.merchantId,f=n.account,p=n.refIndex,h=n.messageRequestId,m=n.language,v=n.locale,E=t.renderStart,w=t.show,g=t.hide,_=u.trackingDetails,N=u.ppDebugId,S=u.language,b=l&&f.slice(10);sa("Modal Correlation ID: "+N),Ha.addMetaBuilder((function(e){var n;delete e[s];var t=e.global,r=void 0===t?{}:t;return delete e.global,(n={global:y({},r,{ts:void 0!==c?c:ca(),deviceID:zi(),sessionID:Vi()})})[s]={type:"modal",messageRequestId:h,buttonSessionId:i,account:l||f,partnerClientId:b,trackingDetails:_,language_requested:(null==v?void 0:v.replace("_","-"))||m,language_rendered:null!=S?S:"undefined"},n}));var R=$a("firstModalRenderDelay");Ha.info("modal_render",{index:s,refIndex:p,duration:ia()-E}),Ha.track({index:s,refIndex:p,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:a.join("_").toLowerCase()+":"+(d?d.toLowerCase():a[0]),partner_attribution_id:Gi()[mu.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(R).toString(),render_duration:Math.round(ia()-E).toString()}),"function"!=typeof o||t.products&&JSON.stringify(a)===JSON.stringify(t.products)||o({products:a,show:w,hide:g}),t.products=Array.isArray(a)&&a.map(ua),r.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(e){var n=e.state;return n.index||(n.index=Aa().toString()),n.index}},payerId:{type:"string",queryParam:"payer_id",decorate:function(e){var n=e.props;return n.account.startsWith("client-id:")?null:n.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(e){var n=e.props;return n.account.startsWith("client-id:")?n.account.slice(10):null},default:function(){return""},required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Ui},env:{type:"string",queryParam:!0,value:Mi},version:{type:"string",queryParam:!0,value:ji},deviceID:{type:"string",queryParam:!0,value:zi},sessionID:{type:"string",queryParam:!0,value:Vi},scriptUID:{type:"string",queryParam:!0,value:Fn},messageRequestId:{type:"string",queryParam:"message_request_id",value:he,decorate:function(e){var n=e.props;return sa("Modal Message Request ID: "+n.messageRequestId),n.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},stageTag:{type:"string",queryParam:!0,required:!1,value:Xi},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:$i},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"SDK"}},cspNonce:{type:"string",required:!1,default:Zi,value:lu.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:Di},features:{type:"string",queryParam:"features",required:!1,value:function(e){return ea(lu.features({props:e.props}))}},experimentExperience:{type:"string",queryParam:"experiment_experience",required:!1},experimentName:{type:"string",queryParam:"experiment_name",required:!1}}})})),Nu=(cu=function(e){var n=e.account,t=e.merchantId,r=e.customerId,o=e.currency,i=e.amount,a=e.buyerCountry,u=e.language,c=e.locale,s=e.ignoreCache,d=e.offer,l=e.onReady,f=e.onCalculate,p=e.onError,h=e.onApply,y=e.onShow,m=e.onClose,v=e.channel,E=e.ecToken,w=e.contextualComponents,g=e.cspNonce,_=e.integrationIdentifier,N=e.features,S=e.buttonSessionId;nu("firstModalRenderDelay");var R,A=_u()({account:n,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,locale:c,ignoreCache:s,offer:d,onReady:l,onCalculate:f,onError:p,onApply:h,onShow:y,onClose:m,channel:v,ecToken:E,contextualComponents:w,cspNonce:g,integrationIdentifier:_,features:N,buttonSessionId:S}),T=function(e,n,t){void 0===e&&(e="body"),void 0===t&&(t={intent:"render"});var r="true"===(null==n?void 0:n.prequalExperience)||ha()!==window&&!(null==N?void 0:N.includes("new-checkout-design"))?"popup":"iframe";if(R&&"popup"!==r)return R.then((function(){return n&&A.updateProps(n)}));R&&"popup"===r&&Object.assign(A,A.clone());var o=new b((function(e){return A.event.once("ready",e)}));A.state.renderStart=ia();var i="show"===t.intent?b.resolve():Da.then((function(){return b.delay(0)}));return R=i.then((function(){return b.all([n&&A.updateProps(n),A.render(e,r),o])})).then((function(){return Ca.trigger("modal-render")}))},F=function(e){var n,t;void 0===e&&(e={});var r,o,i,a,u=ya(e)?ma(e):e;ya(e)&&(u.src=null!=(r=null!=(o=null!=(i=e.id)?i:[].concat(e.classList).filter(Boolean).reduce((function(e,n){return(null!=e?e:"")+"."+n}),null))?o:null==(a=e.constructor)?void 0:a.name)?r:"element"),R=T("body",u,{intent:"show"});var c=ua(e.offer),s=A.state.products;return"DE"===(null==(n=e)?void 0:n.offerCountry)?s=["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:"GB"===(null==(t=e)?void 0:t.offerCountry)&&(s=["PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]),void 0!==c&&"NONE"!==c&&Array.isArray(A.state.products)&&Array.isArray(s)&&!s.find((function(e){return e===c}))?(Ha.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+A.state.products.join('", "')+'"] but received "'+e.offer+'".',help_url:Za("GENERAL")}),b.resolve()):(A.state.open=!0,A.event.trigger("modal-show"),R)},P=function(){return R=T("body"),A.event.trigger("modal-hide"),R};return A.state.show=F,A.state.hide=P,{render:T,show:F,hide:P,updateProps:function(e){A.updateProps(e)}}},su=["account","merchantId","buyerCountry","language","locale"],du=new Map,function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(su.map((function(n){return e[n]})));return du.has(t)&&!n||du.set(t,cu(e)),du.get(t)}),Su=function(e){return Nu(la(ba().config,e))},bu=function(e){return void 0===e&&(e={}),{render:function(n){void 0===n&&(n="[data-pp-message]"),nu("firstRenderDelay");var t=ia(),r=ba().messagesMap,o=ga(n);if(0===o.length)return e._auto||Ha.warn("invalid_selector",{description:'No elements were found with the following selector: "'+n+'"',selector:n,help_url:Za("RENDERING")}),b.resolve();var i=o.filter((function(n){return n.ownerDocument.body.contains(n)?!e._auto||!n.hasAttribute("data-pp-id"):(Ha.warn("not_in_document",{description:"Container must be in the document.",container:n,help_url:Za("RENDERING")}),!1)}));return Oa.then((function(){return b.all(i.map((function(n,o){return new b((function(i,a){var u=function(){try{var o=function(e,n){var t=ba().config,r=ma(n),o=y({},t,e,r,{pageType:r.pageType||e.pageType||r.placement||e.placement});return delete o.placement,o}(e,n);n.hasAttribute("data-pp-id")||n.setAttribute("data-pp-id",Aa());var u=n.getAttribute("data-pp-id"),c=o.account,s=o.merchantId,d=o.customerId,l=o.currency,f=o.amount,p=o.pageType,h=o.style,m=o.offer,v=o.buyerCountry,E=o.language,w=o.locale,g=o.ignoreCache,_=o.onClick,N=o.onRender,S=o.onApply,b=o.channel,R=o.ecToken,A=o.contextualComponents,T=o.inlineExpression,F=o.inlineExpressionOnclickValue,P=o.inlineExpressionOnapplyValue,C=o.inlineExpressionOnrenderValue,I={account:c,merchantId:s,customerId:d,currency:l,amount:f,buyerCountry:v,language:E,locale:w,ignoreCache:g,channel:b,ecToken:R,contextualComponents:A,cspNonce:o.cspNonce,features:o.features},O=y({},I,{onApply:S}),x=y({},I,{index:u,pageType:p,style:h,offer:m,onClick:_,onApply:S,inlineExpression:T,inlineExpressionOnclickValue:F,inlineExpressionOnapplyValue:P,inlineExpressionOnrenderValue:C,onReady:function(){"function"==typeof N&&N.apply(void 0,arguments)},getContainer:function(){return n}});if(c&&(x.modal=Su(O)),!r.has(n)){var D=yu()(x),M=D.render,L=D.state,H=D.updateProps,k=D.clone;return L.renderStart=t,L.style=x.style,r.set(n,{render:M,updateProps:H,state:L,clone:k}),Ga().observe(n,{attributes:!0}),sa("{\n clientID: "+c+",\n merchantID: "+s+",\n customerID: "+d+",\n offer: "+m+",\n currency: "+l+",\n ignoreCache: "+g+",\n channel: "+b+",\n ecToken: "+R+",\n contextualComponents: "+A+',\n \n index: data-pp-id="'+u+'",\n style: '+JSON.stringify(h)+",\n amount: "+f+",\n buyerCountry: "+v+",\n language: "+E+",\n locale: "+w+",\n pageType: "+p+",\n \n renderStart: "+new Date(t).toLocaleString()+",\n renderMessageTime: "+(new Date).toLocaleString()+"\n }"),M(n).then((function(){return Ca.trigger("render")})).then(i)}var Z=r.get(n),B=Z.updateProps,U=Z.state;if(U.renderComplete&&(U.renderStart=t),U.style&&x.style){var G=la(U.style,x.style);U.style=G,x.style=G}return B(Object.entries(x).reduce((function(e,n){var t,r=n[1];return void 0===r?e:Object.assign(e,((t={})[n[0]]=r,t))}),{})).then((function(){return Ca.trigger("render")})).then(i)}catch(e){return"offer_validation_error"===e.message?i():a(e)}};0!==o?window.requestIdleCallback?window.requestIdleCallback(u):setTimeout(u,20*o):u()}))})))}))}}};Object.assign(bu,{render:function(e,n){return bu(e).render(n)},setGlobalConfig:function(e){return void 0===e&&(e={}),Ra({config:y({},ba().config,e)})}});var Ru=bu;function Au(){nu("scriptLoadDelay"),function(){if(Va(),yu(),ja(),Ia(),!Ki()){var e=function(){!Ja()&&nn()?za():Ca.trigger("treatments"),ba().config.account&&Ru.render({_auto:!0}),Ba().observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-pp-message"]}),sa("DOMContentLoaded at "+(new Date).toLocaleString())};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()}}(),_u(),Ia(),Ki()||Ma.then((function(){if(ba().config.account){var e=ga("[data-pp-messagesmodal]");if(e.length>0){var n=la(ba().config,ma(e[0])),t=Su(n);e.forEach((function(e){e.setAttribute("tabindex",0),e.addEventListener("click",(function(){return t.show(e)}))}))}}}))}function Tu(){yo(),ba().messagesMap.forEach((function(e,n){n.removeAttribute("data-pp-id"),n.firstChild&&n.firstChild.remove()})),Ga().disconnect(),Ba().disconnect(),Wa().then((function(e){return e.disconnect()})),window[Na]&&(Object.keys(window[Na]).forEach((function(e){return delete window[Na][e]})),Object.assign(window[Na],Sa()),delete window[Na])}!function(e){var n,t=et(),r=window[t],o=r&&r.version;if(r)if(o.startsWith("6."))dt().info("setup_sdk_v6_integration_found",{v5Version:"5.0.585",v6Version:o}),delete window[t];else{if(!r.__internal_destroy__)throw new Error("Attempted to load sdk version 5.0.585 on page, but window."+t+" at version "+o+' already loaded.\n\nTo load this sdk alongside the existing version, please specify a different namespace in the script tag, e.g.