Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paypal/identity-components

Package Overview
Dependencies
Maintainers
32
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/identity-components - npm Package Compare versions

Comparing version 5.0.12 to 5.0.13

8

CHANGELOG.md

@@ -1,3 +0,9 @@

## <small>5.0.12 (2022-06-24)</small>
## <small>5.0.13 (2022-10-04)</small>
## <small>5.0.12 (2022-10-04)</small>
* Update dependencies (#28) ([5bd9251](https://github.com/paypal/paypal-identity-components/commit/5bd9251)), closes [#28](https://github.com/paypal/paypal-identity-components/issues/28)
* chore: move devDependencies to @krakenjs scope (#25) ([716aeae](https://github.com/paypal/paypal-identity-components/commit/716aeae)), closes [#25](https://github.com/paypal/paypal-identity-components/issues/25)

@@ -4,0 +10,0 @@ * chore: update git repository link (#7) ([8e4c0d5](https://github.com/paypal/paypal-identity-components/commit/8e4c0d5)), closes [#7](https://github.com/paypal/paypal-identity-components/issues/7)

2

dist/button.js

@@ -1,1 +0,1 @@

module.exports=function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return{}.hasOwnProperty.call(e,n)},r.p="",r(r.s=0)}([function(e,n,r){"use strict";function t(){return(t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)({}).hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(this,arguments)}function o(e,n){for(var r=[],t=0;t<e.length;t++){var o=e[t].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&r.push(a)}else r.push(o)}return r}r.r(n),r.d(n,"validateButtonProps",(function(){return bn})),r.d(n,"AuthButton",(function(){return On})),r.d(n,"DEFAULT_PROPS",(function(){return ln}));var i=function(){function e(e,n,r){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=n||{},this.children=r;var t=this.props.onRender;"function"==typeof t&&(this.onRender=t,delete n.onRender)}var n=e.prototype;return n.render=function(e){var n=e(this);return this.onRender&&this.onRender(n),n},n.renderChildren=function(e){return o(this.children,e)},e}(),a=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return o(this.children,e)},e}(),f=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),c=function(){function e(e,n,r){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=n||{},this.children=r,this.props.children=r}var n=e.prototype;return n.renderComponent=function(e){var n=function(e){var n=s(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new a(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 o(this.children,e)},e}();function s(e){for(var n=[],r=0;r<e.length;r++){var t=e[r];if(t)if("string"==typeof t||"number"==typeof t)n.push(new f(t.toString()));else{if("boolean"==typeof t)continue;if(Array.isArray(t))for(var o=0,i=s(t);o<i.length;o++)n.push(i[o]);else{if(!t||"element"!==t.type&&"text"!==t.type&&"component"!==t.type)throw new TypeError("Unrecognized node type: "+typeof t);n.push(t)}}}return n}var u,d,l,h=function(e,n){for(var r=arguments.length,t=new Array(r>2?r-2:0),o=2;o<r;o++)t[o-2]=arguments[o];if(t=s(t),"string"==typeof e)return new i(e,n,t);if("function"==typeof e)return new c(e,n,t);throw new TypeError("Expected jsx element to be a string or a function")},p=((u={}).svg="http://www.w3.org/2000/svg",u),y=((d={})["xlink:href"]="http://www.w3.org/1999/xlink",d);function v(e,n){return e.createTextNode(n.text)}function w(e,n){for(var r=n.props,t=0,o=Object.keys(r);t<o.length;t++){var i=o[t],a=r[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)e.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var f=y[i];f?e.setAttributeNS(f,i,a.toString()):e.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||r.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var m=((l={}).iframe=function(e,n){var r=n.children[0];if(1!==n.children.length||!r||"element"!==r.type||"html"!==r.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var n=e.contentWindow;if(!n)throw new Error("Expected frame to have contentWindow");for(var t=n.document,o=t.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=r.render(function(e){void 0===e&&(e={});var n=e.doc,r=void 0===n?document:n;return function e(n){if("component"===n.type)return n.renderComponent(e);if("text"===n.type)return v(r,n);if("element"===n.type){var t=p[n.name.toLowerCase()];if(t)return function e(n,t){if("component"===n.type)return n.renderComponent((function(n){return e(n,t)}));if("text"===n.type)return v(r,n);if("element"===n.type){var o=function(e,n,r){return e.createElementNS(r,n.name)}(r,n,t);return w(o,n),g(o,n,r,(function(n){return e(n,t)})),o}throw new TypeError("Unhandleable node")}(n,t);var o=function(e,n){return n.props.el?n.props.el:e.createElement(n.name)}(r,n);return w(o,n),g(o,n,r,e),o}throw new TypeError("Unhandleable node")}}({doc:t}));i.children.length;)o.appendChild(i.children[0])}))},l.script=function(e,n){var r=n.children[0];if(1!==n.children.length||!r||"text"!==r.type)throw new Error("Expected only single text node as child of script element");e.text=r.text},l.default=function(e,n,r){for(var t=0,o=n.renderChildren(r);t<o.length;t++)e.appendChild(o[t])},l);function g(e,n,r,t){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var r=0,t=e.querySelectorAll("script");r<t.length;r++){var o=t[r],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,r))}else(m[n.name]||m.default)(e,n,t)}function F(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n.indexOf(r=i[t])>=0||(o[r]=e[r]);return o}var E={br:!0};function b(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}function T(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var r=n.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}var C,O=[],x=[],A=0;function L(){if(!A&&C){var e=C;C=null,e.resolve()}}function z(){A+=1}function S(){A-=1,L()}var N=function(){function e(e){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var r,t,o=!1,i=!1,a=!1;z();try{e((function(e){a?n.resolve(e):(o=!0,r=e)}),(function(e){a?n.reject(e):(i=!0,t=e)}))}catch(e){return S(),void this.reject(e)}S(),a=!0,o?this.resolve(r):i&&this.reject(t)}}var n=e.prototype;return n.resolve=function(e){if(this.resolved||this.rejected)return this;if(T(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},n.reject=function(e){var n=this;if(this.resolved||this.rejected)return this;if(T(e))throw new Error("Can not reject promise with another promise");if(!e){var r=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+r)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout((function(){n.errorHandled||function(e,n){if(-1===O.indexOf(e)){O.push(e),setTimeout((function(){throw e}),1);for(var r=0;r<x.length;r++)x[r](e,n)}}(e,n)}),1),this.dispatch(),this},n.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},n.dispatch=function(){var n=this.resolved,r=this.rejected,t=this.handlers;if(!this.dispatching&&(n||r)){this.dispatching=!0,z();for(var o=function(e,n){return e.then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))},i=0;i<t.length;i++){var a=t[i],f=a.onSuccess,c=a.onError,s=a.promise,u=void 0;if(n)try{u=f?f(this.value):this.value}catch(e){s.reject(e);continue}else if(r){if(!c){s.reject(this.error);continue}try{u=c(this.error)}catch(e){s.reject(e);continue}}if(u instanceof e&&(u.resolved||u.rejected)){var d=u;d.resolved?s.resolve(d.value):s.reject(d.error),d.errorHandled=!0}else T(u)?u instanceof e&&(u.resolved||u.rejected)?u.resolved?s.resolve(u.value):s.reject(u.error):o(u,s):s.resolve(u)}t.length=0,this.dispatching=!1,S()}},n.then=function(n,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw new Error("Promise.then expected a function for error handler");var t=new e;return this.handlers.push({promise:t,onSuccess:n,onError:r}),this.errorHandled=!0,this.dispatch(),t},n.catch=function(e){return this.then(void 0,e)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(r){return e.try(n).then((function(){return r}))}),(function(r){return e.try(n).then((function(){throw r}))}))},n.timeout=function(e,n){var r=this;if(this.resolved||this.rejected)return this;var t=setTimeout((function(){r.resolved||r.rejected||r.reject(n||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(t),e}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(n){return n instanceof e?n:T(n)?new e((function(e,r){return n.then(e,r)})):(new e).resolve(n)},e.reject=function(n){return(new e).reject(n)},e.asyncReject=function(n){return(new e).asyncReject(n)},e.all=function(n){var r=new e,t=n.length,o=[].slice();if(!t)return r.resolve(o),r;for(var i=function(e,n,i){return n.then((function(n){o[e]=n,0==(t-=1)&&r.resolve(o)}),(function(e){i.reject(e)}))},a=0;a<n.length;a++){var f=n[a];if(f instanceof e){if(f.resolved){o[a]=f.value,t-=1;continue}}else if(!T(f)){o[a]=f,t-=1;continue}i(a,e.resolve(f),r)}return 0===t&&r.resolve(o),r},e.hash=function(n){var r={},t=[],o=function(e){if(n.hasOwnProperty(e)){var o=n[e];T(o)?t.push(o.then((function(n){r[e]=n}))):r[e]=o}};for(var i in n)o(i);return e.all(t).then((function(){return r}))},e.map=function(n,r){return e.all(n.map(r))},e.onPossiblyUnhandledException=function(e){return function(e){return x.push(e),{cancel:function(){x.splice(x.indexOf(e),1)}}}(e)},e.try=function(n,r,t){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;z();try{o=n.apply(r,t||[])}catch(n){return S(),e.reject(n)}return S(),e.resolve(o)},e.delay=function(n){return new e((function(e){setTimeout(e,n)}))},e.isPromise=function(n){return!!(n&&n instanceof e)||T(n)},e.flush=function(){return n=C=C||new e,L(),n;var n},e}(),B="Call was rejected by callee.\r\n";function M(e){return void 0===e&&(e=window),e.location.protocol}function k(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return M(e)}function P(e){return void 0===e&&(e=window),"about:"===k(e)}function R(e){try{return!0}catch(e){}return!1}function D(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var r=M(e);if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var t=function(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}(e);return t&&R()?D(t):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return r+"//"+o}function _(e){void 0===e&&(e=window);var n=D(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function U(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(P(e)&&R())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===k(e)}(e)&&R())return!0}catch(e){}try{if(D(e)===D(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(P(e)&&R())return!0;if(_(window)===_(e))return!0}catch(e){}return!1}var j=[],I=[];function G(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==B}if(n&&U(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var r=function(e,n){for(var r=0;r<e.length;r++)try{if(e[r]===n)return r}catch(e){}return-1}(j,e);if(-1!==r){var t=I[r];if(t&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!n.documentElement.contains(r.host))return!0}return!1}(t))return!0}return!1}function H(e){try{if(e===window)return!0}catch(e){if(e&&e.message===B)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===B)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===B)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===B)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===B)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===B)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function K(e,n){for(var r=0;r<e.length;r++)try{if(e[r]===n)return r}catch(e){}return-1}var W,V=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>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,r=0;r<n.length;r++){var t=n[r];if(H(t)&&G(t)){if(e)try{e.delete(t)}catch(e){}n.splice(r,1),this.values.splice(r,1),r-=1}}},n.isSafeToReadWrite=function(e){return!H(e)},n.set=function(e,n){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,n)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=this.name,o=e[t];return void(o&&o[0]===e?o[1]=n:Object.defineProperty(e,t,{value:[e,n],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,f=K(i,e);-1===f?(i.push(e),a.push(n)):a[f]=n},n.get=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return n.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return r&&r[0]===e?r[1]:void 0}catch(e){}this._cleanupClosedWindows();var t=K(this.keys,e);if(-1!==t)return this.values[t]},n.delete=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];r&&r[0]===e&&(r[0]=r[1]=void 0)}catch(e){}this._cleanupClosedWindows();var t=this.keys,o=K(t,e);-1!==o&&(t.splice(o,1),this.values.splice(o,1))},n.has=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return!(!r||r[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==K(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var r=n();return this.set(e,r),r},e}();function Z(e){return e.name||e.__name__||e.displayName||"anonymous"}function Y(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function J(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function q(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+J((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function X(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(W=W||new V,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=W.get(e);return n||(n=typeof e+":"+q(),W.set(e,n)),n}(n)+"]":function(e){var n=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(n=!0)}catch(e){}return n}(n)?{}:n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function Q(){return{}}var $=0,ee=0;function ne(e,n){void 0===n&&(n={});var r,t,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,f=$;$+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s,u;f<ee&&(r=null,t=null,f=$,$+=1),s=i?(t=t||new V).getOrSet(this,Q):r=r||{};try{u=X(o)}catch(n){return e.apply(this,arguments)}var d=s[u];if(d&&a&&Date.now()-d.time<a&&(delete s[u],d=null),d)return d.value;var l=Date.now(),h=e.apply(this,arguments);return s[u]={time:l,value:h},h};return c.reset=function(){r=null,t=null},Y(c,(n.name||Z(e))+"::memoized")}function re(){}function te(e){if(Object.values)return Object.values(e);var n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(e[r]);return n}function oe(e){return"data:image/svg+xml;base64,"+J(e)}function ie(e,n){void 0===n&&(n=Boolean);var r={};for(var t in e)e.hasOwnProperty(t)&&n(e[t],t)&&(r[t]=e[t]);return r}function ae(){return Boolean(document.body)&&"complete"===document.readyState}function fe(){return Boolean(document.body)&&"interactive"===document.readyState}function ce(){return"undefined"!=typeof window&&void 0!==window.location}ne.clear=function(){ee=$},ne(te),Error,ne((function(){return new N((function(e){if(ae()||fe())return e();var n=setInterval((function(){if(ae()||fe())return clearInterval(n),e()}),10)}))}));var se="undefined"!=typeof document?document.currentScript:null,ue=ne((function(){if(se)return se;if(se=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=n&&n[1];if(!r)return;for(var t=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();t<o.length;t++){var i=o[t];if(i.src&&i.src===r)return i}}catch(e){}}())return se;throw new Error("Can not determine current script")})),de=q(),le=ne((function(){var e;try{e=ue()}catch(e){return de}var n=e.getAttribute("data-uid");if(n&&"string"==typeof n)return n;if((n=e.getAttribute("data-uid-auto"))&&"string"==typeof n)return n;if(e.src){var r=function(e){for(var n="",r=0;r<e.length;r++){var t=e[r].charCodeAt(0)*r;e[r+1]&&(t+=e[r+1].charCodeAt(0)*(r-1)),n+=String.fromCharCode(97+Math.abs(t)%26)}return n}(JSON.stringify({src:e.src,dataset:e.dataset}));n="uid_"+r.slice(r.length-30)}else n=q();return e.setAttribute("data-uid-auto",n),n})),he=[];function pe(e){var n=e.url,r=e.method,t=void 0===r?"get":r,o=e.headers,i=void 0===o?{}:o,a=e.json,f=e.data,c=e.body,s=e.win,u=void 0===s?window:s,d=e.timeout,l=void 0===d?0:d;return new N((function(e,r){if(a&&f||a&&c||f&&a)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,d=Object.keys(i);s<d.length;s++){var h=d[s];o[h.toLowerCase()]=i[h]}a?o["content-type"]=o["content-type"]||"application/json":(f||c)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var p=0;p<he.length;p++)for(var y=(0,he[p])(),v=0,w=Object.keys(y);v<w.length;v++){var m=w[v];o[m.toLowerCase()]=y[m]}var g=new u.XMLHttpRequest;for(var F in g.addEventListener("load",(function(){var o=function(e){void 0===e&&(e="");for(var n={},r=0,t=e.trim().split("\n");r<t.length;r++){var o=t[r].split(":"),i=o[0],a=o.slice(1);n[i.toLowerCase()]=a.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return r(new Error("Request to "+t.toLowerCase()+" "+n+" failed: no response status code."));var i=o["content-type"],a=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),f=this.responseText;try{f=JSON.parse(f)}catch(e){if(a)return r(new Error("Invalid json: "+this.responseText+"."))}return e({status:this.status,headers:o,body:f})}),!1),g.addEventListener("error",(function(e){r(new Error("Request to "+t.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),g.open(t,n,!0),o)o.hasOwnProperty(F)&&g.setRequestHeader(F,o[F]);a?c=JSON.stringify(a):f&&(c=Object.keys(f).map((function(e){return encodeURIComponent(e)+"="+(f?encodeURIComponent(f[e]):"")})).join("&")),g.timeout=l,g.ontimeout=function(){r(new Error("Request to "+t.toLowerCase()+" "+n+" has timed out"))},g.send(c)}))}var ye,ve,we,me=["svg"],ge=["render","name","logoColor"];function Fe(e){var n=e.svg,r=F(e,me);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 r=(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""+b(e);if("string"!=typeof n&&"number"!=typeof n)throw new TypeError("Unexpected prop type: "+typeof n);return""===n?b(e):b(e)+'="'+b(n.toString())+'"'})).join(" "):"");if(E[n.name])return"<"+n.name+r+" />";var t="string"==typeof n.props.innerHTML?n.props.innerHTML:n.renderChildren(e).join("");return"<"+n.name+r+">"+t+"</"+n.name+">"}var o,i;if("text"===n.type)return b(n.text);throw new TypeError("Unhandleable node: "+n.type)}))))throw new TypeError("Expected svg prop to be a string or jsx node");var o=t({src:oe(n)},r);return h("img",o)}function Ee(e){var n=e.render,r=e.name,o=e.logoColor,i=F(e,ge);return h(Fe,t({},i,{svg:n(),alt:"",class:"paypal-logo paypal-logo-"+r+" "+(o?"paypal-logo-color-"+o:"")}))}(ye={}).default={primary:"#ffffff",secondary:"#ffffff"},ye.white={primary:"#ffffff",secondary:"#ffffff"},ye.black={primary:"#000000",secondary:"#000000"},(ve={}).default={primary:"#005498",secondary:"#FFD800"},ve.white={primary:"#ffffff",secondary:"#ffffff"},ve.black={primary:"#005498",secondary:"#FFD800"},(we={}).default={primary:"#333030"},we.white={primary:"#ffffff"},we.black={primary:"#333030"};var be,Te,Ce,Oe,xe,Ae,Le,ze={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},Se={AD:["en","fr","es","zh"],AE:["en","fr","es","zh","ar"],AG:["en","fr","es","zh"],AI:["en","fr","es","zh"],AL:["sq","en"],AM:["en","fr","es","zh"],AN:["en","fr","es","zh"],AO:["en","fr","es","zh"],AR:["es","en"],AT:["de","en"],AU:["en"],AW:["en","fr","es","zh"],AZ:["en","fr","es","zh"],BA:["en"],BB:["en","fr","es","zh"],BE:["en","nl","fr"],BF:["fr","en","es","zh"],BG:["bg","en"],BH:["ar","en","fr","es","zh"],BI:["fr","en","es","zh"],BJ:["fr","en","es","zh"],BM:["en","fr","es","zh"],BN:["ms","en"],BO:["es","en","fr","zh"],BR:["pt","en"],BS:["en","fr","es","zh"],BT:["en"],BW:["en","fr","es","zh"],BY:["en"],BZ:["en","es","fr","zh"],CA:["en","fr"],CD:["fr","en","es","zh"],CG:["en","fr","es","zh"],CH:["de","fr","en"],CI:["fr","en"],CK:["en","fr","es","zh"],CL:["es","en","fr","zh"],CM:["fr","en"],CN:["zh"],CO:["es","en","fr","zh"],CR:["es","en","fr","zh"],CV:["en","fr","es","zh"],CY:["en"],CZ:["cs","en"],DE:["de","en"],DJ:["fr","en","es","zh"],DK:["da","en"],DM:["en","fr","es","zh"],DO:["es","en","fr","zh"],DZ:["ar","en","fr","es","zh"],EC:["es","en","fr","zh"],EE:["et","en","ru"],EG:["ar","en","fr","es","zh"],ER:["en","fr","es","zh"],ES:["es","en"],ET:["en","fr","es","zh"],FI:["fi","en"],FJ:["en","fr","es","zh"],FK:["en","fr","es","zh"],FM:["en"],FO:["da","en","fr","es","zh"],FR:["fr","en"],GA:["fr","en","es","zh"],GB:["en"],GD:["en","fr","es","zh"],GE:["en","fr","es","zh"],GF:["en","fr","es","zh"],GI:["en","fr","es","zh"],GL:["da","en","fr","es","zh"],GM:["en","fr","es","zh"],GN:["fr","en","es","zh"],GP:["en","fr","es","zh"],GR:["el","en"],GT:["es","en","fr","zh"],GW:["en","fr","es","zh"],GY:["en","fr","es","zh"],HK:["en","zh_Hant","zh"],HN:["es","en","fr","zh"],HR:["en"],HU:["hu","en"],ID:["id","en"],IE:["en","fr","es","zh"],IL:["he","en"],IN:["en"],IS:["en"],IT:["it","en"],JM:["en","es","fr","zh"],JO:["ar","en","fr","es","zh"],JP:["ja","en"],KE:["en","fr","es","zh"],KG:["en","fr","es","zh"],KH:["en"],KI:["en","fr","es","zh"],KM:["fr","en","es","zh"],KN:["en","fr","es","zh"],KR:["ko","en"],KW:["ar","en","fr","es","zh"],KY:["en","fr","es","zh"],KZ:["en","fr","es","zh"],LA:["en"],LC:["en","fr","es","zh"],LI:["en","fr","es","zh"],LK:["si","en"],LS:["en","fr","es","zh"],LT:["lt","en","ru","zh"],LU:["en","de","fr","es","zh"],LV:["lv","en","ru"],MA:["ar","en","fr","es","zh"],MC:["fr","en"],MD:["en"],ME:["en"],MG:["en","fr","es","zh"],MH:["en","fr","es","zh"],MK:["en"],ML:["fr","en","es","zh"],MN:["en"],MQ:["en","fr","es","zh"],MR:["en","fr","es","zh"],MS:["en","fr","es","zh"],MT:["en"],MU:["en","fr","es","zh"],MV:["en"],MW:["en","fr","es","zh"],MX:["es","en"],MY:["ms","en"],MZ:["en","fr","es","zh"],NA:["en","fr","es","zh"],NC:["en","fr","es","zh"],NE:["fr","en","es","zh"],NF:["en","fr","es","zh"],NG:["en"],NI:["es","en","fr","zh"],NL:["nl","en"],NO:["no","en"],NP:["en"],NR:["en","fr","es","zh"],NU:["en","fr","es","zh"],NZ:["en","fr","es","zh"],OM:["ar","en","fr","es","zh"],PA:["es","en","fr","zh"],PE:["es","en","fr","zh"],PF:["en","fr","es","zh"],PG:["en","fr","es","zh"],PH:["tl","en"],PL:["pl","en"],PM:["en","fr","es","zh"],PN:["en","fr","es","zh"],PT:["pt","en"],PW:["en","fr","es","zh"],PY:["es","en"],QA:["en","fr","es","zh","ar"],RE:["en","fr","es","zh"],RO:["ro","en"],RS:["en","fr","es","zh"],RU:["ru","en"],RW:["fr","en","es","zh"],SA:["ar","en","fr","es","zh"],SB:["en","fr","es","zh"],SC:["fr","en","es","zh"],SE:["sv","en"],SG:["en"],SH:["en","fr","es","zh"],SI:["sl","en"],SJ:["en","fr","es","zh"],SK:["sk","en"],SL:["en","fr","es","zh"],SM:["en","fr","es","zh"],SN:["fr","en","es","zh"],SO:["en","fr","es","zh"],SR:["en","fr","es","zh"],ST:["en","fr","es","zh"],SV:["es","en","fr","zh"],SZ:["en","fr","es","zh"],TC:["en","fr","es","zh"],TD:["fr","en","es","zh"],TG:["fr","en","es","zh"],TH:["th","en"],TJ:["en","fr","es","zh"],TM:["en","fr","es","zh"],TN:["ar","en","fr","es","zh"],TO:["en"],TR:["tr","en"],TT:["en","fr","es","zh"],TV:["en","fr","es","zh"],TW:["zh_Hant","zh","en"],TZ:["en","fr","es","zh"],UA:["en","ru","fr","es","zh"],UG:["en","fr","es","zh"],US:["en","fr","es","zh"],UY:["es","en","fr","zh"],VA:["en","fr","es","zh"],VC:["en","fr","es","zh"],VE:["es","en","fr","zh"],VG:["en","fr","es","zh"],VN:["vi","en"],VU:["en","fr","es","zh"],WF:["en","fr","es","zh"],WS:["en"],YE:["ar","en","fr","es","zh"],YT:["en","fr","es","zh"],ZA:["en","fr","es","zh"],ZM:["en","fr","es","zh"],ZW:["en"]},Ne={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},Be={DESKTOP:"desktop",MOBILE:"mobile"};(be={}).default={primary:"#333030"},be.white={primary:"#ffffff"},be.black={primary:"#333030"},(Te={}).default={primary:"#003087"},Te.blue={primary:"#003087"},Te.white={primary:"#ffffff"},Te.black={primary:"#333030"},(Ce={}).default={primary:"#c8036f",secondary:"#71706f"},Ce.white={primary:"#ffffff",secondary:"#ffffff"},Ce.black={primary:"#71706F",secondary:"#C8036F"},(Oe={}).default={primary:"#ED1C24",secondary:"#ffffff",tertiary:"#003a7d",quaternary:"#FFFFFF"},Oe.white={primary:"#FFFFFF",secondary:"#000000",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Oe.black={primary:"#ED1C24",secondary:"#FFFFFF",tertiary:"#003a7d",quaternary:"#FFFFFF"},(xe={}).default={primary:"#000000",secondary:"#cd0067",tertiary:"#ffffff"},xe.white={primary:"#ffffff",secondary:"#ffffff",tertiary:"#ffffff"},xe.black={primary:"#000000",secondary:"#FFFFFF",tertiary:"#CD0067"},(Ae={}).default={primary:"#00C0EE",secondary:"#1a4b67"},Ae.white={primary:"#ffffff",secondary:"#ffffff"},Ae.black={primary:"#1A4B67",secondary:"#00C0EE"},(Le={}).default={primary:"#d03238",secondary:"#b3b1b1"},Le.white={primary:"#ffffff",secondary:"#ffffff"},Le.black={primary:"#d03238",secondary:"#b3b1b1"};var Me,ke,Pe=["logoColor"];(Me={}).default={primary:"#003087",secondary:"#009cde"},Me.blue={primary:"#003087",secondary:"#009cde"},Me.white={primary:"#ffffff",secondary:"#ffffff"},Me.black={primary:"#333030",secondary:"#636363"},Me.monochrome={primary:"#000000",secondary:"#000000"};var Re,De,_e,Ue,je,Ie,Ge,He,Ke,We,Ve,Ze,Ye,Je,qe,Xe=((ke={}).default={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},ke.blue={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},ke.white={primary:"#ffffff",primaryOpacity:"0.7",secondary:"#ffffff",secondaryOpacity:"0.7",tertiary:"#ffffff"},ke.black={primary:"#808080",secondary:"#000000",tertiary:"#1a1a1a"},ke);function Qe(e){var n=e.logoColor,r=void 0===n?"default":n,o=F(e,Pe),i=function(e,n,r){var t;if(r&&(t=n[r]),t||(t=n.default),!t)throw new Error("No "+(r||"default")+" logo available for pp");return t}(0,Xe,r),a=i.primary,f=i.secondary,c=i.tertiary,s=i.primaryOpacity,u=void 0===s?"1":s,d=i.secondaryOpacity,l=void 0===d?"1":d,p=i.tertiaryOpacity,y=void 0===p?"1":p;return h(Ee,t({},o,{name:"pp",alt:"PP",role:"presentation",logoColor:r,render:function(){return h("svg",{width:"24",height:"32",viewBox:"0 0 24 32",preserveAspectRatio:"xMinYMin meet",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:a,opacity:u,d:"M 20.924 7.157 C 21.204 5.057 20.924 3.657 19.801 2.357 C 18.583 0.957 16.43 0.257 13.716 0.257 L 5.758 0.257 C 5.29 0.257 4.729 0.757 4.634 1.257 L 1.358 23.457 C 1.358 23.857 1.639 24.357 2.107 24.357 L 6.975 24.357 L 6.694 26.557 C 6.6 26.957 6.881 27.257 7.255 27.257 L 11.375 27.257 C 11.844 27.257 12.311 26.957 12.405 26.457 L 12.405 26.157 L 13.247 20.957 L 13.247 20.757 C 13.341 20.257 13.809 19.857 14.277 19.857 L 14.84 19.857 C 18.864 19.857 21.954 18.157 22.89 13.157 C 23.358 11.057 23.172 9.357 22.048 8.157 C 21.767 7.757 21.298 7.457 20.924 7.157 L 20.924 7.157"}),h("path",{fill:f,opacity:l,d:"M 20.924 7.157 C 21.204 5.057 20.924 3.657 19.801 2.357 C 18.583 0.957 16.43 0.257 13.716 0.257 L 5.758 0.257 C 5.29 0.257 4.729 0.757 4.634 1.257 L 1.358 23.457 C 1.358 23.857 1.639 24.357 2.107 24.357 L 6.975 24.357 L 8.286 16.057 L 8.192 16.357 C 8.286 15.757 8.754 15.357 9.315 15.357 L 11.655 15.357 C 16.243 15.357 19.801 13.357 20.924 7.757 C 20.831 7.457 20.924 7.357 20.924 7.157"}),h("path",{fill:c,opacity:y,d:"M 9.504 7.157 C 9.596 6.857 9.784 6.557 10.065 6.357 C 10.251 6.357 10.345 6.257 10.532 6.257 L 16.711 6.257 C 17.461 6.257 18.208 6.357 18.772 6.457 C 18.958 6.457 19.146 6.457 19.333 6.557 C 19.52 6.657 19.707 6.657 19.801 6.757 C 19.894 6.757 19.987 6.757 20.082 6.757 C 20.362 6.857 20.643 7.057 20.924 7.157 C 21.204 5.057 20.924 3.657 19.801 2.257 C 18.677 0.857 16.525 0.257 13.809 0.257 L 5.758 0.257 C 5.29 0.257 4.729 0.657 4.634 1.257 L 1.358 23.457 C 1.358 23.857 1.639 24.357 2.107 24.357 L 6.975 24.357 L 8.286 16.057 L 9.504 7.157 Z"}))}}))}(Re={}).default={main:"#005DA0",card:"#AEB1BC"},Re.white={main:"#FFFFFF",card:"#FFFFFF"},Re.black={main:"#333030",card:"#333030"},(De={}).default={primary:"#FFFFFF",secondary:"#EB6F93"},De.white={primary:"#FFFFFF",secondary:"#2C2E2F"},De.black={primary:"#FFFFFF",secondary:"#EB6F93"},(_e={}).default={primary:"#3D93CE"},_e.blue={primary:"#3D93CE"},_e.white={primary:"#ffffff"},_e.black={primary:"#333030"},(Ue={}).default={primary:"#ffffff"},Ue.blue={primary:"#003087"},Ue.white={primary:"#ffffff"},Ue.black={primary:"#333030"},(je={}).default={primary:"#1AAD19",secondary:"#4D4D4D"},je.white={primary:"#FFFFFF",secondary:"#FFFFFF"},je.black={primary:"#333030",secondary:"#333030"},(Ie={}).default={primary:"#00A599"},Ie.white={primary:"#FFFFFF"},Ie.black={primary:"#00A599"},(Ge={}).default={primary:"#A6d71c",secondary:"#3C932A",tertiary:"#6CC62E",quaternary:"#278D30"},Ge.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#FFFFFF"},Ge.black={primary:"#333030",secondary:"#333030",tertiary:"#ffffff",quaternary:"#333030"},(He={}).default={primary:"#FFFFFF",secondary:"#CACCC8",tertiary:"#2D59A1",quaternary:"#1F3364",quinary:"#4E4E4E",senary:"#1B4482"},He.white={primary:"#FFFFFF",secondary:"#CACCC8",tertiary:"#2D59A1",quaternary:"#1F3364",quinary:"#4E4E4E",senary:"#1B4482"},He.black={primary:"#000000",secondary:"#000000",tertiary:"#FFFFFF",quaternary:"#FFFFFF",quinary:"#000000",senary:"#000000"},(Ke={}).default={primary:"#4D4D4F",secondary:"#000000",tertiary:"#FF0000",quaternary:"#E83E49",quinary:"#FF00FF",senary:"#FFFFFF"},Ke.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#000000",quinary:"#000000",senary:"#000000"},Ke.black={primary:"#4D4D4F",secondary:"#000000",tertiary:"#FF0000",quaternary:"#E83E49",quinary:"#FF00FF",senary:"#FFFFFF"},(We={}).default={primary:"#020202",secondary:"#64CC07"},We.white={primary:"#FFFFFF",secondary:"#FFFFFF"},We.black={primary:"#000000",secondary:"#000000"},(Ve={}).default={primary:"#EC1D24",secondary:"#EDA42D",tertiary:"#FEFEFE"},Ve.white={primary:"#EC1D24",secondary:"#EDA42D",tertiary:"#FEFEFE"},Ve.black={primary:"#EC1D24",secondary:"#EDA42D",tertiary:"#FEFEFE"},(Ze={}).default={primary:"#1A1919",secondary:"#FFFFFE"},Ze.white={primary:"#1A1919",secondary:"#FFFFFE"},Ze.black={primary:"#1A1919",secondary:"#FFFFFE"},(Ye={}).default={primary:"#004A91",secondary:"#ED1921"},Ye.white={primary:"#004A91",secondary:"#ED1921"},Ye.black={primary:"#004A91",secondary:"#ED1921"},(Je={}).default={primary:"#2D3277",secondary:"#FFFFFF",tertiary:"#009EE3",quaternary:"#009EE3"},Je.white={primary:"#FFFFFF",secondary:"#000000",tertiary:"#FFFFFF",quaternary:"#000000"},Je.black={primary:"#2D3277",secondary:"#FFFFFF",tertiary:"#009EE3",quaternary:"#009EE3"},(qe={}).default={primary:"#373535",secondary:"#1866AB"},qe.white={primary:"#ffffff",secondary:"#ffffff"},qe.black={primary:"#373535",secondary:"#1866AB"};var $e={PILL:"pill",RECT:"rect"},en={CONTAINER:"paypal-auth-button-container",BUTTON:"paypal-auth-button",BUTTON_LABEL:"paypal-auth-button-label-container",LABEL:"paypal-auth-button-label",COLOR:"paypal-auth-button-color",TEXT_COLOR:"paypal-auth-button-text-color",SHAPE:"paypal-auth-button-shape",ENV:"paypal-auth-button-env",TEXT:"paypal-auth-button-text",SPACE:"paypal-auth-button-space",CHECKOUTOVERLAY:"paypal-checkout-overlay",CHECKOUTMODAL:"paypal-checkout-modal",CHECKOUTLOGO:"paypal-checkout-logo",HIDDEN:"hidden",SPINNER_COLOR:"paypal-auth-button-spinner"};function nn(e,n){var r=e.optional,t=e.className;return h("span",{class:[en.TEXT].concat(void 0===t?[]:t).join(" "),optional:r},n)}function rn(){return __PAYPAL_DOMAIN__}var tn=ne((function(){try{return ue()}catch(e){throw new Error('PayPal Payments SDK script not found on page! Expected to find <script src="https://'+__SDK_HOST__+__PATH__+'">\n\n'+function e(n,r){if(void 0===r&&(r=1),r>=3)return"stringifyError stack overflow";try{if(!n)return"<unknown error: "+{}.toString.call(n)+">";if("string"==typeof n)return n;if(n instanceof Error){var t=n&&n.stack,o=n&&n.message;if(t&&o)return-1!==t.indexOf(o)?t:o+"\n"+t;if(t)return t;if(o)return o}return n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}catch(n){return"Error while stringifying error: "+e(n,r+1)}}(e))}}));ne((function(){for(var e={},n=0,r=tn().attributes;n<r.length;n++){var t=r[n];0===t.name.indexOf("data-")&&(e[t.name]=t.value)}return e["data-uid"]=le(),e}));var on=["warn","error"],an=["error","warn","info","debug"],fn=function(e){var n=e.win,r=void 0===n?window:n,t=e.url,o=e.data,i=e.useBlob,a=void 0===i||i;try{var f=JSON.stringify(o);if(!r.navigator.sendBeacon)throw new Error("No sendBeacon available");if(a){var c=new Blob([f],{type:"application/json"});return r.navigator.sendBeacon(t,c)}return r.navigator.sendBeacon(t,f)}catch(e){return!1}},cn=function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])};function sn(e){var n=e.url,r=e.prefix,o=e.logLevel,i=void 0===o?"warn":o,a=e.transport,f=void 0===a?function(e){void 0===e&&(e=window);var n=U(e)?function(e){if(!U(e))throw new Error("Expected window to be same domain");return e}(e):window;return function(e){var r=e.url,t=e.method,o=e.headers,i=e.json,a=e.enableSendBeacon,f=void 0!==a&&a;return N.try((function(){var e=!1;return function(e){var n=e.headers,r=e.enableSendBeacon,t=n&&Object.keys(n).length;return!!(window&&window.navigator.sendBeacon&&!t&&r&&window.Blob)}({headers:o,enableSendBeacon:f})&&(e=function(e){return"https://api2.amplitude.com/2/httpapi"===e}(r)?fn({win:n,url:r,data:i,useBlob:!1}):fn({win:n,url:r,data:i,useBlob:!0})),e||pe({win:n,url:r,method:t,headers:o,json:i})})).then(re)}}():a,c=e.amplitudeApiKey,s=e.flushInterval,u=void 0===s?6e4:s,d=e.enableSendBeacon,l=void 0!==d&&d,h=[],p=[],y=[],v=[],w=[],m=[];function g(e,n,r){if(ce()&&window.console&&window.console.log&&!(an.indexOf(e)>an.indexOf(i))){var t=[n];t.push(r),(r.error||r.warning)&&t.push("\n\n",r.error||r.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,t):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,t)}catch(e){}}}function F(){return N.try((function(){if(ce()&&"file:"!==window.location.protocol&&(h.length||p.length)){for(var e={},r=0;r<v.length;r++)cn(e,(0,v[r])(e));for(var o,i={},a=0;a<m.length;a++)cn(i,(0,m[a])(i));return n&&(o=f({method:"POST",url:n,headers:i,json:{events:h,meta:e,tracking:p},enableSendBeacon:l}).catch(re)),c&&f({method:"POST",url:"https://api2.amplitude.com/2/httpapi",headers:{},json:{api_key:c,events:p.map((function(e){return t({event_type:e.transition_name||"event",event_properties:e},e)}))},enableSendBeacon:l}).catch(re),h=[],p=[],N.resolve(o).then(re)}}))}var E,b,T,C,O=(void 0===b&&(b=50),Y((function(){C&&clearTimeout(C);var e=T=T||new N;return C=setTimeout((function(){T=null,C=null,N.try(E).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),b),e}),Z(E=F)+"::promiseDebounced"));function x(e,n,o){if(void 0===o&&(o={}),!ce())return L;r&&(n=r+"_"+n);for(var i=t({},ie(o),{timestamp:Date.now().toString()}),a=0;a<y.length;a++)cn(i,(0,y[a])(i));return function(e,n,r){h.push({level:e,event:n,payload:r}),-1!==on.indexOf(e)&&O()}(e,n,i),g(e,n,i),L}function A(e,n){return e.push(n),L}ce()&&function(e,n){!function r(){setTimeout((function(){e(),r()}),n)}()}(O,u),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){F()})),window.addEventListener("unload",(function(){F()})),window.addEventListener("pagehide",(function(){F()})));var L={debug:function(e,n){return x("debug",e,n)},info:function(e,n){return x("info",e,n)},warn:function(e,n){return x("warn",e,n)},error:function(e,n){return x("error",e,n)},track:function(e){if(void 0===e&&(e={}),!ce())return L;for(var n=ie(e),r=0;r<w.length;r++)cn(n,(0,w[r])(n));return g("debug","track",n),p.push(n),L},flush:O,immediateFlush:F,addPayloadBuilder:function(e){return A(y,e)},addMetaBuilder:function(e){return A(v,e)},addTrackingBuilder:function(e){return A(w,e)},addHeaderBuilder:function(e){return A(m,e)},setTransport:function(e){return f=e,L},configure:function(e){return e.url&&(n=e.url),e.prefix&&(r=e.prefix),e.logLevel&&(i=e.logLevel),e.transport&&(f=e.transport),e.amplitudeApiKey&&(c=e.amplitudeApiKey),e.flushInterval&&(u=e.flushInterval),e.enableSendBeacon&&(l=e.enableSendBeacon),L}};return L}var un=ne((function(){return sn({url:(e="/xoplatform/logger/api/logger",void 0===e&&(e=""),""+rn()+e)});var e}));ne((function(e){un().info("rest_api_create_access_token");var n,r,t=J(e+":");return pe({method:"post",url:(n="/v1/oauth2/token",void 0===n&&(n=""),""+(r=rn(),"undefined"!=typeof window&&void 0!==window.location&&_()===r?rn():__PAYPAL_API_DOMAIN__)+n),headers:{Authorization:"Basic "+t},data:{grant_type:"client_credentials"}}).then((function(n){var r=n.body;if(r&&"invalid_client"===r.error)throw new Error("Auth Api invalid client id: "+e+":\n\n"+JSON.stringify(r,null,4));if(!r||!r.access_token)throw new Error("Auth Api response error:\n\n"+JSON.stringify(r,null,4));return r.access_token}))})),ne((function(){var e={},n={},r={on:function(e,r){var t=n[e]=n[e]||[];t.push(r);var o=!1;return{cancel:function(){o||(o=!0,t.splice(t.indexOf(r),1))}}},once:function(e,n){var t=r.on(e,(function(){t.cancel(),n()}));return t},trigger:function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];var i=n[e],a=[];if(i)for(var f=function(e){var n=i[e];a.push(N.try((function(){return n.apply(void 0,t)})))},c=0;c<i.length;c++)f(c);return N.all(a).then(re)},triggerOnce:function(n){if(e[n])return N.resolve();e[n]=!0;for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return r.trigger.apply(r,[n].concat(o))},reset:function(){n={}}};return r}));var dn=["paypal","venmo","itau","credit","paylater","applepay","ideal","sepa","bancontact","giropay","eps","sofort","mybank","blik","p24","zimpler","wechatpay","payu","verkkopankki","trustly","oxxo","boleto","maxima","mercadopago","multibanco","card"],ln={LOCALE:{country:ze.US,lang:"en"},INTENT:"capture",ENV:Ne.PRODUCTION,PLATFORM:Be.DESKTOP},hn=te($e),pn=te(ze),yn=te(Ne),vn=te(Be);function wn(e){if(!e)throw new Error("Expected props");var n=e.clientID,r=e.fundingSource,t=e.style,o=e.locale,i=void 0===o?ln.LOCALE:o,a=e.env,f=void 0===a?ln.ENV:a,c=e.platform,s=void 0===c?ln.PLATFORM:c,u=e.sessionID,d=void 0===u?q():u,l=e.authButtonSessionID,h=void 0===l?q():l,p=e.csp,y=void 0===p?{}:p,v=e.nonce,w=e.content,m=void 0===w?"":w,g=e.responseType,F=e.customLabel,E=i.country,b=i.lang;if(!E||-1===pn.indexOf(E))throw new Error("Expected valid country, got "+(E||"undefined"));if(!b||-1===Se[E].indexOf(b))throw new Error("Expected valid lang, got "+(b||"undefined"));if(-1===yn.indexOf(f))throw new Error("Expected valid env, got "+(f||"undefined"));if(-1===vn.indexOf(s))throw new Error("Expected valid platform, got "+(s||"undefined"));if(y&&y.nonce&&(v=y.nonce),r&&-1===dn.indexOf(r))throw new Error("Invalid funding source: "+r);return{clientID:n,fundingSource:r,style:t=function(e,n){if(!n)throw new Error("Expected props.style to be set");var r=["black","blue","darkblue","gold","silver","white"],t=e.fundingSource,o=void 0===t?"paypal":t;"paypal"===o&&(r=["black","blue","darkblue","gold","silver","white"]),"credit"===o&&(r=["darkblue"]);var i=n.label,a=n.color,f=void 0===a?"credit"===o?"darkblue":"blue":a,c=n.shape,s=void 0===c?$e.PILL:c,u=n.height;if(f&&-1===r.indexOf(f))throw new Error("Unexpected style.color for "+o+" button: "+f+", expected "+r.join(", "));if(s&&-1===hn.indexOf(s))throw new Error("Unexpected style.shape for "+o+" button: "+s+", expected "+hn.join(", "));if(void 0!==u){if("number"!=typeof u)throw new TypeError("Expected style.height to be a number, got: "+u);if(u<35||u>50)throw new Error("Expected style.height to be between 35px and 50px - got "+u+"px")}return{label:i,color:f,shape:s,height:u}}(e,t),locale:i,env:f,platform:s,authButtonSessionID:h,sessionID:d,nonce:v,content:m,customLabel:F,responseType:g}}var mn="\n html, body {\n padding: 0;\n margin: 0;\n width: 100%;\n overflow: hidden;\n text-align: center;\n }\n\n body {\n display: inline-block;\n vertical-align: top;\n border-collapse: collapse;\n }\n\n * {\n touch-callout: none;\n user-select: none;\n cursor: default;\n box-sizing: border-box;\n }\n\n ."+en.HIDDEN+" {\n position: absolute;\n visibility: hidden;\n }\n ."+en.SPINNER_COLOR+" {\n background: white;\n }\n\n @media screen and (max-width: 400px) {\n ."+en.BUTTON_LABEL+" {\n width: 100%;\n }\n }\n \n /* Media query for desktop viewport */\n @media screen and (min-width: 400px) {\n ."+en.BUTTON_LABEL+" {\n max-width: 250px;\n font-size: 14px;\n margin-top: 27px;\n }\n }\n\n @media only screen and (min-width: 0px) {\n body {\n font-size: 12px;\n }\n }\n\n @media only screen and (min-width: 300px) {\n body {\n font-size: 16px;\n }\n }\n\n @media only screen and (min-width: 500px) {\n body {\n font-size: 18px;\n }\n }\n\n @media only screen and (min-width: 800px) {\n body {\n font-size: 22px;\n }\n }\n\n @media only screen and (min-width: 800px) {\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n height: 25px;\n font-size: 22px;\n }\n }\n @media only screen and (min-width: 0px) {\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n height: 21px;\n font-size: 12px;\n }\n }\n\n @media only screen and (min-width: 300px) {\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n height: 23px;\n font-size: 16px;\n }\n }\n\n @media only screen and (min-width: 500px) {\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n height: 25px;\n font-size: 18px;\n }\n }\n",gn="\n\n ."+en.CONTAINER+' {\n display: block;\n white-space: nowrap;\n margin: 0;\n background: 0;\n border: 0;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n text-transform: none;\n font-weight: 500;\n font-smoothing: antialiased;\n z-index: 0;\n min-width: 200px;\n \n height: 100%;\n box-sizing: border-box;\n\n }\n\n .'+en.BUTTON+" {\n border: 1px solid transparent;\n border-radius: 3px;\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n vertical-align: top;\n cursor: pointer;\n overflow: hidden;\n }\n\n ."+en.BUTTON+" * {\n cursor: pointer;\n }\n\n ."+en.CONTAINER+"."+en.ENV+"-"+Ne.TEST+" ."+en.TEXT+" {\n font-family: Arial !important;\n background: rgba(0, 0, 0, 0.5) !important;\n color: transparent !important;\n text-shadow: none !important;\n }\n\n .paypal-logo {\n padding: 0px;\n display: inline-block;\n background: none;\n border: none;\n width: auto;\n }\n\n ."+en.TEXT+", ."+en.SPACE+" {\n display: inline-block;\n white-space: pre;\n padding-left:7px;\n }\n\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n }\n\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" > * {\n vertical-align: middle;\n height: 100%;\n text-align: left;\n }\n \n ."+en.SHAPE+"-"+$e.PILL+" {\n border-radius: 50px;\n }\n ."+en.CHECKOUTOVERLAY+" > ."+en.CHECKOUTMODAL+" > ."+en.CHECKOUTLOGO+" {\n margin-bottom: 0px; !important;\n }\n",Fn="\n\n\n ."+en.BUTTON+"."+en.TEXT_COLOR+"-black {\n color: #2C2E2F;\n }\n\n ."+en.BUTTON+"."+en.TEXT_COLOR+"-white {\n color: #fff;\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-gold {\n background: #ffc439;\n color: #111;\n }\n ."+en.BUTTON+"."+en.COLOR+"-gold:hover {\n filter: brightness(0.95);\n\n }\n ."+en.BUTTON+"."+en.COLOR+"-gold:focus {\n outline: none;\n box-shadow: 0px 0px 1px 3px #0c67ff inset;\n }\n\n\n ."+en.BUTTON+"."+en.COLOR+"-blue {\n background: #0070BA;\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-blue:hover {\n filter: brightness(0.95);\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-blue:focus {\n outline: none;\n box-shadow: 0px 0px 1px 3px #0c67ff inset;\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-darkblue {\n background: #003087;\n }\n ."+en.BUTTON+"."+en.COLOR+"-darkblue:hover {\n filter: brightness(1.2);\n }\n ."+en.BUTTON+"."+en.COLOR+"-darkblue:focus {\n outline: none;\n box-shadow: 0px 0px 1px 3px #0c67ff inset;\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-silver {\n background: #eeeeee;\n color: #111;\n }\n ."+en.BUTTON+"."+en.COLOR+"-silver:hover {\n filter: brightness(1.9);\n background: #000020;\n }\n ."+en.BUTTON+"."+en.COLOR+"-silver:focus {\n outline: none;\n background: #000020;\n box-shadow: 0px 0px 1px 3px #0c67ff inset;\n }\n";function En(e){return h("style",{nonce:e.nonce,innerHTML:"\n "+mn+"\n "+gn+"\n "+Fn+"\n \n @keyframes show-text {\n 0% { \n max-width: 0%;\n opacity: 0;\n overflow: hidden;\n }\n 100% { \n max-width: 100%;\n opacity: 1;\n }\n }\n\n "})}function bn(e){wn(e)}function Tn(e){var n=e.style.color,r=void 0===n?"blue":n;if("blue"===r||"darkblue"===r||"black"===r)return h(Qe,{logoColor:"white"});if("gold"===r||"white"===r||"silver"===r)return h(Qe,{logoColor:"blue"});throw new Error("Unsupported color (PP logo): "+r)}function Cn(e){var n=e.style.label,r=e.content;if(!n)return h(nn,null,"Log in with PayPal");if(n)return h(nn,null,n);throw new Error("Unsupported button label: "+(n||r))}function On(e){var n,r=e.onClick,o=void 0===r?re:r,i=wn(e),a=i.fundingSource,f=i.style,c=i.env,s=i.nonce,u=i.customLabel,d=f.shape,l=f.color,p=function(e,n){e.preventDefault(),e.stopPropagation(),e.target.blur(),o(e,t({fundingSource:a},n))};return h("div",{class:[en.CONTAINER,en.SHAPE+"-"+d,en.ENV+"-"+c].join(" ")},h(En,{nonce:s,style:f}),h("div",t({role:"button"},((n={})["data-button"]=!0,n["data-funding-source"]=a,n),{class:[en.BUTTON,en.SHAPE+"-"+d,en.ENV+"-"+c,en.COLOR+"-"+l,en.TEXT_COLOR+"-white"].join(" "),onClick:p,onKeyPress:function(e,n){13!==e.keyCode&&32!==e.keyCode||p(e,n)},tabindex:"0"}),u&&h("div",{class:en.BUTTON_LABEL},h(Tn,{style:f}),h(Cn,{style:f,content:u}))))}}]);
module.exports=function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return{}.hasOwnProperty.call(e,n)},r.p="",r(r.s=0)}([function(e,n,r){"use strict";function t(){return(t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)({}).hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(this,arguments)}function o(e,n){for(var r=[],t=0;t<e.length;t++){var o=e[t].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&r.push(a)}else r.push(o)}return r}r.r(n),r.d(n,"validateButtonProps",(function(){return bn})),r.d(n,"AuthButton",(function(){return On})),r.d(n,"DEFAULT_PROPS",(function(){return ln}));var i=function(){function e(e,n,r){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=n||{},this.children=r;var t=this.props.onRender;"function"==typeof t&&(this.onRender=t,delete n.onRender)}var n=e.prototype;return n.render=function(e){var n=e(this);return this.onRender&&this.onRender(n),n},n.renderChildren=function(e){return o(this.children,e)},e}(),a=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return o(this.children,e)},e}(),f=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),c=function(){function e(e,n,r){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=n||{},this.children=r,this.props.children=r}var n=e.prototype;return n.renderComponent=function(e){var n=function(e){var n=s(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new a(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 o(this.children,e)},e}();function s(e){for(var n=[],r=0;r<e.length;r++){var t=e[r];if(t)if("string"==typeof t||"number"==typeof t)n.push(new f(t.toString()));else{if("boolean"==typeof t)continue;if(Array.isArray(t))for(var o=0,i=s(t);o<i.length;o++)n.push(i[o]);else{if(!t||"element"!==t.type&&"text"!==t.type&&"component"!==t.type)throw new TypeError("Unrecognized node type: "+typeof t);n.push(t)}}}return n}var u,d,l,h=function(e,n){for(var r=arguments.length,t=new Array(r>2?r-2:0),o=2;o<r;o++)t[o-2]=arguments[o];if(t=s(t),"string"==typeof e)return new i(e,n,t);if("function"==typeof e)return new c(e,n,t);throw new TypeError("Expected jsx element to be a string or a function")},p=((u={}).svg="http://www.w3.org/2000/svg",u),y=((d={})["xlink:href"]="http://www.w3.org/1999/xlink",d);function F(e,n){return e.createTextNode(n.text)}function v(e,n){for(var r=n.props,t=0,o=Object.keys(r);t<o.length;t++){var i=o[t],a=r[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)e.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var f=y[i];f?e.setAttributeNS(f,i,a.toString()):e.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||r.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var w=((l={}).iframe=function(e,n){var r=n.children[0];if(1!==n.children.length||!r||"element"!==r.type||"html"!==r.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var n=e.contentWindow;if(!n)throw new Error("Expected frame to have contentWindow");for(var t=n.document,o=t.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=r.render(function(e){void 0===e&&(e={});var n=e.doc,r=void 0===n?document:n;return function e(n){if("component"===n.type)return n.renderComponent(e);if("text"===n.type)return F(r,n);if("element"===n.type){var t=p[n.name.toLowerCase()];if(t)return function e(n,t){if("component"===n.type)return n.renderComponent((function(n){return e(n,t)}));if("text"===n.type)return F(r,n);if("element"===n.type){var o=function(e,n,r){return e.createElementNS(r,n.name)}(r,n,t);return v(o,n),m(o,n,r,(function(n){return e(n,t)})),o}throw new TypeError("Unhandleable node")}(n,t);var o=function(e,n){return n.props.el?n.props.el:e.createElement(n.name)}(r,n);return v(o,n),m(o,n,r,e),o}throw new TypeError("Unhandleable node")}}({doc:t}));i.children.length;)o.appendChild(i.children[0])}))},l.script=function(e,n){var r=n.children[0];if(1!==n.children.length||!r||"text"!==r.type)throw new Error("Expected only single text node as child of script element");e.text=r.text},l.default=function(e,n,r){for(var t=0,o=n.renderChildren(r);t<o.length;t++)e.appendChild(o[t])},l);function m(e,n,r,t){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var r=0,t=e.querySelectorAll("script");r<t.length;r++){var o=t[r],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,r))}else(w[n.name]||w.default)(e,n,t)}function g(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n.indexOf(r=i[t])>=0||(o[r]=e[r]);return o}var E={br:!0};function b(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}function T(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var r=n.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}var C,O=[],x=[],A=0;function L(){if(!A&&C){var e=C;C=null,e.resolve()}}function z(){A+=1}function S(){A-=1,L()}var N=function(){function e(e){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var r,t,o=!1,i=!1,a=!1;z();try{e((function(e){a?n.resolve(e):(o=!0,r=e)}),(function(e){a?n.reject(e):(i=!0,t=e)}))}catch(e){return S(),void this.reject(e)}S(),a=!0,o?this.resolve(r):i&&this.reject(t)}}var n=e.prototype;return n.resolve=function(e){if(this.resolved||this.rejected)return this;if(T(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},n.reject=function(e){var n=this;if(this.resolved||this.rejected)return this;if(T(e))throw new Error("Can not reject promise with another promise");if(!e){var r=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+r)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout((function(){n.errorHandled||function(e,n){if(-1===O.indexOf(e)){O.push(e),setTimeout((function(){throw e}),1);for(var r=0;r<x.length;r++)x[r](e,n)}}(e,n)}),1),this.dispatch(),this},n.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},n.dispatch=function(){var n=this.resolved,r=this.rejected,t=this.handlers;if(!this.dispatching&&(n||r)){this.dispatching=!0,z();for(var o=function(e,n){return e.then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))},i=0;i<t.length;i++){var a=t[i],f=a.onSuccess,c=a.onError,s=a.promise,u=void 0;if(n)try{u=f?f(this.value):this.value}catch(e){s.reject(e);continue}else if(r){if(!c){s.reject(this.error);continue}try{u=c(this.error)}catch(e){s.reject(e);continue}}if(u instanceof e&&(u.resolved||u.rejected)){var d=u;d.resolved?s.resolve(d.value):s.reject(d.error),d.errorHandled=!0}else T(u)?u instanceof e&&(u.resolved||u.rejected)?u.resolved?s.resolve(u.value):s.reject(u.error):o(u,s):s.resolve(u)}t.length=0,this.dispatching=!1,S()}},n.then=function(n,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw new Error("Promise.then expected a function for error handler");var t=new e;return this.handlers.push({promise:t,onSuccess:n,onError:r}),this.errorHandled=!0,this.dispatch(),t},n.catch=function(e){return this.then(void 0,e)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(r){return e.try(n).then((function(){return r}))}),(function(r){return e.try(n).then((function(){throw r}))}))},n.timeout=function(e,n){var r=this;if(this.resolved||this.rejected)return this;var t=setTimeout((function(){r.resolved||r.rejected||r.reject(n||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(t),e}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(n){return n instanceof e?n:T(n)?new e((function(e,r){return n.then(e,r)})):(new e).resolve(n)},e.reject=function(n){return(new e).reject(n)},e.asyncReject=function(n){return(new e).asyncReject(n)},e.all=function(n){var r=new e,t=n.length,o=[].slice();if(!t)return r.resolve(o),r;for(var i=function(e,n,i){return n.then((function(n){o[e]=n,0==(t-=1)&&r.resolve(o)}),(function(e){i.reject(e)}))},a=0;a<n.length;a++){var f=n[a];if(f instanceof e){if(f.resolved){o[a]=f.value,t-=1;continue}}else if(!T(f)){o[a]=f,t-=1;continue}i(a,e.resolve(f),r)}return 0===t&&r.resolve(o),r},e.hash=function(n){var r={},t=[],o=function(e){if(n.hasOwnProperty(e)){var o=n[e];T(o)?t.push(o.then((function(n){r[e]=n}))):r[e]=o}};for(var i in n)o(i);return e.all(t).then((function(){return r}))},e.map=function(n,r){return e.all(n.map(r))},e.onPossiblyUnhandledException=function(e){return function(e){return x.push(e),{cancel:function(){x.splice(x.indexOf(e),1)}}}(e)},e.try=function(n,r,t){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;z();try{o=n.apply(r,t||[])}catch(n){return S(),e.reject(n)}return S(),e.resolve(o)},e.delay=function(n){return new e((function(e){setTimeout(e,n)}))},e.isPromise=function(n){return!!(n&&n instanceof e)||T(n)},e.flush=function(){return n=C=C||new e,L(),n;var n},e}(),B="Call was rejected by callee.\r\n";function M(e){return void 0===e&&(e=window),e.location.protocol}function k(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return M(e)}function P(e){return void 0===e&&(e=window),"about:"===k(e)}function R(e){try{return!0}catch(e){}return!1}function D(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var r=M(e);if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var t=function(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}(e);return t&&R()?D(t):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return r+"//"+o}function _(e){void 0===e&&(e=window);var n=D(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function U(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(P(e)&&R())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===k(e)}(e)&&R())return!0}catch(e){}try{if(D(e)===D(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(P(e)&&R())return!0;if(_(window)===_(e))return!0}catch(e){}return!1}var j=[],I=[];function G(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==B}if(n&&U(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var r=function(e,n){for(var r=0;r<e.length;r++)try{if(e[r]===n)return r}catch(e){}return-1}(j,e);if(-1!==r){var t=I[r];if(t&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!n.documentElement.contains(r.host))return!0}return!1}(t))return!0}return!1}function H(e){try{if(e===window)return!0}catch(e){if(e&&e.message===B)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===B)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===B)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===B)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===B)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===B)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function K(e,n){for(var r=0;r<e.length;r++)try{if(e[r]===n)return r}catch(e){}return-1}var W,V=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>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,r=0;r<n.length;r++){var t=n[r];if(H(t)&&G(t)){if(e)try{e.delete(t)}catch(e){}n.splice(r,1),this.values.splice(r,1),r-=1}}},n.isSafeToReadWrite=function(e){return!H(e)},n.set=function(e,n){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,n)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=this.name,o=e[t];return void(o&&o[0]===e?o[1]=n:Object.defineProperty(e,t,{value:[e,n],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,f=K(i,e);-1===f?(i.push(e),a.push(n)):a[f]=n},n.get=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return n.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return r&&r[0]===e?r[1]:void 0}catch(e){}this._cleanupClosedWindows();var t=K(this.keys,e);if(-1!==t)return this.values[t]},n.delete=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];r&&r[0]===e&&(r[0]=r[1]=void 0)}catch(e){}this._cleanupClosedWindows();var t=this.keys,o=K(t,e);-1!==o&&(t.splice(o,1),this.values.splice(o,1))},n.has=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return!(!r||r[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==K(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var r=n();return this.set(e,r),r},e}();function Z(e){return e.name||e.__name__||e.displayName||"anonymous"}function q(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function Y(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function J(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+Y((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function X(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(W=W||new V,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=W.get(e);return n||(n=typeof e+":"+J(),W.set(e,n)),n}(n)+"]":function(e){var n=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(n=!0)}catch(e){}return n}(n)?{}:n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function Q(){return{}}var $=0,ee=0;function ne(e,n){void 0===n&&(n={});var r,t,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,f=$;$+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s,u;f<ee&&(r=null,t=null,f=$,$+=1),s=i?(t=t||new V).getOrSet(this,Q):r=r||{};try{u=X(o)}catch(n){return e.apply(this,arguments)}var d=s[u];if(d&&a&&Date.now()-d.time<a&&(delete s[u],d=null),d)return d.value;var l=Date.now(),h=e.apply(this,arguments);return s[u]={time:l,value:h},h};return c.reset=function(){r=null,t=null},q(c,(n.name||Z(e))+"::memoized")}function re(){}function te(e){if(Object.values)return Object.values(e);var n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(e[r]);return n}function oe(e){return"data:image/svg+xml;base64,"+Y(e)}function ie(e,n){void 0===n&&(n=Boolean);var r={};for(var t in e)e.hasOwnProperty(t)&&n(e[t],t)&&(r[t]=e[t]);return r}function ae(){return Boolean(document.body)&&"complete"===document.readyState}function fe(){return Boolean(document.body)&&"interactive"===document.readyState}function ce(){return"undefined"!=typeof window&&void 0!==window.location}ne.clear=function(){ee=$},ne(te),Error,ne((function(){return new N((function(e){if(ae()||fe())return e();var n=setInterval((function(){if(ae()||fe())return clearInterval(n),e()}),10)}))}));var se="undefined"!=typeof document?document.currentScript:null,ue=ne((function(){if(se)return se;if(se=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=n&&n[1];if(!r)return;for(var t=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();t<o.length;t++){var i=o[t];if(i.src&&i.src===r)return i}}catch(e){}}())return se;throw new Error("Can not determine current script")})),de=J(),le=ne((function(){var e;try{e=ue()}catch(e){return de}var n=e.getAttribute("data-uid");if(n&&"string"==typeof n)return n;if((n=e.getAttribute("data-uid-auto"))&&"string"==typeof n)return n;if(e.src){var r=function(e){for(var n="",r=0;r<e.length;r++){var t=e[r].charCodeAt(0)*r;e[r+1]&&(t+=e[r+1].charCodeAt(0)*(r-1)),n+=String.fromCharCode(97+Math.abs(t)%26)}return n}(JSON.stringify({src:e.src,dataset:e.dataset}));n="uid_"+r.slice(r.length-30)}else n=J();return e.setAttribute("data-uid-auto",n),n})),he=[];function pe(e){var n=e.url,r=e.method,t=void 0===r?"get":r,o=e.headers,i=void 0===o?{}:o,a=e.json,f=e.data,c=e.body,s=e.win,u=void 0===s?window:s,d=e.timeout,l=void 0===d?0:d;return new N((function(e,r){if(a&&f||a&&c||f&&a)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,d=Object.keys(i);s<d.length;s++){var h=d[s];o[h.toLowerCase()]=i[h]}a?o["content-type"]=o["content-type"]||"application/json":(f||c)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var p=0;p<he.length;p++)for(var y=(0,he[p])(),F=0,v=Object.keys(y);F<v.length;F++){var w=v[F];o[w.toLowerCase()]=y[w]}var m=new u.XMLHttpRequest;for(var g in m.addEventListener("load",(function(){var o=function(e){void 0===e&&(e="");for(var n={},r=0,t=e.trim().split("\n");r<t.length;r++){var o=t[r].split(":"),i=o[0],a=o.slice(1);n[i.toLowerCase()]=a.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return r(new Error("Request to "+t.toLowerCase()+" "+n+" failed: no response status code."));var i=o["content-type"],a=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),f=this.responseText;try{f=JSON.parse(f)}catch(e){if(a)return r(new Error("Invalid json: "+this.responseText+"."))}return e({status:this.status,headers:o,body:f})}),!1),m.addEventListener("error",(function(e){r(new Error("Request to "+t.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),m.open(t,n,!0),o)o.hasOwnProperty(g)&&m.setRequestHeader(g,o[g]);a?c=JSON.stringify(a):f&&(c=Object.keys(f).map((function(e){return encodeURIComponent(e)+"="+(f?encodeURIComponent(f[e]):"")})).join("&")),m.timeout=l,m.ontimeout=function(){r(new Error("Request to "+t.toLowerCase()+" "+n+" has timed out"))},m.send(c)}))}var ye,Fe,ve,we=["svg"],me=["render","name","logoColor"];function ge(e){var n=e.svg,r=g(e,we);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 r=(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""+b(e);if("string"!=typeof n&&"number"!=typeof n)throw new TypeError("Unexpected prop type: "+typeof n);return""===n?b(e):b(e)+'="'+b(n.toString())+'"'})).join(" "):"");if(E[n.name])return"<"+n.name+r+" />";var t="string"==typeof n.props.innerHTML?n.props.innerHTML:n.renderChildren(e).join("");return"<"+n.name+r+">"+t+"</"+n.name+">"}var o,i;if("text"===n.type)return b(n.text);throw new TypeError("Unhandleable node: "+n.type)}))))throw new TypeError("Expected svg prop to be a string or jsx node");var o=t({src:oe(n)},r);return h("img",o)}function Ee(e){var n=e.render,r=e.name,o=e.logoColor,i=g(e,me);return h(ge,t({},i,{svg:n(),alt:"",class:"paypal-logo paypal-logo-"+r+" "+(o?"paypal-logo-color-"+o:"")}))}(ye={}).default={primary:"#ffffff",secondary:"#ffffff"},ye.white={primary:"#ffffff",secondary:"#ffffff"},ye.black={primary:"#000000",secondary:"#000000"},(Fe={}).default={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Fe.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Fe.black={primary:"#1E3764",secondary:"#005AB9",tertiary:"#FBA900",quaternary:"#FFD800"},(ve={}).default={primary:"#333030"},ve.white={primary:"#ffffff"},ve.black={primary:"#333030"};var be,Te,Ce,Oe,xe,Ae,Le,ze={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},Se={AD:["en","fr","es","zh"],AE:["en","fr","es","zh","ar"],AG:["en","fr","es","zh"],AI:["en","fr","es","zh"],AL:["sq","en"],AM:["en","fr","es","zh"],AN:["en","fr","es","zh"],AO:["en","fr","es","zh"],AR:["es","en"],AT:["de","en"],AU:["en"],AW:["en","fr","es","zh"],AZ:["en","fr","es","zh"],BA:["en"],BB:["en","fr","es","zh"],BE:["en","nl","fr"],BF:["fr","en","es","zh"],BG:["bg","en"],BH:["ar","en","fr","es","zh"],BI:["fr","en","es","zh"],BJ:["fr","en","es","zh"],BM:["en","fr","es","zh"],BN:["ms","en"],BO:["es","en","fr","zh"],BR:["pt","en"],BS:["en","fr","es","zh"],BT:["en"],BW:["en","fr","es","zh"],BY:["en"],BZ:["en","es","fr","zh"],CA:["en","fr"],CD:["fr","en","es","zh"],CG:["en","fr","es","zh"],CH:["de","fr","en"],CI:["fr","en"],CK:["en","fr","es","zh"],CL:["es","en","fr","zh"],CM:["fr","en"],CN:["zh"],CO:["es","en","fr","zh"],CR:["es","en","fr","zh"],CV:["en","fr","es","zh"],CY:["en"],CZ:["cs","en"],DE:["de","en"],DJ:["fr","en","es","zh"],DK:["da","en"],DM:["en","fr","es","zh"],DO:["es","en","fr","zh"],DZ:["ar","en","fr","es","zh"],EC:["es","en","fr","zh"],EE:["et","en","ru"],EG:["ar","en","fr","es","zh"],ER:["en","fr","es","zh"],ES:["es","en"],ET:["en","fr","es","zh"],FI:["fi","en"],FJ:["en","fr","es","zh"],FK:["en","fr","es","zh"],FM:["en"],FO:["da","en","fr","es","zh"],FR:["fr","en"],GA:["fr","en","es","zh"],GB:["en"],GD:["en","fr","es","zh"],GE:["en","fr","es","zh"],GF:["en","fr","es","zh"],GI:["en","fr","es","zh"],GL:["da","en","fr","es","zh"],GM:["en","fr","es","zh"],GN:["fr","en","es","zh"],GP:["en","fr","es","zh"],GR:["el","en"],GT:["es","en","fr","zh"],GW:["en","fr","es","zh"],GY:["en","fr","es","zh"],HK:["en","zh_Hant","zh"],HN:["es","en","fr","zh"],HR:["en"],HU:["hu","en"],ID:["id","en"],IE:["en","fr","es","zh"],IL:["he","en"],IN:["en"],IS:["en"],IT:["it","en"],JM:["en","es","fr","zh"],JO:["ar","en","fr","es","zh"],JP:["ja","en"],KE:["en","fr","es","zh"],KG:["en","fr","es","zh"],KH:["en"],KI:["en","fr","es","zh"],KM:["fr","en","es","zh"],KN:["en","fr","es","zh"],KR:["ko","en"],KW:["ar","en","fr","es","zh"],KY:["en","fr","es","zh"],KZ:["en","fr","es","zh"],LA:["en"],LC:["en","fr","es","zh"],LI:["en","fr","es","zh"],LK:["si","en"],LS:["en","fr","es","zh"],LT:["lt","en","ru","zh"],LU:["en","de","fr","es","zh"],LV:["lv","en","ru"],MA:["ar","en","fr","es","zh"],MC:["fr","en"],MD:["en"],ME:["en"],MG:["en","fr","es","zh"],MH:["en","fr","es","zh"],MK:["en"],ML:["fr","en","es","zh"],MN:["en"],MQ:["en","fr","es","zh"],MR:["en","fr","es","zh"],MS:["en","fr","es","zh"],MT:["en"],MU:["en","fr","es","zh"],MV:["en"],MW:["en","fr","es","zh"],MX:["es","en"],MY:["ms","en"],MZ:["en","fr","es","zh"],NA:["en","fr","es","zh"],NC:["en","fr","es","zh"],NE:["fr","en","es","zh"],NF:["en","fr","es","zh"],NG:["en"],NI:["es","en","fr","zh"],NL:["nl","en"],NO:["no","en"],NP:["en"],NR:["en","fr","es","zh"],NU:["en","fr","es","zh"],NZ:["en","fr","es","zh"],OM:["ar","en","fr","es","zh"],PA:["es","en","fr","zh"],PE:["es","en","fr","zh"],PF:["en","fr","es","zh"],PG:["en","fr","es","zh"],PH:["tl","en"],PL:["pl","en"],PM:["en","fr","es","zh"],PN:["en","fr","es","zh"],PT:["pt","en"],PW:["en","fr","es","zh"],PY:["es","en"],QA:["en","fr","es","zh","ar"],RE:["en","fr","es","zh"],RO:["ro","en"],RS:["en","fr","es","zh"],RU:["ru","en"],RW:["fr","en","es","zh"],SA:["ar","en","fr","es","zh"],SB:["en","fr","es","zh"],SC:["fr","en","es","zh"],SE:["sv","en"],SG:["en"],SH:["en","fr","es","zh"],SI:["sl","en"],SJ:["en","fr","es","zh"],SK:["sk","en"],SL:["en","fr","es","zh"],SM:["en","fr","es","zh"],SN:["fr","en","es","zh"],SO:["en","fr","es","zh"],SR:["en","fr","es","zh"],ST:["en","fr","es","zh"],SV:["es","en","fr","zh"],SZ:["en","fr","es","zh"],TC:["en","fr","es","zh"],TD:["fr","en","es","zh"],TG:["fr","en","es","zh"],TH:["th","en"],TJ:["en","fr","es","zh"],TM:["en","fr","es","zh"],TN:["ar","en","fr","es","zh"],TO:["en"],TR:["tr","en"],TT:["en","fr","es","zh"],TV:["en","fr","es","zh"],TW:["zh_Hant","zh","en"],TZ:["en","fr","es","zh"],UA:["en","ru","fr","es","zh"],UG:["en","fr","es","zh"],US:["en","fr","es","zh"],UY:["es","en","fr","zh"],VA:["en","fr","es","zh"],VC:["en","fr","es","zh"],VE:["es","en","fr","zh"],VG:["en","fr","es","zh"],VN:["vi","en"],VU:["en","fr","es","zh"],WF:["en","fr","es","zh"],WS:["en"],YE:["ar","en","fr","es","zh"],YT:["en","fr","es","zh"],ZA:["en","fr","es","zh"],ZM:["en","fr","es","zh"],ZW:["en"]},Ne={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},Be={DESKTOP:"desktop",MOBILE:"mobile"};(be={}).default={primary:"#333030"},be.white={primary:"#ffffff"},be.black={primary:"#333030"},(Te={}).default={primary:"#003087"},Te.blue={primary:"#003087"},Te.white={primary:"#ffffff"},Te.black={primary:"#333030"},(Ce={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Ce.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Ce.black={primary:"#C8036F",secondary:"#71706F"},(Oe={}).default={primary:"#FFFFFF",secondary:"#003A7D",tertiary:"#ED1C24",quaternary:"#FFFFFF",quinary:"#FFFFFF"},Oe.white={primary:"#000000",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#000000",quinary:"#FFFFFF"},Oe.black={primary:"#FFFFFF",secondary:"#003A7D",tertiary:"#ED1C24",quaternary:"#FFFFFF",quinary:"#003A7D"},(xe={}).default={primary:"#FFFFFF",secondary:"#CC0066"},xe.white={primary:"#FFFFFF",secondary:"#CC0066"},xe.black={primary:"#FFFFFF",secondary:"#CC0066"},(Ae={}).default={primary:"#00C0EE",secondary:"#FFFFFF"},Ae.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Ae.black={primary:"#00C0EE",secondary:"#1A4B67"},(Le={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Le.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Le.black={primary:"#B3B1B1",secondary:"#D03238"};var Me,ke,Pe=["logoColor"];(Me={}).default={primary:"#003087",secondary:"#009cde"},Me.blue={primary:"#003087",secondary:"#009cde"},Me.white={primary:"#ffffff",secondary:"#ffffff"},Me.black={primary:"#333030",secondary:"#636363"},Me.monochrome={primary:"#000000",secondary:"#000000"};var Re,De,_e,Ue,je,Ie,Ge,He,Ke,We,Ve,Ze,qe,Ye,Je,Xe=((ke={}).default={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},ke.blue={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},ke.white={primary:"#ffffff",primaryOpacity:"0.7",secondary:"#ffffff",secondaryOpacity:"0.7",tertiary:"#ffffff"},ke.black={primary:"#808080",secondary:"#000000",tertiary:"#1a1a1a"},ke);function Qe(e){var n=e.logoColor,r=void 0===n?"default":n,o=g(e,Pe),i=function(e,n,r){var t;if(r&&(t=n[r]),t||(t=n.default),!t)throw new Error("No "+(r||"default")+" logo available for pp");return t}(0,Xe,r),a=i.primary,f=i.secondary,c=i.tertiary,s=i.primaryOpacity,u=void 0===s?"1":s,d=i.secondaryOpacity,l=void 0===d?"1":d,p=i.tertiaryOpacity,y=void 0===p?"1":p;return h(Ee,t({},o,{name:"pp",alt:"PP",role:"presentation",logoColor:r,render:function(){return h("svg",{width:"24",height:"32",viewBox:"0 0 24 32",preserveAspectRatio:"xMinYMin meet",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:a,opacity:u,d:"M 20.924 7.157 C 21.204 5.057 20.924 3.657 19.801 2.357 C 18.583 0.957 16.43 0.257 13.716 0.257 L 5.758 0.257 C 5.29 0.257 4.729 0.757 4.634 1.257 L 1.358 23.457 C 1.358 23.857 1.639 24.357 2.107 24.357 L 6.975 24.357 L 6.694 26.557 C 6.6 26.957 6.881 27.257 7.255 27.257 L 11.375 27.257 C 11.844 27.257 12.311 26.957 12.405 26.457 L 12.405 26.157 L 13.247 20.957 L 13.247 20.757 C 13.341 20.257 13.809 19.857 14.277 19.857 L 14.84 19.857 C 18.864 19.857 21.954 18.157 22.89 13.157 C 23.358 11.057 23.172 9.357 22.048 8.157 C 21.767 7.757 21.298 7.457 20.924 7.157 L 20.924 7.157"}),h("path",{fill:f,opacity:l,d:"M 20.924 7.157 C 21.204 5.057 20.924 3.657 19.801 2.357 C 18.583 0.957 16.43 0.257 13.716 0.257 L 5.758 0.257 C 5.29 0.257 4.729 0.757 4.634 1.257 L 1.358 23.457 C 1.358 23.857 1.639 24.357 2.107 24.357 L 6.975 24.357 L 8.286 16.057 L 8.192 16.357 C 8.286 15.757 8.754 15.357 9.315 15.357 L 11.655 15.357 C 16.243 15.357 19.801 13.357 20.924 7.757 C 20.831 7.457 20.924 7.357 20.924 7.157"}),h("path",{fill:c,opacity:y,d:"M 9.504 7.157 C 9.596 6.857 9.784 6.557 10.065 6.357 C 10.251 6.357 10.345 6.257 10.532 6.257 L 16.711 6.257 C 17.461 6.257 18.208 6.357 18.772 6.457 C 18.958 6.457 19.146 6.457 19.333 6.557 C 19.52 6.657 19.707 6.657 19.801 6.757 C 19.894 6.757 19.987 6.757 20.082 6.757 C 20.362 6.857 20.643 7.057 20.924 7.157 C 21.204 5.057 20.924 3.657 19.801 2.257 C 18.677 0.857 16.525 0.257 13.809 0.257 L 5.758 0.257 C 5.29 0.257 4.729 0.657 4.634 1.257 L 1.358 23.457 C 1.358 23.857 1.639 24.357 2.107 24.357 L 6.975 24.357 L 8.286 16.057 L 9.504 7.157 Z"}))}}))}(Re={}).default={main:"#005DA0",card:"#AEB1BC"},Re.white={main:"#FFFFFF",card:"#FFFFFF"},Re.black={main:"#333030",card:"#333030"},(De={}).default={primary:"#EDEDED",secondary:"#393A41"},De.white={primary:"#FFFFFF",secondary:"#000000"},De.black={primary:"#393A41",secondary:"#EDEDED"},(_e={}).default={primary:"#3D93CE"},_e.blue={primary:"#3D93CE"},_e.white={primary:"#ffffff"},_e.black={primary:"#333030"},(Ue={}).default={primary:"#ffffff"},Ue.blue={primary:"#003087"},Ue.white={primary:"#ffffff"},Ue.black={primary:"#333030"},(je={}).default={primary:"#1AAD19",secondary:"#FFFFFF"},je.white={primary:"#FFFFFF",secondary:"#FFFFFF"},je.black={primary:"#1AAD19",secondary:"#4D4D4D"},(Ie={}).default={primary:"#00A599"},Ie.white={primary:"#FFFFFF"},Ie.black={primary:"#00A599"},(Ge={}).default={primary:"#A6d71c",secondary:"#3C932A",tertiary:"#6CC62E",quaternary:"#278D30"},Ge.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#FFFFFF"},Ge.black={primary:"#333030",secondary:"#333030",tertiary:"#ffffff",quaternary:"#333030"},(He={}).default={primary:"#2D59A1",secondary:"#1F3364",tertiary:"#FFFFFF",quaternary:"#CACCC8",quinary:"#FFFFFF",senary:"#FFFFFF"},He.white={primary:"#000000",secondary:"#000000",tertiary:"#FFFFFF",quaternary:"#FFFFFF",quinary:"#FFFFFF",senary:"#FFFFFF"},He.black={primary:"#2D59A1",secondary:"#1F3364",tertiary:"#FFFFFF",quaternary:"#CACCC8",quinary:"#1B4482",senary:"#4E4E4E"},(Ke={}).default={primary:"#FF0000",secondary:"#E83E49",tertiary:"#FF00FF",quaternary:"#000000",senary:"#FFFFFF"},Ke.white={primary:"#000000",secondary:"#000000",tertiary:"#000000",quaternary:"#000000",senary:"#FFFFFF"},Ke.black={primary:"#FF0000",secondary:"#E83E49",tertiary:"#FF00FF",quaternary:"#4D4D4F",senary:"#FFFFFF"},(We={}).default={primary:"#0EE06E"},We.white={primary:"#FFFFFF"},We.black={primary:"#000000"},(Ve={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Ve.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Ve.black={primary:"#E39E39",secondary:"#D8232A"},(Ze={}).default={primary:"#FFFFFF"},Ze.white={primary:"#FFFFFF"},Ze.black={primary:"#000000"},(qe={}).default={primary:"#004A91",secondary:"#ED1921"},qe.white={primary:"#004A91",secondary:"#ED1921"},qe.black={primary:"#004A91",secondary:"#ED1921"},(Ye={}).default={primary:"#009EE3",secondary:"#FFFFFF",tertiary:"#009EE3",quaternary:"#FFFFFF"},Ye.white={primary:"#000000",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#FFFFFF"},Ye.black={primary:"#FFFFFF",secondary:"#2D3277",tertiary:"#009EE3",quaternary:"#009EE3"},(Je={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Je.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Je.black={primary:"#1866AB",secondary:"#373535"};var $e={PILL:"pill",RECT:"rect"},en={CONTAINER:"paypal-auth-button-container",BUTTON:"paypal-auth-button",BUTTON_LABEL:"paypal-auth-button-label-container",LABEL:"paypal-auth-button-label",COLOR:"paypal-auth-button-color",TEXT_COLOR:"paypal-auth-button-text-color",SHAPE:"paypal-auth-button-shape",ENV:"paypal-auth-button-env",TEXT:"paypal-auth-button-text",SPACE:"paypal-auth-button-space",CHECKOUTOVERLAY:"paypal-checkout-overlay",CHECKOUTMODAL:"paypal-checkout-modal",CHECKOUTLOGO:"paypal-checkout-logo",HIDDEN:"hidden",SPINNER_COLOR:"paypal-auth-button-spinner"};function nn(e,n){var r=e.optional,t=e.className;return h("span",{class:[en.TEXT].concat(void 0===t?[]:t).join(" "),optional:r},n)}function rn(){return __PAYPAL_DOMAIN__}var tn=ne((function(){try{return ue()}catch(e){throw new Error('PayPal Payments SDK script not found on page! Expected to find <script src="https://'+__SDK_HOST__+__PATH__+'">\n\n'+function e(n,r){if(void 0===r&&(r=1),r>=3)return"stringifyError stack overflow";try{if(!n)return"<unknown error: "+{}.toString.call(n)+">";if("string"==typeof n)return n;if(n instanceof Error){var t=n&&n.stack,o=n&&n.message;if(t&&o)return-1!==t.indexOf(o)?t:o+"\n"+t;if(t)return t;if(o)return o}return n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}catch(n){return"Error while stringifying error: "+e(n,r+1)}}(e))}}));ne((function(){for(var e={},n=0,r=tn().attributes;n<r.length;n++){var t=r[n];0===t.name.indexOf("data-")&&(e[t.name]=t.value)}return e["data-uid"]=le(),e}));var on=["warn","error"],an=["error","warn","info","debug"],fn=function(e){var n=e.win,r=void 0===n?window:n,t=e.url,o=e.data,i=e.useBlob,a=void 0===i||i;try{var f=JSON.stringify(o);if(!r.navigator.sendBeacon)throw new Error("No sendBeacon available");if(a){var c=new Blob([f],{type:"application/json"});return r.navigator.sendBeacon(t,c)}return r.navigator.sendBeacon(t,f)}catch(e){return!1}},cn=function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])};function sn(e){var n=e.url,r=e.prefix,o=e.logLevel,i=void 0===o?"warn":o,a=e.transport,f=void 0===a?function(e){void 0===e&&(e=window);var n=U(e)?function(e){if(!U(e))throw new Error("Expected window to be same domain");return e}(e):window;return function(e){var r=e.url,t=e.method,o=e.headers,i=e.json,a=e.enableSendBeacon,f=void 0!==a&&a;return N.try((function(){var e=!1;return function(e){var n=e.headers,r=e.enableSendBeacon,t=n&&Object.keys(n).length;return!!(window&&window.navigator.sendBeacon&&!t&&r&&window.Blob)}({headers:o,enableSendBeacon:f})&&(e=function(e){return"https://api2.amplitude.com/2/httpapi"===e}(r)?fn({win:n,url:r,data:i,useBlob:!1}):fn({win:n,url:r,data:i,useBlob:!0})),e||pe({win:n,url:r,method:t,headers:o,json:i})})).then(re)}}():a,c=e.amplitudeApiKey,s=e.flushInterval,u=void 0===s?6e4:s,d=e.enableSendBeacon,l=void 0!==d&&d,h=[],p=[],y=[],F=[],v=[],w=[];function m(e,n,r){if(ce()&&window.console&&window.console.log&&!(an.indexOf(e)>an.indexOf(i))){var t=[n];t.push(r),(r.error||r.warning)&&t.push("\n\n",r.error||r.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,t):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,t)}catch(e){}}}function g(){return N.try((function(){if(ce()&&"file:"!==window.location.protocol&&(h.length||p.length)){for(var e={},r=0;r<F.length;r++)cn(e,(0,F[r])(e));for(var o,i={},a=0;a<w.length;a++)cn(i,(0,w[a])(i));return n&&(o=f({method:"POST",url:n,headers:i,json:{events:h,meta:e,tracking:p},enableSendBeacon:l}).catch(re)),c&&f({method:"POST",url:"https://api2.amplitude.com/2/httpapi",headers:{},json:{api_key:c,events:p.map((function(e){return t({event_type:e.transition_name||"event",event_properties:e},e)}))},enableSendBeacon:l}).catch(re),h=[],p=[],N.resolve(o).then(re)}}))}var E,b,T,C,O=(void 0===b&&(b=50),q((function(){C&&clearTimeout(C);var e=T=T||new N;return C=setTimeout((function(){T=null,C=null,N.try(E).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),b),e}),Z(E=g)+"::promiseDebounced"));function x(e,n,o){if(void 0===o&&(o={}),!ce())return L;r&&(n=r+"_"+n);for(var i=t({},ie(o),{timestamp:Date.now().toString()}),a=0;a<y.length;a++)cn(i,(0,y[a])(i));return function(e,n,r){h.push({level:e,event:n,payload:r}),-1!==on.indexOf(e)&&O()}(e,n,i),m(e,n,i),L}function A(e,n){return e.push(n),L}ce()&&function(e,n){!function r(){setTimeout((function(){e(),r()}),n)}()}(O,u),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){g()})),window.addEventListener("unload",(function(){g()})),window.addEventListener("pagehide",(function(){g()})));var L={debug:function(e,n){return x("debug",e,n)},info:function(e,n){return x("info",e,n)},warn:function(e,n){return x("warn",e,n)},error:function(e,n){return x("error",e,n)},track:function(e){if(void 0===e&&(e={}),!ce())return L;for(var n=ie(e),r=0;r<v.length;r++)cn(n,(0,v[r])(n));return m("debug","track",n),p.push(n),L},flush:O,immediateFlush:g,addPayloadBuilder:function(e){return A(y,e)},addMetaBuilder:function(e){return A(F,e)},addTrackingBuilder:function(e){return A(v,e)},addHeaderBuilder:function(e){return A(w,e)},setTransport:function(e){return f=e,L},configure:function(e){return e.url&&(n=e.url),e.prefix&&(r=e.prefix),e.logLevel&&(i=e.logLevel),e.transport&&(f=e.transport),e.amplitudeApiKey&&(c=e.amplitudeApiKey),e.flushInterval&&(u=e.flushInterval),e.enableSendBeacon&&(l=e.enableSendBeacon),L}};return L}var un=ne((function(){return sn({url:(e="/xoplatform/logger/api/logger",void 0===e&&(e=""),""+rn()+e)});var e}));ne((function(e){un().info("rest_api_create_access_token");var n,r,t=Y(e+":");return pe({method:"post",url:(n="/v1/oauth2/token",void 0===n&&(n=""),""+(r=rn(),"undefined"!=typeof window&&void 0!==window.location&&_()===r?rn():__PAYPAL_API_DOMAIN__)+n),headers:{Authorization:"Basic "+t},data:{grant_type:"client_credentials"}}).then((function(n){var r=n.body;if(r&&"invalid_client"===r.error)throw new Error("Auth Api invalid client id: "+e+":\n\n"+JSON.stringify(r,null,4));if(!r||!r.access_token)throw new Error("Auth Api response error:\n\n"+JSON.stringify(r,null,4));return r.access_token}))})),ne((function(){var e={},n={},r={on:function(e,r){var t=n[e]=n[e]||[];t.push(r);var o=!1;return{cancel:function(){o||(o=!0,t.splice(t.indexOf(r),1))}}},once:function(e,n){var t=r.on(e,(function(){t.cancel(),n()}));return t},trigger:function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];var i=n[e],a=[];if(i)for(var f=function(e){var n=i[e];a.push(N.try((function(){return n.apply(void 0,t)})))},c=0;c<i.length;c++)f(c);return N.all(a).then(re)},triggerOnce:function(n){if(e[n])return N.resolve();e[n]=!0;for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return r.trigger.apply(r,[n].concat(o))},reset:function(){n={}}};return r}));var dn=["paypal","venmo","itau","credit","paylater","applepay","ideal","sepa","bancontact","giropay","eps","sofort","mybank","blik","p24","zimpler","wechatpay","payu","verkkopankki","trustly","oxxo","boleto","boletobancario","maxima","mercadopago","multibanco","card"],ln={LOCALE:{country:ze.US,lang:"en"},INTENT:"capture",ENV:Ne.PRODUCTION,PLATFORM:Be.DESKTOP},hn=te($e),pn=te(ze),yn=te(Ne),Fn=te(Be);function vn(e){if(!e)throw new Error("Expected props");var n=e.clientID,r=e.fundingSource,t=e.style,o=e.locale,i=void 0===o?ln.LOCALE:o,a=e.env,f=void 0===a?ln.ENV:a,c=e.platform,s=void 0===c?ln.PLATFORM:c,u=e.sessionID,d=void 0===u?J():u,l=e.authButtonSessionID,h=void 0===l?J():l,p=e.csp,y=void 0===p?{}:p,F=e.nonce,v=e.content,w=void 0===v?"":v,m=e.responseType,g=e.customLabel,E=i.country,b=i.lang;if(!E||-1===pn.indexOf(E))throw new Error("Expected valid country, got "+(E||"undefined"));if(!b||-1===Se[E].indexOf(b))throw new Error("Expected valid lang, got "+(b||"undefined"));if(-1===yn.indexOf(f))throw new Error("Expected valid env, got "+(f||"undefined"));if(-1===Fn.indexOf(s))throw new Error("Expected valid platform, got "+(s||"undefined"));if(y&&y.nonce&&(F=y.nonce),r&&-1===dn.indexOf(r))throw new Error("Invalid funding source: "+r);return{clientID:n,fundingSource:r,style:t=function(e,n){if(!n)throw new Error("Expected props.style to be set");var r=["black","blue","darkblue","gold","silver","white"],t=e.fundingSource,o=void 0===t?"paypal":t;"paypal"===o&&(r=["black","blue","darkblue","gold","silver","white"]),"credit"===o&&(r=["darkblue"]);var i=n.label,a=n.color,f=void 0===a?"credit"===o?"darkblue":"blue":a,c=n.shape,s=void 0===c?$e.PILL:c,u=n.height;if(f&&-1===r.indexOf(f))throw new Error("Unexpected style.color for "+o+" button: "+f+", expected "+r.join(", "));if(s&&-1===hn.indexOf(s))throw new Error("Unexpected style.shape for "+o+" button: "+s+", expected "+hn.join(", "));if(void 0!==u){if("number"!=typeof u)throw new TypeError("Expected style.height to be a number, got: "+u);if(u<35||u>50)throw new Error("Expected style.height to be between 35px and 50px - got "+u+"px")}return{label:i,color:f,shape:s,height:u}}(e,t),locale:i,env:f,platform:s,authButtonSessionID:h,sessionID:d,nonce:F,content:w,customLabel:g,responseType:m}}var wn="\n html, body {\n padding: 0;\n margin: 0;\n width: 100%;\n overflow: hidden;\n text-align: center;\n }\n\n body {\n display: inline-block;\n vertical-align: top;\n border-collapse: collapse;\n }\n\n * {\n touch-callout: none;\n user-select: none;\n cursor: default;\n box-sizing: border-box;\n }\n\n ."+en.HIDDEN+" {\n position: absolute;\n visibility: hidden;\n }\n ."+en.SPINNER_COLOR+" {\n background: white;\n }\n\n @media screen and (max-width: 400px) {\n ."+en.BUTTON_LABEL+" {\n width: 100%;\n }\n }\n \n /* Media query for desktop viewport */\n @media screen and (min-width: 400px) {\n ."+en.BUTTON_LABEL+" {\n max-width: 250px;\n font-size: 14px;\n margin-top: 27px;\n }\n }\n\n @media only screen and (min-width: 0px) {\n body {\n font-size: 12px;\n }\n }\n\n @media only screen and (min-width: 300px) {\n body {\n font-size: 16px;\n }\n }\n\n @media only screen and (min-width: 500px) {\n body {\n font-size: 18px;\n }\n }\n\n @media only screen and (min-width: 800px) {\n body {\n font-size: 22px;\n }\n }\n\n @media only screen and (min-width: 800px) {\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n height: 25px;\n font-size: 22px;\n }\n }\n @media only screen and (min-width: 0px) {\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n height: 21px;\n font-size: 12px;\n }\n }\n\n @media only screen and (min-width: 300px) {\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n height: 23px;\n font-size: 16px;\n }\n }\n\n @media only screen and (min-width: 500px) {\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n height: 25px;\n font-size: 18px;\n }\n }\n",mn="\n\n ."+en.CONTAINER+' {\n display: block;\n white-space: nowrap;\n margin: 0;\n background: 0;\n border: 0;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n text-transform: none;\n font-weight: 500;\n font-smoothing: antialiased;\n z-index: 0;\n min-width: 200px;\n \n height: 100%;\n box-sizing: border-box;\n\n }\n\n .'+en.BUTTON+" {\n border: 1px solid transparent;\n border-radius: 3px;\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n vertical-align: top;\n cursor: pointer;\n overflow: hidden;\n }\n\n ."+en.BUTTON+" * {\n cursor: pointer;\n }\n\n ."+en.CONTAINER+"."+en.ENV+"-"+Ne.TEST+" ."+en.TEXT+" {\n font-family: Arial !important;\n background: rgba(0, 0, 0, 0.5) !important;\n color: transparent !important;\n text-shadow: none !important;\n }\n\n .paypal-logo {\n padding: 0px;\n display: inline-block;\n background: none;\n border: none;\n width: auto;\n }\n\n ."+en.TEXT+", ."+en.SPACE+" {\n display: inline-block;\n white-space: pre;\n padding-left:7px;\n }\n\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" {\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n }\n\n ."+en.BUTTON+" > ."+en.BUTTON_LABEL+" > * {\n vertical-align: middle;\n height: 100%;\n text-align: left;\n }\n \n ."+en.SHAPE+"-"+$e.PILL+" {\n border-radius: 50px;\n }\n ."+en.CHECKOUTOVERLAY+" > ."+en.CHECKOUTMODAL+" > ."+en.CHECKOUTLOGO+" {\n margin-bottom: 0px; !important;\n }\n",gn="\n\n\n ."+en.BUTTON+"."+en.TEXT_COLOR+"-black {\n color: #2C2E2F;\n }\n\n ."+en.BUTTON+"."+en.TEXT_COLOR+"-white {\n color: #fff;\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-gold {\n background: #ffc439;\n color: #111;\n }\n ."+en.BUTTON+"."+en.COLOR+"-gold:hover {\n filter: brightness(0.95);\n\n }\n ."+en.BUTTON+"."+en.COLOR+"-gold:focus {\n outline: none;\n box-shadow: 0px 0px 1px 3px #0c67ff inset;\n }\n\n\n ."+en.BUTTON+"."+en.COLOR+"-blue {\n background: #0070BA;\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-blue:hover {\n filter: brightness(0.95);\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-blue:focus {\n outline: none;\n box-shadow: 0px 0px 1px 3px #0c67ff inset;\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-darkblue {\n background: #003087;\n }\n ."+en.BUTTON+"."+en.COLOR+"-darkblue:hover {\n filter: brightness(1.2);\n }\n ."+en.BUTTON+"."+en.COLOR+"-darkblue:focus {\n outline: none;\n box-shadow: 0px 0px 1px 3px #0c67ff inset;\n }\n\n ."+en.BUTTON+"."+en.COLOR+"-silver {\n background: #eeeeee;\n color: #111;\n }\n ."+en.BUTTON+"."+en.COLOR+"-silver:hover {\n filter: brightness(1.9);\n background: #000020;\n }\n ."+en.BUTTON+"."+en.COLOR+"-silver:focus {\n outline: none;\n background: #000020;\n box-shadow: 0px 0px 1px 3px #0c67ff inset;\n }\n";function En(e){return h("style",{nonce:e.nonce,innerHTML:"\n "+wn+"\n "+mn+"\n "+gn+"\n \n @keyframes show-text {\n 0% { \n max-width: 0%;\n opacity: 0;\n overflow: hidden;\n }\n 100% { \n max-width: 100%;\n opacity: 1;\n }\n }\n\n "})}function bn(e){vn(e)}function Tn(e){var n=e.style.color,r=void 0===n?"blue":n;if("blue"===r||"darkblue"===r||"black"===r)return h(Qe,{logoColor:"white"});if("gold"===r||"white"===r||"silver"===r)return h(Qe,{logoColor:"blue"});throw new Error("Unsupported color (PP logo): "+r)}function Cn(e){var n=e.style.label,r=e.content;if(!n)return h(nn,null,"Log in with PayPal");if(n)return h(nn,null,n);throw new Error("Unsupported button label: "+(n||r))}function On(e){var n,r=e.onClick,o=void 0===r?re:r,i=vn(e),a=i.fundingSource,f=i.style,c=i.env,s=i.nonce,u=i.customLabel,d=f.shape,l=f.color,p=function(e,n){e.preventDefault(),e.stopPropagation(),e.target.blur(),o(e,t({fundingSource:a},n))};return h("div",{class:[en.CONTAINER,en.SHAPE+"-"+d,en.ENV+"-"+c].join(" ")},h(En,{nonce:s,style:f}),h("div",t({role:"button"},((n={})["data-button"]=!0,n["data-funding-source"]=a,n),{class:[en.BUTTON,en.SHAPE+"-"+d,en.ENV+"-"+c,en.COLOR+"-"+l,en.TEXT_COLOR+"-white"].join(" "),onClick:p,onKeyPress:function(e,n){13!==e.keyCode&&32!==e.keyCode||p(e,n)},tabindex:"0"}),u&&h("div",{class:en.BUTTON_LABEL},h(Tn,{style:f}),h(Cn,{style:f,content:u}))))}}]);
{
"name": "@paypal/identity-components",
"version": "5.0.12",
"version": "5.0.13",
"description": "PayPal Identity components, for integrating auth products.",

@@ -59,3 +59,3 @@ "main": "index.js",

"devDependencies": {
"@krakenjs/grumbler-scripts": "^6.0.2",
"@krakenjs/grumbler-scripts": "^7.0.4",
"@krakenjs/sync-browser-mocks": "^3.0.0",

@@ -76,7 +76,7 @@ "conventional-changelog-cli": "^2.0.11",

"dependencies": {
"@paypal/common-components": "^1.0.27",
"@paypal/common-components": "^1.0.33",
"@paypal/funding-components": "^1.0.27",
"@paypal/sdk-client": "^4.0.166",
"@paypal/sdk-constants": "^1.0.57",
"@paypal/sdk-logos": "^1.0.45",
"@paypal/sdk-logos": "^2.0.0",
"@krakenjs/belter": "^2.0.0",

@@ -83,0 +83,0 @@ "@krakenjs/cross-domain-utils": "^3.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc