@paypal/merchant-onboarding-sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -154
- package/dist/index.d.ts +3 -1
- package/dist/onboarding.js +198 -145
- package/dist/servicing.js +99 -51
- package/dist/v1/js/development.partner.js +198 -145
- package/dist/v1/js/development.servicing.js +99 -51
- package/dist/v1/js/partner.js +1 -1
- package/dist/v1/js/sandbox.partner.js +198 -145
- package/dist/v1/js/sandbox.servicing.js +99 -51
- package/dist/v1/js/servicing.js +1 -1
- package/dist/v1/js/staging.partner.js +198 -145
- package/dist/v1/js/staging.servicing.js +99 -51
- package/dist/v1/js/te-e2e-embedded-path-testing.partner.js +198 -145
- package/dist/v1/js/te-e2e-embedded-path-testing.servicing.js +99 -51
- package/dist/v1/js/te-eop-release.partner.js +198 -145
- package/dist/v1/js/te-eop-release.servicing.js +99 -51
- package/dist/v1/js/te-hybrid-path-integration.partner.js +198 -145
- package/dist/v1/js/te-hybrid-path-integration.servicing.js +99 -51
- package/package.json +2 -38
package/dist/v1/js/servicing.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see servicing.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MerchantOnboarding=t():e.MerchantOnboarding=t()}(this,(()=>(()=>{var e,t,r,n,a,i,o,l,s={150:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(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 t={}.toString;if(t){var r=t.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}r.r(t),r.d(t,"PopupOpenError",(function(){return Ie})),r.d(t,"create",(function(){return Or})),r.d(t,"destroy",(function(){return Fr})),r.d(t,"destroyComponents",(function(){return zr})),r.d(t,"destroyAll",(function(){return Pr})),r.d(t,"PROP_TYPE",(function(){return cr})),r.d(t,"PROP_SERIALIZATION",(function(){return ur})),r.d(t,"CONTEXT",(function(){return dr})),r.d(t,"EVENT",(function(){return pr}));var l,s=[],c=[],u=0;function d(){if(!u&&l){var e=l;l=null,e.resolve()}}function p(){u+=1}function f(){u-=1,d()}var h=function(){function e(e){var t=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,n,a=!1,i=!1,o=!1;p();try{e((function(e){o?t.resolve(e):(a=!0,r=e)}),(function(e){o?t.reject(e):(i=!0,n=e)}))}catch(e){return f(),void this.reject(e)}f(),o=!0,a?this.resolve(r):i&&this.reject(n)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(o(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(o(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(){t.errorHandled||function(e,t){if(-1===s.indexOf(e)){s.push(e),setTimeout((function(){throw e}),1);for(var r=0;r<c.length;r++)c[r](e,t)}}(e,t)}),1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},t.dispatch=function(){var t=this.resolved,r=this.rejected,n=this.handlers;if(!this.dispatching&&(t||r)){this.dispatching=!0,p();for(var a=function(e,t){return e.then((function(e){t.resolve(e)}),(function(e){t.reject(e)}))},i=0;i<n.length;i++){var l=n[i],s=l.onSuccess,c=l.onError,u=l.promise,d=void 0;if(t)try{d=s?s(this.value):this.value}catch(e){u.reject(e);continue}else if(r){if(!c){u.reject(this.error);continue}try{d=c(this.error)}catch(e){u.reject(e);continue}}if(d instanceof e&&(d.resolved||d.rejected)){var h=d;h.resolved?u.resolve(h.value):u.reject(h.error),h.errorHandled=!0}else o(d)?d instanceof e&&(d.resolved||d.rejected)?d.resolved?u.resolve(d.value):u.reject(d.error):a(d,u):u.resolve(d)}n.length=0,this.dispatching=!1,f()}},t.then=function(t,r){if(t&&"function"!=typeof t&&!t.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 n=new e;return this.handlers.push({promise:n,onSuccess:t,onError:r}),this.errorHandled=!0,this.dispatch(),n},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.finally expected a function");return this.then((function(r){return e.try(t).then((function(){return r}))}),(function(r){return e.try(t).then((function(){throw r}))}))},t.timeout=function(e,t){var r=this;if(this.resolved||this.rejected)return this;var n=setTimeout((function(){r.resolved||r.rejected||r.reject(t||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(n),e}))},t.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:o(t)?new e((function(e,r){return t.then(e,r)})):(new e).resolve(t)},e.reject=function(t){return(new e).reject(t)},e.asyncReject=function(t){return(new e).asyncReject(t)},e.all=function(t){var r=new e,n=t.length,a=[].slice();if(!n)return r.resolve(a),r;for(var i=function(e,t,i){return t.then((function(t){a[e]=t,0==(n-=1)&&r.resolve(a)}),(function(e){i.reject(e)}))},l=0;l<t.length;l++){var s=t[l];if(s instanceof e){if(s.resolved){a[l]=s.value,n-=1;continue}}else if(!o(s)){a[l]=s,n-=1;continue}i(l,e.resolve(s),r)}return 0===n&&r.resolve(a),r},e.hash=function(t){var r={},n=[],a=function(e){if(t.hasOwnProperty(e)){var a=t[e];o(a)?n.push(a.then((function(t){r[e]=t}))):r[e]=a}};for(var i in t)a(i);return e.all(n).then((function(){return r}))},e.map=function(t,r){return e.all(t.map(r))},e.onPossiblyUnhandledException=function(e){return function(e){return c.push(e),{cancel:function(){c.splice(c.indexOf(e),1)}}}(e)},e.try=function(t,r,n){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.try expected a function");var a;p();try{a=t.apply(r,n||[])}catch(t){return f(),e.reject(t)}return f(),e.resolve(a)},e.delay=function(t){return new e((function(e){setTimeout(e,t)}))},e.isPromise=function(t){return!!(t&&t instanceof e)||o(t)},e.flush=function(){return t=l=l||new e,d(),t;var t},e}();function m(e){return"[object RegExp]"==={}.toString.call(e)}var g={IFRAME:"iframe",POPUP:"popup"},y="Call was rejected by callee.\r\n";function v(e){return void 0===e&&(e=window),e.location.protocol}function b(e){if(void 0===e&&(e=window),e.mockDomain){var t=e.mockDomain.split("//")[0];if(t)return t}return v(e)}function w(e){return void 0===e&&(e=window),"about:"===b(e)}function x(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function k(e){if(void 0===e&&(e=window),e&&!x(e))try{return e.opener}catch(e){}}function _(e){try{return!0}catch(e){}return!1}function S(e){void 0===e&&(e=window);var t=e.location;if(!t)throw new Error("Can not read window location");var r=v(e);if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var n=x(e);return n&&_()?S(n):"about://"}var a=t.host;if(!a)throw new Error("Can not read window host");return r+"//"+a}function E(e){void 0===e&&(e=window);var t=S(e);return t&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:t}function C(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var t=Object.getOwnPropertyDescriptor(e,"location");if(t&&!1===t.enumerable)return!1}catch(e){}try{if(w(e)&&_())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===b(e)}(e)&&_())return!0}catch(e){}try{if(S(e)===S(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(w(e)&&_())return!0;if(E(window)===E(e))return!0}catch(e){}return!1}function $(e){if(!C(e))throw new Error("Expected window to be same domain");return e}function A(e,t){if(!e||!t)return!1;var r=x(t);return r?r===e:-1!==function(e){var t=[];try{for(;e.parent!==e;)t.push(e.parent),e=e.parent}catch(e){}return t}(t).indexOf(e)}function T(e){var t,r,n=[];try{t=e.frames}catch(r){t=e}try{r=t.length}catch(e){}if(0===r)return n;if(r){for(var a=0;a<r;a++){var i=void 0;try{i=t[a]}catch(e){continue}n.push(i)}return n}for(var o=0;o<100;o++){var l=void 0;try{l=t[o]}catch(e){return n}if(!l)return n;n.push(l)}return n}function O(e){for(var t=[],r=0,n=T(e);r<n.length;r++){var a=n[r];t.push(a);for(var i=0,o=O(a);i<o.length;i++)t.push(o[i])}return t}function z(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(e){}if(x(e)===e)return e;try{if(A(window,e)&&window.top)return window.top}catch(e){}try{if(A(e,window)&&window.top)return window.top}catch(e){}for(var t=0,r=O(e);t<r.length;t++){var n=r[t];try{if(n.top)return n.top}catch(e){}if(x(n)===n)return n}}function P(e){var t=z(e);if(!t)throw new Error("Can not determine top window");var r=[].concat(O(t),[t]);return-1===r.indexOf(e)&&(r=[].concat(r,[e],O(e))),r}var F=[],N=[];function R(e,t){void 0===t&&(t=!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!==y}if(t&&C(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var r=function(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(e){}return-1}(F,e);if(-1!==r){var n=N[r];if(n&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var t=e.ownerDocument;if(t&&t.documentElement&&!t.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!t.documentElement.contains(r.host))return!0}return!1}(n))return!0}return!1}function I(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}function L(e,t){for(var r=T(e),n=0;n<r.length;n++){var a=r[n];try{if(C(a)&&a.name===t&&-1!==r.indexOf(a))return a}catch(e){}}try{if(-1!==r.indexOf(e.frames[t]))return e.frames[t]}catch(e){}try{if(-1!==r.indexOf(e[t]))return e[t]}catch(e){}}function M(e,t){return e===k(t)}function D(e){return void 0===e&&(e=window),k(e=e||window)||x(e)||void 0}function H(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<t.length;a++)if(n===t[a])return!0;return!1}function B(e){void 0===e&&(e=window);for(var t=0,r=e;r;)(r=x(r))&&(t+=1);return t}function j(e,t){var r=z(e)||e,n=z(t)||t;try{if(r&&n)return r===n}catch(e){}var a=P(e),i=P(t);if(H(a,i))return!0;var o=k(r),l=k(n);return o&&H(P(o),i)||l&&H(P(l),a),!1}function W(e,t){if("string"==typeof e){if("string"==typeof t)return"*"===e||t===e;if(m(t))return!1;if(Array.isArray(t))return!1}return m(e)?m(t)?e.toString()===t.toString():!Array.isArray(t)&&Boolean(t.match(e)):!!Array.isArray(e)&&(Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):!m(t)&&e.some((function(e){return W(e,t)})))}function V(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):E()}function U(e,t,r,n){var a;void 0===r&&(r=1e3),void 0===n&&(n=1/0);var i=function(){if(R(e))return a&&clearTimeout(a),t();n<=0?clearTimeout(a):(n-=r,a=setTimeout(i,r))};return i(),{cancel:function(){a&&clearTimeout(a)}}}function q(e){try{if(e===window)return!0}catch(e){if(e&&e.message===y)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===y)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===y)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 G(e){if(0!==V(e).indexOf("mock:"))return e;throw new Error("Mock urls not supported out of test mode")}function K(e){if(C(e))return $(e).frameElement;for(var t=0,r=document.querySelectorAll("iframe");t<r.length;t++){var n=r[t];if(n&&n.contentWindow&&n.contentWindow===e)return n}}function Y(e){if(function(e){return void 0===e&&(e=window),Boolean(x(e))}(e)){var t=K(e);if(t&&t.parentElement)return void t.parentElement.removeChild(t)}try{e.close()}catch(e){}}function X(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(e){}return-1}var Z,Q=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,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,r=0;r<t.length;r++){var n=t[r];if(q(n)&&R(n)){if(e)try{e.delete(n)}catch(e){}t.splice(r,1),this.values.splice(r,1),r-=1}}},t.isSafeToReadWrite=function(e){return!q(e)},t.set=function(e,t){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,t)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var n=this.name,a=e[n];return void(a&&a[0]===e?a[1]=t:Object.defineProperty(e,n,{value:[e,t],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,o=this.values,l=X(i,e);-1===l?(i.push(e),o.push(t)):o[l]=t},t.get=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return t.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 n=X(this.keys,e);if(-1!==n)return this.values[n]},t.delete=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.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 n=this.keys,a=X(n,e);-1!==a&&(n.splice(a,1),this.values.splice(a,1))},t.has=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.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!==X(this.keys,e)},t.getOrSet=function(e,t){if(this.has(e))return this.get(e);var r=t();return this.set(e,r),r},e}();function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t,r){return(ee=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var a=[null];a.push.apply(a,t);var i=new(Function.bind.apply(e,a));return r&&n(i,r.prototype),i}).apply(null,arguments)}function te(e){var t="function"==typeof Map?new Map:void 0;return(te=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return ee(e,arguments,J(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),n(a,e)})(e)}function re(e){var t=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(t=!0)}catch(e){}return t}function ne(e){return e.name||e.__name__||e.displayName||"anonymous"}function ae(e,t){try{delete e.name,e.name=t}catch(e){}return e.__name__=e.displayName=t,e}function ie(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,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 oe(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(16*Math.random()))}))+"_"+ie((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function le(e){try{return JSON.stringify([].slice.call(e),(function(e,t){return"function"==typeof t?"memoize["+function(e){if(Z=Z||new Q,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var t=Z.get(e);return t||(t=typeof e+":"+oe(),Z.set(e,t)),t}(t)+"]":re(t)?{}:t}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function se(){return{}}var ce=0,ue=0;function de(e,t){void 0===t&&(t={});var r,n,a=t.thisNamespace,i=void 0!==a&&a,o=t.time,l=ce;ce+=1;var s=function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];var c,u;l<ue&&(r=null,n=null,l=ce,ce+=1),c=i?(n=n||new Q).getOrSet(this,se):r=r||{};try{u=le(a)}catch(t){return e.apply(this,arguments)}var d=c[u];if(d&&o&&Date.now()-d.time<o&&(delete c[u],d=null),d)return d.value;var p=Date.now(),f=e.apply(this,arguments);return c[u]={time:p,value:f},f};return s.reset=function(){r=null,n=null},ae(s,(t.name||ne(e))+"::memoized")}function pe(e){var t={};function r(){for(var r=arguments,n=this,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var l=le(i);return t.hasOwnProperty(l)||(t[l]=h.try((function(){return e.apply(n,r)})).finally((function(){delete t[l]}))),t[l]}return r.reset=function(){t={}},ae(r,ne(e)+"::promiseMemoized")}function fe(){}function he(e){var t=!1;return ae((function(){if(!t)return t=!0,e.apply(this,arguments)}),ne(e)+"::once")}function me(e,t){if(void 0===t&&(t=1),t>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var r=e&&e.stack,n=e&&e.message;if(r&&n)return-1!==r.indexOf(n)?r:n+"\n"+r;if(r)return r;if(n)return n}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+me(e,t+1)}}function ge(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function ye(e,t){if(!t)return e;if(Object.assign)return Object.assign(e,t);for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function ve(e){return e}function be(e,t){var r;return function n(){r=setTimeout((function(){e(),n()}),t)}(),{cancel:function(){clearTimeout(r)}}}function we(e){return[].slice.call(e)}function xe(e){return null!=e}function ke(e){return"[object RegExp]"==={}.toString.call(e)}function _e(e,t,r){if(e.hasOwnProperty(t))return e[t];var n=r();return e[t]=n,n}function Se(e){var t,r=[],n=!1,a={set:function(t,r){return n||(e[t]=r,a.register((function(){delete e[t]}))),r},register:function(e){var a=he((function(){return e(t)}));return n?e(t):r.push(a),{cancel:function(){var e=r.indexOf(a);-1!==e&&r.splice(e,1)}}},all:function(e){t=e;var a=[];for(n=!0;r.length;){var i=r.shift();a.push(i())}return h.all(a).then(fe)}};return a}function Ee(e,t){if(null==t)throw new Error("Expected "+e+" to be present");return t}de.clear=function(){ue=ce},de((function(e){if(Object.values)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}));var Ce=function(e){function t(t){var r;return(r=e.call(this,t)||this).name=r.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(r,r.constructor):r.stack=new Error(t).stack,r}return a(t,e),t}(te(Error));function $e(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Ae(){return Boolean(document.body)&&"complete"===document.readyState}function Te(){return Boolean(document.body)&&"interactive"===document.readyState}function Oe(e){return encodeURIComponent(e)}function ze(e){return function(t,r,n){void 0===n&&(n=[]);var a=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},i=le(n);return a.hasOwnProperty(i)?a[i]:a[i]=function(){var t={};if(!e)return t;if(-1===e.indexOf("="))return t;for(var r=0,n=e.split("&");r<n.length;r++){var a=n[r];(a=a.split("="))[0]&&a[1]&&(t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]))}return t}.apply(void 0,n)}(ze,0,[e])}function Pe(e,t){return void 0===t&&(t={}),t&&Object.keys(t).length?(void 0===(r=i({},ze(e),t))&&(r={}),Object.keys(r).filter((function(e){return"string"==typeof r[e]||"boolean"==typeof r[e]})).map((function(e){var t=r[e];if("string"!=typeof t&&"boolean"!=typeof t)throw new TypeError("Invalid type for query");return Oe(e)+"="+Oe(t.toString())})).join("&")):e;var r}function Fe(e,t){return void 0===t&&(t=document),re(e)?e:"string"==typeof e?t.querySelector(e):void 0}function Ne(e){return new h((function(t,r){var n=ge(e),a=Fe(e);if(a)return t(a);if(Ae())return r(new Error("Document is ready and element "+n+" does not exist"));var i=setInterval((function(){if(a=Fe(e))t(a),clearInterval(i);else if(Ae())return clearInterval(i),r(new Error("Document is ready and element "+n+" does not exist"))}),10)}))}de((function(){return new h((function(e){if(Ae()||Te())return e();var t=setInterval((function(){if(Ae()||Te())return clearInterval(t),e()}),10)}))}));var Re,Ie=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(Ce);function Le(e){if((Re=Re||new Q).has(e)){var t=Re.get(e);if(t)return t}var r=new h((function(t,r){e.addEventListener("load",(function(){!function(e){if(function(){for(var e=0;e<F.length;e++){var t=!1;try{t=F[e].closed}catch(e){}t&&(N.splice(e,1),F.splice(e,1))}}(),e&&e.contentWindow)try{F.push(e.contentWindow),N.push(e)}catch(e){}}(e),t(e)})),e.addEventListener("error",(function(n){e.contentWindow?t(e):r(n)}))}));return Re.set(e,r),r}function Me(e){return Le(e).then((function(e){if(!e.contentWindow)throw new Error("Could not find window in iframe");return e.contentWindow}))}function De(e,t){void 0===e&&(e={});var r=e.style||{},n=function(e,t){void 0===e&&(e="div"),void 0===t&&(t={}),e=e.toLowerCase();var r,n,a,i=document.createElement(e);if(t.style&&ye(i.style,t.style),t.class&&(i.className=t.class.join(" ")),t.id&&i.setAttribute("id",t.id),t.attributes)for(var o=0,l=Object.keys(t.attributes);o<l.length;o++){var s=l[o];i.setAttribute(s,t.attributes[s])}if(t.styleSheet&&(r=i,n=t.styleSheet,void 0===a&&(a=window.document),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(a.createTextNode(n))),t.html){if("iframe"===e)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");i.innerHTML=t.html}return i}("iframe",{attributes:i({allowTransparency:"true"},e.attributes||{}),style:i({backgroundColor:"transparent",border:"none"},r),html:e.html,class:e.class}),a=window.navigator.userAgent.match(/MSIE|Edge/i);return n.hasAttribute("id")||n.setAttribute("id",oe()),Le(n),t&&function(e,t){void 0===t&&(t=document);var r=Fe(e,t);if(r)return r;throw new Error("Can not find element: "+ge(e))}(t).appendChild(n),(e.url||a)&&n.setAttribute("src",e.url||"about:blank"),n}function He(e,t,r){return e.addEventListener(t,r),{cancel:function(){e.removeEventListener(t,r)}}}function Be(e){e.style.setProperty("display","")}function je(e){e.style.setProperty("display","none","important")}function We(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ve(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function Ue(e,t,r){var n=void 0===r?{}:r,a=n.width,i=void 0===a||a,o=n.height,l=void 0===o||o,s=n.interval,c=void 0===s?100:s,u=n.win,d=void 0===u?window:u,p=e.offsetWidth,f=e.offsetHeight,h=!1;t({width:p,height:f});var m,g,y=function(){if(!h&&function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)){var r=e.offsetWidth,n=e.offsetHeight;(i&&r!==p||l&&n!==f)&&t({width:r,height:n}),p=r,f=n}};return d.addEventListener("resize",y),void 0!==d.ResizeObserver?((m=new d.ResizeObserver(y)).observe(e),g=be(y,10*c)):void 0!==d.MutationObserver?((m=new d.MutationObserver(y)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),g=be(y,10*c)):g=be(y,c),{cancel:function(){h=!0,m.disconnect(),window.removeEventListener("resize",y),g.cancel()}}}function qe(e){for(;e.parentNode;)e=e.parentNode;return"[object ShadowRoot]"===e.toString()}var Ge="undefined"!=typeof document?document.currentScript:null,Ke=de((function(){if(Ge)return Ge;if(Ge=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),t=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=t&&t[1];if(!r)return;for(var n=0,a=[].slice.call(document.getElementsByTagName("script")).reverse();n<a.length;n++){var i=a[n];if(i.src&&i.src===r)return i}}catch(e){}}())return Ge;throw new Error("Can not determine current script")})),Ye=oe();function Xe(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function Ze(e){if("number"==typeof e)return e;var t=e.match(/^([0-9]+)(px|%)$/);if(!t)throw new Error("Could not match css value from "+e);return parseInt(t[1],10)}function Qe(e){return Ze(e)+"px"}function Je(e){return"number"==typeof e?Qe(e):Xe(e)?e:Qe(e)}function et(e,t){if("number"==typeof e)return e;if(Xe(e))return parseInt(t*Ze(e)/100,10);if("string"==typeof(r=e)&&/^[0-9]+px$/.test(r))return Ze(e);var r;throw new Error("Can not normalize dimension: "+e)}function tt(e){void 0===e&&(e=window);var t="__post_robot_11_0_0__";return e!==window?e[t]:e[t]=e[t]||{}}de((function(){var e;try{e=Ke()}catch(e){return Ye}var t=e.getAttribute("data-uid");if(t&&"string"==typeof t)return t;if((t=e.getAttribute("data-uid-auto"))&&"string"==typeof t)return t;if(e.src){var r=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].charCodeAt(0)*r;e[r+1]&&(n+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(n)%26)}return t}(JSON.stringify({src:e.src,dataset:e.dataset}));t="uid_"+r.slice(r.length-30)}else t=oe();return e.setAttribute("data-uid-auto",t),t}));var rt=function(){return{}};function nt(e,t){return void 0===e&&(e="store"),void 0===t&&(t=rt),_e(tt(),e,(function(){var e=t();return{has:function(t){return e.hasOwnProperty(t)},get:function(t,r){return e.hasOwnProperty(t)?e[t]:r},set:function(t,r){return e[t]=r,r},del:function(t){delete e[t]},getOrSet:function(t,r){return _e(e,t,r)},reset:function(){e=t()},keys:function(){return Object.keys(e)}}}))}var at,it=function(){};function ot(){var e=tt();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new it,e.WINDOW_WILDCARD}function lt(e,t){return void 0===e&&(e="store"),void 0===t&&(t=rt),nt("windowStore").getOrSet(e,(function(){var r=new Q,n=function(e){return r.getOrSet(e,t)};return{has:function(t){return n(t).hasOwnProperty(e)},get:function(t,r){var a=n(t);return a.hasOwnProperty(e)?a[e]:r},set:function(t,r){return n(t)[e]=r,r},del:function(t){delete n(t)[e]},getOrSet:function(t,r){return _e(n(t),e,r)}}}))}function st(){return nt("instance").getOrSet("instanceID",oe)}function ct(e,t){var r=t.domain,n=lt("helloPromises"),a=n.get(e);a&&a.resolve({domain:r});var i=h.resolve({domain:r});return n.set(e,i),i}function ut(e,t){return(0,t.send)(e,"postrobot_hello",{instanceID:st()},{domain:"*",timeout:-1}).then((function(t){var r=t.origin,n=t.data.instanceID;return ct(e,{domain:r}),{win:e,domain:r,instanceID:n}}))}function dt(e,t){var r=t.send;return lt("windowInstanceIDPromises").getOrSet(e,(function(){return ut(e,{send:r}).then((function(e){return e.instanceID}))}))}function pt(e,t,r){void 0===t&&(t=5e3),void 0===r&&(r="Window");var n=function(e){return lt("helloPromises").getOrSet(e,(function(){return new h}))}(e);return-1!==t&&(n=n.timeout(t,new Error(r+" did not load after "+t+"ms"))),n}function ft(e){lt("knownWindows").set(e,!0)}function ht(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function mt(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function gt(e,t){return{__type__:e,__val__:t}}var yt,vt=((at={}).function=function(){},at.error=function(e){return gt("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},at.promise=function(){},at.regex=function(e){return gt("regex",e.source)},at.date=function(e){return gt("date",e.toJSON())},at.array=function(e){return e},at.object=function(e){return e},at.string=function(e){return e},at.number=function(e){return e},at.boolean=function(e){return e},at.null=function(e){return e},at[void 0]=function(e){return gt("undefined",e)},at),bt={},wt=((yt={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},yt.error=function(e){var t=e.stack,r=e.code,n=e.data,a=new Error(e.message);return a.code=r,n&&(a.data=n),a.stack=t+"\n\n"+a.stack,a},yt.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},yt.regex=function(e){return new RegExp(e)},yt.date=function(e){return new Date(e)},yt.array=function(e){return e},yt.object=function(e){return e},yt.string=function(e){return e},yt.number=function(e){return e},yt.boolean=function(e){return e},yt.null=function(e){return e},yt[void 0]=function(){},yt),xt={};function kt(){return!!I(window).match(/MSIE|trident|edge\/12|edge\/13/i)}function _t(e){return!j(window,e)}function St(e,t){if(e){if(E()!==V(e))return!0}else if(t&&!C(t))return!0;return!1}function Et(e){var t=e.win,r=e.domain;return!(!kt()||r&&!St(r,t)||t&&!_t(t))}function Ct(e){return"__postrobot_bridge___"+(e=e||V(e)).replace(/[^a-zA-Z0-9]+/g,"_")}function $t(){return Boolean(window.name&&window.name===Ct(E()))}var At=new h((function(e){if(window.document&&window.document.body)return e(window.document.body);var t=setInterval((function(){if(window.document&&window.document.body)return clearInterval(t),e(window.document.body)}),10)}));function Tt(e){lt("remoteWindowPromises").getOrSet(e,(function(){return new h}))}function Ot(e){var t=lt("remoteWindowPromises").get(e);if(!t)throw new Error("Remote window promise not found");return t}function zt(e,t,r){Ot(e).resolve((function(n,a,i){if(n!==e)throw new Error("Remote window does not match window");if(!W(a,t))throw new Error("Remote domain "+a+" does not match domain "+t);r.fireAndForget(i)}))}function Pt(e,t){Ot(e).reject(t).catch(fe)}function Ft(e){for(var t=e.win,r=e.name,n=e.domain,a=nt("popupWindowsByName"),i=lt("popupWindowsByWin"),o=0,l=a.keys();o<l.length;o++){var s=l[o],c=a.get(s);c&&!R(c.win)||a.del(s)}if(R(t))return{win:t,name:r,domain:n};var u=i.getOrSet(t,(function(){return r?a.getOrSet(r,(function(){return{win:t,name:r}})):{win:t}}));if(u.win&&u.win!==t)throw new Error("Different window already linked for window: "+(r||"undefined"));return r&&(u.name=r,a.set(r,u)),n&&(u.domain=n,Tt(t)),i.set(t,u),u}function Nt(e){var t,r=e.on,n=e.send,a=e.receiveMessage;t=window.open,window.open=function(e,r,n,a){var i=t.call(this,G(e),r,n,a);return i?(Ft({win:i,name:r,domain:e?V(e):null}),i):i},function(e){var t=e.on,r=e.send,n=e.receiveMessage,a=nt("popupWindowsByName");t("postrobot_open_tunnel",(function(e){var i=e.source,o=e.origin,l=e.data,s=nt("bridges").get(o);if(!s)throw new Error("Can not find bridge promise for domain "+o);return s.then((function(e){if(i!==e)throw new Error("Message source does not matched registered bridge for domain "+o);if(!l.name)throw new Error("Register window expected to be passed window name");if(!l.sendMessage)throw new Error("Register window expected to be passed sendMessage method");if(!a.has(l.name))throw new Error("Window with name "+l.name+" does not exist, or was not opened by this window");var s=function(){return a.get(l.name)};if(!s().domain)throw new Error("We do not have a registered domain for window "+l.name);if(s().domain!==o)throw new Error("Message origin "+o+" does not matched registered window origin "+(s().domain||"unknown"));return zt(s().win,o,l.sendMessage),{sendMessage:function(e){if(window&&!window.closed&&s()){var a=s().domain;if(a)try{n({data:e,origin:a,source:s().win},{on:t,send:r})}catch(e){h.reject(e)}}}}}))}))}({on:r,send:n,receiveMessage:a}),function(e){var t=e.send;tt(window).openTunnelToParent=function(e){var r=e.name,n=e.source,a=e.canary,i=e.sendMessage,o=nt("tunnelWindows"),l=x(window);if(!l)throw new Error("No parent window found to open tunnel to");var s=function(e){var t=e.name,r=e.source,n=e.canary,a=e.sendMessage;!function(){for(var e=nt("tunnelWindows"),t=0,r=e.keys();t<r.length;t++){var n=r[t];R(e[n].source)&&e.del(n)}}();var i=oe();return nt("tunnelWindows").set(i,{name:t,source:r,canary:n,sendMessage:a}),i}({name:r,source:n,canary:a,sendMessage:i});return t(l,"postrobot_open_tunnel",{name:r,sendMessage:function(){var e=o.get(s);if(e&&e.source&&!R(e.source)){try{e.canary()}catch(e){return}e.sendMessage.apply(this,arguments)}}},{domain:"*"})}}({send:n}),function(e){var t=e.on,r=e.send,n=e.receiveMessage;h.try((function(){var e,a=k(window);if(a&&Et({win:a}))return Tt(a),(e=a,lt("remoteBridgeAwaiters").getOrSet(e,(function(){return h.try((function(){var t=L(e,Ct(E()));if(t)return C(t)&&tt($(t))?t:new h((function(e){var r,n;r=setInterval((function(){if(t&&C(t)&&tt($(t)))return clearInterval(r),clearTimeout(n),e(t)}),100),n=setTimeout((function(){return clearInterval(r),e()}),2e3)}))}))}))).then((function(e){return e?window.name?tt($(e)).openTunnelToParent({name:window.name,source:window,canary:function(){},sendMessage:function(e){try{window}catch(e){return}if(window&&!window.closed)try{n({data:e,origin:this.origin,source:this.source},{on:t,send:r})}catch(e){h.reject(e)}}}).then((function(e){var t=e.source,r=e.origin,n=e.data;if(t!==a)throw new Error("Source does not match opener");zt(t,r,n.sendMessage)})).catch((function(e){throw Pt(a,e),e})):Pt(a,new Error("Can not register with opener: window does not have a name")):Pt(a,new Error("Can not register with opener: no bridge found in opener"))}))}))}({on:r,send:n,receiveMessage:a})}function Rt(){for(var e=nt("idToProxyWindow"),t=0,r=e.keys();t<r.length;t++){var n=r[t];e.get(n).shouldClean()&&e.del(n)}}function It(e,t){var r=t.send,n=t.id,a=void 0===n?oe():n,i=e.then((function(e){if(C(e))return $(e).name})),o=e.then((function(e){if(R(e))throw new Error("Window is closed, can not determine type");return k(e)?g.POPUP:g.IFRAME}));i.catch(fe),o.catch(fe);var l=function(){return e.then((function(e){if(!R(e))return C(e)?$(e).name:i}))};return{id:a,getType:function(){return o},getInstanceID:pe((function(){return e.then((function(e){return dt(e,{send:r})}))})),close:function(){return e.then(Y)},getName:l,focus:function(){return e.then((function(e){e.focus()}))},isClosed:function(){return e.then((function(e){return R(e)}))},setLocation:function(t,r){return void 0===r&&(r={}),e.then((function(e){var n=window.location.protocol+"//"+window.location.host,a=r.method,i=void 0===a?"get":a,o=r.body;if(0===t.indexOf("/"))t=""+n+t;else if(!t.match(/^https?:\/\//)&&0!==t.indexOf(n))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(t));if("post"===i)return l().then((function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var t=e.url,r=e.target,n=e.body,a=e.method,i=void 0===a?"post":a,o=document.createElement("form");if(o.setAttribute("target",r),o.setAttribute("method",i),o.setAttribute("action",t),o.style.display="none",n)for(var l=0,s=Object.keys(n);l<s.length;l++){var c,u=s[l],d=document.createElement("input");d.setAttribute("name",u),d.setAttribute("value",null==(c=n[u])?void 0:c.toString()),o.appendChild(d)}$e().appendChild(o),o.submit(),$e().removeChild(o)}({url:t,target:e,method:i,body:o})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(C(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(t)}catch(e){}e.location=t}))},setName:function(t){return e.then((function(e){Ft({win:e,name:t});var r=C(e),n=K(e);if(!r)throw new Error("Can not set name for cross-domain window: "+t);$(e).name=t,n&&n.setAttribute("name",t),i=h.resolve(t)}))}}}var Lt=function(){function e(e){var t=e.send,r=e.win,n=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new h,this.serializedWindow=n||It(this.actualWindowPromise,{send:t}),nt("idToProxyWindow").set(this.getID(),this),r&&this.setWindow(r,{send:t})}var t=e.prototype;return t.getID=function(){return this.serializedWindow.id},t.getType=function(){return this.serializedWindow.getType()},t.isPopup=function(){return this.getType().then((function(e){return e===g.POPUP}))},t.setLocation=function(e,t){var r=this;return this.serializedWindow.setLocation(e,t).then((function(){return r}))},t.getName=function(){return this.serializedWindow.getName()},t.setName=function(e){var t=this;return this.serializedWindow.setName(e).then((function(){return t}))},t.close=function(){var e=this;return this.serializedWindow.close().then((function(){return e}))},t.focus=function(){var e=this,t=this.isPopup(),r=this.getName(),n=h.hash({isPopup:t,name:r}).then((function(e){var t=e.name;e.isPopup&&t&&window.open("",t,"noopener")})),a=this.serializedWindow.focus();return h.all([n,a]).then((function(){return e}))},t.isClosed=function(){return this.serializedWindow.isClosed()},t.getWindow=function(){return this.actualWindow},t.setWindow=function(e,t){var r=t.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=It(this.actualWindowPromise,{send:r,id:this.getID()}),lt("winToProxyWindow").set(e,this)},t.awaitWindow=function(){return this.actualWindowPromise},t.matchWindow=function(e,t){var r=this,n=t.send;return h.try((function(){return r.actualWindow?e===r.actualWindow:h.hash({proxyInstanceID:r.getInstanceID(),knownWindowInstanceID:dt(e,{send:n})}).then((function(t){var a=t.proxyInstanceID===t.knownWindowInstanceID;return a&&r.setWindow(e,{send:n}),a}))}))},t.unwrap=function(){return this.actualWindow||this},t.getInstanceID=function(){return this.serializedWindow.getInstanceID()},t.shouldClean=function(){return Boolean(this.actualWindow&&R(this.actualWindow))},t.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,r){var n=r.send;return Rt(),e.toProxyWindow(t,{send:n}).serialize()},e.deserialize=function(t,r){var n=r.send;return Rt(),nt("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:n})},e.isProxyWindow=function(e){return Boolean(e&&!q(e)&&e.isProxyWindow)},e.toProxyWindow=function(t,r){var n=r.send;if(Rt(),e.isProxyWindow(t))return t;var a=t;return lt("winToProxyWindow").get(a)||new e({win:a,send:n})},e}();function Mt(e,t,r,n,a){var i=lt("methodStore"),o=nt("proxyWindowMethods");Lt.isProxyWindow(n)?o.set(e,{val:t,name:r,domain:a,source:n}):(o.del(e),i.getOrSet(n,(function(){return{}}))[e]={domain:a,name:r,val:t,source:n})}function Dt(e,t){var r=lt("methodStore"),n=nt("proxyWindowMethods");return r.getOrSet(e,(function(){return{}}))[t]||n.get(t)}function Ht(e,t,r,n,a){var i,o,l;o=(i={on:a.on,send:a.send}).on,l=i.send,nt("builtinListeners").getOrSet("functionCalls",(function(){return o("postrobot_method",{domain:"*"},(function(e){var t=e.source,r=e.origin,n=e.data,a=n.id,i=n.name,o=Dt(t,a);if(!o)throw new Error("Could not find method '"+i+"' with id: "+n.id+" in "+E(window));var s=o.source,c=o.domain,u=o.val;return h.try((function(){if(!W(c,r))throw new Error("Method '"+n.name+"' domain "+JSON.stringify(ke(o.domain)?o.domain.source:o.domain)+" does not match origin "+r+" in "+E(window));if(Lt.isProxyWindow(s))return s.matchWindow(t,{send:l}).then((function(e){if(!e)throw new Error("Method call '"+n.name+"' failed - proxy window does not match source in "+E(window))}))})).then((function(){return u.apply({source:t,origin:r},n.args)}),(function(e){return h.try((function(){if(u.onError)return u.onError(e)})).then((function(){var t;throw e.stack&&(e.stack="Remote call to "+i+"("+(void 0===(t=n.args)&&(t=[]),we(t).map((function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:a,name:i}}))}))}));var s=r.__id__||oe();e=Lt.unwrap(e);var c=r.__name__||r.name||n;return"string"==typeof c&&"function"==typeof c.indexOf&&0===c.indexOf("anonymous::")&&(c=c.replace("anonymous::",n+"::")),Lt.isProxyWindow(e)?(Mt(s,r,c,e,t),e.awaitWindow().then((function(e){Mt(s,r,c,e,t)}))):Mt(s,r,c,e,t),gt("cross_domain_function",{id:s,name:c})}function Bt(e,t,r,n){var a,i=n.on,o=n.send;return function(e,t){void 0===t&&(t=bt);var r=JSON.stringify(e,(function(e){var r=this[e];if(ht(this))return r;var n=mt(r);if(!n)return r;var a=t[n]||vt[n];return a?a(r,e):r}));return void 0===r?"undefined":r}(r,((a={}).promise=function(r,n){return function(e,t,r,n,a){return gt("cross_domain_zalgo_promise",{then:Ht(e,t,(function(e,t){return r.then(e,t)}),n,{on:a.on,send:a.send})})}(e,t,r,n,{on:i,send:o})},a.function=function(r,n){return Ht(e,t,r,n,{on:i,send:o})},a.object=function(e){return q(e)||Lt.isProxyWindow(e)?gt("cross_domain_window",Lt.serialize(e,{send:o})):e},a))}function jt(e,t,r,n){var a,i=n.send;return function(e,t){if(void 0===t&&(t=xt),"undefined"!==e)return JSON.parse(e,(function(e,r){if(ht(this))return r;var n,a;if(ht(r)?(n=r.__type__,a=r.__val__):(n=mt(r),a=r),!n)return a;var i=t[n]||wt[n];return i?i(a,e):a}))}(r,((a={}).cross_domain_zalgo_promise=function(e){return function(e,t,r){return new h(r.then)}(0,0,e)},a.cross_domain_function=function(r){return function(e,t,r,n){var a=r.id,i=r.name,o=n.send,l=function(r){function n(){var l=arguments;return Lt.toProxyWindow(e,{send:o}).awaitWindow().then((function(e){var s=Dt(e,a);if(s&&s.val!==n)return s.val.apply({source:window,origin:E()},l);var c=[].slice.call(l);return r.fireAndForget?o(e,"postrobot_method",{id:a,name:i,args:c},{domain:t,fireAndForget:!0}):o(e,"postrobot_method",{id:a,name:i,args:c},{domain:t,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===r&&(r={}),n.__name__=i,n.__origin__=t,n.__source__=e,n.__id__=a,n.origin=t,n},s=l();return s.fireAndForget=l({fireAndForget:!0}),s}(e,t,r,{send:i})},a.cross_domain_window=function(e){return Lt.deserialize(e,{send:i})},a))}var Wt={};function Vt(e,t,r,n){var a=n.on,i=n.send;return h.try((function(){var n=lt().getOrSet(e,(function(){return{}}));return n.buffer=n.buffer||[],n.buffer.push(r),n.flush=n.flush||h.flush().then((function(){if(R(e))throw new Error("Window is closed");var r,o=Bt(e,t,((r={}).__post_robot_11_0_0__=n.buffer||[],r),{on:a,send:i});delete n.buffer;for(var l=Object.keys(Wt),s=[],c=0;c<l.length;c++){var u=l[c];try{Wt[u](e,o,t)}catch(e){s.push(e)}}if(s.length===l.length)throw new Error("All post-robot messaging strategies failed:\n\n"+s.map((function(e,t){return t+". "+me(e)})).join("\n\n"))})),n.flush.then((function(){delete n.flush}))})).then(fe)}function Ut(e){return nt("responseListeners").get(e)}function qt(e){nt("responseListeners").del(e)}function Gt(e){return nt("erroredResponseListeners").has(e)}function Kt(e){var t=e.name,r=e.win,n=e.domain,a=lt("requestListeners");if("*"===r&&(r=null),"*"===n&&(n=null),!t)throw new Error("Name required to get request listener");for(var i=0,o=[r,ot()];i<o.length;i++){var l=o[i];if(l){var s=a.get(l);if(s){var c=s[t];if(c){if(n&&"string"==typeof n){if(c[n])return c[n];if(c.__domain_regex__)for(var u=0,d=c.__domain_regex__;u<d.length;u++){var p=d[u],f=p.listener;if(W(p.regex,n))return f}}if(c["*"])return c["*"]}}}}}function Yt(e,t){var r=t.on,n=t.send,a=nt("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(e){return}var i=e.source,o=e.origin,l=function(e,t,r,n){var a,i=n.on,o=n.send;try{a=jt(t,r,e,{on:i,send:o})}catch(e){return}if(a&&"object"==typeof a&&null!==a){var l=a.__post_robot_11_0_0__;if(Array.isArray(l))return l}}(e.data,i,o,{on:r,send:n});if(l){ft(i);for(var s,c=function(){var e=l[u];if(a.has(e.id))return{v:void 0};if(a.set(e.id,!0),R(i)&&!e.fireAndForget)return{v:void 0};0===e.origin.indexOf("file:")&&(o="file://");try{"postrobot_message_request"===e.type?function(e,t,r,n){var a=n.on,i=n.send,o=Kt({name:r.name,win:e,domain:t}),l="postrobot_method"===r.name&&r.data&&"string"==typeof r.data.name?r.data.name+"()":r.name;function s(n,o,s){return h.flush().then((function(){if(!r.fireAndForget&&!R(e))try{return Vt(e,t,{id:oe(),origin:E(window),type:"postrobot_message_response",hash:r.hash,name:r.name,ack:n,data:o,error:s},{on:a,send:i})}catch(e){throw new Error("Send response message failed for "+l+" in "+E()+"\n\n"+me(e))}}))}h.all([h.flush().then((function(){if(!r.fireAndForget&&!R(e))try{return Vt(e,t,{id:oe(),origin:E(window),type:"postrobot_message_ack",hash:r.hash,name:r.name},{on:a,send:i})}catch(e){throw new Error("Send ack message failed for "+l+" in "+E()+"\n\n"+me(e))}})),h.try((function(){if(!o)throw new Error("No handler found for post message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return o.handler({source:e,origin:t,data:r.data})})).then((function(e){return s("success",e)}),(function(e){return s("error",null,e)}))]).then(fe).catch((function(e){if(o&&o.handleError)return o.handleError(e);throw e}))}(i,o,e,{on:r,send:n}):"postrobot_message_response"===e.type?function(e,t,r){if(!Gt(r.hash)){var n,a=Ut(r.hash);if(!a)throw new Error("No handler found for post message response for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!W(a.domain,t))throw new Error("Response origin "+t+" does not match domain "+(n=a.domain,Array.isArray(n)?"("+n.join(" | ")+")":m(n)?"RegExp("+n.toString()+")":n.toString()));if(e!==a.win)throw new Error("Response source does not match registered window");qt(r.hash),"error"===r.ack?a.promise.reject(r.error):"success"===r.ack&&a.promise.resolve({source:e,origin:t,data:r.data})}}(i,o,e):"postrobot_message_ack"===e.type&&function(e,t,r){if(!Gt(r.hash)){var n=Ut(r.hash);if(!n)throw new Error("No handler found for post message ack for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!W(n.domain,t))throw new Error("Ack origin "+t+" does not match domain "+n.domain.toString());if(e!==n.win)throw new Error("Ack source does not match registered window")}catch(e){n.promise.reject(e)}n.ack=!0}}(i,o,e)}catch(e){setTimeout((function(){throw e}),0)}},u=0;u<l.length;u++)if(s=c())return s.v}}function Xt(e,t,r){if(!e)throw new Error("Expected name");if("function"==typeof(t=t||{})&&(r=t,t={}),!r)throw new Error("Expected handler");var n=function e(t,r){var n=t.name,a=t.win,i=t.domain,o=lt("requestListeners");if(!n||"string"!=typeof n)throw new Error("Name required to add request listener");if(a&&"*"!==a&&Lt.isProxyWindow(a)){var l=a.awaitWindow().then((function(t){return e({name:n,win:t,domain:i},r)}));return{cancel:function(){l.then((function(e){return e.cancel()}),fe)}}}var s=a;if(Array.isArray(s)){for(var c=[],u=0,d=s;u<d.length;u++)c.push(e({name:n,domain:i,win:d[u]},r));return{cancel:function(){for(var e=0;e<c.length;e++)c[e].cancel()}}}if(Array.isArray(i)){for(var p=[],f=0,h=i;f<h.length;f++)p.push(e({name:n,win:s,domain:h[f]},r));return{cancel:function(){for(var e=0;e<p.length;e++)p[e].cancel()}}}var m=Kt({name:n,win:s,domain:i});s&&"*"!==s||(s=ot());var g=(i=i||"*").toString();if(m)throw s&&i?new Error("Request listener already exists for "+n+" on domain "+i.toString()+" for "+(s===ot()?"wildcard":"specified")+" window"):s?new Error("Request listener already exists for "+n+" for "+(s===ot()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+n+" on domain "+i.toString()):new Error("Request listener already exists for "+n);var y,v,b=o.getOrSet(s,(function(){return{}})),w=_e(b,n,(function(){return{}}));return ke(i)?(y=_e(w,"__domain_regex__",(function(){return[]}))).push(v={regex:i,listener:r}):w[g]=r,{cancel:function(){delete w[g],v&&(y.splice(y.indexOf(v,1)),y.length||delete w.__domain_regex__),Object.keys(w).length||delete b[n],s&&!Object.keys(b).length&&o.del(s)}}}({name:e,win:t.window,domain:t.domain||"*"},{handler:r||t.handler,handleError:t.errorHandler||function(e){throw e}});return{cancel:function(){n.cancel()}}}Wt.postrobot_post_message=function(e,t,r){0===r.indexOf("file:")&&(r="*"),e.postMessage(t,r)},Wt.postrobot_bridge=function(e,t,r){if(!kt()&&!$t())throw new Error("Bridge not needed for browser");if(C(e))throw new Error("Post message through bridge disabled between same domain windows");if(!1!==j(window,e))throw new Error("Can only use bridge to communicate between two different windows, not between frames");!function(e,t,r){var n=M(window,e),a=M(e,window);if(!n&&!a)throw new Error("Can only send messages to and from parent and popup windows");Ot(e).then((function(n){return n(e,t,r)}))}(e,r,t)},Wt.postrobot_global=function(e,t){if(!I(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!C(e))throw new Error("Post message through global disabled between different domain windows");if(!1!==j(window,e))throw new Error("Can only use global to communicate between two different windows, not between frames");var r=tt(e);if(!r)throw new Error("Can not find postRobot global on foreign window");r.receiveMessage({source:window,origin:E(),data:t})};var Zt,Qt=function(e,t,r,n){var a=(n=n||{}).domain||"*",i=n.timeout||-1,o=n.timeout||5e3,l=n.fireAndForget||!1;return Lt.toProxyWindow(e,{send:Qt}).awaitWindow().then((function(e){return h.try((function(){if(function(e,t,r){if(!e)throw new Error("Expected name");if(r&&"string"!=typeof r&&!Array.isArray(r)&&!ke(r))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(r)+" to be a string, array, or regex");if(R(t))throw new Error("Can not send "+e+". Target window is closed")}(t,e,a),function(e,t){var r=D(t);if(r)return r===e;if(t===e)return!1;if(z(t)===t)return!1;for(var n=0,a=T(e);n<a.length;n++)if(a[n]===t)return!0;return!1}(window,e))return pt(e,o)})).then((function(t){return function(e,t,r,n){var a=n.send;return h.try((function(){return"string"==typeof t?t:h.try((function(){return r||ut(e,{send:a}).then((function(e){return e.domain}))})).then((function(e){if(!W(t,t))throw new Error("Domain "+ge(t)+" does not match "+ge(t));return e}))}))}(e,a,(void 0===t?{}:t).domain,{send:Qt})})).then((function(n){var a=n,o="postrobot_method"===t&&r&&"string"==typeof r.name?r.name+"()":t,s=new h,c=t+"_"+oe();if(!l){var u={name:t,win:e,domain:a,promise:s};!function(e,t){nt("responseListeners").set(e,t)}(c,u);var d=lt("requestPromises").getOrSet(e,(function(){return[]}));d.push(s),s.catch((function(){!function(e){nt("erroredResponseListeners").set(e,!0)}(c),qt(c)}));var p=function(e){return lt("knownWindows").get(e,!1)}(e)?1e4:2e3,f=i,m=p,g=f,y=be((function(){return R(e)?s.reject(new Error("Window closed for "+t+" before "+(u.ack?"response":"ack"))):u.cancelled?s.reject(new Error("Response listener was cancelled for "+t)):(m=Math.max(m-500,0),-1!==g&&(g=Math.max(g-500,0)),u.ack||0!==m?0===g?s.reject(new Error("No response for postMessage "+o+" in "+E()+" in "+f+"ms")):void 0:s.reject(new Error("No ack for postMessage "+o+" in "+E()+" in "+p+"ms")))}),500);s.finally((function(){y.cancel(),d.splice(d.indexOf(s,1))})).catch(fe)}return Vt(e,a,{id:oe(),origin:E(window),type:"postrobot_message_request",hash:c,name:t,data:r,fireAndForget:l},{on:Xt,send:Qt}).then((function(){return l?s.resolve():s}),(function(e){throw new Error("Send request message failed for "+o+" in "+E()+"\n\n"+me(e))}))}))}))};function Jt(e){return Lt.toProxyWindow(e,{send:Qt})}function er(e){for(var t=0,r=lt("requestPromises").get(e,[]);t<r.length;t++)r[t].reject(new Error("Window "+(R(e)?"closed":"cleaned up")+" before response")).catch(fe)}function tr(e){if(!C(e))throw new Error("Can not get global for window on different domain");return e.__zoid_10_3_4__||(e.__zoid_10_3_4__={}),e.__zoid_10_3_4__}function rr(e,t){try{return t(tr(e))}catch(e){}}function nr(e){return{get:function(){var t=this;return h.try((function(){if(t.source&&t.source!==window)throw new Error("Can not call get on proxy object from a remote window");return e}))}}}function ar(e){return ie(JSON.stringify(e))}function ir(e){var t=tr(e);return t.references=t.references||{},t.references}function or(e){var t,r,n=e.data,a=e.metaData,i=e.sender,o=e.receiver,l=e.passByReference,s=void 0!==l&&l,c=e.basic,u=void 0!==c&&c,d=Jt(o.win),p=u?JSON.stringify(n):Bt(d,o.domain,n,{on:Xt,send:Qt}),f=s?(t=p,r=oe(),ir(window)[r]=t,{type:"uid",uid:r}):{type:"raw",val:p};return{serializedData:ar({sender:{domain:i.domain},metaData:a,reference:f}),cleanReference:function(){var e,t;e=window,"uid"===(t=f).type&&delete ir(e)[t.uid]}}}function lr(e){var t,r,n=e.sender,a=e.basic,i=void 0!==a&&a,o=function(e){return JSON.parse(function(e){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}(e))}(e.data),l=o.reference,s=o.metaData;t="function"==typeof n.win?n.win({metaData:s}):n.win,r="function"==typeof n.domain?n.domain({metaData:s}):"string"==typeof n.domain?n.domain:o.sender.domain;var c=function(e,t){if("raw"===t.type)return t.val;if("uid"===t.type)return ir(e)[t.uid];throw new Error("Unsupported ref type: "+t.type)}(t,l);return{data:i?JSON.parse(c):function(e,t,r){return jt(e,t,r,{on:Xt,send:Qt})}(t,r,c),metaData:s,sender:{win:t,domain:r},reference:l}}Zt={setupBridge:Nt,openBridge:function(e,t){var r=nt("bridges"),n=nt("bridgeFrames");return t=t||V(e),r.getOrSet(t,(function(){return h.try((function(){if(E()===t)throw new Error("Can not open bridge on the same domain as current domain: "+t);var r=Ct(t);if(L(window,r))throw new Error("Frame with name "+r+" already exists on page");var a=function(e,t){var r=document.createElement("iframe");return r.setAttribute("name",e),r.setAttribute("id",e),r.setAttribute("style","display: none; margin: 0; padding: 0; border: 0px none; overflow: hidden;"),r.setAttribute("frameborder","0"),r.setAttribute("border","0"),r.setAttribute("scrolling","no"),r.setAttribute("allowTransparency","true"),r.setAttribute("tabindex","-1"),r.setAttribute("hidden","true"),r.setAttribute("title",""),r.setAttribute("role","presentation"),r.src=t,r}(r,e);return n.set(t,a),At.then((function(t){t.appendChild(a);var r=a.contentWindow;return new h((function(e,t){a.addEventListener("load",e),a.addEventListener("error",t)})).then((function(){return pt(r,5e3,"Bridge "+e)})).then((function(){return r}))}))}))}))},linkWindow:Ft,linkUrl:function(e,t){Ft({win:e,domain:V(t)})},isBridge:$t,needsBridge:Et,needsBridgeForBrowser:kt,hasBridge:function(e,t){return nt("bridges").has(t||V(e))},needsBridgeForWin:_t,needsBridgeForDomain:St,destroyBridges:function(){for(var e=nt("bridges"),t=nt("bridgeFrames"),r=0,n=t.keys();r<n.length;r++){var a=t.get(n[r]);a&&a.parentNode&&a.parentNode.removeChild(a)}t.reset(),e.reset()}};var sr={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},cr={STRING:"string",OBJECT:"object",FUNCTION:"function",BOOLEAN:"boolean",NUMBER:"number",ARRAY:"array"},ur={JSON:"json",DOTIFY:"dotify",BASE64:"base64"},dr=g,pr={RENDER:"zoid-render",RENDERED:"zoid-rendered",PRERENDER:"zoid-prerender",PRERENDERED:"zoid-prerendered",DISPLAY:"zoid-display",ERROR:"zoid-error",CLOSE:"zoid-close",DESTROY:"zoid-destroy",PROPS:"zoid-props",RESIZE:"zoid-resize",FOCUS:"zoid-focus"};function fr(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function hr(e){if(!e)throw new Error("No window name");var t=e.split("__"),r=t[1],n=t[2],a=t[3];if("zoid"!==r)throw new Error("Window not rendered by zoid - got "+r);if(!n)throw new Error("Expected component name");if(!a)throw new Error("Expected serialized payload ref");return{name:n,serializedInitialPayload:a}}var mr=de((function(e){var t=lr({data:hr(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return Ee("opener",k(window));if("parent"===e.type&&"number"==typeof e.distance)return Ee("parent",function(e,t){return void 0===t&&(t=1),function(e,t){void 0===t&&(t=1);for(var r=e,n=0;n<t;n++){if(!r)return;r=x(r)}return r}(e,B(e)-t)}(window,e.distance));if("global"===e.type&&e.uid&&"string"==typeof e.uid){var t=e.uid,r=D(window);if(!r)throw new Error("Can not find ancestor window");for(var n=0,a=P(r);n<a.length;n++){var i=a[n];if(C(i)){var o=rr(i,(function(e){return e.windows&&e.windows[t]}));if(o)return o}}}else if("name"===e.type){var l=e.name;return Ee("namedWindow",function(e,t){return L(e,t)||function e(t,r){var n=L(t,r);if(n)return n;for(var a=0,i=T(t);a<i.length;a++){var o=e(i[a],r);if(o)return o}}(z(e)||e,t)}(Ee("ancestor",D(window)),l))}throw new Error("Unable to find "+e.type+" parent component window")}(e.metaData.windowRef)}}});return{parent:t.sender,payload:t.data,reference:t.reference}}));function gr(){return mr(window.name)}function yr(e,t){if(void 0===t&&(t=window),e===x(t))return{type:"parent",distance:B(e)};if(e===k(t))return{type:"opener"};if(C(e)&&(n=e)!==z(n)){var r=$(e).name;if(r)return{type:"name",name:r}}var n}function vr(e,t,r,n,a){if(!e.hasOwnProperty(r))return n;var i=e[r];return"function"==typeof i.childDecorate?i.childDecorate({value:n,uid:a.uid,tag:a.tag,close:a.close,focus:a.focus,onError:a.onError,onProps:a.onProps,resize:a.resize,getParent:a.getParent,getParentDomain:a.getParentDomain,show:a.show,hide:a.hide,export:a.export,getSiblings:a.getSiblings}):n}function br(){return h.try((function(){window.focus()}))}function wr(){return h.try((function(){window.close()}))}var xr=function(){return fe},kr=function(e){return he(e.value)};function _r(e,t,r){for(var n=0,a=Object.keys(i({},e,t));n<a.length;n++){var o=a[n];r(o,t[o],e[o])}}function Sr(e,t,r){var n={};return h.all(function(e,t){var a=[];return _r(e,t,(function(e,t,i){var o=function(e,t,a){return h.resolve().then((function(){var i,o;if(null!=a&&t){var l=(i={},i.get=t.queryParam,i.post=t.bodyParam,i)[r],s=(o={},o.get=t.queryValue,o.post=t.bodyValue,o)[r];if(l)return h.hash({finalParam:h.try((function(){return"function"==typeof l?l({value:a}):"string"==typeof l?l:e})),finalValue:h.try((function(){return"function"==typeof s&&xe(a)?s({value:a}):a}))}).then((function(r){var a,i=r.finalParam,o=r.finalValue;if("boolean"==typeof o)a=o.toString();else if("string"==typeof o)a=o.toString();else if("object"==typeof o&&null!==o){if(t.serialization===ur.JSON)a=JSON.stringify(o);else if(t.serialization===ur.BASE64)a=ie(JSON.stringify(o));else if(t.serialization===ur.DOTIFY||!t.serialization){a=function e(t,r,n){for(var a in void 0===r&&(r=""),void 0===n&&(n={}),r=r?r+".":r,t)t.hasOwnProperty(a)&&null!=t[a]&&"function"!=typeof t[a]&&(t[a]&&Array.isArray(t[a])&&t[a].length&&t[a].every((function(e){return"object"!=typeof e}))?n[""+r+a+"[]"]=t[a].join(","):t[a]&&"object"==typeof t[a]?n=e(t[a],""+r+a,n):n[""+r+a]=t[a].toString());return n}(o,e);for(var l=0,s=Object.keys(a);l<s.length;l++){var c=s[l];n[c]=a[c]}return}}else"number"==typeof o&&(a=o.toString());n[i]=a}))}}))}(e,t,i);a.push(o)})),a}(t,e)).then((function(){return n}))}function Er(e){var t,r,n,a,o,l,s,c,u=e.uid,d=e.options,p=e.overrides,f=void 0===p?{}:p,m=e.parentWin,g=void 0===m?window:m,y=d.propsDef,v=d.containerTemplate,b=d.prerenderTemplate,w=d.tag,x=d.name,k=d.attributes,_=d.dimensions,S=d.autoResize,A=d.url,T=d.domain,O=d.exports,z=new h,P=[],F=Se(),N={},I={},L={visible:!0},M=f.event?f.event:(t={},r={},n={on:function(e,t){var n=r[e]=r[e]||[];n.push(t);var a=!1;return{cancel:function(){a||(a=!0,n.splice(n.indexOf(t),1))}}},once:function(e,t){var r=n.on(e,(function(){r.cancel(),t()}));return r},trigger:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var i=r[e],o=[];if(i)for(var l=function(){var e=i[s];o.push(h.try((function(){return e.apply(void 0,n)})))},s=0;s<i.length;s++)l();return h.all(o).then(fe)},triggerOnce:function(e){if(t[e])return h.resolve();t[e]=!0;for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.trigger.apply(n,[e].concat(a))},reset:function(){r={}}}),H=f.props?f.props:{},q=!1,K=f.onError,X=f.getProxyContainer,Z=f.show,Q=f.hide,J=f.close,ee=f.renderContainer,te=f.getProxyWindow,re=f.setProxyWin,ne=f.openFrame,ae=f.openPrerenderFrame,ie=f.prerender,le=f.open,se=f.openPrerender,ce=f.watchForUnload,ue=f.getInternalState,pe=f.setInternalState,ve=function(){return"function"==typeof _?_({props:H}):_},ke=function(){return h.try((function(){return f.resolveInitPromise?f.resolveInitPromise():z.resolve()}))},_e=function(e){return h.try((function(){return f.rejectInitPromise?f.rejectInitPromise(e):z.reject(e)}))},Ee=function(e){for(var t={},r=0,n=Object.keys(H);r<n.length;r++){var a=n[r],i=y[a];if(!i||!1!==i.sendToChild){var o=i&&i.trustedDomains&&i.trustedDomains.length>0?i.trustedDomains.reduce((function(t,r){return t||W(r,e)}),!1):W(e,E(window));i&&i.sameDomain&&!o||i&&i.trustedDomains&&!o||(t[a]=H[a])}}return h.hash(t)},Ce=function(){return h.try((function(){return ue?ue():L}))},$e=function(e){return h.try((function(){return pe?pe(e):L=i({},L,e)}))},Ae=function(){return te?te():h.try((function(){var e=H.window;if(e){var t=Jt(e);return F.register((function(){return e.close()})),t}return new Lt({send:Qt})}))},Te=function(e){return re?re(e):h.try((function(){a=e}))},Oe=function(){return Z?Z():h.hash({setState:$e({visible:!0}),showElement:o?o.get().then(Be):null}).then(fe)},ze=function(){return Q?Q():h.hash({setState:$e({visible:!1}),showElement:o?o.get().then(je):null}).then(fe)},Re=function(){return"function"==typeof A?A({props:H}):A},Le=function(){return"function"==typeof k?k({props:H}):k},Ge=function(){return V(Re())},Ke=function(e,t){var r=t.windowName;return ne?ne(e,{windowName:r}):h.try((function(){if(e===dr.IFRAME)return nr(De({attributes:i({name:r,title:x},Le().iframe)}))}))},Ye=function(e){return ae?ae(e):h.try((function(){if(e===dr.IFRAME)return nr(De({attributes:i({name:"__zoid_prerender_frame__"+x+"_"+oe()+"__",title:"prerender__"+x},Le().iframe)}))}))},Xe=function(e,t,r){return se?se(e,t,r):h.try((function(){if(e===dr.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return F.register((function(){return We(e)})),Me(e).then((function(e){return $(e)})).then((function(e){return Jt(e)}))}))}if(e===dr.POPUP)return t;throw new Error("No render context available for "+e)}))},Ze=function(){return h.try((function(){if(a)return h.all([M.trigger(pr.FOCUS),a.focus()]).then(fe)}))},Qe=function(e,t,r,n){if(t===E(window))return{type:"global",uid:(a=tr(window),a.windows=a.windows||{},a.windows[u]=window,F.register((function(){delete a.windows[u]})),u)};var a;if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(H.window){var i=n.getWindow();if(!i)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(D(i)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(r===dr.POPUP)return{type:"opener"};if(r===dr.IFRAME)return{type:"parent",distance:B(window)};throw new Error("Can not construct window reference for child")},Je=function(e,t){return h.try((function(){var r;s=e,l=t,null==(r=a)||r.isPopup().then((function(e){var r;""!==(null==t?void 0:t.name)&&e&&(null==(r=a)||r.setName(null==t?void 0:t.name))})).finally((function(){ke(),F.register((function(){return t.close.fireAndForget().catch(fe)}))}))}))},tt=function(e){var t=e.width,r=e.height;return h.try((function(){M.trigger(pr.RESIZE,{width:t,height:r})}))},rt=function(e){return h.try((function(){return M.trigger(pr.DESTROY)})).catch(fe).then((function(){return F.all(e)})).then((function(){var t=e||new Error(sr.COMPONENT_DESTROYED);c&&Ve(c)||Object.values(sr).includes(t.message)?z.resolve():z.asyncReject(t)}))},nt=de((function(e){return h.try((function(){if(J){if(R(J.__source__))return;return J()}return h.try((function(){return M.trigger(pr.CLOSE)})).then((function(){return rt(e||new Error(sr.COMPONENT_CLOSED))}))}))})),at=function(e,t){var r=t.proxyWin,n=t.proxyFrame,a=t.windowName;return le?le(e,{proxyWin:r,proxyFrame:n,windowName:a}):h.try((function(){if(e===dr.IFRAME){if(!n)throw new Error("Expected proxy frame to be passed");return n.get().then((function(e){return Me(e).then((function(t){return F.register((function(){return We(e)})),F.register((function(){return er(t)})),t}))}))}if(e===dr.POPUP){var t=ve(),r=t.width,o=void 0===r?"300px":r,l=t.height,s=void 0===l?"150px":l;o=et(o,window.outerWidth),s=et(s,window.outerWidth);var c=function(e,t){var r=(t=t||{}).closeOnUnload,n=void 0===r?1:r,a=t.name,o=void 0===a?"":a,l=t.width,s=t.height,c=0,u=0;l&&(window.outerWidth?u=Math.round((window.outerWidth-l)/2)+window.screenX:window.screen.width&&(u=Math.round((window.screen.width-l)/2))),s&&(window.outerHeight?c=Math.round((window.outerHeight-s)/2)+window.screenY:window.screen.height&&(c=Math.round((window.screen.height-s)/2))),delete t.closeOnUnload,delete t.name,l&&s&&(t=i({top:c,left:u,width:l,height:s,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},t));var d,p,f=Object.keys(t).map((function(e){if(null!=t[e])return e+"="+ge(t[e])})).filter(Boolean).join(",");try{d=window.open("",o,f)}catch(p){throw new Ie("Can not open popup window - "+(p.stack||p.message))}if(R(d))throw new Ie("Can not open popup window - blocked");return n&&window.addEventListener("unload",(function(){return d.close()})),d}(0,i({name:a,width:o,height:s},Le().popup));return F.register((function(){return Y(c)})),F.register((function(){return er(c)})),c}throw new Error("No render context available for "+e)})).then((function(e){return r.setWindow(e,{send:Qt}),r.setName(a).then((function(){return r}))}))},it=function(){return h.try((function(){var e=He(window,"unload",he((function(){rt(new Error(sr.NAVIGATED_AWAY))}))),t=U(g,rt,3e3);if(F.register(t.cancel),F.register(e.cancel),ce)return ce()}))},ot=function(e,t){var r=!1;return F.register((function(){r=!0})),h.delay(2e3).then((function(){return e.isClosed()})).then((function(n){if(!r){if(t===dr.POPUP&&n)return nt(new Error("Detected popup close"));var a=Boolean(c&&Ve(c));return t===dr.IFRAME&&n&&(a||q)?nt(new Error(sr.IFRAME_CLOSE)):ot(e,t)}}))},lt=function(e){var t=!1;return e.isClosed().then((function(r){return r?(t=!0,nt(new Error(sr.WINDOW_CLOSED))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return t=!0,nt(new Error(sr.WINDOW_CLOSED))}))})).then((function(){return t}))},st=function(e){return K?K(e):h.try((function(){if(-1===P.indexOf(e))return P.push(e),z.asyncReject(e),M.trigger(pr.ERROR,e)}))},ct=new h,ut=function(e){return h.try((function(){ct.resolve(e)}))};Je.onError=st;var dt=function(e,t){return e({uid:u,container:t.container,context:t.context,doc:t.doc,frame:t.frame,prerenderFrame:t.prerenderFrame,focus:Ze,close:nt,state:N,props:H,tag:w,dimensions:ve(),event:M})},pt=function(e,t){var r=t.context;return ie?ie(e,{context:r}):h.try((function(){if(b){M.trigger(pr.PRERENDER);var t=e.getWindow();if(t&&C(t)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(t)){var n=(t=$(t)).document,a=dt(b,{context:r,doc:n});if(a){if(a.ownerDocument!==n)throw new Error("Expected prerender template to have been created with document from child window");!function(e,t){var r=t.tagName.toLowerCase();if("html"!==r)throw new Error("Expected element to be html, got "+r);for(var n=e.document.documentElement,a=0,i=we(n.children);a<i.length;a++)n.removeChild(i[a]);for(var o=0,l=we(t.children);o<l.length;o++)n.appendChild(l[o])}(t,a);var i=S.width,o=void 0!==i&&i,l=S.height,s=void 0!==l&&l,c=S.element,u=void 0===c?"body":c;if((u=Fe(u,n))&&(o||s)){var d=Ue(u,(function(e){tt({width:o?e.width:void 0,height:s?e.height:void 0})}),{width:o,height:s,win:t});M.on(pr.RENDERED,d.cancel)}M.trigger(pr.PRERENDERED)}}}}))},ft=function(e,t){var r=t.proxyFrame,n=t.proxyPrerenderFrame,a=t.context,i=t.rerender;return ee?ee(e,{proxyFrame:r,proxyPrerenderFrame:n,context:a,rerender:i}):h.hash({container:e.get(),frame:r?r.get():null,prerenderFrame:n?n.get():null,internalState:Ce()}).then((function(e){var t=e.container,r=e.internalState.visible,n=dt(v,{context:a,container:t,frame:e.frame,prerenderFrame:e.prerenderFrame,doc:document});if(n){r||je(n),function(e,t){e.appendChild(t)}(t,n);var l=function(e,t){t=he(t);var r,n,a,i=!1,o=[],l=function(){i=!0;for(var e=0;e<o.length;e++)o[e].disconnect();r&&r.cancel(),a&&a.removeEventListener("unload",s),n&&We(n)},s=function(){i||(t(),l())};if(Ve(e))return s(),{cancel:l};if(window.MutationObserver)for(var c=e.parentElement;c;){var u=new window.MutationObserver((function(){Ve(e)&&s()}));u.observe(c,{childList:!0}),o.push(u),c=c.parentElement}return(n=document.createElement("iframe")).setAttribute("name","__detect_close_"+oe()+"__"),n.style.display="none",Me(n).then((function(e){(a=$(e)).addEventListener("unload",s)})),e.appendChild(n),r=be((function(){Ve(e)&&s()}),1e3),{cancel:l}}(n,(function(){var e=new Error("Detected container element removed from DOM");return h.delay(1).then((function(){if(!Ve(n))return F.all(e),i().then(ke,_e);nt(e)}))}));return F.register((function(){return l.cancel()})),F.register((function(){return We(n)})),o=nr(n)}}))},ht=function(){return{state:N,event:M,close:nt,focus:Ze,resize:tt,onError:st,updateProps:gt,show:Oe,hide:ze}},mt=function(e){void 0===e&&(e={});var t=c,r=ht();ye(I,e),function(e,t,r,n,a){var i=n.state,o=n.close,l=n.focus,s=n.event,c=n.onError;_r(r,e,(function(e,n,u){var d=!1,p=u;Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return d?p:(d=!0,function(){if(!n)return p;var d=n.alias;if(d&&!xe(u)&&xe(r[d])&&(p=r[d]),n.value&&(p=n.value({props:t,state:i,close:o,focus:l,event:s,onError:c,container:a})),!n.default||xe(p)||xe(r[e])||(p=n.default({props:t,state:i,close:o,focus:l,event:s,onError:c,container:a})),xe(p)){if(n.type===cr.ARRAY?!Array.isArray(p):typeof p!==n.type)throw new TypeError("Prop is not of type "+n.type+": "+e)}else if(!1!==n.required&&!xe(r[e]))throw new Error('Expected prop "'+e+'" to be defined');return xe(p)&&n.decorate&&(p=n.decorate({value:p,props:t,state:i,close:o,focus:l,event:s,onError:c,container:a})),p}())}})})),_r(t,e,fe)}(y,H,I,r,t)},gt=function(e){return mt(e),z.then((function(){var e=l,t=a;if(e&&t&&s)return Ee(s).then((function(r){return e.updateProps(r).catch((function(e){return lt(t).then((function(t){if(!t)throw e}))}))}))}))},yt=function(e){return X?X(e):h.try((function(){return Ne(e)})).then((function(e){return qe(e)&&(e=function e(t){var r=function(e){var t=function(e){for(;e.parentNode;)e=e.parentNode;if(qe(e))return e}(e);if(t&&t.host)return t.host}(t);if(!r)throw new Error("Element is not in shadow dom");var n="shadow-slot-"+oe(),a=document.createElement("slot");a.setAttribute("name",n),t.appendChild(a);var i=document.createElement("div");return i.setAttribute("slot",n),r.appendChild(i),qe(r)?e(i):i}(e)),c=e,nr(e)}))};return{init:function(){M.on(pr.RENDER,(function(){return H.onRender()})),M.on(pr.PRERENDER,(function(){return H.onPrerender()})),M.on(pr.DISPLAY,(function(){return H.onDisplay()})),M.on(pr.RENDERED,(function(){return H.onRendered()})),M.on(pr.PRERENDERED,(function(){return H.onPrerendered()})),M.on(pr.CLOSE,(function(){return H.onClose()})),M.on(pr.DESTROY,(function(){return H.onDestroy()})),M.on(pr.RESIZE,(function(){return H.onResize()})),M.on(pr.FOCUS,(function(){return H.onFocus()})),M.on(pr.PROPS,(function(e){return H.onProps(e)})),M.on(pr.ERROR,(function(e){return H&&H.onError?H.onError(e):_e(e).then((function(){setTimeout((function(){throw e}),1)}))})),F.register(M.reset)},render:function(e){var t=e.target,r=e.container,n=e.context,i=e.rerender;return h.try((function(){var e=Ge(),o=T||Ge();!function(e,t,r){if(e!==window){if(!j(window,e))throw new Error("Can only renderTo an adjacent frame");var n=E();if(!W(t,n)&&!C(e))throw new Error("Can not render remotely to "+t.toString()+" - can only render to "+n);if(r&&"string"!=typeof r)throw new Error("Container passed to renderTo must be a string selector, got "+typeof r+" }")}}(t,o,r);var l=h.try((function(){if(t!==window)return function(e,t){for(var r={},n=0,a=Object.keys(H);n<a.length;n++){var i=a[n],o=y[i];o&&o.allowDelegate&&(r[i]=H[i])}var l=Qt(t,"zoid_delegate_"+x,{uid:u,overrides:{props:r,event:M,close:nt,onError:st,getInternalState:Ce,setInternalState:$e,resolveInitPromise:ke,rejectInitPromise:_e}}).then((function(e){var r=e.data.parent;return F.register((function(e){if(!R(t))return r.destroy(e)})),r.getDelegateOverrides()})).catch((function(e){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+me(e))}));return X=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.getProxyContainer.apply(e,t)}))},ee=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.renderContainer.apply(e,t)}))},Z=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.show.apply(e,t)}))},Q=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.hide.apply(e,t)}))},ce=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.watchForUnload.apply(e,t)}))},e===dr.IFRAME?(te=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.getProxyWindow.apply(e,t)}))},ne=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.openFrame.apply(e,t)}))},ae=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.openPrerenderFrame.apply(e,t)}))},ie=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.prerender.apply(e,t)}))},le=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.open.apply(e,t)}))},se=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.openPrerender.apply(e,t)}))}):e===dr.POPUP&&(re=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.setProxyWin.apply(e,t)}))}),l}(n,t)})),s=H.window,c=it(),p=Sr(y,H,"post"),f=M.trigger(pr.RENDER),m=yt(r),g=Ae(),v=m.then((function(){return mt()})),b=v.then((function(){return Sr(y,H,"get").then((function(e){return function(e,t){var r,n,a=t.query||{},i=t.hash||{},o=e.split("#");n=o[1];var l=(r=o[0]).split("?");r=l[0];var s=Pe(l[1],a),c=Pe(n,i);return s&&(r=r+"?"+s),c&&(r=r+"#"+c),r}(G(Re()),{query:e})}))})),k=g.then((function(r){return function(e){var t=void 0===e?{}:e,r=t.proxyWin,n=t.initialChildDomain,a=t.childDomainMatch,i=t.target,o=void 0===i?window:i,l=t.context;return function(e){var t=void 0===e?{}:e,r=t.proxyWin,n=t.childDomainMatch,a=t.context;return Ee(t.initialChildDomain).then((function(e){return{uid:u,context:a,tag:w,childDomainMatch:n,version:"10_3_4",props:e,exports:(t=r,{init:function(e){return Je(this.origin,e)},close:nt,checkClose:function(){return lt(t)},resize:tt,onError:st,show:Oe,hide:ze,export:ut})};var t}))}({proxyWin:r,initialChildDomain:n,childDomainMatch:a,context:l}).then((function(e){var t=or({data:e,metaData:{windowRef:Qe(o,n,l,r)},sender:{domain:E(window)},receiver:{win:r,domain:a},passByReference:n===E()}),i=t.serializedData;return F.register(t.cleanReference),i}))}({proxyWin:(a={proxyWin:r,initialChildDomain:e,childDomainMatch:o,target:t,context:n}).proxyWin,initialChildDomain:a.initialChildDomain,childDomainMatch:a.childDomainMatch,target:a.target,context:a.context}).then((function(e){return fr({name:x,serializedPayload:e})}));var a})),_=k.then((function(e){return Ke(n,{windowName:e})})),S=Ye(n),$=h.hash({proxyContainer:m,proxyFrame:_,proxyPrerenderFrame:S}).then((function(e){return ft(e.proxyContainer,{context:n,proxyFrame:e.proxyFrame,proxyPrerenderFrame:e.proxyPrerenderFrame,rerender:i})})).then((function(e){return e})),A=h.hash({windowName:k,proxyFrame:_,proxyWin:g}).then((function(e){var t=e.proxyWin;return s?t:at(n,{windowName:e.windowName,proxyWin:t,proxyFrame:e.proxyFrame})})),O=h.hash({proxyWin:A,proxyPrerenderFrame:S}).then((function(e){return Xe(n,e.proxyWin,e.proxyPrerenderFrame)})),P=A.then((function(e){return a=e,Te(e)})),N=h.hash({proxyPrerenderWin:O,state:P}).then((function(e){return pt(e.proxyPrerenderWin,{context:n})})),I=h.hash({proxyWin:A,windowName:k}).then((function(e){if(s)return e.proxyWin.setName(e.windowName)})),L=h.hash({body:p}).then((function(e){return d.method?d.method:Object.keys(e.body).length?"post":"get"})),D=h.hash({proxyWin:A,windowUrl:b,body:p,method:L,windowName:I,prerender:N}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),B=A.then((function(e){ot(e,n)})),U=h.hash({container:$,prerender:N}).then((function(){return M.trigger(pr.DISPLAY)})),K=A.then((function(t){return function(e,t,r){return h.try((function(){return e.awaitWindow()})).then((function(e){if(Zt&&Zt.needsBridge({win:e,domain:t})&&!Zt.hasBridge(t,t)){var n="function"==typeof d.bridgeUrl?d.bridgeUrl({props:H}):d.bridgeUrl;if(!n)throw new Error("Bridge needed to render "+r);var a=V(n);return Zt.linkUrl(e,t),Zt.openBridge(G(n),a)}}))}(t,e,n)})),Y=D.then((function(){return h.try((function(){var e=H.timeout;if(e)return z.timeout(e,new Error("Loading component timed out after "+e+" milliseconds"))}))})),J=z.then((function(){return q=!0,M.trigger(pr.RENDERED)}));return h.hash({initPromise:z,buildUrlPromise:b,onRenderPromise:f,getProxyContainerPromise:m,openFramePromise:_,openPrerenderFramePromise:S,renderContainerPromise:$,openPromise:A,openPrerenderPromise:O,setStatePromise:P,prerenderPromise:N,loadUrlPromise:D,buildWindowNamePromise:k,setWindowNamePromise:I,watchForClosePromise:B,onDisplayPromise:U,openBridgePromise:K,runTimeoutPromise:Y,onRenderedPromise:J,delegatePromise:l,watchForUnloadPromise:c,finalSetPropsPromise:v})})).catch((function(e){return h.all([st(e),rt(e)]).then((function(){throw e}),(function(){throw e}))})).then(fe)},destroy:rt,getProps:function(){return H},setProps:mt,export:ut,getHelpers:ht,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:yt,show:Oe,hide:ze,renderContainer:ft,getProxyWindow:Ae,watchForUnload:it,openFrame:Ke,openPrerenderFrame:Ye,prerender:pt,open:at,openPrerender:Xe,setProxyWin:Te}}))},getExports:function(){return O({getExports:function(){return ct}})}}}function Cr(e){var t=e.uid,r=e.frame,n=e.prerenderFrame,a=e.doc,i=e.props,o=e.event,l=e.dimensions,s=l.width,c=l.height;if(r&&n){var u=a.createElement("div");u.setAttribute("id",t);var d=a.createElement("style");return i.cspNonce&&d.setAttribute("nonce",i.cspNonce),d.appendChild(a.createTextNode("\n #"+t+" {\n display: inline-block;\n position: relative;\n width: "+s+";\n height: "+c+";\n }\n\n #"+t+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+t+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+t+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),u.appendChild(r),u.appendChild(n),u.appendChild(d),n.classList.add("zoid-visible"),r.classList.add("zoid-invisible"),o.on(pr.RENDERED,(function(){n.classList.remove("zoid-visible"),n.classList.add("zoid-invisible"),r.classList.remove("zoid-invisible"),r.classList.add("zoid-visible"),setTimeout((function(){We(n)}),1)})),o.on(pr.RESIZE,(function(e){var t=e.width,r=e.height;"number"==typeof t&&(u.style.width=Je(t)),"number"==typeof r&&(u.style.height=Je(r))})),u}}function $r(e){var t=e.doc,r=e.props,n=t.createElement("html"),a=t.createElement("body"),i=t.createElement("style"),o=t.createElement("div");return o.classList.add("spinner"),r.cspNonce&&i.setAttribute("nonce",r.cspNonce),n.appendChild(a),a.appendChild(o),a.appendChild(i),i.appendChild(t.createTextNode("\n html, body {\n width: 100%;\n height: 100%;\n }\n\n .spinner {\n position: fixed;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n }\n\n @keyframes rotation {\n from {\n transform: translateX(-50%) translateY(-50%) rotate(0deg);\n }\n to {\n transform: translateX(-50%) translateY(-50%) rotate(359deg);\n }\n }\n ")),n}var Ar=Se(),Tr=Se();var Or=function(e){var t,r,n,a;tt().initialized||(tt().initialized=!0,r=(t={on:Xt,send:Qt}).on,n=t.send,(a=tt()).receiveMessage=a.receiveMessage||function(e){return Yt(e,{on:r,send:n})},function(e){var t=e.on,r=e.send;nt().getOrSet("postMessageListener",(function(){return He(window,"message",(function(e){!function(e,t){var r=t.on,n=t.send;h.try((function(){var t=e.source||e.sourceElement,a=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===a&&(a="file://"),t){if(!a)throw new Error("Post message did not have origin domain");Yt({source:t,origin:a,data:i},{on:r,send:n})}}))}(e,{on:t,send:r})}))}))}({on:Xt,send:Qt}),Nt({on:Xt,send:Qt,receiveMessage:Yt}),function(e){var t=e.on,r=e.send;nt("builtinListeners").getOrSet("helloListener",(function(){var e=t("postrobot_hello",{domain:"*"},(function(e){return ct(e.source,{domain:e.origin}),{instanceID:st()}})),n=D();return n&&ut(n,{send:r}).catch((function(e){})),e}))}({on:Xt,send:Qt}));var o=function(e){var t,r,n=function(e){var t=e.tag,r=e.url,n=e.domain,a=e.bridgeUrl,o=e.props,l=void 0===o?{}:o,s=e.getExtensions,c=void 0===s?function(){return{}}:s,u=e.dimensions,d=void 0===u?{}:u,p=e.autoResize,f=void 0===p?{}:p,h=e.allowedParentDomains,m=void 0===h?"*":h,g=e.attributes,y=void 0===g?{}:g,v=e.defaultContext,b=void 0===v?dr.IFRAME:v,w=e.containerTemplate,x=void 0===w?Cr:w,k=e.prerenderTemplate,_=void 0===k?$r:k,S=e.validate,E=e.eligible,$=void 0===E?function(){return{eligible:!0}}:E,A=e.logger,T=void 0===A?{info:fe}:A,O=e.exports,z=void 0===O?fe:O,P=e.method,F=e.children,N=void 0===F?function(){return{}}:F,I=t.replace(/-/g,"_"),L=i({},{window:{type:cr.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var t=e.value;if(!q(t)&&!Lt.isProxyWindow(t))throw new Error("Expected Window or ProxyWindow");if(q(t)){if(R(t))throw new Error("Window is closed");if(!C(t))throw new Error("Window is not same domain")}},decorate:function(e){return Jt(e.value)}},timeout:{type:cr.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:cr.STRING,required:!1},onDisplay:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr,decorate:kr},onRendered:{type:cr.FUNCTION,required:!1,sendToChild:!1,default:xr,decorate:kr},onRender:{type:cr.FUNCTION,required:!1,sendToChild:!1,default:xr,decorate:kr},onPrerendered:{type:cr.FUNCTION,required:!1,sendToChild:!1,default:xr,decorate:kr},onPrerender:{type:cr.FUNCTION,required:!1,sendToChild:!1,default:xr,decorate:kr},onClose:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr,decorate:kr},onDestroy:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr,decorate:kr},onResize:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr},onFocus:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr},close:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:cr.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:cr.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},l);if(!x)throw new Error("Container template required");return{name:I,tag:t,url:r,domain:n,bridgeUrl:a,method:P,propsDef:L,dimensions:d,autoResize:f,allowedParentDomains:m,attributes:y,defaultContext:b,containerTemplate:x,prerenderTemplate:_,validate:S,logger:T,eligible:$,children:N,exports:"function"==typeof z?z:function(e){for(var t=e.getExports,r={},n=function(){var e=i[a],n=z[e].type,o=t().then((function(t){return t[e]}));r[e]=n===cr.FUNCTION?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.then((function(e){return e.apply(void 0,t)}))}:o},a=0,i=Object.keys(z);a<i.length;a++)n();return r},getExtensions:c}}(e),a=n.name,o=n.tag,l=n.defaultContext,s=n.eligible,c=n.children,u=n.getExtensions,d=tr(window),p=[],f=function(){if(function(e){try{return hr(window.name).name===e}catch(e){}return!1}(a)){var e=gr().payload;if(e.tag===o&&W(e.childDomainMatch,E()))return!0}return!1},m=de((function(){if(f()){if(window.xprops)throw delete d.components[o],new Error("Can not register "+a+" as child - child already registered");var e=function(e){var t,r=e.tag,n=e.propsDef,a=e.autoResize,i=e.allowedParentDomains,o=[],l=gr(),s=l.parent,c=l.payload,u=s.win,d=s.domain,p=new h,f=c.version,m=c.uid,g=c.exports,y=c.context,v=c.props;if(!function(e){if(!/_/.test(e)||!/_/.test("10_3_4"))throw new Error("Versions are in an invalid format ("+e+", 10_3_4)");return e.split("_")[0]==="10_3_4".split("_")[0]}(f))throw new Error("Parent window has zoid version "+f+", child window has version 10_3_4");var b=g.show,w=g.hide,x=g.close,k=g.onError,_=g.checkClose,S=g.export,A=g.resize,T=g.init,O=function(){return u},z=function(){return d},F=function(e){return o.push(e),{cancel:function(){o.splice(o.indexOf(e),1)}}},N=function(e){return A.fireAndForget({width:e.width,height:e.height})},R=function(e){return p.resolve(e),S(e)},I=function(e){var n=(void 0===e?{}:e).anyParent,a=[],i=t.parent;if(void 0===n&&(n=!i),!n&&!i)throw new Error("No parent found for "+r+" child");for(var o=0,l=P(window);o<l.length;o++){var s=l[o];if(C(s)){var c=$(s).xprops;if(c&&O()===c.getParent()){var u=c.parent;if(n||!i||u&&u.uid===i.uid){var d=rr(s,(function(e){return e.exports}));a.push({props:c,exports:d})}}}}return a},L=function(e,a,i){void 0===i&&(i=!1);var l=function(e,t,r,n,a,i){void 0===i&&(i=!1);for(var o={},l=0,s=Object.keys(r);l<s.length;l++){var c=s[l],u=t[c],d=u&&u.trustedDomains&&u.trustedDomains.length>0?u.trustedDomains.reduce((function(e,t){return e||W(t,E(window))}),!1):n===E(window)||C(e);if((!u||!u.sameDomain||d)&&(!u||!u.trustedDomains||d)){var p=vr(t,0,c,r[c],a);o[c]=p,u&&u.alias&&!o[u.alias]&&(o[u.alias]=p)}}if(!i)for(var f=0,h=Object.keys(t);f<h.length;f++){var m=h[f];r.hasOwnProperty(m)||(o[m]=vr(t,0,m,void 0,a))}return o}(u,n,e,a,{tag:r,show:b,hide:w,close:x,focus:br,onError:k,resize:N,getSiblings:I,onProps:F,getParent:O,getParentDomain:z,uid:m,export:R},i);t?ye(t,l):t=l;for(var s=0;s<o.length;s++)(0,o[s])(t)},M=function(e){return h.try((function(){return L(e,d,!0)}))};return{init:function(){return h.try((function(){var t="";return C(u)&&(t=function(e){var t=e.componentName,r=e.parentComponentWindow,n=lr({data:hr(window.name).serializedInitialPayload,sender:{win:r},basic:!0}),a=n.sender;if("uid"===n.reference.type||"global"===n.metaData.windowRef.type){var i=fr({name:t,serializedPayload:or({data:n.data,metaData:{windowRef:yr(r)},sender:{domain:a.domain},receiver:{win:window,domain:E()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:u})||""),tr(window).exports=e.exports({getExports:function(){return p}}),function(e,t){if(!W(e,t))throw new Error("Can not be rendered by domain: "+t)}(i,d),ft(u),window.addEventListener("beforeunload",(function(){_.fireAndForget()})),window.addEventListener("unload",(function(){_.fireAndForget()})),U(u,(function(){wr()})),T({name:t,updateProps:M,close:wr})})).then((function(){return(e=a.width,t=void 0!==e&&e,r=a.height,n=void 0!==r&&r,i=a.element,Ne(void 0===i?"body":i).catch(fe).then((function(e){return{width:t,height:n,element:e}}))).then((function(e){var t=e.width,r=e.height,n=e.element;n&&(t||r)&&y!==dr.POPUP&&Ue(n,(function(e){N({width:t?e.width:void 0,height:r?e.height:void 0})}),{width:t,height:r})}));var e,t,r,n,i})).catch((function(e){k(e)}))},getProps:function(){return t||(L(v,d),t)}}}(n);return e.init(),e}})),g=function(e){var t,r="zoid-"+o+"-"+oe(),d=e||{},f=s({props:d}),m=f.eligible,y=f.reason,v=d.onDestroy;d.onDestroy=function(){if(t&&m&&p.splice(p.indexOf(t),1),v)return v.apply(void 0,arguments)};var b=Er({uid:r,options:n});b.init(),m?b.setProps(d):d.onDestroy&&d.onDestroy(),Ar.register((function(e){return b.destroy(e||new Error("zoid destroyed all components"))}));var w=function(e){var t=(void 0===e?{}:e).decorate;return g((void 0===t?ve:t)(d))},x=function(e,r,n){return h.try((function(){if(!m){var t=new Error(y||a+" component is not eligible");return b.destroy(t).then((function(){throw t}))}if(!q(e))throw new Error("Must pass window to renderTo");return function(e,t){return h.try((function(){if(e.window)return Jt(e.window).getType();if(t){if(t!==dr.IFRAME&&t!==dr.POPUP)throw new Error("Unrecognized context: "+t);return t}return l}))}(d,n)})).then((function(a){if(r=function(e,t){if(t){if("string"!=typeof t&&!re(t))throw new TypeError("Expected string or element selector to be passed");return t}if(e===dr.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(a,r),e!==window&&"string"!=typeof r)throw new Error("Must pass string element when rendering to another window");return b.render({target:e,container:r,context:a,rerender:function(){var a=w();return ye(t,a),a.renderTo(e,r,n)}})})).catch((function(e){return b.destroy(e).then((function(){throw e}))}))};return t=i({},u(b),b.getExports(),b.getHelpers(),function(){for(var e=c(),t={},n=function(){var n=o[a],l=e[n];t[n]=function(e){var t=b.getProps(),n=i({},e,{parent:{uid:r,props:t,export:b.export}});return l(n)}},a=0,o=Object.keys(e);a<o.length;a++)n();return t}(),{isEligible:function(){return m},clone:w,render:function(e,t){return x(window,e,t)},renderTo:function(e,t,r){return x(e,t,r)}}),m&&p.push(t),t};if(m(),t=Xt("zoid_allow_delegate_"+a,(function(){return!0})),r=Xt("zoid_delegate_"+a,(function(e){var t=e.data;return{parent:Er({uid:t.uid,options:n,overrides:t.overrides,parentWin:e.source})}})),Tr.register(t.cancel),Tr.register(r.cancel),d.components=d.components||{},d.components[o])throw new Error("Can not register multiple components with the same tag: "+o);return d.components[o]=!0,{init:g,instances:p,driver:function(e,t){throw new Error("Driver support not enabled")},isChild:f,canRenderTo:function(e){return Qt(e,"zoid_allow_delegate_"+a).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:m}}(e),l=function(e){return o.init(e)};l.driver=function(e,t){return o.driver(e,t)},l.isChild=function(){return o.isChild()},l.canRenderTo=function(e){return o.canRenderTo(e)},l.instances=o.instances;var s=o.registerChild();return s&&(window.xprops=l.xprops=s.getProps()),l};function zr(e){Zt&&Zt.destroyBridges();var t=Ar.all(e);return Ar=Se(),t}var Pr=zr;function Fr(e){var t;return Pr(),delete window.__zoid_10_3_4__,function(){for(var e=nt("responseListeners"),t=0,r=e.keys();t<r.length;t++){var n=r[t],a=e.get(n);a&&(a.cancelled=!0),e.del(n)}}(),(t=nt().get("postMessageListener"))&&t.cancel(),delete window.__post_robot_11_0_0__,Tr.all(e)}}])},626:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.L=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(a,l,s):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(313)),i=r(436);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}a.setFileScope("src/themeContract.cjs.css.ts","@paypalcorp/pp-react-theme");t.L=(0,i.createThemeContract)({size:{icon:{xs:"",sm:"",md:"",lg:"",xl:""},circle:{xs:"",sm:"",md:"",lg:"",xl:""},tapTarget:{sm:"",default:"",lg:"",tiny:"",xs:""},pointerWidth:{sm:"",lg:""},indicator:{xs:"",sm:"",md:"",lg:""},field:{sm:"",lg:""},media:{xs:"",sm:"",md:"",lg:"",xl:"",xxl:""},pictogram:{sm:"",md:"",lg:""}},space:{0:"",25:"",50:"",75:"",100:"",150:"",200:"",250:"",300:"",350:"",400:"",450:"",500:"",600:"",700:"",800:"",900:"",1e3:"",1100:"",1200:"",tiny:"",xs:"",sm:"",md:"",lg:"",xl:"",jumbo:""},elevation:{blurCurve:"",blurSlope:"",blurBase:"",opacity:"",brightenFactor:"",verticalOffsetRatio:"",horizontalOffsetRatio:"",level1:{yoffset:"",opacity:"",blur:""},level2:{yoffset:"",opacity:"",blur:""},level3:{yoffset:"",opacity:"",blur:""}},motion:{timing:{x1:"",y1:"",x2:"",y2:""},duration:{hover:"",action:"",arrive:"",depart:"",repeat:"",linger:"",enter:{small:"",medium:"",large:""},exit:{small:"",medium:"",large:""},move:{small:"",medium:"",large:""},loop:{backForth:"",standard:""},pause:{read:"",reveal:""}},easing:{enter:{small:"",medium:"",large:""},exit:{small:"",medium:"",large:""},move:{small:"",medium:"",large:""},loop:{backForth:"",standard:""}}},border:{thickness:{normal:"",emphasis:"",focus:"",focusOutline:""},radius:{tiny:"",xs:"",sm:"",md:"",lg:"",xl:"",jumbo:"",interactive:""}},typography:{displayStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},displayMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},display:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},displaySmStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},displaySmMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},displaySm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingLgStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingLgMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingSmStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingSmMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},titleStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},titleMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},title:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},bodyStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},bodyMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},body:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},captionStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},captionMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},caption:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},linkLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",underline:"",maxScaleFactor:""},linkSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",underline:"",maxScaleFactor:""},tagStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},tagMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},tag:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},dataVizStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},dataVizMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},dataViz:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},buttonLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},buttonSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldLabelLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldLabelSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldValueXl:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldValueLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldValueSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},navigationBarStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},navigationBarMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},navigationBar:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},legalStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},legalMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},legal:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""}},blur:{interactive:""},color:{background:{main:"",alt:"",surface:"",surfaceHover:"",surfaceActive:"",highContrast:"",mediumContrast:""},primary:{main:"",mainHover:"",mainActive:"",contrast:"",contrastHover:"",contrastActive:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},secondary:{main:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""},mainHover:"",mainActive:"",contrast:""},tertiary:{main:"",mainHover:"",mainActive:"",contrast:"",contrastHover:"",contrastActive:""},featured:{main:"",mainHover:"",mainActive:"",contrast:""},promotion:{main:"",mainHover:"",mainActive:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""},light:{main:"",mainHover:"",mainActive:"",contrast:""},moderate:{main:"",mainHover:"",mainActive:"",contrast:""},soft:{main:"",mainHover:"",mainActive:"",contrast:""}},unselected:{main:"",mainHover:"",mainActive:"",contrast:""},selected:{main:"",mainHover:"",mainActive:"",alt:"",altHover:"",altActive:"",contrast:""},selectedRange:{main:"",mainHover:"",mainActive:"",contrast:""},link:{main:"",mainHover:"",mainActive:"",contrast:"",contrastHover:"",contrastActive:"",alt:"",altHover:"",altActive:""},overlay:{main:"",mainHover:"",mainActive:"",contrast:""},overlayInverse:{main:"",mainHover:"",mainActive:"",contrast:""},accent1:{main:"",contrast:""},accent2:{main:"",contrast:""},accent3:{main:"",contrast:""},accent4:{main:"",contrast:""},error:{main:"",mainHover:"",mainActive:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},warning:{main:"",mainHover:"",mainActive:"",alt:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},success:{main:"",mainHover:"",mainActive:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},system:{main:"",mainHover:"",mainActive:"",contrast:""},info:{main:"",mainHover:"",mainActive:"",contrast:""},specialty:{main:"",mainHover:"",mainActive:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},dataViz:{empty:"",value1:"",value2:""},structure:{borderHighContrast:"",borderLowContrast:"",divider:"",focus:"",scrim:"",shimmer:"",shimmerInverse:"",sheen:"",shadow:"",focusOutline:"",errorOutline:""}}}),a.endFileScope()},699:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t._s=t.Tr=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(a,l,s):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(313)),i=r(436);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}a.setFileScope("src/cssVariables.cjs.css.ts","@paypalcorp/pp-react-utils"),t._s={main:(0,i.createVar)("contextColors_main"),background:(0,i.createVar)("contextColors_background"),hoverMain:(0,i.createVar)("contextColors_hoverMain"),hoverBack:(0,i.createVar)("contextColors_hoverBack"),activeMain:(0,i.createVar)("contextColors_activeMain"),activeBack:(0,i.createVar)("contextColors_activeBack")},t.Tr={caretSize:(0,i.createVar)("caretVariables_caretSize"),caretLeftOffset:(0,i.createVar)("caretVariables_caretLeftOffset"),caretRightOffset:(0,i.createVar)("caretVariables_caretRightOffset"),caretBottomOffset:(0,i.createVar)("caretVariables_caretBottomOffset"),caretTopOffset:(0,i.createVar)("caretVariables_caretTopOffset"),caretCenterOffset:(0,i.createVar)("caretVariables_caretCenterOffset"),caretSpaceShiftLeft:(0,i.createVar)("caretVariables_caretSpaceShiftLeft"),caretSpaceShiftRight:(0,i.createVar)("caretVariables_caretSpaceShiftRight")},a.endFileScope()},619:(e,t,r)=>{"use strict";r.d(t,{CN:()=>h,EC:()=>u,GX:()=>o,Ri:()=>f,VF:()=>d,bx:()=>p,i2:()=>s,rG:()=>c});var n=[{appendCss:()=>{},registerClassName:()=>{},onEndFileScope:()=>{},registerComposition:()=>{},markCompositionUsed:()=>{},getIdentOption:()=>"short"}],a=()=>{if(n.length<1)throw new Error("No adapter configured");return n[n.length-1]},i=!1,o=e=>{i||l(e)},l=e=>{if(!e)throw new Error('No adapter provided when calling "setAdapter"');i=!0,n.push(e)},s=function(){return a().appendCss(...arguments)},c=function(){return a().registerClassName(...arguments)},u=function(){return a().registerComposition(...arguments)},d=function(){return a().markCompositionUsed(...arguments)},p=function(){for(var e,t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return null===(e=(t=a()).onBeginFileScope)||void 0===e?void 0:e.call(t,...n)},f=function(){return a().onEndFileScope(...arguments)},h=function(){var e=a();return"getIdentOption"in e?e.getIdentOption(...arguments):"short"}},933:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:()=>n})},436:(e,t,r)=>{"use strict";r.r(t),r.d(t,{assertVarName:()=>rt,assignVars:()=>at,composeStyles:()=>ft,createContainer:()=>wt,createGlobalTheme:()=>ct,createGlobalThemeContract:()=>ot,createGlobalVar:()=>tt,createTheme:()=>ut,createThemeContract:()=>it,createVar:()=>et,createViewTransition:()=>xt,fallbackVar:()=>nt,fontFace:()=>mt,generateIdentifier:()=>Ye,globalFontFace:()=>gt,globalKeyframes:()=>vt,globalLayer:()=>Et,globalStyle:()=>ht,keyframes:()=>yt,layer:()=>St,style:()=>pt,styleVariants:()=>bt});var n,a,i={},o=r(867),l=r(937),s=r.n(l),c=class{constructor(e){const{failure:t,gotoFn:r,output:n}=this._buildTables(e);this.gotoFn=r,this.output=n,this.failure=t}_buildTables(e){const t={0:{}},r={};let n=0;for(const a of e){let e=0;for(const i of a)t[e]&&i in t[e]?e=t[e][i]:(n++,t[e][i]=n,t[n]={},e=n,r[n]=[]);r[e].push(a)}const a={},i=[];for(const e in t[0]){const r=t[0][e];a[r]=0,i.push(r)}for(;i.length>0;){const e=i.shift();if(void 0!==e)for(const n in t[e]){const o=t[e][n];i.push(o);let l=a[e];for(;l>0&&!(n in t[l]);)l=a[l];if(n in t[l]){const e=t[l][n];a[o]=e,r[o]=[...r[o],...r[e]]}else a[o]=0}}return{gotoFn:t,output:r,failure:a}}search(e){let t=0;const r=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t>0&&!(a in this.gotoFn[t]);)t=this.failure[t];if(a in this.gotoFn[t]&&(t=this.gotoFn[t][a],this.output[t].length>0)){const e=this.output[t];r.push([n,e])}}return r}match(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];for(;t>0&&!(n in this.gotoFn[t]);)t=this.failure[t];if(n in this.gotoFn[t]&&(t=this.gotoFn[t][n],this.output[t].length>0))return!0}return!1}},u=r(619),d=r(933);!function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"}(n||(n={})),function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"}(a||(a={}));const p=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,f=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,h=new Map([[126,a.Element],[94,a.Start],[36,a.End],[42,a.Any],[33,a.Not],[124,a.Hyphen]]),m=new Set(["has","not","matches","is","where","host","host-context"]),g=new Set(["contains","icontains"]);function y(e,t,r){const n=parseInt(t,16)-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function v(e){return e.replace(f,y)}function b(e){return 39===e||34===e}function w(e){return 32===e||9===e||10===e||12===e||13===e}function x(e){const t=[],r=k(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function k(e,t,r){let i=[];function o(e){const n=t.slice(r+e).match(p);if(!n)throw new Error(`Expected name, found ${t.slice(r)}`);const[a]=n;return r+=e+a.length,v(a)}function l(e){for(r+=e;r<t.length&&w(t.charCodeAt(r));)r++}function s(){const e=r+=1;let n=1;for(;n>0&&r<t.length;r++)40!==t.charCodeAt(r)||c(r)?41!==t.charCodeAt(r)||c(r)||n--:n++;if(n)throw new Error("Parenthesis not matched");return v(t.slice(e,r-1))}function c(e){let r=0;for(;92===t.charCodeAt(--e);)r++;return!(1&~r)}function u(){if(i.length>0&&function(e){switch(e.type){case n.Adjacent:case n.Child:case n.Descendant:case n.Parent:case n.Sibling:case n.ColumnCombinator:return!0;default:return!1}}(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function d(e){i.length>0&&i[i.length-1].type===n.Descendant?i[i.length-1].type=e:(u(),i.push({type:e}))}function f(e,t){i.push({type:n.Attribute,name:e,action:t,value:o(1),namespace:null,ignoreCase:"quirks"})}function y(){if(i.length&&i[i.length-1].type===n.Descendant&&i.pop(),0===i.length)throw new Error("Empty sub-selector");e.push(i)}if(l(0),t.length===r)return r;e:for(;r<t.length;){const e=t.charCodeAt(r);switch(e){case 32:case 9:case 10:case 12:case 13:0!==i.length&&i[0].type===n.Descendant||(u(),i.push({type:n.Descendant})),l(1);break;case 62:d(n.Child),l(1);break;case 60:d(n.Parent),l(1);break;case 126:d(n.Sibling),l(1);break;case 43:d(n.Adjacent),l(1);break;case 46:f("class",a.Element);break;case 35:f("id",a.Equals);break;case 91:{let e;l(1);let s=null;124===t.charCodeAt(r)?e=o(1):t.startsWith("*|",r)?(s="*",e=o(2)):(e=o(0),124===t.charCodeAt(r)&&61!==t.charCodeAt(r+1)&&(s=e,e=o(1))),l(0);let u=a.Exists;const d=h.get(t.charCodeAt(r));if(d){if(u=d,61!==t.charCodeAt(r+1))throw new Error("Expected `=`");l(2)}else 61===t.charCodeAt(r)&&(u=a.Equals,l(1));let p="",f=null;if("exists"!==u){if(b(t.charCodeAt(r))){const e=t.charCodeAt(r);let n=r+1;for(;n<t.length&&(t.charCodeAt(n)!==e||c(n));)n+=1;if(t.charCodeAt(n)!==e)throw new Error("Attribute value didn't end");p=v(t.slice(r+1,n)),r=n+1}else{const e=r;for(;r<t.length&&(!w(t.charCodeAt(r))&&93!==t.charCodeAt(r)||c(r));)r+=1;p=v(t.slice(e,r))}l(0);const e=32|t.charCodeAt(r);115===e?(f=!1,l(1)):105===e&&(f=!0,l(1))}if(93!==t.charCodeAt(r))throw new Error("Attribute selector didn't terminate");r+=1;const m={type:n.Attribute,name:e,action:u,value:p,namespace:s,ignoreCase:f};i.push(m);break}case 58:{if(58===t.charCodeAt(r+1)){i.push({type:n.PseudoElement,name:o(2).toLowerCase(),data:40===t.charCodeAt(r)?s():null});continue}const e=o(1).toLowerCase();let a=null;if(40===t.charCodeAt(r))if(m.has(e)){if(b(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${e} cannot be quoted`);if(a=[],r=k(a,t,r+1),41!==t.charCodeAt(r))throw new Error(`Missing closing parenthesis in :${e} (${t})`);r+=1}else{if(a=s(),g.has(e)){const e=a.charCodeAt(0);e===a.charCodeAt(a.length-1)&&b(e)&&(a=a.slice(1,-1))}a=v(a)}i.push({type:n.Pseudo,name:e,data:a});break}case 44:y(),i=[],l(1);break;default:{if(t.startsWith("/*",r)){const e=t.indexOf("*/",r+2);if(e<0)throw new Error("Comment was not terminated");r=e+2,0===i.length&&l(0);break}let a,s=null;if(42===e)r+=1,a="*";else if(124===e){if(a="",124===t.charCodeAt(r+1)){d(n.ColumnCombinator),l(2);break}}else{if(!p.test(t.slice(r)))break e;a=o(0)}124===t.charCodeAt(r)&&124!==t.charCodeAt(r+1)&&(s=a,42===t.charCodeAt(r+1)?(a="*",r+=2):a=o(1)),i.push("*"===a?{type:n.Universal,namespace:s}:{type:n.Tag,name:a,namespace:s})}}}return y(),r}var _=r(828),S=function(){return S=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},S.apply(this,arguments)};function E(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function C(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}var $,A=/(\u000D|\u000C|\u000D\u000A)/g,T=/[\u0000\uD800-\uDFFF]/g,O=/(\/\*)[\s\S]*?(\*\/)/g,z=function(e,t){if(e.length<=t+1)return null;for(var r=e.charCodeAt(t),n=[],a=t+1;a<e.length;a+=1){var i=e.charCodeAt(a);if(i===r)return[a,String.fromCharCode.apply(null,n)];if(92===i){var o=F(e,a);if(null===o)return null;var l=C(o,2),s=l[0],c=l[1];n.push(c),a=s}else{if(10===i)return null;n.push(i)}}return null},P=function(e,t){if(e.length<=t)return!1;var r,n=e.charCodeAt(t);return 45===n?!(e.length<=t+1)&&(45===(r=e.charCodeAt(t+1))||95===r||r>=65&&r<=90||r>=97&&r<=122||r>=128||92===r&&!(e.length<=t+2)&&10!==e.charCodeAt(t+2)):95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128||92===n&&!(e.length<=t+1)&&10!==(r=e.charCodeAt(t+1))},F=function(e,t){if(e.length<=t+1)return null;if(92!==e.charCodeAt(t))return null;var r=e.charCodeAt(t+1);if(10===r)return null;if(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102){for(var n=[r],a=Math.min(t+7,e.length),i=t+2;i<a;i+=1){var o=e.charCodeAt(i);if(!(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102))break;n.push(o)}if(i<e.length){var l=e.charCodeAt(i);9!==l&&32!==l&&10!==l||(i+=1)}return[i-1,parseInt(String.fromCharCode.apply(null,n),16)]}return[t+1,r]},N=function(e,t){var r=R(e,t);if(null===r)return null;var n=C(r,3),a=n[0],i=n[1],o=n[2],l=L(e,a+1);if(null!==l){var s=C(l,2);return[s[0],["<dimension-token>",i,s[1]]]}return a+1<e.length&&37===e.charCodeAt(a+1)?[a+1,["<percentage-token>",i]]:[a,["<number-token>",i,o]]},R=function(e,t){if(e.length<=t)return null;var r="integer",n=[],a=e.charCodeAt(t);for(43!==a&&45!==a||(t+=1,45===a&&n.push(45));t<e.length&&((c=e.charCodeAt(t))>=48&&c<=57);)n.push(c),t+=1;if(t+1<e.length){var i=e.charCodeAt(t),o=e.charCodeAt(t+1);if(46===i&&o>=48&&o<=57)for(n.push(i,o),r="number",t+=2;t<e.length&&((c=e.charCodeAt(t))>=48&&c<=57);)n.push(c),t+=1}if(t+1<e.length){i=e.charCodeAt(t),o=e.charCodeAt(t+1);var l=e.charCodeAt(t+2);if(69===i||101===i){var s=o>=48&&o<=57;if(s||(43===o||45===o)&&l>=48&&l<=57)for(r="number",s?(n.push(69,o),t+=2):45===o?(n.push(69,45,l),t+=3):(n.push(69,l),t+=3);t<e.length;){var c;if(!((c=e.charCodeAt(t))>=48&&c<=57))break;n.push(c),t+=1}}}var u=String.fromCharCode.apply(null,n),d="number"===r?parseFloat(u):parseInt(u);return-0===d&&(d=0),Number.isNaN(d)?null:[t-1,d,r]},I=function(e,t){if(e.length<=t)return null;for(var r=[],n=e.charCodeAt(t);t<e.length;n=e.charCodeAt(++t))if(45===n||95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128||n>=48&&n<=57)r.push(n);else{var a=F(e,t);if(null===a)break;var i=C(a,2),o=i[0],l=i[1];r.push(l),t=o}return 0===t?null:[t-1,String.fromCharCode.apply(null,r)]},L=function(e,t){if(e.length<=t||!P(e,t))return null;for(var r=[],n=e.charCodeAt(t);t<e.length;n=e.charCodeAt(++t))if(45===n||95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128||n>=48&&n<=57)r.push(n);else{var a=F(e,t);if(null===a)break;var i=C(a,2),o=i[0],l=i[1];r.push(l),t=o}return[t-1,String.fromCharCode.apply(null,r)]},M=function(e,t){for(var r=e.charCodeAt(t);9===r||32===r||10===r;)r=e.charCodeAt(++t);for(var n=[],a=!1;t<e.length;){if(41===r)return[t,String.fromCharCode.apply(null,n)];if(34===r||39===r||40===r)return null;if(9===r||32===r||10===r)a||0===n.length||(a=!0);else if(92===r){var i=F(e,t);if(null===i||a)return null;var o=C(i,2),l=o[0],s=o[1];n.push(s),t=l}else{if(a)return null;n.push(r)}r=e.charCodeAt(++t)}return null},D=function(e,t){var r=L(e,t);if(null===r)return null;var n=C(r,2),a=n[0],i=n[1];if("url"===i.toLowerCase()){if(e.length>a+1&&40===e.charCodeAt(a+1)){for(var o=2;a+o<e.length;o+=1){var l=e.charCodeAt(a+o);if(34===l||39===l)return[a+1,i.toLowerCase(),"<function-token>"];if(9!==l&&32!==l&&10!==l){var s=M(e,a+o);if(null===s)return null;var c=C(s,2);return[c[0],c[1],"<url-token>"]}}return[a+1,i.toLowerCase(),"<function-token>"]}}else if(e.length>a+1&&40===e.charCodeAt(a+1))return[a+1,i.toLowerCase(),"<function-token>"];return[a,i.toLowerCase(),"<ident-token>"]},H=function(e){if(null===e.mediaCondition)return e;var t=B(e.mediaCondition);return null===t.operator&&1===t.children.length&&"children"in t.children[0]&&(t=t.children[0]),{mediaPrefix:e.mediaPrefix,mediaType:e.mediaType,mediaCondition:t}},B=function e(t){for(var r=t.children.length-1;r>=0;r--){var n=t.children[r];if(!("context"in n)){var a=e(n);if(null===a.operator&&1===a.children.length)t.children[r]=a.children[0];else if(a.operator===t.operator&&("and"===a.operator||"or"===a.operator)){for(var i=[r,1],o=0;o<a.children.length;o++)i.push(a.children[o]);t.children.splice.apply(t.children,i)}}}return t},j=function(e,t){return t instanceof Error?new Error("".concat(t.message.trim(),"\n").concat(e.trim())):new Error(e.trim())},W=function(e){var t=function(e,t){void 0===t&&(t=0),e=(e=e.replace(A,"\n").replace(T,"�")).replace(O,"");for(var r=[];t<e.length;t+=1){var n=e.charCodeAt(t);if(9===n||32===n||10===n){for(var a=e.charCodeAt(++t);9===a||32===a||10===a;)a=e.charCodeAt(++t);t-=1,r.push({type:"<whitespace-token>"})}else if(34===n){if(null===(E=z(e,t)))return null;var i=C(E,2),o=i[0],l=i[1];r.push({type:"<string-token>",value:l}),t=o}else if(35===n){if(t+1<e.length&&(95===(h=e.charCodeAt(t+1))||h>=65&&h<=90||h>=97&&h<=122||h>=128||h>=48&&h<=57||92===h&&t+2<e.length&&10!==e.charCodeAt(t+2))){var s=P(e,t+1)?"id":"unrestricted";if(null!==(E=I(e,t+1))){var c=C(E,2);o=c[0],l=c[1],r.push({type:"<hash-token>",value:l.toLowerCase(),flag:s}),t=o;continue}}r.push({type:"<delim-token>",value:n})}else if(39===n){if(null===(E=z(e,t)))return null;var u=C(E,2);o=u[0],l=u[1],r.push({type:"<string-token>",value:l}),t=o}else if(40===n)r.push({type:"<(-token>"});else if(41===n)r.push({type:"<)-token>"});else if(43===n){var d=N(e,t);if(null===d)r.push({type:"<delim-token>",value:n});else{var p=C(d,2);o=p[0],"<dimension-token>"===(_=p[1])[0]?r.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?r.push({type:_[0],value:_[1],flag:_[2]}):r.push({type:_[0],value:_[1],flag:"number"}),t=o}}else if(44===n)r.push({type:"<comma-token>"});else if(45===n){if(null!==(v=N(e,t))){var f=C(v,2);o=f[0],"<dimension-token>"===(_=f[1])[0]?r.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?r.push({type:_[0],value:_[1],flag:_[2]}):r.push({type:_[0],value:_[1],flag:"number"}),t=o;continue}if(t+2<e.length){var h=e.charCodeAt(t+1),m=e.charCodeAt(t+2);if(45===h&&62===m){r.push({type:"<CDC-token>"}),t+=2;continue}}if(null!==(E=D(e,t))){var g=C(E,3),y=(o=g[0],l=g[1],g[2]);r.push({type:y,value:l}),t=o;continue}r.push({type:"<delim-token>",value:n})}else if(46===n){var v;if(null!==(v=N(e,t))){var b=C(v,2);o=b[0],"<dimension-token>"===(_=b[1])[0]?r.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?r.push({type:_[0],value:_[1],flag:_[2]}):r.push({type:_[0],value:_[1],flag:"number"}),t=o;continue}r.push({type:"<delim-token>",value:n})}else if(58===n)r.push({type:"<colon-token>"});else if(59===n)r.push({type:"<semicolon-token>"});else if(60===n){if(t+3<e.length){h=e.charCodeAt(t+1),m=e.charCodeAt(t+2);var w=e.charCodeAt(t+3);if(33===h&&45===m&&45===w){r.push({type:"<CDO-token>"}),t+=3;continue}}r.push({type:"<delim-token>",value:n})}else if(64===n){if(null!==(E=L(e,t+1))){var x=C(E,2);o=x[0],l=x[1],r.push({type:"<at-keyword-token>",value:l.toLowerCase()}),t=o;continue}r.push({type:"<delim-token>",value:n})}else if(91===n)r.push({type:"<[-token>"});else if(92===n){if(null===(E=F(e,t)))return null;var k=C(E,2);o=k[0],l=k[1],e=e.slice(0,t)+l+e.slice(o+1),t-=1}else if(93===n)r.push({type:"<]-token>"});else if(123===n)r.push({type:"<{-token>"});else if(125===n)r.push({type:"<}-token>"});else if(n>=48&&n<=57){var _,S=C(E=N(e,t),2);o=S[0],"<dimension-token>"===(_=S[1])[0]?r.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?r.push({type:_[0],value:_[1],flag:_[2]}):r.push({type:_[0],value:_[1],flag:"number"}),t=o}else if(95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128){var E;if(null===(E=D(e,t)))return null;var $=C(E,3);o=$[0],l=$[1],y=$[2],r.push({type:y,value:l}),t=o}else r.push({type:"<delim-token>",value:n})}return r.push({type:"<EOF-token>"}),r}(e.trim());if(null===t)throw j("Failed tokenizing");var r=0,n=t.length-1;if("<at-keyword-token>"===t[0].type&&"media"===t[0].value){if("<whitespace-token>"!==t[1].type)throw j("Expected whitespace after media");r=2;for(var a=2;a<t.length-1;a++){var i=t[a];if("<{-token>"===i.type){n=a;break}if("<semicolon-token>"===i.type)throw j("Expected '{' in media query but found ';'")}}return t=t.slice(r,n),U(t)},V=function(e){for(var t=[],r=!1,n=0;n<e.length;n++)"<whitespace-token>"===e[n].type?(r=!0,t.length>0&&(t[t.length-1].wsAfter=!0)):(t.push(S(S({},e[n]),{wsBefore:r,wsAfter:!1})),r=!1);return t},U=function(e){for(var t,r,n=[[]],a=0;a<e.length;a++){var i=e[a];"<comma-token>"===i.type?n.push([]):n[n.length-1].push(i)}var o=n.map(V);if(1===o.length&&0===o[0].length)return[{mediaCondition:null,mediaPrefix:null,mediaType:"all"}];var l=o.map((function(e){return 0===e.length?null:q(e)})),s=[];try{for(var c=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l),u=c.next();!u.done;u=c.next()){var d=u.value;null!==d&&s.push(d)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}if(0===s.length)throw j("No valid media queries");return s},q=function(e){var t=e[0];if("<(-token>"===t.type)try{return{mediaPrefix:null,mediaType:"all",mediaCondition:G(e,!0)}}catch(e){throw j("Expected media condition after '('",e)}else{if("<ident-token>"!==t.type)throw j("Expected media condition or media prefix");var r=null,n=void 0,a=t.value;"only"!==a&&"not"!==a||(r=a);var i=null===r?0:1;if(e.length<=i)throw j("Expected extra token in media query");var o=e[i];if("<ident-token>"===o.type){var l=o.value;if("all"===l)n="all";else if("print"===l||"screen"===l)n=l;else{if("tty"!==l&&"tv"!==l&&"projection"!==l&&"handheld"!==l&&"braille"!==l&&"embossed"!==l&&"aural"!==l&&"speech"!==l)throw j("Unknown ident '".concat(l,"' in media query"));r="not"===r?null:"not",n="all"}}else{if("not"!==r||"<(-token>"!==o.type)throw j("Invalid media query");var s=[{type:"<(-token>",wsBefore:!1,wsAfter:!1}];s.push.apply(s,e),s.push({type:"<)-token>",wsBefore:!1,wsAfter:!1});try{return{mediaPrefix:null,mediaType:"all",mediaCondition:G(s,!0)}}catch(e){throw j("Expected media condition after '('",e)}}if(i+1===e.length)return{mediaPrefix:r,mediaType:n,mediaCondition:null};if(!(i+4<e.length))throw j("Expected media condition after media prefix");var c=e[i+1];if("<ident-token>"!==c.type||"and"!==c.value)throw j("Expected 'and' after media prefix");try{return{mediaPrefix:r,mediaType:n,mediaCondition:G(e.slice(i+2),!1)}}catch(e){throw j("Expected media condition after 'and'",e)}}},G=function e(t,r,n){if(void 0===n&&(n=null),t.length<3||"<(-token>"!==t[0].type||"<)-token>"!==t[t.length-1].type)throw new Error("Invalid media condition");for(var a,i=t.length-1,o=0,l=0,s=0;s<t.length;s++){var c=t[s];if("<(-token>"===c.type?(l+=1,o=Math.max(o,l)):"<)-token>"===c.type&&(l-=1),0===l){i=s;break}}if(0!==l)throw new Error("Mismatched parens\nInvalid media condition");var u=t.slice(0,i+1);if(a=1===o?K(u):"<ident-token>"===u[1].type&&"not"===u[1].value?e(u.slice(2,-1),!0,"not"):e(u.slice(1,-1),!0),i===t.length-1)return{operator:n,children:[a]};var d=t[i+1];if("<ident-token>"!==d.type)throw new Error("Invalid operator\nInvalid media condition");if(null!==n&&n!==d.value)throw new Error("'".concat(d.value,"' and '").concat(n,"' must not be at same level\nInvalid media condition"));if("or"===d.value&&!r)throw new Error("Cannot use 'or' at top level of a media query\nInvalid media condition");if("and"!==d.value&&"or"!==d.value)throw new Error("Invalid operator: '".concat(d.value,"'\nInvalid media condition"));var p=e(t.slice(i+2),r,d.value);return{operator:d.value,children:[a].concat(p.children)}},K=function(e){if(e.length<3||"<(-token>"!==e[0].type||"<)-token>"!==e[e.length-1].type)throw new Error("Invalid media feature");for(var t=[e[0]],r=1;r<e.length;r++){if(r<e.length-2){var n=e[r],a=e[r+1],i=e[r+2];if("<number-token>"===n.type&&n.value>0&&"<delim-token>"===a.type&&47===a.value&&"<number-token>"===i.type&&i.value>0){t.push({type:"<ratio-token>",numerator:n.value,denominator:i.value,wsBefore:n.wsBefore,wsAfter:i.wsAfter}),r+=2;continue}}t.push(e[r])}var o=t[1];if("<ident-token>"===o.type&&3===t.length)return{context:"boolean",feature:o.value};if(5===t.length&&"<ident-token>"===t[1].type&&"<colon-token>"===t[2].type){var l=t[3];if("<number-token>"===l.type||"<dimension-token>"===l.type||"<ratio-token>"===l.type||"<ident-token>"===l.type){var s=t[1].value,c=null,u=s.slice(0,4);return"min-"===u?(c="min",s=s.slice(4)):"max-"===u&&(c="max",s=s.slice(4)),l.wsBefore,l.wsAfter,{context:"value",prefix:c,feature:s,value:E(l,["wsBefore","wsAfter"])}}}else if(t.length>=5)try{var d=Y(t);return{context:"range",feature:d.featureName,range:d}}catch(e){throw j("Invalid media feature",e)}throw new Error("Invalid media feature")},Y=function(e){var t,r,n,a;if(e.length<5||"<(-token>"!==e[0].type||"<)-token>"!==e[e.length-1].type)throw new Error("Invalid range");var i={leftToken:null,leftOp:null,featureName:"",rightOp:null,rightToken:null},o="<number-token>"===e[1].type||"<dimension-token>"===e[1].type||"<ratio-token>"===e[1].type||"<ident-token>"===e[1].type&&"infinite"===e[1].value;if("<delim-token>"===e[2].type){if(60===e[2].value)"<delim-token>"!==e[3].type||61!==e[3].value||e[3].wsBefore?i[o?"leftOp":"rightOp"]="<":i[o?"leftOp":"rightOp"]="<=";else if(62===e[2].value)"<delim-token>"!==e[3].type||61!==e[3].value||e[3].wsBefore?i[o?"leftOp":"rightOp"]=">":i[o?"leftOp":"rightOp"]=">=";else{if(61!==e[2].value)throw new Error("Invalid range");i[o?"leftOp":"rightOp"]="="}if(o)i.leftToken=e[1];else{if("<ident-token>"!==e[1].type)throw new Error("Invalid range");i.featureName=e[1].value}var l=2+(null!==(r=null===(t=i[o?"leftOp":"rightOp"])||void 0===t?void 0:t.length)&&void 0!==r?r:0),s=e[l];if(o){if("<ident-token>"!==s.type)throw new Error("Invalid range");if(i.featureName=s.value,e.length>=7){var c=e[l+1],u=e[l+2];if("<delim-token>"!==c.type)throw new Error("Invalid range");var d=c.value;if(60===d)"<delim-token>"!==u.type||61!==u.value||u.wsBefore?i.rightOp="<":i.rightOp="<=";else{if(62!==d)throw new Error("Invalid range");"<delim-token>"!==u.type||61!==u.value||u.wsBefore?i.rightOp=">":i.rightOp=">="}var p=e[l+1+(null!==(a=null===(n=i.rightOp)||void 0===n?void 0:n.length)&&void 0!==a?a:0)];i.rightToken=p}else if(l+2!==e.length)throw new Error("Invalid range")}else i.rightToken=s;var f=null,h=i.leftToken,m=i.leftOp,g=i.featureName,y=i.rightOp,v=i.rightToken,b=null;if(null!==h)if("<ident-token>"===h.type){var w=h.type;"infinite"===(k=h.value)&&(b={type:w,value:k})}else"<number-token>"!==h.type&&"<dimension-token>"!==h.type&&"<ratio-token>"!==h.type||(h.wsBefore,h.wsAfter,b=E(h,["wsBefore","wsAfter"]));var x=null;if(null!==v)if("<ident-token>"===v.type){var k;w=v.type,"infinite"===(k=v.value)&&(x={type:w,value:k})}else"<number-token>"!==v.type&&"<dimension-token>"!==v.type&&"<ratio-token>"!==v.type||(v.wsBefore,v.wsAfter,x=E(v,["wsBefore","wsAfter"]));if(null!==b&&null!==x)if("<"!==m&&"<="!==m||"<"!==y&&"<="!==y){if(">"!==m&&">="!==m||">"!==y&&">="!==y)throw new Error("Invalid range");f={leftToken:b,leftOp:m,featureName:g,rightOp:y,rightToken:x}}else f={leftToken:b,leftOp:m,featureName:g,rightOp:y,rightToken:x};else(null===b&&null===m&&null!==y&&null!==x||null!==b&&null!==m&&null===y&&null===x)&&(f={leftToken:b,leftOp:m,featureName:g,rightOp:y,rightToken:x});return f}throw new Error("Invalid range")};function X(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){var n,a,i;n=e,a=t,i=r[t],(a=X(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ee(e,t){for(var r in e)t(e[r],r)}function te(e,t){var r={};for(var n in e)-1===t.indexOf(n)&&(r[n]=e[n]);return r}function re(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var a of r)0!==a.length&&("string"==typeof a?a.includes(" ")?re(e,...a.trim().split(" ")):e.add(a):Array.isArray(a)&&re(e,...a))}function ne(e){var t=new Set;return re(t,...e),Array.from(t).join(" ")}class ae{constructor(){this.ruleset=new Map,this.precedenceLookup=new Map}findOrCreateCondition(e){var t=this.ruleset.get(e);return t||(t={query:e,rules:[],children:new ae},this.ruleset.set(e,t)),t}getConditionalRulesetByPath(e){var t=this;for(var r of e){var n=t.findOrCreateCondition(r);t=n.children}return t}addRule(e,t,r){var n=this.getConditionalRulesetByPath(r).findOrCreateCondition(t);if(!n)throw new Error("Failed to add conditional rule");n.rules.push(e)}addConditionPrecedence(e,t){for(var r=this.getConditionalRulesetByPath(e),n=0;n<t.length;n++){var a,i=t[n],o=null!==(a=r.precedenceLookup.get(i))&&void 0!==a?a:new Set;for(var l of t.slice(n+1))o.add(l);r.precedenceLookup.set(i,o)}}isCompatible(e){for(var[t,r]of this.precedenceLookup.entries())for(var n of r){var a;if(null!==(a=e.precedenceLookup.get(n))&&void 0!==a&&a.has(t))return!1}for(var{query:i,children:o}of e.ruleset.values()){var l=this.ruleset.get(i);if(l&&!l.children.isCompatible(o))return!1}return!0}merge(e){for(var{query:t,rules:r,children:n}of e.ruleset.values()){var a=this.ruleset.get(t);a?(a.rules.push(...r),a.children.merge(n)):this.ruleset.set(t,{query:t,rules:r,children:n})}for(var[i,o]of e.precedenceLookup.entries()){var l,s=null!==(l=this.precedenceLookup.get(i))&&void 0!==l?l:new Set;this.precedenceLookup.set(i,new Set([...s,...o]))}}mergeIfCompatible(e){return!!this.isCompatible(e)&&(this.merge(e),!0)}getSortedRuleset(){var e=this,t=[],r=function(r){var a=e.ruleset.get(n);if(!a)throw new Error("Can't find condition for ".concat(n));var i=t.findIndex((e=>r.has(e.query)));i>-1?t.splice(i,0,a):t.push(a)};for(var[n,a]of this.precedenceLookup.entries())r(a);return t}renderToArray(){var e=[];for(var{query:t,rules:r,children:n}of this.getSortedRuleset()){var a={};for(var i of r)a[i.selector]=Q(Q({},a[i.selector]),i.rule);Object.assign(a,...n.renderToArray()),e.push({[t]:a})}return e}}var ie,oe={":-moz-any-link":!0,":-moz-full-screen":!0,":-moz-placeholder":!0,":-moz-read-only":!0,":-moz-read-write":!0,":-ms-fullscreen":!0,":-ms-input-placeholder":!0,":-webkit-any-link":!0,":-webkit-full-screen":!0,"::-moz-color-swatch":!0,"::-moz-list-bullet":!0,"::-moz-list-number":!0,"::-moz-page-sequence":!0,"::-moz-page":!0,"::-moz-placeholder":!0,"::-moz-progress-bar":!0,"::-moz-range-progress":!0,"::-moz-range-thumb":!0,"::-moz-range-track":!0,"::-moz-scrolled-page-sequence":!0,"::-moz-selection":!0,"::-ms-backdrop":!0,"::-ms-browse":!0,"::-ms-check":!0,"::-ms-clear":!0,"::-ms-fill-lower":!0,"::-ms-fill-upper":!0,"::-ms-fill":!0,"::-ms-reveal":!0,"::-ms-thumb":!0,"::-ms-ticks-after":!0,"::-ms-ticks-before":!0,"::-ms-tooltip":!0,"::-ms-track":!0,"::-ms-value":!0,"::-webkit-backdrop":!0,"::-webkit-calendar-picker-indicator":!0,"::-webkit-inner-spin-button":!0,"::-webkit-input-placeholder":!0,"::-webkit-meter-bar":!0,"::-webkit-meter-even-less-good-value":!0,"::-webkit-meter-inner-element":!0,"::-webkit-meter-optimum-value":!0,"::-webkit-meter-suboptimum-value":!0,"::-webkit-outer-spin-button":!0,"::-webkit-progress-bar":!0,"::-webkit-progress-inner-element":!0,"::-webkit-progress-inner-value":!0,"::-webkit-progress-value":!0,"::-webkit-resizer":!0,"::-webkit-scrollbar-button":!0,"::-webkit-scrollbar-corner":!0,"::-webkit-scrollbar-thumb":!0,"::-webkit-scrollbar-track-piece":!0,"::-webkit-scrollbar-track":!0,"::-webkit-scrollbar":!0,"::-webkit-search-cancel-button":!0,"::-webkit-search-results-button":!0,"::-webkit-slider-runnable-track":!0,"::-webkit-slider-thumb":!0,"::after":!0,"::backdrop":!0,"::before":!0,"::cue":!0,"::file-selector-button":!0,"::first-letter":!0,"::first-line":!0,"::grammar-error":!0,"::marker":!0,"::placeholder":!0,"::selection":!0,"::spelling-error":!0,"::target-text":!0,"::view-transition-group":!0,"::view-transition-image-pair":!0,"::view-transition-new":!0,"::view-transition-old":!0,"::view-transition":!0,":active":!0,":after":!0,":any-link":!0,":before":!0,":blank":!0,":checked":!0,":default":!0,":defined":!0,":disabled":!0,":empty":!0,":enabled":!0,":first-child":!0,":first-letter":!0,":first-line":!0,":first-of-type":!0,":first":!0,":focus-visible":!0,":focus-within":!0,":focus":!0,":fullscreen":!0,":hover":!0,":in-range":!0,":indeterminate":!0,":invalid":!0,":last-child":!0,":last-of-type":!0,":left":!0,":link":!0,":only-child":!0,":only-of-type":!0,":optional":!0,":out-of-range":!0,":placeholder-shown":!0,":read-only":!0,":read-write":!0,":required":!0,":right":!0,":root":!0,":scope":!0,":target":!0,":valid":!0,":visited":!0},le=Object.keys(oe),se=oe,ce=(e,t)=>new Error((0,_.A)(ie||(ie=(0,d._)(['\n Invalid media query: "','"\n\n ',"\n\n Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries\n "])),e,t)),ue=e=>{if("@media "===e)throw ce(e,"Query is empty");try{(function(e){for(var t=e.length-1;t>=0;t--)e[t]=H(e[t])})(W(e))}catch(t){throw ce(e,t.message)}},de=["vars"],pe=["content"],fe="__DECLARATION",he={animationIterationCount:!0,borderImage:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,initialLetter:!0,lineClamp:!0,lineHeight:!0,maxLines:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,WebkitLineClamp:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderWidth:!0,shapeImageThreshold:!0,stopOpacity:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function me(e,t,r,n){var a=e.slice(0,t),i=e.slice(r);return"".concat(a).concat(n).concat(i)}var ge=[...le,"@layer","@media","@supports","@container","selectors"];class ye{constructor(e,t){this.rules=[],this.conditionalRulesets=[new ae],this.fontFaceRules=[],this.keyframesRules=[],this.propertyRules=[],this.localClassNamesMap=new Map(e.map((e=>[e,e]))),this.localClassNamesSearch=new c(e),this.layers=new Map,this.composedClassLists=t.map((e=>{var{identifier:t,classList:r}=e;return{identifier:t,regex:RegExp("(".concat(r,")"),"g")}})).reverse()}processCssObj(e){if("fontFace"!==e.type)if("property"!==e.type){if("keyframes"===e.type)return e.rule=Object.fromEntries(Object.entries(e.rule).map((e=>{var[t,r]=e;return[t,this.transformVars(this.transformProperties(r))]}))),void this.keyframesRules.push(e);if(this.currConditionalRuleset=new ae,"layer"===e.type){var t="@layer ".concat(e.name);this.addLayer([t])}else{var r=te(e.rule,ge);this.addRule({selector:e.selector,rule:r}),this.transformLayer(e,e.rule["@layer"]),this.transformMedia(e,e.rule["@media"]),this.transformSupports(e,e.rule["@supports"]),this.transformContainer(e,e.rule["@container"]),this.transformSimplePseudos(e,e.rule),this.transformSelectors(e,e.rule)}this.conditionalRulesets[this.conditionalRulesets.length-1].mergeIfCompatible(this.currConditionalRuleset)||this.conditionalRulesets.push(this.currConditionalRuleset)}else this.propertyRules.push(e);else this.fontFaceRules.push(e.rule)}addConditionalRule(e,t){var r=this.transformVars(this.transformProperties(e.rule)),n=this.transformSelector(e.selector);if(!this.currConditionalRuleset)throw new Error("Couldn't add conditional rule");var a=t[t.length-1],i=t.slice(0,t.length-1);this.currConditionalRuleset.addRule({selector:n,rule:r},a,i)}addRule(e){var t=this.transformVars(this.transformProperties(e.rule)),r=this.transformSelector(e.selector);this.rules.push({selector:r,rule:t})}addLayer(e){var t=e.join(" - ");this.layers.set(t,e)}transformProperties(e){return this.transformContent(this.pixelifyProperties(e))}pixelifyProperties(e){return ee(e,((t,r)=>{"number"!=typeof t||0===t||he[r]||(e[r]="".concat(t,"px"))})),e}transformVars(e){var{vars:t}=e,r=J(e,de);return t?Q(Q({},function(e){var t,r={};for(var n in e)r[(e[n],t=n,(0,o.Tm)(t))]=e[n];return r}(t)),r):r}transformContent(e){var{content:t}=e,r=J(e,pe);return void 0===t?r:Q({content:(Array.isArray(t)?t:[t]).map((e=>e&&(e.includes('"')||e.includes("'")||/^([A-Za-z\-]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\s|$)/.test(e))?e:'"'.concat(e,'"')))},r)}transformClassname(e){return".".concat(s()(e,{isIdentifier:!0}))}transformSelector(e){var t=e,r=function(e){t=t.replace(a,(()=>((0,u.VF)(e),e)))};for(var{identifier:n,regex:a}of this.composedClassLists)r(n);if(this.localClassNamesMap.has(t))return this.transformClassname(t);for(var i=this.localClassNamesSearch.search(t),o=t.length,l=i.length-1;l>=0;l--){var[s,[c]]=i[l],d=s-c.length+1;o<=s||(o=d,"."!==t[d-1]&&(t=me(t,d,s+1,this.transformClassname(c))))}return t}transformSelectors(e,t,r){ee(t.selectors,((t,n)=>{if("local"!==e.type)throw new Error("Selectors are not allowed within ".concat("global"===e.type?'"globalStyle"':'"selectors"'));var a=this.transformSelector(n.replace(RegExp("&","g"),e.selector));((e,t)=>{var r,n=()=>{var r=new RegExp(".".concat(s()(t,{isIdentifier:!0}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")),"g");return e.replace(r,"&")};try{r=x(e)}catch(e){throw new Error("Invalid selector: ".concat(n()))}r.forEach((e=>{try{for(var r=e.length-1;r>=-1;r--){if(!e[r])throw new Error;var a=e[r];if("child"===a.type||"parent"===a.type||"sibling"===a.type||"adjacent"===a.type||"descendant"===a.type)throw new Error;if("attribute"===a.type&&"class"===a.name&&a.value===t)return}}catch(e){throw new Error((0,_.A)($||($=(0,d._)(["\n Invalid selector: ","\n \n Style selectors must target the '&' character (along with any modifiers), e.g. "," or ",".\n \n This is to ensure that each style block only affects the styling of a single class.\n \n If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of ",") to 'parent', you should add "," to 'child').\n \n If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write ",", you should instead write 'globalStyle(",", { ... })'\n "])),n(),"`${parent} &`","`${parent} &:hover`","`& ${child}`","`${parent} &`","`& h1`","`${parent} h1`"))}}))})(a,e.selector);var i={selector:a,rule:te(t,ge)};r?this.addConditionalRule(i,r):this.addRule(i);var o={type:"selector",selector:a,rule:t};this.transformLayer(o,t["@layer"],r),this.transformSupports(o,t["@supports"],r),this.transformMedia(o,t["@media"],r),this.transformContainer(o,t["@container"],r)}))}transformMedia(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t)for(var[a,i]of(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@media ".concat(e)))),Object.entries(t))){var o="@media ".concat(a);ue(o);var l=[...n,o];this.addConditionalRule({selector:e.selector,rule:te(i,ge)},l),"local"===e.type&&(this.transformSimplePseudos(e,i,l),this.transformSelectors(e,i,l)),this.transformLayer(e,i["@layer"],l),this.transformSupports(e,i["@supports"],l),this.transformContainer(e,i["@container"],l)}}transformContainer(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@container ".concat(e)))),ee(t,((t,r)=>{var a="@container ".concat(r),i=[...n,a];this.addConditionalRule({selector:e.selector,rule:te(t,ge)},i),"local"===e.type&&(this.transformSimplePseudos(e,t,i),this.transformSelectors(e,t,i)),this.transformLayer(e,t["@layer"],i),this.transformSupports(e,t["@supports"],i),this.transformMedia(e,t["@media"],i)})))}transformLayer(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@layer ".concat(e)))),ee(t,((t,r)=>{var a=[...n,"@layer ".concat(r)];this.addLayer(a),this.addConditionalRule({selector:e.selector,rule:te(t,ge)},a),"local"===e.type&&(this.transformSimplePseudos(e,t,a),this.transformSelectors(e,t,a)),this.transformMedia(e,t["@media"],a),this.transformSupports(e,t["@supports"],a),this.transformContainer(e,t["@container"],a)})))}transformSupports(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@supports ".concat(e)))),ee(t,((t,r)=>{var a=[...n,"@supports ".concat(r)];this.addConditionalRule({selector:e.selector,rule:te(t,ge)},a),"local"===e.type&&(this.transformSimplePseudos(e,t,a),this.transformSelectors(e,t,a)),this.transformLayer(e,t["@layer"],a),this.transformMedia(e,t["@media"],a),this.transformContainer(e,t["@container"],a)})))}transformSimplePseudos(e,t,r){for(var n of Object.keys(t))if(se[n]){if("local"!==e.type)throw new Error("Simple pseudos are not valid in ".concat("global"===e.type?'"globalStyle"':'"selectors"'));r?this.addConditionalRule({selector:"".concat(e.selector).concat(n),rule:t[n]},r):this.addRule({conditions:r,selector:"".concat(e.selector).concat(n),rule:t[n]})}}toCss(){var e=[];for(var t of this.fontFaceRules)e.push(ve({"@font-face":t}));for(var r of this.propertyRules)e.push(ve({["@property ".concat(r.name)]:r.rule}));for(var n of this.keyframesRules)e.push(ve({["@keyframes ".concat(n.name)]:n.rule}));for(var a of this.layers.values()){var[i,...o]=a.reverse(),l={[i]:fe};for(var s of o)l={[s]:l};e.push(ve(l))}for(var c of this.rules)e.push(ve({[c.selector]:c.rule}));for(var u of this.conditionalRulesets)for(var d of u.renderToArray())e.push(ve(d));return e.filter(Boolean)}}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=function(n){var a,i=e[n];i&&Array.isArray(i)?r.push(...i.map((e=>ve({[n]:e},t)))):i&&"object"==typeof i?0===Object.keys(i).length||r.push("".concat(t).concat(n," {\n").concat(ve(i,t+" "),"\n").concat(t,"}")):i===fe?r.push("".concat(t).concat(n,";")):r.push("".concat(t).concat(n.startsWith("--")?n:(a=n,a.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()),": ").concat(i,";"))};for(var a of Object.keys(e))n(a);return r.join("\n")}var be=r(313);const we="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,xe=new Set,ke="object"==typeof process&&process?process:{},_e=(e,t,r,n)=>{"function"==typeof ke.emitWarning?ke.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let Se=globalThis.AbortController,Ee=globalThis.AbortSignal;if(void 0===Se){Ee=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},Se=class{constructor(){t()}signal=new Ee;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==ke.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,_e("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const Ce=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),$e=e=>Ce(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Ae:null:null;class Ae extends Array{constructor(e){super(e),this.fill(0)}}class Te{heap;length;static#e=!1;static create(e){const t=$e(e);if(!t)return[];Te.#e=!0;const r=new Te(e,t);return Te.#e=!1,r}constructor(e,t){if(!Te.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class Oe{#t;#r;#n;#a;#i;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#s;#c;#u;#d;#p;#f;#h;#m;#g;#y;#v;#b;#w;#x;#k;#_;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#w,sizes:e.#v,keyMap:e.#c,keyList:e.#u,valList:e.#d,next:e.#p,prev:e.#f,get head(){return e.#h},get tail(){return e.#m},free:e.#g,isBackgroundFetch:t=>e.#S(t),backgroundFetch:(t,r,n,a)=>e.#E(t,r,n,a),moveToTail:t=>e.#C(t),indexes:t=>e.#$(t),rindexes:t=>e.#A(t),isStale:t=>e.#T(t)}}get max(){return this.#t}get maxSize(){return this.#r}get calculatedSize(){return this.#s}get size(){return this.#l}get fetchMethod(){return this.#i}get memoMethod(){return this.#o}get dispose(){return this.#n}get disposeAfter(){return this.#a}constructor(e){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:a,updateAgeOnGet:i,updateAgeOnHas:o,allowStale:l,dispose:s,disposeAfter:c,noDisposeOnSet:u,noUpdateTTL:d,maxSize:p=0,maxEntrySize:f=0,sizeCalculation:h,fetchMethod:m,memoMethod:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:w,ignoreFetchAbort:x}=e;if(0!==t&&!Ce(t))throw new TypeError("max option must be a nonnegative integer");const k=t?$e(t):Array;if(!k)throw new Error("invalid max value: "+t);if(this.#t=t,this.#r=p,this.maxEntrySize=f||this.#r,this.sizeCalculation=h,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==g&&"function"!=typeof g)throw new TypeError("memoMethod must be a function if defined");if(this.#o=g,void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#i=m,this.#k=!!m,this.#c=new Map,this.#u=new Array(t).fill(void 0),this.#d=new Array(t).fill(void 0),this.#p=new k(t),this.#f=new k(t),this.#h=0,this.#m=0,this.#g=Te.create(t),this.#l=0,this.#s=0,"function"==typeof s&&(this.#n=s),"function"==typeof c?(this.#a=c,this.#y=[]):(this.#a=void 0,this.#y=void 0),this.#x=!!this.#n,this.#_=!!this.#a,this.noDisposeOnSet=!!u,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.#r&&!Ce(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ce(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#O()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!o,this.ttlResolution=Ce(n)||0===n?n:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!Ce(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#z()}if(0===this.#t&&0===this.ttl&&0===this.#r)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#r){const e="LRU_CACHE_UNBOUNDED";(e=>!xe.has(e))(e)&&(xe.add(e),_e("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,Oe))}}getRemainingTTL(e){return this.#c.has(e)?1/0:0}#z(){const e=new Ae(this.#t),t=new Ae(this.#t);this.#w=e,this.#b=t,this.#P=(r,n,a=we.now())=>{if(t[r]=0!==n?a:0,e[r]=n,0!==n&&this.ttlAutopurge){const e=setTimeout((()=>{this.#T(r)&&this.#F(this.#u[r],"expire")}),n+1);e.unref&&e.unref()}},this.#N=r=>{t[r]=0!==e[r]?we.now():0},this.#R=(a,i)=>{if(e[i]){const o=e[i],l=t[i];if(!o||!l)return;a.ttl=o,a.start=l,a.now=r||n();const s=a.now-l;a.remainingTTL=o-s}};let r=0;const n=()=>{const e=we.now();if(this.ttlResolution>0){r=e;const t=setTimeout((()=>r=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=a=>{const i=this.#c.get(a);if(void 0===i)return 0;const o=e[i],l=t[i];return o&&l?o-((r||n())-l):1/0},this.#T=a=>{const i=t[a],o=e[a];return!!o&&!!i&&(r||n())-i>o}}#N=()=>{};#R=()=>{};#P=()=>{};#T=()=>!1;#O(){const e=new Ae(this.#t);this.#s=0,this.#v=e,this.#I=t=>{this.#s-=e[t],e[t]=0},this.#L=(e,t,r,n)=>{if(this.#S(t))return 0;if(!Ce(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!Ce(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#M=(t,r,n)=>{if(e[t]=r,this.#r){const r=this.#r-e[t];for(;this.#s>r;)this.#D(!0)}this.#s+=e[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.#s)}}#I=e=>{};#M=(e,t,r)=>{};#L=(e,t,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#$({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#m;this.#H(t)&&(!e&&this.#T(t)||(yield t),t!==this.#h);)t=this.#f[t]}*#A({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#h;this.#H(t)&&(!e&&this.#T(t)||(yield t),t!==this.#m);)t=this.#p[t]}#H(e){return void 0!==e&&this.#c.get(this.#u[e])===e}*entries(){for(const e of this.#$())void 0===this.#d[e]||void 0===this.#u[e]||this.#S(this.#d[e])||(yield[this.#u[e],this.#d[e]])}*rentries(){for(const e of this.#A())void 0===this.#d[e]||void 0===this.#u[e]||this.#S(this.#d[e])||(yield[this.#u[e],this.#d[e]])}*keys(){for(const e of this.#$()){const t=this.#u[e];void 0===t||this.#S(this.#d[e])||(yield t)}}*rkeys(){for(const e of this.#A()){const t=this.#u[e];void 0===t||this.#S(this.#d[e])||(yield t)}}*values(){for(const e of this.#$())void 0===this.#d[e]||this.#S(this.#d[e])||(yield this.#d[e])}*rvalues(){for(const e of this.#A())void 0===this.#d[e]||this.#S(this.#d[e])||(yield this.#d[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#$()){const n=this.#d[r],a=this.#S(n)?n.__staleWhileFetching:n;if(void 0!==a&&e(a,this.#u[r],this))return this.get(this.#u[r],t)}}forEach(e,t=this){for(const r of this.#$()){const n=this.#d[r],a=this.#S(n)?n.__staleWhileFetching:n;void 0!==a&&e.call(t,a,this.#u[r],this)}}rforEach(e,t=this){for(const r of this.#A()){const n=this.#d[r],a=this.#S(n)?n.__staleWhileFetching:n;void 0!==a&&e.call(t,a,this.#u[r],this)}}purgeStale(){let e=!1;for(const t of this.#A({allowStale:!0}))this.#T(t)&&(this.#F(this.#u[t],"expire"),e=!0);return e}info(e){const t=this.#c.get(e);if(void 0===t)return;const r=this.#d[t],n=this.#S(r)?r.__staleWhileFetching:r;if(void 0===n)return;const a={value:n};if(this.#w&&this.#b){const e=this.#w[t],r=this.#b[t];if(e&&r){const t=e-(we.now()-r);a.ttl=t,a.start=Date.now()}}return this.#v&&(a.size=this.#v[t]),a}dump(){const e=[];for(const t of this.#$({allowStale:!0})){const r=this.#u[t],n=this.#d[t],a=this.#S(n)?n.__staleWhileFetching:n;if(void 0===a||void 0===r)continue;const i={value:a};if(this.#w&&this.#b){i.ttl=this.#w[t];const e=we.now()-this.#b[t];i.start=Math.floor(Date.now()-e)}this.#v&&(i.size=this.#v[t]),e.unshift([r,i])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const e=Date.now()-r.start;r.start=we.now()-e}this.set(t,r.value,r)}}set(e,t,r={}){if(void 0===t)return this.delete(e),this;const{ttl:n=this.ttl,start:a,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:l}=r;let{noUpdateTTL:s=this.noUpdateTTL}=r;const c=this.#L(e,t,r.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#F(e,"set"),this;let u=0===this.#l?void 0:this.#c.get(e);if(void 0===u)u=0===this.#l?this.#m:0!==this.#g.length?this.#g.pop():this.#l===this.#t?this.#D(!1):this.#l,this.#u[u]=e,this.#d[u]=t,this.#c.set(e,u),this.#p[this.#m]=u,this.#f[u]=this.#m,this.#m=u,this.#l++,this.#M(u,c,l),l&&(l.set="add"),s=!1;else{this.#C(u);const r=this.#d[u];if(t!==r){if(this.#k&&this.#S(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;void 0===t||i||(this.#x&&this.#n?.(t,e,"set"),this.#_&&this.#y?.push([t,e,"set"]))}else i||(this.#x&&this.#n?.(r,e,"set"),this.#_&&this.#y?.push([r,e,"set"]));if(this.#I(u),this.#M(u,c,l),this.#d[u]=t,l){l.set="replace";const e=r&&this.#S(r)?r.__staleWhileFetching:r;void 0!==e&&(l.oldValue=e)}}else l&&(l.set="update")}if(0===n||this.#w||this.#z(),this.#w&&(s||this.#P(u,n,a),l&&this.#R(l,u)),!i&&this.#_&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}return this}pop(){try{for(;this.#l;){const e=this.#d[this.#h];if(this.#D(!0),this.#S(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#_&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}}}#D(e){const t=this.#h,r=this.#u[t],n=this.#d[t];return this.#k&&this.#S(n)?n.__abortController.abort(new Error("evicted")):(this.#x||this.#_)&&(this.#x&&this.#n?.(n,r,"evict"),this.#_&&this.#y?.push([n,r,"evict"])),this.#I(t),e&&(this.#u[t]=void 0,this.#d[t]=void 0,this.#g.push(t)),1===this.#l?(this.#h=this.#m=0,this.#g.length=0):this.#h=this.#p[t],this.#c.delete(r),this.#l--,t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t,a=this.#c.get(e);if(void 0!==a){const e=this.#d[a];if(this.#S(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#T(a))return r&&this.#N(a),n&&(n.has="hit",this.#R(n,a)),!0;n&&(n.has="stale",this.#R(n,a))}else n&&(n.has="miss");return!1}peek(e,t={}){const{allowStale:r=this.allowStale}=t,n=this.#c.get(e);if(void 0===n||!r&&this.#T(n))return;const a=this.#d[n];return this.#S(a)?a.__staleWhileFetching:a}#E(e,t,r,n){const a=void 0===t?void 0:this.#d[t];if(this.#S(a))return a;const i=new Se,{signal:o}=r;o?.addEventListener("abort",(()=>i.abort(o.reason)),{signal:i.signal});const l={signal:i.signal,options:r,context:n},s=(n,a=!1)=>{const{aborted:o}=i.signal,s=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(o&&!a?(r.status.fetchAborted=!0,r.status.fetchError=i.signal.reason,s&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),o&&!s&&!a)return c(i.signal.reason);const d=u;return this.#d[t]===u&&(void 0===n?d.__staleWhileFetching?this.#d[t]=d.__staleWhileFetching:this.#F(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,l.options))),n},c=n=>{const{aborted:a}=i.signal,o=a&&r.allowStaleOnFetchAbort,l=o||r.allowStaleOnFetchRejection,s=l||r.noDeleteOnFetchRejection,c=u;if(this.#d[t]===u&&(s&&void 0!==c.__staleWhileFetching?o||(this.#d[t]=c.__staleWhileFetching):this.#F(e,"fetch")),l)return r.status&&void 0!==c.__staleWhileFetching&&(r.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw n};r.status&&(r.status.fetchDispatched=!0);const u=new Promise(((t,n)=>{const o=this.#i?.(e,a,l);o&&o instanceof Promise&&o.then((e=>t(void 0===e?void 0:e)),n),i.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(void 0),r.allowStaleOnFetchAbort&&(t=e=>s(e,!0)))}))})).then(s,(e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),c(e)))),d=Object.assign(u,{__abortController:i,__staleWhileFetching:a,__returned:void 0});return void 0===t?(this.set(e,d,{...l.options,status:void 0}),t=this.#c.get(e)):this.#d[t]=d,d}#S(e){if(!this.#k)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof Se}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:l=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:h,forceRefresh:m=!1,status:g,signal:y}=t;if(!this.#k)return g&&(g.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:a,status:g});const v={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:a,ttl:i,noDisposeOnSet:o,size:l,sizeCalculation:s,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:f,ignoreFetchAbort:p,status:g,signal:y};let b=this.#c.get(e);if(void 0===b){g&&(g.fetch="miss");const t=this.#E(e,b,v,h);return t.__returned=t}{const t=this.#d[b];if(this.#S(t)){const e=r&&void 0!==t.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const a=this.#T(b);if(!m&&!a)return g&&(g.fetch="hit"),this.#C(b),n&&this.#N(b),g&&this.#R(g,b),t;const i=this.#E(e,b,v,h),o=void 0!==i.__staleWhileFetching&&r;return g&&(g.fetch=a?"stale":"refresh",o&&a&&(g.returnedStale=!0)),o?i.__staleWhileFetching:i.__returned=i}}async forceFetch(e,t={}){const r=await this.fetch(e,t);if(void 0===r)throw new Error("fetch() returned undefined");return r}memo(e,t={}){const r=this.#o;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:a,...i}=t,o=this.get(e,i);if(!a&&void 0!==o)return o;const l=r(e,o,{options:i,context:n});return this.set(e,l,i),l}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:i}=t,o=this.#c.get(e);if(void 0!==o){const t=this.#d[o],l=this.#S(t);return i&&this.#R(i,o),this.#T(o)?(i&&(i.get="stale"),l?(i&&r&&void 0!==t.__staleWhileFetching&&(i.returnedStale=!0),r?t.__staleWhileFetching:void 0):(a||this.#F(e,"expire"),i&&r&&(i.returnedStale=!0),r?t:void 0)):(i&&(i.get="hit"),l?t.__staleWhileFetching:(this.#C(o),n&&this.#N(o),t))}i&&(i.get="miss")}#B(e,t){this.#f[t]=e,this.#p[e]=t}#C(e){e!==this.#m&&(e===this.#h?this.#h=this.#p[e]:this.#B(this.#f[e],this.#p[e]),this.#B(this.#m,e),this.#m=e)}delete(e){return this.#F(e,"delete")}#F(e,t){let r=!1;if(0!==this.#l){const n=this.#c.get(e);if(void 0!==n)if(r=!0,1===this.#l)this.#j(t);else{this.#I(n);const r=this.#d[n];if(this.#S(r)?r.__abortController.abort(new Error("deleted")):(this.#x||this.#_)&&(this.#x&&this.#n?.(r,e,t),this.#_&&this.#y?.push([r,e,t])),this.#c.delete(e),this.#u[n]=void 0,this.#d[n]=void 0,n===this.#m)this.#m=this.#f[n];else if(n===this.#h)this.#h=this.#p[n];else{const e=this.#f[n];this.#p[e]=this.#p[n];const t=this.#p[n];this.#f[t]=this.#f[n]}this.#l--,this.#g.push(n)}}if(this.#_&&this.#y?.length){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}return r}clear(){return this.#j("delete")}#j(e){for(const t of this.#A({allowStale:!0})){const r=this.#d[t];if(this.#S(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#u[t];this.#x&&this.#n?.(r,n,e),this.#_&&this.#y?.push([r,n,e])}}if(this.#c.clear(),this.#d.fill(void 0),this.#u.fill(void 0),this.#w&&this.#b&&(this.#w.fill(0),this.#b.fill(0)),this.#v&&this.#v.fill(0),this.#h=0,this.#m=0,this.#g.length=0,this.#s=0,this.#l=0,this.#_&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}}}const ze=e=>e instanceof Date,Pe=e=>null!=e&&"object"==typeof e,Fe=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Ne=e=>Pe(e)&&(e=>0===Object.keys(e).length)(e),Re=(e,t)=>{if(e===t)return{};if(!Pe(e)||!Pe(t))return t;const r=Object.keys(e).reduce(((e,r)=>(Fe(t,r)||(e[r]=void 0),e)),Object.create(null));return ze(e)||ze(t)?e.valueOf()==t.valueOf()?{}:t:Object.keys(t).reduce(((r,n)=>{if(!Fe(e,n))return r[n]=t[n],r;const a=Re(e[n],t[n]);return!Ne(a)||ze(a)||!Ne(e[n])&&Ne(t[n])?(r[n]=a,r):r}),r)},Ie=Re;var Le=r(633),Me=r.n(Le),De=r(744),He=r.n(De),Be=new Set,je=[],We=[],Ve={appendCss:e=>{We.push(e)},registerClassName:e=>{Be.add(e)},registerComposition:e=>{je.push(e)},markCompositionUsed:()=>{},onEndFileScope:e=>{var t=function(e){var{localClassNames:t,cssObjs:r,composedClassLists:n}=e,a=new ye(t,n);for(var i of r)a.processCssObj(i);return a.toCss()}({localClassNames:Array.from(Be),composedClassLists:je,cssObjs:We}).join("\n");(e=>{var{fileScope:t,css:r}=e,n=t.packageName?[t.packageName,t.filePath].join("/"):t.filePath,a=i[n];if(!a){var o=document.createElement("style");t.packageName&&o.setAttribute("data-package",t.packageName),o.setAttribute("data-file",t.filePath),o.setAttribute("type","text/css"),a=i[n]=o,document.head.appendChild(o)}a.innerHTML=r})({fileScope:e,css:t}),We=[]},getIdentOption:()=>"short"};(0,u.GX)(Ve);var Ue,qe=(e,t)=>{for(var r=t-1;r>=0;){if("/"===e[r])return r;r--}return-1},Ge=(Ue=new Oe({max:500}),e=>{var t=Ue.get(e);if(t)return t;var r=(e=>{var t,r=e.lastIndexOf(".css");if(-1===r)return"";var n=qe(e,r);if(t=e.slice(n+1,r),-1===n)return t;var a=qe(e,n-1),i=e.slice(a+1,n);return"index"!==t?t:i})(e);return Ue.set(e,r),r});function Ke(e){return e.match(/^[0-9]/)?"_".concat(e):e}function Ye(e){var t=(0,u.CN)(),{debugId:r,debugFileName:n=!0}=Q(Q({},"string"==typeof e?{debugId:e}:null),"object"==typeof e?e:null),a=(0,be.getAndIncrementRefCounter)().toString(36),{filePath:i,packageName:o}=(0,be.getFileScope)(),l=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o?"".concat(o).concat(i):i),s="".concat(l).concat(a);if("debug"===t){var c=function(e){var{debugId:t,debugFileName:r}=e,n=t?[t.replace(/\s/g,"_")]:[];if(r){var{filePath:a}=(0,be.getFileScope)(),i=Ge(a);i&&n.unshift(i)}return n.join("_")}({debugId:r,debugFileName:n});return c&&(s="".concat(c,"__").concat(s)),Ke(s)}if("function"==typeof t){if(!(s=t({hash:s,debugId:r,filePath:i,packageName:o})).match(/^[A-Z_][0-9A-Z_-]+$/i))throw new Error('Identifier function returned invalid indentifier: "'.concat(s,'"'));return s}return Ke(s)}var Xe=e=>(0,o.Bx)(e,(()=>""));function Ze(e,t,r){var n=[...Array(t).keys()].map((()=>" ")).join(""),a="".concat(r||" ").concat(n).concat(e);return"-"===r?Me().red(a):"+"===r?Me().green(a):a}function Qe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[];0===r&&n.push(Ze("{",0));var a=r+1,i=Object.keys(t).sort();for(var o of i){var l=t[o];o in e?"object"==typeof l?(n.push(Ze("".concat(o,": {"),a)),n.push(Qe(e[o],t[o],a)),n.push(Ze("}",a))):n.push(Ze("".concat(o,": ...,"),a,"-")):n.push(Ze("".concat(o,": ...,"),a,"+"))}return 0===r&&n.push(Ze("}",0)),n.join("\n")}var Je=e=>{var{syntax:t,inherits:r,initialValue:n}=e;return Q({syntax:'"'.concat(Array.isArray(t)?t.join(" | "):t,'"'),inherits:r?"true":"false"},null!=n?{initialValue:n}:{})};function et(e,t){var r=s()(Ye({debugId:"string"==typeof e?e:t,debugFileName:!1}),{isIdentifier:!0});return e&&"object"==typeof e&&(0,u.i2)({type:"property",name:"--".concat(r),rule:Je(e)},(0,be.getFileScope)()),"var(--".concat(r,")")}function tt(e,t){return t&&"object"==typeof t&&(0,u.i2)({type:"property",name:"--".concat(e),rule:Je(t)},(0,be.getFileScope)()),"var(--".concat(e,")")}function rt(e){if("string"!=typeof e||!/^var\(--.*\)$/.test(e))throw new Error("Invalid variable name: ".concat(e))}function nt(){for(var e="",t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reverse().forEach((t=>{""===e?e=String(t):(rt(t),e=t.replace(/\)$/,", ".concat(e,")")))})),e}function at(e,t){var r={},{valid:n,diffString:a}=function(e,t){var r=Ie(Xe(e),Xe(t)),n=0===Object.keys(r).length;return{valid:n,diffString:n?"":Qe(e,r)}}(e,t);if(!n)throw new Error("Tokens don't match contract.\n".concat(a));return(0,o.Bx)(t,((t,n)=>{r[(0,o.Jt)(e,n)]=String(t)})),r}function it(e){return(0,o.Bx)(e,((e,t)=>et(t.join("-"))))}function ot(e,t){return(0,o.Bx)(e,((e,r)=>{var n="function"==typeof t?t(e,r):e,a="string"==typeof n?n.replace(/^\-\-/,""):null;if("string"!=typeof a||a!==s()(a,{isIdentifier:!0}))throw new Error('Invalid variable name for "'.concat(r.join("."),'": ').concat(a));return"var(--".concat(a,")")}))}var lt,st=["@layer"];function ct(e,t,r){var n=Boolean(r),a=n?r:t,{layerName:i,tokens:o}=function(e){if("@layer"in e){var{"@layer":t}=e;return{layerName:t,tokens:J(e,st)}}return{tokens:e}}(a),l=n?t:it(o),s={vars:at(l,o)};if(i&&(s={"@layer":{[i]:s}}),(0,u.i2)({type:"global",selector:e,rule:s},(0,be.getFileScope)()),!n)return l}function ut(e,t,r){var n=Ye("object"==typeof t?r:t);(0,u.rG)(n,(0,be.getFileScope)());var a="object"==typeof t?ct(n,e,t):ct(n,e);return a?[n,a]:n}function dt(e,t){var r=Ye(t);(0,u.rG)(r,(0,be.getFileScope)());var n=[],a=[];for(var i of e)"string"==typeof i?n.push(i):a.push(i);var o=r;if(n.length>0&&(o="".concat(r," ").concat(ne(n)),(0,u.EC)({identifier:r,classList:o},(0,be.getFileScope)()),a.length>0&&(0,u.VF)(r)),a.length>0){var l=He().all(a,{arrayMerge:(e,t)=>t});(0,u.i2)({type:"local",selector:r,rule:l},(0,be.getFileScope)())}return o}function pt(e,t){if(Array.isArray(e))return dt(e,t);var r=Ye(t);return(0,u.rG)(r,(0,be.getFileScope)()),(0,u.i2)({type:"local",selector:r,rule:e},(0,be.getFileScope)()),r}function ft(){for(var e=(0,be.hasFileScope)()?dt:ne,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e(r)}function ht(e,t){(0,u.i2)({type:"global",selector:e,rule:t},(0,be.getFileScope)())}function mt(e,t){var r='"'.concat(s()(Ye(t),{quotes:"double"}),'"'),n=Array.isArray(e)?e:[e];for(var a of n){if("fontFamily"in a)throw new Error((0,_.A)(lt||(lt=(0,d._)(['\n This function creates and returns a hashed font-family name, so the "fontFamily" property should not be provided.\n \n If you\'d like to define a globally scoped custom font, you can use the "globalFontFace" function instead.\n ']))));(0,u.i2)({type:"fontFace",rule:Q(Q({},a),{},{fontFamily:r})},(0,be.getFileScope)())}return r}function gt(e,t){var r=Array.isArray(t)?t:[t];for(var n of r)(0,u.i2)({type:"fontFace",rule:Q(Q({},n),{},{fontFamily:e})},(0,be.getFileScope)())}function yt(e,t){var r=s()(Ye(t),{isIdentifier:!0});return(0,u.i2)({type:"keyframes",name:r,rule:e},(0,be.getFileScope)()),r}function vt(e,t){(0,u.i2)({type:"keyframes",name:e,rule:t},(0,be.getFileScope)())}function bt(){if("function"==typeof(arguments.length<=1?void 0:arguments[1])){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2],n={};for(var a in e)n[a]=pt(t(e[a],a),r?"".concat(r,"_").concat(a):a);return n}var i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],l={};for(var s in i)l[s]=pt(i[s],o?"".concat(o,"_").concat(s):s);return l}var wt=e=>Ye(e),xt=e=>Ye(e),kt={},_t=function(){var e,t=kt,r=arguments.length<=0?void 0:arguments[0];return"object"==typeof(arguments.length<=0?void 0:arguments[0])&&(e=arguments.length<=0?void 0:arguments[0],t=Q(Q({},kt),e),r=arguments.length<=1?void 0:arguments[1]),[t,r]};function St(){var[e,t]=_t(...arguments),r=Ye(t);return e.parent&&(r="".concat(e.parent,".").concat(r)),(0,u.i2)({type:"layer",name:r},(0,be.getFileScope)()),r}function Et(){var[e,t]=_t(...arguments);return e.parent&&(t="".concat(e.parent,".").concat(t)),(0,u.i2)({type:"layer",name:t},(0,be.getFileScope)()),t}},313:(e,t,r)=>{"use strict";r.r(t),r.d(t,{endFileScope:()=>u,getAndIncrementRefCounter:()=>f,getFileScope:()=>p,hasFileScope:()=>d,setFileScope:()=>c});var n,a=r(933),i=r(828),o=r(619),l=0,s=[];function c(e,t){l=0;var r={filePath:e,packageName:t};s.unshift(r),(0,o.bx)(r)}function u(){(0,o.Ri)(p()),l=0,s.splice(0,1)}function d(){return s.length>0}function p(){if(0===s.length)throw new Error((0,i.A)(n||(n=(0,a._)(["\n Styles were unable to be assigned to a file. This is generally caused by one of the following:\n\n - You may have created styles outside of a '.css.ts' context\n - You may have incorrect configuration. See https://vanilla-extract.style/documentation/getting-started\n "]))));return s[0]}function f(){return l++}},867:(e,t,r)=>{"use strict";function n(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function a(e,t){var r=e;for(var n of t){if(!(n in r))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n={};for(var a in e){var o=e[a],l=[...r,a];"string"==typeof o||"number"==typeof o||null==o?n[a]=t(o,l):"object"!=typeof o||Array.isArray(o)?console.warn('Skipping invalid key "'.concat(l.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(o)?"Array":typeof o,'"')):n[a]=i(o,t,l)}return n}r.d(t,{Bx:()=>i,Jt:()=>a,Tm:()=>n})},520:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>uS});var n={};r.r(n),r.d(n,{animationTimingName:()=>un,animationTimingStyle:()=>dn,ellipsisName:()=>hn,ellipsisStyles:()=>mn,slideLeft:()=>yn,slideRight:()=>gn,transitionTimingName:()=>pn,transitionTimingStyle:()=>fn,variables:()=>cn});var a={};r.r(a),r.d(a,{aU:()=>Rn,OG:()=>Pn,YQ:()=>Fn});var i={};r.r(i),r.d(i,{rq:()=>Kn,E3:()=>Yn,eF:()=>Gn,jr:()=>Jn,H1:()=>Qn,g3:()=>Zn,_6:()=>ea,Fm:()=>Xn,JW:()=>ta});var o={};r.r(o),r.d(o,{circleBase:()=>Yh,circleInner:()=>Xh,circleInnerAccent1:()=>Zh,circleInnerAccent2:()=>Qh,circleInnerAccent3:()=>Jh,circleInnerAccent4:()=>em,circleInnerImage:()=>tm,circleProgressIndicator:()=>rm,circleRadiusSvg:()=>jh,circleSm:()=>nm,circleSmProgressIndicator:()=>am,iconWrapLg:()=>cm,iconWrapSm:()=>sm,progressIndicatorCircleRadius:()=>Gh,strokeColorAccent1:()=>um,strokeColorAccent2:()=>dm,strokeColorAccent3:()=>pm,strokeColorAccent4:()=>fm,textContent:()=>lm,textProgressMeterBase:()=>im,textProgressMeterInnerText:()=>om});var l={};r.r(l),r.d(l,{cellBase:()=>Cy,cellHeading:()=>_y,cellResponsive:()=>$y,columnCenter:()=>zy,columnEnd:()=>Oy,columnRemaining:()=>Zy,columnStart:()=>Ty,fixedFirstColumn:()=>gy,fixedFirstColumnTable:()=>oy,mobileColumnCenter:()=>tv,mobileColumnEnd:()=>ev,mobileColumnStart:()=>Jy,mobileGridZoneA1:()=>Fy,mobileGridZoneA12:()=>Iy,mobileGridZoneA123:()=>My,mobileGridZoneA2:()=>Ny,mobileGridZoneA23:()=>Ly,mobileGridZoneA3:()=>Ry,mobileGridZoneAB1:()=>Uy,mobileGridZoneAB12:()=>Ky,mobileGridZoneAB123:()=>Xy,mobileGridZoneAB2:()=>qy,mobileGridZoneAB23:()=>Yy,mobileGridZoneAB3:()=>Gy,mobileGridZoneB1:()=>Dy,mobileGridZoneB12:()=>jy,mobileGridZoneB123:()=>Vy,mobileGridZoneB2:()=>Hy,mobileGridZoneB23:()=>Wy,mobileGridZoneB3:()=>By,mobileGridZoneHidden:()=>Py,mobileWidth:()=>Qy,responsiveTableBase:()=>hy,rowBase:()=>Sy,rowSelected:()=>Ey,scrollContext:()=>py,scrollContextTable:()=>fy,stickyColFoot:()=>by,stickyColHead:()=>vy,summaryAdjust:()=>cy,summaryHeading:()=>ly,summaryItem:()=>sy,summaryTotal:()=>uy,summaryWrapper:()=>my,tableBase:()=>Ay,tbody:()=>xy,tfoot:()=>ky,thead:()=>wy,typeData:()=>ay,typeSummary:()=>iy,utility:()=>dy});var s={};r.r(s),r.d(s,{base:()=>Uw,baseIcon:()=>qw,baseSmIcon:()=>Gw,inverse:()=>Xw,leftIcon:()=>Qw,linkLg:()=>Ww,linkSm:()=>Vw,primary:()=>Kw,secondary:()=>Yw,shimmer:()=>Zw});var c=r(664),u=r.n(c),d=r(36),p=r.n(d);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(null,arguments)}function h(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var m=r(660),g=r.n(m),y=r(313),v=r(436);const b=r(626).L;y.setFileScope("src/theme.css.ts","@paypalcorp/pp-react-theme");const w=(0,v.createTheme)(b,{size:{icon:{xs:"1.125rem",sm:"1.5rem",md:"2rem",lg:"3rem",xl:"4rem"},circle:{xs:"1.5rem",sm:"2rem",md:"3rem",lg:"4rem",xl:"6rem"},tapTarget:{sm:"2.75rem",default:"3rem",lg:"4rem",tiny:"2rem",xs:"2.5rem"},pointerWidth:{sm:"0.75rem",lg:"1rem"},indicator:{xs:"0.1875rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem"},field:{sm:"3rem",lg:"4rem"},media:{xs:"22rem",sm:"36rem",md:"47rem",lg:"64rem",xl:"72rem",xxl:"90rem"},pictogram:{sm:"6rem",md:"8.5rem",lg:"10rem"}},space:{0:"0rem",25:"0.125rem",50:"0.25rem",75:"0.375rem",100:"0.5rem",150:"0.75rem",200:"1rem",250:"1.25rem",300:"1.5rem",350:"1.75rem",400:"2rem",450:"2.25rem",500:"2.5rem",600:"3rem",700:"3.5rem",800:"4rem",900:"4.5rem",1e3:"5rem",1100:"5.5rem",1200:"6rem",tiny:"0.125rem",xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem",jumbo:"2rem"},elevation:{blurCurve:"1",blurSlope:"-1",blurBase:"0.625rem",opacity:"0.15",brightenFactor:"0.02",verticalOffsetRatio:"1",horizontalOffsetRatio:"0",level1:{yoffset:"0.0625rem",opacity:"0.08",blur:"0.75rem"},level2:{yoffset:"0.125rem",opacity:"0.1",blur:"0.875rem"},level3:{yoffset:"0.125rem",opacity:"0.1",blur:"1.125rem"}},motion:{timing:{x1:"0",y1:"0.9",x2:"0.3",y2:"1"},duration:{hover:"0.10s",action:"0.20s",arrive:"0.50s",depart:"0.30s",repeat:"1.30s",linger:"7.00s",enter:{small:"0.20s",medium:"0.30s",large:"0.50s"},exit:{small:"0.10s",medium:"0.20s",large:"0.20s"},move:{small:"0.20s",medium:"0.50s",large:"0.80s"},loop:{backForth:"0.50s",standard:"1.30s"},pause:{read:"7.00s",reveal:"4.00s"}},easing:{enter:{small:"0,0,0,1",medium:"0.05,0.7,0.1,1",large:"0.05,0.7,0.1,1"},exit:{small:"0.3,0,1,1",medium:"0.3,0,0.8,0.15",large:"0.3,0,0.8,0.15"},move:{small:"0.2,0,0,1",medium:"0.2,0,0,1",large:"0.2,0,0,1"},loop:{backForth:"0.2,0,0,1",standard:"0,0,1,1"}}},border:{thickness:{normal:"0.0625rem",emphasis:"0.125rem",focus:"0.1875rem",focusOutline:"0.375rem"},radius:{tiny:"0.125rem",xs:"0.25rem",sm:"0.375rem",md:"0.5rem",lg:"0.75rem",xl:"1rem",jumbo:"2rem",interactive:"50%"}},typography:{displayStrong:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displayMedium:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},display:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySmStrong:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySmMedium:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySm:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},headingLgStrong:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingLgMedium:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingLg:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSmStrong:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSmMedium:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSm:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},titleStrong:{family:"PayPalPlain-Bold",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},titleMedium:{family:"PayPalPlain-Medium",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},title:{family:"PayPalPlain-Regular",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},bodyStrong:{family:"PayPalPlain-Bold",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},bodyMedium:{family:"PayPalPlain-Medium",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},body:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},captionStrong:{family:"PayPalPlain-Bold",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},captionMedium:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},caption:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},linkLg:{family:"PayPalPlain-Medium",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",underline:"true",maxScaleFactor:"2"},linkSm:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",underline:"true",maxScaleFactor:"2"},tagStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},tagMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},tag:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataVizStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataVizMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataViz:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},buttonLg:{family:"PayPalPro-Black",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},buttonSm:{family:"PayPalPro-Black",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},fieldLabelLg:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.5rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},fieldLabelSm:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},fieldValueXl:{family:"PayPalPlain-Regular",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},fieldValueLg:{family:"PayPalPlain-Regular",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},fieldValueSm:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.5rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},navigationBarStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},navigationBarMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},navigationBar:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},legalStrong:{family:"PayPalPlain-Bold",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},legalMedium:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},legal:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"}},blur:{interactive:"0.5rem"},color:{background:{main:"#f0f2f9",alt:"#f5f7fa",surface:"#ffffff",surfaceHover:"#edf0f2",surfaceActive:"#999999",highContrast:"#000000",mediumContrast:"#696969"},primary:{main:"#000000",mainHover:"#333333",mainActive:"#696969",contrast:"#ffffff",contrastHover:"#edf0f2",contrastActive:"#999999",medium:{main:"#333333",mainHover:"#000000",mainActive:"#696969",contrast:"#ffffff"}},secondary:{main:"#0066f5",medium:{main:"#e3f7ff",mainHover:"#008cff",mainActive:"#0057d9",contrast:"#002991"},mainHover:"#0038ba",mainActive:"#3db5ff",contrast:"#ffffff"},tertiary:{main:"#000000",mainHover:"#333333",mainActive:"#696969",contrast:"#f5f7fa",contrastHover:"#cccccc",contrastActive:"#808080"},featured:{main:"#60cdff",mainHover:"#008cff",mainActive:"#e3f7ff",contrast:"#000000"},promotion:{main:"#0057d9",mainHover:"#002991",mainActive:"#008cff",contrast:"#ffffff",medium:{main:"#60cdff",mainHover:"#008cff",mainActive:"#e3f7ff",contrast:"#000000"},light:{main:"#e3f7ff",mainHover:"#60cdff",mainActive:"#008cff",contrast:"#000000"},moderate:{main:"#b8e9ff",mainHover:"#e3f7ff",mainActive:"#60cdff",contrast:"#008cff"},soft:{main:"#e3f7ff",mainHover:"#b8e9ff",mainActive:"#60cdff",contrast:"#008cff"}},unselected:{main:"#696969",mainHover:"#333333",mainActive:"#999999",contrast:"#edf0f2"},selected:{main:"#000000",mainHover:"#333333",mainActive:"#696969",alt:"#0066f5",altHover:"#0038ba",altActive:"#3db5ff",contrast:"#ffffff"},selectedRange:{main:"#b8e9ff",mainHover:"#3db5ff",mainActive:"#0066f5",contrast:"#000000"},link:{main:"#0066f5",mainHover:"#0038ba",mainActive:"#3db5ff",contrast:"#ffffff",contrastHover:"#b8e9ff",contrastActive:"#3db5ff",alt:"#808080",altHover:"#808080",altActive:"#696969"},overlay:{main:"rgba(0, 0, 0, 0.55)",mainHover:"rgba(0, 0, 0, 0.5)",mainActive:"rgba(0, 0, 0, 0.1)",contrast:"#ffffff"},overlayInverse:{main:"rgba(255, 255, 255, 0.7)",mainHover:"rgba(255, 255, 255, 0.9)",mainActive:"rgba(255, 255, 255, 0.5)",contrast:"#000000"},accent1:{main:"#0066f5",contrast:"#ffffff"},accent2:{main:"#60cdff",contrast:"#000000"},accent3:{main:"#002991",contrast:"#ffffff"},accent4:{main:"#1a1a1a",contrast:"#ffffff"},error:{main:"#c31526",mainHover:"#9f111f",mainActive:"#e9585f",contrast:"#ffffff",medium:{main:"#f7d0d1",mainHover:"#e9585f",mainActive:"#c31526",contrast:"#770a0a"}},warning:{main:"#ffaa00",mainHover:"#aa7100",mainActive:"#ffdb93",alt:"#d08b00",contrast:"#000000",medium:{main:"#fff5e1",mainHover:"#ffdb93",mainActive:"#ffaa00",contrast:"#785000"}},success:{main:"#008556",mainHover:"#006b51",mainActive:"#0ac886",contrast:"#ffffff",medium:{main:"#e6faee",mainHover:"#73e6ab",mainActive:"#00a86d",contrast:"#005243"}},system:{main:"#696969",mainHover:"#333333",mainActive:"#999999",contrast:"#ffffff"},info:{main:"#cccccc",mainHover:"#808080",mainActive:"#f5f7fa",contrast:"#000000"},specialty:{main:"#4422bf",mainHover:"#1d0088",mainActive:"#9b80ff",contrast:"#ffffff",medium:{main:"#efebff",mainHover:"#b5a0ff",mainActive:"#7a57f9",contrast:"#1d0088"}},dataViz:{empty:"#edf0f2",value1:"#0066f5",value2:"#e3f7ff"},structure:{borderHighContrast:"#999999",borderLowContrast:"#cccccc",divider:"rgba(0, 0, 0, 0.1)",focus:"#0066f5",scrim:"rgba(0, 0, 0, 0.4)",shimmer:"#f0f2f9",shimmerInverse:"#808080",sheen:"rgba(255, 255, 255, 0.7)",shadow:"#000000",focusOutline:"#0066f5",errorOutline:"#c31526"}}},"ppui_theme_tokens");y.endFileScope(),y.setFileScope("src/darkTheme.css.ts","@paypalcorp/pp-react-theme"),(0,v.createTheme)(b,{size:{icon:{xs:"1.125rem",sm:"1.5rem",md:"2rem",lg:"3rem",xl:"4rem"},circle:{xs:"1.5rem",sm:"2rem",md:"3rem",lg:"4rem",xl:"6rem"},tapTarget:{sm:"2.75rem",default:"3rem",lg:"4rem",tiny:"2rem",xs:"2.5rem"},pointerWidth:{sm:"0.75rem",lg:"1rem"},indicator:{xs:"0.1875rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem"},field:{sm:"3rem",lg:"4rem"},media:{xs:"22rem",sm:"36rem",md:"47rem",lg:"64rem",xl:"72rem",xxl:"90rem"},pictogram:{sm:"6rem",md:"8.5rem",lg:"10rem"}},space:{0:"0rem",25:"0.125rem",50:"0.25rem",75:"0.375rem",100:"0.5rem",150:"0.75rem",200:"1rem",250:"1.25rem",300:"1.5rem",350:"1.75rem",400:"2rem",450:"2.25rem",500:"2.5rem",600:"3rem",700:"3.5rem",800:"4rem",900:"4.5rem",1e3:"5rem",1100:"5.5rem",1200:"6rem",tiny:"0.125rem",xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem",jumbo:"2rem"},elevation:{blurCurve:"1",blurSlope:"-1",blurBase:"0.625rem",opacity:"0.15",brightenFactor:"0.02",verticalOffsetRatio:"1",horizontalOffsetRatio:"0",level1:{yoffset:"0.0625rem",opacity:"0.08",blur:"0.75rem"},level2:{yoffset:"0.125rem",opacity:"0.1",blur:"0.875rem"},level3:{yoffset:"0.125rem",opacity:"0.1",blur:"1.125rem"}},motion:{timing:{x1:"0",y1:"0.9",x2:"0.3",y2:"1"},duration:{hover:"0.10s",action:"0.20s",arrive:"0.50s",depart:"0.30s",repeat:"1.30s",linger:"7.00s",enter:{small:"0.20s",medium:"0.30s",large:"0.50s"},exit:{small:"0.10s",medium:"0.20s",large:"0.20s"},move:{small:"0.20s",medium:"0.50s",large:"0.80s"},loop:{backForth:"0.50s",standard:"1.30s"},pause:{read:"7.00s",reveal:"4.00s"}},easing:{enter:{small:"0,0,0,1",medium:"0.05,0.7,0.1,1",large:"0.05,0.7,0.1,1"},exit:{small:"0.3,0,1,1",medium:"0.3,0,0.8,0.15",large:"0.3,0,0.8,0.15"},move:{small:"0.2,0,0,1",medium:"0.2,0,0,1",large:"0.2,0,0,1"},loop:{backForth:"0.2,0,0,1",standard:"0,0,1,1"}}},border:{thickness:{normal:"0.0625rem",emphasis:"0.125rem",focus:"0.1875rem",focusOutline:"0.375rem"},radius:{tiny:"0.125rem",xs:"0.25rem",sm:"0.375rem",md:"0.5rem",lg:"0.75rem",xl:"1rem",jumbo:"2rem",interactive:"50%"}},typography:{displayStrong:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displayMedium:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},display:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySmStrong:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySmMedium:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySm:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},headingLgStrong:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingLgMedium:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingLg:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSmStrong:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSmMedium:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSm:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},titleStrong:{family:"PayPalPlain-Bold",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},titleMedium:{family:"PayPalPlain-Medium",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},title:{family:"PayPalPlain-Regular",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},bodyStrong:{family:"PayPalPlain-Bold",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},bodyMedium:{family:"PayPalPlain-Medium",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},body:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},captionStrong:{family:"PayPalPlain-Bold",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},captionMedium:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},caption:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},linkLg:{family:"PayPalPlain-Medium",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",underline:"true",maxScaleFactor:"2"},linkSm:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",underline:"true",maxScaleFactor:"2"},tagStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},tagMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},tag:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataVizStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataVizMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataViz:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},buttonLg:{family:"PayPalPro-Black",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},buttonSm:{family:"PayPalPro-Black",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},fieldLabelLg:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.5rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},fieldLabelSm:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},fieldValueXl:{family:"PayPalPlain-Regular",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},fieldValueLg:{family:"PayPalPlain-Regular",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},fieldValueSm:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.5rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},navigationBarStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},navigationBarMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},navigationBar:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},legalStrong:{family:"PayPalPlain-Bold",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},legalMedium:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},legal:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"}},blur:{interactive:"0.5rem"},color:{background:{main:"#474747",alt:"#474747",surface:"#000000",surfaceHover:"#1a1a1a",surfaceActive:"#333333",highContrast:"#ffffff",mediumContrast:"#999999"},primary:{main:"#60cdff",mainHover:"#b8e9ff",mainActive:"#3db5ff",contrast:"#000000",contrastHover:"#0066f5",contrastActive:"#008cff",medium:{main:"#333333",mainHover:"#000000",mainActive:"#696969",contrast:"#ffffff"}},secondary:{main:"#60cdff",medium:{main:"#e3f7ff",mainHover:"#008cff",mainActive:"#0057d9",contrast:"#002991"},mainHover:"#b8e9ff",mainActive:"#3db5ff",contrast:"#ffffff"},tertiary:{main:"#ffffff",mainHover:"#f5f7fa",mainActive:"#edf0f2",contrast:"#000000",contrastHover:"#333333",contrastActive:"#1a1a1a"},featured:{main:"#60cdff",mainHover:"#3db5ff",mainActive:"#008cff",contrast:"#000000"},promotion:{main:"#0057d9",mainHover:"#0066f5",mainActive:"#0038ba",contrast:"#ffffff",medium:{main:"#002991",mainHover:"#0057d9",mainActive:"#0038ba",contrast:"#cccccc"},light:{main:"#e3f7ff",mainHover:"#b8e9ff",mainActive:"#60cdff",contrast:"#000000"},moderate:{main:"#b8e9ff",mainHover:"#e3f7ff",mainActive:"#60cdff",contrast:"#008cff"},soft:{main:"#e3f7ff",mainHover:"#b8e9ff",mainActive:"#60cdff",contrast:"#008cff"}},unselected:{main:"#999999",mainHover:"#ffffff",mainActive:"#edf0f2",contrast:"#333333"},selected:{main:"#ffffff",mainHover:"#60cdff",mainActive:"#0066f5",alt:"#60cdff",altHover:"#60cdff",altActive:"#3db5ff",contrast:"#000000"},selectedRange:{main:"#b8e9ff",mainHover:"#60cdff",mainActive:"#3db5ff",contrast:"#000000"},link:{main:"#3db5ff",mainHover:"#60cdff",mainActive:"#b8e9ff",contrast:"#000000",contrastHover:"#000000",contrastActive:"#1a1a1a",alt:"#cccccc",altHover:"#cccccc",altActive:"#ffffff"},overlay:{main:"rgba(0, 0, 0, 0.55)",mainHover:"rgba(0, 0, 0, 0.4)",mainActive:"rgba(0, 0, 0, 0.7)",contrast:"#ffffff"},overlayInverse:{main:"rgba(0, 0, 0, 0.7)",mainHover:"rgba(0, 0, 0, 0.4)",mainActive:"rgba(0, 0, 0, 0.7)",contrast:"#000000"},accent1:{main:"#0066f5",contrast:"#ffffff"},accent2:{main:"#60cdff",contrast:"#000000"},accent3:{main:"#ffffff",contrast:"#002991"},accent4:{main:"#000000",contrast:"#3db5ff"},error:{main:"#e9585f",mainHover:"#f09c9f",mainActive:"#ee2c3f",contrast:"#ffffff",medium:{main:"#f7d0d1",mainHover:"#f09c9f",mainActive:"#e9585f",contrast:"#000000"}},warning:{main:"#ffdb93",mainHover:"#ffc042",mainActive:"#ffaa00",alt:"#aa7100",contrast:"#1a1a1a",medium:{main:"#fff5e1",mainHover:"#fff5e1",mainActive:"#ffe9be",contrast:"#000000"}},success:{main:"#0ac886",mainHover:"#73e6ab",mainActive:"#00a86d",contrast:"#1a1a1a",medium:{main:"#cbf8dd",mainHover:"#e6faee",mainActive:"#73e6ab",contrast:"#000000"}},system:{main:"#696969",mainHover:"#808080",mainActive:"#474747",contrast:"#ffffff"},info:{main:"#edf0f2",mainHover:"#f5f7fa",mainActive:"#cccccc",contrast:"#000000"},specialty:{main:"#9b80ff",mainHover:"#b5a0ff",mainActive:"#7a57f9",contrast:"#ffffff",medium:{main:"#dcd2ff",mainHover:"#efebff",mainActive:"#b5a0ff",contrast:"#000000"}},dataViz:{empty:"#edf0f2",value1:"#0066f5",value2:"#e3f7ff"},structure:{borderHighContrast:"#999999",borderLowContrast:"#cccccc",divider:"rgba(255, 255, 255, 0.06)",focus:"#3db5ff",scrim:"rgba(0, 0, 0, 0.4)",shimmer:"#edf0f2",shimmerInverse:"#808080",sheen:"rgba(255, 255, 255, 0.7)",shadow:"#000000",focusOutline:"#0066f5",errorOutline:"#c31526"}}},"ppui_dark_theme_tokens"),y.endFileScope();var x=["theme","className","children"],k=function(e){var t=e.theme,r=void 0===t?w:t,n=e.className,a=e.children,i=h(e,x);return g().createElement("div",f({className:"ppui-theme ".concat(r," ").concat(n||"")},i),a)},_="22rem",S="36rem",E="47rem",C="64rem",$="72rem",A="90rem",T=r(556),O=r.n(T),z=r(699);const P=z.Tr,F=z._s;function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function R(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}function I(e,t,r){return(t=R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,R(n.key),n)}}var M,D,H=function(){return"undefined"!=typeof window},B=function(){return"undefined"!=typeof document},j=(M=function(e,t,r,n){var a,i;return null!==(a=null!==(i=r[t])&&void 0!==i?i:r["".concat(e).concat(t)])&&void 0!==a?a:"function"==typeof n?n(e,t,r):n},D="sysColor",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return M.apply(void 0,[D].concat(t))}),W={fore:"contrast",back:"main",hover:"mainHover",active:"mainActive"},V={main:{familyName:"background",fore:"mediumContrast",back:"main"},contrast:{familyName:"background",fore:"highContrast",back:"main"},surface:{familyName:"background",fore:"mediumContrast",back:"surface",hover:"surfaceHover",active:"surfaceActive"},primary:W,primaryInverse:{familyName:"primary",fore:"main",back:"contrast",hover:"contrastHover",active:"contrastActive"},secondary:W,tertiary:W,featured:W,unselected:W,selected:W,linkMain:W,linkAlt:W,overlay:W,accent1:W,accent2:W,accent3:W,accent4:W,error:W,warning:W,success:W,system:W,info:W,specialty:W},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=V[t],n=r.familyName,a=void 0===n?t:n,i=r.fore,o=r.back,l=r.hover,s=r.active,c=e.color[a];return I(I(I(I(I(I({},F.main,c[i]),F.background,c[o]),F.hoverMain,c[i]),F.hoverBack,c[l]),F.activeMain,c[i]),F.activeBack,c[s])},q=1060,G=1090,K=/([+-]?\d*\.?\d*)([a-z%]*)?/,Y=function(e,t){var r;if("number"==typeof e)return{unit:t,value:e};var n=e.match(K);return{value:parseFloat(e),unit:null!==(r=n&&n[2])&&void 0!==r?r:t}},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r=Y(e,"px"),n=r.unit,a=r.value;return"rem"===n?a*t:a},Z=function(){for(var e="",t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t,r){t&&"string"==typeof t&&(e+=0===r?"".concat(t):" ".concat(t))})),e},Q=function(e,t){return"color-mix(in srgb, ".concat(e," ").concat(t,", transparent)")},J="ppui",ee={};function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J;ee[e]||(ee[e]=0);var t=++ee[e];return e===J?"".concat(t):"".concat(e).concat(t)}var re=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),I(this,"key",void 0),this.key=t}return t=e,(r=[{key:"IS_ARROW_LEFT",get:function(){return["ArrowLeft",e.NAME_ARROW_LEFT,e.CODE_ARROW_LEFT].includes(this.key)}},{key:"IS_ARROW_RIGHT",get:function(){return["ArrowRight",e.NAME_ARROW_RIGHT,e.CODE_ARROW_RIGHT].includes(this.key)}},{key:"IS_ARROW_UP",get:function(){return["ArrowUp",e.NAME_ARROW_UP,e.CODE_ARROW_UP].includes(this.key)}},{key:"IS_ARROW_DOWN",get:function(){return["ArrowDown",e.NAME_ARROW_DOWN,e.CODE_ARROW_DOWN].includes(this.key)}},{key:"IS_ENTER",get:function(){return[e.NAME_ENTER,e.CODE_ENTER].includes(this.key)}},{key:"IS_SPACEBAR",get:function(){return[e.NAME_SPACE,e.CODE_SPACE].includes(this.key)}},{key:"IS_TAB",get:function(){return[e.NAME_TAB,e.CODE_TAB].includes(this.key)}},{key:"IS_ESC",get:function(){return["Escape",e.NAME_ESC,e.CODE_ESC].includes(this.key)}},{key:"IS_HOME",get:function(){return[e.NAME_HOME,e.CODE_HOME].includes(this.key)}},{key:"IS_END",get:function(){return[e.NAME_END,e.CODE_END].includes(this.key)}},{key:"IS_BACKSPACE",get:function(){return[e.NAME_BACKSPACE,e.CODE_BACKSPACE].includes(this.key)}},{key:"IS_DELETE",get:function(){return[e.NAME_DELETE,e.CODE_DELETE].includes(this.key)}},{key:"IS_SIDE_NAVIGATION",get:function(){return this.IS_ARROW_LEFT||this.IS_ARROW_RIGHT||this.IS_END||this.IS_HOME}},{key:"IS_ARROW_KEY",get:function(){return this.IS_ARROW_LEFT||this.IS_ARROW_RIGHT||this.IS_ARROW_UP||this.IS_ARROW_DOWN}}])&&L(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();I(re,"CODE_ARROW_UP",38),I(re,"CODE_ARROW_DOWN",40),I(re,"CODE_ARROW_LEFT",37),I(re,"CODE_ARROW_RIGHT",39),I(re,"CODE_ENTER",13),I(re,"CODE_SPACE",32),I(re,"CODE_ESC",27),I(re,"CODE_TAB",9),I(re,"CODE_CAPS_LOCK",20),I(re,"CODE_HOME",36),I(re,"CODE_END",35),I(re,"CODE_BACKSPACE",8),I(re,"CODE_DELETE",46),I(re,"NAME_ARROW_UP","Up"),I(re,"NAME_ARROW_DOWN","Down"),I(re,"NAME_ARROW_LEFT","Left"),I(re,"NAME_ARROW_RIGHT","Right"),I(re,"NAME_ENTER","Enter"),I(re,"NAME_SPACE"," "),I(re,"NAME_ESC","Esc"),I(re,"NAME_TAB","Tab"),I(re,"NAME_HOME","Home"),I(re,"NAME_END","End"),I(re,"NAME_BACKSPACE","Backspace"),I(re,"NAME_DELETE","Delete");var ne=["as","children","className"];function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ie=function(e){if(null===e||"object"!==N(e))return e;var t=new e.constructor;for(var r in e)e.hasOwnProperty(r)&&(t[r]=ie(e[r]));return t},oe=function(e,t){if(t){var r=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(r,"ig");return e.replace(n,"<strong>$&</strong>")}return e},le=function(e){var t=e.as,r=void 0===t?"span":t,n=e.children,a=e.className,i=h(e,ne);return n?g().createElement(r,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:a},i),n):null};y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-screen-reader");const[se,ce]=(ue={position:"absolute",clip:"rect(1px, 1px, 1px, 1px)",padding:0,border:0,width:"1px",height:"1px",overflow:"hidden"},[(0,v.style)(ue,"screenreader"),ue]);var ue;y.endFileScope();var de=["as","className","children"],pe=function(e){var t=e.as,r=void 0===t?"div":t,n=e.className,a=e.children,i=h(e,de);return g().createElement(r,f({className:Z(se,n)},i,{"data-ppui":"true"}),a)};function fe(e,t){return[(0,v.style)(e,t),e]}y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-shimmer");const he=`cubic-bezier(${b.motion.easing.loop.standard})`,me=(0,v.keyframes)({"0%":{backgroundPosition:"100% 0"},"100%":{backgroundPosition:"-100% 0"}},"shimmer_animation"),[ge,ye]=fe({backgroundColor:b.color.structure.shimmer,border:`${b.border.thickness.normal} solid transparent`,backgroundImage:`linear-gradient(\n to right,\n ${b.color.structure.shimmer} 0%,\n ${b.color.structure.sheen} 50%,\n ${b.color.structure.shimmer} 100%\n )`,backgroundPosition:"100% 0",backgroundSize:"200%",animation:`${me} ${b.motion.duration.loop.standard}\n ${he} infinite`},"shimmer_base"),[ve,be]=fe({backgroundColor:b.color.structure.shimmerInverse,backgroundImage:`linear-gradient(\n to right,\n ${b.color.structure.shimmerInverse} 0%,\n ${b.color.structure.sheen} 50%,\n ${b.color.structure.shimmerInverse} 100%\n )`},"shimmer_inverse"),[we,xe]=fe({borderRadius:b.border.radius.lg,width:"100%",height:"100%"},"shimmer_default");y.endFileScope();var ke=["as","isInverse","className","hasStyleDefaults","children"],_e=function(e){var t=e.as,r=void 0===t?"div":t,n=e.isInverse,a=e.className,i=e.hasStyleDefaults,o=void 0===i||i,l=e.children,s=h(e,ke),c=Z(ge,n&&ve,o&&we,a);return g().createElement(r,f({className:c},s,{"data-ppui":"true"}),g().createElement(pe,{as:"span","data-ppui":"true"},l))};function Se(e,t){return[(0,v.style)(e,t),e]}y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text");const Ee=e=>`${e}, "Helvetica Neue", Arial, sans-serif`,Ce=(0,v.style)({margin:0,padding:0},"text_override_default"),[$e,Ae]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.body.family),fontSize:b.typography.body.size,lineHeight:b.typography.body.lineHeight,fontWeight:b.typography.body.weight,letterSpacing:b.typography.body.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.body.size}, calc(${b.typography.body.size}*${b.typography.body.maxScaleFactor}))`,lineHeight:`min(${b.typography.body.lineHeight}, calc(${b.typography.body.lineHeight}*${b.typography.body.maxScaleFactor}))`}}},"text-body"),[Te,Oe]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.bodyMedium.family),fontSize:b.typography.bodyMedium.size,lineHeight:b.typography.bodyMedium.lineHeight,fontWeight:b.typography.bodyMedium.weight,letterSpacing:b.typography.bodyMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.bodyMedium.size}, calc(${b.typography.bodyMedium.size}*${b.typography.bodyMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.bodyMedium.lineHeight}, calc(${b.typography.bodyMedium.lineHeight}*${b.typography.bodyMedium.maxScaleFactor}))`}}},"text-body_medium"),[ze,Pe]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.bodyStrong.family),fontSize:b.typography.bodyStrong.size,lineHeight:b.typography.bodyStrong.lineHeight,fontWeight:b.typography.bodyStrong.weight,letterSpacing:b.typography.bodyStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.bodyStrong.size}, calc(${b.typography.bodyStrong.size}*${b.typography.bodyStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.bodyStrong.lineHeight}, calc(${b.typography.bodyStrong.lineHeight}*${b.typography.bodyStrong.maxScaleFactor}))`}}},"text-body_strong"),[Fe,Ne]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.caption.family),fontSize:b.typography.caption.size,lineHeight:b.typography.caption.lineHeight,fontWeight:b.typography.caption.weight,letterSpacing:b.typography.caption.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.caption.size}, calc(${b.typography.caption.size}*${b.typography.caption.maxScaleFactor}))`,lineHeight:`min(${b.typography.caption.lineHeight}, calc(${b.typography.caption.lineHeight}*${b.typography.caption.maxScaleFactor}))`}}},"text-caption"),[Re,Ie]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.captionMedium.family),fontSize:b.typography.captionMedium.size,lineHeight:b.typography.captionMedium.lineHeight,fontWeight:b.typography.captionMedium.weight,letterSpacing:b.typography.captionMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.captionMedium.size}, calc(${b.typography.captionMedium.size}*${b.typography.captionMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.captionMedium.lineHeight}, calc(${b.typography.captionMedium.lineHeight}*${b.typography.captionMedium.maxScaleFactor}))`}}},"text-caption_medium"),[Le,Me]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.captionStrong.family),fontSize:b.typography.captionStrong.size,lineHeight:b.typography.captionStrong.lineHeight,fontWeight:b.typography.captionStrong.weight,letterSpacing:b.typography.captionStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.captionStrong.size}, calc(${b.typography.captionStrong.size}*${b.typography.captionStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.captionStrong.lineHeight}, calc(${b.typography.captionStrong.lineHeight}*${b.typography.captionStrong.maxScaleFactor}))`}}},"text-caption_strong"),[De,He]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.linkLg.family),fontSize:b.typography.linkLg.size,lineHeight:b.typography.linkLg.lineHeight,fontWeight:b.typography.linkLg.weight,letterSpacing:b.typography.linkLg.letterSpacing,textDecoration:b.typography.linkLg.underline?"underline":"none","@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.linkLg.size}, calc(${b.typography.linkLg.size}*${b.typography.linkLg.maxScaleFactor}))`,lineHeight:`min(${b.typography.linkLg.lineHeight}, calc(${b.typography.linkLg.lineHeight}*${b.typography.linkLg.maxScaleFactor}))`}}},"text-link_lg"),[Be,je]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.linkSm.family),fontSize:b.typography.linkSm.size,lineHeight:b.typography.linkSm.lineHeight,fontWeight:b.typography.linkSm.weight,letterSpacing:b.typography.linkSm.letterSpacing,textDecoration:b.typography.linkSm.underline?"underline":"none","@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.linkSm.size}, calc(${b.typography.linkSm.size}*${b.typography.linkSm.maxScaleFactor}))`,lineHeight:`min(${b.typography.linkSm.lineHeight}, calc(${b.typography.linkSm.lineHeight}*${b.typography.linkSm.maxScaleFactor}))`}}},"text-link_sm"),[We,Ve]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.tag.family),fontSize:b.typography.tag.size,lineHeight:b.typography.tag.lineHeight,fontWeight:b.typography.tag.weight,letterSpacing:b.typography.tag.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.tag.size}, calc(${b.typography.tag.size}*${b.typography.tag.maxScaleFactor}))`,lineHeight:`min(${b.typography.tag.lineHeight}, calc(${b.typography.tag.lineHeight}*${b.typography.tag.maxScaleFactor}))`}}},"text-tag"),[Ue,qe]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.tagMedium.family),fontSize:b.typography.tagMedium.size,lineHeight:b.typography.tagMedium.lineHeight,fontWeight:b.typography.tagMedium.weight,letterSpacing:b.typography.tagMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.tagMedium.size}, calc(${b.typography.tagMedium.size}*${b.typography.tagMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.tagMedium.lineHeight}, calc(${b.typography.tagMedium.lineHeight}*${b.typography.tagMedium.maxScaleFactor}))`}}},"text-tag_medium"),[Ge,Ke]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.tagStrong.family),fontSize:b.typography.tagStrong.size,lineHeight:b.typography.tagStrong.lineHeight,fontWeight:b.typography.tagStrong.weight,letterSpacing:b.typography.tagStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.tagStrong.size}, calc(${b.typography.tagStrong.size}*${b.typography.tagStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.tagStrong.lineHeight}, calc(${b.typography.tagStrong.lineHeight}*${b.typography.tagStrong.maxScaleFactor}))`}}},"text-tag_strong"),[Ye,Xe]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.dataViz.family),fontSize:b.typography.dataViz.size,lineHeight:b.typography.dataViz.lineHeight,fontWeight:b.typography.dataViz.weight,letterSpacing:b.typography.dataViz.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.dataViz.size}, calc(${b.typography.dataViz.size}*${b.typography.dataViz.maxScaleFactor}))`,lineHeight:`min(${b.typography.dataViz.lineHeight}, calc(${b.typography.dataViz.lineHeight}*${b.typography.dataViz.maxScaleFactor}))`}}},"text-data_viz"),[Ze,Qe]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.dataVizMedium.family),fontSize:b.typography.dataVizMedium.size,lineHeight:b.typography.dataVizMedium.lineHeight,fontWeight:b.typography.dataVizMedium.weight,letterSpacing:b.typography.dataVizMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.dataVizMedium.size}, calc(${b.typography.dataVizMedium.size}*${b.typography.dataVizMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.dataVizMedium.lineHeight}, calc(${b.typography.dataVizMedium.lineHeight}*${b.typography.dataVizMedium.maxScaleFactor}))`}}},"text-data_viz_medium"),[Je,et]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.dataVizStrong.family),fontSize:b.typography.dataVizStrong.size,lineHeight:b.typography.dataVizStrong.lineHeight,fontWeight:b.typography.dataVizStrong.weight,letterSpacing:b.typography.dataVizStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.dataVizStrong.size}, calc(${b.typography.dataVizStrong.size}*${b.typography.dataVizStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.dataVizStrong.lineHeight}, calc(${b.typography.dataVizStrong.lineHeight}*${b.typography.dataVizStrong.maxScaleFactor}))`}}},"text-data_viz_strong"),[tt,rt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.title.family),fontSize:b.typography.title.size,lineHeight:b.typography.title.lineHeight,fontWeight:b.typography.title.weight,letterSpacing:b.typography.title.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.title.size}, calc(${b.typography.title.size}*${b.typography.title.maxScaleFactor}))`,lineHeight:`min(${b.typography.title.lineHeight}, calc(${b.typography.title.lineHeight}*${b.typography.title.maxScaleFactor}))`}}},"text-title"),[nt,at]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.titleMedium.family),fontSize:b.typography.titleMedium.size,lineHeight:b.typography.titleMedium.lineHeight,fontWeight:b.typography.titleMedium.weight,letterSpacing:b.typography.titleMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.titleMedium.size}, calc(${b.typography.titleMedium.size}*${b.typography.titleMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.titleMedium.lineHeight}, calc(${b.typography.titleMedium.lineHeight}*${b.typography.titleMedium.maxScaleFactor}))`}}},"text-title_medium"),[it,ot]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.titleStrong.family),fontSize:b.typography.titleStrong.size,lineHeight:b.typography.titleStrong.lineHeight,fontWeight:b.typography.titleStrong.weight,letterSpacing:b.typography.titleStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.titleStrong.size}, calc(${b.typography.titleStrong.size}*${b.typography.titleStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.titleStrong.lineHeight}, calc(${b.typography.titleStrong.lineHeight}*${b.typography.titleStrong.maxScaleFactor}))`}}},"text-title_strong"),[lt,st]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.headingSm.family),fontSize:b.typography.headingSm.size,lineHeight:b.typography.headingSm.lineHeight,fontWeight:b.typography.headingSm.weight,letterSpacing:b.typography.headingSm.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.headingSm.size}, calc(${b.typography.headingSm.size}*${b.typography.headingSm.maxScaleFactor}))`,lineHeight:`min(${b.typography.headingSm.lineHeight}, calc(${b.typography.headingSm.lineHeight}*${b.typography.headingSm.maxScaleFactor}))`}}},"text-heading_sm"),[ct,ut]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.headingSmMedium.family),fontSize:b.typography.headingSmMedium.size,lineHeight:b.typography.headingSmMedium.lineHeight,fontWeight:b.typography.headingSmMedium.weight,letterSpacing:b.typography.headingSmMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.headingSmMedium.size}, calc(${b.typography.headingSmMedium.size}*${b.typography.headingSmMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.headingSmMedium.lineHeight}, calc(${b.typography.headingSmMedium.lineHeight}*${b.typography.headingSmMedium.maxScaleFactor}))`}}},"text-heading_sm_medium"),[dt,pt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.headingSmStrong.family),fontSize:b.typography.headingSmStrong.size,lineHeight:b.typography.headingSmStrong.lineHeight,fontWeight:b.typography.headingSmStrong.weight,letterSpacing:b.typography.headingSmStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.headingSmStrong.size}, calc(${b.typography.headingSmStrong.size}*${b.typography.headingSmStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.headingSmStrong.lineHeight}, calc(${b.typography.headingSmStrong.lineHeight}*${b.typography.headingSmStrong.maxScaleFactor}))`}}},"text-heading_sm_strong"),[ft,ht]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.headingLgStrong.family),fontSize:b.typography.headingLgStrong.size,lineHeight:b.typography.headingLgStrong.lineHeight,fontWeight:b.typography.headingLgStrong.weight,letterSpacing:b.typography.headingLgStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.headingLgStrong.size}, calc(${b.typography.headingLgStrong.size}*${b.typography.headingLgStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.headingLgStrong.lineHeight}, calc(${b.typography.headingLgStrong.lineHeight}*${b.typography.headingLgStrong.maxScaleFactor}))`}}},"text-heading_lg_strong"),[mt,gt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.headingLgMedium.family),fontSize:b.typography.headingLgMedium.size,lineHeight:b.typography.headingLgMedium.lineHeight,fontWeight:b.typography.headingLgMedium.weight,letterSpacing:b.typography.headingLgMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.headingLgMedium.size}, calc(${b.typography.headingLgMedium.size}*${b.typography.headingLgMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.headingLgMedium.lineHeight}, calc(${b.typography.headingLgMedium.lineHeight}*${b.typography.headingLgMedium.maxScaleFactor}))`}}},"text-heading_lg_medium"),[yt,vt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.headingLg.family),fontSize:b.typography.headingLg.size,lineHeight:b.typography.headingLg.lineHeight,fontWeight:b.typography.headingLg.weight,letterSpacing:b.typography.headingLg.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.headingLg.size}, calc(${b.typography.headingLg.size}*${b.typography.headingLg.maxScaleFactor}))`,lineHeight:`min(${b.typography.headingLg.lineHeight}, calc(${b.typography.headingLg.lineHeight}*${b.typography.headingLg.maxScaleFactor}))`}}},"text-heading_lg"),[bt,wt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.display.family),fontSize:b.typography.display.size,lineHeight:b.typography.display.lineHeight,fontWeight:b.typography.display.weight,letterSpacing:b.typography.display.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.display.size}, calc(${b.typography.display.size}*${b.typography.display.maxScaleFactor}))`,lineHeight:`min(${b.typography.display.lineHeight}, calc(${b.typography.display.lineHeight}*${b.typography.display.maxScaleFactor}))`}}},"text-display"),[xt,kt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.displayMedium.family),fontSize:b.typography.displayMedium.size,lineHeight:b.typography.displayMedium.lineHeight,fontWeight:b.typography.displayMedium.weight,letterSpacing:b.typography.displayMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.displayMedium.size}, calc(${b.typography.displayMedium.size}*${b.typography.displayMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.displayMedium.lineHeight}, calc(${b.typography.displayMedium.lineHeight}*${b.typography.displayMedium.maxScaleFactor}))`}}},"text-display_medium"),[_t,St]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.displayStrong.family),fontSize:b.typography.displayStrong.size,lineHeight:b.typography.displayStrong.lineHeight,fontWeight:b.typography.displayStrong.weight,letterSpacing:b.typography.displayStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.displayStrong.size}, calc(${b.typography.displayStrong.size}*${b.typography.displayStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.displayStrong.lineHeight}, calc(${b.typography.displayStrong.lineHeight}*${b.typography.displayStrong.maxScaleFactor}))`}}},"text-display_strong"),[Et,Ct]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.displaySm.family),fontSize:b.typography.displaySm.size,lineHeight:b.typography.displaySm.lineHeight,fontWeight:b.typography.displaySm.weight,letterSpacing:b.typography.displaySm.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.displaySm.size}, calc(${b.typography.displaySm.size}*${b.typography.displaySm.maxScaleFactor}))`,lineHeight:`min(${b.typography.displaySm.lineHeight}, calc(${b.typography.displaySm.lineHeight}*${b.typography.displaySm.maxScaleFactor}))`}}},"text-display_sm"),[$t,At]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.displaySmMedium.family),fontSize:b.typography.displaySmMedium.size,lineHeight:b.typography.displaySmMedium.lineHeight,fontWeight:b.typography.displaySmMedium.weight,letterSpacing:b.typography.displaySmMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.displaySmMedium.size}, calc(${b.typography.displaySmMedium.size}*${b.typography.displaySmMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.displaySmMedium.lineHeight}, calc(${b.typography.displaySmMedium.lineHeight}*${b.typography.displaySmMedium.maxScaleFactor}))`}}},"text-display_sm_medium"),[Tt,Ot]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.displaySmStrong.family),fontSize:b.typography.displaySmStrong.size,lineHeight:b.typography.displaySmStrong.lineHeight,fontWeight:b.typography.displaySmStrong.weight,letterSpacing:b.typography.displaySmStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.displaySmStrong.size}, calc(${b.typography.displaySmStrong.size}*${b.typography.displaySmStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.displaySmStrong.lineHeight}, calc(${b.typography.displaySmStrong.lineHeight}*${b.typography.displaySmStrong.maxScaleFactor}))`}}},"text-display_sm_strong"),[zt,Pt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.legal.family),fontSize:b.typography.legal.size,lineHeight:b.typography.legal.lineHeight,fontWeight:b.typography.legal.weight,letterSpacing:b.typography.legal.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.legal.size}, calc(${b.typography.legal.size}*${b.typography.legal.maxScaleFactor}))`,lineHeight:`min(${b.typography.legal.lineHeight}, calc(${b.typography.legal.lineHeight}*${b.typography.legal.maxScaleFactor}))`}}},"text-legal"),[Ft,Nt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.legalMedium.family),fontSize:b.typography.legalMedium.size,lineHeight:b.typography.legalMedium.lineHeight,fontWeight:b.typography.legalMedium.weight,letterSpacing:b.typography.legalMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.legalMedium.size}, calc(${b.typography.legalMedium.size}*${b.typography.legalMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.legalMedium.lineHeight}, calc(${b.typography.legalMedium.lineHeight}*${b.typography.legalMedium.maxScaleFactor}))`}}},"text-legal_medium"),[Rt,It]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.legalStrong.family),fontSize:b.typography.legalStrong.size,lineHeight:b.typography.legalStrong.lineHeight,fontWeight:b.typography.legalStrong.weight,letterSpacing:b.typography.legalStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.legalStrong.size}, calc(${b.typography.legalStrong.size}*${b.typography.legalStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.legalStrong.lineHeight}, calc(${b.typography.legalStrong.lineHeight}*${b.typography.legalStrong.maxScaleFactor}))`}}},"text-legal_strong"),[Lt,Mt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.navigationBar.family),fontSize:b.typography.navigationBar.size,lineHeight:b.typography.navigationBar.lineHeight,fontWeight:b.typography.navigationBar.weight,letterSpacing:b.typography.navigationBar.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.navigationBar.size}, calc(${b.typography.navigationBar.size}*${b.typography.navigationBar.maxScaleFactor}))`,lineHeight:`min(${b.typography.navigationBar.lineHeight}, calc(${b.typography.navigationBar.lineHeight}*${b.typography.navigationBar.maxScaleFactor}))`}}},"text-navigation_bar"),[Dt,Ht]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.navigationBarMedium.family),fontSize:b.typography.navigationBarMedium.size,lineHeight:b.typography.navigationBarMedium.lineHeight,fontWeight:b.typography.navigationBarMedium.weight,letterSpacing:b.typography.navigationBarMedium.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.navigationBarMedium.size}, calc(${b.typography.navigationBarMedium.size}*${b.typography.navigationBarMedium.maxScaleFactor}))`,lineHeight:`min(${b.typography.navigationBarMedium.lineHeight}, calc(${b.typography.navigationBarMedium.lineHeight}*${b.typography.navigationBarMedium.maxScaleFactor}))`}}},"text-navigation_bar_medium"),[Bt,jt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.navigationBarStrong.family),fontSize:b.typography.navigationBarStrong.size,lineHeight:b.typography.navigationBarStrong.lineHeight,fontWeight:b.typography.navigationBarStrong.weight,letterSpacing:b.typography.navigationBarStrong.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.navigationBarStrong.size}, calc(${b.typography.navigationBarStrong.size}*${b.typography.navigationBarStrong.maxScaleFactor}))`,lineHeight:`min(${b.typography.navigationBarStrong.lineHeight}, calc(${b.typography.navigationBarStrong.lineHeight}*${b.typography.navigationBarStrong.maxScaleFactor}))`}}},"text-navigation_bar_strong"),[Wt,Vt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.buttonSm.family),fontSize:b.typography.buttonSm.size,lineHeight:b.typography.buttonSm.lineHeight,fontWeight:b.typography.buttonSm.weight,letterSpacing:b.typography.buttonSm.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.buttonSm.size}, calc(${b.typography.buttonSm.size}*${b.typography.buttonSm.maxScaleFactor}))`,lineHeight:`min(${b.typography.buttonSm.lineHeight}, calc(${b.typography.buttonSm.lineHeight}*${b.typography.buttonSm.maxScaleFactor}))`}}},"text-button_sm"),[Ut,qt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.buttonLg.family),fontSize:b.typography.buttonLg.size,lineHeight:b.typography.buttonLg.lineHeight,fontWeight:b.typography.buttonLg.weight,letterSpacing:b.typography.buttonLg.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.buttonLg.size}, calc(${b.typography.buttonLg.size}*${b.typography.buttonLg.maxScaleFactor}))`,lineHeight:`min(${b.typography.buttonLg.lineHeight}, calc(${b.typography.buttonLg.lineHeight}*${b.typography.buttonLg.maxScaleFactor}))`}}},"text-button_lg"),[Gt,Kt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.mediumContrast),fontFamily:Ee(b.typography.fieldLabelSm.family),fontSize:b.typography.fieldLabelSm.size,lineHeight:b.typography.fieldLabelSm.lineHeight,fontWeight:b.typography.fieldLabelSm.weight,letterSpacing:b.typography.fieldLabelSm.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.fieldLabelSm.size}, calc(${b.typography.fieldLabelSm.size}*${b.typography.fieldLabelSm.maxScaleFactor}))`,lineHeight:`min(${b.typography.fieldLabelSm.lineHeight}, calc(${b.typography.fieldLabelSm.lineHeight}*${b.typography.fieldLabelSm.maxScaleFactor}))`}}},"text-fieldLabel_sm"),[Yt,Xt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.mediumContrast),fontFamily:Ee(b.typography.fieldLabelLg.family),fontSize:b.typography.fieldLabelLg.size,lineHeight:b.typography.fieldLabelLg.lineHeight,fontWeight:b.typography.fieldLabelLg.weight,letterSpacing:b.typography.fieldLabelLg.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.fieldLabelLg.size}, calc(${b.typography.fieldLabelLg.size}*${b.typography.fieldLabelLg.maxScaleFactor}))`,lineHeight:`min(${b.typography.fieldLabelLg.lineHeight}, calc(${b.typography.fieldLabelLg.lineHeight}*${b.typography.fieldLabelLg.maxScaleFactor}))`}}},"text-fieldLabel_lg"),[Zt,Qt]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.fieldValueSm.family),fontSize:b.typography.fieldValueSm.size,lineHeight:b.typography.fieldValueSm.lineHeight,fontWeight:b.typography.fieldValueSm.weight,letterSpacing:b.typography.fieldValueSm.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.fieldValueSm.size}, calc(${b.typography.fieldValueSm.size}*${b.typography.fieldValueSm.maxScaleFactor}))`,lineHeight:`min(${b.typography.fieldValueSm.lineHeight}, calc(${b.typography.fieldValueSm.lineHeight}*${b.typography.fieldValueSm.maxScaleFactor}))`}}},"text-fieldValue_sm"),[Jt,er]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.fieldValueLg.family),fontSize:b.typography.fieldValueLg.size,lineHeight:b.typography.fieldValueLg.lineHeight,fontWeight:b.typography.fieldValueLg.weight,letterSpacing:b.typography.fieldValueLg.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.fieldValueLg.size}, calc(${b.typography.fieldValueLg.size}*${b.typography.fieldValueLg.maxScaleFactor}))`,lineHeight:`min(${b.typography.fieldValueLg.lineHeight}, calc(${b.typography.fieldValueLg.lineHeight}*${b.typography.fieldValueLg.maxScaleFactor}))`}}},"text-fieldValue_lg"),[tr,rr]=Se({color:(0,v.fallbackVar)(F.main,b.color.background.highContrast),fontFamily:Ee(b.typography.fieldValueXl.family),fontSize:b.typography.fieldValueXl.size,lineHeight:b.typography.fieldValueXl.lineHeight,fontWeight:b.typography.fieldValueXl.weight,letterSpacing:b.typography.fieldValueXl.letterSpacing,"@media":{[`screen and (max-width: ${E})`]:{fontSize:`min(${b.typography.fieldValueXl.size}, calc(${b.typography.fieldValueXl.size}*${b.typography.fieldValueXl.maxScaleFactor}))`,lineHeight:`min(${b.typography.fieldValueXl.lineHeight}, calc(${b.typography.fieldValueXl.lineHeight}*${b.typography.fieldValueXl.maxScaleFactor}))`}}},"text-fieldValue_xl"),[nr,ar]=Se({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:1},"text-clamp_line_1"),[ir,or]=Se({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:2},"text-clamp_line_2"),[lr,sr]=Se({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:3},"text-clamp_line_3"),[cr,ur]=Se({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:4},"text-clamp_line_4"),[dr,pr]=Se({...xe,height:b.typography.display.lineHeight},"text-shimmer_display_lg"),[fr,hr]=Se({...xe,height:b.typography.displayStrong.lineHeight},"text-shimmer_display_lg_strong"),[mr,gr]=Se({...xe,height:b.typography.displayMedium.lineHeight},"text-shimmer_display_lg_medium"),[yr,vr]=Se({...xe,height:b.typography.displaySm.lineHeight},"text-shimmer_display_sm"),[br,wr]=Se({...xe,height:b.typography.displaySmStrong.lineHeight},"text-shimmer_display_sm_strong"),[xr,kr]=Se({...xe,height:b.typography.displaySmMedium.lineHeight},"text-shimmer_display_sm_medium"),[_r,Sr]=Se({...xe,height:b.typography.headingLg.lineHeight},"text-shimer_heading_lg"),[Er,Cr]=Se({...xe,height:b.typography.headingLgStrong.lineHeight},"text-shimer_heading_lg_strong"),[$r,Ar]=Se({...xe,height:b.typography.headingLgMedium.lineHeight},"text-shimer_heading_lg_medium"),[Tr,Or]=Se({...xe,height:b.typography.headingSm.lineHeight},"text-shimmer_heading_sm"),[zr,Pr]=Se({...xe,height:b.typography.headingSmStrong.lineHeight},"text-shimmer_heading_sm_strong"),[Fr,Nr]=Se({...xe,height:b.typography.headingSmMedium.lineHeight},"text-shimmer_heading_sm_medium"),[Rr,Ir]=Se({...xe,height:b.typography.body.lineHeight},"text-shimmer_body"),[Lr,Mr]=Se({...xe,height:b.typography.bodyStrong.lineHeight},"text-shimmer_body_strong"),[Dr,Hr]=Se({...xe,height:b.typography.bodyMedium.lineHeight},"text-shimmer_body_medium"),[Br,jr]=Se({...xe,height:b.typography.caption.lineHeight},"text-shimmer_caption"),[Wr,Vr]=Se({...xe,height:b.typography.captionStrong.lineHeight},"text-shimmer_caption_strong"),[Ur,qr]=Se({...xe,height:b.typography.captionMedium.lineHeight},"text-shimmer_caption_medium"),[Gr,Kr]=Se({...xe,height:b.typography.title.lineHeight},"text-shimmer_title"),[Yr,Xr]=Se({...xe,height:b.typography.titleStrong.lineHeight},"text-shimmer_title_strong"),[Zr,Qr]=Se({...xe,height:b.typography.titleMedium.lineHeight},"text-shimmer_title_medium");y.endFileScope();var Jr=["size","as","type","className","isLoading","isInverse","children"],en=function(e){var t=e.size,r=void 0===t?"lg":t,n=e.as,a=e.type,i=void 0===a?"regular":a,o=e.className,l=e.isLoading,s=e.isInverse,c=e.children,u=h(e,Jr),d={sm:{strong:dt,medium:ct,regular:lt},lg:{strong:ft,medium:mt,regular:yt}},p={sm:{strong:zr,medium:Fr,regular:Tr},lg:{strong:Er,medium:$r,regular:_r}};if(l)return g().createElement(_e,f({className:Z(p[r][i],!n&&Ce,o),hasStyleDefaults:!1,isInverse:s},u,{"data-ppui":"true"}),c);var m=Z(d[r][i],!n&&Ce,o),y="lg"===r?"h2":"h3";return g().createElement(n||y,f({className:m,"data-ppui-info":"heading-text_7.2.2__8.12.0"},u),c)},tn=["as","type","className","isLoading","isInverse","clampAtLine","children"],rn=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.className,i=e.isLoading,o=e.isInverse,l=e.clampAtLine,s=e.children,c=h(e,tn);if(i){var u=Z({strong:Lr,medium:Dr,regular:Rr}[n],!t&&Ce,a);return g().createElement(_e,f({className:u,hasStyleDefaults:!1,isInverse:o},c,{"data-ppui":"true"}),s)}var d=Z({strong:ze,medium:Te,regular:$e}[n],!t&&Ce,1===l&&nr,2===l&&ir,3===l&&lr,4===l&&cr,a);return g().createElement(t||"p",f({className:d,"data-ppui-info":"body-text_7.2.2__8.12.0"},c),s)},nn=["as","type","clampAtLine","className","isLoading","isInverse","children"],an=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.clampAtLine,i=e.className,o=e.isLoading,l=e.isInverse,s=e.children,c=h(e,nn),u={strong:Wr,medium:Ur,regular:Br};if(o)return g().createElement(_e,f({className:Z(u[n],!t&&Ce,i),hasStyleDefaults:!1,isInverse:l},c,{"data-ppui":"true"}),s);var d=Z({strong:Le,medium:Re,regular:Fe}[n],!t&&Ce,1===a&&nr,2===a&&ir,3===a&&lr,4===a&&cr,i);return g().createElement(t||"p",f({className:d,"data-ppui-info":"caption-text_7.2.2__8.12.0"},c),s)},on=["as","type","className","isLoading","isInverse","children"],ln=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.className,i=e.isLoading,o=e.isInverse,l=e.children,s=h(e,on),c={strong:Yr,medium:Zr,regular:Gr};if(i)return g().createElement(_e,f({className:Z(c[n],!t&&Ce,a),hasStyleDefaults:!1,isInverse:o},s,{"data-ppui":"true"}),l);var u=Z({strong:it,medium:nt,regular:tt}[n],!t&&Ce,a);return g().createElement(t||"h4",f({className:u,"data-ppui-info":"title-text_7.2.2__8.12.0"},s),l)};function sn(e,t){return[(0,v.style)(e,t),e]}y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-utils");const cn={ppuiEaseInOut:`cubic-bezier(${b.motion.timing.x1},${b.motion.timing.y1}, ${b.motion.timing.x2},${b.motion.timing.y2})`,ppuiEaseLoopStandard:`cubic-bezier(${b.motion.easing.loop.standard})`,ppuiEaseEnterSmall:`cubic-bezier(${b.motion.easing.enter.small})`,ppuiEaseExitSmall:`cubic-bezier(${b.motion.easing.exit.small})`,ppuiEaseMoveSmall:`cubic-bezier(${b.motion.easing.move.small})`},[un,dn]=sn({animationTimingFunction:cn.ppuiEaseInOut},"motion_animation"),[pn,fn]=sn({transitionTimingFunction:cn.ppuiEaseInOut},"motion_transition"),[hn,mn]=sn({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"ellipsis"),gn=(0,v.keyframes)({"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide_right"),yn=(0,v.keyframes)({"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},"slide_left");function vn(e,t){return[(0,v.style)(e,t),e]}y.endFileScope(),y.setFileScope("src/focusStyles.css.ts","@paypalcorp/pp-react-utils");const bn=`calc(${b.border.thickness.normal} + ${b.border.thickness.emphasis})`,wn=`calc(2*${bn})`,xn=b.color.structure.focusOutline,kn=`calc(${b.border.thickness.normal} * 2)`,_n=`calc(${b.border.thickness.normal} * 2)`,Sn=`calc(${bn} + ${bn})`,En=`calc(${b.border.thickness.emphasis} + ${b.border.thickness.normal})`,[Cn,$n]=vn({content:"",position:"absolute",top:0,left:0,right:0,border:"none",boxShadow:`0 0 0 ${wn} ${xn}`,borderRadius:"inherit",width:"100%",height:"100%",pointerEvents:"none"},"focus_after"),[An,Tn]=vn({content:"",position:"absolute",top:b.border.thickness.normal,left:b.border.thickness.normal,border:`${bn} solid ${b.color.structure.focus}`,boxShadow:`0 0 0 ${wn} ${xn}`,borderRadius:"inherit",textIndent:b.border.thickness.normal,width:`calc(100% - ${kn})`,height:`calc(100% - ${_n})`,pointerEvents:"none"},"offset_focus_after"),[On,zn]=vn({boxShadow:`0 0 0 ${bn} ${b.color.structure.focus},\n 0 0 0 ${Sn} ${b.color.structure.focusOutline}`,outline:`${bn} solid transparent`,borderRadius:"inherit"},"focus_inline"),[Pn,Fn]=vn({outline:`${b.border.thickness.emphasis} solid ${b.color.structure.focus}`,boxShadow:`0 0 0 ${b.border.thickness.emphasis} ${b.color.background.surface}`,outlineOffset:b.border.thickness.emphasis},"focus_offset_element"),[Nn,Rn]=vn({boxShadow:`0 0 0 ${En} inset ${b.color.structure.focus}`},"focus_inline_element");y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-accordion");const{ppuiEaseMoveSmall:In}=cn,Ln=(0,v.style)({...Ae,color:b.color.background.highContrast},"accordion_bodyText"),Mn=(0,v.style)({...Ne,color:b.color.background.highContrast},"accordion_captionText"),Dn=(0,v.style)({...rt,color:b.color.background.highContrast},"accordion_headingText"),Hn=(0,v.style)({...Pe,color:b.color.background.highContrast},"accordion_titleText"),Bn=((0,v.style)({width:"100%",borderCollapse:"collapse",backgroundColor:b.color.background.surface,borderRadius:b.border.radius.xl},"accordion_base"),(0,v.style)({border:"none"},"accordion_row"),(0,v.style)([Ln,{textAlign:"start",maxHeight:0,overflowY:"hidden",transition:`max-height ${b.motion.duration.move.small} ${In}`}],"accordion_body"));(0,v.style)([Mn],"accordion_body_small"),(0,v.style)({maxHeight:"125rem"},"body_open"),(0,v.globalStyle)(`${Bn} p`,{margin:0}),(0,v.style)({padding:`${b.space[50]} ${b.space[200]} ${b.space[200]}`},"accordion_inner_body");const jn=(0,v.style)({cursor:"pointer",minHeight:"4rem",wordBreak:"break-word",padding:b.space[200],paddingInlineEnd:b.space[600],position:"relative",background:"none",border:"none",width:"100%",display:"flex",justifyContent:"center",flexDirection:"column",textAlign:"start",":focus":Rn},"accordion_header");(0,v.style)([jn,Hn],"accordion_header_small"),(0,v.style)([jn,Dn],"accordion_header_large"),(0,v.style)({color:b.color.background.mediumContrast,paddingTop:b.space[50]},"accordion_subheader"),(0,v.style)({color:b.color.background.mediumContrast,position:"absolute",right:b.space[200],transition:`transform ${b.motion.duration.move.small} ${In}`,selectors:{"[dir=rtl] &":{left:b.space[200],right:"auto"}}},"accordion_svg_icon"),(0,v.style)({transform:"rotate(180deg)"},"accordion_icon_rotate"),y.endFileScope();var Wn=g().createContext(null);function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var qn=function(e,t,r){if(e&&e.currencyFormatter){var n=e.currencyFormatter({currency:r}),a=function(e){var t={mask:Number},r="",n="";return e.forEach((function(e,a){var i=e.type,o=e.value;switch(i){case"currencySymbol":case"currency":0===a?r=o:n=o;break;case"group":t.thousandsSeparator=o;break;case"fraction":t.scale=o.length;break;case"decimal":t.radix=o}})),{intlMaskOptions:t,intlCurrencyPrefix:r,intlCurrencySuffix:n}}(n.formatToParts(1e3)),i=a.intlMaskOptions,o=a.intlCurrencyPrefix,l=a.intlCurrencySuffix;return 0===n.resolvedOptions().maximumFractionDigits&&(i.padFractionalZeros=!1,i.scale=0),{currencyMaskOptions:Un(Un({padFractionalZeros:!0},i),t),intlCurrencyPrefix:o,intlCurrencySuffix:l}}return{currencyMaskOptions:t}};y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-icons");const Gn={sysColorBackgroundMain:b.color.background.main,sysColorBackgroundAlt:b.color.background.alt,sysColorBackgroundSurface:b.color.background.surface,sysColorBackgroundSurfaceHover:b.color.background.surfaceHover,sysColorBackgroundSurfaceActive:b.color.background.surfaceActive,sysColorBackgroundHighContrast:b.color.background.highContrast,sysColorBackgroundMediumContrast:b.color.background.mediumContrast,sysColorPrimaryMain:b.color.primary.main,sysColorPrimaryMainHover:b.color.primary.mainHover,sysColorPrimaryMainActive:b.color.primary.mainActive,sysColorPrimaryContrast:b.color.primary.contrast,sysColorPrimaryContrastHover:b.color.primary.contrastHover,sysColorPrimaryContrastActive:b.color.primary.contrastActive,sysColorSecondaryMain:b.color.secondary.main,sysColorSecondaryMainHover:b.color.secondary.mainHover,sysColorSecondaryMainActive:b.color.secondary.mainActive,sysColorSecondaryContrast:b.color.secondary.contrast,sysColorTertiaryMain:b.color.tertiary.main,sysColorTertiaryMainHover:b.color.tertiary.mainHover,sysColorTertiaryMainActive:b.color.tertiary.mainActive,sysColorTertiaryContrast:b.color.tertiary.contrast,sysColorFeaturedMain:b.color.featured.main,sysColorFeaturedMainHover:b.color.featured.mainHover,sysColorFeaturedMainActive:b.color.featured.mainActive,sysColorFeaturedContrast:b.color.featured.contrast,sysColorUnselectedMain:b.color.unselected.main,sysColorUnselectedMainHover:b.color.unselected.mainHover,sysColorUnselectedMainActive:b.color.unselected.mainActive,sysColorUnselectedContrast:b.color.unselected.contrast,sysColorSelectedMain:b.color.selected.main,sysColorSelectedMainHover:b.color.selected.mainHover,sysColorSelectedMainActive:b.color.selected.mainActive,sysColorSelectedContrast:b.color.selected.contrast,sysColorSelectedRangeMain:b.color.selectedRange.main,sysColorSelectedRangeMainHover:b.color.selectedRange.mainHover,sysColorSelectedRangeMainActive:b.color.selectedRange.mainActive,sysColorSelectedRangeContrast:b.color.selectedRange.contrast,sysColorLinkMain:b.color.link.main,sysColorLinkMainHover:b.color.link.mainHover,sysColorLinkMainActive:b.color.link.mainActive,sysColorLinkAlt:b.color.link.alt,sysColorLinkAltHover:b.color.link.altHover,sysColorLinkAltActive:b.color.link.altActive,sysColorLinkContrast:b.color.link.contrast,sysColorLinkContrastHover:b.color.link.contrastHover,sysColorLinkContrastActive:b.color.link.contrastActive,sysColorAccent1Main:b.color.accent1.main,sysColorAccent1Contrast:b.color.accent1.contrast,sysColorAccent2Main:b.color.accent2.main,sysColorAccent2Contrast:b.color.accent2.contrast,sysColorAccent3Main:b.color.accent3.main,sysColorAccent3Contrast:b.color.accent3.contrast,sysColorAccent4Main:b.color.accent4.main,sysColorAccent4Contrast:b.color.accent4.contrast,sysColorErrorMain:b.color.error.main,sysColorErrorMainHover:b.color.error.mainHover,sysColorErrorMainActive:b.color.error.mainActive,sysColorErrorContrast:b.color.error.contrast,sysColorWarningMain:b.color.warning.main,sysColorWarningMainHover:b.color.warning.mainHover,sysColorWarningMainActive:b.color.warning.mainActive,sysColorWarningAlt:b.color.warning.alt,sysColorWarningContrast:b.color.warning.contrast,sysColorSuccessMain:b.color.success.main,sysColorSuccessMainHover:b.color.success.mainHover,sysColorSuccessMainActive:b.color.success.mainActive,sysColorSuccessContrast:b.color.success.contrast,sysColorSystemMain:b.color.system.main,sysColorSystemMainHover:b.color.system.mainHover,sysColorSystemMainActive:b.color.system.mainActive,sysColorSystemContrast:b.color.system.contrast,sysColorInfoMain:b.color.info.main,sysColorInfoMainHover:b.color.info.mainHover,sysColorInfoMainActive:b.color.info.mainActive,sysColorInfoContrast:b.color.info.contrast,sysColorSpecialtyMain:b.color.specialty.main,sysColorSpecialtyMainHover:b.color.specialty.mainHover,sysColorSpecialtyMainActive:b.color.specialty.mainActive,sysColorSpecialtyContrast:b.color.specialty.contrast},Kn=Gn.sysColorBackgroundHighContrast,Yn=(0,v.style)({speak:"none",aspectRatio:"1"},"icon_base"),Xn=((0,v.style)({display:"inline-block",width:b.size.icon.lg,height:b.size.icon.lg},"icon_background_base"),(0,v.style)({width:b.size.icon.xs,height:b.size.icon.xs},"icon_size_xs")),Zn=(0,v.style)({width:b.size.icon.sm,height:b.size.icon.sm},"icon_size_sm"),Qn=(0,v.style)({width:b.size.icon.md,height:b.size.icon.md},"icon_size_md"),Jn=(0,v.style)({width:b.size.icon.lg,height:b.size.icon.lg},"icon_size_lg"),ea=(0,v.style)({width:b.size.icon.xl,height:b.size.icon.xl},"icon_size_xl"),ta=(0,v.style)({speak:"none",display:"inline-block",aspectRatio:"1"},"icon_svg");(0,v.globalStyle)(`${ta} img, ${ta} svg`,{width:"100%",height:"100%",display:"block"}),y.endFileScope();var ra=["as","size","color","className","children"],na=function(e){var t=e.as,r=void 0===t?"span":t,n=e.size,a=void 0===n?"md":n,i=e.color,o=e.className,l=e.children,s=h(e,ra),c=Z(ta,"xs"===a&&Xn,"sm"===a&&Zn,"md"===a&&Qn,"lg"===a&&Jn,"xl"===a&&ea,o);return g().createElement(r,f({role:"img",style:i?function(e){var t=j(e,Gn,Kn);return{color:(0,v.fallbackVar)(F.main,t)}}(i):null,className:c,"data-ppui-info":"icons_9.8.2__8.12.0"},s),l)},aa=["svgElementRef"],ia=["svgElementRef"],oa=["svgElementRef"],la=["svgElementRef"],sa=["svgElementRef"],ca=["svgElementRef"],ua=["svgElementRef"],da=["svgElementRef"],pa=["svgElementRef"],fa=["svgElementRef"],ha=["svgElementRef"],ma=["svgElementRef"],ga=["svgElementRef"],ya=["svgElementRef"],va=["svgElementRef"],ba=["svgElementRef"],wa=["svgElementRef"],xa=["svgElementRef"],ka=["svgElementRef"],_a=["svgElementRef"],Sa=function(e){e.svgElementRef;var t=h(e,aa);return g().createElement(na,f({"aria-label":"arrow down sm icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 18",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M16.28 9.53l-6.75 5.75a.751.751 0 0 1-1.06 0L1.72 9.53a.75.75 0 1 1 1.06-1.06l5.47 4.47V3.25a.75.75 0 1 1 1.5 0v9.69l5.47-4.47a.75.75 0 1 1 1.06 1.06z","data-ppui":"true"})),e.children)},Ea=function(e){e.svgElementRef;var t=h(e,ia);return g().createElement(na,f({"aria-label":"arrow up sm icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 18",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M1.72 8.47l6.75-5.75a.75.75 0 0 1 1.06 0l6.75 5.75a.75.75 0 1 1-1.06 1.06L9.75 5.06v9.69a.75.75 0 1 1-1.5 0V5.06L2.78 9.53a.75.75 0 0 1-1.06-1.06z","data-ppui":"true"})),e.children)},Ca=function(e){e.svgElementRef;var t=h(e,oa);return g().createElement(na,f({"aria-label":"calendar icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M19.5 3h-2.25v-.75a.75.75 0 1 0-1.5 0V3h-7.5v-.75a.75.75 0 0 0-1.5 0V3H4.5A1.5 1.5 0 0 0 3 4.5v15A1.5 1.5 0 0 0 4.5 21h15a1.5 1.5 0 0 0 1.5-1.5v-15A1.5 1.5 0 0 0 19.5 3zM6.75 4.5v.75a.75.75 0 0 0 1.5 0V4.5h7.5v.75a.75.75 0 1 0 1.5 0V4.5h2.25v3h-15v-3h2.25zm12.75 15h-15V9h15v10.5zm-6.375-7.125a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0zm4.125 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0zM9 16.125a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0zm4.125 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0zm4.125 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0z","data-ppui":"true"})),e.children)},$a=function(e){e.svgElementRef;var t=h(e,la);return g().createElement(na,f({"aria-label":"checkmark background icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M16.28 9.22a.748.748 0 0 1 0 1.06l-5.25 5.25a.747.747 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l1.72 1.72 4.72-4.72a.75.75 0 0 1 1.06 0zM21.75 12A9.75 9.75 0 1 1 12 2.25 9.76 9.76 0 0 1 21.75 12zm-1.5 0A8.25 8.25 0 1 0 12 20.25 8.26 8.26 0 0 0 20.25 12z","data-ppui":"true"})),e.children)},Aa=function(e){e.svgElementRef;var t=h(e,sa);return g().createElement(na,f({"aria-label":"checkmark sm icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 18",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{fillRule:"evenodd",d:"M3.352 9.586l3.398 3.399 8.46-8.462a.763.763 0 0 1 1.08 1.079l-9 9a.761.761 0 0 1-1.08 0l-3.937-3.938a.763.763 0 1 1 1.079-1.078z",clipRule:"evenodd","data-ppui":"true"})),e.children)},Ta=function(e){e.svgElementRef;var t=h(e,ca);return g().createElement(na,f({"aria-label":"checkmark icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M21.53 7.28l-12 12a.75.75 0 0 1-1.06 0l-5.25-5.25a.75.75 0 0 1 1.06-1.06L9 17.69 20.47 6.22a.75.75 0 1 1 1.06 1.06z","data-ppui":"true"})),e.children)},Oa=function(e){e.svgElementRef;var t=h(e,ua);return g().createElement(na,f({"aria-label":"chevron down icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M20.03 9.53l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06L12 15.44l6.97-6.97a.75.75 0 0 1 1.06 1.06z","data-ppui":"true"})),e.children)},za=function(e){e.svgElementRef;var t=h(e,da);return g().createElement(na,f({"aria-label":"chevron right icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M17.03 12.53l-7.5 7.5a.751.751 0 0 1-1.06-1.06L15.44 12 8.47 5.03a.75.75 0 1 1 1.06-1.06l7.5 7.5a.752.752 0 0 1 0 1.06z","data-ppui":"true"})),e.children)},Pa=function(e){e.svgElementRef;var t=h(e,pa);return g().createElement(na,f({"aria-label":"chevron up icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M20.03 15.53a.75.75 0 0 1-1.06 0L12 8.56l-6.97 6.97a.75.75 0 1 1-1.06-1.06l7.5-7.5a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 0 1 0 1.06z","data-ppui":"true"})),e.children)},Fa=function(e){e.svgElementRef;var t=h(e,fa);return g().createElement(na,f({"aria-label":"close icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M19.28 18.22a.751.751 0 0 1-1.06 1.06L12 13.06l-6.22 6.22a.75.75 0 0 1-1.06-1.06L10.94 12 4.72 5.78a.75.75 0 1 1 1.06-1.06L12 10.94l6.22-6.22a.75.75 0 1 1 1.06 1.06L13.06 12l6.22 6.22z","data-ppui":"true"})),e.children)},Na=function(e){e.svgElementRef;var t=h(e,ha);return g().createElement(na,f({"aria-label":"critical icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M22.2 17.634L14.002 3.396a2.322 2.322 0 0 0-4.004 0L1.8 17.634a2.204 2.204 0 0 0 0 2.223A2.282 2.282 0 0 0 3.802 21h16.396a2.284 2.284 0 0 0 2-1.143 2.204 2.204 0 0 0 .002-2.223zm-1.3 1.472a.797.797 0 0 1-.701.394H3.802a.797.797 0 0 1-.702-.394.712.712 0 0 1 0-.723l8.2-14.238a.82.82 0 0 1 1.406 0l8.199 14.238a.712.712 0 0 1-.004.723zM11.25 13.5V9.75a.75.75 0 1 1 1.5 0v3.75a.75.75 0 0 1-1.5 0zm1.875 3.375a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0z","data-ppui":"true"})),e.children)},Ra=function(e){e.svgElementRef;var t=h(e,ma);return g().createElement(na,f({"aria-label":"decline icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M15.53 9.53L13.06 12l2.47 2.47a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 1 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.751.751 0 0 1 1.06 1.06zM21.75 12A9.75 9.75 0 1 1 12 2.25 9.76 9.76 0 0 1 21.75 12zm-1.5 0A8.25 8.25 0 1 0 12 20.25 8.26 8.26 0 0 0 20.25 12z","data-ppui":"true"})),e.children)},Ia=function(e){e.svgElementRef;var t=h(e,ga);return g().createElement(na,f({"aria-label":"edit icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M21.31 6.879l-4.188-4.19a1.5 1.5 0 0 0-2.122 0L3.44 14.25A1.487 1.487 0 0 0 3 15.31v4.19A1.5 1.5 0 0 0 4.5 21h4.19a1.485 1.485 0 0 0 1.06-.44L21.31 9a1.5 1.5 0 0 0 0-2.121zM8.69 19.5H4.5v-4.19l8.25-8.25 4.19 4.19-8.25 8.25zM18 10.19L13.81 6l2.25-2.25 4.19 4.189-2.25 2.25z","data-ppui":"true"})),e.children)},La=function(e){e.svgElementRef;var t=h(e,ya);return g().createElement(na,f({"aria-label":"hide icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M5.055 3.245a.75.75 0 1 0-1.11 1.01l1.804 1.984c-3.405 2.09-4.87 5.31-4.934 5.457a.75.75 0 0 0 0 .61c.032.074.827 1.834 2.592 3.6C5.759 18.255 8.73 19.5 12 19.5a11.93 11.93 0 0 0 4.882-1.015l2.062 2.27a.75.75 0 1 0 1.11-1.01L5.055 3.245zm4.437 7.11l3.907 4.299a3 3 0 0 1-3.907-4.299zM12 18c-2.886 0-5.407-1.05-7.493-3.117A12.482 12.482 0 0 1 2.344 12c.44-.824 1.843-3.13 4.439-4.63L8.47 9.222a4.5 4.5 0 0 0 5.968 6.563l1.381 1.518A10.501 10.501 0 0 1 12 18zm.563-8.947a.75.75 0 0 1 .28-1.473 4.515 4.515 0 0 1 3.635 3.997.75.75 0 0 1-.676.817.636.636 0 0 1-.07 0 .75.75 0 0 1-.75-.681 3.008 3.008 0 0 0-2.42-2.66zm10.62 3.252c-.04.089-.99 2.191-3.128 4.107a.752.752 0 0 1-1.068-.05.75.75 0 0 1 .068-1.068A12.447 12.447 0 0 0 21.66 12a12.485 12.485 0 0 0-2.168-2.885C17.407 7.05 14.886 6 12 6c-.608 0-1.215.048-1.815.147a.75.75 0 1 1-.248-1.48A12.562 12.562 0 0 1 12 4.5c3.27 0 6.24 1.243 8.593 3.595 1.765 1.765 2.56 3.527 2.592 3.601a.75.75 0 0 1 0 .61h-.002z","data-ppui":"true"})),e.children)},Ma=function(e){e.svgElementRef;var t=h(e,ba);return g().createElement(na,f({"aria-label":"refresh icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M22.5 5.25v4.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 1 1 0-1.5h2.569l-2.493-2.284-.024-.022a7.5 7.5 0 1 0-.156 10.76.75.75 0 0 1 1.031 1.09A8.947 8.947 0 0 1 12 21h-.124a9 9 0 1 1 6.476-15.375L21 8.044V5.25a.75.75 0 1 1 1.5 0z","data-ppui":"true"})),e.children)},Da=function(e){e.svgElementRef;var t=h(e,wa);return g().createElement(na,f({"aria-label":"search icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M21.53 20.47l-4.694-4.693a8.26 8.26 0 1 0-1.06 1.06l4.693 4.694a.75.75 0 0 0 1.062-1.061zM3.75 10.5a6.75 6.75 0 1 1 6.75 6.75 6.758 6.758 0 0 1-6.75-6.75z","data-ppui":"true"})),e.children)},Ha=function(e){e.svgElementRef;var t=h(e,xa);return g().createElement(na,f({"aria-label":"settings icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M12 7.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm8.25-2.797a7.39 7.39 0 0 0 0-.405l1.399-1.748a.749.749 0 0 0 .139-.662 10.05 10.05 0 0 0-1.02-2.46.75.75 0 0 0-.563-.37l-2.224-.247a7.458 7.458 0 0 0-.281-.281l-.262-2.23a.75.75 0 0 0-.37-.562c-.772-.447-1.6-.79-2.46-1.019a.75.75 0 0 0-.663.14L12.203 3.75h-.405L10.05 2.354a.75.75 0 0 0-.662-.139c-.862.23-1.69.573-2.46 1.02a.75.75 0 0 0-.37.563l-.247 2.227a8.514 8.514 0 0 0-.281.282l-2.23.256a.75.75 0 0 0-.562.369c-.447.772-.79 1.6-1.019 2.46a.75.75 0 0 0 .14.663l1.391 1.742v.405L2.354 13.95a.75.75 0 0 0-.139.662c.23.862.573 1.69 1.02 2.46a.75.75 0 0 0 .563.37l2.224.247c.093.097.186.191.28.281l.26 2.23a.75.75 0 0 0 .37.562c.772.447 1.6.79 2.46 1.019a.75.75 0 0 0 .663-.14l1.742-1.391c.135.004.27.004.405 0l1.748 1.399a.75.75 0 0 0 .662.139 10.05 10.05 0 0 0 2.46-1.02.75.75 0 0 0 .37-.563l.247-2.224c.097-.092.191-.186.281-.281l2.23-.262a.75.75 0 0 0 .562-.37 10.1 10.1 0 0 0 1.019-2.46.749.749 0 0 0-.14-.663l-1.391-1.742zm-1.51-.61c.017.271.017.543 0 .814a.75.75 0 0 0 .164.514l1.33 1.662a8.585 8.585 0 0 1-.584 1.406l-2.119.24a.75.75 0 0 0-.478.248c-.18.203-.373.395-.576.575a.75.75 0 0 0-.247.478l-.235 2.117c-.45.236-.921.432-1.407.584l-1.663-1.33a.75.75 0 0 0-.469-.164h-.044a6.903 6.903 0 0 1-.814 0 .75.75 0 0 0-.514.163l-1.667 1.331a8.585 8.585 0 0 1-1.406-.584l-.24-2.116a.75.75 0 0 0-.248-.478 6.949 6.949 0 0 1-.575-.576.75.75 0 0 0-.478-.247l-2.117-.236a8.561 8.561 0 0 1-.584-1.406l1.33-1.664a.75.75 0 0 0 .163-.513 6.93 6.93 0 0 1 0-.814.75.75 0 0 0-.163-.514l-1.33-1.666c.152-.485.348-.956.584-1.406l2.116-.24a.75.75 0 0 0 .478-.248 7.09 7.09 0 0 1 .575-.575.75.75 0 0 0 .249-.48l.235-2.115c.45-.236.921-.432 1.406-.584l1.664 1.33a.75.75 0 0 0 .513.163c.271-.016.543-.016.814 0a.75.75 0 0 0 .514-.163l1.666-1.33c.485.152.956.348 1.406.584l.24 2.116a.75.75 0 0 0 .248.478c.203.18.395.373.575.576a.75.75 0 0 0 .478.247l2.117.235c.236.45.432.921.584 1.407l-1.33 1.663a.75.75 0 0 0-.163.518h.003z","data-ppui":"true"})),e.children)},Ba=function(e){e.svgElementRef;var t=h(e,ka);return g().createElement(na,f({"aria-label":"view icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M23.185 11.696c-.032-.074-.827-1.835-2.592-3.6C18.241 5.742 15.27 4.5 12 4.5c-3.27 0-6.24 1.243-8.593 3.595C1.642 9.861.844 11.625.815 11.696a.75.75 0 0 0 0 .61c.032.074.827 1.834 2.592 3.6C5.759 18.256 8.73 19.5 12 19.5c3.27 0 6.24-1.243 8.593-3.594 1.765-1.766 2.56-3.526 2.592-3.6a.75.75 0 0 0 0-.61zM12 18c-2.886 0-5.407-1.05-7.493-3.117A12.511 12.511 0 0 1 2.344 12a12.499 12.499 0 0 1 2.163-2.883C6.593 7.05 9.114 6 12 6s5.407 1.05 7.493 3.117A12.507 12.507 0 0 1 21.661 12c-.676 1.262-3.62 6-9.661 6zm0-10.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.5a3 3 0 1 1 0-5.999A3 3 0 0 1 12 15z","data-ppui":"true"})),e.children)};y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-input");const{ellipsisName:ja,variables:Wa}=n,{ppuiEaseMoveSmall:Va}=Wa,Ua=`calc((${b.size.field.lg} - ${b.typography.fieldValueSm.lineHeight}) / 2)`,qa=`calc((${b.size.field.lg} - ${b.typography.fieldValueSm.lineHeight}) / 2)`,Ga=`calc(${b.size.field.lg} - ${b.space[100]} - ${b.typography.caption.lineHeight} - ${b.space[25]} - ${b.typography.fieldValueSm.lineHeight})`,Ka=`calc(${b.size.field.lg} - ${b.border.thickness.emphasis})`,Ya=(0,v.style)({...Kt,color:b.color.background.mediumContrast},"text-input_label"),Xa=(0,v.style)({...Ne,color:b.color.background.mediumContrast},"text-input_caption"),Za={...Qt,color:b.color.background.mediumContrast},Qa=(0,v.style)([Xa,{display:"flex",margin:`${b.space[50]} 0 0`}],"text-input_info"),Ja=(0,v.style)({textDecoration:"none",position:"absolute"},"text-input_field_icon"),ei=(0,v.style)([ja,Ya,{pointerEvents:"none",position:"absolute",top:b.space[100],transition:`font-size ${b.motion.duration.move.small} ${Va},\n top ${b.motion.duration.move.small} ${Va},\n backgroundColor ${b.motion.duration.move.small} ${Va}`,right:b.space[150],left:b.space[150],backgroundClip:"padding-box"}],"text-input_label"),ti=(0,v.style)({},"text-input_label_placeholder_shown_and_not_focused");(0,v.globalStyle)(`${ti}:placeholder-shown:not(:focus) ~ label`,{...Za,top:Ua,backgroundColor:"transparent",marginBottom:0});const ri=(0,v.style)([Qa,{display:"block",listStyle:"none",padding:`${b.space[25]} 0`,overflowWrap:"break-word"}],"text-input_helper_text"),ni=(0,v.style)([Qt,{padding:0,position:"relative",textAlign:"left",selectors:{"[dir='rtl'] &":{textAlign:"right"}}}],"text-input_base"),ai=(0,v.style)([Ja,{width:b.size.tapTarget.default,height:b.size.tapTarget.default,display:"flex",justifyContent:"center",alignItems:"center",top:b.space[100],right:b.space[100],left:"auto",selectors:{"[dir='rtl'] &":{left:b.space[100],right:"auto"}}}],"text-input_icon_right"),ii=(0,v.style)([Ja,{pointerEvents:"none",zIndex:1,inset:`${Ua} auto ${Ua} ${b.space[150]}`,color:b.color.background.mediumContrast,selectors:{"[dir='rtl'] &":{inset:`${Ua} ${b.space[150]} ${Ua} auto`}}}],"text-input_icon_left"),oi=(0,v.style)([Qt,{padding:`calc(${b.space[350]} + ${b.space[25]} - ${b.border.thickness.normal}) calc(${b.space[150]} - ${b.border.thickness.normal}) calc(${b.space[100]} + ${b.space[25]} - ${b.border.thickness.normal}) calc(${b.space[150]} - ${b.border.thickness.normal})`,textOverflow:"ellipsis",boxSizing:"border-box",width:"100%",border:`${b.color.structure.borderLowContrast} solid ${b.border.thickness.normal}`,borderRadius:b.border.radius.sm,backgroundColor:b.color.background.surface,margin:0,outline:"none",position:"relative",WebkitAppearance:"none",MozAppearance:"none",minHeight:b.size.field.lg,selectors:{"&::placeholder":{color:b.color.background.mediumContrast},"&:placeholder-shown:not(:focus)::-webkit-input-placeholder":{opacity:0,transition:`opacity ${b.motion.duration.move.small} ${Va}`},"&:placeholder-shown:not(:focus)::-moz-placeholder":{opacity:0,transition:`opacity ${b.motion.duration.move.small} ${Va}`},"&:first-line":{lineHeight:b.typography.fieldValueSm.lineHeight},"&::-ms-reveal, &::-ms-clear":{display:"none"},"&::-webkit-input-placeholder":{color:b.color.background.mediumContrast,opacity:1},"&:-moz-placeholder":{color:b.color.background.mediumContrast,opacity:1,transition:`opacity ${b.motion.duration.move.small} ${Va}`},"&:focus":Fn}}],"text-input_control"),li=(0,v.style)({padding:`calc(${b.space[250]} - ${b.border.thickness.normal}) calc(${b.space[150]} - ${b.border.thickness.normal}) calc(${b.space[250]} - ${b.border.thickness.normal}) calc(${b.space[150]} - ${b.border.thickness.normal})`,selectors:{"&:placeholder-shown:not(:focus)::placeholder":{opacity:1}}},"text-input_no_label_control"),si=(0,v.style)({border:`${b.border.thickness.emphasis} solid ${b.color.error.main}`,paddingTop:`calc(${b.space[350]} + ${b.space[25]} - ${b.border.thickness.emphasis})`,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`,paddingBottom:`calc(${b.space[100]} + ${b.space[25]} - ${b.border.thickness.emphasis})`,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`},"text-input_error_control"),ci=(0,v.style)({paddingRight:`calc(${b.size.tapTarget.default} - ${b.border.thickness.emphasis})`,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`,selectors:{"[dir='rtl'] &":{paddingLeft:`calc(${b.space[150]} + ${b.size.tapTarget.default} - ${b.border.thickness.emphasis})`,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_right"),ui=(0,v.style)({paddingLeft:`calc(${b.space[600]} - ${b.border.thickness.emphasis})`,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${b.space[600]} - ${b.border.thickness.emphasis})`,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_left"),di=(0,v.style)({paddingRight:`calc(${b.space[150]} + ${b.size.tapTarget.default} - ${b.border.thickness.emphasis})`,paddingLeft:`calc(${b.space[600]} - ${b.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${b.space[600]} - ${b.border.thickness.emphasis})`,paddingLeft:`calc(${b.space[150]} + ${b.size.tapTarget.default} - ${b.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_left_and_right"),pi=(0,v.style)({paddingTop:`calc(${Ua} - ${b.border.thickness.emphasis})`,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`,paddingBottom:`calc(${qa} - ${b.border.thickness.emphasis})`,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`},"text-input_no_label_error"),fi=(0,v.style)({paddingRight:`calc(${b.space[250]} + ${b.size.tapTarget.default} - ${b.border.thickness.normal})`,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${b.space[250]} + ${b.size.tapTarget.default} - ${b.border.thickness.normal})`,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.normal})`}}},"text-input_control_with_icon_right"),hi=(0,v.style)({paddingLeft:`calc(${b.space[600]} - ${b.border.thickness.normal})`,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${b.space[600]} - ${b.border.thickness.normal})`,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.normal})`}}},"text-input_control_with_icon_left"),mi=(0,v.style)({paddingLeft:`calc(${b.space[600]} - ${b.border.thickness.normal})`,paddingRight:`calc(${b.space[150]} + ${b.size.tapTarget.default} - ${b.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${b.space[600]} - ${b.border.thickness.normal})`,paddingLeft:`calc(${b.space[150]} + ${b.size.tapTarget.default} - ${b.border.thickness.normal})`}}},"text-input_control_with_icon_left_and_right"),gi=(0,v.style)({left:b.space[150],right:`calc(${b.space[150]} + ${b.size.tapTarget.default})`,selectors:{"[dir='rtl'] & ":{left:`calc(${b.space[150]} + ${b.size.tapTarget.default})`,right:b.space[150]}}},"text-input_label_with_icon_right"),yi=(0,v.style)({left:b.space[600],right:b.space[150],selectors:{"[dir='rtl'] & ":{right:b.space[600],left:b.space[150]}}},"text-input_label_with_icon_left"),vi=(0,v.style)([Qa,{alignItems:"center"}],"text-input_error_text"),bi=(0,v.style)({marginRight:b.space[50],alignSelf:"flex-start",flexShrink:"0",selectors:{"[dir='rtl'] & ":{marginLeft:b.space[50],marginRight:0}}},"text-input_error_icon"),wi=(0,v.style)([{color:b.color.error.main,marginLeft:0},bi],"text-input_error_icon"),xi=(0,v.style)([{color:b.color.success.main,marginLeft:"initial"},bi],"text-input_success_icon"),ki=(0,v.style)({listStyle:"none",padding:0,margin:0},"text-input_multi_line_error"),_i=(0,v.style)({position:"relative",display:"flex",backgroundColor:b.color.background.surface,padding:b.border.thickness.normal,":after":{content:" ",position:"absolute",height:"100%",width:"100%",top:0,left:0,border:`${b.border.thickness.normal} solid ${b.color.structure.borderLowContrast}`,borderRadius:b.border.radius.sm,pointerEvents:"none"},":focus-within":{borderRadius:b.border.radius.sm,...Fn}},"text-input_prefix_wrapper"),Si=(0,v.style)({padding:`${b.border.thickness.normal} ${b.border.thickness.emphasis}`,":after":{border:`${b.border.thickness.emphasis} solid ${b.color.error.main}`}},"text-input_prefix_wrapper_error"),Ei={whiteSpace:"nowrap",color:b.color.background.highContrast,padding:`calc(${b.space[350]} + ${b.space[25]} - ${b.border.thickness.normal}) ${b.space[25]} calc(${b.space[100]} - ${b.border.thickness.normal}) calc(${b.space[150]} - ${b.border.thickness.normal})`},Ci=(0,v.style)({border:"none",minHeight:Ka,":focus":{boxShadow:"none",outline:"none"}},"text-input_prefix_wrapper_control");(0,v.globalStyle)(`${Ci}:placeholder-shown:not(:focus) ~ div`,{opacity:0});const $i=(0,v.style)({order:-1,...Ei,selectors:{"[dir='rtl'] & ":{...Ei,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.normal})`,paddingLeft:b.space[25]}}},"text-input_prefix"),Ai=(0,v.style)({...Ei,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.normal})`,paddingLeft:b.space[25],selectors:{"[dir='rtl'] & ":{...Ei,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.normal})`,paddingRight:b.space[25]}}},"text-input_suffix"),Ti=(0,v.style)({paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`}}},"text-input_error_prefix"),Oi=(0,v.style)({paddingRight:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`}}},"text-input_error_suffix"),zi=(0,v.style)({paddingTop:`calc(${Ua} - ${b.border.thickness.normal})`,paddingBottom:`calc(${qa} - ${b.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingTop:`calc(${Ua} - ${b.border.thickness.normal})`,paddingBottom:`calc(${qa} - ${b.border.thickness.normal})`}}},"text-input_no_label_suffix_or_prefix"),Pi=(0,v.style)({paddingLeft:0,selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:b.space[150]}}},"text-input_prefix_wrapper_control_with_prefix"),Fi=(0,v.style)({paddingRight:0,selectors:{"[dir='rtl'] & ":{paddingLeft:0,paddingRight:b.space[150]}}},"text-input_prefix_wrapper_control_with_suffix"),Ni=(0,v.style)({paddingLeft:0,paddingRight:0,selectors:{"[dir='rtl'] & ":{paddingLeft:0,paddingRight:0}}},"text-input_prefix_wrapper_control_with_prefix_suffix"),Ri=(0,v.style)([Za,{position:"absolute",top:0,right:0,left:0,paddingTop:`calc(${Ua} + ${b.space[100]} + ${b.border.thickness.normal})`,paddingRight:b.space[150],paddingLeft:b.space[150],paddingBottom:`calc(${Ga} + ${b.border.thickness.normal})`,backgroundColor:b.color.background.surface,whiteSpace:"nowrap",selectors:{"[dir='rtl'] & ":{transform:`translateX(calc(${b.border.thickness.normal} * -1))`}}}],"text-display_placemat");(0,v.globalStyle)(`${Ri}& + input:focus`,{backgroundColor:"transparent"});const Ii=(0,v.style)({paddingTop:Ua},"text-display_no_label_placemat");y.endFileScope();var Li=["setFocus","className","inputClassName","labelClassName","successText","successIconAriaLabel","errorText","error","errorIconAriaLabel","helperText","value","name","id","label","isLabelHidden","placeholder","placemat","leftIcon","rightIcon","onChange","children","renderContent","removeBorderRadiusLeft","removeBorderRadiusRight","removeBorderRadiusBoth","dir"];function Mi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Hi=function(e){var t=e.messageId,r=e.helperText,n=e.errorText,a=e.errorIconAriaLabel,i=e.successText,o=e.successIconAriaLabel;if(n||i){var l,s,c,u=n||i,d=Array.isArray(u)?g().createElement("ul",{className:ki,"data-ppui":"true"},u.map((function(e,r){return g().createElement("li",{key:"msg".concat(t,"-").concat(r),"data-ppui":"true"},e)}))):u;if(n){var p={className:wi,role:"img","aria-label":a};s=g().createElement(Na,f({size:"sm"},p,{"data-ppui":"true"}))}if(!n){var h={className:xi,role:"img","aria-label":o};c=g().createElement($a,f({size:"sm"},h,{"data-ppui":"true"}))}return g().createElement("div",{className:vi,id:t,role:"alert","data-ppui":"true"},null!==(l=s)&&void 0!==l?l:c,d)}return r?Array.isArray(r)?g().createElement("ul",{className:ri,id:t,"data-ppui":"true"},r.map((function(e,r){return g().createElement("li",{key:"msg".concat(t,"-").concat(r),"data-ppui":"true"},e)}))):g().createElement("div",{className:ri,id:t,"data-ppui":"true"},r):null},Bi=function(e,t,r){return e?g().createElement("div",{className:Z("left"===t&&ii,"right"===t&&ai,r),key:"icon-".concat(t),"data-ppui":"true"},e):null},ji=function(e){var t=e.setFocus,r=e.className,n=e.inputClassName,a=e.labelClassName,i=e.successText,o=e.successIconAriaLabel,l=void 0===o?"Success":o,s=e.errorText,c=e.error,u=void 0===c?!!s:c,d=e.errorIconAriaLabel,p=void 0===d?"Error":d,f=e.helperText,m=e.value,y=e.name,v=e.id,b=void 0===v?"text-input-".concat(y):v,w=e.label,x=e.isLabelHidden,k=e.placeholder,_=void 0===k?" ":k,S=e.placemat,E=e.leftIcon,C=void 0===E?null:E,$=e.rightIcon,A=void 0===$?null:$,T=e.onChange;e.children;var O=e.renderContent;e.removeBorderRadiusLeft,e.removeBorderRadiusRight,e.removeBorderRadiusBoth;var z=e.dir,P=h(e,Li),F="message_".concat(b),N=T?{onChange:T,value:m}:{defaultValue:m},R=Di(Di(Di({},f||s?{"aria-describedby":F}:{}),N),P);return g().createElement("div",{className:Z(ni,r),dir:z,"data-ppui-info":"text-input_6.2.2__8.12.0"},Bi(C,"left"),O(Di({inputClassName:n,name:y,id:b,setFocus:t,hasError:u,placeholder:_,placemat:S,label:w,labelClassName:a,isLabelHidden:x,inputTag:"input",leftIcon:C,rightIcon:A},R)),g().createElement(Hi,{errorText:s,errorIconAriaLabel:p,successText:i,successIconAriaLabel:l,helperText:f,messageId:F,"data-ppui":"true"}),Bi(A,"right"))},Wi=["inputClassName","inputTag","name","id","setFocus","inputRef","hasError","placeholder","placemat","label","labelClassName","isLabelHidden","rightIcon","leftIcon","prefix","suffix"],Vi=function(e){var t=e.placeholder,r=e.value,n=void 0===r?"":r,a=e.isLabelHidden,i=void 0!==a&&a,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=e.length;return r>=t.length?e:e.concat(t.substring(r))}(n,t),l=Z(Ri,i&&Ii);return g().createElement("div",{className:l,"data-ppui":"true"},o)},Ui=function(e){var t=null!=e?e:" ";return""===t?" ":t},qi=function(e){var t=e.inputClassName,r=e.inputTag,n=e.name,a=e.id,i=e.setFocus,o=e.inputRef,l=e.hasError,s=e.placeholder,c=e.placemat,u=e.label,d=e.labelClassName,p=e.isLabelHidden,y=e.rightIcon,v=e.leftIcon,b=e.prefix,w=e.suffix,x=h(e,Wi),k=!u||""===u||p,_=Z(oi,k&&li,!l&&y&&fi,!l&&v&&hi,!l&&y&&v&&mi,ti,l&&si,l&&k&&pi,l&&y&&ci,l&&v&&ui,l&&v&&y&&di,b||w?Ci:null,l&&k&&(b||w)?pi:null,b&&Pi,w&&Fi,b&&w&&Ni,t),S=Z(ei,y&&gi,v&&yi,k&&se,d),E=x.value;return(0,m.useEffect)((function(){var e=o.current;i&&e&&e.focus()}),[i]),g().createElement(g().Fragment,null,!!c&&g().createElement(Vi,{placeholder:c,value:E,isLabelHidden:k,"data-ppui":"true"}),g().createElement(r,f({className:_,name:n,id:a,ref:o,"aria-invalid":l,placeholder:Ui(s)},x,{"data-ppui":"true"})),u&&g().createElement("label",{htmlFor:a,id:"".concat(a,"-label"),className:S,"data-ppui":"true"},u))},Gi=["label","id","prefix","suffix","prefixClassName","suffixClassName","inputClassName","inputRef","onBlur","onFocus","hasError","isLabelHidden"],Ki=function(e){var t=e.label,r=e.id,n=e.prefix,a=e.suffix,i=e.prefixClassName,o=e.suffixClassName,l=e.inputClassName,s=e.inputRef,c=e.onBlur,u=void 0===c?null:c,d=e.onFocus,p=void 0===d?null:d,m=e.hasError,y=e.isLabelHidden,v=h(e,Gi),b=s,w=!t||""===t||y,x=Z($i,w&&zi,m&&Ti,i),k=Z(Ai,w&&zi,m&&Oi,o),_=Z(_i,m&&Si),S=t?"".concat(r,"-label "):"",E=n?"".concat(r,"-prefix "):"",C=a?"".concat(r,"-suffix"):"",$="".concat(S).concat(E).concat(C);return g().createElement("div",{className:_,onClick:function(){b.current&&b.current.focus()},"data-ppui":"true"},g().createElement(qi,f({label:t,id:r,prefix:n,suffix:a,inputClassName:l,inputRef:s,onFocus:function(e){p&&p(e)},onBlur:function(e){u&&u(e)},"aria-labelledby":$.trim(),hasError:m,isLabelHidden:w},v,{"data-ppui":"true"})),n&&g().createElement("div",{id:E.trim(),className:x,"data-ppui":"true"},n),a&&g().createElement("div",{id:C.trim(),className:k,"data-ppui":"true"},a))},Yi=["prefix","suffix","prefixClassName","suffixClassName"],Xi=["inputClassName","name","id","setFocus","hasError","placeholder","placemat","label","labelClassName","inputTag"],Zi=(0,m.forwardRef)((function(e,t){var r=e.prefix,n=e.suffix,a=e.prefixClassName,i=e.suffixClassName,o=h(e,Yi),l=(0,m.useRef)(),s=t||l;return g().createElement(ji,f({renderContent:function(e){var t=e.inputClassName,o=e.name,l=e.id,c=e.setFocus,u=e.hasError,d=e.placeholder,p=e.placemat,m=e.label,y=e.labelClassName,v=e.inputTag,b=h(e,Xi);return r||n?g().createElement(Ki,f({inputClassName:t,inputTag:v,name:o,id:l,setFocus:c,inputRef:s,hasError:u,placeholder:d,label:m,labelClassName:y,prefix:r,suffix:n,prefixClassName:a,suffixClassName:i},b,{"data-ppui":"true"})):g().createElement(qi,f({inputClassName:t,inputTag:v,name:o,id:l,setFocus:c,inputRef:s,hasError:u,placeholder:d,placemat:p,label:m,labelClassName:y},b,{"data-ppui":"true"}))}},o,{"data-ppui":"true"}))}));function Qi(e,t,r,n,a,i,o){try{var l=e[i](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,a)}function Ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eo(e,t){if(e){if("string"==typeof e)return Ji(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ji(e,t):void 0}}function to(e){return function(e){if(Array.isArray(e))return Ji(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ro(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||eo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(e,t){return[(0,v.style)(e,t),e]}y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-elevation");const ao=e=>`calc(((${b.elevation.horizontalOffsetRatio} * ${e})/16) * 1rem)`,io=e=>`calc(calc(((${e} * ${e} * ${b.elevation.blurCurve} + ${e} * ${b.elevation.blurSlope})/16) * 1rem) + ${b.elevation.blurBase})`,oo=(e=1)=>`calc(${e} * ${b.elevation.opacity}*100%)`,lo=Q(b.color.structure.shadow,oo()),so=e=>Q(b.color.background.surface,oo(e)),co=e=>`${ao(e)} ${(e=>`calc(((${b.elevation.verticalOffsetRatio} * ${e-1})/16) * 1rem)`)(e)} ${io(e)} ${lo}`,uo=e=>`linear-gradient(${so(e)}, ${so(e)})`,[po,fo]=no({boxShadow:co(1),backgroundImage:uo(1)},"elevation_level1"),[ho,mo]=no({boxShadow:co(2),backgroundImage:uo(2)},"elevation_level2"),[go,yo]=no({boxShadow:co(3),backgroundImage:uo(3)},"elevation_level3"),[vo,bo]=no({filter:`drop-shadow(${co(1)})`},"drop_shadow1"),[wo,xo]=no({filter:`drop-shadow(${co(2)})`},"drop_shadow2"),[ko,_o]=no({filter:`drop-shadow(${co(3)})`},"drop_shadow3"),[So,Eo]=no({boxShadow:`0 0 ${io(.33)} ${lo}`},"fixed_elevation"),[Co,$o]=no({boxShadow:`${ao(3)} ${`calc(((${b.elevation.verticalOffsetRatio} * -2)/16) * 1rem)`} ${io(3)} ${lo}`,backgroundImage:uo(3),transform:"translateZ(0)"},"elevation_level3_above");y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-list");const Ao=(0,v.style)({listStyle:"none",padding:"0",margin:"0",backgroundColor:"transparent"},"list_base"),To=(0,v.style)({display:"flex",textDecoration:"none",backgroundColor:"transparent",outline:"none"},"list_item-wrapper"),Oo={regular:(0,v.style)({paddingLeft:b.space[200],paddingRight:b.space[200]},"list_item-wrapper-gutter-regular"),none:(0,v.style)({paddingLeft:0,paddingRight:0},"list_item-wrapper-gutter-none")};(0,v.globalStyle)(`${To} > div:not(:last-child)`,{marginInlineEnd:b.space[100]});const zo=(0,v.style)({cursor:"pointer",position:"relative",":hover":{backgroundColor:b.color.background.surfaceHover},":active":{backgroundColor:b.color.background.surfaceActive}},"list_hover_active"),Po=(0,v.style)({backgroundColor:b.color.background.surfaceActive},"list_highlight"),Fo=(0,v.style)({display:"inherit",color:b.color.secondary.main,pointerEvents:"none",flexGrow:0},"list_decoration"),No=(0,v.style)({alignSelf:"center",display:"inline-flex",flexDirection:"column",gap:b.space[50],pointerEvents:"none",flexGrow:1},"list_content"),Ro=(0,v.style)({pointerEvents:"auto"},"list_action"),Io=(0,v.style)({alignSelf:"center",textAlign:"right",display:"flex",flexDirection:"column",gap:b.space[50],pointerEvents:"none",flexGrow:0,selectors:{"[dir='rtl'] &":{textAlign:"left",justifySelf:"end"}}},"list_trailing-content"),Lo=(0,v.style)({margin:0},"list_text"),Mo=(0,v.style)([Lo,{color:b.color.background.mediumContrast}],"list_secondary_text"),Do=(0,v.style)({alignSelf:"start"},"list_align-top"),Ho=(0,v.style)({alignSelf:"end"},"list_align-top"),Bo=(0,v.style)({alignSelf:"center"},"list_align-center"),jo=(0,v.style)({position:"relative",":focus":{...Rn,borderRadius:b.border.radius.xs}},"list_keyboard_active"),Wo=(0,v.style)({listStyleType:"none",margin:0,padding:0},"list_section-list"),Vo=(0,v.style)({padding:`${b.space[150]} ${b.space[200]}`},"list_section-title"),Uo={regular:(0,v.style)({paddingTop:b.space[150],paddingBottom:b.space[150]},"list_item-vertical-space-regular"),condensed:(0,v.style)({paddingTop:b.space[75],paddingBottom:b.space[75]},"list_item-vertical-space-condensed")},qo=(0,v.style)({"@media":{[`(max-width: ${E})`]:{minWidth:b.size.icon.lg,alignItems:"flex-end"}}},"checkmark-icon"),Go=(0,v.style)({pointerEvents:"none"},"unselectable");y.endFileScope();var Ko=["regular","none"],Yo=["regular","condensed"],Xo=["label","labelLineClamp","status","labelContext","labelDescription","labelDescriptionLineClamp","alert","action","value","decoration","trailingContent","navigationOptions","className","focusActive","isFocused","isHighlighted","isSelected","highlightText","isTextHighlighted","as","isItemFocusable","isItemNavigational","ariaDescribedby","role","gutterStyle","verticalSpace","unselectable"];function Zo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Qo=function(e){var t=e.label,r=e.labelLineClamp,n=e.status,a=e.labelContext,i=e.labelDescription,o=e.labelDescriptionLineClamp,l=e.alert,s=e.action;e.value;var c=e.decoration,u=e.trailingContent,d=e.navigationOptions;e.className,e.focusActive;var p=e.isFocused,y=e.isHighlighted,v=e.isSelected,b=e.highlightText,w=e.isTextHighlighted,x=e.as,k=void 0===x?"div":x,_=e.isItemFocusable,S=e.isItemNavigational,E=e.ariaDescribedby,C=e.role,$=e.gutterStyle,A=void 0===$?"regular":$,T=e.verticalSpace,O=void 0===T?"regular":T,z=e.unselectable,P=void 0!==z&&z,F=h(e,Xo),N=(0,m.useRef)();(0,m.useEffect)((function(){p&&N.current.focus()}),[p]);var R=Z(To,Uo[O],S&&zo,y&&Po,_&&jo,Oo[A],P&&Go),L={top:Do,center:Bo,bottom:Ho},M=Z(Fo,c&&L[c.align]),D=Z(Io,u&&L[u.align],qo),H=d&&function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d),B={as:"p",type:v?"strong":"regular",className:Lo,clampAtLine:r},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&g().createElement(an,f({as:"p",className:Mo},t?{clampAtLine:o}:{},{"data-ppui":"true"}),e)},W=function(e){return e&&g().createElement("div",{className:Ro,"data-ppui":"true"},e)};return g().createElement(k,f({className:R,role:C},P?null:{tabIndex:-1},{ref:N,"aria-describedby":E},d?null:{"aria-selected":void 0!==v&&v},H,F,{"data-ppui":"true"}),(null==c?void 0:c.thumbnail)&&g().createElement("div",{className:M,"data-ppui":"true"},c.thumbnail),(!!t||!!l||!!s||!!n||!!a||!!i)&&g().createElement("div",{className:No,"data-ppui":"true"},n&&g().createElement("div",{"data-ppui":"true"},n),j(a,!1),t&&function(){if(w&&"string"==typeof t){var e=oe(t,b);return g().createElement(rn,f({},B,{dangerouslySetInnerHTML:{__html:e},"data-ppui":"true"}))}return g().createElement(rn,f({},B,{"data-ppui":"true"}),t)}(),j(i,!0),l,W(s)),g().createElement("div",{className:D,"data-ppui":"true"},(u||v)&&g().createElement(g().Fragment,null,v?g().createElement(Ta,{"aria-label":"Selected",size:"sm",color:"SelectedMain","data-ppui":"true"}):null,(null==u?void 0:u.status)&&g().createElement("div",{"data-ppui":"true"},u.status),j(null==u?void 0:u.labelContext,!1),(null==u?void 0:u.label)&&g().createElement(rn,{as:"p",className:Lo,"data-ppui":"true"},u.label),j(null==u?void 0:u.labelDescription,!1),W(null==u?void 0:u.action),W(null==u?void 0:u.icon))))},Jo=function(e,t,r){for(var n=[],a="previous"===r?-1:1,i=0;i<e.length;i++){var o;(null===(o=e[i])||void 0===o?void 0:o.unselectable)||n.push(i)}return t===n[0]&&"previous"===r?n[n.length-1]:t===n[n.length-1]&&"next"===r?n[0]:n[n.indexOf(t)+a]},el=["options","focusActive","activeIndex","focusedIndex","className","onKeyDown","onClick","onFocus","onBlur","hasSections","highlightText","isTextHighlighted","itemAs","gutterStyle","verticalSpace"];function tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var rl=g().forwardRef((function(e,t){var r=e.options,n=e.focusActive,a=e.activeIndex,i=void 0===a?-1:a,o=e.focusedIndex,l=void 0===o?-1:o,s=e.className,c=e.onKeyDown,u=e.onClick,d=e.onFocus,p=e.onBlur,y=e.hasSections,v=e.highlightText,b=e.isTextHighlighted,w=e.itemAs,x=void 0===w?Qo:w,k=e.gutterStyle,_=void 0===k?"regular":k,S=e.verticalSpace,E=void 0===S?"regular":S,C=h(e,el),$=(0,m.useRef)(),A=t||$,T=ro((0,m.useState)(l),2),O=T[0],z=T[1];(0,m.useEffect)((function(){z(l)}),[l]);var P,F,N=function(e,t,r){(null==r?void 0:r.unselectable)||(z(t),u&&u(e,t))},R=function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.map((function(e,o){var l;"string"==typeof e.label||e.value;var s=u||e.onClick,c=!!s||!!e.navigationOptions,d=y?o+a:o,p={value:null!==(l=e.value)&&void 0!==l?l:e.label,role:s?"option":null,focusActive:n,highlightText:v,isTextHighlighted:b,isFocused:n&&O===d,isHighlighted:i===d,isItemNavigational:c,isItemFocusable:null!=n?n:c,as:e.navigationOptions?"a":"div",ariaDescribedby:y?r:null,gutterStyle:Ko.includes(_)?_:"regular",disabled:e.unselectable,verticalSpace:Yo.includes(E)?E:"regular"},h=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.wrapperProps);return delete e.wrapperProps,g().createElement("li",f({className:e.className,role:"menuitem","aria-selected":void 0!==e.isSelected&&e.isSelected,onClick:function(t){return N(t,d,e)},key:d,"data-value":e.value},h,{"data-ppui":"true"}),g().createElement(t,f({},p,e,{"data-ppui":"true"})))}))};return g().createElement("menu",f({className:Z(Ao,s),ref:A,tabIndex:n&&-1===O?0:-1},C,{onFocus:function(e){var t=n&&e.target===A.current&&e.currentTarget===A.current;!c&&t&&z(0),d&&d(e)},onBlur:function(e){var t=!A.current.contains(e.target)||!e.relatedTarget;!c&&n&&t&&z(-1),p&&p(e)},onKeyDown:function(e){if(c)c(e);else{var t=y?r.reduce((function(e,t){return(null==t?void 0:t.sectionItems)&&e.push.apply(e,to(t.sectionItems)),e}),[]):r,n=new re(e.key);n.IS_ARROW_UP&&O>0?(e.preventDefault(),z(Jo(t,O,"previous"))):n.IS_ARROW_DOWN&&O<t.length-1?(e.preventDefault(),z(Jo(t,O,"next"))):(n.IS_ENTER||n.IS_SPACEBAR)&&u&&(e.preventDefault(),N(e,O))}},"data-ppui":"true"}),y?(P=x,F=0,r.reduce((function(e,t){var r;if(null==t||null===(r=t.sectionItems)||void 0===r?void 0:r.length){var n=t.id?t.id:te("list_section_id");e.push(g().createElement("li",{role:"presentation",key:n,"data-ppui":"true"},t.title&&g().createElement("div",{className:Z(Vo,Uo[E]),id:t.id,"aria-hidden":"true","data-ppui":"true"},g().createElement(an,{"data-ppui":"true"},t.title)),g().createElement("menu",f({"aria-labelledby":t.id,className:Wo},C,{"data-ppui":"true"}),R(t.sectionItems,P,t.id,F)))),F+=t.sectionItems.length}return e}),[])):R(r,x))}));y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-menu");const nl="8rem",al=(0,v.style)([yo,{borderRadius:b.border.radius.lg,minWidth:nl,maxHeight:"30rem",overflowY:"auto",overflowX:"hidden",position:"absolute",marginTop:b.space[50],backgroundColor:b.color.background.surface,outline:`${b.border.thickness.normal} solid transparent`,zIndex:q}],"menu_container"),il=(0,v.style)({selectors:{[`${Ao}&`]:{padding:`${b.space[100]} 0`,"@media":{[`screen and (max-width: ${E})`]:{paddingBottom:b.space[400],paddingTop:0}}}}},"menu_list"),ol=(0,v.style)({display:"flex",height:"100%",alignItems:"center",justifyContent:"center"},"menu_loading_container");y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-loading-spinner");const{ppuiEaseLoopStandard:ll}=cn,sl=(0,v.keyframes)({to:{transform:"rotate(360deg)"}},"border_spinner"),cl="1rem",ul=(0,v.style)({color:b.color.primary.main,animation:`${sl} ${b.motion.duration.loop.standard} ${ll} infinite`,border:`${b.border.thickness.emphasis} solid currentColor`,borderRadius:"50%",clipPath:"polygon(50% 0%, 50% 50%, 100% 50%, 100% 100%, 0 100%, 0 0)"},"loading_spinner_base"),dl=(0,v.style)({minWidth:cl,minHeight:cl},"loading_spinner_size_xs"),pl=(0,v.style)({width:b.size.circle.xs,height:b.size.circle.xs},"loading_spinner_size_sm"),fl=(0,v.style)({width:b.size.circle.sm,height:b.size.circle.sm},"loading_spinner_size_md"),hl=(0,v.style)({width:b.size.circle.md,height:b.size.circle.md},"loading_spinner_size_lg"),ml=(0,v.style)({width:b.size.circle.xl,height:b.size.circle.xl},"loading_spinner_size_xl"),gl=(0,v.style)({color:b.color.primary.contrast},"loading_spinner_inverse");y.endFileScope();var yl=["as","className","inverse","size","screenReaderText"],vl=function(e){var t=e.as,r=void 0===t?"p":t,n=e.className,a=e.inverse,i=e.size,o=void 0===i?"sm":i,l=e.screenReaderText,s=h(e,yl),c={xs:dl,sm:pl,md:fl,lg:hl,xl:ml};Object.keys(c).includes(o)||(o="sm");var u=Z(ul,a&&gl,c[o],n);return g().createElement(r,f({className:u,"data-ppui-info":"loading-spinner_4.1.2__8.12.0"},s,{role:"alert"}),g().createElement("span",{className:se,"data-ppui":"true"},l))};y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-sheet");const{variables:bl}=n,{ppuiEaseInOut:wl}=bl,xl=`calc(${b.size.media.xl} * 0.75)`,kl=b.size.icon.lg,_l=`calc(${b.size.icon.xl} + (${b.space[100]}))`,Sl="100vw",El=`screen and (max-width: ${C})`,Cl=`screen and (max-width: ${E})`,$l=`screen and (max-width: ${S})`,Al=`screen and (min-width: ${E})`,Tl={transform:"translateZ(0) translateX(0)"},Ol={transform:"translateZ(0) translateX(100%)"},zl={transform:"translateZ(0) translateX(-100%)"},Pl={borderTopLeftRadius:b.border.radius.jumbo,borderTopRightRadius:b.border.radius.jumbo},Fl=(e="center")=>(0,v.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`sheet-container_center_${e}`),Nl=e=>(0,v.style)({"@media":{[Cl]:{height:`${e}dvh`,...Pl}}},`sheet_height_${e}`),Rl=e=>{const t="right"===e?Ol:zl;return(0,v.style)([ns,{"@media":{[Al]:t},selectors:{"&[aria-hidden='false']":Tl}}],`sheet-container_${e}`)},Il=(0,v.style)([Fl("flex-end"),{width:b.size.media.md,"@media":{[El]:{width:b.size.media.sm},[$l]:{width:Sl}}}],"sheet-container_bottom"),Ll=(0,v.style)({width:"75%",maxWidth:xl},"sheet_no_container"),Ml=(0,v.style)({height:"100dvh",width:"auto",willChange:"transform",transition:`transform ${b.motion.duration.depart} ${wl},\n height ${b.motion.duration.depart} ${wl}`,transform:"translateZ(0) translateY(100%)","@media":{[Cl]:{width:Sl,height:"auto",minHeight:"3rem",maxHeight:"90dvh",...Pl}}},"sheet"),Dl=(0,v.style)({transform:"translateZ(0) translateY(0)"},"sheet_show"),Hl=(0,v.style)([Fl("center"),{position:"fixed",inset:0,zIndex:G,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${b.motion.duration.depart} ease-in-out,\n visibility ${b.motion.duration.depart} ${b.motion.duration.depart}`,backgroundColor:b.color.overlay.mainHover,boxShadow:"none"}],"sheet_backdrop");(0,v.globalStyle)(`${Hl} [aria-hidden="false"], ${Hl} [aria-hidden="true"]`,{transitionDuration:b.motion.duration.arrive});const Bl=(0,v.style)([{position:"fixed",inset:0,zIndex:G,transform:`visibiliy ${b.motion.duration.depart} ${b.motion.duration.depart}`,selectors:{"&::before":{content:" ",position:"absolute",inset:0,opacity:0,willChange:"opacity",transition:`opacity ${b.motion.duration.depart} ease-in-out`,backgroundColor:b.color.overlay.mainHover}}},Fl("flex-end")],"sheet-scrim"),jl=(0,v.style)({visibility:"visible",transition:"none",selectors:{"&::before":{opacity:1,transitionDuration:b.motion.duration.arrive}}},"sheet-scrim_show"),Wl=(0,v.style)({selectors:{"&::before":{content:" ",position:"absolute",top:b.space[100],left:0,right:0,margin:"auto",width:b.size.tapTarget.default,height:b.size.indicator.sm,backgroundColor:b.color.background.mediumContrast,borderRadius:b.border.radius.md,display:"none","@media":{[Cl]:{display:"block"}}}}},"sheet-show_gripper"),Vl=(0,v.style)({"@media":{[Cl]:{borderRadius:0}}},"sheet-content_with_header"),Ul=(0,v.style)({padding:"0 8.5rem","@media":{[El]:{padding:"0 5rem"},[Cl]:{padding:`0 ${b.space[200]} ${b.space[200]}`}}},"sheet-content"),ql=(0,v.style)({minHeight:_l,"@media":{[Cl]:{minHeight:kl}}},"sheet-header"),Gl=(0,v.style)({minHeight:_l,padding:b.space[150],margin:0,"@media":{[Cl]:{minHeight:kl,margin:0}}},"sheet-header_action"),Kl=(0,v.style)({"@media":{[Cl]:{padding:`0 ${b.space[100]}`}}},"sheet-header_action-spacing"),Yl=(0,v.style)({"@media":{[Cl]:{padding:`calc(${b.space[75]} + ${b.space[50]}) ${b.space[75]} 0`}}},"sheet-header_action-gripper-spacing"),Xl=(0,v.style)({flex:"0 0 100%",padding:`${b.space[100]} ${b.space[200]}`},"sheet-header_work_area"),Zl=(0,v.style)({position:"absolute",right:b.space[50],top:b.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:b.space[50],right:"auto","@media":{[Al]:{left:b.size.indicator.md}}}}},"sheet-content_close");(0,v.globalStyle)(`${Zl}`,{"@media":{[Al]:{right:b.size.indicator.md,top:b.space[150]}}});const Ql=(0,v.style)({"@media":{[Cl]:{height:"100dvh",maxHeight:"100dvh",borderTopLeftRadius:0,borderTopRightRadius:0}}},"sheet_height_100"),Jl=Nl("90"),es=Nl("50"),ts=(0,v.style)({"@media":{[Al]:{justifyContent:"flex-end"}}},"sheet_right_side"),rs=(0,v.style)({"@media":{[Al]:{width:"35.5rem"}}},"sheet-right_width"),ns=(0,v.style)({"@media":{[Al]:{willChange:"transform",transition:`transform ${b.motion.duration.depart}`,bottom:"inherit"}}},"sheet-container"),as=Rl("right"),is=Rl("left"),os=(0,v.style)({"@media":{[Al]:{paddingLeft:b.space[600],paddingRight:b.space[600]}}},"sheet-drawer_container");y.endFileScope();var ls=r(448),ss=r.n(ls);function cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var us=function(e){var t=e.id,r=void 0===t?te("animatee#"):t,n=e.shouldHide,a=void 0!==n&&n,i=e.onOpen,o=e.onCloseComplete,l=e.phaseProps,s=void 0===l?{initial:{isHidden:!0},showing:{isHidden:!1},hiding:{isHidden:!0}}:l,c=e.children,u=ro((0,m.useState)("initial"),2),d=u[0],p=u[1],f=(0,m.useRef)({event:null,closeMethod:""}),h=(0,m.useRef)(r),y=(0,m.useRef)(null),v=function(){y.current&&(clearTimeout(y.current),y.current=null);var e=f.current||{},t=e.event,r=e.closeMethod;p((function(e){return"initial"!==e?("function"==typeof o&&o(t,r),"initial"):e}))};(0,m.useLayoutEffect)((function(){a||"initial"!==d||p("showing"),a&&"initial"!==d&&(f.current.closeMethod="caller",p("hiding"))}),[a]);var b=function(e){e.target.dataset.animatee===h.current&&("hiding"===d?v():"function"==typeof i&&i(e),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation())};if(a&&"initial"===d)return null;var w=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({requestClose:function(e,t){f.current.event=e,f.current.closeMethod=t,p("hiding"),y.current=setTimeout((function(){v()}),1e3)},"data-animatee":h.current},s[d]);return g().createElement("div",{"data-testid":"animator",onTransitionEnd:b,onAnimationEnd:b},c(w))},ds=function(){return ds=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ds.apply(this,arguments)};function ps(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var fs=r(718),hs=r(214),ms=r.n(hs),gs="right-scroll-bar-position",ys="width-before-scroll-bar";function vs(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var bs="undefined"!=typeof window?hs.useLayoutEffect:hs.useEffect,ws=new WeakMap;function xs(e,t){var r,n,a,i=(r=t||null,n=function(t){return e.forEach((function(e){return vs(e,t)}))},(a=(0,hs.useState)((function(){return{value:r,callback:n,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=n,a.facade);return bs((function(){var t=ws.get(i);if(t){var r=new Set(t),n=new Set(e),a=i.current;r.forEach((function(e){n.has(e)||vs(e,null)})),n.forEach((function(e){r.has(e)||vs(e,a)}))}ws.set(i,e)}),[e]),i}function ks(e){return e}function _s(e,t){void 0===t&&(t=ks);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var a=t(e,n);return r.push(a),function(){r=r.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),r={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),r}}}};return a}function Ss(e,t){return void 0===t&&(t=ks),_s(e,t)}function Es(e){void 0===e&&(e={});var t=_s(null);return t.options=ds({async:!0,ssr:!1},e),t}var Cs=Es(),$s=function(){},As=hs.forwardRef((function(e,t){var r=hs.useRef(null),n=hs.useState({onScrollCapture:$s,onWheelCapture:$s,onTouchMoveCapture:$s}),a=n[0],i=n[1],o=e.forwardProps,l=e.children,s=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,f=e.noIsolation,h=e.inert,m=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,v=e.gapMode,b=ps(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=xs([r,t]),k=ds(ds({},b),a);return hs.createElement(hs.Fragment,null,u&&hs.createElement(w,{sideCar:Cs,removeScrollBar:c,shards:d,noIsolation:f,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:r,gapMode:v}),o?hs.cloneElement(hs.Children.only(l),ds(ds({},k),{ref:x})):hs.createElement(y,ds({},k,{className:s,ref:x}),l))}));As.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},As.classNames={fullWidth:ys,zeroRight:gs};var Ts="data-focus-lock",Os="data-focus-lock-disabled",zs={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Ps=Ss({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Fs=Ss(),Ns=Ss(),Rs=Es({async:!0,ssr:"undefined"!=typeof document}),Is=(0,hs.createContext)(void 0),Ls=[],Ms=(0,hs.forwardRef)((function(e,t){var r,n=(0,hs.useState)(),a=n[0],i=n[1],o=(0,hs.useRef)(),l=(0,hs.useRef)(!1),s=(0,hs.useRef)(null),c=(0,hs.useState)({})[1],u=e.children,d=e.disabled,p=void 0!==d&&d,h=e.noFocusGuards,m=void 0!==h&&h,g=e.persistentFocus,y=void 0!==g&&g,v=e.crossFrame,b=void 0===v||v,w=e.autoFocus,x=void 0===w||w,k=(e.allowTextSelection,e.group),_=e.className,S=e.whiteList,E=e.hasPositiveIndices,C=e.shards,$=void 0===C?Ls:C,A=e.as,T=void 0===A?"div":A,O=e.lockProps,z=void 0===O?{}:O,P=e.sideCar,F=e.returnFocus,N=void 0!==F&&F,R=e.focusOptions,I=e.onActivation,L=e.onDeactivation,M=(0,hs.useState)({})[0],D=(0,hs.useCallback)((function(e){var t=e.captureFocusRestore;if(!s.current){var r,n=null==(r=document)?void 0:r.activeElement;s.current=n,n!==document.body&&(s.current=t(n))}o.current&&I&&I(o.current),l.current=!0,c()}),[I]),H=(0,hs.useCallback)((function(){l.current=!1,L&&L(o.current),c()}),[L]),B=(0,hs.useCallback)((function(e){var t=s.current;if(t){var r=("function"==typeof t?t():t)||document.body,n="function"==typeof N?N(r):N;if(n){var a="object"==typeof n?n:void 0;s.current=null,e?Promise.resolve().then((function(){return r.focus(a)})):r.focus(a)}}}),[N]),j=(0,hs.useCallback)((function(e){l.current&&Ps.useMedium(e)}),[]),W=Fs.useMedium,V=(0,hs.useCallback)((function(e){o.current!==e&&(o.current=e,i(e))}),[]),U=f(((r={})[Os]=p&&"disabled",r[Ts]=k,r),z),q=!0!==m,G=q&&"tail"!==m,K=xs([t,V]),Y=(0,hs.useMemo)((function(){return{observed:o,shards:$,enabled:!p,active:l.current}}),[p,l.current,$,a]);return ms().createElement(hs.Fragment,null,q&&[ms().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:p?-1:0,style:zs}),E?ms().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:zs}):null],!p&&ms().createElement(P,{id:M,sideCar:Rs,observed:a,disabled:p,persistentFocus:y,crossFrame:b,autoFocus:x,whiteList:S,shards:$,onActivation:D,onDeactivation:H,returnFocus:B,focusOptions:R,noFocusGuards:m}),ms().createElement(T,f({ref:K},U,{className:_,onBlur:W,onFocus:j}),ms().createElement(Is.Provider,{value:Y},u)),G&&ms().createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:zs}))}));Ms.propTypes={};const Ds=Ms;var Hs=Es(),Bs="data-focus-on-hidden",js={preventScroll:!0},Ws=fs.forwardRef((function(e,t){var r=fs.useState(!1),n=r[0],a=r[1],i=e.children,o=e.autoFocus,l=e.shards,s=e.crossFrame,c=e.enabled,u=void 0===c||c,d=e.scrollLock,p=void 0===d||d,f=e.focusLock,h=void 0===f||f,m=e.returnFocus,g=void 0===m||m,y=e.inert,v=e.allowPinchZoom,b=e.sideCar,w=e.className,x=e.shouldIgnore,k=e.preventScrollOnFocus,_=e.style,S=e.as,E=e.gapMode,C=ps(e,["children","autoFocus","shards","crossFrame","enabled","scrollLock","focusLock","returnFocus","inert","allowPinchZoom","sideCar","className","shouldIgnore","preventScrollOnFocus","style","as","gapMode"]),$=b,A=n.onActivation,T=n.onDeactivation,O=ps(n,["onActivation","onDeactivation"]),z=ds(ds({},O),{as:S,style:_,sideCar:b,shards:l,allowPinchZoom:v,gapMode:E,inert:y,enabled:u&&p});return fs.createElement(fs.Fragment,null,fs.createElement(Ds,{ref:t,sideCar:b,disabled:!(n&&u&&h),returnFocus:g,autoFocus:o,shards:l,crossFrame:s,onActivation:A,onDeactivation:T,className:w,whiteList:x,lockProps:z,focusOptions:k?js:void 0,as:As},i),u&&fs.createElement($,ds({},C,{sideCar:Hs,setLockProps:a,shards:l})))})),Vs=function(e){var t=e.sideCar,r=ps(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return hs.createElement(n,ds({},r))};function Us(e,t){return e.useMedium(t),Vs}function qs(e,t){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qs(e,t)}Vs.isSideCarExport=!0;var Gs=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},Ks=function(e){return Array.isArray(e)?e:[e]},Ys=function(e){return Array.isArray(e)?e[0]:e},Xs=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Zs=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Qs=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!e||Zs(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(Xs(e))}(t,Qs.bind(void 0,e));return e.set(t,n),n},Js=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!(e&&!Zs(e))||!!nc(e)&&t(Xs(e))}(t,Js.bind(void 0,e));return e.set(t,n),n},ec=function(e){return e.dataset},tc=function(e){return"INPUT"===e.tagName},rc=function(e){return tc(e)&&"radio"===e.type},nc=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},ac=function(e){var t;return Boolean(e&&(null===(t=ec(e))||void 0===t?void 0:t.focusGuard))},ic=function(e){return!ac(e)},oc=function(e){return Boolean(e)},lc=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),a=r-n,i=e.index-t.index;if(a){if(!r)return 1;if(!n)return-1}return a||i},sc=function(e,t,r){return Gs(e).map((function(e,t){var n=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:r&&-1===n?(e.dataset||{}).focusGuard?0:-1:n}})).filter((function(e){return!t||e.tabIndex>=0})).sort(lc)},cc=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),uc="".concat(cc,", [data-focus-guard]"),dc=function(e,t){return Gs((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?uc:cc)?[r]:[],dc(r))}),[])},pc=function(e,t){return e.reduce((function(e,r){var n,a=dc(r,t),i=(n=[]).concat.apply(n,a.map((function(e){return function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?pc([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,r.parentNode?Gs(r.parentNode.querySelectorAll(cc)).filter((function(e){return e===r})):[])}),[])},fc=function(e,t){return Gs(e).filter((function(e){return Qs(t,e)})).filter((function(e){return function(e){return!((tc(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},hc=function(e,t){return void 0===t&&(t=new Map),Gs(e).filter((function(e){return Js(t,e)}))},mc=function(e,t,r){return sc(fc(pc(e,r),t),!0,r)},gc=function(e,t){return sc(fc(pc(e),t),!1)},yc=function(e,t){return e.shadowRoot?yc(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Gs(e.children).some((function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&yc(n,t)}return yc(e,t)}))},vc=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?vc(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?vc(t.contentWindow.document):t}},bc=function(e){return e.parentNode?bc(e.parentNode):e},wc=function(e){return Ks(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(Ts);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var a=n+1;a<r;a+=1){var i=e[n].compareDocumentPosition(e[a]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(a),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}(Gs(bc(t).querySelectorAll("[".concat(Ts,'="').concat(r,'"]:not([').concat(Os,'="disabled"])')))):[t]),e}),[])},xc=function(e,t){return void 0===t&&(t=vc(Ys(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&wc(e).some((function(e){return yc(e,t)||function(e,t){return Boolean(Gs(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},kc=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},_c=function(e,t){return rc(e)&&e.name?function(e,t){return t.filter(rc).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Sc=function(e){return e[0]&&e.length>1?_c(e[0],e):e[0]},Ec=function(e,t){return e.indexOf(_c(t,e))},Cc="NEW_FOCUS",$c=function(e,t,r){var n,a=e.map((function(e){return e.node})),i=hc(a.filter((n=r,function(e){var t,r=null===(t=ec(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return i&&i.length?Sc(i):Sc(hc(t))},Ac=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Ac(e.parentNode.host||e.parentNode,t),t},Tc=function(e,t){for(var r=Ac(e),n=Ac(t),a=0;a<r.length;a+=1){var i=r[a];if(n.indexOf(i)>=0)return i}return!1},Oc=function(e,t,r){var n=Ks(e),a=Ks(t),i=n[0],o=!1;return a.filter(Boolean).forEach((function(e){o=Tc(o||e,e)||o,r.filter(Boolean).forEach((function(e){var t=Tc(i,e);t&&(o=!o||yc(t,o)?t:Tc(t,o))}))})),o},zc=function(e,t){return e.reduce((function(e,r){return e.concat(function(e,t){return fc((r=e.querySelectorAll("[".concat("data-autofocus-inside","]")),Gs(r).map((function(e){return pc([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var r}(r,t))}),[])},Pc=function(e,t){var r=vc(Ks(e).length>0?document:Ys(e).ownerDocument),n=wc(e).filter(ic),a=Oc(r||e,e,n),i=new Map,o=gc(n,i),l=o.filter((function(e){var t=e.node;return ic(t)}));if(l[0]){var s,c,u,d=gc([a],i).map((function(e){return e.node})),p=(s=d,c=l,u=new Map,c.forEach((function(e){return u.set(e.node,e)})),s.map((function(e){return u.get(e)})).filter(oc)),f=p.map((function(e){return e.node})),h=p.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),m=function(e,t,r,n,a){var i=e.length,o=e[0],l=e[i-1],s=ac(n);if(!(n&&e.indexOf(n)>=0)){var c=void 0!==n?r.indexOf(n):-1,u=a?r.indexOf(a):c,d=a?e.indexOf(a):-1;if(-1===c)return-1!==d?d:Cc;if(-1===d)return Cc;var p,f,h=c-u,m=r.indexOf(o),g=r.indexOf(l),y=(p=r,f=new Set,p.forEach((function(e){return f.add(_c(e,p))})),p.filter((function(e){return f.has(e)}))),v=void 0!==n?y.indexOf(n):-1,b=a?y.indexOf(a):v,w=y.filter((function(e){return e.tabIndex>=0})),x=void 0!==n?w.indexOf(n):-1,k=a?w.indexOf(a):x,_=x>=0&&k>=0?k-x:b-v;if(!h&&d>=0)return d;if(0===t.length)return d;var S=Ec(e,t[0]),E=Ec(e,t[t.length-1]);return c<=m&&s&&Math.abs(h)>1?E:c>=g&&s&&Math.abs(h)>1?S:h&&Math.abs(_)>1?d:c<=m?E:c>g?S:h?Math.abs(h)>1?d:(i+d+h)%i:void 0}}(f,h,d,r,t);if(m===Cc){var g=$c(o,h,zc(n,i))||$c(o,f,zc(n,i));return g?{node:g}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:p[m]}},Fc=0,Nc=!1,Rc=function(e,t,r){void 0===r&&(r={});var n=Pc(e,t);if(!Nc&&n){if(Fc>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Nc=!0,void setTimeout((function(){Nc=!1}),1);Fc++,kc(n.node,r.focusOptions),Fc--}};function Ic(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var Lc=function(e){var t=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:Ic(r),parent:Ic(r.parentElement),left:Ic(r.previousElementSibling),right:Ic(r.nextElementSibling)}),r=r.parentElement;return{element:Ic(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,r,n,a,i;if(e)for(var o=e.stack,l=e.ownerDocument,s=new Map,c=0,u=o;c<u.length;c++){var d=u[c],p=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(p&&l.contains(p)){for(var f=null===(r=d.left)||void 0===r?void 0:r.call(d),h=d.current(),m=p.contains(h)?h:void 0,g=null===(n=d.right)||void 0===n?void 0:n.call(d),y=mc([p],s),v=null!==(i=null!==(a=null!=m?m:null==f?void 0:f.nextElementSibling)&&void 0!==a?a:g)&&void 0!==i?i:f;v;){for(var b=0,w=y;b<w.length;b++){var x=w[b];if(null==v?void 0:v.contains(x.node))return x.node}v=v.nextElementSibling}if(y.length)return y[0].node}}}(t)}},Mc=function(e,t,r){void 0===t&&(t={});var n=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),a=function(e,t,r){if(!e||!t)return console.error("no element or scope given"),{};var n=Ks(t);if(n.every((function(t){return!yc(t,e)})))return console.error("Active element is not contained in the scope"),{};var a=r?mc(n,new Map):gc(n,new Map),i=a.findIndex((function(t){return t.node===e}));return-1!==i?{prev:a[i-1],next:a[i+1],first:a[0],last:a[a.length-1]}:void 0}(e,n.scope,n.onlyTabbable);if(a){var i=r(a,n.cycle);i&&kc(i.node,n.focusOptions)}},Dc=function(e,t,r){var n,a,i,o,l=(a=e,i=null===(n=t.onlyTabbable)||void 0===n||n,{first:(o=i?mc(Ks(a),new Map):gc(Ks(a),new Map))[0],last:o[o.length-1]})[r];l&&kc(l.node,t.focusOptions)};function Hc(e){setTimeout(e,1)}var Bc=function(e){return e&&"current"in e?e.current:e},jc=function(){return document&&document.activeElement===document.body},Wc=null,Vc=null,Uc=function(){return null},qc=null,Gc=!1,Kc=!1,Yc=function(){return!0};function Xc(e,t,r,n){var a=null,i=e;do{var o=n[i];if(o.guard)o.node.dataset.focusAutoGuard&&(a=o);else{if(!o.lockItem)break;if(i!==e)return;a=null}}while((i+=r)!==t);a&&(a.node.tabIndex=0)}var Zc=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Qc=function(e){return gc(e,new Map)},Jc=function(){var e,t,r,n,a,i,o,l=!1;if(Wc){var s=Wc,c=s.observed,u=s.persistentFocus,d=s.autoFocus,p=s.shards,f=s.crossFrame,h=s.focusOptions,m=s.noFocusGuards,g=c||qc&&qc.portaledElement;if(jc()&&Vc&&Vc!==document.body&&(!document.body.contains(Vc)||!Qc([(o=Vc).parentNode]).some((function(e){return e.node===o})))){var y=Uc();y&&y.focus()}var v=document&&document.activeElement;if(g){var b=[g].concat(p.map(Bc).filter(Boolean));if(v&&!function(e){return(Wc.whiteList||Yc)(e)}(v)||(u||function(){if(!(f?Boolean(Gc):"meanwhile"===Gc)||!m||!Vc||Kc)return!1;var e=Qc(b),t=e.findIndex((function(e){return e.node===Vc}));return 0===t||t===e.length-1}()||!(jc()||function(e){void 0===e&&(e=document);var t=vc(e);return!!t&&Gs(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return yc(e,t)}))}())||!Vc&&d)&&(g&&!(xc(b)||v&&function(e,t){return t.some((function(t){return Zc(e,t,t)}))}(v,b)||(i=v,qc&&qc.portaledElement===i))&&(document&&!Vc&&v&&!d?(v.blur&&v.blur(),document.body.focus()):(l=Rc(b,Vc,{focusOptions:h}),qc={})),(Vc=document&&document.activeElement)!==document.body&&(Uc=Lc(Vc)),Gc=!1),document&&v!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var w=document&&document.activeElement,x=(t=wc(e=b).filter(ic),r=Oc(e,e,t),n=sc(pc([r],!0),!0,!0),a=pc(t,!1),n.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:ac(t)}}))),k=x.map((function(e){return e.node})).indexOf(w);k>-1&&(x.filter((function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Xc(k,x.length,1,x),Xc(k,-1,-1,x))}}}return l},eu=function(e){Jc()&&e&&(e.stopPropagation(),e.preventDefault())},tu=function(){return Hc(Jc)},ru=function(){Kc=!0},nu=function(){Kc=!1,Gc="just",Hc((function(){Gc="meanwhile"}))},au={moveFocusInside:Rc,focusInside:xc,focusNextElement:function(e,t){void 0===t&&(t={}),Mc(e,t,(function(e,t){var r=e.next,n=e.first;return r||t&&n}))},focusPrevElement:function(e,t){void 0===t&&(t={}),Mc(e,t,(function(e,t){var r=e.prev,n=e.last;return r||t&&n}))},focusFirstElement:function(e,t){void 0===t&&(t={}),Dc(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),Dc(e,t,"last")},captureFocusRestore:Lc};Ps.assignSyncMedium((function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(qc={observerNode:r,portaledElement:t})})),Fs.assignMedium(tu),Ns.assignMedium((function(e){return e(au)}));const iu=(ou=function(e){return e.filter((function(e){return!e.disabled}))},lu=function(e){var t=e.slice(-1)[0];t&&!Wc&&(document.addEventListener("focusin",eu),document.addEventListener("focusout",tu),window.addEventListener("focus",ru),window.addEventListener("blur",nu));var r=Wc,n=r&&t&&t.id===r.id;Wc=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(Vc=null,n&&r.observed===t.observed||t.onActivation(au),Jc(),Hc(Jc)):(document.removeEventListener("focusin",eu),document.removeEventListener("focusout",tu),window.removeEventListener("focus",ru),window.removeEventListener("blur",nu),Vc=null)},function(e){var t,r=[];function n(){t=ou(r.map((function(e){return e.props}))),lu(t)}var a=function(a){var i,o;function l(){return a.apply(this,arguments)||this}o=a,(i=l).prototype=Object.create(o.prototype),i.prototype.constructor=i,qs(i,o),l.peek=function(){return t};var s=l.prototype;return s.componentDidMount=function(){r.push(this),n()},s.componentDidUpdate=function(){n()},s.componentWillUnmount=function(){var e=r.indexOf(this);r.splice(e,1),n()},s.render=function(){return ms().createElement(e,this.props)},l}(hs.PureComponent);return I(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(e)+")"),a})((function(){return null}));var ou,lu;Us(Rs,iu);var su=r(118);var cu=function(){var e=0,t=null;return{add:function(n){0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r.nc;return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uu=function(){var e=function(){var e=cu();return function(t,r){hs.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},du={left:0,top:0,right:0,gap:0},pu=function(e){return parseInt(e||"",10)||0},fu=uu(),hu="data-scroll-locked",mu=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(hu,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(gs," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(ys," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(gs," .").concat(gs," {\n right: 0 ").concat(n,";\n }\n \n .").concat(ys," .").concat(ys," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(hu,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},gu=function(){var e=parseInt(document.body.getAttribute(hu)||"0",10);return isFinite(e)?e:0},yu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;su.useEffect((function(){return document.body.setAttribute(hu,(gu()+1).toString()),function(){var e=gu()-1;e<=0?document.body.removeAttribute(hu):document.body.setAttribute(hu,e.toString())}}),[]);var i=su.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return du;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[pu(r),pu(n),pu(a)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}}(a)}),[a]);return su.createElement(fu,{styles:mu(i,!t,a,r?"":"!important")})},vu=!1;if("undefined"!=typeof window)try{var bu=Object.defineProperty({},"passive",{get:function(){return vu=!0,!0}});window.addEventListener("test",bu,bu),window.removeEventListener("test",bu,bu)}catch(e){vu=!1}var wu=!!vu&&{passive:!1},xu=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},ku=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),_u(e,n)){var a=Su(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_u=function(e,t){return"v"===e?function(e){return xu(e,"overflowY")}(t):function(e){return xu(e,"overflowX")}(t)},Su=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Eu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cu=function(e){return[e.deltaX,e.deltaY]},$u=function(e){return e&&"current"in e?e.current:e},Au=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Tu=0,Ou=[];function zu(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}Us(Cs,(function(e){var t=hs.useRef([]),r=hs.useRef([0,0]),n=hs.useRef(),a=hs.useState(Tu++)[0],i=hs.useState(uu)[0],o=hs.useRef(e);hs.useEffect((function(){o.current=e}),[e]),hs.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,r){if(r||2===arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map($u),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=hs.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var a,i=Eu(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=ku(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=ku(d,u)),!p)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=a),!a)return!0;var f=n.current||a;return function(e,t,r,n){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*n,o=r.target,l=t.contains(o),s=!1,c=i>0,u=0,d=0;do{var p=Su(e,o),f=p[0],h=p[1]-p[2]-a*f;(f||h)&&_u(e,o)&&(u+=h,d+=f),o=o instanceof ShadowRoot?o.host:o.parentNode}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&(Math.abs(u)<1||!1)||!c&&(Math.abs(d)<1||!1))&&(s=!0),s}(f,t,e,"h"===f?s:c)}),[]),s=hs.useCallback((function(e){var r=e;if(Ou.length&&Ou[Ou.length-1]===i){var n="deltaY"in r?Cu(r):Eu(r),a=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,a=n,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)r.cancelable&&r.preventDefault();else if(!a){var s=(o.current.shards||[]).map($u).filter(Boolean).filter((function(e){return e.contains(r.target)}));(s.length>0?l(r,s[0]):!o.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),c=hs.useCallback((function(e,r,n,a){var i={name:e,delta:r,target:n,should:a,shadowParent:zu(n)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=hs.useCallback((function(e){r.current=Eu(e),n.current=void 0}),[]),d=hs.useCallback((function(t){c(t.type,Cu(t),t.target,l(t,e.lockRef.current))}),[]),p=hs.useCallback((function(t){c(t.type,Eu(t),t.target,l(t,e.lockRef.current))}),[]);hs.useEffect((function(){return Ou.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,wu),document.addEventListener("touchmove",s,wu),document.addEventListener("touchstart",u,wu),function(){Ou=Ou.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,wu),document.removeEventListener("touchmove",s,wu),document.removeEventListener("touchstart",u,wu)}}),[]);var f=e.removeScrollBar,h=e.inert;return hs.createElement(hs.Fragment,null,h?hs.createElement(i,{styles:Au(a)}):null,f?hs.createElement(yu,{gapMode:e.gapMode}):null)}));var Pu=new WeakMap,Fu=new WeakMap,Nu={},Ru=0,Iu=function(e){return e&&(e.host||Iu(e.parentNode))},Lu=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),function(e,t,r,n){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=Iu(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Nu[r]||(Nu[r]=new WeakMap);var i=Nu[r],o=[],l=new Set,s=new Set(a),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(Pu.get(e)||0)+1,c=(i.get(e)||0)+1;Pu.set(e,s),i.set(e,c),o.push(e),1===s&&a&&Fu.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),l.clear(),Ru++,function(){o.forEach((function(e){var t=Pu.get(e)-1,a=i.get(e)-1;Pu.set(e,t),i.set(e,a),t||(Fu.has(e)||e.removeAttribute(n),Fu.delete(e)),a||e.removeAttribute(r)})),--Ru||(Pu=new WeakMap,Pu=new WeakMap,Fu=new WeakMap,Nu={})}}(n,a,r,"aria-hidden")):function(){return null}},Mu=uu(),Du="\n ["+Bs+"] {\n pointer-events: none !important;\n }\n",Hu=function(){return fs.createElement(Mu,{styles:Du})},Bu=function(e){return"current"in e?e.current:e};const ju=Us(Hs,(function(e){var t=e.setLockProps,r=e.onEscapeKey,n=e.onClickOutside,a=e.shards,i=e.onActivation,o=e.onDeactivation,l=e.noIsolation,s=(0,fs.useState)(void 0),c=s[0],u=s[1],d=(0,fs.useRef)(null),p=(0,fs.useRef)(0);return fs.useEffect((function(){var e=function(e){e.defaultPrevented||"Escape"!==e.code&&"Escape"!==e.key&&27!==e.keyCode||!r||r(e)},t=function(e){e.defaultPrevented||e.target===d.current||e instanceof MouseEvent&&0!==e.button||a&&a.map(Bu).some((function(t){return t&&t.contains(e.target)||t===e.target}))||n&&n(e)},i=function(e){t(e),p.current=e.touches.length},o=function(e){p.current=e.touches.length};if(c)return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.addEventListener("touchstart",i),document.addEventListener("touchend",o),function(){document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)}}),[c,n,r]),(0,fs.useEffect)((function(){if(c)return i&&i(c),function(){o&&o()}}),[!!c]),(0,fs.useEffect)((function(){var e=function(){return null},r=!1;return t({onMouseDown:function(e){d.current=e.target},onTouchStart:function(e){d.current=e.target},onActivation:function(t){l||(e=Lu(function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,a++)n[a]=i[o];return n}([t],(a||[]).map(Bu)),document.body,Bs)),u((function(){return t}))},onDeactivation:function(){e(),r||u(null)}}),function(){r=!0,t(!1)}}),[]),fs.createElement(Hu,null)}));var Wu=function(e){return fs.createElement(ju,ds({},e))},Vu=fs.forwardRef((function(e,t){return fs.createElement(Ws,ds({},e,{ref:t,sideCar:Wu}))}));y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-icon-button");const{YQ:Uu}=a,qu=`calc(${b.space[100]} - 0.0625rem)`,Gu=`calc(${b.size.icon.sm} + 2 * ${b.space[150]})`,Ku=e=>({cursor:e}),Yu=(0,v.style)({...Ve,color:(0,v.fallbackVar)(F.main,b.color.background.highContrast)},"icon-button_font"),Xu={WebkitTextStrokeWidth:"0.0421875rem",color:(0,v.fallbackVar)(F.main,b.color.background.highContrast)},Zu=(0,v.style)([Yu,{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",padding:`${b.space[150]} 0`,width:"6rem",wordWrap:"break-word",border:"none",backgroundColor:"transparent",":focus":{...Ku("pointer"),outline:"none"},":hover":{...Ku("pointer")}}],"icon-button_container");(0,v.globalStyle)(`${Zu}:focus > div:first-of-type`,Uu),(0,v.globalStyle)(`${Zu}:focus > span:last-of-type`,Xu),(0,v.globalStyle)(`${Zu}:hover > span:last-of-type`,Xu),(0,v.globalStyle)(`${Zu}:active > span:last-of-type`,Xu),(0,v.globalStyle)(`${Zu}:hover > div:first-of-type`,{background:(0,v.fallbackVar)(F.hoverBack,b.color.tertiary.contrastHover)}),(0,v.globalStyle)(`${Zu}:active > div:first-of-type`,{background:(0,v.fallbackVar)(F.activeBack,b.color.tertiary.contrastActive)});const Qu=(0,v.style)({":hover":{...Ku("default")}},"icon-button_processing_container"),Ju=(0,v.style)({":hover":{...Ku("default")}},"icon-button_success_container");(0,v.globalStyle)(`${Ju}:hover > div:first-of-type`,{backgroundColor:(0,v.fallbackVar)(b.color.success.main)});const ed=(0,v.style)({display:"flex",justifyContent:"center",alignItems:"center"},"icon-button_size"),td=(0,v.style)([ed,{padding:qu,width:b.size.circle.sm,height:b.size.circle.sm}],"icon-button_size_sm"),rd=(0,v.style)([ed,{padding:b.space[200],width:b.size.tapTarget.lg,height:b.size.tapTarget.lg}],"icon-button_size_xl"),nd=(0,v.style)([ed,{padding:b.space[150],width:b.size.tapTarget.default,height:b.size.tapTarget.default}],"icon-button_size_lg"),ad=(0,v.style)({position:"relative",...Ku("pointer"),borderRadius:b.border.radius.interactive,border:"none",backgroundColor:"transparent",display:"inline-flex",":focus":Uu},"icon-button_base"),id=(0,v.style)({color:(0,v.fallbackVar)(F.main,b.color.primary.contrast),background:(0,v.fallbackVar)(F.background,b.color.primary.main),":hover":{background:(0,v.fallbackVar)(F.hoverBack,b.color.primary.mainHover)},":active":{background:(0,v.fallbackVar)(F.activeBack,b.color.primary.mainActive)}},"icon-button_primary"),od=(0,v.style)({color:(0,v.fallbackVar)(F.main,b.color.primary.contrast)},"icon-button_inverse"),ld=(0,v.style)({color:(0,v.fallbackVar)(F.main,b.color.tertiary.main),background:(0,v.fallbackVar)(F.background,b.color.tertiary.contrast),":hover":{background:(0,v.fallbackVar)(F.hoverBack,b.color.tertiary.contrastHover)},":active":{background:(0,v.fallbackVar)(F.activeBack,b.color.tertiary.contrastActive)}},"icon-button_secondary"),sd=(0,v.style)({background:(0,v.fallbackVar)(F.background,b.color.primary.contrast),color:(0,v.fallbackVar)(F.main,b.color.primary.main),":hover":{background:(0,v.fallbackVar)(F.hoverBack,b.color.primary.contrastHover)},":active":{background:(0,v.fallbackVar)(F.activeBack,b.color.primary.contrastActive)}},"icon-button_secondary_inverse"),cd=(0,v.style)({color:(0,v.fallbackVar)(F.main,b.color.background.mediumContrast),background:(0,v.fallbackVar)(F.background),":hover":{background:(0,v.fallbackVar)(F.hoverBack,b.color.background.surfaceHover)},":active":{background:(0,v.fallbackVar)(F.activeBack,b.color.background.surfaceActive)}},"icon-button_tertiary"),ud=(0,v.style)({color:(0,v.fallbackVar)(F.main,b.color.overlay.contrast),background:(0,v.fallbackVar)(F.background,b.color.overlay.main),":hover":{background:(0,v.fallbackVar)(F.hoverBack,b.color.overlay.mainHover)},":active":{background:(0,v.fallbackVar)(F.activeBack,b.color.overlay.mainActive)}},"icon-button_tertiary_inverse"),dd=(0,v.style)({pointerEvents:"none"},"icon-button_icon");(0,v.globalStyle)(`${ad}:hover > ${dd}`,{color:(0,v.fallbackVar)(F.hoverMain)}),(0,v.globalStyle)(`${ad}:active > ${dd}`,{color:(0,v.fallbackVar)(F.activeMain)});const pd=(0,v.style)({...xe,borderRadius:b.border.radius.interactive,width:Gu,height:Gu},"icon-button_shimmer"),fd=(0,v.style)({width:b.size.circle.sm,height:b.size.circle.sm},"icon-button_shimmer_size_sm"),hd=(0,v.style)({width:b.size.circle.lg,height:b.size.circle.lg},"icon-button_shimmer_size_xl"),md=(0,v.style)({width:b.size.circle.md,height:b.size.circle.md},"icon-button_shimmer_size_lg"),gd=(0,v.style)({margin:0},"icon-button_loading_spinner"),yd=(0,v.style)({pointerEvents:"none"},"icon-button_processing_state"),vd=(0,v.style)({pointerEvents:"none",backgroundColor:(0,v.fallbackVar)(F.background,b.color.success.main),color:(0,v.fallbackVar)(F.main,b.color.success.contrast),":hover":{background:(0,v.fallbackVar)(F.hoverBack,b.color.success.main),...Ku("default")},":active":{background:(0,v.fallbackVar)(F.activeBack,b.color.success.main)}},"icon-button_success_state"),bd=(0,v.style)({display:"-webkit-box",textAlign:"center",padding:`${b.space[100]} ${b.space[100]} 0 ${b.space[100]}`,width:"inherit",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},"icon-button_label"),wd=(0,v.style)({width:b.size.tapTarget.default,height:b.size.tapTarget.default,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",...Ku("pointer"),":focus":{outline:"none"}},"icon-button_small_tap_container");(0,v.globalStyle)(`${wd}:focus > div:first-of-type:not(${vd}):not(${yd})`,Uu),(0,v.globalStyle)(`${wd}:hover > ${id}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.hoverBack,b.color.primary.mainHover)}),(0,v.globalStyle)(`${wd}:active > ${id}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.activeBack,b.color.primary.mainActive)}),(0,v.globalStyle)(`${wd}:hover > ${ld}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.hoverBack,b.color.tertiary.contrastHover)}),(0,v.globalStyle)(`${wd}:active > ${ld}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.activeBack,b.color.tertiary.contrastActive)}),(0,v.globalStyle)(`${wd}:hover > ${cd}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.hoverBack,b.color.background.surfaceHover)}),(0,v.globalStyle)(`${wd}:active > ${cd}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.activeBack,b.color.background.surfaceActive)}),(0,v.globalStyle)(`${wd}:hover > ${sd}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.hoverBack,b.color.primary.contrastHover)}),(0,v.globalStyle)(`${wd}:active > ${sd}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.activeBack,b.color.primary.contrastActive)}),(0,v.globalStyle)(`${wd}:hover > ${ud}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.hoverBack,b.color.overlay.mainHover)}),(0,v.globalStyle)(`${wd}:active > ${ud}:not(${vd}):not(${yd})`,{background:(0,v.fallbackVar)(F.activeBack,b.color.overlay.mainActive)}),y.endFileScope();var xd=["as","iconName","svgIconComponent","className","label","iconClassName","children","buttonType","btnState","screenReaderText","inverse","size","isLoading"];function kd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Sd=(0,m.forwardRef)((function(e,t){var r=e.as,n=e.iconName,a=e.svgIconComponent,i=e.className,o=e.label,l=e.iconClassName,s=e.children,c=e.buttonType,u=void 0===c?"primary":c,d=e.btnState,p=void 0===d?"initial":d,m=e.screenReaderText,y=e.inverse,v=e.size,b=void 0===v?"lg":v,w=e.isLoading,x=h(e,xd),k="sm"!==b&&i;if(w){var _=Z(pd,{sm:fd,xl:hd,lg:md}[b],k),S="sm"!==b?_d({},x):{},E=g().createElement(_e,f({className:_,isInverse:y,hasStyleDefaults:!1},S,{"data-ppui":"true"}),s);return"sm"===b?g().createElement(r||"button",f({className:Z(wd,i)},x,{"data-ppui":"true"}),E):E}var C={sm:"xs",xl:"md",lg:"sm"}[b],$={sm:td,xl:rd,lg:nd},A=o||"sm"===b,T=Z(ad,$[b],"primary"===u&&id,"secondary"===u&&ld,"tertiary"===u&&cd,y&&od,"secondary"===u&&y&&sd,"tertiary"===u&&y&&ud,"success"===p&&vd,"processing"===p&&yd,!A&&k),O=Z(ad,"sm"===b?"":$[b],ld,"success"===p&&vd,"processing"===p&&yd),z=r||"button";(o||"sm"===b)&&(z="div");var P,F,N="button"===z?"button":null,R=a?g().createElement(a,{className:Z(dd,l),name:n,size:C,"aria-hidden":"true","data-ppui":"true"}):null,I=A?{}:_d({},x),L=_d({className:o?O:T,ref:t,type:N,disabled:p&&"initial"!==p},I),M=g().createElement(z,f({"data-ppui-info":"icon-button_4.2.2__8.12.0"},L),"initial"!==p?function(){var e=g().createElement(Ta,{size:C,className:dd,"data-ppui":"true"});if("processing"===p){var t={className:Z(dd,gd),inverse:!o&&("primary"===u||"tertiary"===u&&y),size:C};e=g().createElement(vl,f({},t,{"data-ppui":"true"}))}return g().createElement(g().Fragment,null,e,g().createElement("span",{className:se,role:"status","data-ppui":"true"},m||p))}():g().createElement(g().Fragment,null,R,!o&&g().createElement("span",{className:se,"data-ppui":"true"},s)));return o?g().createElement(g().Fragment,null,(P=null!=r?r:"button",F=Z(Zu,"success"===p&&Ju,"processing"===p&&Qu,i),g().createElement(P,f({className:F,tabIndex:0},x,{"data-ppui":"true"}),M,g().createElement("span",{className:bd,"data-ppui":"true"},o)))):"sm"===b?g().createElement(r||"button",f({className:Z(wd,i)},x,{"data-ppui":"true"}),M):g().createElement(g().Fragment,null,M)}));y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-modal");const Ed=b.space[800],Cd=b.size.icon.lg,$d=`calc(${b.size.icon.sm} + ${b.space[300]})`,Ad=`screen and (max-width: ${C})`,Td=`screen and (max-width: ${E})`,Od=`screen and (min-width: ${E})`,zd={textAlign:"center"},Pd={borderTopLeftRadius:b.border.radius.jumbo,borderTopRightRadius:b.border.radius.jumbo},Fd=(0,v.style)([go,{backgroundColor:b.color.background.surface,display:"grid",gridTemplateRows:"auto 1fr auto",position:"relative",flexBasis:"100%"}],"modal-base"),Nd=(0,v.style)([((e="center")=>(0,v.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`modal-container_center_${e}`))("center"),{position:"fixed",inset:0,zIndex:G,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${b.motion.duration.depart} ease-in-out,\n visibility ${b.motion.duration.depart} ${b.motion.duration.depart}`,backgroundColor:b.color.overlay.mainHover,boxShadow:"none"}],"modal_backdrop");(0,v.globalStyle)(`${Nd} [aria-hidden="false"], ${Nd} [aria-hidden="true"]`,{transitionDuration:b.motion.duration.arrive});const Rd=(0,v.style)([Ae,{flex:"1 1 auto",overflow:"auto",position:"relative",borderRadius:"inherit","@media":{[Td]:{padding:`0 ${b.space[300]} ${b.space[300]}`}}}],"modal-contents"),Id=(0,v.style)({selectors:{[`${Rd}&`]:{padding:0,"@media":{[Ad]:{padding:"0"},[Td]:{padding:0}}}}},"modal-content_no_padding"),Ld=(0,v.style)(zd,"modal-content_center"),Md=(0,v.style)({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",position:"relative",flex:"0 0 auto",zIndex:1,minHeight:Ed,padding:b.space[150],"@media":{[Td]:Pd}},"modal-header"),Dd=(0,v.style)([go,{"@media":{[Td]:Pd}}],"modal-header_scrolled"),Hd=(0,v.style)({flex:`0 0 ${Cd}`,flexBasis:$d},"modal-header_action"),Bd=(0,v.style)([$e,{flex:"1 1 3rem",margin:b.space[100],...zd}],"modal-header_title"),jd=(0,v.style)({flex:`0 0 ${Cd}`,flexBasis:$d,textAlign:"right"},"modal-header_close"),Wd=(0,v.style)({display:"flex",flex:"1 1 3rem",justifyContent:"center",marginTop:b.space[100]},"modal-header_logo"),Vd=(0,v.style)({width:b.size.icon.md,height:b.size.icon.md},"modal-header_logo_image"),Ud=(0,v.style)({position:"absolute",right:b.space[50],top:b.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:b.space[50],right:"auto","@media":{[Od]:{left:b.size.indicator.md}}}}},"modal-content_close");(0,v.globalStyle)(`${Ud}`,{"@media":{[Od]:{right:b.size.indicator.md,top:b.space[150]}}});const qd=(0,v.style)({minHeight:Ed,padding:b.space[200],position:"relative",flex:"1 0 auto"},"modal-footer"),Gd=(0,v.style)([go,{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}],"modal-footer_scrolled"),Kd=(0,v.style)({display:"flex",justifyContent:"center"},"modal-footer_align_center"),Yd=(0,v.style)({display:"flex",justifyContent:"end"},"modal-footer_align_right");y.endFileScope();var Xd=["requestClose","onBeforeClose","className","isHidden","center","noPadding","closeButtonLabel","noCloseButton","closeButtonProps","hideTitle","showLogo","mobileFixedHeight","showGripper","title","id","action","headerContents","footerContents","footerAlign","children","returnFocusToTrigger","headerClassName","containerClassName","contentContainerRef","wrapperClassName","footerClassName","skipFormFocus","contentScrollTop","onContentScroll","showDrawer"],Zd=function(){return!0},Qd=function(e){var t,r,n,a,i=e.requestClose,o=e.onBeforeClose,l=void 0===o?Zd:o,s=e.className,c=e.isHidden,u=e.center,d=e.noPadding,p=e.closeButtonLabel,y=void 0===p?"close sheet":p,v=e.noCloseButton,b=e.closeButtonProps,w=void 0===b?{}:b,x=e.hideTitle,k=e.showLogo,_=e.mobileFixedHeight,S=e.showGripper,C=void 0!==S&&S,$=e.title,A=e.id,T=e.action,O=e.headerContents,z=e.footerContents,P=e.footerAlign,F=e.children,N=e.returnFocusToTrigger,R=void 0===N||N,I=e.headerClassName,L=e.containerClassName,M=e.contentContainerRef,D=e.wrapperClassName,B=e.footerClassName,j=e.skipFormFocus,W=e.contentScrollTop,V=void 0===W?0:W,U=e.onContentScroll,q=e.showDrawer,G=void 0!==q&&q,K=h(e,Xd),Y=ro((0,m.useState)(!1),2),X=Y[0],Q=Y[1],J=ro((0,m.useState)(!1),2),ee=J[0],re=J[1],ne=ro((0,m.useState)(.5),2),ae=ne[0],ie=ne[1],oe=(0,m.useRef)(),le=(0,m.useRef)(),se=(0,m.useRef)(),ce=(0,m.useRef)(),ue=M||ce,de=(0,m.useRef)(),pe=!!H()&&"rtl"===getComputedStyle(document.body).direction,fe="dynamic"===_||C,he=parseInt(E,10),me=!!H()&&(null===(t=window)||void 0===t?void 0:t.innerWidth)<he,ge=k&&!me,ye=null!=A?A:te(),ve=!!T||!v||!x||!!O||ge,be=function(){if(ue&&ue.current){var e=ue.current,t=0!==e.scrollTop;if(t!==X&&Q(t),z){var r=e.scrollTop+e.offsetHeight!==e.scrollHeight;r!==ee&&re(r)}}},we=function(){var e=oe.current;if(e){var t=.9*window.innerHeight;"100"===_?e.style.height="".concat(window.innerHeight):"90"===_?e.style.height="".concat(t,"px"):"50"===_?e.style.height="".concat(.5*window.innerHeight,"px"):e.style.maxHeight="".concat(t,"px")}};(0,m.useEffect)((function(){var e,t,r;return c||(be(),null===(e=window)||void 0===e||e.setTimeout((function(){var e=!1;if(de&&de.current){var t=de.current.querySelector("input");t&&(t.focus(),e=!0)}if(!e&&!j&&ue&&ue.current){var r=ue.current.querySelectorAll("a, button, textarea, input, select");r.length&&(r[0].focus(),e=!0)}if(!e&&ve)if(T&&se&&se.current){var n=se.current.querySelectorAll("a, button, select");n.length&&n[0].focus()}else{var a=le.current;a&&a.focus()}}),500),(H()&&"ontouchstart"in window||"undefined"!=typeof navigator&&(null!==(r=navigator.maxTouchPoints)&&void 0!==r?r:navigator.msMaxTouchPoints))&&window.innerHeight&&(window.addEventListener("resize",we,!1),fe?((t=oe.current)&&(t.style.height="".concat(window.innerHeight*ae,"px"),t.style.maxHeight="fit-content"),function(){var e=ue&&ue.current;.5===ae&&(e.style.overflow="hidden"),.9===ae&&(e.style.overflow="scroll")}()):we())),function(){window.removeEventListener("resize",we,!1)}}),[c,ae]),(0,m.useEffect)((function(){!c&&ue.current&&(ue.current.scrollTop=V)}),[V,c]);var xe=Z(Bl,!c&&jl,G&&ts),ke=Z(Fd,Ll,Ml,"100"===_&&Ql,"90"===_&&Jl,"50"===_&&es,fe&&es,!c&&Dl,G&&!pe&&as,G&&pe&&is),_e=Z(Rd,Ul,u&&Ld,ve&&Vl,d&&Id,G&&os),Se=c?"true":"false",Ee=function(e,t){l(t)&&(i(e,t),n=null,a=null)},Ce=v?null:g().createElement(Sd,f({svgIconComponent:Fa,onClick:function(e){Ee(e,"closeButton")},ref:le,buttonType:"tertiary"},w,{"data-ppui":"true"}),y),$e=function(e,t){var r=e.changedTouches[0],i=r.pageX,o=r.pageY,l=n-i,s=a-o;Math.abs(s)>Math.abs(l)&&(s<0&&(!t||0===t.scrollTop)&&(fe?(ie(.5),(s<-150||.5===ae)&&Ee(e,"swipeDown")):Ee(e,"swipeDown")),s>0&&fe&&ie(.9)),n=null,a=null},Ae=function(e){e.preventDefault()},Te=function(e){if(!a&&!n){var t=e.changedTouches[0];a=t.pageY,n=t.pageX}},Oe="header_".concat(ye),ze={role:"dialog",className:D,"aria-modal":"true","aria-hidden":Se};ge||x?ze["aria-label"]=$:ze["aria-labelledby"]=Oe;var Pe=T?g().createElement("div",{className:jd,"data-ppui":"true"}):null,Fe=Ce?g().createElement("div",{className:Hd,"data-ppui":"true"}):null,Ne=Ce?g().createElement("div",{className:jd,"data-ppui":"true"},Ce):Pe,Re=T?g().createElement("div",{className:Hd,ref:se,"data-ppui":"true"},T):Fe,Ie=ge?Wd:Bd,Le=g().createElement("div",{className:Ie,id:Oe,"aria-live":"assertive","data-ppui":"true"},ge?g().createElement("img",{src:"https://www.paypalobjects.com/paypal-ui/logos/svg/paypal-mark-color.svg",alt:"paypal-logo",className:Vd,"data-ppui":"true"}):x?null:$),Me=O?g().createElement("div",{className:Xl,ref:de,"data-ppui":"true"},O):null,De=ve?g().createElement("header",{className:Z(Md,ql,Re&&Gl,C&&Wl,C?Yl:Kl,X&&Dd,I),onTouchStart:Te,onTouchMove:Ae,onTouchEnd:function(e){$e(e,null)},"data-ppui":"true"},Re,Le,Ne,Me):null,He=z?g().createElement("footer",{className:Z(qd,ee&&Gd,"center"===P&&Kd,"right"===P&&Yd,B),"data-ppui":"true"},z):null,Be=null===(r=document.getElementsByClassName("ppui-theme")[0])||void 0===r?void 0:r.classList[1];return g().createElement("div",f({},ze,{className:Z(Be,xe),"data-ppui-info":"sheet_2.2.4__8.12.0"}),g().createElement(Vu,{enabled:!c,onEscapeKey:function(e){e.preventDefault(),Ee(e,"ESC")},onClickOutside:function(e){Ee(e,"backdropClick")},returnFocus:R,className:Z(Il,G&&rs),"data-ppui":"true"},g().createElement("article",f({className:Z(ke,L)},K,{ref:oe,"aria-hidden":Se,"data-ppui":"true"}),De,g().createElement("section",{className:Z(_e,s),onScroll:function(){if(ue&&ue.current){var e=ue.current;U&&U(e.scrollTop)}be()},ref:ue,onTouchStart:Te,onTouchMove:Ae,onTouchEnd:function(e){var t=ue&&ue.current;fe&&$e(e,t)},"data-ppui":"true"},F),He)))},Jd=["isOpen","onOpen","onCloseComplete","containerRef"],ep=function(e){var t=e.isOpen,r=e.onOpen,n=e.onCloseComplete,a=e.containerRef,i=h(e,Jd),o=ro((0,m.useState)(!1),2),l=o[0],s=o[1];(0,m.useEffect)((function(){s(!0)}),[]);var c=g().createElement(us,{shouldHide:!t,onOpen:r,onCloseComplete:n,"data-ppui":"true"},(function(e){return g().createElement(Qd,f({},e,i,{"data-ppui":"true"}))})),u=a&&a.current;return l&&(u?ss().createPortal(c,u):c)},tp=["name","value","className","containerClassName","itemClassName","mobileHeaderClassName","sheetClassName","sheetWrapperClassName","id","initialItemFocus","isOpen","ignoreKeyboard","mobileTitle","mobileHeaderContents","outsideClickCheck","onOpen","onClose","onSelection","options","returnFocusToTrigger","selectedIndex","activeItem","triggerElementId","triggerElementRef","rtl","isLoadingOptions","searchEnabled","mobileFixedHeight","hasSections","highlightText","isTextHighlighted"];function rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function np(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ap=function(e){e.name;var t,r=e.value,n=e.className,a=e.containerClassName,i=e.itemClassName,o=e.mobileHeaderClassName,l=e.sheetClassName,s=e.sheetWrapperClassName,c=e.id,u=void 0===c?te("selectionMenu_"):c,d=e.initialItemFocus,p=void 0===d||d,y=e.isOpen,v=e.ignoreKeyboard,b=e.mobileTitle,w=e.mobileHeaderContents,x=e.outsideClickCheck,k=e.onOpen,_=e.onClose,S=e.onSelection,C=e.options,$=e.returnFocusToTrigger,A=void 0===$||$,T=e.selectedIndex,O=void 0===T?0:T,z=e.activeItem,P=void 0===z?-1:z,F=e.triggerElementId,N=e.triggerElementRef,R=e.rtl,L=void 0!==R&&R,M=e.isLoadingOptions,D=void 0!==M&&M,j=e.searchEnabled,W=void 0!==j&&j,V=e.mobileFixedHeight,U=e.hasSections,q=void 0!==U&&U,G=e.highlightText,K=void 0===G?null:G,Y=e.isTextHighlighted,Q=void 0!==Y&&Y,J=h(e,tp),ee=(0,m.useRef)(),ne=(0,m.useRef)(),ae=(0,m.useRef)(),ie=(0,m.useRef)(""),oe=C&&C.length>0,le=function(e){var t=ro(g().useState(e),2),r=t[0],n=t[1],a=g().useRef(r);return[a,function(e){a.current=e,n(e)}]}(p?O:-1),se=ro(le,2),ce=se[0],ue=se[1],de=ro((0,m.useState)(!0),2),pe=de[0],fe=de[1],he=X(nl),me=X("67.5rem"),ge=X(E),ye=!!H()&&window.innerWidth<ge,ve=function(e){return e&&e.current?e.current:null},be=ve(N)||(F&&B()?document.getElementById(F):null),we=function(e){return e.reduce((function(e,t){return(null==t?void 0:t.suggestions)&&e.push.apply(e,to(t.suggestions)),e}),[])},xe=function(e){var t=ve(ee),r=null==be?void 0:be.contains(e.target);x&&!x(e)||r||t&&!t.contains(e.target)&&_(e,"backdropClick")},ke=function(e){var t,r=null===(t=e.target)||void 0===t?void 0:t.parentElement,n=function(e,t){return e.findIndex((function(e){return t===e.value||t===e.label}))}(q?we(C):C,r.dataset.value);ue(n),S(n,e)},_e=function(e){!function(e){e.preventDefault();var r=ce.current,n=new re(e.key||e.keyCode),a=q?we(C):C;if(n.IS_ARROW_UP)fe(!0),r>0&&ue(Jo(a,r,"previous"));else if(n.IS_ARROW_DOWN)fe(!0),r<a.length-1&&ue(Jo(a,r,"next"));else if(n.IS_ENTER)S(r,e);else if(n.IS_TAB||n.IS_ESC){var i=n.IS_TAB?re.NAME_TAB:re.NAME_ESC;"function"!=typeof _||ye||_(e,i),null==be||be.focus()}else if(W&&1===e.key.length){clearTimeout(t),ie.current=ie.current+e.key,t=setTimeout((function(){ie.current=""}),700);var o=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).findIndex((function(t){return t.label.toLowerCase().startsWith(e.toLowerCase())}))}(C,ie.current);o>=0&&(fe(!0),ue(o))}}(e)},Se=function(e){if(void 0!==e)return e;if(void 0!==O&&O>=0)if(q){var t=we(C);if(t&&t[O]&&void 0!==t[O].value)return t[O].value}else if(C&&C[O]&&void 0!==C[O].value)return C[O].value}(r),Ee=v?-1:ce.current,Ce=function(){return y&&oe?(arguments.length>0&&void 0!==arguments[0]?arguments[0]:C).map((function(e,t){var r=e.hasOwnProperty("value")?e.value:e.label,n=!e.unselectable&&(void 0===Se?O===t:r===Se);return np(np({},e),{},I(I({decoration:e.decoration?{thumbnail:e.decoration,align:"center"}:null,trailingContent:{align:"center"},className:i,onClick:ke,role:"option",isSelected:n},"data-value",r),"value",r))})):[]},$e=y&&oe?C.map((function(e){return{title:e.title,id:e.id,sectionItems:Ce(e.suggestions)}})):[];(0,m.useLayoutEffect)((function(){return y&&!ye&&function(){var e=null==be?void 0:be.getBoundingClientRect().width;if(D)ve(ae).style.width="".concat(e||me,"px");else{var t=ve(ne);if(!t)return;var r=t.getBoundingClientRect().width;e>he&&e>r&&(t.style.width="".concat(e,"px"))}}(),y&&oe&&(document.addEventListener("click",xe),v||document.body.addEventListener("keydown",_e),ye?fe(!1):(fe(p),Ee<0&&ue(0)),"function"==typeof k&&k(ye)),function(){document.removeEventListener("click",xe),v||document.body.removeEventListener("keydown",_e),fe(!1)}}),[y,D]);var Ae=L?"rtl":null,Te=q?$e:Ce(C),Oe=Te&&g().createElement(rl,f({className:Z(il,n),id:u,tabIndex:0,"aria-hidden":!y,hasSections:!!q,ref:ne,dir:Ae,options:Te,activeIndex:P,focusedIndex:Ee,focusActive:!ye&&pe,highlightText:K,isTextHighlighted:Q},J,{"data-ppui":"true"})),ze=D?g().createElement("div",{ref:ae,className:ol,"data-ppui":"true"},g().createElement(vl,{screenReaderText:"loading",size:"md","data-ppui":"true"})):Oe;return function(){if(ye){var e=w?"90":void 0;return g().createElement(ep,{isOpen:y,onCloseComplete:_,title:b,headerClassName:o,headerContents:w,noPadding:!0,noCloseButton:!1,mobileFixedHeight:V||e,className:l,wrapperClassName:s,returnFocusToTrigger:A,"data-ppui":"true"},ze)}return y&&g().createElement("div",{ref:ee,className:Z(al,a),"data-ppui-info":"selection-menu_4.1.4__8.12.0"},ze)}()};y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-combobox");const ip=(0,v.style)({position:"relative"},"combobox_base"),op=(0,v.style)({top:b.size.field.lg},"combobox_menu"),lp=(0,v.style)({cursor:"pointer"},"combobox_affordance_trigger"),sp=(0,v.style)({opacity:0,position:"absolute",pointerEvents:"none",width:0,height:0},"combobox_hidden_select");y.endFileScope();var cp=["name","options","value","text","id","dir","label","onOpen","onChange","onBlur","onTextChange","onFocus","getMenuOptions","placeholder","isLoadingOptions","emptyMessage","mobileTitle","sheetWrapperClassName","autoComplete","hasSections","isTextHightlighted","isTextHighlighted","sheetInputRef"];function up(){up=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),l=new T(n||[]);return a(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="executing",h="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==r&&n.call(x,o)&&(b=x);var k=v.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(a,i,o,l){var s=d(e[a],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==N(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function E(t,r,n){var a=p;return function(i,o){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===i)throw o;return{value:e,done:!0}}for(n.method=i,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=h,n.method="throw",n.arg=c.arg)}}}function C(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=d(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(N(t)+" is not iterable")}return y.prototype=v,a(k,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new S(u(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(k),c(k,s,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var pp=function(e,t,r){return t?e.filter((function(e){var n=t.toLowerCase(),a=function(e){return(e.label||"").toLowerCase().substring(0,n.length)===n};return r?(e.suggestions=e.suggestions.filter((function(e){return a(e)})),e):a(e)})):e},fp=function(e){var t;return null!==(t=e.value)&&void 0!==t?t:e.label},hp=function(e,t){return e.reduce((function(e,r){var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r);return n.hasOwnProperty("suggestions")?n.suggestions.map((function(e){e.hasOwnProperty("id")||(e.id="".concat(t,"__").concat(fp(e)))})):n.hasOwnProperty("id")||(n.id="".concat(t,"__").concat(fp(r))),e.push(n),e}),[])},mp=function(e,t){return e?e.map((function(e){return t?(e.suggestions.map((function(e){return e.onMouseDown=function(e){return e.preventDefault()}})),e):(e.onMouseDown=function(e){return e.preventDefault()},r=e,Object.entries(r).reduce((function(e,t){var r=ro(t,2),n=r[0],a=r[1];return e[n]=a,e}),{}));var r})):[]};(0,m.forwardRef)((function(e,t){var r,n=e.name,a=void 0===n?"NO_NAME":n,i=e.options,o=e.value,l=void 0===o?"":o,s=e.text,c=e.id,u=e.dir,d=e.label,p=e.onOpen,y=e.onChange,v=e.onBlur,b=e.onTextChange,w=e.onFocus,x=void 0===w?null:w,k=e.getMenuOptions,_=void 0===k?pp:k,S=e.placeholder,E=e.isLoadingOptions,C=e.emptyMessage,$=void 0===C?"No results. Try something else or check for errors.":C,A=e.mobileTitle,T=void 0===A?d:A,O=e.sheetWrapperClassName,z=e.autoComplete,P=e.hasSections,F=void 0!==P&&P,N=e.isTextHightlighted,R=void 0!==N&&N,I=e.isTextHighlighted,L=void 0!==I&&I,M=e.sheetInputRef,D=h(e,cp),H=ro((0,m.useState)(!1),2),B=H[0],j=H[1],W=ro((0,m.useState)(-1),2),V=W[0],U=W[1],q=ro((0,m.useState)(""),2),G=q[0],K=q[1],Y=ro((0,m.useState)(i),2),X=Y[0],Z=Y[1],Q=ro((0,m.useState)(l),2),J=Q[0],ee=Q[1],ne=ro((0,m.useState)(!1),2),ae=ne[0],oe=ne[1],le=ro((0,m.useState)(!1),2),se=le[0],ce=le[1],ue=ro((0,m.useState)(E),2),de=ue[0],pe=ue[1],fe=(0,m.useRef)(),he=M||fe,me=(0,m.useRef)(),ge=function(e){return e.reduce((function(e,t){return t.suggestions&&e.push.apply(e,to(t.suggestions)),e}),[])},ye=function(e,t){if(!(""===t||e&&i))return t;var r=F?ge(i):i,n=null==r?void 0:r.find((function(t){return e===fp(t)}));return n?n.label:e},ve=ye(l,s),be=ro((0,m.useState)(ve||""),2),we=be[0],xe=be[1],ke=ro((0,m.useState)(ve||""),2),_e=ke[0],Se=ke[1],Ee=ro((0,m.useState)(""),2),Ce=Ee[0],$e=Ee[1],Ae=null!=c?c:te("Combobox_"),Te="combo_txt_".concat(Ae),Oe="combo_menu_".concat(Ae),ze=function(){var e,t=(e=up().mark((function e(t){var r,n,o,l,s;return up().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=_===pp)||pe(!0),ce(!1),!F){e.next=18;break}return n=ie(i),e.t0=hp,e.next=8,_(n,t,F);case 8:e.t1=e.sent,e.t2=a,e.t3=F,o=(0,e.t0)(e.t1,e.t2,e.t3),l=!0,o.map((function(e){var t;(null==e||null===(t=e.suggestions)||void 0===t?void 0:t.length)>0&&(l=!1)})),l&&(n.push({suggestions:[{label:$,unselectable:!0}]}),ce(!0),Se("")),Z(n),e.next=26;break;case 18:return e.t4=hp,e.next=21,_(i,t);case 21:e.t5=e.sent,e.t6=a,(s=(0,e.t4)(e.t5,e.t6))&&0!==s.length||(s=[{label:$,unselectable:!0}],ce(!0),Se("")),Z(s);case 26:U(-1),K(""),r||pe(!1);case 28:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){Qi(i,n,a,o,l,"next",e)}function l(e){Qi(i,n,a,o,l,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}(),Pe=function(e){"function"==typeof y&&y({target:{name:a,value:e}})},Fe=function(e){j(e),oe(e)},Ne=function(){E||(ze(""),$e("")),Fe(!0),me.current&&me.current.select()},Re=function(e){"function"==typeof b&&b(e),$e(e.target.value),xe(e.target.value),ze(e.target.value),Se(""),ee("")},Ie=function(){Fe(!1),K("")},Le=function(e){r=e;var t=(F?ge(X):X)[e];t&&!t.unselectable&&(Se(t.value||t.label),xe(t.label),ee(fp(t)),$e(t.label),Pe(fp(t)),Fe(!1))},Me=function(){return!V||V<0?"":(F?ge(X):X)[V].id},De=function(e){var t=e.key||e.keyCode,r=new re(t),n=F?ge(X):X;r.IS_ARROW_UP?U(Jo(n,V,"previous")):r.IS_ARROW_DOWN?B?U(Jo(n,V,"next")):Ne():r.IS_ENTER||"Unidentified"===t?(e.preventDefault(),B?Le(V):Ne()):(r.IS_TAB||r.IS_ESC)&&Ie()},He=G?null:S,Be="sheet_t_".concat(a),je=B?Pa:Oa,We=g().createElement(je,{onClick:function(e){e.stopPropagation(),B?Fe(!1):(oe(!0),Ne())},size:"sm","aria-hidden":"true","data-testid":"combo-affordance",color:"BackgroundMediumContrast",className:lp,"data-ppui":"true"});(0,m.useEffect)((function(){ee(l),xe(ye(l,""));var e=F?ge(X):X,t=null==e?void 0:e.find((function(e){return l===fp(e)}));t&&(t.hasOwnProperty("value")?Se(t.value):Se(t.label))}),[l]),(0,m.useEffect)((function(){pe(E)}),[E]),(0,m.useEffect)((function(){s&&xe(s)}),[s]);var Ve=function(e){return e&&e.current?e.current:null};(0,m.useEffect)((function(){if(!E&&B){var e=Ve(he);e&&e.focus()}i&&i.length&&(Z(i),xe(ye(l,we)))}),[E,i]);var Ue={role:"combobox",autoComplete:null!=z?z:"new-password","aria-expanded":B,"aria-haspopup":!0,"aria-controls":Oe,"aria-activedescendant":Me(),value:we,placeholder:G?" ":S,placemat:G,inputRef:me},qe=!se&&(R||L),Ge=F?ge(X):X,Ke=!0;return null==Ge||Ge.map((function(e){""===(null==e?void 0:e.value)&&(Ke=!1)})),g().createElement("div",{dir:u,className:ip,"data-ppui-info":"combobox_4.1.4__8.12.0"},g().createElement("select",{className:sp,name:a,"aria-hidden":"true",id:"hiddenSelect_".concat(a),tabIndex:-1,role:"hiddenSelect_".concat(a),onChange:function(e){return Le(e.target.selectedIndex-1)},value:_e,"data-ppui":"true"},Ke&&g().createElement("option",{role:"hiddenSelect_option",value:"","data-ppui":"true"},d),(null==Ge?void 0:Ge.length)&&Ge.map((function(e,t){return g().createElement("option",{key:t,value:e.value,role:"hiddenSelect_option","data-ppui":"true"},e.label)}))),g().createElement(Zi,f({name:"combo_t_".concat(a),label:d,id:Te,rightIcon:We,setFocus:ae},D,Ue,{onChange:function(e){"function"==typeof b&&b(e),xe(e.target.value),""===e.target.value&&Se(""),ze(e.target.value),ee(""),B||Fe(!0)},onClick:function(){B||Ne()},onKeyDown:De,onFocus:function(e){var t=Ve(he);x&&!t&&x(e)},onBlur:function(){if(!he.current){var e=J?ye(J,""):J;if(!we&&J)ee(""),Pe("");else if(e.toLowerCase()!==we.toLowerCase()){var t=X.find((function(e){var t,r;return(null==e||null===(t=e.label)||void 0===t?void 0:t.toLowerCase())===we.toLowerCase()||(null==e||null===(r=e.value)||void 0===r?void 0:r.toLowerCase())===we.toLowerCase()}));if(t){var r=X.indexOf(t);Le(r),xe(t.label)}else ee(""),Pe(""),xe("")}v&&v({target:{name:a,textValue:we,value:J}})}},"data-reactcombo":!0,ref:t,"data-ppui":"true"})),g().createElement(ap,{name:"combo_m_".concat(a),value:J,id:Oe,isLoadingOptions:de,initialItemFocus:!1,ignoreKeyboard:!0,isOpen:B,mobileTitle:T,mobileHeaderContents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ltr";return g().createElement("div",{dir:e,"data-ppui":"true"},g().createElement(Zi,{name:Be,ref:he,label:d,value:Ce,placeholder:He,placemat:G,onChange:Re,onKeyDown:function(e){return De(e)},autoComplete:"off",role:"combobox","aria-controls":Oe,"aria-activedescendant":Me(),"data-ppui":"true"}))}(u),outsideClickCheck:function(e){return e.target.id!==Te},onOpen:p,onClose:Ie,selectedIndex:r,onSelection:Le,activeItem:V,triggerElementRef:me,options:mp(X,F),containerClassName:op,sheetWrapperClassName:O,hasSections:F,highlightText:we,isTextHighlighted:qe,"data-ppui":"true"}))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-grid");const gp="0.75rem",yp={xs:`(min-width: ${_})`,sm:`(min-width: ${S})`,md:`(min-width: ${E})`,lg:`(min-width: ${C})`,xl:`(min-width: ${$})`,xxl:`(min-width: ${A})`},vp=(e,t)=>(0,v.style)({"@media":{[yp[e]]:{msFlex:`0 0 ${t/12*100}%`,flex:`0 0 ${t/12*100}%`,maxWidth:t/12*100+"%"}}},`grid-col-${e}-${t}`),bp=(e,t)=>(0,v.style)({"@media":{[yp[e]]:{marginLeft:t/12*100+"%"}}},`grid-col-offset-${e}-${t}`),wp=(e,t)=>(0,v.style)({"@media":{[yp[e]]:{order:t}}},`grid-col-order-${e}-${-1===t?"first":13===t?"last":t}`),xp=(e,t)=>(0,v.style)({"@media":{[yp[e]]:{display:`${t} !important`}}},`grid-col-display-${e}-${t}`),kp=(e,t,r)=>(0,v.style)({"@media":{[yp[e]]:{justifyContent:r}}},`grid-row-justify-content-${e}-${t}`),_p=(e,t,r)=>(0,v.style)({"@media":{[yp[e]]:{alignSelf:r}}},`grid-row-align-self-${e}-${t}`),Sp=(e,t,r)=>(0,v.style)({"@media":{[yp[e]]:{alignContent:r}}},`grid-row-align-content-${e}-${t}`),Ep=(e,t,r)=>(0,v.style)({"@media":{[yp[e]]:{alignItems:r}}},`grid-row-align-items-${e}-${t}`),Cp=(e,t)=>(0,v.style)({"@media":{[yp[e]]:{msFlexDirection:t,flexDirection:t}}},`grid-row-flex-${e}-${t}`),$p=e=>(0,v.style)({msFlex:`0 0 ${e/12*100}%`,flex:`0 0 ${e/12*100}%`,maxWidth:e/12*100+"%"},`grid-col-${e}`),Ap={paddingTop:b.space[100],paddingBottom:b.space[100]},Tp={position:"relative",width:"100%",minHeight:"1px",paddingRight:gp,paddingLeft:gp},Op=((0,v.style)({marginLeft:"8.333333333333332%"},"grid-col-offset-1"),(0,v.style)({marginLeft:"16.666666666666664%"},"grid-col-offset-2"),(0,v.style)({marginLeft:"25%"},"grid-col-offset-3"),(0,v.style)({marginLeft:"33.33333333333333%"},"grid-col-offset-4"),(0,v.style)({marginLeft:"41.66666666666667%"},"grid-col-offset-5"),(0,v.style)({marginLeft:"50%"},"grid-col-offset-6"),(0,v.style)({marginLeft:"58.333333333333336%"},"grid-col-offset-7"),(0,v.style)({marginLeft:"66.66666666666666%"},"grid-col-offset-8"),(0,v.style)({marginLeft:"75%"},"grid-col-offset-9"),(0,v.style)({marginLeft:"83.33333333333334%"},"grid-col-offset-10"),(0,v.style)({marginLeft:"91.66666666666666%"},"grid-col-offset-11"),(0,v.style)({marginLeft:"100%"},"grid-col-offset-12"),bp("xs",1),bp("xs",2),bp("xs",3),bp("xs",4),bp("xs",5),bp("xs",6),bp("xs",7),bp("xs",8),bp("xs",9),bp("xs",10),bp("xs",11),bp("xs",12),bp("sm",1),bp("sm",2),bp("sm",3),bp("sm",4),bp("sm",5),bp("sm",6),bp("sm",7),bp("sm",8),bp("sm",9),bp("sm",10),bp("sm",11),bp("sm",12),bp("md",1),bp("md",2),bp("md",3),bp("md",4),bp("md",5),bp("md",6),bp("md",7),bp("md",8),bp("md",9),bp("md",10),bp("md",11),bp("md",12),bp("lg",1),bp("lg",2),bp("lg",3),bp("lg",4),bp("lg",5),bp("lg",6),bp("lg",7),bp("lg",8),bp("lg",9),bp("lg",10),bp("lg",11),bp("lg",12),bp("xl",1),bp("xl",2),bp("xl",3),bp("xl",4),bp("xl",5),bp("xl",6),bp("xl",7),bp("xl",8),bp("xl",9),bp("xl",10),bp("xl",11),bp("xl",12),bp("xxl",1),bp("xxl",2),bp("xxl",3),bp("xxl",4),bp("xxl",5),bp("xxl",6),bp("xxl",7),bp("xxl",8),bp("xxl",9),bp("xxl",10),bp("xxl",11),bp("xxl",12),(0,v.style)({order:1},"grid-col-order-1"),(0,v.style)({order:2},"grid-col-order-2"),(0,v.style)({order:3},"grid-col-order-3"),(0,v.style)({order:4},"grid-col-order-4"),(0,v.style)({order:5},"grid-col-order-5"),(0,v.style)({order:6},"grid-col-order-6"),(0,v.style)({order:7},"grid-col-order-7"),(0,v.style)({order:8},"grid-col-order-8"),(0,v.style)({order:9},"grid-col-order-9"),(0,v.style)({order:10},"grid-col-order-10"),(0,v.style)({order:11},"grid-col-order-11"),(0,v.style)({order:12},"grid-col-order-12"),(0,v.style)({order:13},"grid-col-order-last"),(0,v.style)({order:-1},"grid-col-order-first"),wp("xs",1),wp("xs",2),wp("xs",3),wp("xs",4),wp("xs",5),wp("xs",6),wp("xs",7),wp("xs",8),wp("xs",9),wp("xs",10),wp("xs",11),wp("xs",12),wp("xs",13),wp("xs",-1),wp("sm",1),wp("sm",2),wp("sm",3),wp("sm",4),wp("sm",5),wp("sm",6),wp("sm",7),wp("sm",8),wp("sm",9),wp("sm",10),wp("sm",11),wp("sm",12),wp("sm",13),wp("sm",-1),wp("md",1),wp("md",2),wp("md",3),wp("md",4),wp("md",5),wp("md",6),wp("md",7),wp("md",8),wp("md",9),wp("md",10),wp("md",11),wp("md",12),wp("md",13),wp("md",-1),wp("lg",1),wp("lg",2),wp("lg",3),wp("lg",4),wp("lg",5),wp("lg",6),wp("lg",7),wp("lg",8),wp("lg",9),wp("lg",10),wp("lg",11),wp("lg",12),wp("lg",13),wp("lg",-1),wp("xl",1),wp("xl",2),wp("xl",3),wp("xl",4),wp("xl",5),wp("xl",6),wp("xl",7),wp("xl",8),wp("xl",9),wp("xl",10),wp("xl",11),wp("xl",12),wp("xl",13),wp("xl",-1),wp("xxl",1),wp("xxl",2),wp("xxl",3),wp("xxl",4),wp("xxl",5),wp("xxl",6),wp("xxl",7),wp("xxl",8),wp("xxl",9),wp("xxl",10),wp("xxl",11),wp("xxl",12),wp("xxl",13),wp("xxl",-1),(0,v.style)({justifyContent:"flex-start !important"},"grid-justify-content-start"),(0,v.style)({justifyContent:"flex-end !important"},"grid-justify-content-end"),(0,v.style)({justifyContent:"center !important"},"grid-justify-content-center"),(0,v.style)({justifyContent:"space-between !important"},"grid-justify-content-between"),(0,v.style)({justifyContent:"space-around !important"},"grid-justify-content-around"),kp("xs","start","flex-start"),kp("xs","end","flex-end"),kp("xs","center","center"),kp("xs","between","space-between"),kp("xs","around","space-around"),kp("sm","start","flex-start"),kp("sm","end","flex-end"),kp("sm","center","center"),kp("sm","between","space-between"),kp("sm","around","space-around"),kp("md","start","flex-start"),kp("md","end","flex-end"),kp("md","center","center"),kp("md","between","space-between"),kp("md","around","space-around"),kp("lg","start","flex-start"),kp("lg","end","flex-end"),kp("lg","center","center"),kp("lg","between","space-between"),kp("lg","around","space-around"),kp("xl","start","flex-start"),kp("xl","end","flex-end"),kp("xl","center","center"),kp("xl","between","space-between"),kp("xl","around","space-around"),kp("xxl","start","flex-start"),kp("xxl","end","flex-end"),kp("xxl","center","center"),kp("xxl","between","space-between"),kp("xxl","around","space-around"),(0,v.style)({alignSelf:"auto !important"},"grid-align-self-auto"),(0,v.style)({alignSelf:"flex-start !important"},"grid-align-self-start"),(0,v.style)({alignSelf:"flex-end !important"},"grid-align-self-end"),(0,v.style)({alignSelf:"center !important"},"grid-align-self-center"),(0,v.style)({alignSelf:"baseline !important"},"grid-align-self-baseline"),(0,v.style)({alignSelf:"stretch !important"},"grid-align-self-stretch"),_p("xs","auto","auto"),_p("xs","start","flex-start"),_p("xs","end","flex-end"),_p("xs","center","center"),_p("xs","baseline","baseline"),_p("xs","stretch","stretch"),_p("sm","auto","auto"),_p("sm","start","flex-start"),_p("sm","end","flex-end"),_p("sm","center","center"),_p("sm","baseline","baseline"),_p("sm","stretch","stretch"),_p("md","auto","auto"),_p("md","start","flex-start"),_p("md","end","flex-end"),_p("md","center","center"),_p("md","baseline","baseline"),_p("md","stretch","stretch"),_p("lg","auto","auto"),_p("lg","start","flex-start"),_p("lg","end","flex-end"),_p("lg","center","center"),_p("lg","baseline","baseline"),_p("lg","stretch","stretch"),_p("xl","auto","auto"),_p("xl","start","flex-start"),_p("xl","end","flex-end"),_p("xl","center","center"),_p("xl","baseline","baseline"),_p("xl","stretch","stretch"),_p("xxl","auto","auto"),_p("xxl","start","flex-start"),_p("xxl","end","flex-end"),_p("xxl","center","center"),_p("xxl","baseline","baseline"),_p("xxl","stretch","stretch"),(0,v.style)({alignItems:"flex-start !important"},"grid-align-items-start"),(0,v.style)({alignItems:"flex-end !important"},"grid-align-items-end"),(0,v.style)({alignItems:"center !important"},"grid-align-items-center"),(0,v.style)({alignItems:"baseline !important"},"grid-align-items-baseline"),(0,v.style)({alignItems:"stretch !important"},"grid-align-items-stretch"),Ep("xs","start","flex-start"),Ep("xs","end","flex-end"),Ep("xs","center","center"),Ep("xs","baseline","baseline"),Ep("xs","stretch","stretch"),Ep("sm","start","flex-start"),Ep("sm","end","flex-end"),Ep("sm","center","center"),Ep("sm","baseline","baseline"),Ep("sm","stretch","stretch"),Ep("md","start","flex-start"),Ep("md","end","flex-end"),Ep("md","center","center"),Ep("md","baseline","baseline"),Ep("md","stretch","stretch"),Ep("lg","start","flex-start"),Ep("lg","end","flex-end"),Ep("lg","center","center"),Ep("lg","baseline","baseline"),Ep("lg","stretch","stretch"),Ep("xl","start","flex-start"),Ep("xl","end","flex-end"),Ep("xl","center","center"),Ep("xl","start","baseline"),Ep("xl","stretch","stretch"),Ep("xxl","start","flex-start"),Ep("xxl","end","flex-end"),Ep("xxl","center","center"),Ep("xxl","baseline","baseline"),Ep("xxl","stretch","stretch"),(0,v.style)({alignContent:"flex-start !important"},"grid-align-content-start"),(0,v.style)({alignContent:"flex-end"},"grid-align-content-end"),(0,v.style)({alignContent:"center !important"},"grid-align-content-center"),(0,v.style)({alignContent:"space-between !important"},"grid-align-content-between"),(0,v.style)({alignContent:"space-around !important"},"grid-align-content-around"),(0,v.style)({alignContent:"stretch !important"},"grid-align-content-stretch"),Sp("xs","start","flex-start"),Sp("xs","end","flex-end"),Sp("xs","center","center"),Sp("xs","between","space-between"),Sp("xs","around","space-around"),Sp("xs","stretch","stretch"),Sp("sm","start","flex-start"),Sp("sm","end","flex-end"),Sp("sm","center","center"),Sp("sm","between","space-between"),Sp("sm","around","space-around"),Sp("sm","stretch","stretch"),Sp("md","start","flex-start"),Sp("md","end","flex-end"),Sp("md","center","center"),Sp("md","between","space-between"),Sp("md","around","space-around"),Sp("md","stretch","stretch"),Sp("lg","start","flex-start"),Sp("lg","end","flex-end"),Sp("lg","center","center"),Sp("lg","between","space-between"),Sp("lg","around","space-around"),Sp("lg","stretch","stretch"),Sp("xl","start","flex-start"),Sp("xl","end","flex-end"),Sp("xl","center","center"),Sp("xl","between","space-between"),Sp("xl","around","space-around"),Sp("xl","stretch","stretch"),Sp("xxl","start","flex-start"),Sp("xxl","end","flex-end"),Sp("xxl","center","center"),Sp("xxl","between","space-between"),Sp("xxl","around","space-around"),Sp("xxl","stretch","stretch"),(0,v.style)({display:"none !important"},"grid-display-none"),(0,v.style)({display:"inline !important"},"grid-display-inline"),(0,v.style)({display:"inline-block !important"},"grid-display-inline-block"),(0,v.style)({display:"block !important"},"grid-display-block"),(0,v.style)({display:"table !important"},"grid-display-table"),(0,v.style)({display:"table-row !important"},"grid-display-table-row"),(0,v.style)({display:"table-cell !important"},"grid-display-table-cell"),(0,v.style)({display:"flex !important "},"grid-display-flex"),xp("xs","none"),xp("xs","inline"),xp("xs","inline-block"),xp("xs","block"),xp("xs","table"),xp("xs","table-row"),xp("xs","table-cell"),xp("xs","flex"),xp("sm","none"),xp("sm","inline"),xp("sm","inline-block"),xp("sm","block"),xp("sm","table"),xp("sm","table-row"),xp("sm","table-cell"),xp("sm","flex"),xp("md","none"),xp("md","inline"),xp("md","inline-block"),xp("md","block"),xp("md","table"),xp("md","table-row"),xp("md","table-cell"),xp("md","flex"),xp("lg","none"),xp("lg","inline"),xp("lg","inline-block"),xp("lg","block"),xp("lg","table"),xp("lg","table-row"),xp("lg","table-cell"),xp("lg","flex"),xp("xl","none"),xp("xl","inline"),xp("xl","inline-block"),xp("xl","block"),xp("xl","table"),xp("xl","table-row"),xp("xl","table-cell"),xp("xl","flex"),xp("xxl","none"),xp("xxl","inline"),xp("xxl","inline-block"),xp("xxl","block"),xp("xxl","table"),xp("xxl","table-row"),xp("xxl","table-cell"),xp("xxl","flex"),(0,v.style)({msFlexDirection:"row",flexDirection:"row"},"grid-flex-row"),(0,v.style)({msFlexDirection:"column",flexDirection:"column"},"grid-flex-column"),(0,v.style)({msFlexDirection:"row-reverse",flexDirection:"row-reverse"},"grid-flex-row-reverse"),(0,v.style)({msFlexDirection:"column-reverse",flexDirection:"column-reverse"},"grid-flex-column-reverse"),(0,v.style)({flexWrap:"wrap-reverse"},"grid-flex-wrap-reverse"),(0,v.style)({msFlex:"1 1 auto",flex:"1 1 auto"},"grid-flex-fill"),(0,v.style)({msFlexPositive:"0",flexGrow:"0"},"grid-flex-grow-0"),(0,v.style)({msFlexPositive:"1",flexGrow:"1"},"grid-flex-grow-1"),(0,v.style)({flexShrink:"0"},"grid-flex-shrink-0"),(0,v.style)({flexShrink:"1"},"grid-flex-shrink-1"),Cp("xs","row"),Cp("xs","column"),Cp("xs","row-reverse"),Cp("xs","column-reverse"),Cp("xs","wrap-reverse"),Cp("xs","fill"),Cp("xs","grow-0"),Cp("xs","grow-1"),Cp("xs","shrink-0"),Cp("xs","shrink-1"),Cp("sm","row"),Cp("sm","column"),Cp("sm","row-reverse"),Cp("sm","column-reverse"),Cp("sm","wrap-reverse"),Cp("sm","fill"),Cp("sm","grow-0"),Cp("sm","grow-1"),Cp("sm","shrink-0"),Cp("sm","shrink-1"),Cp("md","row"),Cp("md","column"),Cp("md","row-reverse"),Cp("md","column-reverse"),Cp("md","wrap-reverse"),Cp("md","fill"),Cp("md","grow-0"),Cp("md","grow-1"),Cp("md","shrink-0"),Cp("md","shrink-1"),Cp("lg","row"),Cp("lg","column"),Cp("lg","row-reverse"),Cp("lg","column-reverse"),Cp("lg","wrap-reverse"),Cp("lg","fill"),Cp("lg","grow-0"),Cp("lg","grow-1"),Cp("lg","shrink-0"),Cp("lg","shrink-1"),Cp("xl","row"),Cp("xl","column"),Cp("xl","row-reverse"),Cp("xl","column-reverse"),Cp("xl","wrap-reverse"),Cp("xl","fill"),Cp("xl","grow-0"),Cp("xl","grow-1"),Cp("xl","shrink-0"),Cp("xl","shrink-1"),Cp("xxl","row"),Cp("xxl","column"),Cp("xxl","row-reverse"),Cp("xxl","column-reverse"),Cp("xxl","wrap-reverse"),Cp("xxl","fill"),Cp("xxl","grow-0"),Cp("xxl","grow-1"),Cp("xxl","shrink-0"),Cp("xxl","shrink-1"),(0,v.style)({width:"100%",paddingRight:b.space[200],paddingLeft:b.space[200],marginRight:"auto",marginLeft:"auto"},"grid-container_fluid"),(0,v.style)({width:"100%",paddingRight:0,paddingLeft:0,marginRight:"auto",marginLeft:"auto"},"grid-container_form"),(0,v.style)({width:"100%",paddingRight:b.space[450],paddingLeft:b.space[450],marginRight:"auto",marginLeft:"auto",maxWidth:A,"@media":{[`(min-width: ${E})`]:{paddingRight:b.space[400],paddingLeft:b.space[400],maxWidth:A},[`(min-width: ${A})`]:{paddingRight:b.space[600],paddingLeft:b.space[600],maxWidth:A}}},"grid-container_xxl"),(0,v.style)({width:"100%",paddingRight:b.space[150],paddingLeft:b.space[150],marginRight:"auto",marginLeft:"auto","@media":{[`(min-width: ${S})`]:{paddingRight:b.space[300],paddingLeft:b.space[300],maxWidth:S},[`(min-width: ${E})`]:{paddingRight:b.space[450],paddingLeft:b.space[450],maxWidth:E},[`(min-width: ${C})`]:{paddingRight:b.space[450],paddingLeft:b.space[450],maxWidth:C},[`(min-width: ${$})`]:{paddingRight:b.space[450],paddingLeft:b.space[450],maxWidth:$}}},"grid-container"),(0,v.style)({display:"flex",flexWrap:"wrap",marginRight:`calc(${b.space[150]} * -1)`,marginLeft:`calc(${b.space[150]} * -1)`},"grid-row"),(0,v.style)({...Tp,flexBasis:0,msFlexPositive:1,flexGrow:1,maxWidth:"100%"},"grid-col")),zp=((0,v.style)({msFlex:"0 0 auto",flex:"0 0 auto",maxWidth:"none",width:"auto"},"grid-col-auto"),$p(1),$p(2),$p(3),$p(4),$p(5),$p(6),$p(7),$p(8),$p(9),$p(10),$p(11),$p(12),vp("xs",1),vp("xs",2),vp("xs",3),vp("xs",4),vp("xs",5),vp("xs",6),vp("xs",7),vp("xs",8),vp("xs",9),vp("xs",10),vp("xs",11),vp("xs",12),vp("sm",1),vp("sm",2),vp("sm",3),vp("sm",4),vp("sm",5),vp("sm",6),vp("sm",7),vp("sm",8),vp("sm",9),vp("sm",10),vp("sm",11),vp("sm",12),vp("md",1),vp("md",2),vp("md",3),vp("md",4),vp("md",5),vp("md",6),vp("md",7),vp("md",8),vp("md",9),vp("md",10),vp("md",11),vp("md",12),vp("lg",1),vp("lg",2),vp("lg",3),vp("lg",4),vp("lg",5),vp("lg",6),vp("lg",7),vp("lg",8),vp("lg",9),vp("lg",10),vp("lg",11),vp("lg",12),vp("xl",1),vp("xl",2),vp("xl",3),vp("xl",4),vp("xl",5),vp("xl",6),vp("xl",7),vp("xl",8),vp("xl",9),vp("xl",10),vp("xl",11),vp("xl",12),vp("xxl",1),vp("xxl",2),vp("xxl",3),vp("xxl",4),vp("xxl",5),vp("xxl",6),vp("xxl",7),vp("xxl",8),vp("xxl",9),vp("xxl",10),vp("xxl",11),vp("xxl",12),(0,v.style)({...Ap},"grid-col-form-vspace"),(0,v.style)({...Tp,...Ap,msFlex:"0 0 100%",flex:"0 0 100%",maxWidth:"100%"},"grid-col-form-full"),(0,v.style)({...Tp,...Ap,msFlex:"0 0 50%",flex:"0 0 50%",maxWidth:"50%"},"grid-col-form-half"),(0,v.style)({...Tp,...Ap,msFlex:"0 0 75%",flex:"0 0 75%",maxWidth:"75%"},"grid-col-form-3qtr"),(0,v.style)({...Tp,...Ap,msFlex:"0 0 25%",flex:"0 0 25%",maxWidth:"25%"},"grid-col-form-1qtr"),(0,v.style)({...Tp,...Ap,msFlex:"0 0 auto",flex:"0 0 auto",maxWidth:"auto"},"grid-col-form-auto"),(0,v.style)({marginLeft:0,marginRight:0},"grid-no-gutters"));(0,v.globalStyle)(`${zp} > ${Op}, ${zp} > [class*='col-']`,{paddingLeft:0,paddingRight:0}),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-auto-suggest");const Pp=`calc((2 * ${b.size.field.lg}))`,Fp=(0,v.style)({position:"relative"},"auto-suggest_base"),Np=(0,v.style)({minWidth:Pp,maxWidth:b.size.media.lg,marginTop:b.space[75],padding:`${b.space[100]} 0`,overflowX:"hidden",width:"100%"},"auto-suggest_suggestion_list_container"),Rp=(0,v.style)([Np,yo,{borderRadius:b.border.radius.lg,backgroundColor:b.color.background.surface,zIndex:q,outline:`${b.border.thickness.normal} solid transparent`,top:b.size.field.lg,position:"absolute"}],"auto-suggest_elevated_suggestion_list_container"),Ip=(0,v.style)({padding:`${b.space[150]} ${b.space[200]}`},"auto-suggest_content"),Lp=(0,v.style)({overflowY:"auto",maxHeight:b.size.media.sm,"@media":{[`(max-width: ${E})`]:{maxHeight:`calc((${b.size.media.sm}))`}}},"auto-suggest_suggestion_list"),Mp=(0,v.style)({display:"flex",justifyContent:"center"},"auto-suggest_centered_content"),Dp=(0,v.style)({margin:`0 ${b.space[200]}`},"auto-suggest_error_message");y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-contextual-alert");const Hp=(0,v.style)([Fe,{display:"flex"}],"contextual-alert_base"),Bp=(0,v.style)({marginTop:"0.0625rem",marginRight:b.space[50],height:b.size.icon.xs,flexShrink:"0",selectors:{"[dir='rtl'] &":{marginLeft:`${b.space[50]}`,marginRight:0}}},"contextual-alert_status_icon"),jp=(0,v.style)({marginTop:b.space[25]},"contextual-alert_content_wrapper"),Wp=(0,v.style)({padding:0},"contextual-alert_no_padding");y.endFileScope();var Vp=["className","type","typeIconAriaLabel","children","noPadding"],Up=["info","success","error","warning"],qp={info:function(e){e.svgElementRef;var t=h(e,va);return g().createElement(na,f({"aria-label":"information icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M12 2.25A9.75 9.75 0 1 0 21.75 12 9.76 9.76 0 0 0 12 2.25zm0 18A8.25 8.25 0 1 1 20.25 12 8.26 8.26 0 0 1 12 20.25zm1.5-3.75a.75.75 0 0 1-.75.75 1.5 1.5 0 0 1-1.5-1.5V12a.75.75 0 1 1 0-1.5 1.5 1.5 0 0 1 1.5 1.5v3.75a.75.75 0 0 1 .75.75zm-3-8.625a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0z","data-ppui":"true"})),e.children)},success:$a,warning:function(e){e.svgElementRef;var t=h(e,_a);return g().createElement(na,f({"aria-label":"warning icon"},t,{"data-ppui":"true"}),g().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},g().createElement("path",{d:"M12 2.25A9.75 9.75 0 1 0 21.75 12 9.76 9.76 0 0 0 12 2.25zm0 18A8.25 8.25 0 1 1 20.25 12 8.26 8.26 0 0 1 12 20.25zm-.75-7.5V7.5a.75.75 0 1 1 1.5 0v5.25a.75.75 0 1 1-1.5 0zm1.875 3.375a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0z","data-ppui":"true"})),e.children)},error:Na},Gp=function(e){var t=e.className,r=e.type,n=void 0===r?"info":r,a=e.typeIconAriaLabel,i=void 0===a?n:a,o=e.children,l=e.noPadding,s=void 0!==l&&l,c=h(e,Vp),u=Up.includes(n)?n:"info",d=qp[u],p=Z(Hp,s&&Wp,t);return g().createElement("div",f({role:"alert",className:p,"data-ppui-info":"contextual-alert_4.1.3__8.12.0"},c),g().createElement(d,{className:Bp,size:"xs",color:{info:"sysColorInfoContrast",success:"sysColorSuccessMain",warning:"sysColorWarningAlt",error:"sysColorErrorMain"}[u],role:"img","aria-label":i,"data-ppui":"true"}),g().createElement("div",{className:jp,"data-ppui":"true"},o))},Kp=["suggestions","renderSuggestion","onHighlight","onSelect","className","listItemClassName","query","enableKeyboardInteraction","hasSections"];function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zp=function(e){var t=e.suggestions,r=void 0===t?[]:t,n=e.renderSuggestion,a=e.onHighlight,i=e.onSelect,o=e.className,l=e.listItemClassName,s=e.query,c=e.enableKeyboardInteraction,u=void 0===c||c,d=e.hasSections,p=h(e,Kp),y=ro((0,m.useState)(-1),2),v=y[0],b=y[1],w=(0,m.useRef)(-1),x=(0,m.useRef)([]),k=function(e,t){return t?e.reduce((function(e,t,r){return t.suggestions&&t.suggestions.forEach((function(n,a){e.push({value:n,section:t,suggestionIndex:a,sectionIndex:r})})),e}),[]):e.reduce((function(e,t,r){return e.push({value:t,suggestionIndex:r}),e}),[])}(r,d),_=function(e,t){if(b(t),w.current=t,-1!==t){var r=k[t].section?"".concat(k[t].section.id,"_").concat(k[t].value.id):k[t].value.id,n=x.current[r];n&&n.scrollIntoView&&n.scrollIntoView({behavior:"smooth",block:"nearest"})}a&&a(e,k[t].value,k[t].section)},S=function(e,t){i&&i(e,k[t].value,k[t].section)},E=function(e){if(k.length){var t=[];k.map((function(e){return t.push(e.value)}));var r=w.current,n=new re(e.key||e.keyCode);n.IS_ARROW_UP?(e.preventDefault(),_(e,Jo(t,r,"previous"))):n.IS_ARROW_DOWN?(e.preventDefault(),_(e,Jo(t,r,"next"))):n.IS_ENTER&&(e.preventDefault(),r>=0&&S(e,r))}};(0,m.useEffect)((function(){return b(-1),w.current=-1,r.length&&u&&document.addEventListener("keydown",E),function(){document.removeEventListener("keydown",E)}}),[r,u]);var C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r.length>0?e.map((function(e,r){var a=e.hasOwnProperty("value")?e.value:e.label,i=n?n(e,s):function(e,t){var r=oe(e,t);return g().createElement(rn,{as:"span",dangerouslySetInnerHTML:{__html:r},"data-ppui":"true"})}(a,s);return Xp(Xp({},e),{},I(I(I(I({id:e.id,decoration:e.decoration?{thumbnail:e.decoration,align:"center"}:null,trailingContent:{align:"center"},onMouseDown:function(e){return e.preventDefault()},onMouseMove:function(e){return e.preventDefault()},onClick:function(e){S(e,t+r)},role:"option"},"data-value",a),"label",i),"labelDescription",e.labelDescription),"className",l))})):[]},$=d?function(){if(r.length>0){var e=0;return r.map((function(t){var r={title:t.title,sectionItems:C(t.suggestions,e)};return e+=t.suggestions.length,r}))}return[]}():C(r);return k.length?g().createElement(rl,f({className:o,tabIndex:0,hasSections:d,ref:x,options:$,activeIndex:v},p,{"data-ppui":"true"})):null},Qp=["id","value","debounceTimeout","fetchSuggestions","suggestionList","isSuggestionListInline","isLoadingSuggestions","onChange","onFocus","onKeyDown","onBlur","onClear","className","triggerComponent","suggestions","defaultSuggestionList","suggestionListFooter","suggestionListContainerClassName","suggestionListFooterClassName","suggestionListChangeMessage","suggestionListLoadingMessage","suggestionListErrorMessage","onSuggestionListClose"],Jp=function(e,t){return t?e.reduce((function(e,t){return t.suggestions&&(e+=t.suggestions.length),e}),0):e.length};(0,m.forwardRef)((function(e,t){var r=e.id,n=void 0===r?"default":r,a=e.value,i=e.debounceTimeout,o=void 0===i?500:i,l=e.fetchSuggestions,s=void 0===l?function(){}:l,c=e.suggestionList,u=void 0===c?g().createElement(Zp,{suggestions:[],"data-ppui":"true"}):c,d=e.isSuggestionListInline,p=e.isLoadingSuggestions,y=e.onChange,v=e.onFocus,b=e.onKeyDown,w=e.onBlur,x=e.onClear,k=e.className,_=e.triggerComponent,S=void 0===_?Zi:_;e.suggestions;var E=e.defaultSuggestionList,C=void 0===E?g().createElement(Zp,{suggestions:[],"data-ppui":"true"}):E,$=e.suggestionListFooter,A=e.suggestionListContainerClassName,T=e.suggestionListFooterClassName,O=e.suggestionListChangeMessage,z=e.suggestionListLoadingMessage,P=void 0===z?"Loading suggestions":z,F=e.suggestionListErrorMessage,N=e.onSuggestionListClose,R=h(e,Qp),I=(0,m.useRef)(),L=(0,m.useRef)(),M=(0,m.useRef)(),D=ro((0,m.useState)(!1),2),H=D[0],B=D[1],j=ro((0,m.useState)(""),2),W=j[0],V=j[1],U=ro((0,m.useState)(!1),2),q=U[0],G=U[1],K=t||L,Y=Jp(u.props.suggestions||[],u.props.hasSections),X=Jp(C.props.suggestions||[],C.props.hasSections),Q=function(e){var t=K.current,r=M.current;e.target===t||r&&r.contains(e.target)||B(!1)};(0,m.useEffect)((function(){return function(){I.current&&clearTimeout(I.current)}}),[]),(0,m.useEffect)((function(){return H&&!d&&document.addEventListener("click",Q),function(){document.removeEventListener("click",Q)}}),[H,d]);var J=function(e){N&&Y&&N(e)},ee=function(e,t,r){V(r?"".concat(r.id,"_").concat(t.id):t.id),u.props.onHighlight&&u.props.onHighlight(e,t,r)},te=function(e,t,r){u.props.onSelect&&u.props.onSelect(e,t,r),d||B(!1)},ne="".concat(n,"-suggestionList"),ae=$?g().createElement("div",{className:Z(Ip,T),"data-ppui":"true"},$):null,ie=!p&&Y>0&&g().createElement(g().Fragment,null,g().cloneElement(u,{id:ne,"aria-labelledby":"".concat(n,"-label"),onHighlight:ee,onSelect:te,enableKeyboardInteraction:q,className:Lp}),ae),oe=X>0&&g().createElement(g().Fragment,null,g().cloneElement(C,{id:ne,"aria-labelledby":"".concat(n,"-label"),onHighlight:ee,onSelect:te,enableKeyboardInteraction:q,className:Lp}),ae),le=p?g().createElement("div",{className:Mp,"data-ppui":"true"},g().createElement(vl,{screenReaderText:P,size:"md","data-ppui":"true"})):null,se=null;Y||p||!F||(se=(0,m.isValidElement)(F)?F:g().createElement(Gp,{className:Dp,type:"warning","data-ppui":"true"},F));var ce=d?Np:Rp,ue=null;a&&H&&(ie||le||se)?ue=g().createElement("div",{className:Z(ce,A),ref:M,"data-ppui":"true"},ie,le,se):!a&&H&&X>0&&(ue=g().createElement("div",{className:Z(ce,A),ref:M,"data-ppui":"true"},oe));var de=O||"".concat(Y," suggestions available"),fe=S!==Zi?{onClear:function(e){J(e),x&&x(e)}}:{};return g().createElement("div",{className:Z(Fp,k),"data-ppui-info":"auto-suggest_3.2.4__8.12.0"},g().createElement(S,f({},R,{id:n,value:a,ref:K,onChange:function(e){var t=e.target.value;I.current&&clearTimeout(I.current),I.current=setTimeout((function(){s(t)}),o),B(!0),y(e)},onFocus:function(e){(Y||X)&&B(!0),s(a),G(!0),v&&v(e)},onKeyDown:function(e){var t=new re(e.key||e.keyCode);(t.IS_ESC||t.IS_TAB)&&(d||B(!1),t.IS_ESC&&x&&x(e)),b&&b(e)},onBlur:function(e){J(e),G(!1),w&&w(e)},"aria-activedescendant":W,"aria-autocomplete":"list",role:"combobox","aria-expanded":Y>0&&H,"aria-owns":ne,"aria-haspopup":"listbox"},fe,{"data-ppui":"true"})),ue,g().createElement(pe,{role:"status","data-ppui":"true"},de))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-address-input"),(0,v.style)({textAlign:"center"},"address-input-suggestion-list-footer"),(0,v.style)({height:"0.75rem"},"address-input-google-logo"),(0,v.style)({color:b.color.background.mediumContrast,marginTop:b.space[50]},"address-input-google-address-secondary-text"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-alert");const ef=`calc(${b.space[100]} + ${b.size.field.sm})`,tf=`calc(${b.space[350]} + ${b.typography.body.size})`,rf=`calc(${b.space[200]} - ${b.space[25]})`,nf=`calc(${b.space[100]} - ${b.border.thickness.normal})`,af=`calc(${b.space[200]} - ${b.border.thickness.emphasis})`,of=((0,v.style)([$e,{boxSizing:"border-box",padding:`${b.space[200]} ${ef} ${b.space[200]}\n ${tf}`,borderWidth:b.border.thickness.normal,borderStyle:"solid",borderRadius:b.border.radius.lg,position:"relative",textAlign:"initial",selectors:{"[dir='rtl'] &":{paddingLeft:ef,paddingRight:tf}}}],"alert_base"),(0,v.style)({display:"inline-block",position:"absolute",left:rf,textAlign:"center",color:b.color.system.mainActive,lineHeight:b.size.icon.sm,fontSize:b.size.icon.sm,top:af,verticalAlign:"middle",selectors:{"[dir='rtl'] &":{left:"auto",right:rf}}},"alert_svg_icon"),(0,v.style)({position:"absolute",top:0,right:nf,selectors:{"[dir='rtl'] &":{left:nf,right:"auto"}}},"alert_close_btn"),(e,t)=>({border:"none",backgroundColor:e,color:t}));(0,v.style)({...of(b.color.info.main,b.color.info.contrast),vars:U(b,"info")},"alert_info"),(0,v.style)({...of(b.color.warning.main,b.color.warning.contrast),vars:U(b,"warning")},"alert_warning"),(0,v.style)({...of(b.color.success.main,b.color.success.contrast),vars:U(b,"success")},"alert_success"),(0,v.style)({...of(b.color.error.main,b.color.error.contrast),vars:U(b,"error")},"alert_error"),(0,v.style)({color:b.color.info.contrast},"info_icon"),(0,v.style)({color:b.color.warning.contrast},"warning_icon"),(0,v.style)({color:b.color.success.contrast},"success_icon"),(0,v.style)({color:b.color.error.contrast},"error_icon"),(0,v.style)({paddingRight:b.space[200],selectors:{"[dir='rtl'] &":{paddingLeft:b.space[200],paddingRight:tf}}},"no_close_btn"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-appbadge");const lf="2.5rem";(0,v.style)({lineHeight:0},"appbadge_base"),(0,v.style)({height:lf,width:"7.5rem",verticalAlign:"bottom"},"appbadge_ios"),(0,v.style)({height:lf,width:"8.4375rem",verticalAlign:"bottom"},"appbadge_android"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar");const sf=e=>({width:e,height:e}),cf=(e,t)=>({backgroundColor:e,color:t});(0,v.style)({...xe,borderRadius:b.border.radius.interactive,...sf(b.size.circle.lg)},"shimmer"),(0,v.style)({...sf(b.size.circle.md)},"shimmer_size_md"),(0,v.style)({...sf(b.size.circle.sm)},"shimmer_size_sm"),(0,v.style)({...sf(b.size.circle.xs)},"shimmer_size_xs"),(0,v.style)({...sf(b.size.circle.lg),...rt,lineHeight:b.size.circle.lg},"avatar_size_lg"),(0,v.style)({...sf(b.size.circle.md),...Ae,lineHeight:b.size.circle.md},"avatar_size_md"),(0,v.style)({...sf(b.size.circle.sm),...Ne,lineHeight:b.size.circle.sm},"avatar_size_sm"),(0,v.style)({...sf(b.size.circle.xs),...Ve,lineHeight:b.size.circle.xs},"avatar_size_xs"),(0,v.style)({borderRadius:b.border.radius.interactive,textAlign:"center",textTransform:"uppercase",display:"flex",justifyContent:"center",alignItems:"center",border:"none",...cf(b.color.accent1.main,b.color.accent1.contrast),position:"relative"},"avatar_base"),(0,v.style)({...cf(b.color.accent1.main,b.color.accent1.contrast)},"avatar_colorAccent1Main"),(0,v.style)({...cf(b.color.accent2.main,b.color.accent2.contrast)},"avatar_colorAccent2Main"),(0,v.style)({...cf(b.color.accent3.main,b.color.accent3.contrast)},"avatar_colorAccent3Main"),(0,v.style)({...cf(b.color.accent4.main,b.color.accent4.contrast)},"avatar_colorAccent4Main"),(0,v.style)({...cf(b.color.accent3.main,b.color.accent3.contrast)},"generic_bank"),(0,v.style)({...cf(b.color.accent4.main,b.color.accent4.contrast)},"generic_causes"),(0,v.style)({...cf(b.color.accent4.main,b.color.accent4.contrast)},"generic_biller"),(0,v.style)({...cf(b.color.accent1.main,b.color.accent1.contrast)},"generic_merchant"),(0,v.style)({...cf(b.color.accent1.main,b.color.accent1.contrast)},"generic_profile"),(0,v.style)({...cf(b.color.accent2.main,b.color.accent2.contrast)},"generic_subscription"),(0,v.style)({borderRadius:"inherit",...sf("inherit"),background:b.color.accent1.contrast,objectFit:"cover"},"avatar_image"),(0,v.style)({boxSizing:"border-box",position:"absolute",bottom:0,right:`calc(${b.border.thickness.normal} * -1)`},"avatar_badge"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar-button");const uf="0.0421875rem",df=(0,v.style)({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",padding:`${b.space[150]} 0`,minHeight:"7.25rem",width:"6rem",wordWrap:"break-word",background:"none",border:"none",...Ne,color:b.color.background.highContrast,":focus":{cursor:"pointer",outline:"none"},":hover":{cursor:"pointer"}},"avatar_button_base"),pf=(0,v.style)({textAlign:"center",padding:`${b.space[100]} ${b.space[100]} 0 ${b.space[100]}`,width:"inherit",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},"avatar_button_label");(0,v.globalStyle)(`${df}:focus > span:first-of-type`,{WebkitTextStrokeWidth:uf}),(0,v.globalStyle)(`${df}:focus > span:last-of-type`,{textDecoration:"underline"}),(0,v.globalStyle)(`${df}:focus > div:first-of-type`,{...Rn,boxShadow:"inherit",outlineOffset:"inherit"}),(0,v.globalStyle)(`${df}:hover > span:first-of-type`,{WebkitTextStrokeWidth:uf}),(0,v.globalStyle)(`${df}:hover > span:last-of-type`,{textDecoration:"underline"}),y.endFileScope();var ff=["className","label","children","as"];(0,m.forwardRef)((function(e,t){var r=e.className,n=e.label,a=void 0===n?"default":n,i=e.children,o=e.as,l=h(e,ff),s=g().cloneElement(i,{size:"lg","aria-hidden":"true"});return g().createElement(o||"button",f({role:"button",className:Z(df,r),tabIndex:0,ref:t},l,{"data-ppui":"true"}),s,g().createElement("span",{className:pf,"data-ppui":"true"},a))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar-stack");const{ellipsisName:hf}=n,mf=((0,v.style)({display:"flex",alignItems:"center"},"avatar_stack_base"),(0,v.style)({borderRadius:b.border.radius.interactive,flexShrink:0,backgroundColor:b.color.background.main,border:`solid ${b.border.thickness.normal} ${b.color.background.surface}`,zIndex:1,selectors:{"[dir=rtl] &":{marginLeft:0}}},"avatar"));(0,v.style)([hf,{...Ne,color:b.color.background.mediumContrast,marginLeft:b.space[100],marginRight:0,selectors:{"[dir=rtl] &":{marginLeft:0,marginRight:b.space[100]}}}],"avatar_label"),(0,v.globalStyle)(`${mf}:not(:first-of-type)`,{marginInlineStart:`calc(${b.space[100]} * -1)`}),(0,v.globalStyle)(`${mf} > div`,{overflow:"hidden"}),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-badge");const gf={borderStyle:"solid",borderColor:"transparent"},yf=(e,t=null)=>{const r={color:e};return t&&(r.backgroundColor=t),r},vf=(0,v.style)({maxWidth:"18rem",overflow:"hidden",wordBreak:"break-word",textTransform:"none",WebkitLineClamp:2,display:"-webkit-inline-box",WebkitBoxOrient:"vertical",height:"auto"},"badge-base"),bf=((0,v.style)([Fe,vf,{borderRadius:b.border.radius.md,borderTopWidth:b.space[100],borderBottomWidth:b.space[100],borderRightWidth:b.space[100],borderLeftWidth:b.space[100]},gf],"badge-base_large"),(0,v.style)([We,vf,{borderRadius:b.border.radius.sm,borderTopWidth:b.space[25],borderBottomWidth:b.space[25],borderRightWidth:b.space[100],borderLeftWidth:b.space[100]},gf],"badge-base_small"),(0,v.style)({position:"relative",paddingInlineStart:`calc(${b.size.icon.xs} + ${b.space[25]})`},"badge-left_icon"),(0,v.style)({position:"absolute",insetInline:"0 auto",insetBlock:`calc(${b.border.thickness.normal} * -1)`},"badge-icon"),(0,v.style)({width:b.size.circle.xs,height:b.size.circle.xs,padding:b.border.thickness.normal,border:`${b.border.thickness.emphasis} solid ${b.color.background.surface}`,borderRadius:"50%"},"badge-icon_badge"));(0,v.style)([bf,yf(b.color.success.main,b.color.background.main)],"badge-authorized"),(0,v.style)([bf,yf(b.color.warning.alt,b.color.background.main)],"badge-inprogress"),(0,v.style)([bf,yf(b.color.error.main,b.color.background.main)],"badge-onhold"),(0,v.style)([bf,yf(b.color.specialty.main,b.color.background.main)],"badge-favorite"),(0,v.style)([Gt,yf(b.color.error.contrast,b.color.error.main),{padding:`0 ${b.space[50]}`,height:b.size.icon.xs,minWidth:b.size.icon.xs,outline:`${b.border.thickness.emphasis} solid ${b.color.background.surface}`,border:"0",borderRadius:`calc(${b.size.circle.xs}/2)`,lineHeight:b.typography.body.lineHeight,textAlign:"center",selectors:{"[dir='rtl'] &":{textAlign:"center"}}}],"badge-numeric"),(0,v.style)([yf(b.color.specialty.contrast,b.color.specialty.main),{vars:U(b,"specialty")}],"badge-high_contrast_feature"),(0,v.style)([yf(b.color.success.contrast,b.color.success.main),{vars:U(b,"success")}],"badge-high_contrast_success"),(0,v.style)([yf(b.color.warning.contrast,b.color.warning.main),{vars:U(b,"warning")}],"badge-high_contrast_warning"),(0,v.style)([yf(b.color.error.contrast,b.color.error.main),{vars:U(b,"error")}],"badge-high_contrast_critical"),(0,v.style)([yf(b.color.info.main,b.color.info.contrast),{vars:U(b,"info")}],"badge-high_contrast_neutral"),(0,v.style)([yf(b.color.overlay.contrast,b.color.overlay.main),{backdropFilter:`blur(calc(${b.blur.interactive} / 2))`,vars:U(b,"overlay")}],"badge-high_contrast_overlay"),(0,v.style)([yf(b.color.secondary.contrast,b.color.secondary.main),{vars:U(b,"secondary")}],"badge-high_contrast_highlight"),(0,v.style)([yf(b.color.specialty.medium.contrast,b.color.specialty.medium.main),{vars:U(b,"specialty")}],"badge-low_contrast_feature"),(0,v.style)([yf(b.color.success.medium.contrast,b.color.success.medium.main),{vars:U(b,"success")}],"badge-low_contrast_success"),(0,v.style)([yf(b.color.warning.medium.contrast,b.color.warning.medium.main),{vars:U(b,"warning")}],"badge-low_contrast_warning"),(0,v.style)([yf(b.color.error.medium.contrast,b.color.error.medium.main),{vars:U(b,"error")}],"badge-low_contrast_critical"),(0,v.style)([yf(b.color.info.contrast,b.color.info.main),{vars:U(b,"info")}],"badge-low_contrast_neutral"),(0,v.style)([yf(b.color.overlayInverse.contrast,b.color.overlayInverse.main),{backdropFilter:`blur(calc(${b.blur.interactive} / 2))`,vars:U(b,"overlay")}],"badge-low_contrast_overlay"),(0,v.style)([yf(b.color.tertiary.main,b.color.tertiary.contrast),{vars:U(b,"tertiary")}],"badge-low_contrast_highlight"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-banner");const wf=(0,v.style)({boxSizing:"border-box",textDecoration:"none",borderWidth:b.border.thickness.normal,padding:`${b.space[150]} ${b.space[200]}`,position:"relative",width:"100%",cursor:"pointer",display:"block",outline:`${b.border.thickness.normal} solid transparent`,":focus":Rn},"banner"),xf=((0,v.style)({selectors:{"&.critical":{backgroundColor:b.color.error.main},"&.warning":{backgroundColor:b.color.warning.main},"&.specialty":{backgroundColor:b.color.specialty.main}}},"banner-color-selector"),(0,v.style)({selectors:{"&:active.critical":{backgroundColor:b.color.error.mainActive},"&:active.warning":{backgroundColor:b.color.warning.mainActive},"&:active.specialty":{backgroundColor:b.color.specialty.mainActive}}},"banner-active-color-selector"),(0,v.style)({position:"relative",":before":{content:"",position:"absolute",margin:"0 -50vw",inset:"0 50%"}},"banner-full-width"),(0,v.style)([tt,{textAlign:"left",maxWidth:"100%",width:"100%",display:"flex",selectors:{"&.critical":{color:b.color.error.contrast},"&.warning":{color:b.color.warning.contrast},"&.specialty":{color:b.color.specialty.contrast}}}],"banner-title-wrapper"));(0,v.globalStyle)(`${wf}[dir="rtl"] ${xf}`,{textAlign:"right"}),(0,v.style)({marginTop:b.space[50]},"banner-title");const kf=(0,v.style)({marginRight:b.space[100],marginTop:b.space[25],flexShrink:"0"},"banner-left-side-icon");(0,v.globalStyle)(`${wf}[dir="rtl"] ${kf}`,{marginLeft:b.space[100],marginRight:0});const _f=(0,v.style)({marginRight:0,marginLeft:"auto",marginTop:b.space.tiny,flexShrink:"0"},"banner-right-side-icon");(0,v.globalStyle)(`${wf}[dir="rtl"] ${_f}`,{marginLeft:0,marginRight:"auto",transform:"rotate(180deg)"});const Sf=(0,v.style)([$e,{display:"flex",padding:`0 ${b.space[400]}`,selectors:{'&[dir="rtl"]':{textAlign:"right"},"&.critical":{color:b.color.error.contrast},"&.warning":{color:b.color.warning.contrast},"&.specialty":{color:b.color.specialty.contrast}}}],"banner-sub-text");(0,v.globalStyle)(`${wf}[dir="rtl"] ${Sf}`,{textAlign:"right"}),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-buttons");const{YQ:Ef}=a,Cf=(0,v.keyframes)({"0%":{opacity:0},"100%":{opacity:1}},"button_fade_in"),$f={display:"inline-flex",alignItems:"center",justifyContent:"center"},Af=e=>(0,v.style)({display:"inline-grid",gridTemplateColumns:`repeat(${e}, max-content)`,gap:b.space[200],padding:`${b.space[150]} ${b.space[200]}`},`button_group-${e}`),Tf=(0,v.style)({position:"relative",borderRadius:1e3,borderStyle:"solid",borderWidth:`${b.border.thickness.normal}`,cursor:"pointer",textDecoration:"none",...$f,transition:`color ${b.motion.duration.action} ease,\n background-color ${b.motion.duration.action} ease,\n border-color ${b.motion.duration.action} ease`,":focus":Ef},"button_base"),Of=(0,v.style)({...qt,minWidth:"6rem",padding:`calc(${b.space[150]} - ${b.border.thickness.emphasis}) calc(${b.space[400]} - ${b.border.thickness.emphasis})`,minHeight:b.size.tapTarget.default},"button_size_lg"),zf=(0,v.style)({...Vt,minWidth:"3.75rem",minHeight:b.size.tapTarget.tiny,padding:`calc(${b.size.indicator.md} - ${b.border.thickness.emphasis}) calc(${b.space[200]} - ${b.border.thickness.emphasis})`},"button_size_sm"),Pf={primary:(0,v.style)({color:(0,v.fallbackVar)(F.background,b.color.primary.contrast),border:`${b.border.thickness.emphasis} solid ${(0,v.fallbackVar)(F.main,b.color.primary.main)}`,backgroundColor:(0,v.fallbackVar)(F.main,b.color.primary.main),":hover":{color:(0,v.fallbackVar)(F.hoverMain,b.color.primary.contrast),textDecoration:"none",backgroundColor:(0,v.fallbackVar)(F.hoverBack,b.color.primary.mainHover),borderColor:(0,v.fallbackVar)(F.hoverBack,b.color.primary.mainHover)},":active":{color:(0,v.fallbackVar)(F.activeMain,b.color.primary.contrast),outline:"none",backgroundColor:(0,v.fallbackVar)(F.activeBack,b.color.primary.mainActive),borderColor:(0,v.fallbackVar)(F.activeBack,b.color.primary.mainActive)},":visited":{color:(0,v.fallbackVar)(F.main,b.color.primary.contrast)}},"button_primary"),primaryInverse:(0,v.style)({backgroundColor:(0,v.fallbackVar)(F.background,b.color.primary.contrast),borderColor:(0,v.fallbackVar)(F.background,b.color.primary.contrast),color:(0,v.fallbackVar)(F.main,b.color.primary.main),":hover":{color:(0,v.fallbackVar)(F.hoverMain,b.color.primary.main),backgroundColor:(0,v.fallbackVar)(F.hoverBack,b.color.primary.contrastHover),borderColor:(0,v.fallbackVar)(F.hoverBack,b.color.primary.contrastHover)},":active":{color:(0,v.fallbackVar)(F.activeMain,b.color.primary.main),backgroundColor:(0,v.fallbackVar)(F.activeBack,b.color.primary.contrastActive),borderColor:(0,v.fallbackVar)(F.activeBack,b.color.primary.contrastActive)},":visited":{color:(0,v.fallbackVar)(F.main,b.color.primary.main)}},"button_inverse"),secondary:(0,v.style)({backgroundColor:"transparent",borderColor:(0,v.fallbackVar)(F.main,b.color.structure.borderLowContrast),color:(0,v.fallbackVar)(F.main,b.color.primary.main),":visited":{color:(0,v.fallbackVar)(F.main,b.color.primary.main)},":hover":{backgroundColor:(0,v.fallbackVar)(F.hoverBack,"transparent"),color:(0,v.fallbackVar)(F.hoverMain,b.color.primary.mainHover),borderColor:(0,v.fallbackVar)(F.hoverMain,b.color.primary.mainHover)},":active":{backgroundColor:(0,v.fallbackVar)(F.activeBack,"transparent"),color:(0,v.fallbackVar)(F.activeMain,b.color.primary.mainActive),borderColor:(0,v.fallbackVar)(F.activeMain,b.color.primary.mainActive)}},"button_secondary"),secondaryInverse:(0,v.style)({borderColor:(0,v.fallbackVar)(F.background,b.color.primary.contrast),color:(0,v.fallbackVar)(F.main,b.color.primary.contrast),backgroundColor:"transparent",":visited":{color:(0,v.fallbackVar)(F.main,b.color.primary.contrastActive)},":hover":{backgroundColor:"transparent",color:(0,v.fallbackVar)(F.hoverMain,b.color.primary.contrastHover),borderColor:(0,v.fallbackVar)(F.hoverMain,b.color.primary.contrastHover)},":active":{backgroundColor:(0,v.fallbackVar)(F.activeBack,b.color.primary.mainActive),color:(0,v.fallbackVar)(F.activeMain,b.color.primary.contrastActive),borderColor:(0,v.fallbackVar)(F.activeMain,b.color.primary.contrastActive)}},"button_secondary_inverse"),tertiary:(0,v.style)({color:(0,v.fallbackVar)(F.main,b.color.link.main),padding:0,position:"relative",cursor:"pointer",backgroundColor:"transparent",border:"none",borderRadius:b.border.radius.sm,minHeight:b.size.tapTarget.default,...$f,":hover":{color:(0,v.fallbackVar)(F.hoverMain,b.color.link.mainHover),backgroundColor:(0,v.fallbackVar)(F.hoverBack,"transparent")},":focus":{...Ef,color:(0,v.fallbackVar)(F.main,b.color.link.main)},":active":{color:(0,v.fallbackVar)(F.activeMain,b.color.link.mainActive),backgroundColor:(0,v.fallbackVar)(F.activeBack,"transparent")}},"button_tertiary"),overlay:(0,v.style)({backgroundColor:(0,v.fallbackVar)(F.background,b.color.overlayInverse.main),borderColor:(0,v.fallbackVar)(F.main,b.color.structure.borderLowContrast),color:(0,v.fallbackVar)(F.main,b.color.overlayInverse.contrast),":visited":{color:(0,v.fallbackVar)(F.main,b.color.primary.main)},":hover":{backgroundColor:(0,v.fallbackVar)(F.hoverBack,b.color.overlayInverse.mainHover)},":active":{backgroundColor:(0,v.fallbackVar)(F.activeBack,b.color.overlayInverse.main),color:(0,v.fallbackVar)(F.activeMain,b.color.primary.mainActive),borderColor:(0,v.fallbackVar)(F.activeMain,b.color.primary.mainActive)}},"button_overlay")},Ff=(0,v.style)({...Vt,color:(0,v.fallbackVar)(F.main,b.color.link.main)},"button_tertiary-small"),Nf=(0,v.style)({marginInlineEnd:b.space[100]},"button_icon"),Rf=(0,v.style)({marginInlineStart:b.space[100],marginInlineEnd:0,verticalAlign:"top",position:"relative",pointerEvents:"none"},"button_affordance"),If=(0,v.style)({borderColor:b.color.success.main,backgroundColor:b.color.success.main,pointerEvents:"none"},"button_success_state"),Lf=(0,v.style)({color:"transparent",pointerEvents:"none",":hover":{color:"transparent"},":active":{color:"transparent"},":visited":{color:"transparent"}},"button_processing_state"),Mf=(0,v.style)({position:"absolute",top:0,bottom:0,left:0,right:0,borderRadius:"inherit",textAlign:"center",opacity:0,animation:`${Cf} ${b.motion.duration.hover} ease-in forwards`,display:"flex",justifyContent:"center",alignItems:"center",paddingRight:0},"button_state_overlay"),Df=(0,v.style)({backgroundColor:b.color.success.main},"button_success_state_overlay"),Hf=(0,v.style)({color:b.color.primary.contrast},"button_success_state_icon"),Bf=(0,v.style)({},"button_success_state_icon_sm"),jf=(Af(1),Af(2),Af(3),(0,v.style)({"@media":{[`(max-width: ${E})`]:{width:"100%"}}},"button_full_width")),Wf=((0,v.style)({"@media":{[`(max-width: ${S})`]:{gridTemplateColumns:"none",width:"100%"}}},"button_btnGroupFullWidth"),(0,v.style)({height:b.size.tapTarget.default,display:"inline-flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:0,":focus":{outline:"none"}},"button_small_tap_container")),Vf=(0,v.style)({cursor:"pointer"},"button-cursor_pointer");(0,v.globalStyle)(`${Wf}:focus > div:first-of-type:not(${If}):not(${Lf})`,Ef),y.endFileScope();var Uf=["isMenu","isOpen","isSmall","className"],qf=["variant","size","inverse","secondary","tertiary","isMenu","isOpen","btnState","screenReaderText","className","children","as","iconComponent","fullWidthOnMobile"];function Gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yf=["primary","secondary","overlay","tertiary"],Xf=function(e){var t=e.isMenu,r=e.isOpen,n=e.isSmall,a=e.className,i=h(e,Uf);if(!t)return null;var o=r?Pa:Oa;return g().createElement(o,f({className:a},i,{size:n?"xs":"sm","data-ppui":"true"}))},Zf=(0,m.forwardRef)((function(e,t){var r=e.variant,n=e.size,a=e.inverse,i=e.secondary,o=e.tertiary,l=e.isMenu,s=e.isOpen,c=e.btnState,u=void 0===c?"initial":c,d=e.screenReaderText,p=e.className,m=e.children,y=e.as,v=e.iconComponent,b=e.fullWidthOnMobile,w=void 0===b||b,x=h(e,qf),k="sm"===n,_=u&&"initial"===u,S=Kf({},x);void 0!==s&&(S["aria-expanded"]=s),S["tab-index"]=0,S.disabled=!_,S.ref=t,S["data-ppui-info"]="";var E=y||"button";k&&(E="div");var C=g().createElement(E,f({className:function(){var e,t=k?"":p;if(r){var n=function(e){return!a||"primary"!==e&&"secondary"!==e?Yf.includes(e)?e:"primary":"".concat(e,"Inverse")}(r);e=Z(Tf,k?zf:Of,Pf[n],w&&jf,"success"===u&&If,"processing"===u&&Lf,t)}else if(o)e=Z(Pf.tertiary,k?Ff:Of,t);else{var l=function(e,t){var r=e?"secondary":"primary";return t?"".concat(r,"Inverse"):r}(i,a);e=Z(Tf,k?zf:Of,Pf[l],w&&jf,"success"===u&&If,"processing"===u&&Lf,t)}return e}(),id:te("button_")},k?{}:Kf({},S),{"data-ppui":"true"}),function(){var e;_||(e=d||u);var t=Z(Hf,k&&Bf),c=g().createElement(Ta,{className:t,size:k?"sm":"md","data-ppui":"true"}),p=null;v&&(p=g().createElement(v,{className:Nf,size:k?"xs":"sm","data-ppui":"true"}));var h,y=Z(Mf,"success"===u&&Df),b=_?null:g().createElement("span",{className:y,"data-ppui":"true"},"success"===u&&c,"processing"===u&&!o&&g().createElement(vl,f({},(h={},"processing"!==u||(h.as="span","sm"===n&&(h.size="xs"),(r&&(a&&"secondary"===r||!a&&"primary"===r)||!r&&(i&&a||!i&&!a))&&(h.inverse=!0)),h),{"data-ppui":"true"}))),w=e?g().createElement("span",{role:"status",className:se,"data-ppui":"true"},m," ",e):null;return g().createElement(g().Fragment,null,p,m,g().createElement(Xf,{isMenu:l,isOpen:s,isSmall:k,className:Rf,"data-ppui":"true"}),b,w)}());return k?g().createElement(y||"button",f({className:Z(Wf,"initial"===u&&Vf,p)},S,{"data-ppui":"true"}),C):C}));y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-button-menu"),(0,v.style)({position:"relative"},"button_menu_wrapper"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-card");const Qf={border:"none"},Jf=(0,v.style)({padding:b.space[300],position:"relative",textAlign:"initial",backgroundColor:b.color.background.surface,borderRadius:b.border.radius.lg,appearance:"none",":focus":Rn},"card_base"),eh=(0,v.style)(Qf,"card_level1"),th=(0,v.style)(Qf,"card_level3"),rh=(0,v.style)({cursor:"pointer",width:"100%",appearance:"none",":hover":fo,":active":{boxShadow:"none"},":focus":Rn},"card_clickable"),nh=(0,v.style)({marginBottom:b.space[300],display:"table"},"card_header"),ah=(0,v.style)({width:"100%",display:"table-cell",margin:"initial",padding:`${b.space[50]} 0`,textTransform:"none",verticalAlign:"middle"},"card_title"),ih=(0,v.style)({marginTop:"0.9375rem",marginBottom:"0.9375rem"},"card_content"),oh=(0,v.style)({marginTop:b.space[300]},"card_footer");(0,v.globalStyle)(`${oh} button, a`,{margin:"initial"}),(0,v.globalStyle)(`${oh} button:not(:last-child), ${oh} a:not(:last-child)`,{marginInlineEnd:b.space[300]});const lh=(0,v.style)({minWidth:"6.6875rem",minHeight:"11rem"},"size_xxs"),sh=(0,v.style)({minWidth:"10rem",minHeight:"5rem"},"size_xs"),ch=(0,v.style)({minWidth:"20.75rem",minHeight:"5rem",borderRadius:b.border.radius.lg},"size_xs-long");y.endFileScope();var uh=["onClick","label","as","children","className","isLoading","isInverse","size","level"],dh=["className","children"],ph=["className","children"],fh=["className","children"];function hh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var mh=function(e){var t=e.onClick,r=e.label,n=e.as,a=void 0===n?"function"==typeof t?"button":"div":n,i=e.children,o=e.className,l=e.isLoading,s=e.isInverse,c=e.size,u=e.level,d=void 0===u?"1":u,p=h(e,uh);if(l)return g().createElement(_e,f({isInverse:s},p,{"data-ppui":"true"}),i);var m={xxs:lh,xs:sh,"xs-long":ch},y={1:eh,3:th},v=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hh(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},p);r&&(v["aria-label"]=r);var b=Z(Jf,m[c],y[d],t&&rh,o);return g().createElement(a,f({className:b,"data-ppui-info":"card_3.2.3__8.12.0",onClick:t},v),i)};mh.Header=function(e){var t=e.className,r=e.children,n=h(e,dh),a=Z(nh,t),i=Z(ah,t);return g().createElement("header",f({className:a},n,{"data-ppui":"true"}),g().createElement(en,{size:"sm",className:i,"data-ppui":"true"},r))},mh.Content=function(e){var t=e.className,r=e.children,n=h(e,ph),a=Z(ih,t);return g().createElement("div",f({className:a},n,{"data-ppui":"true"}),r)},mh.Footer=function(e){var t=e.className,r=e.children,n=h(e,fh),a=Z(oh,t);return g().createElement("footer",f({className:a},n,{"data-ppui":"true"}),r)},y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-checkbox");const gh=`calc(${b.size.circle.xs} + ${b.space[150]} + ${b.space[25]})`,yh=(0,v.style)({position:"relative",textAlign:"start",marginBottom:0},"checkbox_base"),vh=((0,v.style)({display:"flex",flexDirection:"column",margin:0,padding:0,border:"none",textAlign:"start"},"checkbox_group"),(0,v.style)({padding:`${b.space[150]} 0`},"checkbox-group_base")),bh=(0,v.style)([$e,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"block",paddingInlineStart:gh,position:"relative",textAlign:"start",WebkitTapHighlightColor:"transparent"}],"checkbox_label");(0,v.globalStyle)(`${bh} span:first-of-type`,{insetInlineStart:0}),(0,v.style)({...Ae,color:b.color.background.mediumContrast,padding:`0 0 ${b.space[150]} 0`,marginBottom:b.space[50],textAlign:"start"},"checkbox-group_label");const wh=(0,v.style)({position:"relative",top:"0.125rem",marginLeft:b.space[150]},"checkbox_icon_label"),xh=(0,v.style)({borderRadius:b.border.radius.xs,border:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,boxSizing:"border-box",height:b.size.circle.xs,left:0,position:"absolute",width:b.size.circle.xs,lineHeight:1.3,textAlign:"center",backgroundColor:b.color.background.surface,display:"flex",justifyContent:"center",alignItems:"center",top:0},"checkbox_checkmark_container"),kh=(0,v.style)([xh,{top:"auto"}],"checkbox_checkmark_container_decoration"),_h=(0,v.style)({fontSize:b.size.icon.xs},"checkbox_check_icon"),Sh=(0,v.style)({height:b.space[25],width:"0.875rem",backgroundColor:b.color.selected.contrast,borderRadius:b.border.radius.xs},"checkbox_partial_icon"),Eh=(0,v.style)({cursor:"pointer",opacity:0,position:"absolute"},"checkbox_input");(0,v.globalStyle)(`${Eh}:checked + label > span > span:first-of-type`,{borderColor:b.color.selected.main,backgroundColor:b.color.selected.main,color:b.color.selected.contrast,borderRadius:b.border.radius.xs}),(0,v.globalStyle)(`${Eh}:checked + label > span > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,v.globalStyle)(`${Eh}:not(:checked) + label > span > span:first-of-type > span:first-of-type`,{display:"none"}),(0,v.globalStyle)(`${Eh}:focus + label > span > span:first-of-type`,Fn),(0,v.globalStyle)(`${Eh}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${b.border.thickness.normal} * -1)`});const Ch=(0,v.style)({},"checkbox_error_state");(0,v.globalStyle)(`${Ch}:checked + label > span > span:first-of-type`,{borderWidth:b.border.thickness.emphasis,borderColor:b.color.error.main}),(0,v.globalStyle)(`${Ch}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${b.border.thickness.emphasis} * -1)`});const $h=(0,v.style)({borderWidth:b.border.thickness.emphasis,borderColor:b.color.error.main,lineHeight:1.1},"error_checkbox"),Ah=(0,v.style)({...Ne,color:b.color.background.mediumContrast},"checkbox-caption_text"),Th=(0,v.style)([Ah,{display:"flex",alignItems:"center",margin:0}],"error_text"),Oh=(0,v.style)({color:b.color.error.main,marginInlineEnd:b.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_error_icon"),zh=(0,v.style)({color:b.color.success.main,marginInlineEnd:b.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_success_icon"),Ph=(0,v.style)({paddingBottom:b.space[150]},"checkbox_label_error"),Fh=(0,v.style)([Ah,{margin:`${b.space[50]} 0 0`}],"checkbox_helper_text"),Nh=((0,v.style)({margin:0},"checkbox_group_helper_text"),(0,v.style)({display:"flex",alignItems:"center",minHeight:"1.5rem",margin:0},"checkbox_items")),Rh=(0,v.style)({display:"flex",alignItems:"center",marginInlineEnd:b.space[100],minHeight:"auto",pointerEvents:"none"},"checkbox_thumbnail"),Ih=(0,v.style)({width:b.size.icon.lg,height:b.size.icon.lg},"checkbox_thumbnail_decoration"),Lh=(0,v.style)({margin:0,pointerEvents:"none"},"checkbox_item_text"),Mh=(0,v.style)([Ah,{display:"block",paddingTop:b.space[50],pointerEvents:"none"}],"checkbox_item_secondary_text"),Dh=(0,v.style)({padding:`${b.space[100]} 0`},"checkbox_group_base_with_sec_text");y.endFileScope();var Hh=["id","label","aria-label","decoration","secondaryText","labelIcon","helperText","errorText","errorIconAriaLabel","error","successText","successIconAriaLabel","partial","name","dir","className","onChange","inCheckboxGroup"],Bh=(0,m.forwardRef)((function(e,t){var r,n,a,i,o,l,s,c,u,d=e.id,p=e.label,m=e["aria-label"],y=e.decoration,v=e.secondaryText,b=e.labelIcon,w=e.helperText,x=e.errorText,k=e.errorIconAriaLabel,_=void 0===k?"Error":k,S=e.error,E=e.successText,C=e.successIconAriaLabel,$=void 0===C?"Success":C,A=e.partial,T=e.name,O=void 0===T?"default":T,z=e.dir,P=e.className,F=e.onChange,N=e.inCheckboxGroup,R=h(e,Hh),I=Z(yh,S&&Ch,N&&vh,N&&v&&Dh,P),L=null!=d?d:te("Checkbox_"),M=g().createElement(Na,{className:Oh,size:"sm",role:"img","aria-label":_,"data-ppui":"true"}),D=g().createElement($a,{className:zh,size:"sm",role:"img","aria-label":$,"data-ppui":"true"});return S&&!E?r=x&&g().createElement("p",{className:Th,id:O,"data-ppui":"true"},M,x):E&&!S&&(r=E&&g().createElement("p",{className:Th,id:O,"data-ppui":"true"},D,E)),g().createElement("div",{className:I,"data-id":"checkbox",dir:z,"data-ppui-info":"checkbox_5.1.2__8.12.0"},g().createElement("input",f({className:Z(Eh,S&&Ch),tabIndex:0,type:"checkbox",id:L,name:O,ref:t,onChange:function(e){F&&(e.stopPropagation(),F(e))}},R,S&&x&&{"aria-describedby":O,"aria-invalid":!0},{"data-ppui":"true"})),(n=b&&g().createElement("span",{className:wh,"data-ppui":"true"},b),a=g().createElement(Aa,{className:_h,size:"xs","data-ppui":"true"}),i=g().createElement("span",{className:Sh,"data-ppui":"true"}),o=!S&&!E&&w&&g().createElement("p",{className:Fh,"data-ppui":"true"},w),l=Z(!!y&&kh,!y&&xh,S&&$h),s=Z(bh,(S||E)&&!N&&Ph),c=A?i:a,u=g().createElement("span",{className:Nh,"data-ppui":"true"},g().createElement("span",{className:l,"data-ppui":"true"},c),function(){var e=y&&g().createElement("span",{className:Rh,"data-ppui":"true"},g().cloneElement(y,{className:Z(y.props.className,Ih)})),t=g().createElement("span",{className:Lh,"data-ppui":"true"},g().createElement(rn,{as:"span",className:Z(!p&&se),"data-ppui":"true"},null!=p?p:m),v&&g().createElement(an,{className:Mh,as:"span","data-ppui":"true"},v));return g().createElement("span",{className:Nh,"data-ppui":"true"},e,t)}()),g().createElement("label",{className:s,htmlFor:L,"data-ppui":"true"},u,n,o)),r)}));y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-circle-progress-meter");const jh="50%",Wh=b.size.indicator.sm,Vh=b.size.circle.lg,Uh=b.size.circle.md,qh=b.size.indicator.xs,Gh=`calc(${jh} - ${qh})`,Kh=`calc(${qh} * 2)`,Yh=(0,v.style)({position:"relative",borderRadius:b.border.radius.interactive,border:`${Wh} solid ${b.color.background.alt}`,width:Vh,height:Vh,backgroundColor:b.color.background.surface,padding:b.space[50],flexShrink:0},"circle_progress_meter-base"),Xh=(0,v.style)({borderRadius:b.border.radius.interactive,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},"circle_progress_meter-inner"),Zh=(0,v.style)({color:b.color.accent1.contrast,backgroundColor:b.color.accent1.main},"circle_progress_meter-inner_accent1"),Qh=(0,v.style)({color:b.color.accent2.contrast,backgroundColor:b.color.accent2.main},"circle_progress_meter-inner_accent2"),Jh=(0,v.style)({color:b.color.accent3.contrast,backgroundColor:b.color.accent3.main},"circle_progress_meter-inner_accent3"),em=(0,v.style)({color:b.color.accent4.contrast,backgroundColor:b.color.accent4.main},"circle_progress_meter-inner_accent4"),tm=(0,v.style)({width:"100%",height:"100%",borderRadius:"inherit"},"circle_progress_meter-inner_image"),rm=(0,v.style)({position:"absolute",top:`calc(${Wh} * -1)`,left:`calc(${Wh} * -1)`,width:Vh,height:Vh,fill:"none",strokeWidth:Kh,strokeLinecap:"round",transform:"rotate(-90deg)",transformOrigin:"50% 50%",stroke:b.color.accent2.main},"circle_progress_meter-indicator"),nm=(0,v.style)({width:Uh,height:Uh,borderWidth:qh},"circle_progress_meter-size_sm"),am=(0,v.style)({top:`calc(${qh} * -1)`,left:`calc(${qh} * -1)`,width:Uh,height:Uh,strokeWidth:Kh},"circle_progress_meter-size_sm_progress_indicator"),im=(0,v.style)({padding:0},"circle_progress_meter-text_base"),om=(0,v.style)({backgroundColor:b.color.background.surface},"circle_progress_meter-text_inner"),lm=(0,v.style)({overflow:"hidden"},"circle_progress_meter-text_content"),sm=(0,v.style)({width:b.size.icon.sm,height:b.size.icon.sm},"circle_progress_meter-icon_wrap_sm"),cm=(0,v.style)({width:b.size.icon.md,height:b.size.icon.md},"circle_progress_meter-icon_wrap_lg"),um=(0,v.style)({stroke:b.color.accent1.main},"circle_progress-meter_stroke_accent1"),dm=(0,v.style)({stroke:b.color.accent2.main},"circle_progress-meter_stroke_accent2"),pm=(0,v.style)({stroke:b.color.accent3.main},"circle_progress-meter_stroke_accent3"),fm=(0,v.style)({stroke:b.color.accent4.main},"circle_progress-meter_stroke_accent4");y.endFileScope();var hm=["className","max","value","color","label","size","children","innerText","iconComponent","imageSrc"];function mm(e,t){return[(0,v.style)(e,t),e]}(0,m.forwardRef)((function(e,t){var r,n,a,i=e.className,l=e.max,s=void 0===l?1:l,c=e.value,u=void 0===c?0:c,d=e.color,p=void 0===d?"accent2":d,m=e.label,y=e.size,v=void 0===y?"lg":y,b=e.children,w=e.innerText,x=e.iconComponent,k=e.imageSrc,_=h(e,hm),S="sm"===v,E=Gh,C="calc(2 * ".concat(Math.PI," * ").concat(E,")"),$="calc(".concat(C," - (calc(").concat(u/s,") * ").concat(C,"))"),A=Z(Yh,w&&im,S&&nm,i),T=Z(rm,function(e){var t,r=e.charAt(0).toUpperCase()+e.slice(1);return null!==(t=o["strokeColor".concat(r)])&&void 0!==t?t:dm}(p),S&&am),O=Z(Xh,function(e){var t,r=e.charAt(0).toUpperCase()+e.slice(1);return null!==(t=o["circleInner".concat(r)])&&void 0!==t?t:Qh}(p),w&&om);return w?(a=lm,r=S?g().createElement(an,{className:a,"data-ppui":"true"},w):g().createElement(rn,{className:a,"data-ppui":"true"},w)):x?(n=S?sm:cm,r=g().createElement("div",{className:n,"data-ppui":"true"},g().createElement(x,{size:"sm"===v?"sm":"md","data-ppui":"true"}))):r=k?g().createElement("img",{src:k,className:tm,"data-ppui":"true"}):b,g().createElement("div",{className:A,"data-ppui-info":"circle-progress-meter_1.1.2__8.12.0"},g().createElement("svg",{className:T,style:{strokeDasharray:C,strokeDashoffset:$},"aria-hidden":"true",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","data-ppui":"true"},g().createElement("circle",{cx:jh,cy:jh,style:{r:Gh},"data-ppui":"true"})),g().createElement("div",{className:O,"aria-hidden":"true","data-ppui":"true"},r),g().createElement("label",{className:se,"data-ppui":"true"},m,g().createElement("progress",f({max:s,value:u},_,{ref:t,"data-ppui":"true"}))))})),y.setFileScope("src/caretStyles.css.ts","@paypalcorp/pp-react-utils");const gm=P,[ym,vm]=mm({":before":{content:"",position:"absolute",backgroundColor:"inherit",width:gm.caretSize,height:gm.caretSize,transform:"scale(0.72) rotate(45deg)",boxShadow:"inherit",zIndex:0},":after":{content:"",position:"absolute",backgroundColor:"inherit",width:"2.5rem",height:b.space[200]}},"caret_base"),[bm,wm]=mm({":before":{top:"auto",bottom:`calc(-1 * ${gm.caretBottomOffset})`},":after":{top:"auto",bottom:0}},"caret_position_bottom"),[xm,km]=mm({":before":{bottom:"auto",top:`calc(-1 * ${gm.caretTopOffset})`},":after":{top:0,bottom:"auto"}},"caret_position_top"),[_m,Sm]=mm({":before":{left:`calc(50% - ${gm.caretCenterOffset} / 2)`,right:"auto"},":after":{left:"calc(50% - 1.25rem)",right:"auto"}},"caret_position_center"),[Em,Cm]=mm({":before":{left:gm.caretSpaceShiftLeft,right:"auto"},":after":{left:b.space[100],right:"auto"}},"caret_position_shift_left"),[$m,Am]=mm({":before":{left:"auto",right:gm.caretSpaceShiftRight},":after":{left:"auto",right:b.space[100]}},"caret_position_shift_right"),[Tm,Om]=mm({":before":{top:`calc(50% - ${gm.caretLeftOffset})`,bottom:"auto",left:`calc(-1 * ${gm.caretLeftOffset})`,right:"auto"},":after":{transform:"rotate(90deg)",top:`calc(50% - ${gm.caretLeftOffset})`,bottom:"auto",left:`calc(-1 * ${b.space[150]})`,right:"auto"}},"caret_position_left"),[zm,Pm]=mm({":before":{top:`calc(50% - ${gm.caretRightOffset})`,bottom:"auto",left:"auto",right:`calc(-1 * ${gm.caretRightOffset})`},":after":{transform:"rotate(90deg)",top:`calc(50% - ${gm.caretRightOffset})`,bottom:"auto",left:"auto",right:`calc(-1 * ${b.space[150]})`}},"caret_position_right");y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-coach-tip");const Fm=`calc(calc(${b.size.tapTarget.sm} - ${b.size.icon.xs}/2) + ${b.size.icon.xs}/2)`,Nm=`calc(${b.size.pointerWidth.lg}/2)`;(0,v.style)([go,ym,{display:"none",position:"absolute",backgroundColor:b.color.background.surface,maxWidth:"20rem",padding:b.space[300],borderRadius:b.border.radius.xs,zIndex:1080,":focus":{outline:"none"},vars:{[gm.caretSize]:b.size.pointerWidth.lg,[gm.caretTopOffset]:Nm,[gm.caretBottomOffset]:Nm,[gm.caretSpaceShiftLeft]:b.space[300],[gm.caretSpaceShiftRight]:b.space[300],[gm.caretCenterOffset]:b.size.pointerWidth.lg,[gm.caretLeftOffset]:Nm,[gm.caretRightOffset]:Nm}}],"coach_tip-base"),(0,v.style)({display:"flex",width:"100%",justifyContent:"space-between"},"coach_tip-header"),(0,v.style)([tt,{display:"inline-block",marginBottom:b.space[150],maxWidth:`calc(100% - ${Fm})`}],"coach_tip-header_text"),(0,v.style)({display:"inline-block",maxWidth:`calc(100% - ${Fm})`},"coach_tip-no_header"),(0,v.style)({display:"flex",alignItems:"center",marginTop:b.space[150]},"coach_tip-footer"),(0,v.style)([Fe,{display:"inline-block",flex:"1 1 auto",flexShrink:"0"}],"coach_tip-footer_label"),(0,v.style)({display:"flex"},"coach_tip-footer_button_container"),(0,v.style)({marginInlineStart:b.space[300]},"coach_tip-footer_button"),(0,v.style)([$e],"coach_tip-text"),(0,v.style)({marginTop:`calc(${b.space[200]} * -1)`,marginInlineEnd:`calc(${b.space[200]} * -1)`,padding:b.space[50],zIndex:1},"coach_tip-close_button"),(0,v.style)([xm,Em],"coach_tip-caret_top_left"),(0,v.style)([xm,_m],"coach_tip-caret_top_center"),(0,v.style)([xm,$m],"coach_tip-caret_top_right"),(0,v.style)([bm,Em],"coach_tip-caret_bottom_left"),(0,v.style)([bm,_m],"coach_tip-caret_bottom_center"),(0,v.style)([bm,$m],"coach_tip-caret_bottom_right"),(0,v.style)([Tm],"coach_tip-caret_left"),(0,v.style)([zm],"coach_tip-caret_right"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-code-input");const Rm=(0,v.style)({display:"inline-block"},"code_input_base"),Im=(0,v.style)({width:b.size.field.sm,marginRight:b.space[100],marginBottom:b.space[100],"@media":{[`(max-width: ${S})`]:{width:"2.5rem"}}},"code_input_text_input"),Lm=(0,v.style)({padding:0},"code_input_text_input_with_error"),Mm=(0,v.style)({...er,textAlign:"center",padding:0,caretColor:"transparent",WebkitTouchCallout:"none",selectors:{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},'&[type="number"]':{MozAppearance:"textfield"},"&::selection":{background:"transparent"},"&::-moz-selection":{background:"transparent"},"&:first-line":{lineHeight:b.typography.fieldValueLg.lineHeight}}},"code_input_text_input_control"),Dm=(0,v.style)({display:"flex",marginRight:`calc(${b.space[100]} * -1)`,marginBottom:`calc(${b.space[100]} * -1)`,flexWrap:"wrap",selectors:{"[dir='rtl'] & ":{direction:"ltr"}}},"code_input_wrapper"),Hm=(0,v.style)({marginTop:b.space[50],display:"flex",alignItems:"center"},"code_input_error"),Bm=(0,v.style)({...Ne,color:b.color.background.mediumContrast,flexGrow:1,width:0},"code_input_error_text"),jm=(0,v.style)({color:b.color.error.main,marginInlineEnd:b.space[50]},"code_input_error_icon"),Wm=(0,v.style)({listStyle:"none",padding:0,margin:0},"code_input_error_text_list");y.endFileScope();var Vm=["alphaCharCapitalize","className","errorText","error","name","id","inputClassName","inputWrapperClassName","onChange","pinLength","value","autoFocus","onBlur","onFocus","numberOnly","wrapperAriaLabel"];g().forwardRef((function(e,t){var r=e.alphaCharCapitalize,n=void 0!==r&&r,a=e.className,i=e.errorText,o=e.error,l=void 0===o?!!i:o,s=e.name,c=void 0===s?"default":s,u=e.id,d=void 0===u?c:u,p=e.inputClassName,y=e.inputWrapperClassName,v=e.onChange,b=void 0===v?void 0:v,w=e.pinLength,x=void 0===w?6:w,k=e.value,_=void 0===k?"":k,S=e.autoFocus,E=e.onBlur,C=void 0===E?null:E,$=e.onFocus,A=void 0===$?null:$,T=e.numberOnly,O=void 0!==T&&T,z=e.wrapperAriaLabel,P=void 0===z?"group":z,F=h(e,Vm),N=(0,m.useRef)([]),R=t||N,I=/^[0-9]+$/,L=[re.NAME_BACKSPACE,re.NAME_DELETE,re.NAME_TAB],M=ro(g().useState(!1),2),D=M[0],H=M[1],B=to(x<3||x>=6?Array(6).keys():Array(x).keys()),j=_&&_.split("").map((function(e){return" "===e?"":e})),W=function(){var e=R.current.map((function(e){return""===e.value?" ":e.value})).join("");b&&b(e)},V=function(e){R&&R.current[e]&&R.current[e].focus()},U=function(e,t){for(var r=R.current.length,a=Math.min(e&&e.length,r),i=t,o=0;o<a&&(R.current[i].value=n?e[o].toUpperCase():e[o],++i!==r);o++);V(i===r?i-1:i)};(0,m.useEffect)((function(){S&&V(0)}),[]);var q,G=function(e){C&&!R.current.includes(e.relatedTarget)&&(C(e),H(!1))},K=function(e){e.target.select(),A&&!D&&(H(!0),A(e))},Y=Z(Rm,a),X=Z(Im,i&&Hm,y),Q=Z(Mm,i&&Lm,p),J=B.map((function(e){return g().createElement(Zi,f({key:e,className:X,inputClassName:Q,"aria-label":"".concat(e+1,"-").concat(B.length),name:"".concat(c,"-").concat(e),id:"ci-".concat(d,"-").concat(e),ref:function(t){return function(e,t){e&&(R.current[t]=e,R.current[t].value=j?j[t]:"")}(t,e)},onInput:function(t){return function(e,t){var r,a;if((null===(r=e.target)||void 0===r||null===(a=r.value)||void 0===a?void 0:a.length)&&V(t+1),n&&(e.target.value=e.target.value.toUpperCase()),e.target.value.length>1){var i=e.target.value.replace(/\s/g,"").split("");U(i,t)}W()}(t,e)},onKeyDown:function(t){return function(e,t){var r=e.key||e.keyCode,n=new re(r);(n.IS_SPACEBAR||n.IS_HOME||n.IS_END||n.IS_ARROW_KEY)&&e.preventDefault(),n.IS_BACKSPACE||n.IS_DELETE?""===e.target.value||" "===e.target.value?V(t-1):(e.target.value=" ",W()):n.IS_ARROW_LEFT?V(t-1):n.IS_ARROW_RIGHT?V(t+1):n.IS_HOME?V(0):n.IS_END?V(x-1):e.target.select(),(e.ctrlKey||e.metaKey)&&"v"===r||r.match(I)||L.includes(r)||!O||e.preventDefault()}(t,e)},onPaste:function(e){return function(e){var t=e.clipboardData&&e.clipboardData.getData("text");if(e.preventDefault(),!t||t.match(I)||!O){var r=t&&t.replace(/\s/g,"").split("");("number"===e.target.type||O)&&r.some(isNaN)||(U(r,0),W())}}(e)},onFocus:K,onBlur:G,"aria-describedby":l?"message_".concat(c):null,error:l&&!!i,pattern:O?"[0-9]*":""},F,{"data-ppui":"true"}))}));return g().createElement("div",{className:Y,id:d,"data-ppui-info":"code-input_3.1.2__8.12.0"},g().createElement("div",{className:Dm,role:"group","aria-label":P,"data-ppui":"true"},J),i&&(q=Array.isArray(i)?g().createElement("ul",{className:Wm,"data-ppui":"true"},i.map((function(e,t){return g().createElement("li",{key:"text$-".concat(t),"data-ppui":"true"},e)}))):i,g().createElement("div",{className:Hm,id:"message_".concat(c),role:"alert","data-ppui":"true"},g().createElement(Na,{className:jm,size:"sm","aria-hidden":"true","data-ppui":"true"}),g().createElement("span",{className:Bm,"data-ppui":"true"},q))))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-flag");const Um={"1x":{url:"https://www.paypalobjects.com/paypal-ui/components/flags/1x.png",width:32,height:24},"2x":{url:"https://www.paypalobjects.com/paypal-ui/components/flags/2x.png",width:64,height:48},"3x":{url:"https://www.paypalobjects.com/paypal-ui/components/flags/3x.png",width:96,height:72}},qm={"1x":b.size.icon.sm,"2x":b.size.icon.md},Gm=e=>`scale(calc(${qm[e]} / ${Um[e].width/16}))`,Km=e=>({width:"100%",height:"100%",background:`transparent url(${Um[e].url}) no-repeat`,backgroundSize:"cover",backgroundOrigin:"border-box",transformOrigin:"top left",position:"absolute",left:0,border:`${b.border.thickness.normal} solid ${b.color.structure.divider}`,transform:Gm(e),borderRadius:b.border.radius.xs}),Ym=(0,v.style)({display:"inline-block",boxSizing:"border-box",position:"relative"},"flag"),Xm=(0,v.style)({width:b.size.icon.sm,height:`calc(${b.size.icon.sm} * 0.75)`},"flag_size_sm"),Zm=(0,v.style)({width:b.size.icon.md,height:`calc(${b.size.icon.md} * 0.75)`},"flag_size_md"),Qm=(0,v.style)({"@media":{"only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)":{backgroundImage:`url(${Um["2x"].url})`,transform:Gm("2x")}}},"flag_scale_base"),Jm=(0,v.style)(Km("1x"),"flag_scale_sm"),eg=(0,v.style)(Km("2x"),"flag_scale_md"),tg=(0,v.style)({borderRadius:0},"flag_no_rounded_corners"),rg=(0,v.style)({backgroundPosition:"0 0%",selectors:{...Object.entries({ad:"0.431",ae:"0.862",ag:"1.293",ai:"1.724",al:"2.155",am:"2.586",an:"3.017",ao:"3.448",ar:"3.879",at:"4.310",au:"4.741",aw:"5.172",az:"5.603",ba:"6.034",bb:"6.466",be:"6.897",bf:"7.328",bg:"7.759",bh:"8.190",bi:"8.621",bj:"9.052",bm:"9.483",bn:"9.914",bo:"10.345",br:"10.776",bs:"11.207",bt:"11.638",bw:"12.069",by:"12.500",bz:"12.931",c2:"13.362",ca:"13.793",cd:"14.224",cg:"14.655",ch:"15.086",ci:"15.517",ck:"15.948",cl:"16.379",cm:"16.810",cn:"17.241",co:"17.672",cr:"18.103",cv:"18.534",cy:"18.966",cz:"19.397",de:"19.828",dj:"20.259",dk:"20.690",dm:"21.121",do:"21.552",dz:"21.983",ec:"22.414",ee:"22.845",eg:"23.276",er:"23.707",es:"24.138",et:"24.569",fi:"25.000",fj:"25.431",fk:"25.862",fm:"26.293",fo:"26.724",fr:"27.155",ga:"27.586",gb:"28.017",gd:"28.448",ge:"28.879",gf:"29.310",gi:"29.741",gl:"30.172",gm:"30.603",gn:"31.034",gp:"31.466",gr:"31.897",gt:"32.328",gw:"32.759",gy:"33.190",hk:"33.621",hn:"34.052",hr:"34.483",hu:"34.914",id:"35.345",ie:"35.776",il:"36.207",in:"36.638",is:"37.069",it:"37.500",jm:"37.931",jo:"38.362",jp:"38.793",ke:"39.224",kg:"39.655",kh:"40.086",ki:"40.517",km:"40.948",kn:"41.379",kr:"41.810",kw:"42.241",ky:"42.672",kz:"43.103",la:"43.534",lc:"43.966",li:"44.397",lk:"44.828",ls:"45.259",lt:"45.690",lu:"46.121",lv:"46.552",ma:"46.983",mc:"47.414",md:"47.845",me:"48.276",mg:"48.707",mh:"49.138",mk:"49.569",ml:"50.000",mn:"50.431",mq:"50.862",mr:"51.293",ms:"51.724",mt:"52.155",mu:"52.586",mv:"53.017",mw:"53.448",mx:"53.879",my:"54.310",mz:"54.741",na:"55.172",nc:"55.603",ne:"56.034",nf:"56.466",ng:"56.897",ni:"57.328",nl:"57.759",no:"58.190",np:"58.621",nr:"59.052",nu:"59.483",nz:"59.914",om:"60.345",pa:"60.776",pe:"61.207",pf:"61.638",pg:"62.069",ph:"62.500",pl:"62.931",pm:"63.362",pn:"63.793",pt:"64.224",pw:"64.655",py:"65.086",qa:"65.517",re:"65.948",ro:"66.379",rs:"66.810",ru:"67.241",rw:"67.672",sa:"68.103",sb:"68.534",sc:"68.966",se:"69.397",sg:"69.828",sh:"70.259",si:"70.690",sj:"71.121",sk:"71.552",sl:"71.983",sm:"72.414",sn:"72.845",so:"73.276",sr:"73.707",st:"74.138",sv:"74.569",sz:"75.000",tc:"75.431",td:"75.862",tg:"76.293",th:"76.724",tj:"77.155",tm:"77.586",tn:"78.017",to:"78.448",tr:"78.879",tt:"79.310",tv:"79.741",tw:"0.000",tz:"80.603",ua:"81.034",ug:"81.466",us:"81.897",uy:"82.328",va:"82.759",vc:"83.190",ve:"83.621",vg:"84.052",vn:"84.483",vu:"84.914",wf:"85.345",ws:"85.776",ye:"86.207",yt:"86.638",za:"87.069",zm:"87.500",zw:"87.931",eu:"88.362",af:"88.793",as:"89.224",bd:"89.655",io:"90.086",cf:"90.517",cx:"90.948",cc:"91.379",gq:"91.810",gh:"92.241",gu:"92.672",gg:"93.103",ht:"93.534",im:"93.966",lb:"94.397",je:"94.828",lr:"95.259",mo:"95.690",mm:"96.121",mp:"96.552",pk:"96.983",ps:"97.414",pr:"97.845",tl:"98.276",tk:"98.707",vi:"99.138",uz:"99.569",eh:"100.000"}).reduce(((e,[t,r])=>({...e,[`&.flag_${t}`]:{backgroundPosition:`0 ${r}%`}})),{})}},"flag_selector");y.endFileScope();var ng=["countryCode","size","noRoundCorners","className"],ag=function(e){var t=e.countryCode,r=e.size,n=void 0===r?"sm":r,a=e.noRoundCorners,i=void 0!==a&&a,o=e.className,l=h(e,ng);return g().createElement("div",f({className:Z(Ym,"sm"===n&&Xm,"md"===n&&Zm,o)},l,{"data-ppui":"true"}),g().createElement("span",{className:Z(Qm,rg,t&&"flag_".concat(t.toLowerCase()),"sm"===n&&Jm,"md"===n&&eg,i&&tg),"data-ppui":"true"}))};function ig(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function og(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new og.InputMask(e,t)}class lg{constructor(e){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}aggregate(e){return this.rawInserted+=e.rawInserted,this.skip=this.skip||e.skip,this.inserted+=e.inserted,this.tailShift+=e.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}function sg(e){return"string"==typeof e||e instanceof String}og.ChangeDetails=lg;const cg="NONE",ug="LEFT",dg="FORCE_LEFT",pg="RIGHT",fg="FORCE_RIGHT";function hg(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function mg(e){return Array.isArray(e)?e:[e,new lg]}function gg(e,t){if(t===e)return!0;var r,n=Array.isArray(t),a=Array.isArray(e);if(n&&a){if(t.length!=e.length)return!1;for(r=0;r<t.length;r++)if(!gg(t[r],e[r]))return!1;return!0}if(n!=a)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){var i=t instanceof Date,o=e instanceof Date;if(i&&o)return t.getTime()==e.getTime();if(i!=o)return!1;var l=t instanceof RegExp,s=e instanceof RegExp;if(l&&s)return t.toString()==e.toString();if(l!=s)return!1;var c=Object.keys(t);for(r=0;r<c.length;r++)if(!Object.prototype.hasOwnProperty.call(e,c[r]))return!1;for(r=0;r<c.length;r++)if(!gg(e[c[r]],t[c[r]]))return!1;return!0}return!(!t||!e||"function"!=typeof t||"function"!=typeof e)&&t.toString()===e.toString()}class yg{constructor(e,t,r,n){for(this.value=e,this.cursorPos=t,this.oldValue=r,this.oldSelection=n;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?cg:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?ug:pg}}class vg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;this.value=e,this.from=t,this.stop=r}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class bg{constructor(e){this._value="",this._update(Object.assign({},bg.DEFAULTS,e)),this.isInitialized=!0}updateOptions(e){Object.keys(e).length&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e)}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{input:!0};return this.reset(),this.append(e,t,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(e){this.reset(),this.append(e,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(e){this.value=this.doFormat(e)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(e){this.reset(),this.append(e,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return Math.min(this.value.length,t-e)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t)}extractTail(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new vg(this.extractInput(e,t),e)}appendTail(e){return sg(e)&&(e=new vg(String(e))),e.appendTo(this)}_appendCharRaw(e){return e?(this._value+=e,new lg({inserted:e,rawInserted:e})):new lg}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n=this.state;let a;if([e,a]=mg(this.doPrepare(e,t)),a=a.aggregate(this._appendCharRaw(e,t)),a.inserted){let e,i=!1!==this.doValidate(t);if(i&&null!=r){const t=this.state;!0===this.overwrite&&(e=r.state,r.unshift(this.value.length-a.tailShift));let n=this.appendTail(r);i=n.rawInserted===r.toString(),i&&n.inserted||"shift"!==this.overwrite||(this.state=t,e=r.state,r.shift(),n=this.appendTail(r),i=n.rawInserted===r.toString()),i&&n.inserted&&(this.state=t)}i||(a=new lg,this.state=n,r&&e&&(r.state=e))}return a}_appendPlaceholder(){return new lg}_appendEager(){return new lg}append(e,t,r){if(!sg(e))throw new Error("value should be string");const n=new lg,a=sg(r)?new vg(String(r)):r;null!=t&&t.tail&&(t._beforeTailState=this.state);for(let r=0;r<e.length;++r){const i=this._appendChar(e[r],t,a);if(!i.rawInserted&&!this.doSkipInvalid(e[r],t,a))break;n.aggregate(i)}return(!0===this.eager||"append"===this.eager)&&null!=t&&t.input&&e&&n.aggregate(this._appendEager()),null!=a&&(n.tailShift+=this.appendTail(a).tailShift),n}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,e)+this.value.slice(t),new lg}withValueRefresh(e){if(this._refreshing||!this.isInitialized)return e();this._refreshing=!0;const t=this.rawInputValue,r=this.value,n=e();return this.rawInputValue=t,this.value&&this.value!==r&&0===r.indexOf(this.value)&&this.append(r.slice(this.value.length),{},""),delete this._refreshing,n}runIsolated(e){if(this._isolated||!this.isInitialized)return e(this);this._isolated=!0;const t=this.state,r=e(this);return this.state=t,delete this._isolated,r}doSkipInvalid(e){return this.skipInvalid}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(e,this,t):e}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(e){return this.format?this.format(e,this):e}doParse(e){return this.parse?this.parse(e,this):e}splice(e,t,r,n){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{input:!0};const i=e+t,o=this.extractTail(i),l=!0===this.eager||"remove"===this.eager;let s;l&&(n=function(e){switch(e){case ug:return dg;case pg:return fg;default:return e}}(n),s=this.extractInput(0,i,{raw:!0}));let c=e;const u=new lg;if(n!==cg&&(c=this.nearestInputPos(e,t>1&&0!==e&&!l?cg:n),u.tailShift=c-e),u.aggregate(this.remove(c)),l&&n!==cg&&s===this.rawInputValue)if(n===dg){let e;for(;s===this.rawInputValue&&(e=this.value.length);)u.aggregate(new lg({tailShift:-1})).aggregate(this.remove(e-1))}else n===fg&&o.unshift();return u.aggregate(this.append(r,a,o))}maskEquals(e){return this.mask===e}typedValueEquals(e){const t=this.typedValue;return e===t||bg.EMPTY_VALUES.includes(e)&&bg.EMPTY_VALUES.includes(t)||this.doFormat(e)===this.doFormat(this.typedValue)}}function wg(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?og.MaskedRegExp:sg(e)?og.MaskedPattern:e instanceof Date||e===Date?og.MaskedDate:e instanceof Number||"number"==typeof e||e===Number?og.MaskedNumber:Array.isArray(e)||e===Array?og.MaskedDynamic:og.Masked&&e.prototype instanceof og.Masked?e:e instanceof og.Masked?e.constructor:e instanceof Function?og.MaskedFunction:(console.warn("Mask not found for mask",e),og.Masked)}function xg(e){if(og.Masked&&e instanceof og.Masked)return e;const t=(e=Object.assign({},e)).mask;if(og.Masked&&t instanceof og.Masked)return t;const r=wg(t);if(!r)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new r(e)}bg.DEFAULTS={format:String,parse:e=>e,skipInvalid:!0},bg.EMPTY_VALUES=[void 0,null,""],og.Masked=bg,og.createMask=xg;const kg=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],_g={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Sg{constructor(e){const{parent:t,isOptional:r,placeholderChar:n,displayChar:a,lazy:i,eager:o}=e,l=ig(e,kg);this.masked=xg(l),Object.assign(this,{parent:t,isOptional:r,placeholderChar:n,displayChar:a,lazy:i,eager:o})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===e&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new lg}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isFilled)return new lg;const r=this.masked.state,n=this.masked._appendChar(e,t);return n.inserted&&!1===this.doValidate(t)&&(n.inserted=n.rawInserted="",this.masked.state=r),n.inserted||this.isOptional||this.lazy||t.input||(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=Boolean(n.inserted),n}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const e=new lg;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new lg}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(e,t,r)}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cg;const r=this.value.length,n=Math.min(Math.max(e,0),r);switch(t){case ug:case dg:return this.isComplete?n:0;case pg:case fg:return this.isComplete?n:r;default:return n}}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}}class Eg{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new lg}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cg;const r=this._value.length;switch(t){case ug:case dg:return 0;default:return r}}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._isRawInput?t-e:0}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return Boolean(this._value)}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new lg;if(this.isFilled)return r;const n=!0===this.eager||"append"===this.eager,a=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!n)&&!t.tail;return a&&(r.rawInserted=this.char),this._value=r.inserted=this.char,this._isRawInput=a&&(t.raw||t.input),r}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new lg;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new vg("")}appendTail(e){return sg(e)&&(e=new vg(String(e))),e.appendTo(this)}append(e,t,r){const n=this._appendChar(e[0],t);return null!=r&&(n.tailShift+=this.appendTail(r).tailShift),n}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(e){Object.assign(this,e)}}const Cg=["chunks"];class $g{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;sg(e)&&(e=new vg(String(e)));const t=this.chunks[this.chunks.length-1],r=t&&(t.stop===e.stop||null==e.stop)&&e.from===t.from+t.toString().length;if(e instanceof vg)r?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof $g){if(null==e.stop){let t;for(;e.chunks.length&&null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof og.MaskedPattern))return new vg(this.toString()).appendTo(e);const t=new lg;for(let r=0;r<this.chunks.length&&!t.skip;++r){const n=this.chunks[r],a=e._mapPosToBlock(e.value.length),i=n.stop;let o;if(null!=i&&(!a||a.index<=i)){if(n instanceof $g||e._stops.indexOf(i)>=0){const r=e._appendPlaceholder(i);t.aggregate(r)}o=n instanceof $g&&e._blocks[i]}if(o){const r=o.appendTail(n);r.skip=!1,t.aggregate(r),e._value+=r.inserted;const a=n.toString().slice(r.rawInserted.length);a&&t.aggregate(e.append(a,{tail:!0}))}else t.aggregate(e.append(n.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map((e=>e.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t}=e,r=ig(e,Cg);Object.assign(this,r),this.chunks=t.map((e=>{const t="chunks"in e?new $g:new vg;return t.state=e,t}))}unshift(e){if(!this.chunks.length||null!=e&&this.from>=e)return"";const t=null!=e?e-this.from:e;let r=0;for(;r<this.chunks.length;){const e=this.chunks[r],n=e.unshift(t);if(e.toString()){if(!n)break;++r}else this.chunks.splice(r,1);if(n)return n}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],r=t.shift();if(t.toString()){if(!r)break;--e}else this.chunks.splice(e,1);if(r)return r}return""}}class Ag{constructor(e,t){this.masked=e,this._log=[];const{offset:r,index:n}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=r,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return this.state=e,e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null===(t=this.block)||void 0===t?void 0:t.value.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,dg),0!==this.offset||void 0}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ug),!0}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ug),!0}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,fg),this.offset!==this.block.value.length||void 0}))}pushRightBeforeInput(){return this._pushRight((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,cg),!0}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,cg),!0}))}}og.MaskedRegExp=class extends bg{_update(e){e.mask&&(e.validate=t=>t.search(e.mask)>=0),super._update(e)}};const Tg=["_blocks"];class Og extends bg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},_g,e.definitions),super(Object.assign({},Og.DEFAULTS,e))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let t=this.mask;if(!t||!e)return;let r=!1,n=!1;for(let o=0;o<t.length;++o){var a,i;if(this.blocks){const e=t.slice(o),r=Object.keys(this.blocks).filter((t=>0===e.indexOf(t)));r.sort(((e,t)=>t.length-e.length));const n=r[0];if(n){const e=xg(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[n]));e&&(this._blocks.push(e),this._maskedBlocks[n]||(this._maskedBlocks[n]=[]),this._maskedBlocks[n].push(this._blocks.length-1)),o+=n.length-1;continue}}let l=t[o],s=l in e;if(l===Og.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===l||"}"===l){r=!r;continue}if("["===l||"]"===l){n=!n;continue}if(l===Og.ESCAPE_CHAR){if(++o,l=t[o],!l)break;s=!1}const c=null===(a=e[l])||void 0===a||!a.mask||(null===(i=e[l])||void 0===i?void 0:i.mask.prototype)instanceof og.Masked?{mask:e[l]}:e[l],u=s?new Sg(Object.assign({parent:this,isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},c)):new Eg({char:l,eager:this.eager,isUnmasking:r});this._blocks.push(u)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map((e=>e.state))})}set state(e){const{_blocks:t}=e,r=ig(e,Tg);this._blocks.forEach(((e,r)=>e.state=t[r])),super.state=r}reset(){super.reset(),this._blocks.forEach((e=>e.reset()))}get isComplete(){return this._blocks.every((e=>e.isComplete))}get isFilled(){return this._blocks.every((e=>e.isFilled))}get isFixed(){return this._blocks.every((e=>e.isFixed))}get isOptional(){return this._blocks.every((e=>e.isOptional))}doCommit(){this._blocks.forEach((e=>e.doCommit())),super.doCommit()}get unmaskedValue(){return this._blocks.reduce(((e,t)=>e+t.unmaskedValue),"")}set unmaskedValue(e){super.unmaskedValue=e}get value(){return this._blocks.reduce(((e,t)=>e+t.value),"")}set value(e){super.value=e}get displayValue(){return this._blocks.reduce(((e,t)=>e+t.displayValue),"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new lg;let r=null===(e=this._mapPosToBlock(this.value.length))||void 0===e?void 0:e.index;if(null==r)return t;this._blocks[r].isFilled&&++r;for(let e=r;e<this._blocks.length;++e){const r=this._blocks[e]._appendEager();if(!r.inserted)break;t.aggregate(r)}return t}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this._mapPosToBlock(this.value.length),n=new lg;if(!r)return n;for(let o=r.index;;++o){var a,i;const r=this._blocks[o];if(!r)break;const l=r._appendChar(e,Object.assign({},t,{_beforeTailState:null===(a=t._beforeTailState)||void 0===a||null===(i=a._blocks)||void 0===i?void 0:i[o]})),s=l.skip;if(n.aggregate(l),s||l.rawInserted)break}return n}extractTail(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const r=new $g;return e===t||this._forEachBlocksInRange(e,t,((e,t,n,a)=>{const i=e.extractTail(n,a);i.stop=this._findStopBefore(t),i.from=this._blockStartPos(t),i instanceof $g&&(i.blockIndex=t),r.extend(i)})),r}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return"";let n="";return this._forEachBlocksInRange(e,t,((e,t,a,i)=>{n+=e.extractInput(a,i,r)})),n}_findStopBefore(e){let t;for(let r=0;r<this._stops.length;++r){const n=this._stops[r];if(!(n<=e))break;t=n}return t}_appendPlaceholder(e){const t=new lg;if(this.lazy&&null==e)return t;const r=this._mapPosToBlock(this.value.length);if(!r)return t;const n=r.index,a=null!=e?e:this._blocks.length;return this._blocks.slice(n,a).forEach((r=>{if(!r.lazy||null!=e){const e=null!=r._blocks?[r._blocks.length]:[],n=r._appendPlaceholder(...e);this._value+=n.inserted,t.aggregate(n)}})),t}_mapPosToBlock(e){let t="";for(let r=0;r<this._blocks.length;++r){const n=this._blocks[r],a=t.length;if(t+=n.value,e<=t.length)return{index:r,offset:e-a}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce(((e,t)=>e+t.value.length),0)}_forEachBlocksInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;const n=this._mapPosToBlock(e);if(n){const e=this._mapPosToBlock(t),a=e&&n.index===e.index,i=n.offset,o=e&&a?e.offset:this._blocks[n.index].value.length;if(r(this._blocks[n.index],n.index,i,o),e&&!a){for(let t=n.index+1;t<e.index;++t)r(this._blocks[t],t,0,this._blocks[t].value.length);r(this._blocks[e.index],e.index,0,e.offset)}}}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const r=super.remove(e,t);return this._forEachBlocksInRange(e,t,((e,t,n,a)=>{r.aggregate(e.remove(n,a))})),r}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cg;if(!this._blocks.length)return 0;const r=new Ag(this,e);if(t===cg)return r.pushRightBeforeInput()?r.pos:(r.popState(),r.pushLeftBeforeInput()?r.pos:this.value.length);if(t===ug||t===dg){if(t===ug){if(r.pushRightBeforeFilled(),r.ok&&r.pos===e)return e;r.popState()}if(r.pushLeftBeforeInput(),r.pushLeftBeforeRequired(),r.pushLeftBeforeFilled(),t===ug){if(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.ok&&r.pos<=e)return r.pos;if(r.popState(),r.ok&&r.pos<=e)return r.pos;r.popState()}return r.ok?r.pos:t===dg?0:(r.popState(),r.ok?r.pos:(r.popState(),r.ok?r.pos:0))}return t===pg||t===fg?(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.pushRightBeforeFilled()?r.pos:t===fg?this.value.length:(r.popState(),r.ok?r.pos:(r.popState(),r.ok?r.pos:this.nearestInputPos(e,ug)))):e}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=0;return this._forEachBlocksInRange(e,t,((e,t,n,a)=>{r+=e.totalInputPositions(n,a)})),r}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map((e=>this._blocks[e])):[]}}Og.DEFAULTS={lazy:!0,placeholderChar:"_"},Og.STOP_CHAR="`",Og.ESCAPE_CHAR="\\",Og.InputDefinition=Sg,Og.FixedDefinition=Eg,og.MaskedPattern=Og;class zg extends Og{get _matchFrom(){return this.maxLength-String(this.from).length}_update(e){e=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},e);let t=String(e.to).length;null!=e.maxLength&&(t=Math.max(t,e.maxLength)),e.maxLength=t;const r=String(e.from).padStart(t,"0"),n=String(e.to).padStart(t,"0");let a=0;for(;a<n.length&&n[a]===r[a];)++a;e.mask=n.slice(0,a).replace(/0/g,"\\0")+"0".repeat(t-a),super._update(e)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(e){let t="",r="";const[,n,a]=e.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(t="0".repeat(n.length)+a,r="9".repeat(n.length)+a),t=t.padEnd(this.maxLength,"0"),r=r.padEnd(this.maxLength,"9"),[t,r]}doPrepare(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if([e,t]=mg(super.doPrepare(e.replace(/\D/g,""),r)),!this.autofix||!e)return e;const n=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0");let i=this.value+e;if(i.length>this.maxLength)return"";const[o,l]=this.boundaries(i);return Number(l)<this.from?n[i.length-1]:Number(o)>this.to?"pad"===this.autofix&&i.length<this.maxLength?["",t.aggregate(this.append(n[i.length-1]+e,r))]:a[i.length-1]:e}doValidate(){const e=this.value;if(-1===e.search(/[^0]/)&&e.length<=this._matchFrom)return!0;const[t,r]=this.boundaries(e);return this.from<=Number(r)&&Number(t)<=this.to&&super.doValidate(...arguments)}}og.MaskedRange=zg;class Pg extends Og{constructor(e){super(Object.assign({},Pg.DEFAULTS,e))}_update(e){e.mask===Date&&delete e.mask,e.pattern&&(e.mask=e.pattern);const t=e.blocks;e.blocks=Object.assign({},Pg.GET_DEFAULT_BLOCKS()),e.min&&(e.blocks.Y.from=e.min.getFullYear()),e.max&&(e.blocks.Y.to=e.max.getFullYear()),e.min&&e.max&&e.blocks.Y.from===e.blocks.Y.to&&(e.blocks.m.from=e.min.getMonth()+1,e.blocks.m.to=e.max.getMonth()+1,e.blocks.m.from===e.blocks.m.to&&(e.blocks.d.from=e.min.getDate(),e.blocks.d.to=e.max.getDate())),Object.assign(e.blocks,this.blocks,t),Object.keys(e.blocks).forEach((t=>{const r=e.blocks[t];!("autofix"in r)&&"autofix"in e&&(r.autofix=e.autofix)})),super._update(e)}doValidate(){const e=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&null!=e&&(null==this.min||this.min<=e)&&(null==this.max||e<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}}Pg.DEFAULTS={pattern:"d{.}`m{.}`Y",format:e=>e?[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join("."):"",parse:e=>{const[t,r,n]=e.split(".");return new Date(n,r-1,t)}},Pg.GET_DEFAULT_BLOCKS=()=>({d:{mask:zg,from:1,to:31,maxLength:2},m:{mask:zg,from:1,to:12,maxLength:2},Y:{mask:zg,from:1900,to:9999}}),og.MaskedDate=Pg;class Fg{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch(e){}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch(e){}return null!=e?e:this.value.length}select(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch(e){}}_unsafeSelect(e,t){}get isActive(){return!1}bindEvents(e){}unbindEvents(){}}og.MaskElement=Fg;class Ng extends Fg{constructor(e){super(),this.input=e,this._handlers={}}get rootElement(){var e,t,r;return null!==(e=null===(t=(r=this.input).getRootNode)||void 0===t?void 0:t.call(r))&&void 0!==e?e:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}bindEvents(e){Object.keys(e).forEach((t=>this._toggleEventHandler(Ng.EVENTS_MAP[t],e[t])))}unbindEvents(){Object.keys(this._handlers).forEach((e=>this._toggleEventHandler(e)))}_toggleEventHandler(e,t){this._handlers[e]&&(this.input.removeEventListener(e,this._handlers[e]),delete this._handlers[e]),t&&(this.input.addEventListener(e,t),this._handlers[e]=t)}}Ng.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},og.HTMLMaskElement=Ng;class Rg extends Ng{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),r=t&&t.anchorOffset,n=t&&t.focusOffset;return null==n||null==r||r<n?r:n}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),r=t&&t.anchorOffset,n=t&&t.focusOffset;return null==n||null==r||r>n?r:n}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const r=this.rootElement.createRange();r.setStart(this.input.firstChild||this.input,e),r.setEnd(this.input.lastChild||this.input,t);const n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(r))}get value(){return this.input.textContent}set value(e){this.input.textContent=e}}og.HTMLContenteditableMaskElement=Rg;const Ig=["mask"];og.InputMask=class{constructor(e,t){this.el=e instanceof Fg?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new Rg(e):new Ng(e),this.masked=xg(t),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(e){var t;return null==e||(null===(t=this.masked)||void 0===t?void 0:t.maskEquals(e))}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof og.Masked)&&this.masked.constructor===wg(e))return void this.masked.updateOptions({mask:e});const t=xg({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const a=this._listeners[e];a&&a.forEach((e=>e(...r)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const e=this.masked.unmaskedValue,t=this.masked.value,r=this.displayValue,n=this.unmaskedValue!==e||this.value!==t;this._unmaskedValue=e,this._value=t,this.el.value!==r&&(this.el.value=r),n&&this._fireChangeEvents()}updateOptions(e){const{mask:t}=e,r=ig(e,Ig),n=!this.maskEquals(t),a=!gg(this.masked,r);n&&(this.mask=t),a&&this.masked.updateOptions(r),(n||a)&&this.updateControl()}updateCursor(e){null!=e&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout((()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,ug))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const r=this._listeners[e].indexOf(t);return r>=0&&this._listeners[e].splice(r,1),this}_onInput(e){if(this._inputEvent=e,this._abortUpdateCursor(),!this._selection)return this.updateValue();const t=new yg(this.el.value,this.cursorPos,this.displayValue,this._selection),r=this.masked.rawInputValue,n=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,a=r===this.masked.rawInputValue?t.removeDirection:cg;let i=this.masked.nearestInputPos(t.startChangePos+n,a);a!==cg&&(i=this.masked.nearestInputPos(i,cg)),this.updateControl(),this.updateCursor(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};class Lg extends bg{constructor(e){super(Object.assign({},Lg.DEFAULTS,e))}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"(".concat(hg(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(hg).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(hg(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e);const[r,n]=mg(super.doPrepare(e,t));return e&&!r&&(n.skip=!0),[r,n]}_separatorsCount(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;for(let n=0;n<e;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++r,t&&(e+=this.thousandsSeparator.length));return r}_separatorsCountFromSlice(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;return[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,r))}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(e,t);const r=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);const a=super._appendCharRaw(e,t);this._value=this._insertThousandsSeparators(this._value);const i=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,o=this._separatorsCountFromSlice(i);return a.tailShift+=(o-n)*this.thousandsSeparator.length,a.skip=!a.rawInserted&&e===this.thousandsSeparator,a}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,r=this.value.indexOf(this.thousandsSeparator,t);if(r<=e)return r}return-1}_adjustRangeWithSeparators(e,t){const r=this._findSeparatorAround(e);r>=0&&(e=r);const n=this._findSeparatorAround(t);return n>=0&&(t=n+this.thousandsSeparator.length),[e,t]}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;[e,t]=this._adjustRangeWithSeparators(e,t);const r=this.value.slice(0,e),n=this.value.slice(t),a=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+n));const i=this._separatorsCountFromSlice(r);return new lg({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case cg:case ug:case dg:{const r=this._findSeparatorAround(e-1);if(r>=0){const n=r+this.thousandsSeparator.length;if(e<n||this.value.length<=n||t===dg)return r}break}case pg:case fg:{const t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doValidate(e){let t=Boolean(this._removeThousandsSeparators(this.value).match(this._numberRegExp));if(t){const e=this.number;t=t&&!isNaN(e)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return t&&super.doValidate(e)}doCommit(){if(this.value){const e=this.number;let t=e;null!=this.min&&(t=Math.max(t,this.min)),null!=this.max&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.doFormat(t));let r=this.value;this.normalizeZeros&&(r=this._normalizeZeros(r)),this.padFractionalZeros&&this.scale>0&&(r=this._padFractionalZeros(r)),this._value=r}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,((e,t,r,n)=>t+n)),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n=0===this.scale&&e!==this.thousandsSeparator&&(e===this.radix||e===Lg.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,r)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,Lg.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(e){this.rawInputValue=this.doFormat(e).replace(Lg.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}typedValueEquals(e){return(super.typedValueEquals(e)||Lg.EMPTY_VALUES.includes(e)&&Lg.EMPTY_VALUES.includes(this.typedValue))&&!(0===e&&""===this.value)}}Lg.UNMASKED_RADIX=".",Lg.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[Lg.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},Lg.EMPTY_VALUES=[...bg.EMPTY_VALUES,0],og.MaskedNumber=Lg;var Mg=["name","isControlled","maskOptions","onAccept","onComplete","value"],Dg={Range:og.MaskedRange},Hg=(0,m.forwardRef)((function(e,t){var r=e.name,n=e.isControlled,a=void 0!==n&&n,i=e.maskOptions,o=void 0===i?{mask:Number}:i,l=e.onAccept,s=e.onComplete,c=e.value,u=h(e,Mg),d=(0,m.useRef)(),p=t||d,y=(0,m.useRef)(null),v=null==y?void 0:y.current;return(0,m.useEffect)((function(){v&&v.updateOptions(o)}),[o]),(0,m.useEffect)((function(){v&&(v.unmaskedValue=c)}),[c]),(0,m.useEffect)((function(){var e=p.current;if(e&&!y.current){y.current=og(e,o);var t=y.current;t.on("accept",(function(){l&&l(t.value,t.unmaskedValue,t.typedValue)})),t.on("complete",(function(){s&&s(t.value,t.unmaskedValue,t.typedValue)}))}return function(){v&&(v.off("accept"),v.off("complete"),v.destroy())}}),[]),v&&a&&(v.unmaskedValue="".concat(c)),g().createElement(Zi,f({name:r,value:c,ref:p,"data-ppui-info":"masked-text-input_3.2.3__8.12.0"},u))}));y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-tooltip");const{caretSize:Bg,caretRightOffset:jg,caretTopOffset:Wg,caretBottomOffset:Vg,caretLeftOffset:Ug,caretCenterOffset:qg,caretSpaceShiftLeft:Gg,caretSpaceShiftRight:Kg}=gm,{E3:Yg,Fm:Xg}=i,Zg="18rem",Qg=`calc(${b.size.pointerWidth.lg} / 2)`,Jg=((0,v.style)([go,ym,wm,Sm,{...Ae,color:b.color.background.highContrast,visibility:"hidden",opacity:0,maxWidth:Zg,wordWrap:"break-word",padding:b.space[200],position:"absolute",borderRadius:b.border.radius.sm,backgroundColor:b.color.background.surface,zIndex:1070,selectors:{"[aria-hidden = 'false']&":{visibility:"visible",opacity:1}},vars:{[jg]:Qg,[Bg]:b.size.pointerWidth.lg,[Wg]:Qg,[Vg]:Qg,[Ug]:Qg,[qg]:b.size.pointerWidth.lg,[Gg]:b.size.pointerWidth.lg,[Kg]:b.size.pointerWidth.lg}}],"tooltip_base"),(0,v.style)(Pm,"tooltip_position_left"),(0,v.style)(Om,"tooltip_position_right"),(0,v.style)(km,"tooltip_position_bottom"),(0,v.style)(Cm,"tooltip_tip_position_left"),(0,v.style)(Am,"tooltip_tip_position_right"),(0,v.style)([Yg,Xg,{width:b.size.tapTarget.sm,height:b.size.tapTarget.sm,padding:0,display:"inline-flex",justifyContent:"center",alignItems:"center",color:b.color.secondary.main,cursor:"pointer",border:0,backgroundColor:"transparent",position:"relative",":hover":{color:b.color.secondary.mainActive,outline:"0.938rem"},":active":{color:b.color.secondary.mainActive,outline:"none"},":focus":{outline:"none"}}],"tooltip-icon"));(0,v.globalStyle)(`${Jg}:focus > span:first-of-type`,{borderRadius:b.border.radius.interactive,...Fn});const ey=(0,v.style)({display:"flex"},"tooltip_image");(0,v.globalStyle)(`${ey} > img `,{maxWidth:`calc(${Zg}-2*${b.space[200]})`}),(0,v.style)({justifyContent:"flex-start",paddingBottom:b.space[100]},"tooltip_image_top_left"),(0,v.style)({justifyContent:"center",paddingBottom:b.space[100]},"tooltip_image_top_center"),(0,v.style)({justifyContent:"flex-start",paddingTop:b.space[100]},"tooltip_image_bottom_left"),(0,v.style)({justifyContent:"center",paddingTop:b.space[100]},"tooltip_image_bottom_center"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-credit-card-input"),(0,v.style)({height:b.size.icon.md},"credit_card_cvv_image"),(0,v.style)({selectors:{"[dir='rtl'] &":{direction:"ltr",textAlign:"right"}}},"credit_card_number_input_rtl"),y.endFileScope();var ty=["name","maskOptions","prefix","suffix","currencyType","value"],ry=(0,m.forwardRef)((function(e,t){var r=e.name,n=e.maskOptions,a=e.prefix,i=e.suffix,o=e.currencyType,l=void 0===o?"USD":o,s=e.value,c=h(e,ty),u=(0,m.useContext)(Wn),d=qn(u,n,l),p=d.currencyMaskOptions,y=d.intlCurrencyPrefix,v=d.intlCurrencySuffix,b="decimal",w=s;if(p&&(0===p.scale&&(b="numeric"),w)){var x=ro(w.split("."),2),k=x[0],_=x[1];if(_){var S=_.substring(0,p.scale);w=k+(S?p.radix+S:"")}}return g().createElement(Hg,f({name:r,value:w,maskOptions:p,prefix:a||y,suffix:i||v,inputMode:b,ref:t,"data-ppui-info":"currency-input_3.2.7__8.12.0"},c))}));y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-table");const ny=e=>`screen and (${e}-width: ${E})`,ay=(0,v.style)({},"table-type_data"),iy=(0,v.style)({},"table-type_summary"),oy=(0,v.style)({},"table-fixed_first_column_table"),ly=(0,v.style)({},"table-section_summary_heading"),sy=(0,v.style)({},"table-section_summary_item"),cy=(0,v.style)({},"table-section_summary_adjust"),uy=(0,v.style)({},"table-section_summary_total"),dy=(0,v.style)({},"table-section_utility"),py=(0,v.style)({display:"inline-block",overflow:"auto",maxHeight:"100%",width:"100%"},"table-scroll_context"),fy=(0,v.style)({border:"none",tableLayout:"fixed",display:"block",overflow:"auto"},"table-scroll_context_table"),hy=(0,v.style)({borderSpacing:0,borderCollapse:"separate",border:"none",tableLayout:"fixed",overflow:"auto",width:"100%"},"table-r_table_base"),my=(0,v.style)({"@media":{[ny("max")]:{border:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,borderEndEndRadius:b.border.radius.lg,borderEndStartRadius:b.border.radius.lg}}},"table-summary_wrap"),gy=(0,v.style)({display:"block"},"table-fixed1st"),yy={position:"sticky",top:0,zIndex:1},vy=(0,v.style)(yy,"table-head_sticky"),by=(0,v.style)({position:"sticky",bottom:0,zIndex:10},"table-foot_sticky"),wy=(0,v.style)({"@media":{[ny("max")]:{selectors:{[`${hy} &`]:{display:"none"}}}},selectors:{[`${fy} &`]:yy}},"table-thead"),xy=(0,v.style)({backgroundColor:b.color.background.surface},"table-tbody"),ky=(0,v.style)({backgroundColor:b.color.background.surface},"table-tfoot"),_y=(0,v.style)({textAlign:"start",padding:b.space[150],selectors:{[`${xy} &:first-of-type`]:{...Pe,backgroundColor:"inherit"},[`${fy} ${wy} &`]:{borderBottom:"none",position:"sticky",top:0,backgroundColor:b.color.background.main},[`${fy} ${xy} &`]:{...Eo,clipPath:`polygon(0 0, 0 100%, calc(100% + ${b.elevation.blurBase}) 100%, calc(100% + ${b.elevation.blurBase}) 0)`},[`${oy} &`]:{position:"sticky"},[`${oy} &:first-of-type`]:{left:0},[`${oy} ${wy} &:first-of-type`]:{...Eo,borderBottom:"none",clipPath:`polygon(0 0, 0 100%, calc(100% + ${b.elevation.blurBase}) 100%, calc(100% + ${b.elevation.blurBase}) 0)`,zIndex:2},[`[dir='rtl'] ${oy} ${wy} &`]:{clipPath:`polygon(\n calc(-1 * ${b.elevation.blurBase}) 0,\n calc(-1 * ${b.elevation.blurBase}) 100%,\n 100% 100%,\n 100% calc(-1*${b.elevation.blurBase})\n )`,right:0,left:"unset"},[`[dir='rtl'] ${oy} ${xy} &:first-of-type`]:{position:"sticky",left:"unset",right:0,clipPath:`polygon(\n calc(-1*${b.elevation.blurBase}) 0,\n calc(-1*${b.elevation.blurBase}) 100%,\n 100% 100%,\n 100% calc(-1*${b.elevation.blurBase})\n )`},[`${ay} ${wy} &`]:{...Pe,backgroundColor:b.color.background.main},[`${iy} ${wy} &`]:{...ot,backgroundColor:b.color.background.surface},[`${iy} ${ky} &`]:{...ot,backgroundColor:b.color.background.main},[`${hy} ${ky} &:first-of-type`]:{...ot,position:"sticky",bottom:0,verticalAlign:"middle"},[`${hy} ${xy} &`]:{position:"sticky",left:0},[`${hy} &`]:{"@media":{[ny("max")]:{display:"block",height:"auto",padding:`${b.space[50]} ${b.space[100]}`,border:"none !important"}}},[`${hy} &:first-of-type`]:{"@media":{[ny("min")]:{paddingLeft:b.space[200]}}},[`${hy} &:last-of-type`]:{"@media":{[ny("min")]:{paddingRight:b.space[200]}}}}},"table-th"),Sy=(0,v.style)({backgroundColor:b.color.background.surface,borderBottom:`${b.space[50]} solid ${b.color.background.main}`,selectors:{[`${hy} &`]:{"@media":{[ny("max")]:{display:"grid",width:"100%",gridTemplateAreas:"'a1 a2 a3' 'b1 b2 b3'",gridTemplateColumns:"auto 1fr auto",gap:`0 ${b.space[100]}`,padding:`${b.space[150]} 0`}}},[`${wy} &`]:{whiteSpace:"nowrap"},[`${ky} &`]:{backgroundColor:b.color.background.main,whiteSpace:"nowrap"},[`${sy} &`]:{borderBottom:"none"},[`${cy} &`]:{borderBottom:"none",borderTop:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`},[`${uy} &`]:{borderTop:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,backgroundColor:b.color.background.main}}},"table-row_base"),Ey=(0,v.style)({backgroundColor:b.color.selectedRange.main,color:b.color.selectedRange.contrast},"table-row_selected"),Cy=(0,v.style)({...Ae,color:"inherit",padding:b.space[150],height:`calc(${b.size.tapTarget.default} + ${b.space[150]} * 2)`,width:"var(--normalWidth)",verticalAlign:"middle",borderBottom:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,paddingLeft:b.space[200],selectors:{[`${dy} &`]:{borderBottom:"none",backgroundColor:b.color.background.surface},[`${ly} &`]:{textAlign:"start",padding:b.space[150],borderBottom:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`},[`${sy} &`]:{borderBottom:"none"},[`${sy} &:first-of-type`]:{borderLeft:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`},[`${sy} &:last-of-type`]:{borderRight:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`},[`${cy} &`]:{...Pe,borderTop:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,borderBottom:"none"},[`${cy} &:first-of-type`]:{borderLeft:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`},[`${cy} &:last-of-type`]:{borderRight:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`},[`${uy} &`]:{...Pe,backgroundColor:b.color.background.main,borderTop:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`},[`${uy} &:first-of-type`]:{borderEndStartRadius:b.border.radius.lg,borderLeft:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`},[`${uy} &:last-of-type`]:{borderEndEndRadius:b.border.radius.lg,borderRight:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`}}},"table-cell_base"),$y=(0,v.style)({"@media":{[ny("min")]:{":first-of-type":{paddingLeft:b.space[200]},":last-of-type":{paddingRight:b.space[200]}},[ny("max")]:{display:"block",height:"auto",padding:`${b.space[50]} ${b.space[100]}`,border:"none !important"}}},"table-cell_resp"),Ay=(0,v.style)([$e,{borderSpacing:0,borderCollapse:"separate"}],"table-base"),Ty=(0,v.style)({textAlign:"start"},"table-align_start"),Oy=(0,v.style)({textAlign:"end"},"table-align_end"),zy=(0,v.style)({textAlign:"center"},"table-align_center"),Py=(0,v.style)({"@media":{[ny("max")]:{display:"none"}}},"table-m_hide"),Fy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a1"}}},"table-m_a1"),Ny=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a2"}}},"table-m_a2"),Ry=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a3",textAlign:"end",width:"100%"}}},"table-m_a3"),Iy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / a2 / a2"}}},"table-m_a12"),Ly=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a2 / a2 / a3 / a3"}}},"table-m_a12"),My=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / a3 / a3"}}},"table-m_a123"),Dy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"b1"}}},"table-m_b1"),Hy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"b2"}}},"table-m_b2"),By=(0,v.style)({"@media":{[ny("max")]:{gridArea:"b3",textAlign:"end",width:"100%"}}},"table-m_b3"),jy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"b1 / b1 / b2 / b2"}}},"table-m_b12"),Wy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"b2 / b2 / b3 / b3"}}},"table-m_b23"),Vy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"b1 / b1 / b3 / b3",width:"100%"}}},"table-m_b123"),Uy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / b1 / b1"}}},"table-m_ab1"),qy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a2 / a2 / b2 / b2"}}},"table-m_ab2"),Gy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a3 / a3 / b3 / b3",width:"100%"}}},"table-m_ab3"),Ky=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / b2 / b2"}}},"table-m_ab12"),Yy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a2 / a2 / b3 / b3",width:"100%"}}},"table-m_ab23"),Xy=(0,v.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / b3 / b3",width:"100%"}}},"table-m_ab123"),Zy=(0,v.style)({width:"100%"},"table-w100"),Qy=(0,v.style)({"@media":{[ny("max")]:{width:"var(--mWidth)"}}},"table_cell-mobile_width"),Jy=(0,v.style)({"@media":{[ny("max")]:{textAlign:"start"}}},"table-align_start"),ev=(0,v.style)({"@media":{[ny("max")]:{textAlign:"end"}}},"table-align_end"),tv=(0,v.style)({"@media":{[ny("max")]:{textAlign:"center"}}},"table-align_center");y.endFileScope();var rv=["className","children","sticky","as"],nv=(0,m.forwardRef)((function(e,t){var r=e.className,n=e.children,a=e.sticky,i=void 0!==a&&a,o=e.as,s=void 0===o?"tbody":o,c=h(e,rv),u=Z(l[s],i&&"thead"===s&&vy,i&&"tfoot"===s&&by,r);return g().createElement(s,f({ref:t,className:u},c,{"data-ppui":"true"}),n)})),av=function(e){return g().createElement(nv,f({},e,{as:"tbody","data-ppui":"true"}))},iv=function(e){return g().createElement(nv,f({},e,{as:"thead","data-ppui":"true"}))},ov=["isSelected","section","className","children"],lv=(0,m.forwardRef)((function(e,t){var r=e.isSelected,n=e.section,a=e.className,i=e.children,o=h(e,ov),l=Z(Sy,r&&Ey,n&&function(e){switch(e){case"summaryHeading":return ly;case"summaryItem":return sy;case"summaryAdjust":return cy;case"summaryTotal":return uy;case"utility":return dy;default:return""}}(n),a);return g().createElement("tr",f({ref:t,className:l},o,{"data-ppui":"true"}),i)})),sv=["className","mobile","claimsRemainingSpace","width","span","isHeader","children","align"];function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var uv=(0,m.forwardRef)((function(e,t){var r=e.className,n=e.mobile,a=e.claimsRemainingSpace,i=e.width,o=e.span,l=void 0===o?1:o,s=e.isHeader,c=e.children,u=e.align,d=h(e,sv),p={hidden:Py,a1:Fy,a2:Ny,a3:Ry,b1:Dy,b2:Hy,b3:By,a12:Iy,a23:Ly,a123:My,b12:jy,b23:Wy,b123:Vy,ab1:Uy,ab2:qy,ab3:Gy,ab12:Ky,ab23:Yy,ab123:Xy},m=function(e,t){switch(e){case"right":case"end":return t?ev:Oy;case"center":return t?tv:zy;default:return t?Jy:Ty}},y=Z(Cy,s&&_y,u&&m(u,!1),(null==n?void 0:n.align)&&m(n.align,!0),(null==n?void 0:n.placement)&&$y,(null==n?void 0:n.placement)&&p[n.placement],(null==n?void 0:n.width)&&Qy,a&&Zy,r),v={"--normalWidth":i,"--mWidth":null==n?void 0:n.width},b=s?"th":"td",w=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d);return l>1&&(w.colSpan=l),g().createElement(b,f({ref:t,className:y},w,{style:v,"data-ppui":"true"}),c)})),dv=function(e){return g().createElement(uv,f({isHeader:!0},e,{"data-ppui":"true"}))};y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-data-table");const pv=(0,v.style)({display:"flex",alignItems:"center"},"data_table-flex_container"),fv=(0,v.style)({display:"grid",gridTemplateColumns:"1fr auto",gap:b.space[150],alignItems:"center"},"data_table-setting_icon"),hv=(0,v.style)({},"data_table-checkbox");(0,v.globalStyle)(`${hv} label`,{display:"block"});const mv=(0,v.style)({visibility:"hidden"},"data_table-checkbox_disabled"),gv=(0,v.style)({backgroundSize:b.size.circle.lg},"data_table-empty_table_label"),yv=(0,v.style)({marginTop:b.space[150],display:"grid",gridTemplateColumns:"auto",gridTemplateRows:"auto auto",placeItems:"center"},"data_table-info_block"),vv=(0,v.style)({margin:`${b.space[150]} 0`},"data_table-iblock_msg"),bv=(0,v.style)({margin:`${b.space[150]} 0`},"data_table-iblock_action"),wv=(0,v.style)({width:b.size.pictogram.sm},"data_table-iblock_deco"),xv=((0,v.style)({padding:b.space[100],display:"inline-grid",gridTemplateColumns:"auto 1fr",placeItems:"center",gap:b.space[100],height:"auto"},"data_table-icon_message"),(0,v.style)({padding:`${b.space[100]} ${b.space[150]}`},"data_table-see_more"),(0,v.style)({marginLeft:b.space[50],selectors:{"[dir='rtl'] &":{marginRight:b.space[50],marginLeft:0}}},"data_table-header_button")),kv=(0,v.style)({color:b.color.primary.main,border:`${b.border.thickness.normal} solid ${b.color.primary.main}`,borderRadius:b.border.radius.interactive},"data_table-currently_sorted_by_icon"),_v=((0,v.style)({position:"relative",":before":{content:" ",position:"absolute",inset:0,backgroundColor:b.color.structure.scrim,zIndex:1}},"data_table-loading"),(0,v.style)({padding:b.space[150],display:"grid",placeItems:"center"},"data_table-spinner"));(0,v.style)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1},"data_table-spinner"),y.endFileScope(),g().memo((function(e){var t,r=e.columns,n=e.columnOrder,a=e.isInteractive,i=e.toggleAllLabel,o=void 0===i?"Toggle all rows":i,l=e.selectedRows,s=e.idPrefix,c=e.rows,u=e.interactiveCellContentClassName,d=e.onSelection,p=e.onSort,f=e.sortInProgress,h=e.settings,y=(0,m.useMemo)((function(){return c.reduce((function(e,t){var r=t.id;return t.isUnselectable||e.push(r),e}),[])}),[c]),v=Z(pv,0===y.length&&mv);if(a){var b=l.length>0,w=y.length&&l.length===y.length;t=g().createElement(Bh,{name:"".concat(s,"DataTableToggleAll"),id:"".concat(s,"DataTableToggleAll"),"aria-label":o,className:v,partial:b&&!w,checked:b||w,onChange:function(e){d(e.target.checked?y:[])},"data-ppui":"true"})}var x=n.length-1,k=n.map((function(e,n){return function(e,r,n,i){var o=r.title,l=r.sortButtonLabel,s=r.sortDirection,c=r.isSortCurrent,d=r.align,m=r.width,y=r.claimsRemainingSpace,v=o;if(s){var b="ascending"===s?Ea:Sa,w=l||"".concat(c?"Currently":""," sorted by ").concat(e," in ").concat(s," order");v=g().createElement("div",{className:pv,"data-ppui":"true"},o,g().createElement(Sd,{className:xv,iconClassName:c&&kv,svgIconComponent:b,onClick:function(){p&&p(e,"ascending"===s?"descending":"ascending")},buttonType:"tertiary",btnState:f===e?"processing":"initial",size:"sm","data-ppui":"true"},w))}if(0===n&&a&&(v=function(e){return g().createElement("div",{className:Z(pv,u),"data-ppui":"true"},t,e)}(v)),i&&"function"==typeof(null==h?void 0:h.onClick)){var x,k=g().createElement(Sd,{svgIconComponent:Ha,buttonType:"tertiary",onClick:function(){h&&h.onClick&&h.onClick()},"data-ppui":"true"},h.screenReaderText);!function(e){return"string"==typeof e&&e.length>0||!!e}(o)?(v=k,d=null!==(x=d)&&void 0!==x?x:"end"):v=g().createElement("div",{className:fv,"data-ppui":"true"},g().createElement("div",{"data-ppui":"true"},v),g().createElement("div",{"data-ppui":"true"},k))}return g().createElement(dv,{key:e,scope:"col","aria-sort":s,align:d,width:m,claimsRemainingSpace:y,"data-ppui":"true"},v)}(e,r[e],n,n===x)}));return g().createElement(iv,{sticky:!0,"data-ppui":"true"},g().createElement(lv,{"data-ppui":"true"},k))})),g().memo((function(e){var t,r=e.rows,n=e.isInteractive,a=e.idPrefix,i=e.selectedRows,o=e.columns,l=e.columnOrder,s=e.interactiveCellContentClassName,c=e.onSelection,u=e.loadingProps,d=r.map((function(e){var t,r=e.id;n&&(t=g().createElement(Bh,{name:"".concat(a,"DataTable").concat(r),id:"".concat(a,"DataTable").concat(r),"aria-label":r,className:Z(hv,e.isUnselectable&&mv),disabled:!!e.isUnselectable,checked:i.includes(r),onChange:function(e){var t=e.target.checked?i.concat(r):i.filter((function(e){return e!==r}));c(t)},"data-ppui":"true"}));var u=n&&i.includes(r),d=function(e,t){return l.map((function(r,a){var i=function(e,t){var r=e[t]?e[t].value:"";if(o[t].cellAs){var n=o[t].cellAs;r=g().createElement(n,f({id:e.id},e[t],{"data-ppui":"true"}))}return r}(e,r),l=o[r],c=l.mobile,u=l.align,d=l.width;return 0===a&&n?g().createElement(dv,{key:r,mobile:c,align:u,width:d,scope:"row","data-ppui":"true"},function(e,t){return g().createElement("div",{className:Z(pv,s),"data-ppui":"true"},e,t)}(t,i)):g().createElement(uv,{key:r,mobile:c,align:u,width:d,"data-ppui":"true"},i)}))}(e,t);return g().createElement(lv,{key:r,isSelected:u,"data-ppui":"true"},d)})),p=function(e){var t=e.decoration,r=e.buttonLabel,n=e.buttonRef,a=e.message,i=e.isError,o=e.buttonAction,l=e.processing,s=r&&o?g().createElement(Zf,{onClick:o,secondary:i,tertiary:!i,size:"sm",ref:n,key:"load-btn",btnState:l?"processing":"initial","data-ppui":"true"},r):null;return g().createElement("div",{className:yv,"data-ppui":"true"},t,g().createElement("div",{className:vv,"data-ppui":"true"},a),g().createElement("div",{className:bv,"data-ppui":"true"},s))};return d.length?g().createElement(av,{"data-ppui":"true"},d):(t=u.errorMsg?g().createElement(p,{decoration:g().createElement(Ma,{color:"PrimaryMain",size:"xl","data-ppui":"true"}),buttonLabel:u.retryButtonLabel,buttonAction:u.onRetry,buttonRef:u.retryButtonRef,isError:!0,message:u.errorMsg,processing:u.isLoading,"data-ppui":"true"}):u.isLoading?g().createElement("div",{className:_v,"data-ppui":"true"},g().createElement(vl,{size:"lg",as:"div",screenReaderText:u.loadingText,"aria-live":u.loadingText,"data-ppui":"true"})):g().createElement(p,{decoration:g().createElement("img",{className:wv,alt:"emtpy",src:"https://www.paypalobjects.com/paypal-ui/pictograms/grayscale/svg/grayscale-1.svg","data-ppui":"true"}),buttonLabel:u.retryButtonLabel,buttonAction:u.onRetry,buttonRef:u.retryButtonRef,isError:!1,message:u.emptyMsg,"data-ppui":"true"}),g().createElement(av,{"data-ppui":"true"},g().createElement(lv,{"data-ppui":"true"},g().createElement(uv,{span:l.length,align:"center",className:gv,mobile:{placement:"ab123"},"data-ppui":"true"},t))))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-date-input");const{caretSize:Sv,caretTopOffset:Ev,caretCenterOffset:Cv}=gm,$v={width:"100%"},Av=e=>{const t=["end"===e?b.color.selectedRange.main:b.color.background.surface,"end"===e?b.color.background.surface:b.color.selectedRange.main];return(0,v.style)({background:`linear-gradient(to right, ${t[0]} 50%, ${t[1]} 50%)`},`calendar_range_${e}`)},Tv=e=>({width:e,height:e}),Ov=()=>(0,v.style)([mo,ym,km,Sm,{backgroundColor:b.color.background.surface,position:"absolute",top:`calc(${b.size.field.lg} + ${b.space[100]})`,padding:b.space[200],border:`${b.border.thickness.normal} solid ${b.color.background.surface}`,borderRadius:b.border.radius.sm,zIndex:q,cursor:"initial",vars:{[Sv]:b.size.pointerWidth.lg,[Ev]:`calc(${b.size.pointerWidth.lg} / 2)`,[Cv]:b.size.pointerWidth.lg}}],"calendar_container"),zv=(0,v.style)({cursor:"pointer"},"calendar_trigger"),Pv=(0,v.style)([Ov(),{selectors:{"&:after":{top:`calc(${b.border.thickness.normal} * -1)`}}}],"calendar_container"),Fv=(0,v.style)([Ov(),{right:`calc(${b.space[100]} * -1)`,selectors:{"&:before":{left:`calc(100% - ((${b.size.icon.lg} / 2) + ${b.space[200]}))`},"&:after":{top:`calc(${b.border.thickness.normal} * -1)`,left:`calc(100% - ${b.space[600]})`}}}],"calendar_container-left"),Nv=(0,v.style)([Ov(),{left:`calc(${b.space[100]} * -1)`,selectors:{"&:before":{left:`calc(${b.size.icon.lg} / 2)`},"&:after":{top:`calc(${b.border.thickness.normal} * -1)`,left:`calc((${b.size.icon.lg} / 2) - ${b.space[100]})`}}}],"calendar_container-right"),Rv=((0,v.style)({display:"flex",alignItems:"center",justifyContent:"space-between",whiteSpace:"nowrap","@media":{[`screen and (max-width: ${C})`]:{marginTop:b.space[50]}}},"calendar_nav"),(0,v.style)({},"nav_prev_btn"),(0,v.style)({},"nav_next_btn"),(0,v.style)({selectors:{"&:after":{display:"none"}}},"calendar_nav-no-focus"),(0,v.style)({visibility:"hidden"},"calendar_nav-hidden"),(0,v.style)({},"full_width"));(0,v.globalStyle)(`${Rv} table`,$v);const Iv=(0,v.style)({borderSpacing:0,"@media":{[`screen and (max-width: ${E})`]:$v}},"calendar_table");(0,v.globalStyle)(`${Iv} th, ${Iv} td`,{textAlign:"center",padding:`${b.space[25]} 0`}),(0,v.style)({borderTop:`${b.border.thickness.normal} solid transparent`,borderBottom:`${b.border.thickness.normal} solid transparent`,backgroundColor:`${b.color.selectedRange.main}`},"cell_in_range"),Av("start"),Av("end"),(0,v.style)([Tv(b.size.tapTarget.default),$e,{border:"none",padding:0,margin:`0 ${b.space[25]}`,textDecoration:"none",cursor:"pointer",borderRadius:b.border.radius.interactive,backgroundColor:"transparent",selectors:{"&:hover":{border:`${b.border.thickness.emphasis} solid ${b.color.primary.mainHover}`}},"@media":{[`screen and (max-width: ${_})`]:Tv(b.size.tapTarget.sm),[`screen and (min-width: ${_}) and (max-width: ${S})`]:Tv(b.size.tapTarget.sm)}}],"date"),(0,v.style)({color:b.color.selectedRange.contrast},"date_in_range"),(0,v.style)({color:b.color.background.mediumContrast},"date_not_current"),(0,v.style)({textDecorationLine:"line-through",cursor:"not-allowed",color:b.color.background.mediumContrast,selectors:{"&:hover":{border:"none"}}},"disabled"),(0,v.style)({border:`${b.border.thickness.normal} solid ${b.color.background.highContrast}`},"today"),(0,v.style)({color:b.color.selected.contrast,border:`${b.border.thickness.normal} solid ${b.color.selected.main}`,backgroundColor:b.color.selected.main},"selected"),(0,v.style)({color:b.color.specialty.main,border:`${b.border.thickness.normal} solid ${b.color.specialty.main}`},"due_date"),(0,v.style)({color:b.color.selected.contrast,border:`${b.border.thickness.normal} solid ${b.color.specialty.main}`},"due_date_selected"),(0,v.style)([Tv(b.size.tapTarget.default),{display:"inline-block",position:"relative","@media":{[`screen and (max-width: ${_})`]:Tv(b.size.tapTarget.sm),[`(min-width: ${_}) and (max-width: ${S})`]:Tv(b.size.tapTarget.sm)}}],"icon_container"),(0,v.style)({position:"absolute",bottom:0,right:0,pointerEvents:"none",backgroundColor:b.color.background.surface,borderRadius:b.border.radius.interactive,color:b.color.specialty.main},"icon"),(0,v.style)({display:"flex",alignItems:"center",marginTop:b.space[100],marginInlineStart:b.space[200]},"legend"),(0,v.style)({display:"flex",alignItems:"center",whiteSpace:"nowrap",marginInlineEnd:b.space[200]},"legend_item"),(0,v.style)({color:b.color.background.mediumContrast},"legend_item_label"),(0,v.style)({width:b.typography.caption.size,height:b.typography.caption.size,display:"inline-block",marginInlineEnd:b.space[50],borderRadius:b.border.radius.interactive},"key"),(0,v.style)({backgroundColor:b.color.background.surface,color:b.color.specialty.main,marginInlineEnd:b.space[50],borderRadius:b.border.radius.interactive},"due_date_legend_key");const Lv=(0,v.style)({},"date_input-wrapper");(0,v.globalStyle)(`${Lv} input`,{color:b.color.background.mediumContrast}),(0,v.globalStyle)(`${Lv} input:focus`,{color:b.color.background.highContrast}),(0,v.globalStyle)(`${Lv} [dir="rtl"] input`,{textAlign:"right",direction:"ltr"}),y.endFileScope();var Mv={mask:"m`/d`/y",lazy:!1,blocks:{d:{mask:Dg.Range,from:1,to:31,maxLength:2,placeholderChar:"D"},m:{mask:Dg.Range,from:1,to:12,maxLength:2,placeholderChar:"M"},y:{mask:Dg.Range,from:1900,to:2999,maxLength:4,placeholderChar:"Y"}}},Dv=function(e){var t=e.isCalendarVisible,r=e.label,n=e.children,a=e.calendarTriggerRef,i=e.wrapperContainerRef,o=e.onShowCalendar,l=e.calendarInSheet,s=void 0!==l&&l,c=ro((0,m.useState)(!1),2),u=c[0],d=c[1],p=(0,m.useRef)(),f=ro((0,m.useState)(Pv),2),h=f[0],y=f[1],v=function(e){new re(e.key||e.keyCode).IS_ESC&&o(!1)},b=function(e){a.current.contains(e.target)||p.current.contains(e.target)||o(!1)},w=function(){o(!1)};return(0,m.useLayoutEffect)((function(){y(Pv);var e,r,n=H()&&window.innerWidth<752;return function(){var e,t=(e=a)&&e.current?e.current:null,r=t.getBoundingClientRect(),n=H()&&window.innerWidth||document.documentElement.clientWidth,o=200+.0625*((H()&&parseFloat(window.getComputedStyle(document.documentElement).fontSize))-16)*200;if(null==i?void 0:i.current){var l=i.current.getBoundingClientRect();r.left-l.left<o?y(Nv):l.right+o>l.width&&y(Fv)}else t&&(r.left<o?y(Nv):r.right+o>n&&y(Fv))}(),d(n),!n&&t&&(window.addEventListener("resize",w),document.addEventListener("keydown",v),s||document.addEventListener("click",b),null===(e=p.current)||void 0===e||null===(r=e.scrollIntoView)||void 0===r||r.call(e,{behavior:"smooth",block:"nearest"})),function(){window.removeEventListener("resize",w),document.removeEventListener("keydown",v),document.removeEventListener("click",b)}}),[t]),u||s?g().createElement(ep,{isOpen:t,onCloseComplete:function(){return o(!1)},noCloseButton:!0,title:r,skipFormFocus:!0,"data-ppui":"true"},s&&!u?g().createElement("div",{className:Rv,"data-ppui":"true"},n):n):t?g().createElement("div",{className:h,ref:p,"data-ppui":"true"},n):null};function Hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hv(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jv(e){if(!e)return null;var t=e.split("/"),r=Number(t[0]),n=Number(t[1]),a=Number(t[2]);return new Date(a,r-1,n)}function Wv(e){return e?new Intl.DateTimeFormat("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}).format(e):""}var Vv=Intl.DateTimeFormat().resolvedOptions().timeZone,Uv=["name","label","className","calendar","isCalendarVisible","wrapperContainerRef","onShowCalendar","maskOptions","selectedDate","onSelection","parseDate","formatDate","formatterSkeleton","sheetContainerRef","onComplete","onAccept","calendarInSheet","isLabelHidden"];(0,m.forwardRef)((function(e,t){var r=e.name,n=e.label,a=e.className,i=e.calendar,o=e.isCalendarVisible,l=e.wrapperContainerRef,s=e.onShowCalendar,c=e.maskOptions,u=e.selectedDate,d=e.onSelection,p=e.parseDate,y=e.formatDate,v=e.formatterSkeleton,b=void 0===v?"yyyyMMdd":v,w=e.sheetContainerRef,x=e.onComplete,k=e.onAccept,_=e.calendarInSheet,S=e.isLabelHidden,E=h(e,Uv);d||(d=function(){});var C=(0,m.useContext)(Wn),$=(0,m.useRef)(),A=(0,m.useRef)(),T=t||A,O=(0,m.useRef)(),z=(0,m.useMemo)((function(){return function(e,t,r){if(!e||!e.dateInputMaskFormat)return Bv(Bv({},Mv),r);var n=e.dateInputMaskFormat({style:t}).maskArray,a=n.reduce((function(e,t){var r=t.type,n=t.value;return"month"!==r&&"day"!==r&&"year"!==r||(e[r]=n[0].toUpperCase()),e}),{day:"",month:"",year:""}),i=n.map((function(e){var t=e.type,r=e.value;switch(t){case"month":return"m";case"day":return"d";case"year":return"y";default:var n=r.replace(/[^\x00-\x7F]/g,"");return"`".concat(n)}})).join("");return Bv(Bv(Bv({},Mv),{},{blocks:{d:Bv(Bv({},Mv.blocks.d),{},{placeholderChar:a.day}),m:Bv(Bv({},Mv.blocks.m),{},{placeholderChar:a.month}),y:Bv(Bv({},Mv.blocks.y),{},{placeholderChar:a.year})}},r),{},{mask:i})}(C,b,c)}),[b,c]),P=(0,m.useMemo)((function(){return function(e,t,r,n){if(!e||!e.dateTimeFormatter)return{_formatDate:r||Wv,_parseDate:n||jv};var a=e.dateTimeFormatter({style:t,timeZone:Vv});return{_formatDate:r||function(e){return e?a.format(e):""},_parseDate:n||function(e){return e&&a.parse(e)}}}(C,b,y,p)}),[y,p]),F=P._formatDate,N=P._parseDate,R=i&&g().createElement(g().Fragment,null,g().createElement(Ca,{size:"sm",onMouseDown:function(e){return e.preventDefault()},onClick:function(){T.current.focus(),s(!o)},svgElementRef:$,color:"sysColorBackgroundMediumContrast",className:zv,"aria-hidden":"true","data-ppui":"true"}),g().createElement(Dv,{isCalendarVisible:o,onShowCalendar:s,label:n,sheetContainerRef:w,wrapperContainerRef:l,calendarTriggerRef:$,calendarInSheet:_,"data-ppui":"true"},i)),I=F(u).replace(/\D/g,"");O.current=I;var L=Z(Lv,a);return g().createElement(Hg,f({name:r,label:n,rightIcon:R,maskOptions:z,className:L,inputMode:"numeric","data-ppui-info":"date-input_4.1.5__8.12.0"},E,{onComplete:function(e,t,r){t!==O.current&&d(N(e)),x&&x(e,t,r)},onAccept:function(e,t,r){t||d(null),k&&k(e,t,r)},value:I,ref:T,isLabelHidden:S}))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-dialog");const{variables:qv}=n,{ppuiEaseInOut:Gv}=qv,Kv=b.space[400],Yv=`calc(${b.size.media.xl} * 0.75)`,Xv=`screen and (max-width: ${E})`,Zv=`screen and (max-width: ${S})`,Qv=`screen and (min-width: ${E})`,Jv={borderTopLeftRadius:b.border.radius.jumbo,borderTopRightRadius:b.border.radius.jumbo},eb=(e="center")=>(0,v.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`dialog-container_center_${e}`),tb=((0,v.style)([eb(),{width:"75%",maxWidth:Yv,"@media":{[Xv]:{width:`calc(100% - ${b.space[600]})`},[Zv]:{width:`calc(100% - ${b.space[400]})`}}}],"dialog-container_middle"),(0,v.style)([{minHeight:"8rem",borderRadius:b.border.radius.jumbo,maxHeight:"75dvh",opacity:0,transition:`opacity ${b.motion.duration.depart} ${Gv}`}],"dialog"),(0,v.style)(Jv,"dialog_header_scrolled"),(0,v.style)([eb("center"),{position:"fixed",inset:0,zIndex:G,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${b.motion.duration.depart} ease-in-out,\n visibility ${b.motion.duration.depart} ${b.motion.duration.depart}`,backgroundColor:b.color.overlay.mainHover,boxShadow:"none"}],"dialog_backdrop"));(0,v.globalStyle)(`${tb} [aria-hidden="false"], ${tb} [aria-hidden="true"]`,{transitionDuration:b.motion.duration.arrive}),(0,v.style)({visibility:"visible",opacity:1,transition:`opacity ${b.motion.duration.depart} ease-in-out`},"dialog_backdrop_show"),(0,v.style)({opacity:1,transition:`opacity ${b.motion.duration.depart} ease-in-out ${b.motion.duration.depart}`},"dialog_backdrop_show_article"),(0,v.style)({maxHeight:"70dvh",padding:`0 ${Kv}`},"dialog-content"),(0,v.style)({"@media":{[Zv]:{padding:`0 ${b.space[200]} ${b.space[300]}`}}},"dialog-content_no_padding");const rb=(0,v.style)({position:"absolute",right:b.space[50],top:b.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:b.space[50],right:"auto","@media":{[Qv]:{left:b.size.indicator.md}}}}},"dialog-content_close");(0,v.globalStyle)(`${rb}`,{"@media":{[Qv]:{right:b.size.indicator.md,top:b.space[150]}}}),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-divider"),(0,v.style)({border:"none",borderTop:`${b.border.thickness.normal} solid ${b.color.structure.divider}`,margin:`${b.space[150]} 0`},"divider_base"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-dropdown-menu");const nb=(0,v.style)({position:"relative",textAlign:"start"},"dropdown-base"),ab=(0,v.style)([Yt,hn,{pointerEvents:"none",position:"absolute",transition:`font-size ${b.motion.duration.hover} ease-in-out, top ${b.motion.duration.hover} ease-in-out, background-color ${b.motion.duration.hover} linear`,insetInlineStart:b.space[150],top:`calc((${b.size.field.lg} - ${b.typography.fieldLabelLg.lineHeight}) / 2)`,insetInlineEnd:`calc(${b.space[150]} + ${b.size.icon.sm})`}],"dropdown-label"),ib=(0,v.style)([Pn],"dropdown-button_active"),ob=(0,v.style)([Zt,hn,{boxSizing:"border-box",height:b.size.field.lg,width:"100%",border:`${b.border.thickness.normal} solid ${b.color.structure.borderLowContrast}`,borderRadius:b.border.radius.sm,backgroundColor:b.color.background.surface,paddingTop:`calc(${b.space[100]} + ${b.space[25]} + ${b.typography.fieldLabelSm.lineHeight} - ${b.border.thickness.normal})`,paddingInlineEnd:`calc(${b.space[150]} + ${b.size.icon.sm} - ${b.border.thickness.normal})`,paddingInlineStart:`calc(${b.space[150]} - ${b.border.thickness.normal})`,paddingBottom:`calc(${b.space[150]} - ${b.border.thickness.normal})`,cursor:"pointer",textAlign:"start",":focus":Fn}],"dropdown-button"),lb=(0,v.style)({border:`${b.border.thickness.emphasis} solid ${b.color.error.main}`,paddingTop:`calc(${b.space[100]} + ${b.space[25]} + ${b.typography.fieldLabelSm.lineHeight} - ${b.border.thickness.emphasis})`,paddingInlineEnd:`calc(${b.space[150]} + ${b.size.icon.sm} - ${b.border.thickness.emphasis})`,paddingInlineStart:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`,paddingBottom:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`},"dropdown-button_error"),sb=(0,v.style)([Gt,{top:b.space[100]}],"dropdown-label_active"),cb=(0,v.style)({pointerEvents:"none",position:"absolute",top:`calc(${b.space[100]} + ${b.space[150]})`,insetInlineEnd:`calc(${b.space[100]} + ${b.space[150]})`,marginInlineStart:b.space[150]},"dropdown-affordance_icon"),ub=(0,v.style)({...Ne,color:b.color.background.mediumContrast,display:"flex",marginTop:b.space[50],alignItems:"center"},"dropdown-helper_text"),db=(0,v.style)({...Ne,color:b.color.background.mediumContrast,display:"flex",marginTop:b.space[50],alignItems:"center"},"dropdown-error_text"),pb=(0,v.style)({color:b.color.error.main,marginInlineEnd:b.space[50]},"dropdown-error_icon"),fb=(0,v.style)({opacity:0,position:"absolute",pointerEvents:"none",width:0,height:0},"dropdpown-select_box");y.endFileScope();var hb=["className","menuContainerClassName","menuListClassName","menuItemClassName","menuMobileHeaderClassName","menuButtonClassName","menuLabelClassName","skipButtonFocus","sheetClassName","sheetWrapperClassName","id","label","name","errorText","errorIconAriaLabel","helperText","value","options","ariaLabelledby","renderButtonContent","onChange","onClose","onClick","onKeyDown","isLoadingOptions","showUnselect"];function mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mb(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yb=function(e){return e&&e.current?e.current:null},vb=(0,m.forwardRef)((function(e,t){var r=e.className,n=e.menuContainerClassName,a=e.menuListClassName,i=e.menuItemClassName,o=e.menuMobileHeaderClassName,l=e.menuButtonClassName,s=e.menuLabelClassName,c=e.skipButtonFocus,u=void 0!==c&&c,d=e.sheetClassName,p=e.sheetWrapperClassName,y=e.id,v=e.label,b=void 0===v?"Label":v,w=e.name,x=e.errorText,k=e.errorIconAriaLabel,_=void 0===k?"Error":k,S=e.helperText,E=e.value,C=e.options,$=void 0===C?[]:C,A=e.ariaLabelledby,T=e.renderButtonContent,O=e.onChange,z=e.onClose,P=e.onClick,F=e.onKeyDown,N=e.isLoadingOptions,R=e.showUnselect,I=h(e,hb),L="dropdownMenuButton_".concat(y||b.replace(/\s/g,"")),M=(0,m.useRef)(),D=null!=t?t:M,H="dropdownMenuSelect_".concat(y||b.replace(/\s/g,"")),B=ro((0,m.useState)(!1),2),j=B[0],W=B[1],V=ro((0,m.useState)(!!E),2),U=V[0],q=V[1],G=ro((0,m.useState)(!1),2),K=G[0],Y=G[1];(0,m.useEffect)((function(){var e,t=yb(D),r=t&&(null===(e=window)||void 0===e?void 0:e.getComputedStyle(t));Y("rtl"===(null==r?void 0:r.direction))}));var X=function(e){W((function(e){return!e})),q(!e.detail)},Q=function(e){W(!1);var t,r=yb(D);if(r&&(u?r.blur():r.focus()),O){var n=$.length>0&&e>=0;t=n?$[e].value||$[e].label:null,R&&(t=n?$[e].value:null),O({target:{selectedIndex:e,value:t}})}},J=S?"dropdown_helperText":x&&"dropdown_errorText",ee="",te="",ne=-1;if(E){for(var ae=0;ae<$.length;ae++)if($[ae].value===E){ee=T?T():$[ae].label,te=$[ae].value,ne=ae;break}}else!E&&$.length>0&&""===$[0].value&&(ne=0);var ie=j?Pa:Oa,oe=g().createElement(ie,{size:"sm",className:cb,color:"BackgroundMediumContrast","aria-hidden":"true","data-ppui":"true"}),le=A?"".concat(L,"-label ").concat(A):"".concat(L,"-label");ee&&(le="".concat(le," ").concat(L));var se=gb(gb(gb({},J&&{"aria-describedby":J}),{"aria-labelledby":le}),I),ce=Z(ob,j&&ib,x&&lb),ue=Z(ab,(j||ee)&&sb);return g().createElement("div",{className:Z(nb,r),id:y,"data-ppui-info":"dropdown-menu_4.2.5__8.12.0"},g().createElement("select",{className:fb,"aria-hidden":"true",id:H,name:w,tabIndex:-1,onChange:function(e){return Q(e.target.selectedIndex-1)},value:te,autoComplete:I.autoComplete,"data-ppui":"true"},g().createElement("option",{disabled:!0,value:"","data-ppui":"true"},b),$.length>0&&$.map((function(e,t){return g().createElement("option",{key:t,value:e.value?e.value:e.label,"data-ppui":"true"},e.label)}))),g().createElement("button",f({className:Z(ce,l),type:"button",id:L,ref:D,"aria-haspopup":"listbox","aria-expanded":j,onClick:function(e){((null==$?void 0:$.length)||N)&&(X(e),P&&P(e))},onKeyDown:function(e){var t=new re(e.key||e.keyCode);!j&&(t.IS_ARROW_UP||t.IS_ARROW_DOWN)&&function(e){return!(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)}(e)&&(e.preventDefault(),X(e)),F&&F(e)}},se,{"data-ppui":"true"}),oe,g().createElement("span",{"data-ppui":"true"},ee)),g().createElement("label",{id:"".concat(L,"-label"),htmlFor:L,className:Z(ue,s),"data-ppui":"true"},g().createElement("span",{"data-ppui":"true"},b)),g().createElement(ap,{initialItemFocus:U,isOpen:j,mobileTitle:b,onClose:function(e){W(!1),z&&z(e)},onSelection:Q,selectedIndex:ne,triggerElementRef:D,options:$,className:a,containerClassName:n,itemClassName:i,mobileHeaderClassName:o,sheetClassName:d,sheetWrapperClassName:p,rtl:K,returnFocusToTrigger:!u,isLoadingOptions:N,searchEnabled:!0,"data-ppui":"true"}),function(e,t,r,n){if(e){var a={className:pb,role:"img","aria-label":t},i=g().createElement(Na,f({size:"sm"},a,{"data-ppui":"true"}));return g().createElement("div",{className:db,id:n,role:"alert","data-ppui":"true"},i,g().createElement("span",{"data-ppui":"true"},e))}return r?g().createElement("div",{className:ub,id:n,"data-ppui":"true"},g().createElement("span",{"data-ppui":"true"},r)):null}(x,_,S,J))}));y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-error-view");const bb=(0,v.style)({display:"flex",alignItems:"center",justifyContent:"center",height:b.size.media.sm},"error-view_base"),wb=(0,v.style)({display:"flex",flexDirection:"column"},"error-view_wrapper"),xb=(0,v.style)({position:"fixed",inset:0,backgroundColor:b.color.background.surface,zIndex:G},"error-view_fullscreen-base"),kb=(0,v.style)({display:"flex",flexDirection:"column",alignItems:"center",position:"absolute",top:"33%",width:"100%",padding:`0 ${b.space[400]}`},"error-view_fullscreen-wrapper"),_b=(0,v.style)([ir,{marginBottom:b.space[200],textAlign:"center"}],"error-view_title"),Sb=(0,v.style)({textAlign:"center",marginBottom:b.space[200]},"error-view_subtitle"),Eb=(0,v.style)({display:"flex",flexDirection:"column",alignItems:"center"},"error-view_button-wrap"),Cb=(0,v.style)({margin:`${b.space[100]} 0`},"error-view_primary-button");y.endFileScope();var $b=function(e){var t,r=e.title,n=void 0===r?"title":r,a=e.subTitle,i=void 0===a?"sub title":a,o=e.primaryButtonOptions,l=e.tertiaryButtonOptions,s=e.fullScreen,c=void 0!==s&&s;(0,m.useLayoutEffect)((function(){return c&&B()&&(document.body.style.overflow="hidden"),function(){c&&B()&&(document.body.style.overflow="auto")}}),[]);var u=bb,d=wb;return c&&(u=xb,d=kb),g().createElement("section",{className:u,"data-ppui-info":"error-view_2.1.3__8.12.0","aria-live":"polite"},g().createElement("div",{className:d,"data-ppui":"true"},g().createElement(en,{size:"sm",className:_b,"data-ppui":"true"},n),g().createElement(rn,{clampAtLine:3,className:Sb,"data-ppui":"true"},i),g().createElement("div",{className:Eb,"data-ppui":"true"},g().createElement(Zf,{onClick:null==o?void 0:o.onClick,className:Z(Cb,null==o?void 0:o.className),"data-ppui":"true"},null!==(t=null==o?void 0:o.title)&&void 0!==t?t:"title"),l&&g().createElement(Zf,f({tertiary:!0},l,{"data-ppui":"true"}),l.title))))};y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-facet");const Ab=(0,v.keyframes)({"0%":{opacity:0},"100%":{opacity:1}},"button_fade_in"),Tb=(0,v.style)({position:"relative",textAlign:"center",backgroundColor:b.color.background.surface,borderRadius:b.border.radius.jumbo},"facet_container"),Ob=(0,v.style)([{width:"100%",cursor:"pointer",display:"inline-grid",backgroundColor:b.color.background.surface,borderRadius:b.border.radius.jumbo}],"facet_label"),zb=(0,v.style)([ar,Ie,{justifyContent:"center",alignItems:"center",cursor:"pointer",wordWrap:"break-word",color:b.color.background.highContrast}],"facet_label_inner_span"),Pb=(0,v.style)({color:"transparent",pointerEvents:"none",":hover":{color:"transparent"},":active":{color:"transparent"},":visited":{color:"transparent"}},"facet_processing_state"),Fb={sm:(0,v.style)({minWidth:"2.75rem",maxWidth:"8rem"},"facet_sm_container"),lg:(0,v.style)({minWidth:"4rem",maxWidth:"10rem"},"facet_lg_container")},Nb={sm:(0,v.style)({padding:`${b.space[100]} ${b.space[150]}`,height:b.space[400]},"facet_size_sm"),lg:(0,v.style)({padding:`${b.space[150]} ${b.space[300]}`,height:b.space[500]},"facet_size_lg")},Rb=(0,v.style)({opacity:0,position:"absolute"},"facet_control"),Ib=(0,v.style)({position:"absolute",inset:0,borderRadius:"inherit",textAlign:"center",opacity:0,animation:`${Ab} ${b.motion.duration.hover} ease-in forwards`,display:"flex",justifyContent:"center",alignItems:"center",paddingRight:0},"facet_state_overlay"),Lb=(0,v.style)({color:b.color.background.highContrast},"facet_loading_spinner");(0,v.globalStyle)(`${Tb}:has(${Rb}:focus)`,{...Fn}),(0,v.globalStyle)(`${Rb}:hover ~ label`,{outline:`${b.border.thickness.emphasis} solid ${b.color.unselected.mainHover}`,outlineOffset:`calc(${b.border.thickness.emphasis}*-1)`}),(0,v.globalStyle)(`${Rb}:checked ~ label`,{outline:`${b.border.thickness.emphasis} solid ${b.color.selected.main}`,color:b.color.selected.main,outlineOffset:`calc(${b.border.thickness.emphasis}*-1)`}),y.endFileScope();var Mb=["state","selected","screenReaderText","size","className","inputClassName","labelClassName","id","label","onChange","onClick","value"];(0,m.forwardRef)((function(e,t){var r=e.state,n=void 0===r?"initial":r,a=e.selected,i=e.screenReaderText,o=e.size,l=e.className,s=e.inputClassName,c=e.labelClassName,u=e.id,d=e.label,p=e.onChange,m=e.onClick,y=e.value,v=h(e,Mb),b=null!=u?u:te("Facets_"),w={};"processing"===n&&(w.as="span","sm"===o&&(w.size="xs"));var x={defaultChecked:!!a};p&&(x.onChange=p),m&&(x.onClick=m),x.disabled=n&&"initial"!==n;var k=x.disabled?g().createElement("span",{className:Ib,"data-ppui":"true"},"processing"===n&&g().createElement(vl,f({},w,{className:Lb,"data-ppui":"true"}))):null,_=i?g().createElement("span",{role:"status",className:se,"data-ppui":"true"},i):null,S=["sm","lg"].includes(o)?o:"lg",E=Z(Ob,Nb[S],c),C=Z(Tb,Fb[S],l),$=Z(zb,"processing"===n&&Pb);return g().createElement("div",{className:C,"data-ppui-info":"facet_1.2.2__8.12.0"},g().createElement("input",f({className:Z(Rb,s),id:b,type:"checkbox","aria-label":d,value:y,ref:t},x,v,{"data-ppui":"true"})),k,g().createElement("label",{className:E,htmlFor:b,"data-ppui":"true"},g().createElement("span",{className:$,"data-ppui":"true"},d)),_)})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-focus-flow");const Db=(e,t="focus_flow")=>`${t}_${e}`,Hb="44rem",Bb=`calc(2 * ${b.space[300]})`;(0,v.style)({position:"fixed",inset:"0",backgroundColor:b.color.background.surface,zIndex:G},Db("base")),(0,v.style)({height:"100%",margin:"0 auto",display:"flex",flexDirection:"column"},Db("container")),(0,v.style)([$e,{overflow:"auto",position:"relative",borderRadius:"inherit",padding:`${b.space[200]} 0`,margin:"0 auto",width:"36rem",flexBasis:"100%","@media":{[`screen and (max-width: ${Hb})`]:{width:"100%",padding:b.space[200]}}}],Db("content")),(0,v.style)({width:"100%"},Db("header")),(0,v.style)({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:b.space[200],position:"relative",flex:"0 0 auto",zIndex:"1",width:Hb,margin:"0 auto",padding:`${b.space[150]} 0`,"@media":{[`screen and (max-width: ${Hb})`]:{width:"100%",padding:`${b.space[100]} ${b.space[200]}`}}},Db("header_content")),(0,v.style)({flex:`0 0 ${b.size.icon.lg}`},Db("header_action")),(0,v.style)([$e,{flex:`1 1 ${Bb}`,margin:`${b.space[100]} 0`,textAlign:"center"}],Db("header_title")),(0,v.style)({flex:`0 0 ${b.size.icon.lg}`},Db("header_close")),(0,v.style)({display:"flex",flex:`1 1 ${Bb}`,justifyContent:"center",marginTop:`${b.space[100]}`,width:`${b.size.icon.md}`,height:`${b.size.icon.md}`},Db("header_logo")),(0,v.style)([go],Db("header_scrolled")),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-hero-currency");const jb=44/64,Wb=1/jb,Vb={position:"absolute",content:"",top:b.space[50],bottom:b.space[50]},Ub=(0,v.style)({":after":{borderRight:`${b.border.thickness.emphasis} solid`,borderRightColor:"transparent"},selectors:{"[dir='rtl'] &:before":{borderRight:`${b.border.thickness.emphasis} solid`,borderRightColor:"transparent"}}},"hero_currency-border_right_color"),qb=((0,v.style)(Vb,"hero_currency-cursor_position"),(0,v.keyframes)({"50%":{borderRightColor:"transparent"}},"hero_currency-blinker")),Gb={borderRight:`${b.border.thickness.emphasis} solid`,borderRightColor:b.color.background.highContrast,animation:`${qb} 1s step-start infinite`},Kb=((0,v.style)(Gb,"hero_currency-animateCursor"),(0,v.style)({borderBottom:`${b.border.thickness.normal} solid transperent`},"hero_currency-base")),Yb=(0,v.style)({textAlign:"center"},"hero_currency-center_aligned"),Xb=(0,v.style)({marginBottom:`calc(${b.space[300]} + ${b.space[75]})`},"hero_currency-error_text_spacing"),Zb=(0,v.style)({display:"inline-flex",fontSize:b.space[800],lineHeight:`calc(${b.space[800]} + ${b.space[50]})`,transformOrigin:"left",scale:jb,pointerEvents:"none",transition:"scale 200ms ease-in-out",selectors:{"[dir='rtl'] &":{transformOrigin:"right"}}},"hero_currency-view"),Qb=(0,v.style)({display:"inline-block"},"hero_currency-currency_part"),Jb=(0,v.style)({selectors:{[`${Kb}:hover &`]:{scale:.75}}},"hero_currency-no_focus"),ew=(0,v.style)({transformOrigin:"center",selectors:{"[dir='rtl'] &":{transformOrigin:"center"}}},"hero_currency-center_view"),tw=(0,v.style)({height:0},"hero_currency-text_input");(0,v.globalStyle)(`${tw} > div:first-of-type`,{opacity:0});const rw=(0,v.style)({scale:1},"hero_currency-focused_view"),nw=(0,v.style)({":after":Gb,selectors:{"[dir='rtl'] &:before":Gb}},"hero_currency-focus_enter"),aw=(0,v.style)({color:b.color.background.mediumContrast,fontWeight:"normal"},"hero_currency-trailing_zeros_focused"),iw=(0,v.style)({color:b.color.background.highContrast},"hero_currency-trailing_zeros_focused_default"),ow=(0,v.style)({color:b.color.background.highContrast,selectors:{"[dir='rtl'] &":{opacity:1}}},"hero_currency-symbol"),lw=(0,v.style)({color:b.color.background.highContrast,fontWeight:"normal",position:"relative",":after":Vb,selectors:{"[dir='rtl'] &":{order:3,direction:"ltr"},"[dir='rtl'] &:after":{content:"none"},"[dir='rtl'] &:before":Vb}},"hero_currency-entered"),sw=(0,v.style)({color:b.color.background.highContrast,selectors:{"[dir='rtl'] &":{order:2}}},"hero_currency-trailing_zeros_default"),cw=(0,v.style)({marginInlineStart:b.space[100],alignSelf:"center",pointerEvents:"auto",scale:Wb,transformOrigin:"left",selectors:{":focus &:after":{boxShadow:"none",border:"none"},"[dir='rtl'] &":{transformOrigin:"right",order:4}}},"hero_currency-edit_icon");y.endFileScope();var uw=["name","id","maskOptions","currencyType","prefix","onAccept","onFocus","onBlur","onKeyDown","value","className","inputClassName","label","showEditIcon","align"];function dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dw(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,m.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"heroCurrency":r,a=e.id,i=void 0===a?n:a,o=e.maskOptions,l=e.currencyType,s=e.prefix,c=e.onAccept,u=e.onFocus,d=void 0===u?null:u,p=e.onBlur,y=void 0===p?null:p,v=e.onKeyDown,b=void 0===v?null:v,w=e.value,x=void 0===w?"":w;e.className;var k=e.inputClassName,_=e.label,S=void 0===_?"Enter amount":_,E=e.showEditIcon,C=e.align,$=void 0===C?"left":C,A=h(e,uw);c||(c=function(){});var T=(0,m.useRef)(),O=ro((0,m.useState)(""),2),z=O[0],P=O[1],F=ro((0,m.useState)(""),2),N=F[0],R=F[1],I=t||T,L=(0,m.useContext)(Wn),M=(0,m.useMemo)((function(){return qn(L,o,l)}),[L,o,l]),D=M.currencyMaskOptions,H=M.intlCurrencyPrefix,B=M.intlCurrencySuffix;function j(){if(null==I?void 0:I.current){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",r=arguments.length>2?arguments[2]:void 0;if(!e)return{entered:"",trailingZeros:U?"":"0"};e.charAt(0)===t&&(e="0".concat(e));var n=e.split(t);return{entered:e,trailingZeros:n.length>1?new Array(r+1).join("0").substring(n[1].length,r):""}}(I.current.value,D.radix,D.scale);P(e.entered),R(e.trailingZeros)}}(0,m.useEffect)((function(){j()}),[x]);var W=s||H||B||"$",V=ro((0,m.useState)(!1),2),U=V[0],q=V[1],G=Z(Kb,"center"===$&&Yb,(A.errorText||A.helperText||A.successText)&&Xb),K=Z(Zb,U&&rw,!U&&Jb,"center"===$&&ew),Y=Z(lw,!U&&Ub,U&&nw,Qb),X=Z(!U&&sw,U&&aw,U&&!x&&iw,Qb),Q=pw(pw({},D),{},{normalizeZeros:!1,padFractionalZeros:!1}),J=0===(null==D?void 0:D.scale)?"numeric":"decimal";return g().createElement("div",{className:G,id:i,"data-ppui-info":"hero-currency_3.2.7__8.12.0"},g().createElement(ry,f({name:n,label:S,inputMode:J,value:x,maskOptions:Q,inputClassName:k,className:tw,onFocus:function(e){q(!0);var t=e.target,r=t.value;r&&setTimeout((function(){return t.setSelectionRange(r.length,r.length)}),100),d&&d(e)},onBlur:function(e){if(q(!1),""!==z){var t=z.replaceAll(D.thousandsSeparator,"").replace(D.radix,".");c(null==z?void 0:z.concat(N),null==t?void 0:t.concat(N),null==t?void 0:t.concat(N))}y&&y(e)},onAccept:c,onKeyDown:function(e){new re(e.key||e.keyCode).IS_SIDE_NAVIGATION&&(e.preventDefault(),e.stopPropagation()),b&&b(e)},onInput:j,prefix:W,autoComplete:"off",ref:I},A,{"data-ppui":"true"})),g().createElement("div",{className:K,"aria-hidden":"true","data-ppui":"true"},g().createElement("span",{className:Z(ow,Qb),"data-ppui":"true"},W),g().createElement("span",{className:Y,"data-ppui":"true"},z),g().createElement("span",{className:X,"data-ppui":"true"},N),!U&&E&&x&&g().createElement(Sd,{buttonType:"tertiary",svgIconComponent:Ia,className:cw,onClick:function(){(null==I?void 0:I.current)&&I.current.focus()},tabIndex:"-1","data-ppui":"true"})))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-horizontal-scroll");const{ppuiEaseInOut:fw}=n?.variables,hw=(0,v.style)({position:"relative"},"horizontal_scroll_base"),mw=(0,v.style)({display:"flex",flexDirection:"row",listStyle:"none",margin:0,overflowY:"-moz-hidden-unscrollable",overflowX:"auto",padding:`${b.space[200]} 0`},"horizontal_scroll_item_list");(0,v.globalStyle)(`${mw} > *`,{flex:"0 0 auto"});const gw=(0,v.style)({margin:`0 ${b.space[100]}`,"@media":{[`(max-width:${E})`]:{margin:`0 ${b.space[75]}`}}},"horizontal_scroll_item"),yw=(0,v.style)({position:"absolute",top:0,display:"flex",alignItems:"center",height:`calc(100% - ${b.size.indicator.lg} - ${b.space[200]})`,opacity:0,transition:`opacity 0.3s ${fw}`,pointerEvents:"none",selectors:{[`${hw}:hover &`]:{opacity:1}}},"horizontal_scroll_button_nav");(0,v.globalStyle)(`${yw} > button`,{pointerEvents:"all",...fo}),(0,v.globalStyle)(`${yw} > button:hover`,{...yo}),(0,v.globalStyle)(`${yw}b> button:focus:after`,{display:"none"}),(0,v.style)([yw,{left:b.space[200],selectors:{"[dir='rtl'] &":{left:"unset",right:b.space[200]}}}],"horizontal_scroll_button_previous"),(0,v.style)([yw,{right:b.space[200],selectors:{"[dir='rtl'] &":{left:b.space[200],right:"unset"}}}],"horizontal_scroll_button_next"),(0,v.style)({overflowX:"visible"},"horizontal_scroll_item_list_desktop"),(0,v.style)({overflowX:"hidden"},"horizontal_scroll_page_container"),(0,v.style)({position:"relative",left:0,transition:`left 1s ${fw}`,selectors:{"[dir='rtl'] &":{right:0,left:"unset",transition:`right 1s ${fw}`}}},"horizontal_scroll_page"),(0,v.style)({paddingBottom:b.space[200],textAlign:"center",lineHeight:b.size.indicator.lg},"horizontal_scroll_dots"),(0,v.style)({margin:`0 ${b.space[100]}`,height:b.size.indicator.lg,width:b.size.indicator.lg,borderRadius:b.border.radius.interactive,backgroundColor:b.color.unselected.main,display:"inline-block"},"horizontal_scroll_dot"),(0,v.style)({backgroundColor:b.color.selected.main},"horizontal_scroll_dot_selected"),y.endFileScope();var vw=b.space[200],bw=b.space[150],ww=b.space[200],xw=function(e){var t=e.items,r=e.numOfVisibleItems,n=e.hasFixedSizeItems,a=e.isMobileBreakpoint;if(n)return{flexBasis:"auto"};if(a){var i=t.length===r?null:"calc(".concat(vw," + ").concat(bw," / 2)"),o=i?"calc(100% - ".concat(i,")"):"100%";return{flexBasis:"calc(".concat(o," / ").concat(r," - ").concat(bw,")")}}return{flexBasis:"calc(100% / ".concat(r," - ").concat(ww,")")}},kw=["items","hasFixedSizeItems","isMobileBreakpoint","itemClassName","numOfVisibleItems","renderItem"];(0,m.forwardRef)((function(e,t){var r=e.items;e.hasFixedSizeItems,e.isMobileBreakpoint;var n=e.itemClassName;e.numOfVisibleItems;var a=e.renderItem,i=h(e,kw),o=function(e){e.target.scrollIntoView({block:"nearest"})},l=r.map((function(t,i){var l=null==xw?void 0:xw(e);return g().createElement("li",{"aria-label":"".concat(i+1,"-").concat(r.length),key:t.id,"data-item-id":t.id,style:l,className:Z(n,gw),"data-ppui":"true"},a(t,{tabIndex:"0",role:"button",onFocus:o}))}));return g().createElement("ul",f({className:mw,ref:t},i,{"data-ppui":"true"}),l)})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-legal-consent");const _w=`calc(${b.size.circle.xs} + ${b.space[150]} + ${b.space[25]})`,Sw=(0,v.style)({position:"relative",textAlign:"start",marginBottom:0},"checkbox_base"),Ew=(0,v.style)([$e,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"block",paddingInlineStart:_w,position:"relative",textAlign:"start",WebkitTapHighlightColor:"transparent"}],"checkbox_label");(0,v.globalStyle)(`${Ew} span:first-of-type`,{insetInlineStart:0});const Cw=(0,v.style)({borderRadius:b.border.radius.xs,border:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,boxSizing:"border-box",height:b.size.circle.xs,left:0,position:"absolute",width:b.size.circle.xs,lineHeight:1.3,textAlign:"center",backgroundColor:b.color.background.surface,display:"flex",justifyContent:"center",alignItems:"center",top:0},"checkbox_checkmark_container"),$w=((0,v.style)([Cw,{top:"auto"}],"checkbox_checkmark_container_decoration"),(0,v.style)({fontSize:b.size.icon.xs,flexShrink:"0"},"checkbox_check_icon")),Aw=(0,v.style)({cursor:"pointer",opacity:0,position:"absolute"},"checkbox_input");(0,v.globalStyle)(`${Aw}:checked + label > span > span:first-of-type`,{borderColor:b.color.selected.main,backgroundColor:b.color.selected.main,color:b.color.selected.contrast,borderRadius:b.border.radius.xs}),(0,v.globalStyle)(`${Aw}:checked + label > span > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,v.globalStyle)(`${Aw}:not(:checked) + label > span > span:first-of-type > span:first-of-type`,{display:"none"}),(0,v.globalStyle)(`${Aw}:focus + label > span > span:first-of-type`,Fn),(0,v.globalStyle)(`${Aw}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${b.border.thickness.normal} * -1)`});const Tw=(0,v.style)({},"checkbox_error_state");(0,v.globalStyle)(`${Tw}:checked + label > span > span:first-of-type`,{borderWidth:b.border.thickness.emphasis,borderColor:b.color.error.main}),(0,v.globalStyle)(`${Tw}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${b.border.thickness.emphasis} * -1)`});const Ow=(0,v.style)({borderWidth:b.border.thickness.emphasis,borderColor:b.color.error.main,lineHeight:1.1},"error_checkbox"),zw=(0,v.style)({...Ne,color:b.color.background.mediumContrast},"captionText"),Pw=(0,v.style)([zw,{display:"flex",alignItems:"center",margin:0}],"error_text"),Fw=(0,v.style)({color:b.color.error.main,marginInlineEnd:b.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_error_icon"),Nw=(0,v.style)({paddingBottom:b.space[150]},"checkbox_label_error"),Rw=(0,v.style)({display:"flex",alignItems:"center",minHeight:"1.5rem",margin:0},"checkbox_items"),Iw=(0,v.style)({marginBottom:b.space[150]},"checkbox_legal_consent_label");(0,v.globalStyle)(`${Iw} > span:first-of-type`,{display:"flex"});const Lw=(0,v.style)([zw],"checkbox_legal_consent_text"),Mw=(0,v.style)([zw,{paddingInlineStart:_w,margin:0}],"checkbox_legal_consent_supporting_text_wrapper"),Dw=(0,v.style)({paddingInlineStart:0},"checkbox_legal_consent_supporting_text_wrapper_when_no_label"),Hw=(0,v.style)({padding:`${b.space[150]} 0 0 0`,margin:0,listStyleType:"none"},"checkbox_legal_consent_links_wrapper"),Bw=(0,v.style)({paddingTop:0},"checkbox_legal_consent_links_wrapper_when_no_label"),jw=(0,v.style)({display:"flex",flexDirection:"column",rowGap:b.space[300],alignItems:"flex-start"},"checkbox_legal_consent_group_spacing");y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-links");const Ww=(0,v.style)([De,{textDecoration:b.typography.linkLg.underline?"underline":"none"}],"link-lg-text"),Vw=(0,v.style)([Be,{textDecoration:b.typography.linkSm.underline?"underline":"none"}],"link-sm-text"),Uw=(0,v.style)({borderRadius:b.border.radius.xs},"link_base"),qw=(0,v.style)({position:"relative",paddingInlineStart:`calc(${b.size.icon.sm} + ${b.space[100]})`},"link_base_icon"),Gw=(0,v.style)({paddingInlineStart:`calc(${b.size.icon.xs} + ${b.space[100]})`},"link_base_icon_sm"),Kw=(0,v.style)({color:(0,v.fallbackVar)(F.main,b.color.link.main),":focus":{...Fn,color:(0,v.fallbackVar)(F.main,b.color.link.main),cursor:"pointer"},":hover":{cursor:"pointer",textDecoration:"underline",color:(0,v.fallbackVar)(F.hoverMain,b.color.link.mainHover),backgroundColor:(0,v.fallbackVar)(F.hoverBack,"transparent")},":active":{textDecoration:"underline",color:(0,v.fallbackVar)(F.activeMain,b.color.link.mainActive),backgroundColor:(0,v.fallbackVar)(F.activeBack,"transparent")}},"link_primary"),Yw=(0,v.style)({textDecoration:"underline",color:(0,v.fallbackVar)(F.main,b.color.link.alt),":focus":{color:(0,v.fallbackVar)(F.main,b.color.link.altHover)},":hover":{color:(0,v.fallbackVar)(F.hoverMain,b.color.link.altHover),backgroundColor:(0,v.fallbackVar)(F.hoverBack,"transparent")},":active":{color:(0,v.fallbackVar)(F.activeMain,b.color.link.altActive),backgroundColor:(0,v.fallbackVar)(F.activeBack,"transparent")}},"link_secondary"),Xw=(0,v.style)({color:b.color.link.contrast,textDecoration:"underline",":visited":{color:(0,v.fallbackVar)(F.activeMain,b.color.link.contrast)},":focus":{color:(0,v.fallbackVar)(F.activeMain,b.color.link.contrast)},":hover":{color:(0,v.fallbackVar)(F.hoverMain,b.color.link.contrastHover)},":active":{color:(0,v.fallbackVar)(F.activeMain,b.color.link.contrastActive),textDecoration:"underline"}},"link_inverse"),Zw=(0,v.style)([we,{height:b.space[300]}],"link_shimmer"),Qw=(0,v.style)({position:"absolute",inset:0,display:"flex",alignItems:"center"},"link_left_icon");y.endFileScope();var Jw,ex,tx=["inverse","secondary","size","primaryAlt","className","leftIcon","children","as","isLoading"],rx=new Set(["","paypal.com","paypal.cn","gopay.cn"]),nx=/\bnoreferrer\b/,ax=/\bnoopener\b/,ix=(0,m.forwardRef)((function(e,t){var r=e.inverse,n=e.secondary,a=e.size,i=e.primaryAlt,o=e.className,l=e.leftIcon,c=e.children,u=e.as,d=void 0===u?"a":u,p=e.isLoading,m=h(e,tx);if(p)return g().createElement(_e,f({className:Z(Zw,o),hasStyleDefaults:!1,isInverse:r},m,{"data-ppui":"true"}),c);var y,v=m.target,b=m.rel,w=void 0===b?null:b,x=m.href,k=void 0===x?"/":x;"a"===d&&(null==v?void 0:v.trim())&&((null===(y=w)||void 0===y?void 0:y.trim())?function(e,t){nx.test(t)&&ax.test(t)||function(e){try{var t=new URL(e);return rx.has(t.hostname)}catch(t){"isInternalUrl('".concat(e,"'}) failed to parse: ").concat(t)}return!1}(e)||"WARNING! '".concat(e,'\'\nOpening 3rd party URL in a new window/tab without setting rel to "noreferrer noopener" is potentially unsafe.')}(k,w):w="noreferrer noopener");var _=g().createElement("span",{className:Qw,"data-ppui":"true"},l),S=r?"inverse":i||n?"secondary":"primary",E=Z(Uw,s[S],l&&qw,l&&"sm"===a&&Gw,"sm"===a?Vw:Ww,o);return g().createElement(d,f({className:E,ref:t,"data-ppui-info":"links_5.1.2__8.12.0",target:v,rel:w},m),l&&_,c)})),ox=["id","name","label","links","onChange","errorText","errorIconAriaLabel","className","children"];function lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lx(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,m.forwardRef)((function(e,t){var r,n,a,i,o=e.id,l=e.name,s=e.label,c=e.links,u=void 0===c?[]:c,d=e.onChange,p=e.errorText,m=e.errorIconAriaLabel,y=void 0===m?"Error":m,v=e.className,b=e.children,w=h(e,ox),x=u.map((function(e,t){var r=g().createElement(ix,sx(sx({},e),{},{size:"sm"}));return g().createElement("li",{key:t,"data-ppui":"true"},r)})),k=null!=o?o:te("LegalConsent_"),_=Z(Sw,p&&Tw,v),S=Z(Mw,s&&p&&Nw,!(null==s?void 0:s.length)&&Dw),E=Z(jw,Hw,!(null==s?void 0:s.length)&&Bw),C="p";return x.length?(r=g().createElement("ul",{className:E,"data-ppui":"true"},x),C="div"):r=b,g().createElement("div",{className:_,"data-ppui-info":"legal-consent_3.1.2__8.12.0"},s&&g().createElement(g().Fragment,null,g().createElement("input",f({className:Z(Aw,p&&Tw),type:"checkbox",id:k,name:l,ref:t,tabIndex:0,onChange:function(e){d&&(e.stopPropagation(),d(e))}},w,p&&{"aria-describedby":l,"aria-invalid":!0},{"data-ppui":"true"})),(n=Z(Cw,p&&Ow),a=g().createElement("span",{"data-ppui":"true"},g().createElement("span",{className:n,"data-ppui":"true"},g().createElement(Aa,{className:$w,size:"xs","data-ppui":"true"})),g().createElement(an,{className:Lw,as:"span","data-ppui":"true"},s)),i=Z(Ew,Rw,Iw),g().createElement("label",{className:i,htmlFor:k,"data-ppui":"true"},a))),g().createElement(C,{className:S,"data-ppui":"true"},r),s&&p&&g().createElement("p",{className:Pw,id:l,"data-ppui":"true"},g().createElement(Na,{className:Fw,size:"sm",role:"img","aria-label":y,"data-ppui":"true"}),p))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-linear-progress-meter"),(0,v.style)({padding:`${b.space[50]} ${b.space[300]} ${b.space[300]} ${b.space[300]}`,transition:`value ${b.motion.duration.arrive}`},"progress-meter_base"),(0,v.style)({padding:0},"progress_meter-no_padding"),(0,v.style)({verticalAlign:"bottom",width:"100%",backgroundClip:"content-box",WebkitBackgroundClip:"content-box",border:`${b.border.thickness.normal} solid transparent`,borderRadius:b.border.radius.sm,height:b.size.indicator.lg,marginBottom:b.space[100],appearance:"none",selectors:{"&::-webkit-progress-inner-element":{marginTop:`calc(${b.border.thickness.normal} * -1)`,borderRadius:b.border.radius.sm,padding:0,height:b.size.indicator.lg},"&::-webkit-progress-value":{borderRadius:b.border.radius.sm,height:b.size.indicator.md},"&::-webkit-progress-bar":{borderRadius:b.border.radius.sm,height:b.size.indicator.md,backgroundColor:b.color.background.alt},"&::-moz-progress-bar":{borderRadius:b.border.radius.sm,padding:0,height:b.size.indicator.md}}},"progress_tag"),(0,v.style)({selectors:{"&::-moz-progress-bar":{minWidth:b.border.radius.md},"&::-webkit-progress-value":{minWidth:b.border.radius.md},"&::-webkit-progress-bar":{minWidth:b.border.radius.md}}},"progress_value_min_width"),(0,v.style)([$e],"progress_meter-label"),(0,v.style)({letterSpacing:"normal",marginInlineEnd:b.space[50]},"progress_meter-steps"),(0,v.style)({color:b.color.background.mediumContrast},"progress_meter-label_title"),(0,v.style)({},"progress_meter-size_sm"),(0,v.style)([Fe],"progress_meter-size_sm_label"),(0,v.style)([Fe],"progress_meter-size_sm_steps"),(0,v.style)({...Ne,color:b.color.background.mediumContrast},"progress_meter-size_sm_title"),(0,v.style)({color:b.color.background.surface},"progress_meter-inverse_label"),(0,v.style)({color:b.color.system.contrast},"progress_meter-size_sm_inverse_label_steps"),(0,v.style)({color:b.color.background.surface},"progress_meter-size_sm_inverse_label_title"),(0,v.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:b.color.secondary.main},"&::-webkit-progress-value":{backgroundColor:b.color.secondary.main}}},"progress-meter_color_accent1"),(0,v.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:b.color.error.main},"&::-webkit-progress-value":{backgroundColor:b.color.error.main}}},"progress-meter_color_accent2"),(0,v.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:b.color.success.main},"&::-webkit-progress-value":{backgroundColor:b.color.success.main}}},"progress-meter_color_accent3"),(0,v.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:b.color.primary.main},"&::-webkit-progress-value":{backgroundColor:b.color.primary.main}}},"progress-meter_color_accent4"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-overflow-menu"),(0,v.style)({position:"relative",display:"inline-block",maxHeight:"16rem"},"overflow_menu_base"),(0,v.style)({selectors:{"[aria-expanded='true']&":{background:`${b.color.background.surfaceActive}`}}},"overflow_menu_btn_active"),(0,v.style)([fo,{right:"0",margin:"0",position:"fixed",zIndex:"1060",listStyle:"none",borderRadius:`${b.border.radius.lg}`,backgroundColor:`${b.color.background.surface}`,display:"none",padding:`${b.space[100]} 0`,overflow:"auto",width:"fit-content",selectors:{"[aria-hidden = 'false']&":{display:"inline-block"},"[dir='rtl'] & ":{right:"auto",left:b.space[150]}}}],"overflow_menu_list"),(0,v.style)([Ae,{whiteSpace:"nowrap",display:"block",textAlign:"justify",textOverflow:"ellipsis",position:"relative",textDecoration:"none",padding:`${b.space[150]} ${b.space[200]}`,":hover":{backgroundColor:`${b.color.background.surfaceHover}`,cursor:"pointer",outline:0},":focus":{boxShadow:"none",outline:0,borderRadius:0}}],"overflow_menu_list_item"),(0,v.style)({":focus":Rn},"overflow_menu_keyboard_active"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-panel-slider"),Jw=b.motion.duration.arrive,(ex=Y(Jw,"ms")).unit,ex.value,cn.ppuiEaseInOut,(0,v.style)({position:"relative",minHeight:"100%",whiteSpace:"nowrap",padding:`0 ${b.space[150]}`,overflowX:"hidden"},"panel-slider-container"),(0,v.style)({display:"inline-block",width:"100%",padding:`${b.space[200]} ${b.space[150]}`,height:"100%",whiteSpace:"normal"},"panel-slider-panel"),y.endFileScope();var cx=["as","isHidden","hideToggleLabel","onToggleHide","value"];(0,m.forwardRef)((function(e,t){var r=e.as,n=e.isHidden,a=void 0===n||n,i=e.hideToggleLabel,o=e.onToggleHide,l=e.value,s=h(e,cx),c=(0,m.useRef)(),u=t||c;(0,m.useEffect)((function(){var e=u.current;e&&(null==l?void 0:l.length)&&requestAnimationFrame((function(){e.setSelectionRange(l.length,l.length)}))}),[a]);var d=a?{type:"password"}:{},p=i||(a?"show":"hide");return g().createElement(r||Zi,f({ref:u,rightIcon:g().createElement(Sd,{buttonType:"tertiary",svgIconComponent:a?Ba:La,onClick:function(){o&&o(!a)},onMouseDown:function(e){return e.preventDefault()},"data-ppui":"true"},p),value:l,"data-ppui-info":"password-input_3.1.3__8.12.0"},d,s))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-phone-input");const ux="8.813rem",dx=(0,v.style)({flexGrow:1},"phone_input_base"),px=(0,v.style)({direction:"ltr",textAlign:"right"},"phone_input-rtl"),fx=(0,v.style)({display:"flex",gap:b.space[100],"@media":{[`screen and (max-width:${_})`]:{display:"block"}},selectors:{"[dir='rtl'] &":{direction:"ltr"}}},"phone_input-combined"),hx=(0,v.style)({minWidth:ux,"@media":{[`screen and (max-width:${E})`]:{marginBottom:b.space[100]},[`screen and (min-width:${_})`]:{maxWidth:ux}}},"phone_input-menu_width"),mx=(0,v.style)({flexGrow:1,selectors:{"[dir='rtl'] &":{direction:"rtl"}}},"phone_input-menu"),gx=(0,v.style)({marginRight:b.space[100],selectors:{"[dir='rtl'] &":{marginRight:0,marginLeft:b.space[100]}}},"phone_input-thumbnail"),yx=(0,v.style)({whiteSpace:"nowrap"},"phone_input-menu_list"),vx=(0,v.style)({flexGrow:1,selectors:{":not(:empty) &":{paddingBottom:b.space[100],paddingRight:b.space[700]},"[dir='rtl'] &":{borderRadius:b.border.radius.sm,marginLeft:0,marginRight:0},"[dir='rtl']:not(:empty) &":{paddingLeft:b.space[700],paddingRight:`calc(${b.space.md} - ${b.border.thickness.normal})`}}},"phone_input-menu_button");(0,v.globalStyle)(`${vx}>span`,{pointerEvents:"none"});const bx=(0,v.style)({display:"flex"},"phone_input-menu_button_content"),wx=((0,v.style)({marginLeft:0,selectors:{"[dir='rtl'] &":{marginRight:0}}},"phone_input-affordance"),(0,v.style)({selectors:{"[dir='rtl'] &":{left:0}}},"phone_input-menu_container"));y.endFileScope();var xx=["AT","AX","BD","BG","CD","CN","CU","CW","DE","DZ","EG","FI","GB","HR","ID","IE","IL","IQ","IR","IT","KE","KH","KI","KP","KR","LB","LR","LU","MM","MN","MU","MW","MY","NA","NG","PG","PH","PK","PL","PY","RO","RS","RW","SE","SH","SK","SO","SR","SY","TK","TW","VA","WS","YE","ZW"],kx=["AD","AR","AT","AX","BA","BG","BR","CD","CW","DE","EE","FI","GA","HR","ID","IS","IT","KH","KR","LB","LI","LR","MC","MM","MX","MY","NZ","PA","PN","RS","SB","SO","TK","TV","VA","WS","XK","ZA"],_x="00000000000000000000";function Sx(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];if(a&&i)return{countryCode:a,pattern:i};if(t&&e&&e.phoneFormatter){var l=n?"MOBILE":"FIXED_LINE",s=e.exampleGenerator({feature:"phone",region:t,type:l}).generate(),c=s.countryCode,u=s.nationalNumber,d=_x;if(o){var p=e.phoneFormatter({phoneRegion:t,style:r}).format({countryCode:c,nationalNumber:u}),f=p;if(p.includes("+")&&(f=p.split("+".concat(c))[1].trim()),d=f.replace(/\d/g,"0"),(n?kx:xx).includes(t)){var h=d.match(/0/g).length,m="0".repeat(20-h);d+="[".concat(m,"]")}}return{countryCode:c,pattern:d}}return{countryCode:a||"",pattern:i||_x}}var Ex=["rtl","countryOptions","options","flagId","codeId","value"],Cx=function(e){var t=e.rtl,r=e.countryOptions,n=e.options,a=e.flagId,i=e.codeId,o=e.value,l=h(e,Ex);return g().createElement(vb,f({renderButtonContent:function(){var e;if(o&&n){var l=n.findIndex((function(e){return e.value===o}));e=r[l]}var s="";return e&&e.countryPhoneCode&&(s=t?"".concat(e.countryPhoneCode,"+"):"+".concat(e.countryPhoneCode)),e&&e.phoneRegion?g().createElement("span",{className:bx,"data-ppui":"true"},g().createElement("span",{className:gx,"data-ppui":"true"},g().createElement(ag,{id:a,countryCode:e.phoneRegion,size:"md","aria-label":e.countryName,role:"img","data-ppui":"true"})),g().createElement("span",{id:i,"data-ppui":"true"},s)):g().createElement(g().Fragment,null,s)},options:n,value:o},l,{"data-ppui":"true"}))},$x=["name","countryOptions","inputLabel","menuLabel","menuId","className","inputClassName","menuClassName","mobile","onPhoneCodeChange","phoneCode","showUnselect","unselectLabel","formatType"],Ax=((0,m.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"phoneInputMenu":r,a=e.countryOptions,i=void 0===a?[]:a,o=e.inputLabel,l=void 0===o?"Phone Number":o,s=e.menuLabel,c=void 0===s?"Code":s,u=e.menuId,d=e.className,p=e.inputClassName,y=e.menuClassName,v=e.mobile,b=void 0!==v&&v,w=e.onPhoneCodeChange,x=e.phoneCode,k=e.showUnselect,_=void 0!==k&&k,S=e.unselectLabel,E=void 0===S?"None":S,C=e.formatType,$=void 0===C?"international":C,A=h(e,$x);i.length;var T,O,z,P,F,N,R=ro((0,m.useState)(!1),2),I=R[0],L=R[1],M=(0,m.useContext)(Wn),D=(0,m.useCallback)((function(e){if(null!==e&&H()){var t=window.getComputedStyle(e);L("rtl"===(null==t?void 0:t.direction))}}),[null==M?void 0:M.locale]),B=ro((0,m.useState)(!1),2),j=B[0],W=B[1];i[0]&&""===i[0].phoneRegion&&i.splice(0,1),_&&i.unshift({phoneRegion:"",countryName:E,phoneFormat:_x}),N=(0,m.useMemo)((function(){return i.map((function(e,t){var r=Sx(M,e.phoneRegion,$,b,e.countryPhoneCode,e.phoneFormat,e.isPhoneMetaDataLoaded),n=M&&M.getDisplayNamesObject&&M.getDisplayNamesObject({type:"region"}),a=r.countryCode,o=r.pattern;return P=e.phoneRegion,O=e.countryPhoneCode||a,z=e.phoneFormat||o,F=e.countryName||n&&n.select(e.phoneRegion),i[t].countryPhoneCode=O,i[t].phoneFormat=z,i[t].countryName=F,function(e,t,r,n){T=e,t&&(T+=n?" ".concat(t,"+"):" +".concat(t));var a=r&&t?"".concat(r,"_").concat(t):"";return{label:T,value:a,decoration:r&&g().createElement(ag,{countryCode:r,size:"md","data-ppui":"true"})}}(F,O,P,I)}))}),[i,$,b]);var V=_x,U=i.filter((function(e){var t=e.phoneRegion&&e.countryPhoneCode?"".concat(e.phoneRegion,"_").concat(e.countryPhoneCode):"";return x===t}));U.length&&(V=U[0].phoneFormat);var q="phone-input-country-flag_",G="phone-input-country-code_",K=u?"".concat(q).concat(u):te(q),Y=u?"".concat(G).concat(u):te(G),X=Z(mx,hx,y),Q=g().createElement(Cx,{id:u,label:c,options:N,countryOptions:i,value:x,onChange:function(e){var t,r;w&&(w(e),0===(null===(t=e.target)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.length)&&_||W(!0))},className:X,menuContainerClassName:wx,menuListClassName:yx,menuButtonClassName:vx,sheetClassName:yx,rtl:I,showUnselect:!0,flagId:K,codeId:Y,autoComplete:A.autoComplete,"data-ppui":"true"}),J=g().createElement(Hg,f({type:"tel",name:n,label:l,maskOptions:{mask:V},className:mx,inputClassName:Z(I&&px,p),setFocus:j,ref:t,onBlur:function(){return W(!1)},"aria-describedby":"".concat(K," ").concat(Y)},A,{"data-ppui":"true"}));return g().createElement("div",{ref:D,className:Z(d,dx),"data-ppui-info":"phone-input_3.1.6__8.12.0"},g().createElement("div",{className:fx,"data-ppui":"true"},Q,J))})),["name","label","countryOptions","className","inputClassName","formatType","mobile"]);(0,m.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"":r,a=e.label,i=void 0===a?"Phone Number":a,o=e.countryOptions,l=e.className,s=e.inputClassName,c=e.formatType,u=void 0===c?(null==o?void 0:o.countryPhoneCode)?"international":"national":c,d=e.mobile,p=void 0!==d&&d,y=h(e,Ax),v=ro((0,m.useState)(!1),2),b=v[0],w=v[1],x=(0,m.useContext)(Wn),k=(0,m.useCallback)((function(e){if(e&&H()){var t=window.getComputedStyle(e);w("rtl"===(null==t?void 0:t.direction))}}),[null==x?void 0:x.locale]),_=(0,m.useMemo)((function(){return Sx(x,null==o?void 0:o.phoneRegion,u,p,null==o?void 0:o.countryPhoneCode,null==o?void 0:o.phoneFormat,null==o?void 0:o.isPhoneMetaDataLoaded)}),[null==o?void 0:o.phoneRegion,u,p]),S=_.countryCode,E=_.pattern,C="",$="";return"international"===u&&(C=b?"":"+".concat(S),$=b?"".concat(S,"+"):""),g().createElement("div",{ref:k,className:Z(dx,l),"data-ppui-info":"phone-input_3.1.6__8.12.0"},g().createElement(Hg,f({type:"tel",name:"phoneInput-".concat(n),label:i,prefix:C,suffix:$,ref:t,maskOptions:{mask:E},inputClassName:Z(b&&px,s)},y,{"data-ppui":"true"})))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-physical-card"),(0,v.style)([po,{borderRadius:b.border.radius.lg,border:`${b.border.thickness.normal} solid transparent`,backgroundColor:b.color.background.surface,backgroundOrigin:"border-box",position:"relative",overflow:"hidden",paddingTop:`calc(100% * ${216/343} - (2 * ${b.border.thickness.normal}))`}],"physical_card-base"),(0,v.style)({position:"absolute",top:0,width:"100%",height:"100%"},"physical_card-content"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-pill"),(0,v.style)({backgroundColor:b.color.selectedRange.main,paddingBlock:b.space[100],paddingInline:`${b.space[150]} ${b.size.tapTarget.sm}`,whiteSpace:"nowrap",borderRadius:"100px",position:"relative",display:"inline-grid",gridTemplateColumns:"1fr auto",placeItems:"center"},"pill-base"),(0,v.style)({paddingInline:b.space[150]},"pill_hide_close_btn"),(0,v.style)({...Ve,color:b.color.selectedRange.contrast,textOverflow:"ellipsis",whiteSpace:"nowrap"},"pill-label"),(0,v.style)({position:"absolute",right:0,selectors:{"[dir=rtl] &":{left:0,right:"auto"}}},"pill-button_space"),(0,v.style)({color:b.color.selectedRange.contrast},"pill-icon_button_color"),(0,v.style)({backgroundColor:b.color.background.surface},"pill-tray"),(0,v.style)({overflowX:"scroll",margin:0,padding:`${b.space[100]} ${b.space[100]} ${b.space[200]}`,display:"flex",columnGap:b.space[100]},"pill-scroll"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-progress-stepper");const Tx="--ps-m_ol_c",Ox={paddingLeft:b.space[200],paddingRight:b.space[200]},zx={display:"block"},Px={flexDirection:"row",alignItems:"initial"},Fx={margin:`${b.space[200]} 0`,textAlign:"initial"},Nx={display:"inline-flex",alignItems:"center"},Rx={display:"none"},Ix={margin:`0 ${b.space[200]} 0 ${b.space[400]}`,padding:`${b.space[200]} 0`},Lx={insetInlineStart:"auto",top:`calc(${b.size.icon.md} + ${b.space[200]})`,width:b.border.thickness.focus,height:"100%"},Mx=((0,v.style)({color:b.color.background.highContrast,listStyle:"none",margin:0,padding:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(0, 1fr))",selectors:{"&[data-stepper-variant='vertical']":zx}},"progress_stepper-base"),(0,v.style)({margin:0,overflow:"clip",paddingTop:b.space[50],"@media":{[`screen and (max-width: ${E})`]:Ox}},"progress_stepper-compact_wrapper"),{margin:"0 var(--ps-m-od)"}),Dx=((0,v.style)({"@media":{[`screen and (max-width: ${E})`]:Mx}},"progress_stepper-compact_base"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:zx}},"progress_stepper-vertical_base"),(0,v.style)({display:"flex",position:"relative",flexDirection:"column",alignItems:"center",zIndex:0,selectors:{"[data-stepper-variant='vertical'] &":Px}},"progress_stepper-item"));(0,v.globalStyle)(`${Dx}:last-of-type > div:first-of-type:after`,{display:"none"}),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:{height:b.size.icon.xs,width:b.size.icon.xs}}},"progress_stepper-icon_item"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:{fontSize:b.typography.fieldLabelSm.size,display:"grid",lineHeight:"unset",placeItems:"center",textAlign:"center",padding:0}}},"progress_stepper-text_item"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:Px}},"progress_stepper-vertical_item"),(0,v.style)({textAlign:"center",marginTop:b.space[200],selectors:{"[data-stepper-variant='vertical'] &":Fx}},"progress_stepper-item_content"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:Fx}},"progress_stepper-vertical_item_content"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:Rx}},"progress_stepper-vertical_item_content"),(0,v.style)({selectors:{"[data-stepper-variant='vertical'] &":Nx}},"progress_stepper-item_content_without_description"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:Nx}},"progress_stepper-vertical_marker"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:Rx}},"progress_stepper-vertical_marker"),(0,v.style)({color:b.color.background.highContrast},"progress_stepper-label"),(0,v.style)({color:b.color.background.mediumContrast,marginTop:b.space[50]},"progress_stepper-description");const Hx={display:"block",paddingTop:`${b.space[100]}`,paddingBottom:`${b.space[100]}`};(0,v.style)({display:"none","@media":{[`screen and (max-width: ${E})`]:Hx}},"progress_stepper-compact_details"),(0,v.style)({color:b.color.background.alt,display:"flex",justifyContent:"center",margin:0,padding:0,":after":{position:"absolute",content:"",top:b.space[200],insetInlineStart:"50%",width:"100%",height:b.border.thickness.focus,backgroundColor:b.color.structure.divider,zIndex:-1},selectors:{"[data-stepper-variant='vertical'] &":Ix,"[data-stepper-variant='vertical'] &:after":Lx}},"progress_stepper-marker"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:{...Ix,":after":{...Lx,insetInlineStart:"auto",top:`calc(${b.size.icon.md} + ${b.space[200]})`,width:b.border.thickness.focus,height:"100%",zIndex:-1}}}},"progress_stepper-vertical_marker"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:{":after":{top:`calc(${b.space[150]} - (0.5 * ${b.border.thickness.emphasis}))`}}}},"progress_stepper-compact_marker"),(0,v.style)({outlineOffset:b.space[25],outline:`${b.border.thickness.emphasis} solid var(${Tx})`,boxShadow:`0 0 0 ${b.space[25]} ${b.color.background.surface}`,zIndex:0},"progress_stepper-current_marker"),(0,v.style)({":after":{backgroundColor:b.color.success.main}},"progress_stepper-marker_success"),(0,v.style)({":after":{backgroundColor:b.color.structure.divider}},"progress_stepper-marker_default"),(0,v.style)({":after":{backgroundColor:b.color.warning.main}},"progress_stepper-marker_warning"),(0,v.style)({":after":{backgroundColor:b.color.error.main}},"progress_stepper-marker_cancelled"),(0,v.style)({":after":{backgroundColor:b.color.error.main}},"progress_stepper-marker_critical"),(0,v.style)({borderRadius:b.border.radius.interactive,height:b.size.icon.md,width:b.size.icon.md,padding:b.space[50]},"progress_stepper-icon"),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:{height:b.size.icon.sm,width:b.size.icon.sm,display:"grid",placeItems:"center",padding:0}}},"progress_stepper-compact_icon"),(0,v.style)({vars:{[Tx]:b.color.error.main},backgroundColor:b.color.error.main},"progress_stepper-icon_cancelled"),(0,v.style)({vars:{[Tx]:b.color.error.main},backgroundColor:b.color.error.main},"progress_stepper-icon_critical"),(0,v.style)({vars:{[Tx]:b.color.warning.main},backgroundColor:b.color.warning.main},"progress_stepper-icon_warning"),(0,v.style)({vars:{[Tx]:b.color.success.main},backgroundColor:b.color.success.main},"progress_stepper-icon_success"),(0,v.style)({vars:{[Tx]:b.color.structure.divider},backgroundColor:b.color.background.surface,border:`${b.border.thickness.focus} solid ${b.color.structure.divider}`,padding:`${b.space[50]} calc(${b.space[200]} - ${b.border.thickness.focus})`},"progress_stepper-icon_default"),(0,v.style)({textAlign:"center",display:"grid",height:"100%",alignItems:"center"},"progress_stepper-numeric"),(0,v.style)({backgroundColor:b.color.background.alt,padding:0},"progress_stepper-numeric_default"),(0,v.style)({color:b.color.primary.contrast},"progress_stepper-numeric_success"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-radio");const Bx=(0,v.style)({...Ne,color:b.color.background.mediumContrast},"radio-caption_text"),jx=((0,v.style)({display:"flex",flexDirection:"column",margin:0,padding:0,border:"none",textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"radio-group_base"),(0,v.style)({position:"relative",padding:`${b.space[150]} 0`,textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"radio-base")),Wx=((0,v.style)({...Xt,color:b.color.background.mediumContrast,display:"block",paddingBottom:b.space[150],marginBottom:b.space[50]},"radio-group_label"),(0,v.style)({display:"flex",alignItems:"center",minHeight:b.size.tapTarget.sm,paddingBottom:0},"radio-group_labelwithicon"),(0,v.style)({marginInlineStart:b.space[100]},"radio-group_iconLabel"),(0,v.style)([Zt,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"inline-block",paddingLeft:b.space[450],position:"relative",WebkitTapHighlightColor:"transparent",selectors:{"[dir='rtl'] & ":{paddingRight:b.space[450],paddingLeft:0}}}],"radio-label")),Vx=(0,v.style)({borderRadius:b.border.radius.interactive,border:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,height:b.size.circle.xs,position:"absolute",top:0,left:0,width:b.size.circle.xs,backgroundColor:b.color.background.surface,selectors:{"[dir='rtl'] & ":{right:0}}},"radio-check_icon_container"),Ux=(0,v.style)({border:`${b.border.thickness.emphasis} solid ${b.color.error.main}`},"radio-icon_error_check_icon_container"),qx=(0,v.style)({display:"none"},"radio-check_icon"),Gx=(0,v.style)({opacity:0,position:"absolute",cursor:"pointer",margin:0},"radio-icon_input");(0,v.globalStyle)(`${Gx}:checked + label > span:first-of-type`,{borderColor:b.color.selected.main,backgroundColor:b.color.selected.main,color:b.color.background.surface}),(0,v.globalStyle)(`${Gx}:checked + label > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,v.globalStyle)(`${Gx}:focus + label > span:first-of-type`,{...Fn}),(0,v.globalStyle)(`${Gx}:active:not(:checked) + label > span:first-of-type`,{background:b.color.background.surfaceActive});const Kx=(0,v.style)({},"radio_input_with_error");(0,v.globalStyle)(`${Kx}:checked + label > span:first-of-type`,{border:`${b.border.thickness.emphasis} solid ${b.color.error.main}`});const Yx=(0,v.style)({top:"50%",transform:"translateY(-50%)"},"radio-centered_label_check_icon_container"),Xx=(0,v.style)([Bx,{margin:0,listStyle:"none",marginTop:b.space[50]}],"radio-helper_text");(0,v.style)([Bx,{margin:0,listStyle:"none"}],"radio-group_helper_text"),(0,v.style)([Bx,{display:"flex",margin:0,alignItems:"center"}],"radio-error_text"),(0,v.style)({color:b.color.error.main,marginRight:b.space[50],flexShrink:"0",alignSelf:"flex-start",selectors:{"[dir='rtl'] & ":{marginLeft:b.space[50],marginRight:0}}},"radio-error_icon"),y.endFileScope();var Zx=["label","name","value","id","centeredLabel","helperText","className","labelClassName","onChange","checked","errorText"],Qx=function(e){return g().createElement("span",{className:e.className,"aria-hidden":"true","data-ppui":"true"},g().createElement("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","data-ppui":"true"},g().createElement("circle",{r:"18",cy:"50",cx:"50",strokeWidth:"0",fill:"currentColor","data-ppui":"true"})))};(0,m.forwardRef)((function(e,t){var r=e.label,n=e.name,a=void 0===n?te():n,i=e.value,o=void 0===i?function(e){return"string"==typeof e?e:"value_not_set"}(r):i,l=e.id,s=void 0===l?"Radio_".concat(a,"_").concat(o):l,c=e.centeredLabel,u=void 0!==c&&c,d=e.helperText,p=e.className,m=e.labelClassName,y=e.onChange,v=e.checked,b=void 0!==v&&v,w=e.errorText,x=h(e,Zx),k={onChange:y};k[y?"checked":"defaultChecked"]=b;var _=Z(Gx,!!w&&Kx),S=Z(Vx,!!w&&Ux,u&&Yx);return g().createElement("div",{className:Z(jx,p),"data-ppui-info":"radio_4.1.2__8.12.0"},g().createElement("input",f({className:_,type:"radio",name:a,value:o,id:s,ref:t},k,x,{"data-ppui":"true"})),g().createElement("label",{className:Z(Wx,m),htmlFor:s,"data-ppui":"true"},g().createElement("span",{className:S,"data-ppui":"true"},g().createElement(Qx,{className:qx,"data-ppui":"true"})),r,function(e,t){return e&&g().createElement("p",{className:t,"data-ppui":"true"},e)}(d,Xx)))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-scroll-box"),(0,v.style)({display:"grid",gridTemplateRows:"auto 1fr auto",height:"100%"},"sb_base"),(0,v.style)({position:"relative",overflow:"hidden",zIndex:"0",selectors:{"&:before":{content:"",position:"absolute",top:"-1rem",left:"0",right:"0",display:"block",height:"1rem",...yo,zIndex:"-1"},"&:after":{content:"",position:"absolute",bottom:"-1rem",left:"0",right:"0",display:"block",height:"1rem",...$o,zIndex:"-1"}}},"sb_content"),(0,v.style)({padding:`${b.space[100]} ${b.space[150]}`},"sb_head"),(0,v.style)({padding:`${b.space[100]} ${b.space[150]}`},"sb_foot"),(0,v.style)({padding:`0 ${b.space[150]}`,height:"100%",overflow:"scroll",background:`linear-gradient(to bottom,\n ${b.color.background.surface},\n transparent ${b.space[400]},\n transparent calc(100% - ${b.space[400]}),\n ${b.color.background.surface} 100%\n )`,backgroundAttachment:"local"},"sb_scroller"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-search-input");const{ppuiEaseMoveSmall:Jx}=cn,ek=(0,v.style)({borderRadius:b.size.icon.xl,paddingLeft:`calc(${b.space[500]} + ${b.space[50]})`,paddingRight:b.space[600],"@media":{[`(max-width: ${E})`]:{paddingTop:b.space[150],paddingBottom:b.space[150],minHeight:b.size.field.sm,selectors:{"[dir='rtl'] &":{paddingTop:b.space[150],paddingBottom:b.space[150]}}}},selectors:{"[dir='rtl'] &":{paddingRight:`calc(${b.space[500]} + ${b.space[50]})`,paddingLeft:b.space[600]}}},"search_input"),tk=(0,v.style)({borderColor:b.color.structure.borderLowContrast},"search_border_color"),rk=(0,v.style)({left:b.space[50],position:"absolute",selectors:{"[dir='rtl'] &":{right:b.space[50],position:"absolute"}},"@media":{[`(max-width: ${E})`]:{top:`calc(-1 * ${b.space[100]})`}}},"left_icon"),nk=(0,v.style)({position:"absolute",right:`calc(-1 * ${b.space[25]})`,"@media":{[`(max-width: ${E})`]:{top:`calc(-1 * ${b.space[100]})`}},selectors:{"[dir='rtl'] &":{left:`calc(-1 * ${b.space[100]})`,right:b.space[25]}}},"rightIcon"),ak=(0,v.style)({paddingInlineStart:b.space[200],transition:`padding ${b.motion.duration.move.small} ${Jx}`},"remove_extra_padding"),ik=(0,v.style)({backgroundColor:b.color.background.alt},"search_input_level2");y.endFileScope();var ok=["keepClearButton","onClear","className","clearButtonLabel","clearButtonAriaLabel","inputClassName","labelClassName","errorText","label","value","onKeyDown","onFocus","onBlur","pageLevel"];(0,m.forwardRef)((function(e,t){var r=e.keepClearButton,n=e.onClear,a=e.className,i=e.clearButtonLabel,o=void 0===i?"Clear input":i,l=e.clearButtonAriaLabel,s=void 0===l?"The info has been cleared":l,c=e.inputClassName,u=e.labelClassName,d=e.errorText,p=e.label,y=e.value,v=e.onKeyDown,b=e.onFocus,w=e.onBlur,x=e.pageLevel,k=void 0===x?1:x,_=h(e,ok),S=ro((0,m.useState)(!1),2),E=S[0],C=S[1],$=ro((0,m.useState)(!0),2),A=$[0],T=$[1],O=ro((0,m.useState)(!1),2),z=O[0],P=O[1],F=E?{"aria-label":s,"aria-atomic":"true","aria-live":"polite",role:"button"}:null,N=y||r?{rightIcon:g().createElement(Sd,f({buttonType:"tertiary",className:nk,svgIconComponent:Ra,onClick:function(e){n&&n(e),C(!0),P(!0)},onMouseDown:function(e){return e.preventDefault()}},F,{"data-ppui":"true"}),o)}:null,R=A?{leftIcon:g().createElement(Da,{className:rk,size:"sm","aria-hidden":"true","data-ppui":"true"})}:null,I=Z(ek,!d&&tk,!A&&ak,2===k&&ik,c);return g().createElement(g().Fragment,null,g().createElement(Zi,f({className:a,ref:t},R,N,{inputClassName:I,labelClassName:u,errorText:d,isLabelHidden:!0,placeholder:p,label:p,value:y,onFocus:function(e){T(!1),P(!0),b&&b(e)},onBlur:function(e){T(!y),P(!1),w&&w(e)},"data-ppui-info":"search-input_3.2.2__8.12.0",setFocus:z},_,{onKeyDown:function(e){E&&C(!1),"Escape"===e.key&&n&&n(e),v&&v(e)}})))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-segmented-controller");const lk="64rem",sk=((0,v.style)({backgroundColor:b.color.background.alt,borderRadius:lk,display:"flex",alignItems:"stretch",justifyContent:"flex-start",position:"relative",padding:"0.1875rem",gap:b.space[50]},"segmented_controller_tab_wrapper"),(0,v.style)({borderRadius:"inherit",position:"relative",backgroundColor:"transparent",width:"100%",border:0,minWidth:0,padding:0,cursor:"pointer",...Vt,zIndex:1,":focus":Fn},"segmented_controller_tab"));(0,v.globalStyle)(`[data-contrast-variant="high"] ${sk}:hover:not(:focus) span`,{background:b.color.selected.altHover,color:b.color.selected.contrast}),(0,v.globalStyle)(`[data-contrast-variant="low"] ${sk}:hover:not(:focus) span`,{background:b.color.unselected.mainHover,fontWeight:b.typography.buttonSm.weight}),(0,v.globalStyle)(`[data-contrast-variant="high"] ${sk}[aria-selected="true"] span`,{color:b.color.selected.contrast}),(0,v.globalStyle)(`[data-contrast-variant="low"] ${sk}[aria-selected="true"] span`,{color:b.color.selected.main}),(0,v.style)({position:"absolute",top:0,left:0,width:0,height:0,borderRadius:lk,transition:`left ${b.motion.duration.move.small} ${cn.ppuiEaseMoveSmall}`},"segmented_controller_tab_slider"),(0,v.style)({background:b.color.selected.alt},"segmented_controller_tab_slider_default"),(0,v.style)({background:b.color.selected.contrast},"segmented_controller_tab_slider_low_contrast");const ck=(0,v.style)({display:"flex",flexWrap:"wrap",justifyContent:"center",alignItems:"center",height:"100%",wordBreak:"break-word",border:`${b.border.thickness.normal} solid transparent`,padding:b.space.sm,borderRadius:"inherit",color:b.color.background.mediumContrast,pointerEvents:"none"},"segmented_controller_tab_title");(0,v.style)({selectors:{'&[aria-hidden="true"]':{display:"none"}}},"segmented_controller_tab_content"),(0,v.style)({display:"block"},"segmented_controller_tab_content_visible"),(0,v.style)({display:"none"},"segmented_controller_tab_content_hidden"),y.endFileScope();var uk=["id","tabIdx","label","segmentedControllerId","panelId","selected","onClick","className"];g().forwardRef((function(e,t){var r=e.id,n=e.tabIdx,a=e.label,i=e.segmentedControllerId,o=e.panelId,l=e.selected,s=e.onClick,c=e.className,u=h(e,uk),d=l?0:-1,p=r||"".concat(i,"-tab").concat(parseInt(n,10)+1);return g().createElement("button",f({"data-tab-index":n,id:p,className:Z(sk,c),"aria-controls":o,"aria-selected":l,tabIndex:d,type:"button",role:"tab",ref:t},u,{onClick:s,"data-ppui":"true"}),g().createElement("span",{className:ck,"data-ppui":"true"},a))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-segmented-progress-meter");const dk=(0,v.style)({display:"flex",gap:b.space[75]},"segmented_progress_meter-container"),pk=(0,v.style)({width:"100%"},"segmented_progress_meter-stack");y.endFileScope(),(0,m.forwardRef)((function(e,t){var r=e.className,n=e.size,a=void 0===n?"lg":n,i=e.duration,o=void 0===i?7:i,l=e.autoProgress,s=void 0!==l&&l,c=e.onChange,u=void 0===c?null:c,d=e.children,p=ro((0,m.useState)(0),2),f=p[0],h=p[1],y=ro((0,m.useState)([]),2),v=y[0],b=y[1],w=ro((0,m.useState)(!1),2),x=w[0],k=w[1],_=ro((0,m.useState)(!1),2),S=_[0],E=_[1],C=(0,m.useRef)(null),$=(0,m.useRef)(null),A=(0,m.useRef)(0),T=(0,m.useRef)(null),O=d.length,z=Z(dk,r);u&&(0,m.useEffect)((function(){u({index:f})}),[S]);var P=function(){$.current=Date.now(),A.current=0,T.current=Date.now(),clearInterval(C.current),E(!S)};return(0,m.useImperativeHandle)(t,(function(){return{next:function(){f<O-1&&(b((function(e){var t=to(e);return t[f]=1,t})),h(f+1),P())},prev:function(){f>0&&(b((function(e){var t=to(e);return t[f]=0,t[f-1]=0,t})),h(f-1),P())},pause:function(){return x||(T.current=Date.now()),void k(!0)},resume:function(){return x&&(A.current+=Date.now()-T.current),void k(!1)}}})),s&&(0,m.useEffect)((function(){return $.current||($.current=Date.now()),x||(C.current=setInterval((function(){var e=(Date.now()-$.current-A.current)/(1e3*o);if(b((function(t){var r=to(t);return r[f]=Math.min(e,1),r})),e>=1){if(f+1>=O)return void clearInterval(C.current);h(f+1),P()}}),10)),function(){return clearInterval(C.current)}}),[o,f,x]),g().createElement("div",{className:z,"data-ppui-info":"segmented-progress-meter_1.2.3__8.12.0"},function(e,t,r,n){var a=[];return g().Children.forEach(e,(function(e,i){var o=g().createElement("div",{key:"linearProgressMeterStacked_".concat(i),className:pk,"data-ppui":"true"},n&&g().cloneElement(e,{size:t,max:1,value:r[i]||0,noPadding:!0}),!n&&g().cloneElement(e,{size:t,noPadding:!0}));a.push(o)})),a}(d,a,v,s))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-selection-card-group");const fk="0.1875rem",hk=`calc(${b.size.indicator.lg} * 2)`,mk="selection-card-group",gk={content:"",position:"absolute",borderRadius:b.border.radius.lg,inset:"0"},yk={position:"absolute",top:`calc(${b.space[150]} + ${b.space[25]})`,right:b.space[200],width:hk,height:hk},vk={right:"unset",left:b.space[200]},bk=(e,t)=>({outline:`${e} solid ${t}`,outlineOffset:`calc(${e} * -1)`}),wk=(e,t)=>({...gk,boxShadow:`inset 0 0 0 ${t} ${b.color.error.contrast}`,...bk(e,b.color.error.main)}),xk=e=>({gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`}),kk=((0,v.style)({boxSizing:"border-box",borderStyle:"none",padding:0,margin:0},`${mk}_base`),(0,v.style)({display:"grid",gridGap:b.space[100]},`${mk}_container`),(0,v.style)({...xk(1)},`${mk}_container_grid-vertical`),(0,v.style)({...xk(2)},`${mk}_container_grid-two`),(0,v.style)({...xk(3)},`${mk}_container_grid-three`),(0,v.style)({...xk(4)},`${mk}_container_grid-four`),(0,v.style)({display:"flex",borderRadius:b.border.radius.lg,backgroundColor:b.color.background.surface,position:"relative",padding:`${b.space[150]} ${b.space[200]}`,minHeight:"2.875rem",selectors:{"&:has(input:hover)":{cursor:"pointer"},"&:has(input:focus)":{...Fn,boxShadow:`0 0 0 ${b.border.thickness.normal} ${b.color.structure.borderLowContrast}, \n 0 0 0 ${b.border.thickness.normal} ${b.color.background.surface}`}}},`${mk}_card-label`));(0,v.style)({selectors:{"&:has(input:checked)":{backgroundColor:b.color.selected.alt,color:b.color.selected.contrast}}},`${mk}_card-expressive`),(0,v.style)({selectors:{"&:has(input:checked):before":{...gk,...bk(b.border.thickness.emphasis,b.color.selected.main)}}},`${mk}_card-functional`),(0,v.style)({...yk,top:`calc(${b.space[200]} - ${b.border.thickness.normal})`,border:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,borderRadius:b.border.radius.interactive,backgroundColor:b.color.background.surface,selectors:{[`${kk}:has(input:checked) &`]:{display:"none"},"[dir='rtl'] &":{...vk}}},`${mk}_unselected`),(0,v.style)({display:"none",...yk,selectors:{[`${kk}:has(input:checked) &`]:{display:"block"},"[dir='rtl'] &":{...vk}}},`${mk}_selected-multi`),(0,v.style)({display:"none",...yk,border:`0.3125rem solid ${b.color.background.surface}`,borderRadius:b.border.radius.interactive,selectors:{[`${kk}:has(input:checked) &`]:{display:"block"},"[dir='rtl'] &":{...vk}}},`${mk}_selected-single`),(0,v.style)({borderColor:b.color.selected.main},"selected-functional-single"),(0,v.style)({color:b.color.selected.main},`${mk}_selected-functional-multi`),(0,v.style)({padding:`${b.space[25]} 0`,width:"100%",borderRadius:"inherit"},`${mk}_layout`),(0,v.style)({paddingInlineEnd:b.space[350]},`${mk}_layout-end-padding`),(0,v.style)({display:"grid",gridGap:b.space[200]},`${mk}_layout-decoration`),(0,v.style)({gridTemplateColumns:"auto 1fr",alignItems:"center",gridGap:b.space[100]},`${mk}_decoration-align-leading`),(0,v.style)({opacity:0,position:"absolute"},`${mk}_input`),(0,v.style)({...Ie,color:b.color.background.mediumContrast,display:"flex",alignItems:"center",marginTop:b.space[50],marginBottom:0},`${mk}_error-text`),(0,v.style)({color:b.color.error.main,marginInlineEnd:b.space[50],flexShrink:0,alignSelf:"flex-start"},`${mk}_error-icon`),(0,v.style)({background:b.color.background.alt},`${mk}_expressive-level-3`),(0,v.style)({":before":{...gk,...bk(b.border.thickness.normal,b.color.structure.borderLowContrast)}},`${mk}_functional-level-3`),(0,v.style)({":after":{...wk(b.border.thickness.emphasis,fk)}},`${mk}_error-expressive`),(0,v.style)({":after":{...wk(b.border.thickness.emphasis,fk)},selectors:{"&:has(input:checked):after":{...wk(fk,"0.25rem")}}},`${mk}_error-functional`),(0,v.style)({selectors:{[`${Te}&`]:{color:"inherit"}}},`${mk}_label`),(0,v.style)({selectors:{[`${Fe}&`]:{marginTop:b.space[25],color:b.color.background.mediumContrast},[`${kk}:has(input:checked) &`]:{color:"inherit"}}},`${mk}_label-description`),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-selection-group");const _k=(e,t="selection_group")=>`${t}_${e}`,Sk=b.space[100],Ek=`calc(${b.space[100]} - ${b.border.thickness.normal})`,Ck=`calc(${b.space[100]} - ${b.border.thickness.focus})`,$k=`calc(${b.border.thickness.normal} + ${b.border.thickness.normal})`,Ak="0.125rem",Tk={content:"",position:"absolute",top:`calc(${b.border.thickness.normal} * -1)`,left:`calc(${b.border.thickness.normal} * -1)`,right:0,borderRadius:b.border.radius.md,width:`calc(100% + ${Ak})`,height:`calc(100% + ${Ak})`,pointerEvents:"none"},Ok={backgroundColor:b.color.background.surface,color:b.color.secondary.main,borderColor:b.color.secondary.main,borderWidth:b.border.thickness.normal,padding:Sk,zIndex:1,WebkitTextStrokeWidth:"0.0421875rem"},zk={flexDirection:"column",minWidth:"auto"},Pk=((0,v.style)({boxSizing:"border-box",borderStyle:"none",padding:0,textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},_k("base")),(0,v.style)({display:"flex",flexWrap:"wrap",position:"relative",minWidth:"18rem",marginTop:`calc(${b.space[150]} * -1)`,marginInlineEnd:`calc(${b.space[150]} * -1)`},_k("buttons")),(0,v.style)({"@media":{[`screen and (max-width: ${_})`]:zk}},_k("buttons_responsive_xs")),(0,v.style)({"@media":{[`screen and (max-width: ${S})`]:zk}},_k("buttons_responsive_sm")),(0,v.style)({"@media":{[`screen and (max-width: ${E})`]:zk}},_k("buttons_responsive_md")),(0,v.style)({...zk,marginTop:0,display:"grid",gridAutoRows:"1fr",gap:b.space[150]},_k("buttons_vertical")),(0,v.style)([$e,{display:"block",color:b.color.background.highContrast,marginBottom:b.space[150]}],_k("group_label")),(0,v.style)({...Ie,display:"block",listStyle:"none",paddingLeft:0,margin:`${b.space[150]} 0 0 0`},_k("helper_text")),(0,v.style)({...Ie,color:b.color.background.mediumContrast,display:"flex",alignItems:"center",marginTop:b.space[50],marginBottom:0},_k("error_text")),(0,v.style)({color:b.color.error.main,marginInlineEnd:b.space[50],flexShrink:"0",alignSelf:"flex-start"},_k("error_icon")),(0,v.style)({justifyContent:"center"},_k("center")),(0,v.style)({justifyContent:"stretch"},_k("justify")),(0,v.style)({position:"absolute",clip:"rect(0, 0, 0, 0)",pointerEvents:"none",width:"1px",height:"1px"},_k("control")));(0,v.globalStyle)(`${Pk}:focus + label`,{outline:"none",...Fn,borderWidth:b.border.thickness.normal,padding:Sk}),(0,v.globalStyle)(`${Pk}:checked + label div`,{color:b.color.secondary.main}),(0,v.globalStyle)(`${Pk}:checked + label span`,{color:b.color.secondary.main});const Fk=(0,v.style)({},_k("label_when_focused_and_checked"));(0,v.globalStyle)(`${Fk} input:checked + label:after`,{border:`${$k} solid ${b.color.primary.main}`}),(0,v.style)([$e,{display:"flex",flexDirection:"column",justifyContent:"center",backgroundColor:b.color.background.surface,padding:Sk,marginTop:b.space[150],marginRight:b.space[150],textAlign:"center",cursor:"pointer",userSelect:"none",border:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,borderRadius:b.border.radius.md,position:"relative",transition:`color ${b.motion.duration.action} ease,\n background-color ${b.motion.duration.action} ease,\n border-color ${b.motion.duration.action} ease`,minHeight:"3.75rem",minWidth:"5.125rem",selectors:{"&:hover":{background:b.color.background.surface,borderColor:b.color.secondary.main},"[dir='rtl'] & ":{marginRight:0,marginLeft:b.space[150]}}}],_k("label")),(0,v.style)({textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},_k("secondary_label_vertical")),(0,v.style)({marginRight:0,marginTop:0},_k("label_vertical")),(0,v.style)({flex:"1 0 auto"},_k("label_justify"));const Nk=(0,v.style)({},_k("primary"));(0,v.globalStyle)(`${Nk} input:checked + label`,Ok),(0,v.globalStyle)(`${Nk} input:focus + label:after`,{borderColor:b.color.secondary.main}),(0,v.globalStyle)(`${Nk} input:checked + label:after`,{...Tk,border:`${b.border.thickness.focus} solid ${b.color.secondary.main}`}),(0,v.globalStyle)(`${Nk} input:checked + label &:hover`,{border:`${b.border.thickness.normal} solid ${b.color.secondary.main}`}),(0,v.globalStyle)(`${Nk} input:checked + label span`,{color:b.color.secondary.main}),(0,v.style)([Ie,{color:b.color.background.mediumContrast}],_k("secondary_label_two")),(0,v.style)({borderWidth:b.border.thickness.emphasis,backgroundColor:b.color.background.surface,borderColor:b.color.error.main,padding:Ek},_k("error_label"));const Rk=(0,v.style)({},_k("error_label_when_checked"));(0,v.globalStyle)(`${Rk} input:checked + label:after`,{padding:Ck,border:`${b.border.thickness.focus} solid ${b.color.error.main}`,zIndex:1}),(0,v.globalStyle)(`${Rk} input:checked + label &:hover`,{border:`${b.border.thickness.focus} solid ${b.color.error.main}`}),(0,v.globalStyle)(`${Rk} input:checked + label &:after`,{border:"none"});const Ik=(0,v.style)({},_k("error_label_when_focused"));(0,v.globalStyle)(`${Ik} input:focus + label &:hover`,{borderColor:b.color.error.main,borderWidth:b.border.thickness.emphasis}),(0,v.globalStyle)(`${Ik} input:focus + label &:after`,{border:"none"}),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-switch");const Lk="3.5rem",Mk=`calc(${Lk} - ${b.size.circle.sm})`,Dk=`calc(${b.size.circle.sm} / 2)`,{ppuiEaseMoveSmall:Hk}=cn,Bk=(0,v.style)({position:"relative",textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"switch_base"),jk=(0,v.style)([$e,{display:"block",marginBottom:b.space[150],selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:b.space[300]}}}],"switch_label"),Wk=(0,v.style)({display:"block",color:b.color.background.mediumContrast},"switch_secondary_label"),Vk=(0,v.style)({display:"flex",flexWrap:"wrap",alignItems:"center",width:"100%"},"switch_inline"),Uk=(0,v.style)({flex:"1 1 0",textAlign:"start",paddingRight:b.space[300],marginBottom:0,selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:b.space[300]}}},"switch_inline_label"),qk=(0,v.style)({flex:"0 0 100%"},"switch_inline_helperText"),Gk=(0,v.style)({width:Lk,height:b.size.circle.sm,position:"relative"},"switch_container"),Kk=(0,v.style)({display:"inline-block",width:Lk,height:b.size.circle.sm,cursor:"pointer",border:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,borderRadius:Dk,backgroundColor:b.color.unselected.main},"switch_state");(0,v.globalStyle)(`${Kk} > span`,{visibility:"hidden",width:"0.0625rem",height:"0.0625rem",overflow:"hidden",position:"absolute",whiteSpace:"nowrap"});const Yk=(0,v.style)({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:0,left:0,width:b.size.circle.sm,height:b.size.circle.sm,backgroundColor:b.color.selected.contrast,borderRadius:b.border.radius.interactive,border:`${b.border.thickness.normal} solid ${b.color.structure.borderHighContrast}`,transition:`${b.motion.duration.move.small} ${Hk}`},"switch_handler"),Xk=(0,v.style)({display:"none",color:b.color.selected.main},"switch_selectedIcon"),Zk=(0,v.style)({opacity:0,position:"absolute"},"switch_control");(0,v.globalStyle)(`${Zk}:focus ~ label`,{...Fn}),(0,v.globalStyle)(`${Zk}:hover ~ label`,{backgroundColor:b.color.unselected.mainHover}),(0,v.globalStyle)(`${Zk}:checked ~ label`,{backgroundColor:b.color.selected.main,border:`${b.border.thickness.normal} solid ${b.color.selected.main}`}),(0,v.globalStyle)(`${Zk}:checked ~ span`,{transform:`translateX(${Mk})`,border:`${b.border.thickness.normal} solid ${b.color.selected.main}`}),(0,v.globalStyle)(`${Zk}:checked + label + span > span:first-of-type`,{display:"inline-block"}),(0,v.globalStyle)(`${Zk}:checked:hover ~ label`,{backgroundColor:b.color.selected.mainHover});const Qk=(0,v.style)([Fe,{marginTop:b.space[50],listStyle:"none",paddingLeft:0,color:b.color.background.mediumContrast}],"switch_helperText");y.endFileScope();var Jk=["checked","inline","className","inputClassName","labelClassName","helperText","hideLabel","id","label","secondaryLabel","onChange","required","value"];(0,m.forwardRef)((function(e,t){var r=e.checked,n=e.inline,a=e.className,i=e.inputClassName,o=e.labelClassName,l=e.helperText,s=e.hideLabel,c=e.id,u=void 0===c?te("Switch_"):c,d=e.label,p=e.secondaryLabel,m=e.onChange;e.required;var y,v,b=e.value,w=h(e,Jk),x=Z(Bk,n&&Vk,a),k=Z(jk,n&&Uk),_=Z(Qk,n&&qk),S="message_".concat(u),E="label_".concat(u),C=m?{onChange:m,checked:r}:{defaultChecked:r};return g().createElement("div",{className:x,"data-ppui-info":"switch_4.2.2__8.12.0"},!s&&g().createElement("span",{id:E,className:k,"data-ppui":"true"},d,g().createElement(le,{as:"div",className:Wk,"data-ppui":"true"},p)),g().createElement("div",{className:Gk,"data-ppui":"true"},g().createElement("input",f({},l?{"aria-describedby":S}:null,s?{}:{"aria-labelledby":E},{"aria-label":s?d:null,className:Z(Zk,i),id:u,role:"switch",type:"checkbox",value:b,ref:t},C,w,{"data-ppui":"true"})),g().createElement("label",{className:Z(Kk,o),htmlFor:u,"data-ppui":"true"},g().createElement("span",{"data-ppui":"true"},d)),g().createElement("span",{className:Yk,"data-ppui":"true"},g().createElement(Aa,{size:"xs",className:Xk,"aria-hidden":"true","data-ppui":"true"}))),(v=S,(y=l)&&g().createElement("div",{className:_,id:v,"data-ppui":"true"},y)||null))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-tabs");const{variables:e_}=n,t_=`calc(${b.space[400]} + ${b.space[300]})`,r_=`calc(${b.size.tapTarget.default} * 2)`,n_=`calc(${b.space[300]} * 3)`,a_={display:"none"},i_={display:"block"},o_=((0,v.style)({position:"relative"},"tabs_wrapper_base"),(0,v.style)({overflowY:"hidden",whiteSpace:"nowrap",position:"relative",scrollbarWidth:"none",padding:`${b.space[300]} ${b.space[300]} ${b.space[300]} ${t_}`,selectors:{"&::-webkit-scrollbar":{...a_}}},"tabs_base"),(0,v.style)({display:"flex",float:"left",minHeight:b.size.field.sm,width:"max-content",position:"relative",selectors:{"[dir='rtl'] &":{float:"right"}}},"tabs_wrapper"),(0,v.style)({minWidth:"100%",width:"auto",minHeight:b.size.field.sm,justifyContent:"center","@media":{"(max-width: 120px)":{width:"auto",justifyContent:"flex-start"}}},"tabs_center"),(0,v.style)({...i_,...qt,padding:`${b.space[150]} ${b.space[50]}`,minHeight:b.size.field.sm,minWidth:"5.25rem",maxWidth:"11.5rem",marginInlineEnd:b.space[200],outline:"none",position:"relative",border:"none",backgroundColor:"transparent",whiteSpace:"normal",wordWrap:"break-word",textDecoration:"none",flexShrink:0,cursor:"pointer",color:b.color.background.mediumContrast,zIndex:1,":last-of-type":{marginInlineEnd:0},"::after":{content:"",position:"absolute",inset:0,border:"none",pointerEvents:"none",top:"auto"},":hover":{backgroundColor:b.color.background.surfaceHover,borderRadius:b.border.radius.xs,textDecoration:"none"},":active":{color:b.color.background.highContrast,textDecoration:"none"},":focus":{...Fn,textDecoration:"none",borderRadius:b.border.radius.xs,outlineOffset:"unset",transform:"none",transition:"none"},":visited":{textDecoration:"none"}},"tabs_btn")),l_=((0,v.style)({position:"absolute",bottom:0,left:0,width:0,height:b.border.thickness.emphasis,borderRadius:b.border.radius.tiny,borderBottom:`${b.border.thickness.emphasis} solid ${b.color.background.highContrast}`,transition:`all ${b.motion.duration.move.small} ${e_.ppuiEaseMoveSmall}`},"tabs_slider"),(0,v.style)({color:b.color.background.highContrast,":hover":{textDecoration:"none"}},"tabs_selected_btn"));(0,v.globalStyle)(`${l_}:hover::after`,{borderRadius:b.border.radius.tiny,borderBottom:`${b.border.thickness.emphasis} solid ${b.color.background.highContrast}`}),(0,v.style)({backgroundColor:b.color.background.surface,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,visibility:"hidden",width:b.size.tapTarget.default,height:r_,top:0},"tabs_scroll_btn"),(0,v.style)({left:0,background:`linear-gradient(\n 90deg,\n ${b.color.background.surface} 47.45%,\n ${Q(b.color.background.surface,"0")} 100%\n )`,zIndex:1},"tabs_scroll_btn_left"),(0,v.style)({right:0,background:`linear-gradient(\n 270deg,\n ${b.color.background.surface} 47.45%,\n ${Q(b.color.background.surface,"0")} 100%\n )`,zIndex:1},"tabs_scroll_btn_right"),(0,v.style)({visibility:"visible",opacity:1,transition:`visibility ${b.motion.duration.move.small},\n opacity ${b.motion.duration.move.small}`},"tabs_scroll_btn_visible"),(0,v.style)([po,{color:b.color.primary.main,background:b.color.background.surface}],"tabs_arrow_icon"),(0,v.style)({margin:`0 ${b.space[300]} 0 ${n_}`,":focus":{outline:"none"},selectors:{"&[aria-hidden='true']":{...a_}}},"tabs_content"),(0,v.style)({":focus":{boxShadow:`0 0 ${b.border.thickness.emphasis}\n ${b.border.thickness.emphasis} ${b.color.structure.focus}`}},"tabs_content_focus"),(0,v.style)({...a_},"hide_btn"),(0,v.style)({...i_},"tabs_content_visible"),(0,v.style)({...a_},"tabs_content_hidden"),(0,v.style)([go,{background:b.color.background.surface}],"tabs_nav_background"),y.endFileScope();var s_=["id","tabIdx","label","tabGroupId","panelId","selected","onClick","className"];g().forwardRef((function(e,t){var r=e.id,n=e.tabIdx,a=e.label,i=e.tabGroupId,o=e.panelId,l=e.selected,s=e.onClick,c=e.className,u=h(e,s_),d=Z(o_,l&&l_,c),p=l?0:-1,m=r||"".concat(i,"-tab").concat(parseInt(n,10)+1);return g().createElement("button",f({ref:t,"data-tab-index":n,id:m,className:d,"aria-controls":o,"aria-selected":l,tabIndex:p,type:"button",role:"tab"},u,{onClick:s,"data-button-text":a,"data-ppui":"true"}),a)})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-area");const c_=(0,v.style)({backgroundColor:b.color.background.surface,outline:"none",boxShadow:"none",resize:"none",display:"block"},"text-area_control");(0,v.globalStyle)(`${c_}:placeholder-shown:not(:focus) ~ label`,{paddingTop:0});const u_=(0,v.style)({backgroundColor:b.color.background.surface,top:b.border.thickness.normal,paddingTop:`calc(${b.space[100]} - ${b.border.thickness.normal})`},"text-area_control_label"),d_=(0,v.style)({top:b.border.thickness.emphasis,paddingTop:`calc(${b.space[100]} - ${b.border.thickness.emphasis})`},"text-area_control_error_label"),p_=(0,v.style)({cursor:"text",position:"relative",padding:b.border.thickness.normal,":after":{content:" ",position:"absolute",height:"100%",width:"100%",top:0,left:0,border:`${b.border.thickness.normal} solid ${b.color.structure.borderLowContrast}`,borderRadius:b.border.radius.sm,pointerEvents:"none"},":focus-within":{borderRadius:b.border.radius.sm,...Fn}},"text-area_wrapper"),f_={border:"none",outline:"none",boxShadow:"none",marginTop:`calc(${b.space[350]} + ${b.space[25]} - ${b.border.thickness.normal})`,paddingTop:0,minHeight:`calc((${b.size.field.sm} / 2) + ${b.space[100]} - ${b.border.thickness.normal})`};(0,v.globalStyle)(`${p_} > textarea:focus, ${p_} > textarea:not(:focus)`,f_);const h_=(0,v.style)([Xa,{paddingTop:b.space[100],paddingRight:`calc(${b.space[150]} - ${b.border.thickness.normal})`,paddingBottom:`calc(${b.space[100]} - ${b.border.thickness.normal})`,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.normal})`,textAlign:"right",backgroundColor:b.color.background.surface,selectors:{"[dir='rtl'] & ":{textAlign:"left"}}}],"text-area_counter_text"),m_=(0,v.style)({paddingLeft:b.border.thickness.emphasis,paddingRight:b.border.thickness.emphasis,":after":{border:`${b.border.thickness.emphasis} solid ${b.color.error.main}`}},"text-area_error_counter_wrapper"),g_=(0,v.style)({color:b.color.error.main,paddingLeft:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`,paddingRight:`calc(${b.space[150]} - ${b.border.thickness.emphasis})`},"text-area_error_counter_text");y.endFileScope();var y_=["className","minRows","maxRows","showCharacterCounter","maxCharacters","counterStatusText","onChange","onBlur","onFocus","value","errorText","successText"],v_=["inputClassName","name","id","setFocus","hasError","placeholder","label","labelClassName","inputTag","placemat"];(0,m.forwardRef)((function(e,t){var r=e.className,n=e.minRows,a=e.maxRows,i=e.showCharacterCounter,o=void 0!==i&&i,l=e.maxCharacters,s=e.counterStatusText,c=e.onChange,u=void 0===c?null:c,d=e.onBlur,p=void 0===d?null:d,y=e.onFocus,v=void 0===y?null:y,b=e.value,w=e.errorText,x=e.successText,k=h(e,y_),_=function(e){return e*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16)}(1.5),S=a>1?Math.min(a,6):6,E=n>=1?Math.max(n,1):2,C=ro((0,m.useState)(b?b.length:0),2),$=C[0],A=C[1],T=ro((0,m.useState)(!1),2),O=T[0],z=T[1],P=(0,m.useRef)(),F=t||P,N=(0,m.useContext)(Wn),R=(0,m.useRef)(0),I=(0,m.useRef)(_*S),L=(0,m.useRef)(_*E);(0,m.useEffect)((function(){if(F.current){var e=F.current,t=e.offsetHeight,r=e.clientHeight,n=window.getComputedStyle(e),a=Number(n.getPropertyValue("line-height").split("px")[0]),i=Number(n.getPropertyValue("padding-bottom").split("px")[0]),o=Number(n.getPropertyValue("padding-top").split("px")[0]),l=Number.isNaN(a)?_:a,s=Number.isNaN(i)?0:i,c=Number.isNaN(o)?0:o;R.current=t-r,I.current=R.current+c+s+l*S,L.current=R.current+c+s+l*E,function(){var e=F.current;e.style.height="".concat(L.current,"px");var t=e.scrollHeight+R.current;t>I.current?e.style.height="".concat(I.current,"px"):t>L.current?e.style.height="".concat(t,"px"):e.style.height="".concat(L.current,"px")}(),z("rtl"===n.direction)}}),[E,S,b]);var M=function(){F.current&&F.current.focus()};return g().createElement(ji,f({className:r,value:b,onChange:function(e){var t=e.target;A(t.value.length),u&&u(e)},onFocus:function(e){v&&v(e)},onBlur:function(e){p&&p(e)},renderContent:function(e){var t=e.inputClassName,r=e.name,n=e.id,a=e.setFocus,i=e.hasError,c=e.placeholder,u=e.label,d=e.labelClassName;e.inputTag,e.placemat;var p=h(e,v_),m=g().createElement(qi,f({inputClassName:Z(t,c_),inputTag:"textarea",name:r,id:n,setFocus:a,inputRef:F,hasError:i,placeholder:c,label:u,labelClassName:Z(d,u_,d_)},p,{"data-ppui":"true"})),y=Z(p_,i&&m_);if(o){var v="";l&&(v=O?"".concat(l,"/"):"/".concat(l));var b=O?"".concat(v).concat($):"".concat($).concat(v),w=function(e,t,r,n){return r?e&&e.messageFormatter?e.messageFormatter({id:r}).format(n):r:t}(N,"".concat($," out of ").concat(l," characters used"),s,{charCount:$,maxCharacters:l}),x=Z(h_,i&&g_);return g().createElement("div",{className:y,onClick:M,"data-ppui":"true"},m,g().createElement("div",{className:x,role:"status","aria-live":"polite","aria-atomic":"true","aria-label":w,"data-ppui":"true"},b))}return g().createElement("div",{className:y,onClick:M,"data-ppui":"true"},m)},errorText:w,successText:x,"data-ppui-info":"text-area_1.2.2__8.12.0"},k))})),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-display");const b_=`calc(${b.size.tapTarget.default} + ${b.space[150]})`,w_=`calc(${b.typography.caption.lineHeight} + ${b.space[75]})`;(0,v.style)({paddingTop:b.space[150],paddingBottom:b.space[150],paddingLeft:0,selectors:{"[dir='rtl'] & ":{paddingLeft:b_}}},"text-display_no_label_control"),(0,v.style)({border:0,paddingLeft:0,paddingTop:w_,paddingBottom:0,minHeight:"2.875rem",display:"block",backgroundColor:"transparent",overflowWrap:"break-word",selectors:{"[dir='rtl'] & ":{paddingRight:0}}},"text-display_control"),(0,v.style)({top:0,left:0,selectors:{"[dir='rtl'] & ":{left:b_,right:0}}},"text-display_label"),(0,v.style)({top:0},"text-display_icon_right"),(0,v.style)({right:b_},"text-display_label_icon_right"),(0,v.style)({paddingRight:`calc(${b_} - ${b.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${b_} - ${b.border.thickness.normal})`}}},"text-display_control_icon_right"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-toast");const x_=`calc(-2*${b.space[200]})`,{ppuiEaseEnterSmall:k_,ppuiEaseExitSmall:__}=cn,S_=((0,v.style)([ho,$e,{display:"flex",padding:b.space[200],borderRadius:b.border.radius.lg,left:0,right:0,margin:"auto",whiteSpace:"normal",maxWidth:"30rem",pointerEvents:"auto"}],"toast_base"),(0,v.style)({alignItems:"center",display:"flex"},"toast_message"),(0,v.style)({display:"flex",position:"fixed",top:b.space[200],zIndex:1100,left:"50%",transform:"translateX(-50%)",width:`calc(100% - ${b.space[200]} * 2)`,visibility:"hidden",opacity:0,pointerEvents:"none",selectors:{"&[aria-hidden='false']":{visibility:"visible",opacity:1}}},"toast_container"),(0,v.keyframes)({"0%":{transform:`translate(-50%, ${x_})`,opacity:0},"100%":{visibility:"visible",transform:"translate(-50%, 0)",opacity:1}},"toast_fade-in")),E_=(0,v.keyframes)({"0%":{visibility:"visible",transform:"translate(-50%, 0)",opacity:1},"100%":{visibility:"hidden",transform:`translate(-50%, ${x_})`,opacity:0}},"toast_fade-out"),C_=((0,v.style)({animation:`${S_} ${b.motion.duration.enter.small} ${k_}`},"toast_show"),(0,v.style)({animation:`${E_} ${b.motion.duration.exit.small} ${__}`},"toast_hide"),{background:b.color.success.main,color:b.color.success.contrast});(0,v.style)({marginRight:b.space[100],height:b.size.icon.sm,flexShrink:"0",selectors:{"[dir='rtl'] &":{marginLeft:b.space[100],marginRight:0}}},"toast_icon"),(0,v.style)({background:b.color.system.main,color:b.color.system.contrast},"toast_info"),(0,v.style)(C_,"toast_success"),(0,v.style)(C_,"toast_favorite"),y.endFileScope(),y.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-section");const $_=(0,v.style)({display:"flex",justifyContent:"space-between",marginBottom:b.space[50],height:"1.5rem"},"section_title-container"),A_=(0,v.style)({marginBottom:b.space[150]},"section_header"),T_=(0,v.style)({margin:`${b.space[25]} 0`},"section_title"),O_=(0,v.style)({display:"flex",cursor:"pointer",":focus":{...Fn},border:"none",background:"inherit",borderRadius:b.border.radius.xs,alignItems:"center",paddingLeft:b.space[100],columnGap:b.space[25]},"section_action-container"),z_=(0,v.style)({color:b.color.background.mediumContrast},"section_caption-text"),P_=(0,v.style)({display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-start",rowGap:b.space[150]},"section_content-area"),F_=(0,v.style)([Fe,{margin:`${b.space[150]} 0`,color:b.color.background.mediumContrast}],"section_footer"),N_=(0,v.style)({selectors:{"[dir='rtl'] &":{transform:"rotate(180deg)"}}},"section_action-icon");y.endFileScope();var R_=function(e){var t=e.label,r=e.onClick;return g().createElement("button",{className:O_,onClick:function(e){return r(e)},onKeyDown:function(e){!function(e,t){"Enter"===e.key&&t(e)}(e,r)},"data-ppui":"true"},t&&g().createElement(an,{clampAtLine:2,className:z_,"data-ppui":"true"},t),g().createElement(za,{className:N_,size:"xs",color:"sysColorBackgroundMediumContrast","data-ppui":"true"}))},I_=function(e){var t=e.title,r=e.subTitle,n=e.action;return g().createElement(g().Fragment,null,g().createElement("div",{className:$_,"data-ppui":"true"},t&&g().createElement(ln,{className:T_,type:"medium","data-ppui":"true"},t),n&&g().createElement(R_,{label:n.label,onClick:n.onClick,"data-ppui":"true"})),r&&g().createElement(an,{clampAtLine:2,className:z_,"data-ppui":"true"},r))},L_=["variant","children","className","id"],M_=["children","className"],D_=["children","className"],H_=["children"],B_=function(e){var t=e.children,r=h(e,H_);return g().createElement("section",f({},r,{"data-ppui":"true"}),t)};B_.Header=function(e){var t=e.variant,r=void 0===t?"default":t,n=e.children,a=e.className,i=e.id,o=h(e,L_);return g().createElement("header",{className:Z(A_,a),id:i,"data-ppui":"true"},function(){switch(r){case"default":return g().createElement(I_,f({},o,{"data-ppui":"true"}));case"custom":return g().createElement(g().Fragment,null,n);default:return g().createElement(g().Fragment,null)}}())},B_.Content=function(e){var t=e.children,r=e.className,n=h(e,D_);return g().createElement("article",f({className:Z(P_,r)},n,{"data-ppui":"true"}),t)},B_.Footer=function(e){var t=e.children,r=e.className,n=h(e,M_);return g().createElement("footer",f({className:Z(F_,r)},n,{"data-ppui":"true"}),t)};var j_=r(867),W_=function(e){var t=e.children,r=e.styleOverrides,n=void 0===r?{}:r,a=Object.keys(n).length>0?function(e,t){var r={};if("object"==typeof t){var n=e;(0,j_.Bx)(t,((e,t)=>{if(null!=e){var a=(0,j_.Jt)(n,t);r[(0,j_.Tm)(a)]=String(e)}}))}else{var a=e;for(var i in a){var o=a[i];null!=o&&(r[(0,j_.Tm)(i)]=o)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),r}(b,n):{};return u().createElement(k,{theme:w,style:{width:"100%"}},u().createElement("div",{style:a},t))};W_.propTypes={children:O().node,styleOverrides:O().object};const V_=W_;var U_=r(150),q_=r(151),G_=U_.create({tag:"zoid-popup",url:function(e){return e.props.url},dimensions:function(e){var t=e.props;return{width:t.width,height:t.height}},domain:[/^https:\/\/[a-z0-9.-]*\.paypal\.(com|cn)$/],defaultContext:U_.CONTEXT.POPUP,props:{onComplete:{type:"function"},onClose:{type:"function"}},containerTemplate:function(e){var t=e.uid,r=e.tag,n=e.context,a=e.focus,i=e.close,o=e.doc;function l(e){return e.preventDefault(),e.stopPropagation(),i()}return q_.node("div",{id:t,onClick:function(e){return e.preventDefault(),e.stopPropagation(),a()},class:"".concat(r," ").concat(r,"-context-").concat(n," ").concat(r,"-focus")},q_.node("a",{href:"#",onClick:l,class:"".concat(r,"-close")}),q_.node("a",{href:"#",onClick:l,class:"".concat(r,"-close")}),q_.node("style",null,"\n #".concat(t," {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.8);\n }\n #").concat(t,".").concat(r,"-context-").concat(U_.CONTEXT.POPUP," {\n cursor: pointer;\n }\n #").concat(t," .").concat(r,"-close {\n position: absolute;\n right: 16px;\n top: 16px;\n width: 16px;\n height: 16px;\n opacity: 0.6;\n }\n #").concat(t," .").concat(r,"-close:hover {\n opacity: 1;\n }\n #").concat(t," .").concat(r,"-close:before,\n #").concat(t," .").concat(r,"-close:after {\n position: absolute;\n left: 8px;\n content: ' ';\n height: 16px;\n width: 2px;\n background-color: white;\n }\n #").concat(t," .").concat(r,"-close:before {\n transform: rotate(45deg);\n }\n #").concat(t," .").concat(r,"-close:after {\n transform: rotate(-45deg);\n }\n "))).render(q_.dom({doc:o}))}});const K_=function(e){var t=e.url,r=e.width,n=e.height,a=e.showPopUp,i=e.partnerName,o=e.childComponents,l=e.setShowPopUp,s=e.styles,d=e.onError,p=e.onComplete,f=function(){l(!1)},h=function(e){var t;null===(t=document.getElementsByClassName("zoid-popup-close"))||void 0===t||null===(t=t[0])||void 0===t||t.click(),p(e)};return(0,c.useEffect)((function(){var e=new Set,t=function(t){var r,n=(t.data||{}).type;n&&!e.has(n)&&("EMBEDDED_LOGIN_SUCCESS"===n&&(e.add(n),t.source&&t.source.postMessage({type:"APPLY_PARENT_DATA",styles:s,partnerName:i,origin:null===(r=window)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.origin},"*")),"DATA_STORED_FAILED"===n&&(e.add(n),d()),"DATA_STORED_SUCCESS"===n&&(e.add(n),h()))};return window.addEventListener("message",t),function(){window.removeEventListener("message",t)}}),[]),(0,c.useEffect)((function(){a&&function(e){var t=e.onComplete,r=e.onClose,n=e.width,a=e.height,i=e.url;G_({onComplete:t,onClose:r,width:n,height:a,url:i}).render("#zoidFrame",U_.CONTEXT.POPUP)}({onComplete:h,onClose:f,width:r,height:n,url:t})}),[a]),u().createElement("div",{id:"zoidFrame"},o)},Y_={development:{fileNamePrefix:"development.",host:"localhost.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.sandbox.paypal.com/webapps/tracking/ts"},staging:{fileNamePrefix:"staging.",host:"www.msmaster.qa.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.msmaster.qa.paypal.com/webapps/tracking/ts"},sandbox:{fileNamePrefix:"sandbox.",host:"www.sandbox.paypal.com",paScriptUrl:"https://www.paypalobjects.com/pa/js/min/pa.js",fptiUrl:"https://t.paypal.com/ts"},production:{fileNamePrefix:"",host:"www.paypal.com",paScriptUrl:"https://www.paypalobjects.com/pa/js/min/pa.js",fptiUrl:"https://t.paypal.com/ts"},te1:{fileNamePrefix:"te-e2e-embedded-path-testing.",host:"www.te-e2e-embedded-path-testing.qa.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.msmaster.qa.paypal.com/webapps/tracking/ts"},te2:{fileNamePrefix:"te-hybrid-path-integration.",host:"www.te-hybrid-path-integration.qa.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.msmaster.qa.paypal.com/webapps/tracking/ts"},te3:{fileNamePrefix:"te-eop-release.",host:"www.te-eop-release.qa.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.msmaster.qa.paypal.com/webapps/tracking/ts"}};var X_=function(e){return e?Y_[e].host:null!=="www.paypal.com"?"www.paypal.com":Y_.production.host};function Z_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Q_=function(e){var t,r,n=e.onComplete,a=e.payerId,i=e.styles,o=e.onError,l=e.partnerName,s=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Z_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z_(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],p=s[1],f=new URLSearchParams({payerId:a}),h=" https://".concat(X_(e.env),"/fundsmanagement/embedded?").concat(f.toString());return u().createElement(K_,{styles:i,partnerName:l,onError:o,url:"https://".concat(X_(e.env),"/signin/?returnUri=").concat(encodeURIComponent(h)),width:768,height:1200,onComplete:n,setShowPopUp:p,showPopUp:d,childComponents:u().createElement($b,{title:"Please login with your email and password.",subTitle:"",primaryButtonOptions:{id:"zoidButton",title:"Log In",onClick:function(e){e.preventDefault(),p(!0)}}})})};Q_.propTypes={name:O().string,styles:O().object,label:O().string.isRequired,columnConfig:O().object,url:O().string,value:O().string,trackButtonClick:O().func},Q_.defaultProps={columnConfig:{xs:12,sm:12,md:8,lg:7}};const J_=Q_,eS=function(e){var t=e.isLoading,r=e.children;return u().createElement(u().Fragment,null,t&&u().createElement("div",{id:"loadingWrapper",style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},u().createElement(vl,{size:"lg"})),r)};function tS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rS(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var nS="PROMPT_LOGIN",aS="LOGGED_IN",iS="ERROR",oS=function(e){var t=e.url,r=e.payerId,n=e.style,a=e.partnerName,i=tS((0,c.useState)(nS),2),o=i[0],l=i[1],s=tS((0,c.useState)(!0),2),d=s[0],p=s[1];(0,c.useEffect)((function(){window.sessionStorage.getItem("embeddedExperienceLoggedIn")?(l(aS),p(!0)):(l(nS),p(!1))}),[]);var f=function(){setTimeout((function(){p(!1)}),2e3)},h=function(){l(nS),p(!1),window.sessionStorage.removeItem("embeddedExperienceLoggedIn")},m=function(){l(aS),p(!0),window.sessionStorage.setItem("embeddedExperienceLoggedIn","true")},g=function(){l(iS),p(!1)},y=(0,c.useMemo)((function(){return o===nS?u().createElement(J_,{styles:n,partnerName:a,onError:g,onComplete:m,payerId:r}):o===iS?u().createElement($b,{title:"Something went wrong",subTitle:"This happens sometimes – trying again may help fix the problem.",primaryButtonOptions:{title:"Try Again",onClick:function(){return l(nS)}}}):u().createElement(eS,{isLoading:d},u().createElement("iframe",{src:t,onLoad:f,onError:h,style:{border:"none",position:"absolute",top:0,right:0,bottom:0,left:0,width:"100%",height:"100%"}}))}),[o,d,t]);return u().createElement(V_,null,u().createElement("div",{style:{width:"100%",position:"absolute",height:"100%"}},y))};oS.propTypes={};const lS=oS;var sS={MONEY:{url:function(e){return"https://".concat(X_(e),"/fundsmanagement/money")}},ACTION_WIDGETS:{url:function(e){return"https://".concat(X_(e),"/smartrec/actionwidget")}},PAID_FEATURES:{url:function(e){return"https://".concat(X_(e),"/vas-mgmt")}},PHONE:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/phone")}},LIFT_LIMITS:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/liftLimits")}},LANGUAGE_EDIT:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/language/edit")}},TIMEZONE_EDIT:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/timezone/edit")}},INSIGHTS:{url:function(e){return"https://".concat(X_(e),"/performance")}},REPORT:{url:function(e){return"https://".concat(X_(e),"/reports")}},PAYMENT_PREFERENCES:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/preferences/payments")}},VIEW_BUSINESS_PROFILE:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/unified-profile/business")}},CSM:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/customerServiceMessage")}},ACCOUNT_SETTINGS_PAYMENT_PREFERENCES:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/account/paymentPreferences")}},MERCHANT_LISTING:{url:function(e){return"https://".concat(X_(e),"/unifiedtransactions/")}},ACTIVITY_REFUND:{url:function(e){return"https://".concat(X_(e),"/unifiedtransactions/refund")}}},cS={};!function(e,t){Object.keys(sS).forEach((function(r){e.PayPal=e.PayPal||{};var n={initialize:function(e){var n=t.getElementById(e.targetElementId);n?p().render(u().createElement(lS,{url:sS[r].url(e.env),payerId:e.payerId,style:e.style,partnerName:e.partnerName}),n):console.error("Target element not found")}};e.PayPal[r]=n,cS[r]=n}))}(window,document);const uS=cS},937:e=>{"use strict";var t={}.hasOwnProperty,r=/[ -,\.\/:-@\[-\^`\{-~]/,n=/[ -,\.\/:-@\[\]\^`\{-~]/,a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,i=function e(i,o){"single"!=(o=function(e,r){if(!e)return r;var n={};for(var a in r)n[a]=t.call(e,a)?e[a]:r[a];return n}(o,e.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var l="double"==o.quotes?'"':"'",s=o.isIdentifier,c=i.charAt(0),u="",d=0,p=i.length;d<p;){var f=i.charAt(d++),h=f.charCodeAt(),m=void 0;if(h<32||h>126){if(h>=55296&&h<=56319&&d<p){var g=i.charCodeAt(d++);56320==(64512&g)?h=((1023&h)<<10)+(1023&g)+65536:d--}m="\\"+h.toString(16).toUpperCase()+" "}else m=o.escapeEverything?r.test(f)?"\\"+f:"\\"+h.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?"\\"+h.toString(16).toUpperCase()+" ":"\\"==f||!s&&('"'==f&&l==f||"'"==f&&l==f)||s&&n.test(f)?"\\"+f:f;u+=m}return s&&(/^-[-\d]/.test(u)?u="\\-"+u.slice(1):/\d/.test(c)&&(u="\\3"+c+" "+u.slice(1))),u=u.replace(a,(function(e,t,r){return t&&t.length%2?e:(t||"")+r})),!s&&o.wrap?l+u+l:u};i.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},i.version="3.0.0",e.exports=i},744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function a(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function l(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||a,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?s.arrayMerge(e,r,s):function(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach((function(t){a[t]=n(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))})),a}(e,r,s):n(r,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var s=l;e.exports=s},780:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t),r.d(t,"ElementNode",(function(){return i})),r.d(t,"FragmentNode",(function(){return o})),r.d(t,"TextNode",(function(){return l})),r.d(t,"ComponentNode",(function(){return s})),r.d(t,"node",(function(){return f})),r.d(t,"Fragment",(function(){return h})),r.d(t,"text",(function(){return m})),r.d(t,"dom",(function(){return _})),r.d(t,"react",(function(){return $})),r.d(t,"html",(function(){return O})),r.d(t,"preact",(function(){return P})),r.d(t,"regex",(function(){return F})),r.d(t,"NODE_TYPE",(function(){return n})),r.d(t,"Style",(function(){return N})),r.d(t,"Regex",(function(){return L})),r.d(t,"RegexText",(function(){return M})),r.d(t,"RegexWord",(function(){return D})),r.d(t,"RegexCharacters",(function(){return H})),r.d(t,"RegexGroup",(function(){return B})),r.d(t,"RegexUnion",(function(){return j}));var n={ELEMENT:"element",TEXT:"text",COMPONENT:"component",FRAGMENT:"fragment"};function a(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n].render(t);if(a)if(Array.isArray(a))for(var i=0;i<a.length;i++){var o=a[i];o&&r.push(o)}else r.push(a)}return r}var i=function(){function e(e,t,r){this.type=n.ELEMENT,this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=t||{},this.children=r;var a=this.props.onRender;"function"==typeof a&&(this.onRender=a,delete t.onRender)}var t=e.prototype;return t.render=function(e){var t=e(this);return this.onRender&&this.onRender(t),t},t.renderChildren=function(e){return a(this.children,e)},e}(),o=function(){function e(e){this.type=n.FRAGMENT,this.children=void 0,this.children=e}return e.prototype.render=function(e){return a(this.children,e)},e}(),l=function(){function e(e){this.type=n.TEXT,this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),s=function(){function e(e,t,r){this.type=n.COMPONENT,this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=t||{},this.children=r,this.props.children=r}var t=e.prototype;return t.renderComponent=function(e){var t=function(e){var t=c(Array.isArray(e)?e:[e]);return 1===t.length?t[0]:t.length>1?new o(t):void 0}(this.component(this.props,this.children));if(t)return t.render(e)},t.render=function(e){return e(this)},t.renderChildren=function(e){return a(this.children,e)},e}();function c(e){for(var t=[],r=0;r<e.length;r++){var a=e[r];if(a)if("string"==typeof a||"number"==typeof a)t.push(new l(a.toString()));else{if("boolean"==typeof a)continue;if(Array.isArray(a))for(var i=0,o=c(a);i<o.length;i++)t.push(o[i]);else{if(!a||a.type!==n.ELEMENT&&a.type!==n.TEXT&&a.type!==n.COMPONENT)throw new TypeError("Unrecognized node type: "+typeof a);t.push(a)}}}return t}var u,d,p,f=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(n=c(n),"string"==typeof e)return new i(e,t,n);if("function"==typeof e)return new s(e,t,n);throw new TypeError("Expected jsx element to be a string or a function")},h=function(e,t){return t};function m(){return function e(t){if(t.type===n.COMPONENT)return[].concat(t.renderComponent(e)).join("");if(t.type===n.ELEMENT)throw new Error("Text renderer does not support basic elements");if(t.type===n.TEXT)return t.text;throw new TypeError("Unhandleable node: "+t.type)}}function g(e){return null!=e}var y=((u={}).svg="http://www.w3.org/2000/svg",u),v=((d={})["xlink:href"]="http://www.w3.org/1999/xlink",d);function b(e,t){return e.createTextNode(t.text)}function w(e,t){for(var r=t.props,n=0,a=Object.keys(r);n<a.length;n++){var i=a[n],o=r[i];if(null!=o&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof o)e.addEventListener(i.slice(2).toLowerCase(),o);else if("string"==typeof o||"number"==typeof o){var l=v[i];l?e.setAttributeNS(l,i,o.toString()):e.setAttribute(i,o.toString())}else"boolean"==typeof o&&!0===o&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||r.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(16*Math.random()))})))}var x=((p={}).iframe=function(e,t){var r=t.children[0];if(1!==t.children.length||!r||r.type!==n.ELEMENT||"html"!==r.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var t=e.contentWindow;if(!t)throw new Error("Expected frame to have contentWindow");for(var n=t.document,a=n.documentElement;a.children&&a.children.length;)a.removeChild(a.children[0]);for(var i=r.render(_({doc:n}));i.children.length;)a.appendChild(i.children[0])}))},p.script=function(e,t){var r=t.children[0];if(1!==t.children.length||!r||r.type!==n.TEXT)throw new Error("Expected only single text node as child of script element");e.text=r.text},p.default=function(e,t,r){for(var n=0,a=t.renderChildren(r);n<a.length;n++)e.appendChild(a[n])},p);function k(e,t,r,n){if(t.props.hasOwnProperty("innerHTML")){if(t.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var a=t.props.innerHTML;if("string"!=typeof a)throw new TypeError("innerHTML prop must be string");"script"===t.name?e.text=a:(e.innerHTML=a,function(e,t){void 0===t&&(t=window.document);for(var r=0,n=e.querySelectorAll("script");r<n.length;r++){var a=n[r],i=a.parentNode;if(i){var o=t.createElement("script");o.text=a.textContent,i.replaceChild(o,a)}}}(e,r))}else(x[t.name]||x.default)(e,t,n)}function _(e){void 0===e&&(e={});var t=e.doc,r=void 0===t?document:t;return function e(t){if(t.type===n.COMPONENT)return t.renderComponent(e);if(t.type===n.TEXT)return b(r,t);if(t.type===n.ELEMENT){var a=y[t.name.toLowerCase()];if(a)return function e(t,a){if(t.type===n.COMPONENT)return t.renderComponent((function(t){return e(t,a)}));if(t.type===n.TEXT)return b(r,t);if(t.type===n.ELEMENT){var i=function(e,t,r){return e.createElementNS(r,t.name)}(r,t,a);return w(i,t),k(i,t,r,(function(t){return e(t,a)})),i}throw new TypeError("Unhandleable node")}(t,a);var i=function(e,t){return t.props.el?t.props.el:e.createElement(t.name)}(r,t);return w(i,t),k(i,t,r,e),i}throw new TypeError("Unhandleable node")}}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function E(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}var C=["innerHTML","class"];function $(e){var t=(void 0===e?{}:e).React;if(!t)throw new Error("Must pass React library to react renderer");return function e(r){if(r.type===n.COMPONENT)return t.createElement.apply(t,[function(){return r.renderComponent(e)||null},r.props].concat(r.renderChildren(e)));if(r.type===n.ELEMENT)return t.createElement.apply(t,[r.name,(a=r.props,i=a.innerHTML,S({dangerouslySetInnerHTML:i?{__html:i}:null,className:a.class},E(a,C)))].concat(r.renderChildren(e)));var a,i;if(r.type===n.TEXT)return r.text;throw new TypeError("Unhandleable node")}}var A={br:!0};function T(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function O(){return function e(t){if(t.type===n.COMPONENT)return[].concat(t.renderComponent(e)).join("");if(t.type===n.ELEMENT){var r=(i=t.props,(o=Object.keys(i).filter((function(e){var t=i[e];return"innerHTML"!==e&&("string"==typeof t||"number"==typeof t||!0===t)}))).length?" "+o.map((function(e){var t=i[e];if(!0===t)return""+T(e);if("string"!=typeof t&&"number"!=typeof t)throw new TypeError("Unexpected prop type: "+typeof t);return""===t?T(e):T(e)+'="'+T(t.toString())+'"'})).join(" "):"");if(A[t.name])return"<"+t.name+r+" />";var a="string"==typeof t.props.innerHTML?t.props.innerHTML:t.renderChildren(e).join("");return"<"+t.name+r+">"+a+"</"+t.name+">"}var i,o;if(t.type===n.TEXT)return T(t.text);throw new TypeError("Unhandleable node: "+t.type)}}var z=["innerHTML"];function P(e){var t=(void 0===e?{}:e).Preact;if(!t)throw new Error("Must pass Preact library to react renderer");return function e(r){if(r.type===n.COMPONENT)return t.h.apply(t,[function(){return r.renderComponent(e)||null},r.props].concat(r.renderChildren(e)));if(r.type===n.ELEMENT)return t.h.apply(t,[r.name,(a=r.props,i=a.innerHTML,S({dangerouslySetInnerHTML:i?{__html:i}:null},E(a,z)))].concat(r.renderChildren(e)));var a,i;if(r.type===n.TEXT)return r.text;throw new TypeError("Unhandleable node")}}function F(){var e=m();return function(t){return new RegExp(e(t))}}function N(e){var t=e.css,r=e.nonce,n=e.children;return f(h,null,f("style",{innerHTML:"string"==typeof t?t:t._getCss(),nonce:r}),n)}F.node=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var i=f.apply(void 0,[e,t].concat(n));return e.renderer?i.render(e.renderer()):i};var R=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")},I=function(e,t){return(t=function(e,t){if(!t)throw new Error("Must pass children to "+e);return t}(e,t)).map((function(e){return e.type===n.TEXT?new l(R(e.text)):e}))};function L(e,t){var r=e.exact,n=void 0===r||r;return t=I("RegexGroup",t),n?["^"].concat(t,["$"]):t}function M(e,t){return I("RegexText",t)}function D(e,t){return function(e,t){if(t&&t.length)throw new Error("Must not pass children to RegexWord")}(0,t),"\\w+"}function H(e,t){return["["].concat(I("RegexText",t),["]"])}function B(e,t){var r=e.repeat,n=e.repeatMin,a=e.repeatMax,i=e.name,o=e.optional,s=void 0!==o&&o,c=e.capture,u=void 0===c||c,d=e.union,p=void 0!==d&&d;if(t=I("RegexGroup",t),g(r)&&(g(n)||g(a)))throw new Error("repeat can not be used with repeatMin or repeatMax");if(i&&!u)throw new Error("Named groups must be captured");if(p){for(var f=[],h=0,m=t;h<m.length;h++)f.push(m[h]),f.push(new l("|"));f.pop(),t=f}var y=[];return y.push(u?"(":"(?:"),i&&y.push("?<"+R(i)+">"),y.push.apply(y,t),y.push(")"),g(r)&&("number"==typeof r?y.push("{"+r+"}"):!0===r&&y.push("+")),(g(n)||g(a))&&y.push("{"+(n||"")+","+(a||"")+"}"),s&&y.push("?"),y}function j(e,t){for(var r=[],n=0,a=t=I("RegexGroup",t);n<a.length;n++)r.push(a[n]),r.push("|");return r.pop(),r}L.renderer=F}])},151:(e,t,r)=>{e.exports=r(780)},228:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,o,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))r.call(i,c)&&(l[c]=i[c]);if(t){o=t(i);for(var u=0;u<o.length;u++)n.call(i,o[u])&&(l[o[u]]=i[o[u]])}}return l}},633:e=>{var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},694:(e,t,r)=>{"use strict";var n=r(925);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},556:(e,t,r)=>{e.exports=r(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},551:(e,t,r)=>{"use strict";var n=r(664),a=r(228),i=r(982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(o(227));function l(e,t,r,n,a,i,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var s=!1,c=null,u=!1,d=null,p={onError:function(e){s=!0,c=e}};function f(e,t,r,n,a,i,o,u,d){s=!1,c=null,l.apply(p,arguments)}var h=null,m=null,g=null;function y(e,t,r){var n=e.type||"unknown-event";e.currentTarget=g(r),function(e,t,r,n,a,i,l,p,h){if(f.apply(this,arguments),s){if(!s)throw Error(o(198));var m=c;s=!1,c=null,u||(u=!0,d=m)}}(n,t,void 0,e),e.currentTarget=null}var v=null,b={};function w(){if(v)for(var e in b){var t=b[e],r=v.indexOf(e);if(!(-1<r))throw Error(o(96,e));if(!k[r]){if(!t.extractEvents)throw Error(o(97,e));for(var n in k[r]=t,r=t.eventTypes){var a=void 0,i=r[n],l=t,s=n;if(_.hasOwnProperty(s))throw Error(o(99,s));_[s]=i;var c=i.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&x(c[a],l,s);a=!0}else i.registrationName?(x(i.registrationName,l,s),a=!0):a=!1;if(!a)throw Error(o(98,n,e))}}}}function x(e,t,r){if(S[e])throw Error(o(100,e));S[e]=t,E[e]=t.eventTypes[r].dependencies}var k=[],_={},S={},E={};function C(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!b.hasOwnProperty(t)||b[t]!==n){if(b[t])throw Error(o(102,t));b[t]=n,r=!0}}r&&w()}var $=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),A=null,T=null,O=null;function z(e){if(e=m(e)){if("function"!=typeof A)throw Error(o(280));var t=e.stateNode;t&&(t=h(t),A(e.stateNode,e.type,t))}}function P(e){T?O?O.push(e):O=[e]:T=e}function F(){if(T){var e=T,t=O;if(O=T=null,z(e),t)for(e=0;e<t.length;e++)z(t[e])}}function N(e,t){return e(t)}function R(e,t,r,n,a){return e(t,r,n,a)}function I(){}var L=N,M=!1,D=!1;function H(){null===T&&null===O||(I(),F())}function B(e,t,r){if(D)return e(t,r);D=!0;try{return L(e,t,r)}finally{D=!1,H()}}var j=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W=Object.prototype.hasOwnProperty,V={},U={};function q(e,t,r,n,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new q(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new q(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new q(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Y);G[t]=new q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new q(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new q(e,1,!1,e.toLowerCase(),null,!0)}));var X=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(e,t,r,n){var a=G.hasOwnProperty(t)?G[t]:null;(null!==a?0===a.type:!n&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,a,n)&&(r=null),n||null===a?function(e){return!!W.call(U,e)||!W.call(V,e)&&(j.test(e)?U[e]=!0:(V[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,re=J?Symbol.for("react.fragment"):60107,ne=J?Symbol.for("react.strict_mode"):60108,ae=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,oe=J?Symbol.for("react.context"):60110,le=J?Symbol.for("react.concurrent_mode"):60111,se=J?Symbol.for("react.forward_ref"):60112,ce=J?Symbol.for("react.suspense"):60113,ue=J?Symbol.for("react.suspense_list"):60120,de=J?Symbol.for("react.memo"):60115,pe=J?Symbol.for("react.lazy"):60116,fe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case re:return"Fragment";case te:return"Portal";case ae:return"Profiler";case ne:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case oe:return"Context.Consumer";case ie:return"Context.Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case fe:return ge(e.render);case pe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,a=e._debugSource,i=ge(e.type);r=null,n&&(r=ge(n.type)),n=i,i="",a?i=" (at "+a.fileName.replace(Q,"")+":"+a.lineNumber+")":r&&(i=" (created by "+r+")"),r="\n in "+(n||"Unknown")+i}t+=r,e=e.return}while(e);return t}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=be(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function ke(e,t){var r=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function _e(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=ve(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Z(e,"checked",t,!1)}function Ee(e,t){Se(e,t);var r=ve(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?$e(e,t.type,r):t.hasOwnProperty("defaultValue")&&$e(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function $e(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ae(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Te(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ve(r),t=null,a=0;a<e.length;a++){if(e[a].value===r)return e[a].selected=!0,void(n&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ze(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:ve(r)}}function Pe(e,t){var r=ve(t.value),n=ve(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ne(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Re(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ie,Le,Me=(Le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ie=Ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return Le(e,t)}))}:Le);function De(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function He(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Be={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},je={},We={};function Ve(e){if(je[e])return je[e];if(!Be[e])return e;var t,r=Be[e];for(t in r)if(r.hasOwnProperty(t)&&t in We)return je[e]=r[t];return e}$&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete Be.animationend.animation,delete Be.animationiteration.animation,delete Be.animationstart.animation),"TransitionEvent"in window||delete Be.transitionend.transition);var Ue=Ve("animationend"),qe=Ve("animationiteration"),Ge=Ve("animationstart"),Ke=Ve("transitionend"),Ye="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Qe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Qe(e)!==e)throw Error(o(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(n=a.return)){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return et(a),e;if(i===n)return et(a),t;i=i.sibling}throw Error(o(188))}if(r.return!==n.return)r=a,n=i;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,n=i;break}if(s===n){l=!0,n=a,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,n=a;break}if(s===n){l=!0,n=i,r=a;break}s=s.sibling}if(!l)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function nt(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var at=null;function it(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)y(e,t[n],r[n]);else t&&y(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ot(e){if(null!==e&&(at=rt(at,e)),e=at,at=null,e){if(nt(e,it),at)throw Error(o(95));if(u)throw e=d,u=!1,d=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!$)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function ut(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,r,n){if(ct.length){var a=ct.pop();return a.topLevelType=e,a.eventSystemFlags=n,a.nativeEvent=t,a.targetInst=r,a}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function pt(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=Or(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var a=lt(e.nativeEvent);n=e.topLevelType;var i=e.nativeEvent,o=e.eventSystemFlags;0===r&&(o|=64);for(var l=null,s=0;s<k.length;s++){var c=k[s];c&&(c=c.extractEvents(n,t,i,a,o))&&(l=rt(l,c))}ot(l)}}function ft(e,t,r){if(!r.has(e)){switch(e){case"scroll":Gt(t,"scroll",!0);break;case"focus":case"blur":Gt(t,"focus",!0),Gt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":st(e)&&Gt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ye.indexOf(e)&&qt(e,t)}r.set(e,null)}}var ht,mt,gt,yt=!1,vt=[],bt=null,wt=null,xt=null,kt=new Map,_t=new Map,St=[],Et="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function $t(e,t,r,n,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:a,container:n}}function At(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_t.delete(t.pointerId)}}function Tt(e,t,r,n,a,i){return null===e||e.nativeEvent!==i?(e=$t(t,r,n,a,i),null!==t&&null!==(t=zr(t))&&mt(t),e):(e.eventSystemFlags|=n,e)}function Ot(e){var t=Or(e.target);if(null!==t){var r=Qe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Je(r)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){gt(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=zr(t);return null!==r&&mt(r),e.blockedOn=t,!1}return!0}function Pt(e,t,r){zt(e)&&r.delete(t)}function Ft(){for(yt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=zr(e.blockedOn))&&ht(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==bt&&zt(bt)&&(bt=null),null!==wt&&zt(wt)&&(wt=null),null!==xt&&zt(xt)&&(xt=null),kt.forEach(Pt),_t.forEach(Pt)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Rt(e){function t(t){return Nt(t,e)}if(0<vt.length){Nt(vt[0],e);for(var r=1;r<vt.length;r++){var n=vt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==bt&&Nt(bt,e),null!==wt&&Nt(wt,e),null!==xt&&Nt(xt,e),kt.forEach(t),_t.forEach(t),r=0;r<St.length;r++)(n=St[r]).blockedOn===e&&(n.blockedOn=null);for(;0<St.length&&null===(r=St[0]).blockedOn;)Ot(r),null===r.blockedOn&&St.shift()}var It={},Lt=new Map,Mt=new Map,Dt=["abort","abort",Ue,"animationEnd",qe,"animationIteration",Ge,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ke,"transitionEnd","waiting","waiting"];function Ht(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],a=e[r+1],i="on"+(a[0].toUpperCase()+a.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n],eventPriority:t},Mt.set(n,t),Lt.set(n,i),It[a]=i}}Ht("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ht("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ht(Dt,2);for(var Bt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),jt=0;jt<Bt.length;jt++)Mt.set(Bt[jt],0);var Wt=i.unstable_UserBlockingPriority,Vt=i.unstable_runWithPriority,Ut=!0;function qt(e,t){Gt(t,e,!1)}function Gt(e,t,r){var n=Mt.get(t);switch(void 0===n?2:n){case 0:n=Kt.bind(null,t,1,e);break;case 1:n=Yt.bind(null,t,1,e);break;default:n=Xt.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Kt(e,t,r,n){M||I();var a=Xt,i=M;M=!0;try{R(a,e,t,r,n)}finally{(M=i)||H()}}function Yt(e,t,r,n){Vt(Wt,Xt.bind(null,e,t,r,n))}function Xt(e,t,r,n){if(Ut)if(0<vt.length&&-1<Et.indexOf(e))e=$t(null,e,t,r,n),vt.push(e);else{var a=Zt(e,t,r,n);if(null===a)At(e,n);else if(-1<Et.indexOf(e))e=$t(a,e,t,r,n),vt.push(e);else if(!function(e,t,r,n,a){switch(t){case"focus":return bt=Tt(bt,e,t,r,n,a),!0;case"dragenter":return wt=Tt(wt,e,t,r,n,a),!0;case"mouseover":return xt=Tt(xt,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return kt.set(i,Tt(kt.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,_t.set(i,Tt(_t.get(i)||null,e,t,r,n,a)),!0}return!1}(a,e,t,r,n)){At(e,n),e=dt(e,n,null,t);try{B(pt,e)}finally{ut(e)}}}}function Zt(e,t,r,n){if(null!==(r=Or(r=lt(n)))){var a=Qe(r);if(null===a)r=null;else{var i=a.tag;if(13===i){if(null!==(r=Je(a)))return r;r=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}e=dt(e,n,r,t);try{B(pt,e)}finally{ut(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];function er(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function tr(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),a=er(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}Object.keys(Qt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var rr=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nr(e,t){if(t){if(rr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62,""))}}function ar(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ir="http://www.w3.org/1999/xhtml";function or(e,t){var r=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=E[t];for(var n=0;n<t.length;n++)ft(t[n],e,r)}function lr(){}function sr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var r,n=cr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cr(n)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=sr();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=sr((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr="$",mr="/$",gr="$?",yr="$!",vr=null,br=null;function wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function xr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var kr="function"==typeof setTimeout?setTimeout:void 0,_r="function"==typeof clearTimeout?clearTimeout:void 0;function Sr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Er(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if(r===hr||r===yr||r===gr){if(0===t)return e;t--}else r===mr&&t++}e=e.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),$r="__reactInternalInstance$"+Cr,Ar="__reactEventHandlers$"+Cr,Tr="__reactContainere$"+Cr;function Or(e){var t=e[$r];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Tr]||r[$r]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Er(e);null!==e;){if(r=e[$r])return r;e=Er(e)}return t}r=(e=r).parentNode}return null}function zr(e){return!(e=e[$r]||e[Tr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Pr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Fr(e){return e[Ar]||null}function Nr(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t){var r=e.stateNode;if(!r)return null;var n=h(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(o(231,t,typeof r));return r}function Ir(e,t,r){(t=Rr(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function Lr(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=Nr(t);for(t=r.length;0<t--;)Ir(r[t],"captured",e);for(t=0;t<r.length;t++)Ir(r[t],"bubbled",e)}}function Mr(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Rr(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function Dr(e){e&&e.dispatchConfig.registrationName&&Mr(e._targetInst,null,e)}function Hr(e){nt(e,Lr)}var Br=null,jr=null,Wr=null;function Vr(){if(Wr)return Wr;var e,t,r=jr,n=r.length,a="value"in Br?Br.value:Br.textContent,i=a.length;for(e=0;e<n&&r[e]===a[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===a[i-t];t++);return Wr=a.slice(e,1<t?1-t:void 0)}function Ur(){return!0}function qr(){return!1}function Gr(e,t,r,n){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(r):"target"===a?this.target=n:this[a]=r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Ur:qr,this.isPropagationStopped=qr,this}function Kr(e,t,r,n){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,r,n),a}return new this(e,t,r,n)}function Yr(e){if(!(e instanceof this))throw Error(o(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Xr(e){e.eventPool=[],e.getPooled=Kr,e.release=Yr}a(Gr.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ur)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ur)},persist:function(){this.isPersistent=Ur},isPersistent:qr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qr,this._dispatchInstances=this._dispatchListeners=null}}),Gr.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gr.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var i=new t;return a(i,r.prototype),r.prototype=i,r.prototype.constructor=r,r.Interface=a({},n.Interface,e),r.extend=n.extend,Xr(r),r},Xr(Gr);var Zr=Gr.extend({data:null}),Qr=Gr.extend({data:null}),Jr=[9,13,27,32],en=$&&"CompositionEvent"in window,tn=null;$&&"documentMode"in document&&(tn=document.documentMode);var rn=$&&"TextEvent"in window&&!tn,nn=$&&(!en||tn&&8<tn&&11>=tn),an=String.fromCharCode(32),on={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ln=!1;function sn(e,t){switch(e){case"keyup":return-1!==Jr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function cn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var un=!1,dn={eventTypes:on,extractEvents:function(e,t,r,n){var a;if(en)e:{switch(e){case"compositionstart":var i=on.compositionStart;break e;case"compositionend":i=on.compositionEnd;break e;case"compositionupdate":i=on.compositionUpdate;break e}i=void 0}else un?sn(e,r)&&(i=on.compositionEnd):"keydown"===e&&229===r.keyCode&&(i=on.compositionStart);return i?(nn&&"ko"!==r.locale&&(un||i!==on.compositionStart?i===on.compositionEnd&&un&&(a=Vr()):(jr="value"in(Br=n)?Br.value:Br.textContent,un=!0)),i=Zr.getPooled(i,t,r,n),(a||null!==(a=cn(r)))&&(i.data=a),Hr(i),a=i):a=null,(e=rn?function(e,t){switch(e){case"compositionend":return cn(t);case"keypress":return 32!==t.which?null:(ln=!0,an);case"textInput":return(e=t.data)===an&&ln?null:e;default:return null}}(e,r):function(e,t){if(un)return"compositionend"===e||!en&&sn(e,t)?(e=Vr(),Wr=jr=Br=null,un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nn&&"ko"!==t.locale?null:t.data}}(e,r))?((t=Qr.getPooled(on.beforeInput,t,r,n)).data=e,Hr(t)):t=null,null===a?t:null===t?a:[a,t]}},pn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!pn[e.type]:"textarea"===t}var hn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function mn(e,t,r){return(e=Gr.getPooled(hn.change,e,t,r)).type="change",P(r),Hr(e),e}var gn=null,yn=null;function vn(e){ot(e)}function bn(e){if(xe(Pr(e)))return e}function wn(e,t){if("change"===e)return t}var xn=!1;function kn(){gn&&(gn.detachEvent("onpropertychange",_n),yn=gn=null)}function _n(e){if("value"===e.propertyName&&bn(yn))if(e=mn(yn,e,lt(e)),M)ot(e);else{M=!0;try{N(vn,e)}finally{M=!1,H()}}}function Sn(e,t,r){"focus"===e?(kn(),yn=r,(gn=t).attachEvent("onpropertychange",_n)):"blur"===e&&kn()}function En(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return bn(yn)}function Cn(e,t){if("click"===e)return bn(t)}function $n(e,t){if("input"===e||"change"===e)return bn(t)}$&&(xn=st("input")&&(!document.documentMode||9<document.documentMode));var An={eventTypes:hn,_isInputEventSupported:xn,extractEvents:function(e,t,r,n){var a=t?Pr(t):window,i=a.nodeName&&a.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===a.type)var o=wn;else if(fn(a))if(xn)o=$n;else{o=En;var l=Sn}else(i=a.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(o=Cn);if(o&&(o=o(e,t)))return mn(o,r,n);l&&l(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&$e(a,"number",a.value)}},Tn=Gr.extend({view:null,detail:null}),On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function Pn(){return zn}var Fn=0,Nn=0,Rn=!1,In=!1,Ln=Tn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pn,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Fn;return Fn=e.screenX,Rn?"mousemove"===e.type?e.screenX-t:0:(Rn=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Nn;return Nn=e.screenY,In?"mousemove"===e.type?e.screenY-t:0:(In=!0,0)}}),Mn=Ln.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Dn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Hn={eventTypes:Dn,extractEvents:function(e,t,r,n,a){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&!(32&a)&&(r.relatedTarget||r.fromElement)||!o&&!i)return null;if(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,null!==(t=(t=r.relatedTarget||r.toElement)?Or(t):null)&&(t!==Qe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):o=null,o===t)return null;if("mouseout"===e||"mouseover"===e)var l=Ln,s=Dn.mouseLeave,c=Dn.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Mn,s=Dn.pointerLeave,c=Dn.pointerEnter,u="pointer");if(e=null==o?i:Pr(o),i=null==t?i:Pr(t),(s=l.getPooled(s,o,r,n)).type=u+"leave",s.target=e,s.relatedTarget=i,(r=l.getPooled(c,t,r,n)).type=u+"enter",r.target=i,r.relatedTarget=e,u=t,(n=o)&&u)e:{for(c=u,o=0,e=l=n;e;e=Nr(e))o++;for(e=0,t=c;t;t=Nr(t))e++;for(;0<o-e;)l=Nr(l),o--;for(;0<e-o;)c=Nr(c),e--;for(;o--;){if(l===c||l===c.alternate)break e;l=Nr(l),c=Nr(c)}l=null}else l=null;for(c=l,l=[];n&&n!==c&&(null===(o=n.alternate)||o!==c);)l.push(n),n=Nr(n);for(n=[];u&&u!==c&&(null===(o=u.alternate)||o!==c);)n.push(u),u=Nr(u);for(u=0;u<l.length;u++)Mr(l[u],"bubbled",s);for(u=n.length;0<u--;)Mr(n[u],"captured",r);return 64&a?[s,r]:[s]}},Bn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},jn=Object.prototype.hasOwnProperty;function Wn(e,t){if(Bn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!jn.call(t,r[n])||!Bn(e[r[n]],t[r[n]]))return!1;return!0}var Vn=$&&"documentMode"in document&&11>=document.documentMode,Un={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qn=null,Gn=null,Kn=null,Yn=!1;function Xn(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yn||null==qn||qn!==sr(r)?null:(r="selectionStart"in(r=qn)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Kn&&Wn(Kn,r)?null:(Kn=r,(e=Gr.getPooled(Un.select,Gn,e,t)).type="select",e.target=qn,Hr(e),e))}var Zn={eventTypes:Un,extractEvents:function(e,t,r,n,a,i){if(!(i=!(a=i||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{a=Ze(a),i=E.onSelect;for(var o=0;o<i.length;o++)if(!a.has(i[o])){a=!1;break e}a=!0}i=!a}if(i)return null;switch(a=t?Pr(t):window,e){case"focus":(fn(a)||"true"===a.contentEditable)&&(qn=a,Gn=t,Kn=null);break;case"blur":Kn=Gn=qn=null;break;case"mousedown":Yn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yn=!1,Xn(r,n);case"selectionchange":if(Vn)break;case"keydown":case"keyup":return Xn(r,n)}return null}},Qn=Gr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jn=Gr.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ea=Tn.extend({relatedTarget:null});function ta(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ra={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},na={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},aa=Tn.extend({key:function(e){if(e.key){var t=ra[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ta(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?na[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?ta(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ta(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ia=Ln.extend({dataTransfer:null}),oa=Tn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Pn}),la=Gr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),sa=Ln.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ca={eventTypes:It,extractEvents:function(e,t,r,n){var a=Lt.get(e);if(!a)return null;switch(e){case"keypress":if(0===ta(r))return null;case"keydown":case"keyup":e=aa;break;case"blur":case"focus":e=ea;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ln;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ia;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oa;break;case Ue:case qe:case Ge:e=Qn;break;case Ke:e=la;break;case"scroll":e=Tn;break;case"wheel":e=sa;break;case"copy":case"cut":case"paste":e=Jn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mn;break;default:e=Gr}return Hr(t=e.getPooled(a,t,r,n)),t}};if(v)throw Error(o(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Fr,m=zr,g=Pr,C({SimpleEventPlugin:ca,EnterLeaveEventPlugin:Hn,ChangeEventPlugin:An,SelectEventPlugin:Zn,BeforeInputEventPlugin:dn});var ua=[],da=-1;function pa(e){0>da||(e.current=ua[da],ua[da]=null,da--)}function fa(e,t){da++,ua[da]=e.current,e.current=t}var ha={},ma={current:ha},ga={current:!1},ya=ha;function va(e,t){var r=e.type.contextTypes;if(!r)return ha;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in r)i[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ba(e){return null!=e.childContextTypes}function wa(){pa(ga),pa(ma)}function xa(e,t,r){if(ma.current!==ha)throw Error(o(168));fa(ma,t),fa(ga,r)}function ka(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in e))throw Error(o(108,ge(t)||"Unknown",i));return a({},r,{},n)}function _a(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ha,ya=ma.current,fa(ma,e),fa(ga,ga.current),!0}function Sa(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=ka(e,t,ya),n.__reactInternalMemoizedMergedChildContext=e,pa(ga),pa(ma),fa(ma,e)):pa(ga),fa(ga,r)}var Ea=i.unstable_runWithPriority,Ca=i.unstable_scheduleCallback,$a=i.unstable_cancelCallback,Aa=i.unstable_requestPaint,Ta=i.unstable_now,Oa=i.unstable_getCurrentPriorityLevel,za=i.unstable_ImmediatePriority,Pa=i.unstable_UserBlockingPriority,Fa=i.unstable_NormalPriority,Na=i.unstable_LowPriority,Ra=i.unstable_IdlePriority,Ia={},La=i.unstable_shouldYield,Ma=void 0!==Aa?Aa:function(){},Da=null,Ha=null,Ba=!1,ja=Ta(),Wa=1e4>ja?Ta:function(){return Ta()-ja};function Va(){switch(Oa()){case za:return 99;case Pa:return 98;case Fa:return 97;case Na:return 96;case Ra:return 95;default:throw Error(o(332))}}function Ua(e){switch(e){case 99:return za;case 98:return Pa;case 97:return Fa;case 96:return Na;case 95:return Ra;default:throw Error(o(332))}}function qa(e,t){return e=Ua(e),Ea(e,t)}function Ga(e,t,r){return e=Ua(e),Ca(e,t,r)}function Ka(e){return null===Da?(Da=[e],Ha=Ca(za,Xa)):Da.push(e),Ia}function Ya(){if(null!==Ha){var e=Ha;Ha=null,$a(e)}Xa()}function Xa(){if(!Ba&&null!==Da){Ba=!0;var e=0;try{var t=Da;qa(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Da=null}catch(t){throw null!==Da&&(Da=Da.slice(e+1)),Ca(za,Ya),t}finally{Ba=!1}}}function Za(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function Qa(e,t){if(e&&e.defaultProps)for(var r in t=a({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var Ja={current:null},ei=null,ti=null,ri=null;function ni(){ri=ti=ei=null}function ai(e){var t=Ja.current;pa(Ja),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function oi(e,t){ei=e,ri=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(No=!0),e.firstContext=null)}function li(e,t){if(ri!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ri=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(o(308));ti=t,ei.dependencies={expirationTime:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var si=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function di(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function pi(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function fi(e,t){var r=e.alternate;null!==r&&ui(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function hi(e,t,r,n){var i=e.updateQueue;si=!1;var o=i.baseQueue,l=i.shared.pending;if(null!==l){if(null!==o){var s=o.next;o.next=l.next,l.next=s}o=l,i.shared.pending=null,null!==(s=e.alternate)&&null!==(s=s.updateQueue)&&(s.baseQueue=l)}if(null!==o){s=o.next;var c=i.baseState,u=0,d=null,p=null,f=null;if(null!==s)for(var h=s;;){if((l=h.expirationTime)<n){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===f?(p=f=m,d=c):f=f.next=m,l>u&&(u=l)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ws(l,h.suspenseConfig);e:{var g=e,y=h;switch(l=t,m=r,y.tag){case 1:if("function"==typeof(g=y.payload)){c=g.call(m,c,l);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(l="function"==typeof(g=y.payload)?g.call(m,c,l):g))break e;c=a({},c,l);break e;case 2:si=!0}}null!==h.callback&&(e.effectTag|=32,null===(l=i.effects)?i.effects=[h]:l.push(h))}if(null===(h=h.next)||h===s){if(null===(l=i.shared.pending))break;h=o.next=l.next,l.next=s,i.baseQueue=o=l,i.shared.pending=null}}null===f?d=c:f.next=p,i.baseState=d,i.baseQueue=f,xs(u),e.expirationTime=u,e.memoizedState=c}}function mi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(null!==a){if(n.callback=null,n=a,a=r,"function"!=typeof n)throw Error(o(191,n));n.call(a)}}}var gi=X.ReactCurrentBatchConfig,yi=(new n.Component).refs;function vi(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:a({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var bi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Qe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=ls(),a=gi.suspense;(a=di(n=ss(n,e,a),a)).payload=t,null!=r&&(a.callback=r),pi(e,a),cs(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=ls(),a=gi.suspense;(a=di(n=ss(n,e,a),a)).tag=1,a.payload=t,null!=r&&(a.callback=r),pi(e,a),cs(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=ls(),n=gi.suspense;(n=di(r=ss(r,e,n),n)).tag=2,null!=t&&(n.callback=t),pi(e,n),cs(e,r)}};function wi(e,t,r,n,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,o):!(t.prototype&&t.prototype.isPureReactComponent&&Wn(r,n)&&Wn(a,i))}function xi(e,t,r){var n=!1,a=ha,i=t.contextType;return"object"==typeof i&&null!==i?i=li(i):(a=ba(t)?ya:ma.current,i=(n=null!=(n=t.contextTypes))?va(e,a):ha),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bi,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function ki(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&bi.enqueueReplaceState(t,t.state,null)}function _i(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=yi,ci(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=li(i):(i=ba(t)?ya:ma.current,a.context=va(e,i)),hi(e,r,a,n),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,r),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&bi.enqueueReplaceState(a,a.state,null),hi(e,r,a,n),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Si=Array.isArray;function Ei(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=n.refs;t===yi&&(t=n.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function Ci(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function $i(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Bs(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Vs(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=a(t,r.props)).ref=Ei(e,t,r),n.return=e,n):((n=js(r.type,r.key,r.props,null,e.mode,n)).ref=Ei(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Us(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function d(e,t,r,n,i){return null===t||7!==t.tag?((t=Ws(r,e.mode,n,i)).return=e,t):((t=a(t,r)).return=e,t)}function p(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Vs(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=js(t.type,t.key,t.props,null,e.mode,r)).ref=Ei(e,null,t),r.return=e,r;case te:return(t=Us(t,e.mode,r)).return=e,t}if(Si(t)||me(t))return(t=Ws(t,e.mode,r,null)).return=e,t;Ci(e,t)}return null}function f(e,t,r,n){var a=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==a?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return r.key===a?r.type===re?d(e,t,r.props.children,n,a):c(e,t,r,n):null;case te:return r.key===a?u(e,t,r,n):null}if(Si(r)||me(r))return null!==a?null:d(e,t,r,n,null);Ci(e,r)}return null}function h(e,t,r,n,a){if("string"==typeof n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return e=e.get(null===n.key?r:n.key)||null,n.type===re?d(t,e,n.props.children,a,n.key):c(t,e,n,a);case te:return u(t,e=e.get(null===n.key?r:n.key)||null,n,a)}if(Si(n)||me(n))return d(t,e=e.get(r)||null,n,a,null);Ci(t,n)}return null}function m(a,o,l,s){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(a,d,l[m],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=i(y,o,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===l.length)return r(a,d),c;if(null===d){for(;m<l.length;m++)null!==(d=p(a,l[m],s))&&(o=i(d,o,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=n(a,d);m<l.length;m++)null!==(g=h(d,a,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=i(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),c}function g(a,l,s,c){var u=me(s);if("function"!=typeof u)throw Error(o(150));if(null==(s=u.call(s)))throw Error(o(151));for(var d=u=null,m=l,g=l=0,y=null,v=s.next();null!==m&&!v.done;g++,v=s.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(a,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(a,m),l=i(b,l,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return r(a,m),u;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=p(a,v.value,c))&&(l=i(v,l,g),null===d?u=v:d.sibling=v,d=v);return u}for(m=n(a,m);!v.done;g++,v=s.next())null!==(v=h(m,a,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=i(v,l,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(a,e)})),u}return function(e,n,i,s){var c="object"==typeof i&&null!==i&&i.type===re&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=n;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===re){r(e,c.sibling),(n=a(c,i.props.children)).return=e,e=n;break e}}else if(c.elementType===i.type){r(e,c.sibling),(n=a(c,i.props)).ref=Ei(e,c,i),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}i.type===re?((n=Ws(i.props.children,e.mode,s,i.key)).return=e,e=n):((s=js(i.type,i.key,i.props,null,e.mode,s)).ref=Ei(e,n,i),s.return=e,e=s)}return l(e);case te:e:{for(c=i.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=a(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Us(i,e.mode,s)).return=e,e=n}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=a(n,i)).return=e,e=n):(r(e,n),(n=Vs(i,e.mode,s)).return=e,e=n),l(e);if(Si(i))return m(e,n,i,s);if(me(i))return g(e,n,i,s);if(u&&Ci(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return r(e,n)}}var Ai=$i(!0),Ti=$i(!1),Oi={},zi={current:Oi},Pi={current:Oi},Fi={current:Oi};function Ni(e){if(e===Oi)throw Error(o(174));return e}function Ri(e,t){switch(fa(Fi,t),fa(Pi,e),fa(zi,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Re(null,"");break;default:t=Re(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pa(zi),fa(zi,t)}function Ii(){pa(zi),pa(Pi),pa(Fi)}function Li(e){Ni(Fi.current);var t=Ni(zi.current),r=Re(t,e.type);t!==r&&(fa(Pi,e),fa(zi,r))}function Mi(e){Pi.current===e&&(pa(zi),pa(Pi))}var Di={current:0};function Hi(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||r.data===gr||r.data===yr))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.effectTag)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Bi(e,t){return{responder:e,props:t}}var ji=X.ReactCurrentDispatcher,Wi=X.ReactCurrentBatchConfig,Vi=0,Ui=null,qi=null,Gi=null,Ki=!1;function Yi(){throw Error(o(321))}function Xi(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Bn(e[r],t[r]))return!1;return!0}function Zi(e,t,r,n,a,i){if(Vi=i,Ui=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,ji.current=null===e||null===e.memoizedState?xo:ko,e=r(n,a),t.expirationTime===Vi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(o(301));i+=1,Gi=qi=null,t.updateQueue=null,ji.current=_o,e=r(n,a)}while(t.expirationTime===Vi)}if(ji.current=wo,t=null!==qi&&null!==qi.next,Vi=0,Gi=qi=Ui=null,Ki=!1,t)throw Error(o(300));return e}function Qi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Gi?Ui.memoizedState=Gi=e:Gi=Gi.next=e,Gi}function Ji(){if(null===qi){var e=Ui.alternate;e=null!==e?e.memoizedState:null}else e=qi.next;var t=null===Gi?Ui.memoizedState:Gi.next;if(null!==t)Gi=t,qi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(qi=e).memoizedState,baseState:qi.baseState,baseQueue:qi.baseQueue,queue:qi.queue,next:null},null===Gi?Ui.memoizedState=Gi=e:Gi=Gi.next=e}return Gi}function eo(e,t){return"function"==typeof t?t(e):t}function to(e){var t=Ji(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=qi,a=n.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}n.baseQueue=a=i,r.pending=null}if(null!==a){a=a.next,n=n.baseState;var s=l=i=null,c=a;do{var u=c.expirationTime;if(u<Vi){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=n):s=s.next=d,u>Ui.expirationTime&&(Ui.expirationTime=u,xs(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ws(u,c.suspenseConfig),n=c.eagerReducer===e?c.eagerState:e(n,c.action);c=c.next}while(null!==c&&c!==a);null===s?i=n:s.next=l,Bn(n,t.memoizedState)||(No=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ro(e){var t=Ji(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);Bn(i,t.memoizedState)||(No=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function no(e){var t=Qi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e}).dispatch=bo.bind(null,Ui,e),[t.memoizedState,e]}function ao(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Ui.updateQueue)?(t={lastEffect:null},Ui.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function io(){return Ji().memoizedState}function oo(e,t,r,n){var a=Qi();Ui.effectTag|=e,a.memoizedState=ao(1|t,r,void 0,void 0===n?null:n)}function lo(e,t,r,n){var a=Ji();n=void 0===n?null:n;var i=void 0;if(null!==qi){var o=qi.memoizedState;if(i=o.destroy,null!==n&&Xi(n,o.deps))return void ao(t,r,i,n)}Ui.effectTag|=e,a.memoizedState=ao(1|t,r,i,n)}function so(e,t){return oo(516,4,e,t)}function co(e,t){return lo(516,4,e,t)}function uo(e,t){return lo(4,2,e,t)}function po(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fo(e,t,r){return r=null!=r?r.concat([e]):null,lo(4,2,po.bind(null,t,e),r)}function ho(){}function mo(e,t){return Qi().memoizedState=[e,void 0===t?null:t],e}function go(e,t){var r=Ji();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Xi(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function yo(e,t){var r=Ji();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Xi(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function vo(e,t,r){var n=Va();qa(98>n?98:n,(function(){e(!0)})),qa(97<n?97:n,(function(){var n=Wi.suspense;Wi.suspense=void 0===t?null:t;try{e(!1),r()}finally{Wi.suspense=n}}))}function bo(e,t,r){var n=ls(),a=gi.suspense;a={expirationTime:n=ss(n,e,a),suspenseConfig:a,action:r,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===Ui||null!==i&&i===Ui)Ki=!0,a.expirationTime=Vi,Ui.expirationTime=Vi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,l=i(o,r);if(a.eagerReducer=i,a.eagerState=l,Bn(l,o))return}catch(e){}cs(e,n)}}var wo={readContext:li,useCallback:Yi,useContext:Yi,useEffect:Yi,useImperativeHandle:Yi,useLayoutEffect:Yi,useMemo:Yi,useReducer:Yi,useRef:Yi,useState:Yi,useDebugValue:Yi,useResponder:Yi,useDeferredValue:Yi,useTransition:Yi},xo={readContext:li,useCallback:mo,useContext:li,useEffect:so,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,oo(4,2,po.bind(null,t,e),r)},useLayoutEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var r=Qi();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Qi();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=bo.bind(null,Ui,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Qi().memoizedState=e},useState:no,useDebugValue:ho,useResponder:Bi,useDeferredValue:function(e,t){var r=no(e),n=r[0],a=r[1];return so((function(){var r=Wi.suspense;Wi.suspense=void 0===t?null:t;try{a(e)}finally{Wi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=no(!1),r=t[0];return t=t[1],[mo(vo.bind(null,t,e),[t,e]),r]}},ko={readContext:li,useCallback:go,useContext:li,useEffect:co,useImperativeHandle:fo,useLayoutEffect:uo,useMemo:yo,useReducer:to,useRef:io,useState:function(){return to(eo)},useDebugValue:ho,useResponder:Bi,useDeferredValue:function(e,t){var r=to(eo),n=r[0],a=r[1];return co((function(){var r=Wi.suspense;Wi.suspense=void 0===t?null:t;try{a(e)}finally{Wi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=to(eo),r=t[0];return t=t[1],[go(vo.bind(null,t,e),[t,e]),r]}},_o={readContext:li,useCallback:go,useContext:li,useEffect:co,useImperativeHandle:fo,useLayoutEffect:uo,useMemo:yo,useReducer:ro,useRef:io,useState:function(){return ro(eo)},useDebugValue:ho,useResponder:Bi,useDeferredValue:function(e,t){var r=ro(eo),n=r[0],a=r[1];return co((function(){var r=Wi.suspense;Wi.suspense=void 0===t?null:t;try{a(e)}finally{Wi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ro(eo),r=t[0];return t=t[1],[go(vo.bind(null,t,e),[t,e]),r]}},So=null,Eo=null,Co=!1;function $o(e,t){var r=Ds(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Ao(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function To(e){if(Co){var t=Eo;if(t){var r=t;if(!Ao(e,t)){if(!(t=Sr(r.nextSibling))||!Ao(e,t))return e.effectTag=-1025&e.effectTag|2,Co=!1,void(So=e);$o(So,r)}So=e,Eo=Sr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Co=!1,So=e}}function Oo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;So=e}function zo(e){if(e!==So)return!1;if(!Co)return Oo(e),Co=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xr(t,e.memoizedProps))for(t=Eo;t;)$o(e,t),t=Sr(t.nextSibling);if(Oo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if(r===mr){if(0===t){Eo=Sr(e.nextSibling);break e}t--}else r!==hr&&r!==yr&&r!==gr||t++}e=e.nextSibling}Eo=null}}else Eo=So?Sr(e.stateNode.nextSibling):null;return!0}function Po(){Eo=So=null,Co=!1}var Fo=X.ReactCurrentOwner,No=!1;function Ro(e,t,r,n){t.child=null===e?Ti(t,null,r,n):Ai(t,e.child,r,n)}function Io(e,t,r,n,a){r=r.render;var i=t.ref;return oi(t,a),n=Zi(e,t,r,n,i,a),null===e||No?(t.effectTag|=1,Ro(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Jo(e,t,a))}function Lo(e,t,r,n,a,i){if(null===e){var o=r.type;return"function"!=typeof o||Hs(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=js(r.type,null,n,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Mo(e,t,o,n,a,i))}return o=e.child,a<i&&(a=o.memoizedProps,(r=null!==(r=r.compare)?r:Wn)(a,n)&&e.ref===t.ref)?Jo(e,t,i):(t.effectTag|=1,(e=Bs(o,n)).ref=t.ref,e.return=t,t.child=e)}function Mo(e,t,r,n,a,i){return null!==e&&Wn(e.memoizedProps,n)&&e.ref===t.ref&&(No=!1,a<i)?(t.expirationTime=e.expirationTime,Jo(e,t,i)):Ho(e,t,r,n,i)}function Do(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function Ho(e,t,r,n,a){var i=ba(r)?ya:ma.current;return i=va(t,i),oi(t,a),r=Zi(e,t,r,n,i,a),null===e||No?(t.effectTag|=1,Ro(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Jo(e,t,a))}function Bo(e,t,r,n,a){if(ba(r)){var i=!0;_a(t)}else i=!1;if(oi(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),xi(t,r,n),_i(t,r,n,a),n=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=r.contextType;c="object"==typeof c&&null!==c?li(c):va(t,c=ba(r)?ya:ma.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==n||s!==c)&&ki(t,o,n,c),si=!1;var p=t.memoizedState;o.state=p,hi(t,n,o,a),s=t.memoizedState,l!==n||p!==s||ga.current||si?("function"==typeof u&&(vi(t,r,u,n),s=t.memoizedState),(l=si||wi(t,r,l,n,p,s,c))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=c,n=l):("function"==typeof o.componentDidMount&&(t.effectTag|=4),n=!1)}else o=t.stateNode,ui(e,t),l=t.memoizedProps,o.props=t.type===t.elementType?l:Qa(t.type,l),s=o.context,c="object"==typeof(c=r.contextType)&&null!==c?li(c):va(t,c=ba(r)?ya:ma.current),(d="function"==typeof(u=r.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==n||s!==c)&&ki(t,o,n,c),si=!1,s=t.memoizedState,o.state=s,hi(t,n,o,a),p=t.memoizedState,l!==n||s!==p||ga.current||si?("function"==typeof u&&(vi(t,r,u,n),p=t.memoizedState),(u=si||wi(t,r,l,n,s,p,c))?(d||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,p,c),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,p,c)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=c,n=u):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),n=!1);return jo(e,t,r,n,i,a)}function jo(e,t,r,n,a,i){Do(e,t);var o=!!(64&t.effectTag);if(!n&&!o)return a&&Sa(t,r,!1),Jo(e,t,i);n=t.stateNode,Fo.current=t;var l=o&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&o?(t.child=Ai(t,e.child,null,i),t.child=Ai(t,null,l,i)):Ro(e,t,l,i),t.memoizedState=n.state,a&&Sa(t,r,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?xa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xa(0,t.context,!1),Ri(e,t.containerInfo)}var Vo,Uo,qo,Go,Ko={dehydrated:null,retryTime:0};function Yo(e,t,r){var n,a=t.mode,i=t.pendingProps,o=Di.current,l=!1;if((n=!!(64&t.effectTag))||(n=!!(2&o)&&(null===e||null!==e.memoizedState)),n?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),fa(Di,1&o),null===e){if(void 0!==i.fallback&&To(t),l){if(l=i.fallback,(i=Ws(null,a,0,null)).return=t,!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=Ws(l,a,r,null)).return=t,i.sibling=r,t.memoizedState=Ko,t.child=i,r}return a=i.children,t.memoizedState=null,t.child=Ti(t,null,a,r)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,l){if(i=i.fallback,(r=Bs(e,e.pendingProps)).return=t,!(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=l;null!==l;)l.return=r,l=l.sibling;return(a=Bs(a,i)).return=t,r.sibling=a,r.childExpirationTime=0,t.memoizedState=Ko,t.child=r,a}return r=Ai(t,e.child,i.children,r),t.memoizedState=null,t.child=r}if(e=e.child,l){if(l=i.fallback,(i=Ws(null,a,0,null)).return=t,i.child=e,null!==e&&(e.return=i),!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=Ws(l,a,r,null)).return=t,i.sibling=r,r.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ko,t.child=i,r}return t.memoizedState=null,t.child=Ai(t,e,i.children,r)}function Xo(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),ii(e.return,t)}function Zo(e,t,r,n,a,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:a,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailExpiration=0,o.tailMode=a,o.lastEffect=i)}function Qo(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(Ro(e,t,n.children,r),2&(n=Di.current))n=1&n|2,t.effectTag|=64;else{if(null!==e&&64&e.effectTag)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xo(e,r);else if(19===e.tag)Xo(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(fa(Di,n),2&t.mode)switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(e=r.alternate)&&null===Hi(e)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Zo(t,!1,a,r,i,t.lastEffect);break;case"backwards":for(r=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Hi(e)){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Zo(t,!0,r,null,i,t.lastEffect);break;case"together":Zo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Jo(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&xs(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Bs(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Bs(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function el(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function tl(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ba(t.type)&&wa(),null;case 3:return Ii(),pa(ga),pa(ma),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!zo(t)||(t.effectTag|=4),Uo(t),null;case 5:Mi(t),r=Ni(Fi.current);var i=t.type;if(null!==e&&null!=t.stateNode)qo(e,t,i,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ni(zi.current),zo(t)){n=t.stateNode,i=t.type;var l=t.memoizedProps;switch(n[$r]=t,n[Ar]=l,i){case"iframe":case"object":case"embed":qt("load",n);break;case"video":case"audio":for(e=0;e<Ye.length;e++)qt(Ye[e],n);break;case"source":qt("error",n);break;case"img":case"image":case"link":qt("error",n),qt("load",n);break;case"form":qt("reset",n),qt("submit",n);break;case"details":qt("toggle",n);break;case"input":_e(n,l),qt("invalid",n),or(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!l.multiple},qt("invalid",n),or(r,"onChange");break;case"textarea":ze(n,l),qt("invalid",n),or(r,"onChange")}for(var s in nr(i,l),e=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?n.textContent!==c&&(e=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(e=["children",""+c]):S.hasOwnProperty(s)&&null!=c&&or(r,s)}switch(i){case"input":we(n),Ce(n,l,!0);break;case"textarea":we(n),Fe(n);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(n.onclick=lr)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(s=9===r.nodeType?r:r.ownerDocument,e===ir&&(e=Ne(i)),e===ir?"script"===i?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=s.createElement(i,{is:n.is}):(e=s.createElement(i),"select"===i&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,i),e[$r]=t,e[Ar]=n,Vo(e,t,!1,!1),t.stateNode=e,s=ar(i,n),i){case"iframe":case"object":case"embed":qt("load",e),c=n;break;case"video":case"audio":for(c=0;c<Ye.length;c++)qt(Ye[c],e);c=n;break;case"source":qt("error",e),c=n;break;case"img":case"image":case"link":qt("error",e),qt("load",e),c=n;break;case"form":qt("reset",e),qt("submit",e),c=n;break;case"details":qt("toggle",e),c=n;break;case"input":_e(e,n),c=ke(e,n),qt("invalid",e),or(r,"onChange");break;case"option":c=Ae(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},c=a({},n,{value:void 0}),qt("invalid",e),or(r,"onChange");break;case"textarea":ze(e,n),c=Oe(e,n),qt("invalid",e),or(r,"onChange");break;default:c=n}nr(i,c);var u=c;for(l in u)if(u.hasOwnProperty(l)){var d=u[l];"style"===l?tr(e,d):"dangerouslySetInnerHTML"===l?null!=(d=d?d.__html:void 0)&&Me(e,d):"children"===l?"string"==typeof d?("textarea"!==i||""!==d)&&De(e,d):"number"==typeof d&&De(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(S.hasOwnProperty(l)?null!=d&&or(r,l):null!=d&&Z(e,l,d,s))}switch(i){case"input":we(e),Ce(e,n,!1);break;case"textarea":we(e),Fe(e);break;case"option":null!=n.value&&e.setAttribute("value",""+ve(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?Te(e,!!n.multiple,r,!1):null!=n.defaultValue&&Te(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=lr)}wr(i,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Go(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(o(166));r=Ni(Fi.current),Ni(zi.current),zo(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[$r]=t,t.stateNode=r)}return null;case 13:return pa(Di),n=t.memoizedState,64&t.effectTag?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&zo(t):(n=null!==(i=e.memoizedState),r||null===i||null!==(i=e.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),r&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Di.current?Bl===zl&&(Bl=Nl):(Bl!==zl&&Bl!==Nl||(Bl=Rl),0!==ql&&null!==Ml&&(Ks(Ml,Hl),Ys(Ml,ql)))),(r||n)&&(t.effectTag|=4),null);case 4:return Ii(),Uo(t),null;case 10:return ai(t),null;case 19:if(pa(Di),null===(n=t.memoizedState))return null;if(i=!!(64&t.effectTag),null===(l=n.rendering)){if(i)el(n,!1);else if(Bl!==zl||null!==e&&64&e.effectTag)for(l=t.child;null!==l;){if(null!==(e=Hi(l))){for(t.effectTag|=64,el(n,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)l=r,(i=n).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=l,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,l=e.dependencies,i.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),n=n.sibling;return fa(Di,1&Di.current|2),t.child}l=l.sibling}}else{if(!i)if(null!==(e=Hi(l))){if(t.effectTag|=64,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),el(n,!0),null===n.tail&&"hidden"===n.tailMode&&!l.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Wa()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,i=!0,el(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=n.last)?r.sibling=l:t.child=l,n.last=l)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=Wa()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Wa(),r.sibling=null,t=Di.current,fa(Di,i?1&t|2:1&t),r):null}throw Error(o(156,t.tag))}function rl(e){switch(e.tag){case 1:ba(e.type)&&wa();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ii(),pa(ga),pa(ma),64&(t=e.effectTag))throw Error(o(285));return e.effectTag=-4097&t|64,e;case 5:return Mi(e),null;case 13:return pa(Di),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return pa(Di),null;case 4:return Ii(),null;case 10:return ai(e),null;default:return null}}function nl(e,t){return{value:e,source:t,stack:ye(t)}}Vo=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Uo=function(){},qo=function(e,t,r,n,i){var o=e.memoizedProps;if(o!==n){var l,s,c=t.stateNode;switch(Ni(zi.current),e=null,r){case"input":o=ke(c,o),n=ke(c,n),e=[];break;case"option":o=Ae(c,o),n=Ae(c,n),e=[];break;case"select":o=a({},o,{value:void 0}),n=a({},n,{value:void 0}),e=[];break;case"textarea":o=Oe(c,o),n=Oe(c,n),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(c.onclick=lr)}for(l in nr(r,n),r=null,o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&null!=o[l])if("style"===l)for(s in c=o[l])c.hasOwnProperty(s)&&(r||(r={}),r[s]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(S.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in n){var u=n[l];if(c=null!=o?o[l]:void 0,n.hasOwnProperty(l)&&u!==c&&(null!=u||null!=c))if("style"===l)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(e||(e=[]),e.push(l,r)),r=u;else"dangerouslySetInnerHTML"===l?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(l,u)):"children"===l?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(l,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(S.hasOwnProperty(l)?(null!=u&&or(i,l),e||c===u||(e=[])):(e=e||[]).push(l,u))}r&&(e=e||[]).push("style",r),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Go=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var al="function"==typeof WeakSet?WeakSet:Set;function il(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=ye(r)),null!==r&&ge(r.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ol(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fs(e,t)}else t.current=null}function ll(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Qa(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(o(163))}function sl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function cl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ul(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void cl(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:Qa(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&mi(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}mi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&wr(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&Rt(r)))))}throw Error(o(163))}function dl(e,t,r){switch("function"==typeof Ls&&Ls(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;qa(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var a=t;try{r()}catch(e){Fs(a,e)}}e=e.next}while(e!==n)}))}break;case 1:ol(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Fs(e,t)}}(t,r);break;case 5:ol(t);break;case 4:yl(e,t,r)}}function pl(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&pl(t)}function fl(e){return 5===e.tag||3===e.tag||4===e.tag}function hl(e){e:{for(var t=e.return;null!==t;){if(fl(t)){var r=t;break e}t=t.return}throw Error(o(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(o(161))}16&r.effectTag&&(De(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||fl(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?ml(e,r,t):gl(e,r,t)}function ml(e,t,r){var n=e.tag,a=5===n||6===n;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=lr));else if(4!==n&&null!==(e=e.child))for(ml(e,t,r),e=e.sibling;null!==e;)ml(e,t,r),e=e.sibling}function gl(e,t,r){var n=e.tag,a=5===n||6===n;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(gl(e,t,r),e=e.sibling;null!==e;)gl(e,t,r),e=e.sibling}function yl(e,t,r){for(var n,a,i=t,l=!1;;){if(!l){l=i.return;e:for(;;){if(null===l)throw Error(o(160));switch(n=l.stateNode,l.tag){case 5:a=!1;break e;case 3:case 4:n=n.containerInfo,a=!0;break e}l=l.return}l=!0}if(5===i.tag||6===i.tag){e:for(var s=e,c=i,u=r,d=c;;)if(dl(s,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}a?(s=n,c=i.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,a=!0,i.child.return=i,i=i.child;continue}}else if(dl(e,i,r),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(l=!1)}i.sibling.return=i.return,i=i.sibling}}function vl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void sl(3,t);case 1:case 12:case 17:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,a=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[Ar]=n,"input"===e&&"radio"===n.type&&null!=n.name&&Se(r,n),ar(e,a),t=ar(e,n),a=0;a<i.length;a+=2){var l=i[a],s=i[a+1];"style"===l?tr(r,s):"dangerouslySetInnerHTML"===l?Me(r,s):"children"===l?De(r,s):Z(r,l,s,t)}switch(e){case"input":Ee(r,n);break;case"textarea":Pe(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?Te(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?Te(r,!!n.multiple,n.defaultValue,!0):Te(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Rt(t.containerInfo)));case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Kl=Wa()),null!==r)e:for(e=r;;){if(5===e.tag)i=e.stateNode,n?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,i.style.display=er("display",a));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void bl(t);case 19:return void bl(t)}throw Error(o(163))}function bl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new al),t.forEach((function(t){var n=Rs.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var wl="function"==typeof WeakMap?WeakMap:Map;function xl(e,t,r){(r=di(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Zl||(Zl=!0,Ql=n),il(e,t)},r}function kl(e,t,r){(r=di(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var a=t.value;r.payload=function(){return il(e,t),n(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Jl?Jl=new Set([this]):Jl.add(this),il(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var _l,Sl=Math.ceil,El=X.ReactCurrentDispatcher,Cl=X.ReactCurrentOwner,$l=0,Al=8,Tl=16,Ol=32,zl=0,Pl=1,Fl=2,Nl=3,Rl=4,Il=5,Ll=$l,Ml=null,Dl=null,Hl=0,Bl=zl,jl=null,Wl=1073741823,Vl=1073741823,Ul=null,ql=0,Gl=!1,Kl=0,Yl=500,Xl=null,Zl=!1,Ql=null,Jl=null,es=!1,ts=null,rs=90,ns=null,as=0,is=null,os=0;function ls(){return(Ll&(Tl|Ol))!==$l?1073741821-(Wa()/10|0):0!==os?os:os=1073741821-(Wa()/10|0)}function ss(e,t,r){if(!(2&(t=t.mode)))return 1073741823;var n=Va();if(!(4&t))return 99===n?1073741823:1073741822;if((Ll&Tl)!==$l)return Hl;if(null!==r)e=Za(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Za(e,150,100);break;case 97:case 96:e=Za(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==Ml&&e===Hl&&--e,e}function cs(e,t){if(50<as)throw as=0,is=null,Error(o(185));if(null!==(e=us(e,t))){var r=Va();1073741823===t?(Ll&Al)!==$l&&(Ll&(Tl|Ol))===$l?hs(e):(ps(e),Ll===$l&&Ya()):ps(e),(4&Ll)===$l||98!==r&&99!==r||(null===ns?ns=new Map([[e,t]]):(void 0===(r=ns.get(e))||r>t)&&ns.set(e,t))}}function us(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,a=null;if(null===n&&3===e.tag)a=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){a=n.stateNode;break}n=n.return}return null!==a&&(Ml===a&&(xs(t),Bl===Rl&&Ks(a,Hl)),Ys(a,t)),a}function ds(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Gs(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function ps(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ka(hs.bind(null,e));else{var t=ds(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=ls();if(n=1073741823===t?99:1===t||2===t?95:0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=n)return;r!==Ia&&$a(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?Ka(hs.bind(null,e)):Ga(n,fs.bind(null,e),{timeout:10*(1073741821-t)-Wa()}),e.callbackNode=t}}}function fs(e,t){if(os=0,t)return Xs(e,t=ls()),ps(e),null;var r=ds(e);if(0!==r){if(t=e.callbackNode,(Ll&(Tl|Ol))!==$l)throw Error(o(327));if(Os(),e===Ml&&r===Hl||ys(e,r),null!==Dl){var n=Ll;Ll|=Tl;for(var a=bs();;)try{_s();break}catch(t){vs(e,t)}if(ni(),Ll=n,El.current=a,Bl===Pl)throw t=jl,ys(e,r),Ks(e,r),ps(e),t;if(null===Dl)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Bl,Ml=null,n){case zl:case Pl:throw Error(o(345));case Fl:Xs(e,2<r?2:r);break;case Nl:if(Ks(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Cs(a)),1073741823===Wl&&10<(a=Kl+Yl-Wa())){if(Gl){var i=e.lastPingedTime;if(0===i||i>=r){e.lastPingedTime=r,ys(e,r);break}}if(0!==(i=ds(e))&&i!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=kr($s.bind(null,e),a);break}$s(e);break;case Rl:if(Ks(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Cs(a)),Gl&&(0===(a=e.lastPingedTime)||a>=r)){e.lastPingedTime=r,ys(e,r);break}if(0!==(a=ds(e))&&a!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==Vl?n=10*(1073741821-Vl)-Wa():1073741823===Wl?n=0:(n=10*(1073741821-Wl)-5e3,0>(n=(a=Wa())-n)&&(n=0),(r=10*(1073741821-r)-a)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sl(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=kr($s.bind(null,e),n);break}$s(e);break;case Il:if(1073741823!==Wl&&null!==Ul){i=Wl;var l=Ul;if(0>=(n=0|l.busyMinDurationMs)?n=0:(a=0|l.busyDelayMs,n=(i=Wa()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=a?0:a+n-i),10<n){Ks(e,r),e.timeoutHandle=kr($s.bind(null,e),n);break}}$s(e);break;default:throw Error(o(329))}if(ps(e),e.callbackNode===t)return fs.bind(null,e)}}return null}function hs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Ll&(Tl|Ol))!==$l)throw Error(o(327));if(Os(),e===Ml&&t===Hl||ys(e,t),null!==Dl){var r=Ll;Ll|=Tl;for(var n=bs();;)try{ks();break}catch(t){vs(e,t)}if(ni(),Ll=r,El.current=n,Bl===Pl)throw r=jl,ys(e,t),Ks(e,t),ps(e),r;if(null!==Dl)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ml=null,$s(e),ps(e)}return null}function ms(e,t){var r=Ll;Ll|=1;try{return e(t)}finally{(Ll=r)===$l&&Ya()}}function gs(e,t){var r=Ll;Ll&=-2,Ll|=Al;try{return e(t)}finally{(Ll=r)===$l&&Ya()}}function ys(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,_r(r)),null!==Dl)for(r=Dl.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&wa();break;case 3:Ii(),pa(ga),pa(ma);break;case 5:Mi(n);break;case 4:Ii();break;case 13:case 19:pa(Di);break;case 10:ai(n)}r=r.return}Ml=e,Dl=Bs(e.current,null),Hl=t,Bl=zl,jl=null,Vl=Wl=1073741823,Ul=null,ql=0,Gl=!1}function vs(e,t){for(;;){try{if(ni(),ji.current=wo,Ki)for(var r=Ui.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Vi=0,Gi=qi=Ui=null,Ki=!1,null===Dl||null===Dl.return)return Bl=Pl,jl=t,Dl=null;e:{var a=e,i=Dl.return,o=Dl,l=t;if(t=Hl,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var s=l;if(!(2&o.mode)){var c=o.alternate;c?(o.updateQueue=c.updateQueue,o.memoizedState=c.memoizedState,o.expirationTime=c.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var u=!!(1&Di.current),d=i;do{var p;if(p=13===d.tag){var f=d.memoizedState;if(null!==f)p=null!==f.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(p){var m=d.updateQueue;if(null===m){var g=new Set;g.add(s),d.updateQueue=g}else m.add(s);if(!(2&d.mode)){if(d.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var y=di(1073741823,null);y.tag=2,pi(o,y)}o.expirationTime=1073741823;break e}l=void 0,o=t;var v=a.pingCache;if(null===v?(v=a.pingCache=new wl,l=new Set,v.set(s,l)):void 0===(l=v.get(s))&&(l=new Set,v.set(s,l)),!l.has(o)){l.add(o);var b=Ns.bind(null,a,s,o);s.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);l=Error((ge(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(o))}Bl!==Il&&(Bl=Fl),l=nl(l,o),d=i;do{switch(d.tag){case 3:s=l,d.effectTag|=4096,d.expirationTime=t,fi(d,xl(d,s,t));break e;case 1:s=l;var w=d.type,x=d.stateNode;if(!(64&d.effectTag||"function"!=typeof w.getDerivedStateFromError&&(null===x||"function"!=typeof x.componentDidCatch||null!==Jl&&Jl.has(x)))){d.effectTag|=4096,d.expirationTime=t,fi(d,kl(d,s,t));break e}}d=d.return}while(null!==d)}Dl=Es(Dl)}catch(e){t=e;continue}break}}function bs(){var e=El.current;return El.current=wo,null===e?wo:e}function ws(e,t){e<Wl&&2<e&&(Wl=e),null!==t&&e<Vl&&2<e&&(Vl=e,Ul=t)}function xs(e){e>ql&&(ql=e)}function ks(){for(;null!==Dl;)Dl=Ss(Dl)}function _s(){for(;null!==Dl&&!La();)Dl=Ss(Dl)}function Ss(e){var t=_l(e.alternate,e,Hl);return e.memoizedProps=e.pendingProps,null===t&&(t=Es(e)),Cl.current=null,t}function Es(e){Dl=e;do{var t=Dl.alternate;if(e=Dl.return,2048&Dl.effectTag){if(null!==(t=rl(Dl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=tl(t,Dl,Hl),1===Hl||1!==Dl.childExpirationTime){for(var r=0,n=Dl.child;null!==n;){var a=n.expirationTime,i=n.childExpirationTime;a>r&&(r=a),i>r&&(r=i),n=n.sibling}Dl.childExpirationTime=r}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Dl.firstEffect),null!==Dl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Dl.firstEffect),e.lastEffect=Dl.lastEffect),1<Dl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Dl:e.firstEffect=Dl,e.lastEffect=Dl))}if(null!==(t=Dl.sibling))return t;Dl=e}while(null!==Dl);return Bl===zl&&(Bl=Il),null}function Cs(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function $s(e){var t=Va();return qa(99,As.bind(null,e,t)),null}function As(e,t){do{Os()}while(null!==ts);if((Ll&(Tl|Ol))!==$l)throw Error(o(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=Cs(r);if(e.firstPendingTime=a,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ml&&(Dl=Ml=null,Hl=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,a=r.firstEffect):a=r:a=r.firstEffect,null!==a){var i=Ll;Ll|=Ol,Cl.current=null,vr=Ut;var l=pr();if(fr(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(s=(s=l.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{s.nodeType,d.nodeType}catch(e){s=null;break e}var p=0,f=-1,h=-1,m=0,g=0,y=l,v=null;t:for(;;){for(var b;y!==s||0!==u&&3!==y.nodeType||(f=p+u),y!==d||0!==c&&3!==y.nodeType||(h=p+c),3===y.nodeType&&(p+=y.nodeValue.length),null!==(b=y.firstChild);)v=y,y=b;for(;;){if(y===l)break t;if(v===s&&++m===u&&(f=p),v===d&&++g===c&&(h=p),null!==(b=y.nextSibling))break;v=(y=v).parentNode}y=b}s=-1===f||-1===h?null:{start:f,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;br={activeElementDetached:null,focusedElem:l,selectionRange:s},Ut=!1,Xl=a;do{try{Ts()}catch(e){if(null===Xl)throw Error(o(330));Fs(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);Xl=a;do{try{for(l=e,s=t;null!==Xl;){var w=Xl.effectTag;if(16&w&&De(Xl.stateNode,""),128&w){var x=Xl.alternate;if(null!==x){var k=x.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:hl(Xl),Xl.effectTag&=-3;break;case 6:hl(Xl),Xl.effectTag&=-3,vl(Xl.alternate,Xl);break;case 1024:Xl.effectTag&=-1025;break;case 1028:Xl.effectTag&=-1025,vl(Xl.alternate,Xl);break;case 4:vl(Xl.alternate,Xl);break;case 8:yl(l,u=Xl,s),pl(u)}Xl=Xl.nextEffect}}catch(e){if(null===Xl)throw Error(o(330));Fs(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);if(k=br,x=pr(),w=k.focusedElem,s=k.selectionRange,x!==w&&w&&w.ownerDocument&&dr(w.ownerDocument.documentElement,w)){null!==s&&fr(w)&&(x=s.start,void 0===(k=s.end)&&(k=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(k,w.value.length)):(k=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(k=k.getSelection(),u=w.textContent.length,l=Math.min(s.start,u),s=void 0===s.end?l:Math.min(s.end,u),!k.extend&&l>s&&(u=s,s=l,l=u),u=ur(w,l),d=ur(w,s),u&&d&&(1!==k.rangeCount||k.anchorNode!==u.node||k.anchorOffset!==u.offset||k.focusNode!==d.node||k.focusOffset!==d.offset)&&((x=x.createRange()).setStart(u.node,u.offset),k.removeAllRanges(),l>s?(k.addRange(x),k.extend(d.node,d.offset)):(x.setEnd(d.node,d.offset),k.addRange(x))))),x=[];for(k=w;k=k.parentNode;)1===k.nodeType&&x.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<x.length;w++)(k=x[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Ut=!!vr,br=vr=null,e.current=r,Xl=a;do{try{for(w=e;null!==Xl;){var _=Xl.effectTag;if(36&_&&ul(w,Xl.alternate,Xl),128&_){x=void 0;var S=Xl.ref;if(null!==S){var E=Xl.stateNode;Xl.tag,x=E,"function"==typeof S?S(x):S.current=x}}Xl=Xl.nextEffect}}catch(e){if(null===Xl)throw Error(o(330));Fs(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);Xl=null,Ma(),Ll=i}else e.current=r;if(es)es=!1,ts=e,rs=t;else for(Xl=a;null!==Xl;)t=Xl.nextEffect,Xl.nextEffect=null,Xl=t;if(0===(t=e.firstPendingTime)&&(Jl=null),1073741823===t?e===is?as++:(as=0,is=e):as=0,"function"==typeof Is&&Is(r.stateNode,n),ps(e),Zl)throw Zl=!1,e=Ql,Ql=null,e;return(Ll&Al)!==$l||Ya(),null}function Ts(){for(;null!==Xl;){var e=Xl.effectTag;256&e&&ll(Xl.alternate,Xl),!(512&e)||es||(es=!0,Ga(97,(function(){return Os(),null}))),Xl=Xl.nextEffect}}function Os(){if(90!==rs){var e=97<rs?97:rs;return rs=90,qa(e,zs)}}function zs(){if(null===ts)return!1;var e=ts;if(ts=null,(Ll&(Tl|Ol))!==$l)throw Error(o(331));var t=Ll;for(Ll|=Ol,e=e.current.firstEffect;null!==e;){try{var r=e;if(512&r.effectTag)switch(r.tag){case 0:case 11:case 15:case 22:sl(5,r),cl(5,r)}}catch(t){if(null===e)throw Error(o(330));Fs(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return Ll=t,Ya(),!0}function Ps(e,t,r){pi(e,t=xl(e,t=nl(r,t),1073741823)),null!==(e=us(e,1073741823))&&ps(e)}function Fs(e,t){if(3===e.tag)Ps(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Ps(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Jl||!Jl.has(n))){pi(r,e=kl(r,e=nl(t,e),1073741823)),null!==(r=us(r,1073741823))&&ps(r);break}}r=r.return}}function Ns(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),Ml===e&&Hl===r?Bl===Rl||Bl===Nl&&1073741823===Wl&&Wa()-Kl<Yl?ys(e,Hl):Gl=!0:Gs(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,ps(e)))}function Rs(e,t){var r=e.stateNode;null!==r&&r.delete(t),0==(t=0)&&(t=ss(t=ls(),e,null)),null!==(e=us(e,t))&&ps(e)}_l=function(e,t,r){var n=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||ga.current)No=!0;else{if(n<r){switch(No=!1,t.tag){case 3:Wo(t),Po();break;case 5:if(Li(t),4&t.mode&&1!==r&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ba(t.type)&&_a(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,a=t.type._context,fa(Ja,a._currentValue),a._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?Yo(e,t,r):(fa(Di,1&Di.current),null!==(t=Jo(e,t,r))?t.sibling:null);fa(Di,1&Di.current);break;case 19:if(n=t.childExpirationTime>=r,64&e.effectTag){if(n)return Qo(e,t,r);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),fa(Di,Di.current),!n)return null}return Jo(e,t,r)}No=!1}}else No=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=va(t,ma.current),oi(t,r),a=Zi(null,t,n,e,a,r),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ba(n)){var i=!0;_a(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ci(t);var l=n.getDerivedStateFromProps;"function"==typeof l&&vi(t,n,l,e),a.updater=bi,t.stateNode=a,a._reactInternalFiber=t,_i(t,n,e,r),t=jo(null,t,n,!0,i,r)}else t.tag=0,Ro(null,t,a,r),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,i=t.tag=function(e){if("function"==typeof e)return Hs(e)?1:0;if(null!=e){if((e=e.$$typeof)===se)return 11;if(e===de)return 14}return 2}(a),e=Qa(a,e),i){case 0:t=Ho(null,t,a,e,r);break e;case 1:t=Bo(null,t,a,e,r);break e;case 11:t=Io(null,t,a,e,r);break e;case 14:t=Lo(null,t,a,Qa(a.type,e),n,r);break e}throw Error(o(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,Ho(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 1:return n=t.type,a=t.pendingProps,Bo(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 3:if(Wo(t),n=t.updateQueue,null===e||null===n)throw Error(o(282));if(n=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,ui(e,t),hi(t,n,null,r),(n=t.memoizedState.element)===a)Po(),t=Jo(e,t,r);else{if((a=t.stateNode.hydrate)&&(Eo=Sr(t.stateNode.containerInfo.firstChild),So=t,a=Co=!0),a)for(r=Ti(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Ro(e,t,n,r),Po();t=t.child}return t;case 5:return Li(t),null===e&&To(t),n=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,xr(n,a)?l=null:null!==i&&xr(n,i)&&(t.effectTag|=16),Do(e,t),4&t.mode&&1!==r&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ro(e,t,l,r),t=t.child),t;case 6:return null===e&&To(t),null;case 13:return Yo(e,t,r);case 4:return Ri(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ai(t,null,n,r):Ro(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,Io(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 7:return Ro(e,t,t.pendingProps,r),t.child;case 8:case 12:return Ro(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,a=t.pendingProps,l=t.memoizedProps,i=a.value;var s=t.type._context;if(fa(Ja,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0==(i=Bn(s,i)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(s,i):1073741823))){if(l.children===a.children&&!ga.current){t=Jo(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var u=c.firstContext;null!==u;){if(u.context===n&&u.observedBits&i){1===s.tag&&((u=di(r,null)).tag=2,pi(s,u)),s.expirationTime<r&&(s.expirationTime=r),null!==(u=s.alternate)&&u.expirationTime<r&&(u.expirationTime=r),ii(s.return,r),c.expirationTime<r&&(c.expirationTime=r);break}u=u.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ro(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=(i=t.pendingProps).children,oi(t,r),n=n(a=li(a,i.unstable_observedBits)),t.effectTag|=1,Ro(e,t,n,r),t.child;case 14:return i=Qa(a=t.type,t.pendingProps),Lo(e,t,a,i=Qa(a.type,i),n,r);case 15:return Mo(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qa(n,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ba(n)?(e=!0,_a(t)):e=!1,oi(t,r),xi(t,n,a),_i(t,n,a,r),jo(null,t,n,!0,e,r);case 19:return Qo(e,t,r)}throw Error(o(156,t.tag))};var Is=null,Ls=null;function Ms(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ds(e,t,r,n){return new Ms(e,t,r,n)}function Hs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bs(e,t){var r=e.alternate;return null===r?((r=Ds(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function js(e,t,r,n,a,i){var l=2;if(n=e,"function"==typeof e)Hs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case re:return Ws(r.children,a,i,t);case le:l=8,a|=7;break;case ne:l=8,a|=1;break;case ae:return(e=Ds(12,r,t,8|a)).elementType=ae,e.type=ae,e.expirationTime=i,e;case ce:return(e=Ds(13,r,t,a)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=Ds(19,r,t,a)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:l=10;break e;case oe:l=9;break e;case se:l=11;break e;case de:l=14;break e;case pe:l=16,n=null;break e;case fe:l=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ds(l,r,t,a)).elementType=e,t.type=n,t.expirationTime=i,t}function Ws(e,t,r,n){return(e=Ds(7,e,n,t)).expirationTime=r,e}function Vs(e,t,r){return(e=Ds(6,e,null,t)).expirationTime=r,e}function Us(e,t,r){return(t=Ds(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qs(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Gs(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function Ks(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ys(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Xs(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function Zs(e,t,r,n){var a=t.current,i=ls(),l=gi.suspense;i=ss(i,a,l);e:if(r){t:{if(Qe(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(o(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(ba(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===r.tag){var c=r.type;if(ba(c)){r=ka(r,c,s);break e}}r=s}else r=ha;return null===t.context?t.context=r:t.pendingContext=r,(t=di(i,l)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),pi(a,t),cs(a,i),i}function Qs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Js(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function ec(e,t){Js(e,t),(e=e.alternate)&&Js(e,t)}function tc(e,t,r){var n=new qs(e,t,r=null!=r&&!0===r.hydrate),a=Ds(3,null,null,2===t?7:1===t?3:0);n.current=a,a.stateNode=n,ci(a),e[Tr]=n.current,r&&0!==t&&function(e,t){var r=Ze(t);Et.forEach((function(e){ft(e,t,r)})),Ct.forEach((function(e){ft(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function rc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nc(e,t,r,n,a){var i=r._reactRootContainer;if(i){var o=i._internalRoot;if("function"==typeof a){var l=a;a=function(){var e=Qs(o);l.call(e)}}Zs(t,o,e,a)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new tc(e,0,t?{hydrate:!0}:void 0)}(r,n),o=i._internalRoot,"function"==typeof a){var s=a;a=function(){var e=Qs(o);s.call(e)}}gs((function(){Zs(t,o,e,a)}))}return Qs(o)}function ac(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!rc(t))throw Error(o(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)}tc.prototype.render=function(e){Zs(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zs(null,e,null,(function(){t[Tr]=null}))},ht=function(e){if(13===e.tag){var t=Za(ls(),150,100);cs(e,t),ec(e,t)}},mt=function(e){13===e.tag&&(cs(e,3),ec(e,3))},gt=function(e){if(13===e.tag){var t=ls();cs(e,t=ss(t,e,null)),ec(e,t)}},A=function(e,t,r){switch(t){case"input":if(Ee(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=Fr(n);if(!a)throw Error(o(90));xe(n),Ee(n,a)}}}break;case"textarea":Pe(e,r);break;case"select":null!=(t=r.value)&&Te(e,!!r.multiple,t,!1)}},N=ms,R=function(e,t,r,n,a){var i=Ll;Ll|=4;try{return qa(98,e.bind(null,t,r,n,a))}finally{(Ll=i)===$l&&Ya()}},I=function(){(Ll&(1|Tl|Ol))===$l&&(function(){if(null!==ns){var e=ns;ns=null,e.forEach((function(e,t){Xs(t,e),ps(t)})),Ya()}}(),Os())},L=function(e,t){var r=Ll;Ll|=2;try{return e(t)}finally{(Ll=r)===$l&&Ya()}};var ic={Events:[zr,Pr,Fr,C,_,Hr,function(e){nt(e,Dr)},P,F,Xt,ot,Os,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);Is=function(e){try{t.onCommitFiberRoot(r,e,void 0,!(64&~e.current.effectTag))}catch(e){}},Ls=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}}(a({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Or,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ic,t.createPortal=ac,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if((Ll&(Tl|Ol))!==$l)throw Error(o(187));var r=Ll;Ll|=1;try{return qa(99,e.bind(null,t))}finally{Ll=r,Ya()}},t.hydrate=function(e,t,r){if(!rc(t))throw Error(o(200));return nc(null,e,t,!0,r)},t.render=function(e,t,r){if(!rc(t))throw Error(o(200));return nc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!rc(e))throw Error(o(40));return!!e._reactRootContainer&&(gs((function(){nc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tr]=null}))})),!0)},t.unstable_batchedUpdates=ms,t.unstable_createPortal=function(e,t){return ac(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!rc(r))throw Error(o(200));if(null==e||void 0===e._reactInternalFiber)throw Error(o(38));return nc(e,t,r,!1,n)},t.version="16.14.0"},961:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(551)},287:(e,t,r)=>{"use strict";var n=r(228),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.forward_ref"):60112,f=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}function x(){}function k(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var _=k.prototype=new x;_.constructor=k,n(_,w.prototype),_.isPureReactComponent=!0;var S={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function $(e,t,r){var n,a={},o=null,l=null;if(null!=t)for(n in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)E.call(t,n)&&!C.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===a[n]&&(a[n]=s[n]);return{$$typeof:i,type:e,key:o,ref:l,props:a,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var T=/\/+/g,O=[];function z(e,t,r,n){if(O.length){var a=O.pop();return a.result=e,a.keyPrefix=t,a.func=r,a.context=n,a.count=0,a}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function F(e,t,r,n){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return r(n,e,""===t?"."+R(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=t+R(a=e[s],s);l+=F(a,c,r,n)}else if("function"==typeof(c=null===e||"object"!=typeof e?null:"function"==typeof(c=g&&e[g]||e["@@iterator"])?c:null))for(e=c.call(e),s=0;!(a=e.next()).done;)l+=F(a=a.value,c=t+R(a,s++),r,n);else if("object"===a)throw r=""+e,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return l}function N(e,t,r){return null==e?0:F(e,"",t,r)}function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,r){var n=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,n,r,(function(e){return e})):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+r)),n.push(e))}function M(e,t,r,n,a){var i="";null!=r&&(i=(""+r).replace(T,"$&/")+"/"),N(e,L,t=z(t,i,n,a)),P(t)}var D={current:null};function H(){var e=D.current;if(null===e)throw Error(y(321));return e}var B={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:function(e,t,r){if(null==e)return e;var n=[];return M(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;N(e,I,t=z(null,null,t,r)),P(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return M(e,t,null,(function(e){return e})),t},only:function(e){if(!A(e))throw Error(y(143));return e}},t.Component=w,t.Fragment=l,t.Profiler=c,t.PureComponent=k,t.StrictMode=s,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,r){if(null==e)throw Error(y(267,e));var a=n({},e.props),o=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)E.call(t,u)&&!C.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:l,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=$,t.createFactory=function(e){var t=$.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return H().useCallback(e,t)},t.useContext=function(e,t){return H().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return H().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return H().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return H().useLayoutEffect(e,t)},t.useMemo=function(e,t){return H().useMemo(e,t)},t.useReducer=function(e,t,r){return H().useReducer(e,t,r)},t.useRef=function(e){return H().useRef(e)},t.useState=function(e){return H().useState(e)},t.version="16.14.0"},540:(e,t,r)=>{"use strict";e.exports=r(287)},463:(e,t)=>{"use strict";var r,n,a,i,o;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,s=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},n=function(e,t){s=setTimeout(e,t)},a=function(){clearTimeout(s)},i=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var y=!1,v=null,b=-1,w=5,x=0;i=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();x=e+w;try{v(!0,e)?_.postMessage(null):(y=!1,v=null)}catch(e){throw _.postMessage(null),e}}else y=!1},r=function(e){v=e,y||(y=!0,_.postMessage(null))},n=function(e,r){b=f((function(){e(t.unstable_now())}),r)},a=function(){h(b),b=-1}}function S(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,a=e[n];if(!(void 0!==a&&0<$(a,t)))break e;e[n]=t,e[r]=a,r=n}}function E(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length;n<a;){var i=2*(n+1)-1,o=e[i],l=i+1,s=e[l];if(void 0!==o&&0>$(o,r))void 0!==s&&0>$(s,o)?(e[n]=s,e[l]=r,n=l):(e[n]=o,e[i]=r,n=i);else{if(!(void 0!==s&&0>$(s,r)))break e;e[n]=s,e[l]=r,n=l}}}return t}return null}function $(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var A=[],T=[],O=1,z=null,P=3,F=!1,N=!1,R=!1;function I(e){for(var t=E(T);null!==t;){if(null===t.callback)C(T);else{if(!(t.startTime<=e))break;C(T),t.sortIndex=t.expirationTime,S(A,t)}t=E(T)}}function L(e){if(R=!1,I(e),!N)if(null!==E(A))N=!0,r(M);else{var t=E(T);null!==t&&n(L,t.startTime-e)}}function M(e,r){N=!1,R&&(R=!1,a()),F=!0;var o=P;try{for(I(r),z=E(A);null!==z&&(!(z.expirationTime>r)||e&&!i());){var l=z.callback;if(null!==l){z.callback=null,P=z.priorityLevel;var s=l(z.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?z.callback=s:z===E(A)&&C(A),I(r)}else C(A);z=E(A)}if(null!==z)var c=!0;else{var u=E(T);null!==u&&n(L,u.startTime-r),c=!1}return c}finally{z=null,P=o,F=!1}}function D(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||F||(N=!0,r(M))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return E(A)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var r=P;P=t;try{return e()}finally{P=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=P;P=e;try{return t()}finally{P=r}},t.unstable_scheduleCallback=function(e,i,o){var l=t.unstable_now();if("object"==typeof o&&null!==o){var s=o.delay;s="number"==typeof s&&0<s?l+s:l,o="number"==typeof o.timeout?o.timeout:D(e)}else o=D(e),s=l;return e={id:O++,callback:i,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>l?(e.sortIndex=s,S(T,e),null===E(A)&&e===E(T)&&(R?a():R=!0,n(L,s-l))):(e.sortIndex=o,S(A,e),N||F||(N=!0,r(M))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();I(e);var r=E(A);return r!==z&&null!==z&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<z.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=P;return function(){var r=P;P=t;try{return e.apply(this,arguments)}finally{P=r}}}},982:(e,t,r)=>{"use strict";e.exports=r(463)},828:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>o});const o=function e(t){return r.withOptions=r=>e(a(a({},t),r)),r;function r(e,...r){const n="string"==typeof e?[e]:e.raw,{escapeSpecialCharacters:a=Array.isArray(e)}=t;let i="";for(let e=0;e<n.length;e++){let t=n[e];a&&(t=t.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),i+=t,e<r.length&&(i+=r[e])}const o=i.split("\n");let l=null;for(const e of o){const t=e.match(/^(\s+)\S+/);if(t){const e=t[1].length;l=l?Math.min(l,e):e}}if(null!==l){const e=l;i=o.map((t=>" "===t[0]||"\t"===t[0]?t.slice(e):t)).join("\n")}return i=i.trim(),a&&(i=i.replace(/\\n/g,"\n")),i}}({})}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return s[e].call(r.exports,r,r.exports,u),r.exports}return u.m=s,u.c=c,u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{u.S={};var e={},t={};u.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];u.o(u.S,r)||(u.S[r]={});var i=u.S[r],o="MerchantOnboarding",l=(e,t,r,n)=>{var a=i[e]=i[e]||{},l=a[t];(!l||!l.loaded&&(!n!=!l.eager?n:o>l.from))&&(a[t]={get:r,from:o,eager:!!n})},s=[];return"default"===r&&(l("react-dom","16.14.0",(()=>()=>u(961)),1),l("react","16.14.0",(()=>()=>u(540)),1)),e[r]=s.length?Promise.all(s).then((()=>e[r]=1)):1}}})(),e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},t=e=>{var r=e[0],n="";if(1===e.length)return"*";if(r+.5){n+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var a=1,i=1;i<e.length;i++)a--,n+="u"==(typeof(l=e[i]))[0]?"-":(a>0?".":"")+(a=2,l);return n}var o=[];for(i=1;i<e.length;i++){var l=e[i];o.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?o.pop()+" "+o.pop():t(l))}return s();function s(){return o.pop().replace(/^\((.+)\)$/,"$1")}},r=(t,n)=>{if(0 in t){n=e(n);var a=t[0],i=a<0;i&&(a=-a-1);for(var o=0,l=1,s=!0;;l++,o++){var c,u,d=l<t.length?(typeof t[l])[0]:"";if(o>=n.length||"o"==(u=(typeof(c=n[o]))[0]))return!s||("u"==d?l>a&&!i:""==d!=i);if("u"==u){if(!s||"u"!=d)return!1}else if(s)if(d==u)if(l<=a){if(c!=t[l])return!1}else{if(i?c>t[l]:c<t[l])return!1;c!=t[l]&&(s=!1)}else if("s"!=d&&"n"!=d){if(i||l<=a)return!1;s=!1,l--}else{if(l<=a||u<d!=i)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,l--)}}var p=[],f=p.pop.bind(p);for(o=1;o<t.length;o++){var h=t[o];p.push(1==h?f()|f():2==h?f()&f():h?r(h,n):!f())}return!!f()},n=(t,r,n)=>{var a=n?(e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}))(t[r]):t[r];return Object.keys(a).reduce(((t,r)=>!t||!a[t].loaded&&((t,r)=>{t=e(t),r=e(r);for(var n=0;;){if(n>=t.length)return n<r.length&&"u"!=(typeof r[n])[0];var a=t[n],i=(typeof a)[0];if(n>=r.length)return"u"==i;var o=r[n],l=(typeof o)[0];if(i!=l)return"o"==i&&"n"==l||"s"==l||"u"==i;if("o"!=i&&"u"!=i&&a!=o)return a<o;n++}})(t,r)?r:t),0)},a=(e,t,r)=>r?r():((e,t)=>(e=>{throw new Error(e)})("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),i=(e=>function(t,r,n,a,i){var o=u.I(t);return o&&o.then&&!n?o.then(e.bind(e,t,u.S[t],r,!1,a,i)):e(t,u.S[t],r,n,a,i)})(((e,i,o,l,s,c)=>{if(!((e,t)=>e&&u.o(e,t))(i,o))return a(e,o,c);var d,p,f=n(i,o,l);return r(s,f)||(p=((e,r,n,a)=>"Unsatisfied version "+n+" from "+(n&&e[r][n].from)+" of shared singleton module "+r+" (required "+t(a)+")")(i,o,f,s),"undefined"!=typeof console&&console.warn&&console.warn(p)),(d=i[o][f]).loaded=1,d.get()})),o={},l={664:()=>i("default","react",!0,[1,16,14,0],(()=>()=>u(540))),36:()=>i("default","react-dom",!0,[1,16,14,0],(()=>()=>u(961))),660:()=>i("default","react",!0,[0,16],(()=>()=>u(540))),448:()=>i("default","react-dom",!0,[0,16],(()=>()=>u(961))),718:()=>i("default","react",!0,[,[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1],(()=>()=>u(540))),214:()=>i("default","react",!0,[,[1,19,0,0,,"rc"],[1,19,0,0],[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1,1,1],(()=>()=>u(540))),118:()=>i("default","react",!0,[,[1,19,0,0],[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1,1],(()=>()=>u(540)))},[664,36,660,448,718,214,118].forEach((e=>{u.m[e]=t=>{o[e]=0,delete u.c[e];var r=l[e]();if("function"!=typeof r)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=r()}})),u.nc=void 0,u(520)})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MerchantOnboarding=t():e.MerchantOnboarding=t()}(this,(()=>(()=>{var e,t,r,n,a,i,o,l,s={150:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(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 t={}.toString;if(t){var r=t.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}r.r(t),r.d(t,"PopupOpenError",(function(){return Ie})),r.d(t,"create",(function(){return Or})),r.d(t,"destroy",(function(){return Fr})),r.d(t,"destroyComponents",(function(){return Pr})),r.d(t,"destroyAll",(function(){return zr})),r.d(t,"PROP_TYPE",(function(){return cr})),r.d(t,"PROP_SERIALIZATION",(function(){return ur})),r.d(t,"CONTEXT",(function(){return dr})),r.d(t,"EVENT",(function(){return pr}));var l,s=[],c=[],u=0;function d(){if(!u&&l){var e=l;l=null,e.resolve()}}function p(){u+=1}function f(){u-=1,d()}var h=function(){function e(e){var t=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,n,a=!1,i=!1,o=!1;p();try{e((function(e){o?t.resolve(e):(a=!0,r=e)}),(function(e){o?t.reject(e):(i=!0,n=e)}))}catch(e){return f(),void this.reject(e)}f(),o=!0,a?this.resolve(r):i&&this.reject(n)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(o(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(o(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(){t.errorHandled||function(e,t){if(-1===s.indexOf(e)){s.push(e),setTimeout((function(){throw e}),1);for(var r=0;r<c.length;r++)c[r](e,t)}}(e,t)}),1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},t.dispatch=function(){var t=this.resolved,r=this.rejected,n=this.handlers;if(!this.dispatching&&(t||r)){this.dispatching=!0,p();for(var a=function(e,t){return e.then((function(e){t.resolve(e)}),(function(e){t.reject(e)}))},i=0;i<n.length;i++){var l=n[i],s=l.onSuccess,c=l.onError,u=l.promise,d=void 0;if(t)try{d=s?s(this.value):this.value}catch(e){u.reject(e);continue}else if(r){if(!c){u.reject(this.error);continue}try{d=c(this.error)}catch(e){u.reject(e);continue}}if(d instanceof e&&(d.resolved||d.rejected)){var h=d;h.resolved?u.resolve(h.value):u.reject(h.error),h.errorHandled=!0}else o(d)?d instanceof e&&(d.resolved||d.rejected)?d.resolved?u.resolve(d.value):u.reject(d.error):a(d,u):u.resolve(d)}n.length=0,this.dispatching=!1,f()}},t.then=function(t,r){if(t&&"function"!=typeof t&&!t.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 n=new e;return this.handlers.push({promise:n,onSuccess:t,onError:r}),this.errorHandled=!0,this.dispatch(),n},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.finally expected a function");return this.then((function(r){return e.try(t).then((function(){return r}))}),(function(r){return e.try(t).then((function(){throw r}))}))},t.timeout=function(e,t){var r=this;if(this.resolved||this.rejected)return this;var n=setTimeout((function(){r.resolved||r.rejected||r.reject(t||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(n),e}))},t.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:o(t)?new e((function(e,r){return t.then(e,r)})):(new e).resolve(t)},e.reject=function(t){return(new e).reject(t)},e.asyncReject=function(t){return(new e).asyncReject(t)},e.all=function(t){var r=new e,n=t.length,a=[].slice();if(!n)return r.resolve(a),r;for(var i=function(e,t,i){return t.then((function(t){a[e]=t,0==(n-=1)&&r.resolve(a)}),(function(e){i.reject(e)}))},l=0;l<t.length;l++){var s=t[l];if(s instanceof e){if(s.resolved){a[l]=s.value,n-=1;continue}}else if(!o(s)){a[l]=s,n-=1;continue}i(l,e.resolve(s),r)}return 0===n&&r.resolve(a),r},e.hash=function(t){var r={},n=[],a=function(e){if(t.hasOwnProperty(e)){var a=t[e];o(a)?n.push(a.then((function(t){r[e]=t}))):r[e]=a}};for(var i in t)a(i);return e.all(n).then((function(){return r}))},e.map=function(t,r){return e.all(t.map(r))},e.onPossiblyUnhandledException=function(e){return function(e){return c.push(e),{cancel:function(){c.splice(c.indexOf(e),1)}}}(e)},e.try=function(t,r,n){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.try expected a function");var a;p();try{a=t.apply(r,n||[])}catch(t){return f(),e.reject(t)}return f(),e.resolve(a)},e.delay=function(t){return new e((function(e){setTimeout(e,t)}))},e.isPromise=function(t){return!!(t&&t instanceof e)||o(t)},e.flush=function(){return t=l=l||new e,d(),t;var t},e}();function m(e){return"[object RegExp]"==={}.toString.call(e)}var g={IFRAME:"iframe",POPUP:"popup"},y="Call was rejected by callee.\r\n";function v(e){return void 0===e&&(e=window),e.location.protocol}function b(e){if(void 0===e&&(e=window),e.mockDomain){var t=e.mockDomain.split("//")[0];if(t)return t}return v(e)}function w(e){return void 0===e&&(e=window),"about:"===b(e)}function x(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function k(e){if(void 0===e&&(e=window),e&&!x(e))try{return e.opener}catch(e){}}function _(e){try{return!0}catch(e){}return!1}function S(e){void 0===e&&(e=window);var t=e.location;if(!t)throw new Error("Can not read window location");var r=v(e);if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var n=x(e);return n&&_()?S(n):"about://"}var a=t.host;if(!a)throw new Error("Can not read window host");return r+"//"+a}function E(e){void 0===e&&(e=window);var t=S(e);return t&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:t}function C(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var t=Object.getOwnPropertyDescriptor(e,"location");if(t&&!1===t.enumerable)return!1}catch(e){}try{if(w(e)&&_())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===b(e)}(e)&&_())return!0}catch(e){}try{if(S(e)===S(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(w(e)&&_())return!0;if(E(window)===E(e))return!0}catch(e){}return!1}function $(e){if(!C(e))throw new Error("Expected window to be same domain");return e}function A(e,t){if(!e||!t)return!1;var r=x(t);return r?r===e:-1!==function(e){var t=[];try{for(;e.parent!==e;)t.push(e.parent),e=e.parent}catch(e){}return t}(t).indexOf(e)}function T(e){var t,r,n=[];try{t=e.frames}catch(r){t=e}try{r=t.length}catch(e){}if(0===r)return n;if(r){for(var a=0;a<r;a++){var i=void 0;try{i=t[a]}catch(e){continue}n.push(i)}return n}for(var o=0;o<100;o++){var l=void 0;try{l=t[o]}catch(e){return n}if(!l)return n;n.push(l)}return n}function O(e){for(var t=[],r=0,n=T(e);r<n.length;r++){var a=n[r];t.push(a);for(var i=0,o=O(a);i<o.length;i++)t.push(o[i])}return t}function P(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(e){}if(x(e)===e)return e;try{if(A(window,e)&&window.top)return window.top}catch(e){}try{if(A(e,window)&&window.top)return window.top}catch(e){}for(var t=0,r=O(e);t<r.length;t++){var n=r[t];try{if(n.top)return n.top}catch(e){}if(x(n)===n)return n}}function z(e){var t=P(e);if(!t)throw new Error("Can not determine top window");var r=[].concat(O(t),[t]);return-1===r.indexOf(e)&&(r=[].concat(r,[e],O(e))),r}var F=[],N=[];function R(e,t){void 0===t&&(t=!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!==y}if(t&&C(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var r=function(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(e){}return-1}(F,e);if(-1!==r){var n=N[r];if(n&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var t=e.ownerDocument;if(t&&t.documentElement&&!t.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!t.documentElement.contains(r.host))return!0}return!1}(n))return!0}return!1}function I(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}function L(e,t){for(var r=T(e),n=0;n<r.length;n++){var a=r[n];try{if(C(a)&&a.name===t&&-1!==r.indexOf(a))return a}catch(e){}}try{if(-1!==r.indexOf(e.frames[t]))return e.frames[t]}catch(e){}try{if(-1!==r.indexOf(e[t]))return e[t]}catch(e){}}function M(e,t){return e===k(t)}function D(e){return void 0===e&&(e=window),k(e=e||window)||x(e)||void 0}function H(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<t.length;a++)if(n===t[a])return!0;return!1}function B(e){void 0===e&&(e=window);for(var t=0,r=e;r;)(r=x(r))&&(t+=1);return t}function j(e,t){var r=P(e)||e,n=P(t)||t;try{if(r&&n)return r===n}catch(e){}var a=z(e),i=z(t);if(H(a,i))return!0;var o=k(r),l=k(n);return o&&H(z(o),i)||l&&H(z(l),a),!1}function W(e,t){if("string"==typeof e){if("string"==typeof t)return"*"===e||t===e;if(m(t))return!1;if(Array.isArray(t))return!1}return m(e)?m(t)?e.toString()===t.toString():!Array.isArray(t)&&Boolean(t.match(e)):!!Array.isArray(e)&&(Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):!m(t)&&e.some((function(e){return W(e,t)})))}function V(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):E()}function U(e,t,r,n){var a;void 0===r&&(r=1e3),void 0===n&&(n=1/0);var i=function(){if(R(e))return a&&clearTimeout(a),t();n<=0?clearTimeout(a):(n-=r,a=setTimeout(i,r))};return i(),{cancel:function(){a&&clearTimeout(a)}}}function q(e){try{if(e===window)return!0}catch(e){if(e&&e.message===y)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===y)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===y)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===y)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 G(e){if(0!==V(e).indexOf("mock:"))return e;throw new Error("Mock urls not supported out of test mode")}function K(e){if(C(e))return $(e).frameElement;for(var t=0,r=document.querySelectorAll("iframe");t<r.length;t++){var n=r[t];if(n&&n.contentWindow&&n.contentWindow===e)return n}}function Y(e){if(function(e){return void 0===e&&(e=window),Boolean(x(e))}(e)){var t=K(e);if(t&&t.parentElement)return void t.parentElement.removeChild(t)}try{e.close()}catch(e){}}function X(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(e){}return-1}var Z,Q=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,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,r=0;r<t.length;r++){var n=t[r];if(q(n)&&R(n)){if(e)try{e.delete(n)}catch(e){}t.splice(r,1),this.values.splice(r,1),r-=1}}},t.isSafeToReadWrite=function(e){return!q(e)},t.set=function(e,t){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,t)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var n=this.name,a=e[n];return void(a&&a[0]===e?a[1]=t:Object.defineProperty(e,n,{value:[e,t],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,o=this.values,l=X(i,e);-1===l?(i.push(e),o.push(t)):o[l]=t},t.get=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return t.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 n=X(this.keys,e);if(-1!==n)return this.values[n]},t.delete=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.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 n=this.keys,a=X(n,e);-1!==a&&(n.splice(a,1),this.values.splice(a,1))},t.has=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.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!==X(this.keys,e)},t.getOrSet=function(e,t){if(this.has(e))return this.get(e);var r=t();return this.set(e,r),r},e}();function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t,r){return(ee=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var a=[null];a.push.apply(a,t);var i=new(Function.bind.apply(e,a));return r&&n(i,r.prototype),i}).apply(null,arguments)}function te(e){var t="function"==typeof Map?new Map:void 0;return(te=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return ee(e,arguments,J(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),n(a,e)})(e)}function re(e){var t=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(t=!0)}catch(e){}return t}function ne(e){return e.name||e.__name__||e.displayName||"anonymous"}function ae(e,t){try{delete e.name,e.name=t}catch(e){}return e.__name__=e.displayName=t,e}function ie(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,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 oe(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(16*Math.random()))}))+"_"+ie((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function le(e){try{return JSON.stringify([].slice.call(e),(function(e,t){return"function"==typeof t?"memoize["+function(e){if(Z=Z||new Q,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var t=Z.get(e);return t||(t=typeof e+":"+oe(),Z.set(e,t)),t}(t)+"]":re(t)?{}:t}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function se(){return{}}var ce=0,ue=0;function de(e,t){void 0===t&&(t={});var r,n,a=t.thisNamespace,i=void 0!==a&&a,o=t.time,l=ce;ce+=1;var s=function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];var c,u;l<ue&&(r=null,n=null,l=ce,ce+=1),c=i?(n=n||new Q).getOrSet(this,se):r=r||{};try{u=le(a)}catch(t){return e.apply(this,arguments)}var d=c[u];if(d&&o&&Date.now()-d.time<o&&(delete c[u],d=null),d)return d.value;var p=Date.now(),f=e.apply(this,arguments);return c[u]={time:p,value:f},f};return s.reset=function(){r=null,n=null},ae(s,(t.name||ne(e))+"::memoized")}function pe(e){var t={};function r(){for(var r=arguments,n=this,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var l=le(i);return t.hasOwnProperty(l)||(t[l]=h.try((function(){return e.apply(n,r)})).finally((function(){delete t[l]}))),t[l]}return r.reset=function(){t={}},ae(r,ne(e)+"::promiseMemoized")}function fe(){}function he(e){var t=!1;return ae((function(){if(!t)return t=!0,e.apply(this,arguments)}),ne(e)+"::once")}function me(e,t){if(void 0===t&&(t=1),t>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var r=e&&e.stack,n=e&&e.message;if(r&&n)return-1!==r.indexOf(n)?r:n+"\n"+r;if(r)return r;if(n)return n}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+me(e,t+1)}}function ge(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function ye(e,t){if(!t)return e;if(Object.assign)return Object.assign(e,t);for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function ve(e){return e}function be(e,t){var r;return function n(){r=setTimeout((function(){e(),n()}),t)}(),{cancel:function(){clearTimeout(r)}}}function we(e){return[].slice.call(e)}function xe(e){return null!=e}function ke(e){return"[object RegExp]"==={}.toString.call(e)}function _e(e,t,r){if(e.hasOwnProperty(t))return e[t];var n=r();return e[t]=n,n}function Se(e){var t,r=[],n=!1,a={set:function(t,r){return n||(e[t]=r,a.register((function(){delete e[t]}))),r},register:function(e){var a=he((function(){return e(t)}));return n?e(t):r.push(a),{cancel:function(){var e=r.indexOf(a);-1!==e&&r.splice(e,1)}}},all:function(e){t=e;var a=[];for(n=!0;r.length;){var i=r.shift();a.push(i())}return h.all(a).then(fe)}};return a}function Ee(e,t){if(null==t)throw new Error("Expected "+e+" to be present");return t}de.clear=function(){ue=ce},de((function(e){if(Object.values)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}));var Ce=function(e){function t(t){var r;return(r=e.call(this,t)||this).name=r.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(r,r.constructor):r.stack=new Error(t).stack,r}return a(t,e),t}(te(Error));function $e(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Ae(){return Boolean(document.body)&&"complete"===document.readyState}function Te(){return Boolean(document.body)&&"interactive"===document.readyState}function Oe(e){return encodeURIComponent(e)}function Pe(e){return function(t,r,n){void 0===n&&(n=[]);var a=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},i=le(n);return a.hasOwnProperty(i)?a[i]:a[i]=function(){var t={};if(!e)return t;if(-1===e.indexOf("="))return t;for(var r=0,n=e.split("&");r<n.length;r++){var a=n[r];(a=a.split("="))[0]&&a[1]&&(t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]))}return t}.apply(void 0,n)}(Pe,0,[e])}function ze(e,t){return void 0===t&&(t={}),t&&Object.keys(t).length?(void 0===(r=i({},Pe(e),t))&&(r={}),Object.keys(r).filter((function(e){return"string"==typeof r[e]||"boolean"==typeof r[e]})).map((function(e){var t=r[e];if("string"!=typeof t&&"boolean"!=typeof t)throw new TypeError("Invalid type for query");return Oe(e)+"="+Oe(t.toString())})).join("&")):e;var r}function Fe(e,t){return void 0===t&&(t=document),re(e)?e:"string"==typeof e?t.querySelector(e):void 0}function Ne(e){return new h((function(t,r){var n=ge(e),a=Fe(e);if(a)return t(a);if(Ae())return r(new Error("Document is ready and element "+n+" does not exist"));var i=setInterval((function(){if(a=Fe(e))t(a),clearInterval(i);else if(Ae())return clearInterval(i),r(new Error("Document is ready and element "+n+" does not exist"))}),10)}))}de((function(){return new h((function(e){if(Ae()||Te())return e();var t=setInterval((function(){if(Ae()||Te())return clearInterval(t),e()}),10)}))}));var Re,Ie=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(Ce);function Le(e){if((Re=Re||new Q).has(e)){var t=Re.get(e);if(t)return t}var r=new h((function(t,r){e.addEventListener("load",(function(){!function(e){if(function(){for(var e=0;e<F.length;e++){var t=!1;try{t=F[e].closed}catch(e){}t&&(N.splice(e,1),F.splice(e,1))}}(),e&&e.contentWindow)try{F.push(e.contentWindow),N.push(e)}catch(e){}}(e),t(e)})),e.addEventListener("error",(function(n){e.contentWindow?t(e):r(n)}))}));return Re.set(e,r),r}function Me(e){return Le(e).then((function(e){if(!e.contentWindow)throw new Error("Could not find window in iframe");return e.contentWindow}))}function De(e,t){void 0===e&&(e={});var r=e.style||{},n=function(e,t){void 0===e&&(e="div"),void 0===t&&(t={}),e=e.toLowerCase();var r,n,a,i=document.createElement(e);if(t.style&&ye(i.style,t.style),t.class&&(i.className=t.class.join(" ")),t.id&&i.setAttribute("id",t.id),t.attributes)for(var o=0,l=Object.keys(t.attributes);o<l.length;o++){var s=l[o];i.setAttribute(s,t.attributes[s])}if(t.styleSheet&&(r=i,n=t.styleSheet,void 0===a&&(a=window.document),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(a.createTextNode(n))),t.html){if("iframe"===e)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");i.innerHTML=t.html}return i}("iframe",{attributes:i({allowTransparency:"true"},e.attributes||{}),style:i({backgroundColor:"transparent",border:"none"},r),html:e.html,class:e.class}),a=window.navigator.userAgent.match(/MSIE|Edge/i);return n.hasAttribute("id")||n.setAttribute("id",oe()),Le(n),t&&function(e,t){void 0===t&&(t=document);var r=Fe(e,t);if(r)return r;throw new Error("Can not find element: "+ge(e))}(t).appendChild(n),(e.url||a)&&n.setAttribute("src",e.url||"about:blank"),n}function He(e,t,r){return e.addEventListener(t,r),{cancel:function(){e.removeEventListener(t,r)}}}function Be(e){e.style.setProperty("display","")}function je(e){e.style.setProperty("display","none","important")}function We(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ve(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function Ue(e,t,r){var n=void 0===r?{}:r,a=n.width,i=void 0===a||a,o=n.height,l=void 0===o||o,s=n.interval,c=void 0===s?100:s,u=n.win,d=void 0===u?window:u,p=e.offsetWidth,f=e.offsetHeight,h=!1;t({width:p,height:f});var m,g,y=function(){if(!h&&function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)){var r=e.offsetWidth,n=e.offsetHeight;(i&&r!==p||l&&n!==f)&&t({width:r,height:n}),p=r,f=n}};return d.addEventListener("resize",y),void 0!==d.ResizeObserver?((m=new d.ResizeObserver(y)).observe(e),g=be(y,10*c)):void 0!==d.MutationObserver?((m=new d.MutationObserver(y)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),g=be(y,10*c)):g=be(y,c),{cancel:function(){h=!0,m.disconnect(),window.removeEventListener("resize",y),g.cancel()}}}function qe(e){for(;e.parentNode;)e=e.parentNode;return"[object ShadowRoot]"===e.toString()}var Ge="undefined"!=typeof document?document.currentScript:null,Ke=de((function(){if(Ge)return Ge;if(Ge=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),t=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=t&&t[1];if(!r)return;for(var n=0,a=[].slice.call(document.getElementsByTagName("script")).reverse();n<a.length;n++){var i=a[n];if(i.src&&i.src===r)return i}}catch(e){}}())return Ge;throw new Error("Can not determine current script")})),Ye=oe();function Xe(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function Ze(e){if("number"==typeof e)return e;var t=e.match(/^([0-9]+)(px|%)$/);if(!t)throw new Error("Could not match css value from "+e);return parseInt(t[1],10)}function Qe(e){return Ze(e)+"px"}function Je(e){return"number"==typeof e?Qe(e):Xe(e)?e:Qe(e)}function et(e,t){if("number"==typeof e)return e;if(Xe(e))return parseInt(t*Ze(e)/100,10);if("string"==typeof(r=e)&&/^[0-9]+px$/.test(r))return Ze(e);var r;throw new Error("Can not normalize dimension: "+e)}function tt(e){void 0===e&&(e=window);var t="__post_robot_11_0_0__";return e!==window?e[t]:e[t]=e[t]||{}}de((function(){var e;try{e=Ke()}catch(e){return Ye}var t=e.getAttribute("data-uid");if(t&&"string"==typeof t)return t;if((t=e.getAttribute("data-uid-auto"))&&"string"==typeof t)return t;if(e.src){var r=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].charCodeAt(0)*r;e[r+1]&&(n+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(n)%26)}return t}(JSON.stringify({src:e.src,dataset:e.dataset}));t="uid_"+r.slice(r.length-30)}else t=oe();return e.setAttribute("data-uid-auto",t),t}));var rt=function(){return{}};function nt(e,t){return void 0===e&&(e="store"),void 0===t&&(t=rt),_e(tt(),e,(function(){var e=t();return{has:function(t){return e.hasOwnProperty(t)},get:function(t,r){return e.hasOwnProperty(t)?e[t]:r},set:function(t,r){return e[t]=r,r},del:function(t){delete e[t]},getOrSet:function(t,r){return _e(e,t,r)},reset:function(){e=t()},keys:function(){return Object.keys(e)}}}))}var at,it=function(){};function ot(){var e=tt();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new it,e.WINDOW_WILDCARD}function lt(e,t){return void 0===e&&(e="store"),void 0===t&&(t=rt),nt("windowStore").getOrSet(e,(function(){var r=new Q,n=function(e){return r.getOrSet(e,t)};return{has:function(t){return n(t).hasOwnProperty(e)},get:function(t,r){var a=n(t);return a.hasOwnProperty(e)?a[e]:r},set:function(t,r){return n(t)[e]=r,r},del:function(t){delete n(t)[e]},getOrSet:function(t,r){return _e(n(t),e,r)}}}))}function st(){return nt("instance").getOrSet("instanceID",oe)}function ct(e,t){var r=t.domain,n=lt("helloPromises"),a=n.get(e);a&&a.resolve({domain:r});var i=h.resolve({domain:r});return n.set(e,i),i}function ut(e,t){return(0,t.send)(e,"postrobot_hello",{instanceID:st()},{domain:"*",timeout:-1}).then((function(t){var r=t.origin,n=t.data.instanceID;return ct(e,{domain:r}),{win:e,domain:r,instanceID:n}}))}function dt(e,t){var r=t.send;return lt("windowInstanceIDPromises").getOrSet(e,(function(){return ut(e,{send:r}).then((function(e){return e.instanceID}))}))}function pt(e,t,r){void 0===t&&(t=5e3),void 0===r&&(r="Window");var n=function(e){return lt("helloPromises").getOrSet(e,(function(){return new h}))}(e);return-1!==t&&(n=n.timeout(t,new Error(r+" did not load after "+t+"ms"))),n}function ft(e){lt("knownWindows").set(e,!0)}function ht(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function mt(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function gt(e,t){return{__type__:e,__val__:t}}var yt,vt=((at={}).function=function(){},at.error=function(e){return gt("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},at.promise=function(){},at.regex=function(e){return gt("regex",e.source)},at.date=function(e){return gt("date",e.toJSON())},at.array=function(e){return e},at.object=function(e){return e},at.string=function(e){return e},at.number=function(e){return e},at.boolean=function(e){return e},at.null=function(e){return e},at[void 0]=function(e){return gt("undefined",e)},at),bt={},wt=((yt={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},yt.error=function(e){var t=e.stack,r=e.code,n=e.data,a=new Error(e.message);return a.code=r,n&&(a.data=n),a.stack=t+"\n\n"+a.stack,a},yt.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},yt.regex=function(e){return new RegExp(e)},yt.date=function(e){return new Date(e)},yt.array=function(e){return e},yt.object=function(e){return e},yt.string=function(e){return e},yt.number=function(e){return e},yt.boolean=function(e){return e},yt.null=function(e){return e},yt[void 0]=function(){},yt),xt={};function kt(){return!!I(window).match(/MSIE|trident|edge\/12|edge\/13/i)}function _t(e){return!j(window,e)}function St(e,t){if(e){if(E()!==V(e))return!0}else if(t&&!C(t))return!0;return!1}function Et(e){var t=e.win,r=e.domain;return!(!kt()||r&&!St(r,t)||t&&!_t(t))}function Ct(e){return"__postrobot_bridge___"+(e=e||V(e)).replace(/[^a-zA-Z0-9]+/g,"_")}function $t(){return Boolean(window.name&&window.name===Ct(E()))}var At=new h((function(e){if(window.document&&window.document.body)return e(window.document.body);var t=setInterval((function(){if(window.document&&window.document.body)return clearInterval(t),e(window.document.body)}),10)}));function Tt(e){lt("remoteWindowPromises").getOrSet(e,(function(){return new h}))}function Ot(e){var t=lt("remoteWindowPromises").get(e);if(!t)throw new Error("Remote window promise not found");return t}function Pt(e,t,r){Ot(e).resolve((function(n,a,i){if(n!==e)throw new Error("Remote window does not match window");if(!W(a,t))throw new Error("Remote domain "+a+" does not match domain "+t);r.fireAndForget(i)}))}function zt(e,t){Ot(e).reject(t).catch(fe)}function Ft(e){for(var t=e.win,r=e.name,n=e.domain,a=nt("popupWindowsByName"),i=lt("popupWindowsByWin"),o=0,l=a.keys();o<l.length;o++){var s=l[o],c=a.get(s);c&&!R(c.win)||a.del(s)}if(R(t))return{win:t,name:r,domain:n};var u=i.getOrSet(t,(function(){return r?a.getOrSet(r,(function(){return{win:t,name:r}})):{win:t}}));if(u.win&&u.win!==t)throw new Error("Different window already linked for window: "+(r||"undefined"));return r&&(u.name=r,a.set(r,u)),n&&(u.domain=n,Tt(t)),i.set(t,u),u}function Nt(e){var t,r=e.on,n=e.send,a=e.receiveMessage;t=window.open,window.open=function(e,r,n,a){var i=t.call(this,G(e),r,n,a);return i?(Ft({win:i,name:r,domain:e?V(e):null}),i):i},function(e){var t=e.on,r=e.send,n=e.receiveMessage,a=nt("popupWindowsByName");t("postrobot_open_tunnel",(function(e){var i=e.source,o=e.origin,l=e.data,s=nt("bridges").get(o);if(!s)throw new Error("Can not find bridge promise for domain "+o);return s.then((function(e){if(i!==e)throw new Error("Message source does not matched registered bridge for domain "+o);if(!l.name)throw new Error("Register window expected to be passed window name");if(!l.sendMessage)throw new Error("Register window expected to be passed sendMessage method");if(!a.has(l.name))throw new Error("Window with name "+l.name+" does not exist, or was not opened by this window");var s=function(){return a.get(l.name)};if(!s().domain)throw new Error("We do not have a registered domain for window "+l.name);if(s().domain!==o)throw new Error("Message origin "+o+" does not matched registered window origin "+(s().domain||"unknown"));return Pt(s().win,o,l.sendMessage),{sendMessage:function(e){if(window&&!window.closed&&s()){var a=s().domain;if(a)try{n({data:e,origin:a,source:s().win},{on:t,send:r})}catch(e){h.reject(e)}}}}}))}))}({on:r,send:n,receiveMessage:a}),function(e){var t=e.send;tt(window).openTunnelToParent=function(e){var r=e.name,n=e.source,a=e.canary,i=e.sendMessage,o=nt("tunnelWindows"),l=x(window);if(!l)throw new Error("No parent window found to open tunnel to");var s=function(e){var t=e.name,r=e.source,n=e.canary,a=e.sendMessage;!function(){for(var e=nt("tunnelWindows"),t=0,r=e.keys();t<r.length;t++){var n=r[t];R(e[n].source)&&e.del(n)}}();var i=oe();return nt("tunnelWindows").set(i,{name:t,source:r,canary:n,sendMessage:a}),i}({name:r,source:n,canary:a,sendMessage:i});return t(l,"postrobot_open_tunnel",{name:r,sendMessage:function(){var e=o.get(s);if(e&&e.source&&!R(e.source)){try{e.canary()}catch(e){return}e.sendMessage.apply(this,arguments)}}},{domain:"*"})}}({send:n}),function(e){var t=e.on,r=e.send,n=e.receiveMessage;h.try((function(){var e,a=k(window);if(a&&Et({win:a}))return Tt(a),(e=a,lt("remoteBridgeAwaiters").getOrSet(e,(function(){return h.try((function(){var t=L(e,Ct(E()));if(t)return C(t)&&tt($(t))?t:new h((function(e){var r,n;r=setInterval((function(){if(t&&C(t)&&tt($(t)))return clearInterval(r),clearTimeout(n),e(t)}),100),n=setTimeout((function(){return clearInterval(r),e()}),2e3)}))}))}))).then((function(e){return e?window.name?tt($(e)).openTunnelToParent({name:window.name,source:window,canary:function(){},sendMessage:function(e){try{window}catch(e){return}if(window&&!window.closed)try{n({data:e,origin:this.origin,source:this.source},{on:t,send:r})}catch(e){h.reject(e)}}}).then((function(e){var t=e.source,r=e.origin,n=e.data;if(t!==a)throw new Error("Source does not match opener");Pt(t,r,n.sendMessage)})).catch((function(e){throw zt(a,e),e})):zt(a,new Error("Can not register with opener: window does not have a name")):zt(a,new Error("Can not register with opener: no bridge found in opener"))}))}))}({on:r,send:n,receiveMessage:a})}function Rt(){for(var e=nt("idToProxyWindow"),t=0,r=e.keys();t<r.length;t++){var n=r[t];e.get(n).shouldClean()&&e.del(n)}}function It(e,t){var r=t.send,n=t.id,a=void 0===n?oe():n,i=e.then((function(e){if(C(e))return $(e).name})),o=e.then((function(e){if(R(e))throw new Error("Window is closed, can not determine type");return k(e)?g.POPUP:g.IFRAME}));i.catch(fe),o.catch(fe);var l=function(){return e.then((function(e){if(!R(e))return C(e)?$(e).name:i}))};return{id:a,getType:function(){return o},getInstanceID:pe((function(){return e.then((function(e){return dt(e,{send:r})}))})),close:function(){return e.then(Y)},getName:l,focus:function(){return e.then((function(e){e.focus()}))},isClosed:function(){return e.then((function(e){return R(e)}))},setLocation:function(t,r){return void 0===r&&(r={}),e.then((function(e){var n=window.location.protocol+"//"+window.location.host,a=r.method,i=void 0===a?"get":a,o=r.body;if(0===t.indexOf("/"))t=""+n+t;else if(!t.match(/^https?:\/\//)&&0!==t.indexOf(n))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(t));if("post"===i)return l().then((function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var t=e.url,r=e.target,n=e.body,a=e.method,i=void 0===a?"post":a,o=document.createElement("form");if(o.setAttribute("target",r),o.setAttribute("method",i),o.setAttribute("action",t),o.style.display="none",n)for(var l=0,s=Object.keys(n);l<s.length;l++){var c,u=s[l],d=document.createElement("input");d.setAttribute("name",u),d.setAttribute("value",null==(c=n[u])?void 0:c.toString()),o.appendChild(d)}$e().appendChild(o),o.submit(),$e().removeChild(o)}({url:t,target:e,method:i,body:o})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(C(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(t)}catch(e){}e.location=t}))},setName:function(t){return e.then((function(e){Ft({win:e,name:t});var r=C(e),n=K(e);if(!r)throw new Error("Can not set name for cross-domain window: "+t);$(e).name=t,n&&n.setAttribute("name",t),i=h.resolve(t)}))}}}var Lt=function(){function e(e){var t=e.send,r=e.win,n=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new h,this.serializedWindow=n||It(this.actualWindowPromise,{send:t}),nt("idToProxyWindow").set(this.getID(),this),r&&this.setWindow(r,{send:t})}var t=e.prototype;return t.getID=function(){return this.serializedWindow.id},t.getType=function(){return this.serializedWindow.getType()},t.isPopup=function(){return this.getType().then((function(e){return e===g.POPUP}))},t.setLocation=function(e,t){var r=this;return this.serializedWindow.setLocation(e,t).then((function(){return r}))},t.getName=function(){return this.serializedWindow.getName()},t.setName=function(e){var t=this;return this.serializedWindow.setName(e).then((function(){return t}))},t.close=function(){var e=this;return this.serializedWindow.close().then((function(){return e}))},t.focus=function(){var e=this,t=this.isPopup(),r=this.getName(),n=h.hash({isPopup:t,name:r}).then((function(e){var t=e.name;e.isPopup&&t&&window.open("",t,"noopener")})),a=this.serializedWindow.focus();return h.all([n,a]).then((function(){return e}))},t.isClosed=function(){return this.serializedWindow.isClosed()},t.getWindow=function(){return this.actualWindow},t.setWindow=function(e,t){var r=t.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=It(this.actualWindowPromise,{send:r,id:this.getID()}),lt("winToProxyWindow").set(e,this)},t.awaitWindow=function(){return this.actualWindowPromise},t.matchWindow=function(e,t){var r=this,n=t.send;return h.try((function(){return r.actualWindow?e===r.actualWindow:h.hash({proxyInstanceID:r.getInstanceID(),knownWindowInstanceID:dt(e,{send:n})}).then((function(t){var a=t.proxyInstanceID===t.knownWindowInstanceID;return a&&r.setWindow(e,{send:n}),a}))}))},t.unwrap=function(){return this.actualWindow||this},t.getInstanceID=function(){return this.serializedWindow.getInstanceID()},t.shouldClean=function(){return Boolean(this.actualWindow&&R(this.actualWindow))},t.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,r){var n=r.send;return Rt(),e.toProxyWindow(t,{send:n}).serialize()},e.deserialize=function(t,r){var n=r.send;return Rt(),nt("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:n})},e.isProxyWindow=function(e){return Boolean(e&&!q(e)&&e.isProxyWindow)},e.toProxyWindow=function(t,r){var n=r.send;if(Rt(),e.isProxyWindow(t))return t;var a=t;return lt("winToProxyWindow").get(a)||new e({win:a,send:n})},e}();function Mt(e,t,r,n,a){var i=lt("methodStore"),o=nt("proxyWindowMethods");Lt.isProxyWindow(n)?o.set(e,{val:t,name:r,domain:a,source:n}):(o.del(e),i.getOrSet(n,(function(){return{}}))[e]={domain:a,name:r,val:t,source:n})}function Dt(e,t){var r=lt("methodStore"),n=nt("proxyWindowMethods");return r.getOrSet(e,(function(){return{}}))[t]||n.get(t)}function Ht(e,t,r,n,a){var i,o,l;o=(i={on:a.on,send:a.send}).on,l=i.send,nt("builtinListeners").getOrSet("functionCalls",(function(){return o("postrobot_method",{domain:"*"},(function(e){var t=e.source,r=e.origin,n=e.data,a=n.id,i=n.name,o=Dt(t,a);if(!o)throw new Error("Could not find method '"+i+"' with id: "+n.id+" in "+E(window));var s=o.source,c=o.domain,u=o.val;return h.try((function(){if(!W(c,r))throw new Error("Method '"+n.name+"' domain "+JSON.stringify(ke(o.domain)?o.domain.source:o.domain)+" does not match origin "+r+" in "+E(window));if(Lt.isProxyWindow(s))return s.matchWindow(t,{send:l}).then((function(e){if(!e)throw new Error("Method call '"+n.name+"' failed - proxy window does not match source in "+E(window))}))})).then((function(){return u.apply({source:t,origin:r},n.args)}),(function(e){return h.try((function(){if(u.onError)return u.onError(e)})).then((function(){var t;throw e.stack&&(e.stack="Remote call to "+i+"("+(void 0===(t=n.args)&&(t=[]),we(t).map((function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:a,name:i}}))}))}));var s=r.__id__||oe();e=Lt.unwrap(e);var c=r.__name__||r.name||n;return"string"==typeof c&&"function"==typeof c.indexOf&&0===c.indexOf("anonymous::")&&(c=c.replace("anonymous::",n+"::")),Lt.isProxyWindow(e)?(Mt(s,r,c,e,t),e.awaitWindow().then((function(e){Mt(s,r,c,e,t)}))):Mt(s,r,c,e,t),gt("cross_domain_function",{id:s,name:c})}function Bt(e,t,r,n){var a,i=n.on,o=n.send;return function(e,t){void 0===t&&(t=bt);var r=JSON.stringify(e,(function(e){var r=this[e];if(ht(this))return r;var n=mt(r);if(!n)return r;var a=t[n]||vt[n];return a?a(r,e):r}));return void 0===r?"undefined":r}(r,((a={}).promise=function(r,n){return function(e,t,r,n,a){return gt("cross_domain_zalgo_promise",{then:Ht(e,t,(function(e,t){return r.then(e,t)}),n,{on:a.on,send:a.send})})}(e,t,r,n,{on:i,send:o})},a.function=function(r,n){return Ht(e,t,r,n,{on:i,send:o})},a.object=function(e){return q(e)||Lt.isProxyWindow(e)?gt("cross_domain_window",Lt.serialize(e,{send:o})):e},a))}function jt(e,t,r,n){var a,i=n.send;return function(e,t){if(void 0===t&&(t=xt),"undefined"!==e)return JSON.parse(e,(function(e,r){if(ht(this))return r;var n,a;if(ht(r)?(n=r.__type__,a=r.__val__):(n=mt(r),a=r),!n)return a;var i=t[n]||wt[n];return i?i(a,e):a}))}(r,((a={}).cross_domain_zalgo_promise=function(e){return function(e,t,r){return new h(r.then)}(0,0,e)},a.cross_domain_function=function(r){return function(e,t,r,n){var a=r.id,i=r.name,o=n.send,l=function(r){function n(){var l=arguments;return Lt.toProxyWindow(e,{send:o}).awaitWindow().then((function(e){var s=Dt(e,a);if(s&&s.val!==n)return s.val.apply({source:window,origin:E()},l);var c=[].slice.call(l);return r.fireAndForget?o(e,"postrobot_method",{id:a,name:i,args:c},{domain:t,fireAndForget:!0}):o(e,"postrobot_method",{id:a,name:i,args:c},{domain:t,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===r&&(r={}),n.__name__=i,n.__origin__=t,n.__source__=e,n.__id__=a,n.origin=t,n},s=l();return s.fireAndForget=l({fireAndForget:!0}),s}(e,t,r,{send:i})},a.cross_domain_window=function(e){return Lt.deserialize(e,{send:i})},a))}var Wt={};function Vt(e,t,r,n){var a=n.on,i=n.send;return h.try((function(){var n=lt().getOrSet(e,(function(){return{}}));return n.buffer=n.buffer||[],n.buffer.push(r),n.flush=n.flush||h.flush().then((function(){if(R(e))throw new Error("Window is closed");var r,o=Bt(e,t,((r={}).__post_robot_11_0_0__=n.buffer||[],r),{on:a,send:i});delete n.buffer;for(var l=Object.keys(Wt),s=[],c=0;c<l.length;c++){var u=l[c];try{Wt[u](e,o,t)}catch(e){s.push(e)}}if(s.length===l.length)throw new Error("All post-robot messaging strategies failed:\n\n"+s.map((function(e,t){return t+". "+me(e)})).join("\n\n"))})),n.flush.then((function(){delete n.flush}))})).then(fe)}function Ut(e){return nt("responseListeners").get(e)}function qt(e){nt("responseListeners").del(e)}function Gt(e){return nt("erroredResponseListeners").has(e)}function Kt(e){var t=e.name,r=e.win,n=e.domain,a=lt("requestListeners");if("*"===r&&(r=null),"*"===n&&(n=null),!t)throw new Error("Name required to get request listener");for(var i=0,o=[r,ot()];i<o.length;i++){var l=o[i];if(l){var s=a.get(l);if(s){var c=s[t];if(c){if(n&&"string"==typeof n){if(c[n])return c[n];if(c.__domain_regex__)for(var u=0,d=c.__domain_regex__;u<d.length;u++){var p=d[u],f=p.listener;if(W(p.regex,n))return f}}if(c["*"])return c["*"]}}}}}function Yt(e,t){var r=t.on,n=t.send,a=nt("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(e){return}var i=e.source,o=e.origin,l=function(e,t,r,n){var a,i=n.on,o=n.send;try{a=jt(t,r,e,{on:i,send:o})}catch(e){return}if(a&&"object"==typeof a&&null!==a){var l=a.__post_robot_11_0_0__;if(Array.isArray(l))return l}}(e.data,i,o,{on:r,send:n});if(l){ft(i);for(var s,c=function(){var e=l[u];if(a.has(e.id))return{v:void 0};if(a.set(e.id,!0),R(i)&&!e.fireAndForget)return{v:void 0};0===e.origin.indexOf("file:")&&(o="file://");try{"postrobot_message_request"===e.type?function(e,t,r,n){var a=n.on,i=n.send,o=Kt({name:r.name,win:e,domain:t}),l="postrobot_method"===r.name&&r.data&&"string"==typeof r.data.name?r.data.name+"()":r.name;function s(n,o,s){return h.flush().then((function(){if(!r.fireAndForget&&!R(e))try{return Vt(e,t,{id:oe(),origin:E(window),type:"postrobot_message_response",hash:r.hash,name:r.name,ack:n,data:o,error:s},{on:a,send:i})}catch(e){throw new Error("Send response message failed for "+l+" in "+E()+"\n\n"+me(e))}}))}h.all([h.flush().then((function(){if(!r.fireAndForget&&!R(e))try{return Vt(e,t,{id:oe(),origin:E(window),type:"postrobot_message_ack",hash:r.hash,name:r.name},{on:a,send:i})}catch(e){throw new Error("Send ack message failed for "+l+" in "+E()+"\n\n"+me(e))}})),h.try((function(){if(!o)throw new Error("No handler found for post message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return o.handler({source:e,origin:t,data:r.data})})).then((function(e){return s("success",e)}),(function(e){return s("error",null,e)}))]).then(fe).catch((function(e){if(o&&o.handleError)return o.handleError(e);throw e}))}(i,o,e,{on:r,send:n}):"postrobot_message_response"===e.type?function(e,t,r){if(!Gt(r.hash)){var n,a=Ut(r.hash);if(!a)throw new Error("No handler found for post message response for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!W(a.domain,t))throw new Error("Response origin "+t+" does not match domain "+(n=a.domain,Array.isArray(n)?"("+n.join(" | ")+")":m(n)?"RegExp("+n.toString()+")":n.toString()));if(e!==a.win)throw new Error("Response source does not match registered window");qt(r.hash),"error"===r.ack?a.promise.reject(r.error):"success"===r.ack&&a.promise.resolve({source:e,origin:t,data:r.data})}}(i,o,e):"postrobot_message_ack"===e.type&&function(e,t,r){if(!Gt(r.hash)){var n=Ut(r.hash);if(!n)throw new Error("No handler found for post message ack for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!W(n.domain,t))throw new Error("Ack origin "+t+" does not match domain "+n.domain.toString());if(e!==n.win)throw new Error("Ack source does not match registered window")}catch(e){n.promise.reject(e)}n.ack=!0}}(i,o,e)}catch(e){setTimeout((function(){throw e}),0)}},u=0;u<l.length;u++)if(s=c())return s.v}}function Xt(e,t,r){if(!e)throw new Error("Expected name");if("function"==typeof(t=t||{})&&(r=t,t={}),!r)throw new Error("Expected handler");var n=function e(t,r){var n=t.name,a=t.win,i=t.domain,o=lt("requestListeners");if(!n||"string"!=typeof n)throw new Error("Name required to add request listener");if(a&&"*"!==a&&Lt.isProxyWindow(a)){var l=a.awaitWindow().then((function(t){return e({name:n,win:t,domain:i},r)}));return{cancel:function(){l.then((function(e){return e.cancel()}),fe)}}}var s=a;if(Array.isArray(s)){for(var c=[],u=0,d=s;u<d.length;u++)c.push(e({name:n,domain:i,win:d[u]},r));return{cancel:function(){for(var e=0;e<c.length;e++)c[e].cancel()}}}if(Array.isArray(i)){for(var p=[],f=0,h=i;f<h.length;f++)p.push(e({name:n,win:s,domain:h[f]},r));return{cancel:function(){for(var e=0;e<p.length;e++)p[e].cancel()}}}var m=Kt({name:n,win:s,domain:i});s&&"*"!==s||(s=ot());var g=(i=i||"*").toString();if(m)throw s&&i?new Error("Request listener already exists for "+n+" on domain "+i.toString()+" for "+(s===ot()?"wildcard":"specified")+" window"):s?new Error("Request listener already exists for "+n+" for "+(s===ot()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+n+" on domain "+i.toString()):new Error("Request listener already exists for "+n);var y,v,b=o.getOrSet(s,(function(){return{}})),w=_e(b,n,(function(){return{}}));return ke(i)?(y=_e(w,"__domain_regex__",(function(){return[]}))).push(v={regex:i,listener:r}):w[g]=r,{cancel:function(){delete w[g],v&&(y.splice(y.indexOf(v,1)),y.length||delete w.__domain_regex__),Object.keys(w).length||delete b[n],s&&!Object.keys(b).length&&o.del(s)}}}({name:e,win:t.window,domain:t.domain||"*"},{handler:r||t.handler,handleError:t.errorHandler||function(e){throw e}});return{cancel:function(){n.cancel()}}}Wt.postrobot_post_message=function(e,t,r){0===r.indexOf("file:")&&(r="*"),e.postMessage(t,r)},Wt.postrobot_bridge=function(e,t,r){if(!kt()&&!$t())throw new Error("Bridge not needed for browser");if(C(e))throw new Error("Post message through bridge disabled between same domain windows");if(!1!==j(window,e))throw new Error("Can only use bridge to communicate between two different windows, not between frames");!function(e,t,r){var n=M(window,e),a=M(e,window);if(!n&&!a)throw new Error("Can only send messages to and from parent and popup windows");Ot(e).then((function(n){return n(e,t,r)}))}(e,r,t)},Wt.postrobot_global=function(e,t){if(!I(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!C(e))throw new Error("Post message through global disabled between different domain windows");if(!1!==j(window,e))throw new Error("Can only use global to communicate between two different windows, not between frames");var r=tt(e);if(!r)throw new Error("Can not find postRobot global on foreign window");r.receiveMessage({source:window,origin:E(),data:t})};var Zt,Qt=function(e,t,r,n){var a=(n=n||{}).domain||"*",i=n.timeout||-1,o=n.timeout||5e3,l=n.fireAndForget||!1;return Lt.toProxyWindow(e,{send:Qt}).awaitWindow().then((function(e){return h.try((function(){if(function(e,t,r){if(!e)throw new Error("Expected name");if(r&&"string"!=typeof r&&!Array.isArray(r)&&!ke(r))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(r)+" to be a string, array, or regex");if(R(t))throw new Error("Can not send "+e+". Target window is closed")}(t,e,a),function(e,t){var r=D(t);if(r)return r===e;if(t===e)return!1;if(P(t)===t)return!1;for(var n=0,a=T(e);n<a.length;n++)if(a[n]===t)return!0;return!1}(window,e))return pt(e,o)})).then((function(t){return function(e,t,r,n){var a=n.send;return h.try((function(){return"string"==typeof t?t:h.try((function(){return r||ut(e,{send:a}).then((function(e){return e.domain}))})).then((function(e){if(!W(t,t))throw new Error("Domain "+ge(t)+" does not match "+ge(t));return e}))}))}(e,a,(void 0===t?{}:t).domain,{send:Qt})})).then((function(n){var a=n,o="postrobot_method"===t&&r&&"string"==typeof r.name?r.name+"()":t,s=new h,c=t+"_"+oe();if(!l){var u={name:t,win:e,domain:a,promise:s};!function(e,t){nt("responseListeners").set(e,t)}(c,u);var d=lt("requestPromises").getOrSet(e,(function(){return[]}));d.push(s),s.catch((function(){!function(e){nt("erroredResponseListeners").set(e,!0)}(c),qt(c)}));var p=function(e){return lt("knownWindows").get(e,!1)}(e)?1e4:2e3,f=i,m=p,g=f,y=be((function(){return R(e)?s.reject(new Error("Window closed for "+t+" before "+(u.ack?"response":"ack"))):u.cancelled?s.reject(new Error("Response listener was cancelled for "+t)):(m=Math.max(m-500,0),-1!==g&&(g=Math.max(g-500,0)),u.ack||0!==m?0===g?s.reject(new Error("No response for postMessage "+o+" in "+E()+" in "+f+"ms")):void 0:s.reject(new Error("No ack for postMessage "+o+" in "+E()+" in "+p+"ms")))}),500);s.finally((function(){y.cancel(),d.splice(d.indexOf(s,1))})).catch(fe)}return Vt(e,a,{id:oe(),origin:E(window),type:"postrobot_message_request",hash:c,name:t,data:r,fireAndForget:l},{on:Xt,send:Qt}).then((function(){return l?s.resolve():s}),(function(e){throw new Error("Send request message failed for "+o+" in "+E()+"\n\n"+me(e))}))}))}))};function Jt(e){return Lt.toProxyWindow(e,{send:Qt})}function er(e){for(var t=0,r=lt("requestPromises").get(e,[]);t<r.length;t++)r[t].reject(new Error("Window "+(R(e)?"closed":"cleaned up")+" before response")).catch(fe)}function tr(e){if(!C(e))throw new Error("Can not get global for window on different domain");return e.__zoid_10_3_4__||(e.__zoid_10_3_4__={}),e.__zoid_10_3_4__}function rr(e,t){try{return t(tr(e))}catch(e){}}function nr(e){return{get:function(){var t=this;return h.try((function(){if(t.source&&t.source!==window)throw new Error("Can not call get on proxy object from a remote window");return e}))}}}function ar(e){return ie(JSON.stringify(e))}function ir(e){var t=tr(e);return t.references=t.references||{},t.references}function or(e){var t,r,n=e.data,a=e.metaData,i=e.sender,o=e.receiver,l=e.passByReference,s=void 0!==l&&l,c=e.basic,u=void 0!==c&&c,d=Jt(o.win),p=u?JSON.stringify(n):Bt(d,o.domain,n,{on:Xt,send:Qt}),f=s?(t=p,r=oe(),ir(window)[r]=t,{type:"uid",uid:r}):{type:"raw",val:p};return{serializedData:ar({sender:{domain:i.domain},metaData:a,reference:f}),cleanReference:function(){var e,t;e=window,"uid"===(t=f).type&&delete ir(e)[t.uid]}}}function lr(e){var t,r,n=e.sender,a=e.basic,i=void 0!==a&&a,o=function(e){return JSON.parse(function(e){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}(e))}(e.data),l=o.reference,s=o.metaData;t="function"==typeof n.win?n.win({metaData:s}):n.win,r="function"==typeof n.domain?n.domain({metaData:s}):"string"==typeof n.domain?n.domain:o.sender.domain;var c=function(e,t){if("raw"===t.type)return t.val;if("uid"===t.type)return ir(e)[t.uid];throw new Error("Unsupported ref type: "+t.type)}(t,l);return{data:i?JSON.parse(c):function(e,t,r){return jt(e,t,r,{on:Xt,send:Qt})}(t,r,c),metaData:s,sender:{win:t,domain:r},reference:l}}Zt={setupBridge:Nt,openBridge:function(e,t){var r=nt("bridges"),n=nt("bridgeFrames");return t=t||V(e),r.getOrSet(t,(function(){return h.try((function(){if(E()===t)throw new Error("Can not open bridge on the same domain as current domain: "+t);var r=Ct(t);if(L(window,r))throw new Error("Frame with name "+r+" already exists on page");var a=function(e,t){var r=document.createElement("iframe");return r.setAttribute("name",e),r.setAttribute("id",e),r.setAttribute("style","display: none; margin: 0; padding: 0; border: 0px none; overflow: hidden;"),r.setAttribute("frameborder","0"),r.setAttribute("border","0"),r.setAttribute("scrolling","no"),r.setAttribute("allowTransparency","true"),r.setAttribute("tabindex","-1"),r.setAttribute("hidden","true"),r.setAttribute("title",""),r.setAttribute("role","presentation"),r.src=t,r}(r,e);return n.set(t,a),At.then((function(t){t.appendChild(a);var r=a.contentWindow;return new h((function(e,t){a.addEventListener("load",e),a.addEventListener("error",t)})).then((function(){return pt(r,5e3,"Bridge "+e)})).then((function(){return r}))}))}))}))},linkWindow:Ft,linkUrl:function(e,t){Ft({win:e,domain:V(t)})},isBridge:$t,needsBridge:Et,needsBridgeForBrowser:kt,hasBridge:function(e,t){return nt("bridges").has(t||V(e))},needsBridgeForWin:_t,needsBridgeForDomain:St,destroyBridges:function(){for(var e=nt("bridges"),t=nt("bridgeFrames"),r=0,n=t.keys();r<n.length;r++){var a=t.get(n[r]);a&&a.parentNode&&a.parentNode.removeChild(a)}t.reset(),e.reset()}};var sr={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},cr={STRING:"string",OBJECT:"object",FUNCTION:"function",BOOLEAN:"boolean",NUMBER:"number",ARRAY:"array"},ur={JSON:"json",DOTIFY:"dotify",BASE64:"base64"},dr=g,pr={RENDER:"zoid-render",RENDERED:"zoid-rendered",PRERENDER:"zoid-prerender",PRERENDERED:"zoid-prerendered",DISPLAY:"zoid-display",ERROR:"zoid-error",CLOSE:"zoid-close",DESTROY:"zoid-destroy",PROPS:"zoid-props",RESIZE:"zoid-resize",FOCUS:"zoid-focus"};function fr(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function hr(e){if(!e)throw new Error("No window name");var t=e.split("__"),r=t[1],n=t[2],a=t[3];if("zoid"!==r)throw new Error("Window not rendered by zoid - got "+r);if(!n)throw new Error("Expected component name");if(!a)throw new Error("Expected serialized payload ref");return{name:n,serializedInitialPayload:a}}var mr=de((function(e){var t=lr({data:hr(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return Ee("opener",k(window));if("parent"===e.type&&"number"==typeof e.distance)return Ee("parent",function(e,t){return void 0===t&&(t=1),function(e,t){void 0===t&&(t=1);for(var r=e,n=0;n<t;n++){if(!r)return;r=x(r)}return r}(e,B(e)-t)}(window,e.distance));if("global"===e.type&&e.uid&&"string"==typeof e.uid){var t=e.uid,r=D(window);if(!r)throw new Error("Can not find ancestor window");for(var n=0,a=z(r);n<a.length;n++){var i=a[n];if(C(i)){var o=rr(i,(function(e){return e.windows&&e.windows[t]}));if(o)return o}}}else if("name"===e.type){var l=e.name;return Ee("namedWindow",function(e,t){return L(e,t)||function e(t,r){var n=L(t,r);if(n)return n;for(var a=0,i=T(t);a<i.length;a++){var o=e(i[a],r);if(o)return o}}(P(e)||e,t)}(Ee("ancestor",D(window)),l))}throw new Error("Unable to find "+e.type+" parent component window")}(e.metaData.windowRef)}}});return{parent:t.sender,payload:t.data,reference:t.reference}}));function gr(){return mr(window.name)}function yr(e,t){if(void 0===t&&(t=window),e===x(t))return{type:"parent",distance:B(e)};if(e===k(t))return{type:"opener"};if(C(e)&&(n=e)!==P(n)){var r=$(e).name;if(r)return{type:"name",name:r}}var n}function vr(e,t,r,n,a){if(!e.hasOwnProperty(r))return n;var i=e[r];return"function"==typeof i.childDecorate?i.childDecorate({value:n,uid:a.uid,tag:a.tag,close:a.close,focus:a.focus,onError:a.onError,onProps:a.onProps,resize:a.resize,getParent:a.getParent,getParentDomain:a.getParentDomain,show:a.show,hide:a.hide,export:a.export,getSiblings:a.getSiblings}):n}function br(){return h.try((function(){window.focus()}))}function wr(){return h.try((function(){window.close()}))}var xr=function(){return fe},kr=function(e){return he(e.value)};function _r(e,t,r){for(var n=0,a=Object.keys(i({},e,t));n<a.length;n++){var o=a[n];r(o,t[o],e[o])}}function Sr(e,t,r){var n={};return h.all(function(e,t){var a=[];return _r(e,t,(function(e,t,i){var o=function(e,t,a){return h.resolve().then((function(){var i,o;if(null!=a&&t){var l=(i={},i.get=t.queryParam,i.post=t.bodyParam,i)[r],s=(o={},o.get=t.queryValue,o.post=t.bodyValue,o)[r];if(l)return h.hash({finalParam:h.try((function(){return"function"==typeof l?l({value:a}):"string"==typeof l?l:e})),finalValue:h.try((function(){return"function"==typeof s&&xe(a)?s({value:a}):a}))}).then((function(r){var a,i=r.finalParam,o=r.finalValue;if("boolean"==typeof o)a=o.toString();else if("string"==typeof o)a=o.toString();else if("object"==typeof o&&null!==o){if(t.serialization===ur.JSON)a=JSON.stringify(o);else if(t.serialization===ur.BASE64)a=ie(JSON.stringify(o));else if(t.serialization===ur.DOTIFY||!t.serialization){a=function e(t,r,n){for(var a in void 0===r&&(r=""),void 0===n&&(n={}),r=r?r+".":r,t)t.hasOwnProperty(a)&&null!=t[a]&&"function"!=typeof t[a]&&(t[a]&&Array.isArray(t[a])&&t[a].length&&t[a].every((function(e){return"object"!=typeof e}))?n[""+r+a+"[]"]=t[a].join(","):t[a]&&"object"==typeof t[a]?n=e(t[a],""+r+a,n):n[""+r+a]=t[a].toString());return n}(o,e);for(var l=0,s=Object.keys(a);l<s.length;l++){var c=s[l];n[c]=a[c]}return}}else"number"==typeof o&&(a=o.toString());n[i]=a}))}}))}(e,t,i);a.push(o)})),a}(t,e)).then((function(){return n}))}function Er(e){var t,r,n,a,o,l,s,c,u=e.uid,d=e.options,p=e.overrides,f=void 0===p?{}:p,m=e.parentWin,g=void 0===m?window:m,y=d.propsDef,v=d.containerTemplate,b=d.prerenderTemplate,w=d.tag,x=d.name,k=d.attributes,_=d.dimensions,S=d.autoResize,A=d.url,T=d.domain,O=d.exports,P=new h,z=[],F=Se(),N={},I={},L={visible:!0},M=f.event?f.event:(t={},r={},n={on:function(e,t){var n=r[e]=r[e]||[];n.push(t);var a=!1;return{cancel:function(){a||(a=!0,n.splice(n.indexOf(t),1))}}},once:function(e,t){var r=n.on(e,(function(){r.cancel(),t()}));return r},trigger:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var i=r[e],o=[];if(i)for(var l=function(){var e=i[s];o.push(h.try((function(){return e.apply(void 0,n)})))},s=0;s<i.length;s++)l();return h.all(o).then(fe)},triggerOnce:function(e){if(t[e])return h.resolve();t[e]=!0;for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.trigger.apply(n,[e].concat(a))},reset:function(){r={}}}),H=f.props?f.props:{},q=!1,K=f.onError,X=f.getProxyContainer,Z=f.show,Q=f.hide,J=f.close,ee=f.renderContainer,te=f.getProxyWindow,re=f.setProxyWin,ne=f.openFrame,ae=f.openPrerenderFrame,ie=f.prerender,le=f.open,se=f.openPrerender,ce=f.watchForUnload,ue=f.getInternalState,pe=f.setInternalState,ve=function(){return"function"==typeof _?_({props:H}):_},ke=function(){return h.try((function(){return f.resolveInitPromise?f.resolveInitPromise():P.resolve()}))},_e=function(e){return h.try((function(){return f.rejectInitPromise?f.rejectInitPromise(e):P.reject(e)}))},Ee=function(e){for(var t={},r=0,n=Object.keys(H);r<n.length;r++){var a=n[r],i=y[a];if(!i||!1!==i.sendToChild){var o=i&&i.trustedDomains&&i.trustedDomains.length>0?i.trustedDomains.reduce((function(t,r){return t||W(r,e)}),!1):W(e,E(window));i&&i.sameDomain&&!o||i&&i.trustedDomains&&!o||(t[a]=H[a])}}return h.hash(t)},Ce=function(){return h.try((function(){return ue?ue():L}))},$e=function(e){return h.try((function(){return pe?pe(e):L=i({},L,e)}))},Ae=function(){return te?te():h.try((function(){var e=H.window;if(e){var t=Jt(e);return F.register((function(){return e.close()})),t}return new Lt({send:Qt})}))},Te=function(e){return re?re(e):h.try((function(){a=e}))},Oe=function(){return Z?Z():h.hash({setState:$e({visible:!0}),showElement:o?o.get().then(Be):null}).then(fe)},Pe=function(){return Q?Q():h.hash({setState:$e({visible:!1}),showElement:o?o.get().then(je):null}).then(fe)},Re=function(){return"function"==typeof A?A({props:H}):A},Le=function(){return"function"==typeof k?k({props:H}):k},Ge=function(){return V(Re())},Ke=function(e,t){var r=t.windowName;return ne?ne(e,{windowName:r}):h.try((function(){if(e===dr.IFRAME)return nr(De({attributes:i({name:r,title:x},Le().iframe)}))}))},Ye=function(e){return ae?ae(e):h.try((function(){if(e===dr.IFRAME)return nr(De({attributes:i({name:"__zoid_prerender_frame__"+x+"_"+oe()+"__",title:"prerender__"+x},Le().iframe)}))}))},Xe=function(e,t,r){return se?se(e,t,r):h.try((function(){if(e===dr.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return F.register((function(){return We(e)})),Me(e).then((function(e){return $(e)})).then((function(e){return Jt(e)}))}))}if(e===dr.POPUP)return t;throw new Error("No render context available for "+e)}))},Ze=function(){return h.try((function(){if(a)return h.all([M.trigger(pr.FOCUS),a.focus()]).then(fe)}))},Qe=function(e,t,r,n){if(t===E(window))return{type:"global",uid:(a=tr(window),a.windows=a.windows||{},a.windows[u]=window,F.register((function(){delete a.windows[u]})),u)};var a;if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(H.window){var i=n.getWindow();if(!i)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(D(i)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(r===dr.POPUP)return{type:"opener"};if(r===dr.IFRAME)return{type:"parent",distance:B(window)};throw new Error("Can not construct window reference for child")},Je=function(e,t){return h.try((function(){var r;s=e,l=t,null==(r=a)||r.isPopup().then((function(e){var r;""!==(null==t?void 0:t.name)&&e&&(null==(r=a)||r.setName(null==t?void 0:t.name))})).finally((function(){ke(),F.register((function(){return t.close.fireAndForget().catch(fe)}))}))}))},tt=function(e){var t=e.width,r=e.height;return h.try((function(){M.trigger(pr.RESIZE,{width:t,height:r})}))},rt=function(e){return h.try((function(){return M.trigger(pr.DESTROY)})).catch(fe).then((function(){return F.all(e)})).then((function(){var t=e||new Error(sr.COMPONENT_DESTROYED);c&&Ve(c)||Object.values(sr).includes(t.message)?P.resolve():P.asyncReject(t)}))},nt=de((function(e){return h.try((function(){if(J){if(R(J.__source__))return;return J()}return h.try((function(){return M.trigger(pr.CLOSE)})).then((function(){return rt(e||new Error(sr.COMPONENT_CLOSED))}))}))})),at=function(e,t){var r=t.proxyWin,n=t.proxyFrame,a=t.windowName;return le?le(e,{proxyWin:r,proxyFrame:n,windowName:a}):h.try((function(){if(e===dr.IFRAME){if(!n)throw new Error("Expected proxy frame to be passed");return n.get().then((function(e){return Me(e).then((function(t){return F.register((function(){return We(e)})),F.register((function(){return er(t)})),t}))}))}if(e===dr.POPUP){var t=ve(),r=t.width,o=void 0===r?"300px":r,l=t.height,s=void 0===l?"150px":l;o=et(o,window.outerWidth),s=et(s,window.outerWidth);var c=function(e,t){var r=(t=t||{}).closeOnUnload,n=void 0===r?1:r,a=t.name,o=void 0===a?"":a,l=t.width,s=t.height,c=0,u=0;l&&(window.outerWidth?u=Math.round((window.outerWidth-l)/2)+window.screenX:window.screen.width&&(u=Math.round((window.screen.width-l)/2))),s&&(window.outerHeight?c=Math.round((window.outerHeight-s)/2)+window.screenY:window.screen.height&&(c=Math.round((window.screen.height-s)/2))),delete t.closeOnUnload,delete t.name,l&&s&&(t=i({top:c,left:u,width:l,height:s,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},t));var d,p,f=Object.keys(t).map((function(e){if(null!=t[e])return e+"="+ge(t[e])})).filter(Boolean).join(",");try{d=window.open("",o,f)}catch(p){throw new Ie("Can not open popup window - "+(p.stack||p.message))}if(R(d))throw new Ie("Can not open popup window - blocked");return n&&window.addEventListener("unload",(function(){return d.close()})),d}(0,i({name:a,width:o,height:s},Le().popup));return F.register((function(){return Y(c)})),F.register((function(){return er(c)})),c}throw new Error("No render context available for "+e)})).then((function(e){return r.setWindow(e,{send:Qt}),r.setName(a).then((function(){return r}))}))},it=function(){return h.try((function(){var e=He(window,"unload",he((function(){rt(new Error(sr.NAVIGATED_AWAY))}))),t=U(g,rt,3e3);if(F.register(t.cancel),F.register(e.cancel),ce)return ce()}))},ot=function(e,t){var r=!1;return F.register((function(){r=!0})),h.delay(2e3).then((function(){return e.isClosed()})).then((function(n){if(!r){if(t===dr.POPUP&&n)return nt(new Error("Detected popup close"));var a=Boolean(c&&Ve(c));return t===dr.IFRAME&&n&&(a||q)?nt(new Error(sr.IFRAME_CLOSE)):ot(e,t)}}))},lt=function(e){var t=!1;return e.isClosed().then((function(r){return r?(t=!0,nt(new Error(sr.WINDOW_CLOSED))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return t=!0,nt(new Error(sr.WINDOW_CLOSED))}))})).then((function(){return t}))},st=function(e){return K?K(e):h.try((function(){if(-1===z.indexOf(e))return z.push(e),P.asyncReject(e),M.trigger(pr.ERROR,e)}))},ct=new h,ut=function(e){return h.try((function(){ct.resolve(e)}))};Je.onError=st;var dt=function(e,t){return e({uid:u,container:t.container,context:t.context,doc:t.doc,frame:t.frame,prerenderFrame:t.prerenderFrame,focus:Ze,close:nt,state:N,props:H,tag:w,dimensions:ve(),event:M})},pt=function(e,t){var r=t.context;return ie?ie(e,{context:r}):h.try((function(){if(b){M.trigger(pr.PRERENDER);var t=e.getWindow();if(t&&C(t)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(t)){var n=(t=$(t)).document,a=dt(b,{context:r,doc:n});if(a){if(a.ownerDocument!==n)throw new Error("Expected prerender template to have been created with document from child window");!function(e,t){var r=t.tagName.toLowerCase();if("html"!==r)throw new Error("Expected element to be html, got "+r);for(var n=e.document.documentElement,a=0,i=we(n.children);a<i.length;a++)n.removeChild(i[a]);for(var o=0,l=we(t.children);o<l.length;o++)n.appendChild(l[o])}(t,a);var i=S.width,o=void 0!==i&&i,l=S.height,s=void 0!==l&&l,c=S.element,u=void 0===c?"body":c;if((u=Fe(u,n))&&(o||s)){var d=Ue(u,(function(e){tt({width:o?e.width:void 0,height:s?e.height:void 0})}),{width:o,height:s,win:t});M.on(pr.RENDERED,d.cancel)}M.trigger(pr.PRERENDERED)}}}}))},ft=function(e,t){var r=t.proxyFrame,n=t.proxyPrerenderFrame,a=t.context,i=t.rerender;return ee?ee(e,{proxyFrame:r,proxyPrerenderFrame:n,context:a,rerender:i}):h.hash({container:e.get(),frame:r?r.get():null,prerenderFrame:n?n.get():null,internalState:Ce()}).then((function(e){var t=e.container,r=e.internalState.visible,n=dt(v,{context:a,container:t,frame:e.frame,prerenderFrame:e.prerenderFrame,doc:document});if(n){r||je(n),function(e,t){e.appendChild(t)}(t,n);var l=function(e,t){t=he(t);var r,n,a,i=!1,o=[],l=function(){i=!0;for(var e=0;e<o.length;e++)o[e].disconnect();r&&r.cancel(),a&&a.removeEventListener("unload",s),n&&We(n)},s=function(){i||(t(),l())};if(Ve(e))return s(),{cancel:l};if(window.MutationObserver)for(var c=e.parentElement;c;){var u=new window.MutationObserver((function(){Ve(e)&&s()}));u.observe(c,{childList:!0}),o.push(u),c=c.parentElement}return(n=document.createElement("iframe")).setAttribute("name","__detect_close_"+oe()+"__"),n.style.display="none",Me(n).then((function(e){(a=$(e)).addEventListener("unload",s)})),e.appendChild(n),r=be((function(){Ve(e)&&s()}),1e3),{cancel:l}}(n,(function(){var e=new Error("Detected container element removed from DOM");return h.delay(1).then((function(){if(!Ve(n))return F.all(e),i().then(ke,_e);nt(e)}))}));return F.register((function(){return l.cancel()})),F.register((function(){return We(n)})),o=nr(n)}}))},ht=function(){return{state:N,event:M,close:nt,focus:Ze,resize:tt,onError:st,updateProps:gt,show:Oe,hide:Pe}},mt=function(e){void 0===e&&(e={});var t=c,r=ht();ye(I,e),function(e,t,r,n,a){var i=n.state,o=n.close,l=n.focus,s=n.event,c=n.onError;_r(r,e,(function(e,n,u){var d=!1,p=u;Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return d?p:(d=!0,function(){if(!n)return p;var d=n.alias;if(d&&!xe(u)&&xe(r[d])&&(p=r[d]),n.value&&(p=n.value({props:t,state:i,close:o,focus:l,event:s,onError:c,container:a})),!n.default||xe(p)||xe(r[e])||(p=n.default({props:t,state:i,close:o,focus:l,event:s,onError:c,container:a})),xe(p)){if(n.type===cr.ARRAY?!Array.isArray(p):typeof p!==n.type)throw new TypeError("Prop is not of type "+n.type+": "+e)}else if(!1!==n.required&&!xe(r[e]))throw new Error('Expected prop "'+e+'" to be defined');return xe(p)&&n.decorate&&(p=n.decorate({value:p,props:t,state:i,close:o,focus:l,event:s,onError:c,container:a})),p}())}})})),_r(t,e,fe)}(y,H,I,r,t)},gt=function(e){return mt(e),P.then((function(){var e=l,t=a;if(e&&t&&s)return Ee(s).then((function(r){return e.updateProps(r).catch((function(e){return lt(t).then((function(t){if(!t)throw e}))}))}))}))},yt=function(e){return X?X(e):h.try((function(){return Ne(e)})).then((function(e){return qe(e)&&(e=function e(t){var r=function(e){var t=function(e){for(;e.parentNode;)e=e.parentNode;if(qe(e))return e}(e);if(t&&t.host)return t.host}(t);if(!r)throw new Error("Element is not in shadow dom");var n="shadow-slot-"+oe(),a=document.createElement("slot");a.setAttribute("name",n),t.appendChild(a);var i=document.createElement("div");return i.setAttribute("slot",n),r.appendChild(i),qe(r)?e(i):i}(e)),c=e,nr(e)}))};return{init:function(){M.on(pr.RENDER,(function(){return H.onRender()})),M.on(pr.PRERENDER,(function(){return H.onPrerender()})),M.on(pr.DISPLAY,(function(){return H.onDisplay()})),M.on(pr.RENDERED,(function(){return H.onRendered()})),M.on(pr.PRERENDERED,(function(){return H.onPrerendered()})),M.on(pr.CLOSE,(function(){return H.onClose()})),M.on(pr.DESTROY,(function(){return H.onDestroy()})),M.on(pr.RESIZE,(function(){return H.onResize()})),M.on(pr.FOCUS,(function(){return H.onFocus()})),M.on(pr.PROPS,(function(e){return H.onProps(e)})),M.on(pr.ERROR,(function(e){return H&&H.onError?H.onError(e):_e(e).then((function(){setTimeout((function(){throw e}),1)}))})),F.register(M.reset)},render:function(e){var t=e.target,r=e.container,n=e.context,i=e.rerender;return h.try((function(){var e=Ge(),o=T||Ge();!function(e,t,r){if(e!==window){if(!j(window,e))throw new Error("Can only renderTo an adjacent frame");var n=E();if(!W(t,n)&&!C(e))throw new Error("Can not render remotely to "+t.toString()+" - can only render to "+n);if(r&&"string"!=typeof r)throw new Error("Container passed to renderTo must be a string selector, got "+typeof r+" }")}}(t,o,r);var l=h.try((function(){if(t!==window)return function(e,t){for(var r={},n=0,a=Object.keys(H);n<a.length;n++){var i=a[n],o=y[i];o&&o.allowDelegate&&(r[i]=H[i])}var l=Qt(t,"zoid_delegate_"+x,{uid:u,overrides:{props:r,event:M,close:nt,onError:st,getInternalState:Ce,setInternalState:$e,resolveInitPromise:ke,rejectInitPromise:_e}}).then((function(e){var r=e.data.parent;return F.register((function(e){if(!R(t))return r.destroy(e)})),r.getDelegateOverrides()})).catch((function(e){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+me(e))}));return X=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.getProxyContainer.apply(e,t)}))},ee=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.renderContainer.apply(e,t)}))},Z=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.show.apply(e,t)}))},Q=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.hide.apply(e,t)}))},ce=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.watchForUnload.apply(e,t)}))},e===dr.IFRAME?(te=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.getProxyWindow.apply(e,t)}))},ne=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.openFrame.apply(e,t)}))},ae=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.openPrerenderFrame.apply(e,t)}))},ie=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.prerender.apply(e,t)}))},le=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.open.apply(e,t)}))},se=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.openPrerender.apply(e,t)}))}):e===dr.POPUP&&(re=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.then((function(e){return e.setProxyWin.apply(e,t)}))}),l}(n,t)})),s=H.window,c=it(),p=Sr(y,H,"post"),f=M.trigger(pr.RENDER),m=yt(r),g=Ae(),v=m.then((function(){return mt()})),b=v.then((function(){return Sr(y,H,"get").then((function(e){return function(e,t){var r,n,a=t.query||{},i=t.hash||{},o=e.split("#");n=o[1];var l=(r=o[0]).split("?");r=l[0];var s=ze(l[1],a),c=ze(n,i);return s&&(r=r+"?"+s),c&&(r=r+"#"+c),r}(G(Re()),{query:e})}))})),k=g.then((function(r){return function(e){var t=void 0===e?{}:e,r=t.proxyWin,n=t.initialChildDomain,a=t.childDomainMatch,i=t.target,o=void 0===i?window:i,l=t.context;return function(e){var t=void 0===e?{}:e,r=t.proxyWin,n=t.childDomainMatch,a=t.context;return Ee(t.initialChildDomain).then((function(e){return{uid:u,context:a,tag:w,childDomainMatch:n,version:"10_3_4",props:e,exports:(t=r,{init:function(e){return Je(this.origin,e)},close:nt,checkClose:function(){return lt(t)},resize:tt,onError:st,show:Oe,hide:Pe,export:ut})};var t}))}({proxyWin:r,initialChildDomain:n,childDomainMatch:a,context:l}).then((function(e){var t=or({data:e,metaData:{windowRef:Qe(o,n,l,r)},sender:{domain:E(window)},receiver:{win:r,domain:a},passByReference:n===E()}),i=t.serializedData;return F.register(t.cleanReference),i}))}({proxyWin:(a={proxyWin:r,initialChildDomain:e,childDomainMatch:o,target:t,context:n}).proxyWin,initialChildDomain:a.initialChildDomain,childDomainMatch:a.childDomainMatch,target:a.target,context:a.context}).then((function(e){return fr({name:x,serializedPayload:e})}));var a})),_=k.then((function(e){return Ke(n,{windowName:e})})),S=Ye(n),$=h.hash({proxyContainer:m,proxyFrame:_,proxyPrerenderFrame:S}).then((function(e){return ft(e.proxyContainer,{context:n,proxyFrame:e.proxyFrame,proxyPrerenderFrame:e.proxyPrerenderFrame,rerender:i})})).then((function(e){return e})),A=h.hash({windowName:k,proxyFrame:_,proxyWin:g}).then((function(e){var t=e.proxyWin;return s?t:at(n,{windowName:e.windowName,proxyWin:t,proxyFrame:e.proxyFrame})})),O=h.hash({proxyWin:A,proxyPrerenderFrame:S}).then((function(e){return Xe(n,e.proxyWin,e.proxyPrerenderFrame)})),z=A.then((function(e){return a=e,Te(e)})),N=h.hash({proxyPrerenderWin:O,state:z}).then((function(e){return pt(e.proxyPrerenderWin,{context:n})})),I=h.hash({proxyWin:A,windowName:k}).then((function(e){if(s)return e.proxyWin.setName(e.windowName)})),L=h.hash({body:p}).then((function(e){return d.method?d.method:Object.keys(e.body).length?"post":"get"})),D=h.hash({proxyWin:A,windowUrl:b,body:p,method:L,windowName:I,prerender:N}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),B=A.then((function(e){ot(e,n)})),U=h.hash({container:$,prerender:N}).then((function(){return M.trigger(pr.DISPLAY)})),K=A.then((function(t){return function(e,t,r){return h.try((function(){return e.awaitWindow()})).then((function(e){if(Zt&&Zt.needsBridge({win:e,domain:t})&&!Zt.hasBridge(t,t)){var n="function"==typeof d.bridgeUrl?d.bridgeUrl({props:H}):d.bridgeUrl;if(!n)throw new Error("Bridge needed to render "+r);var a=V(n);return Zt.linkUrl(e,t),Zt.openBridge(G(n),a)}}))}(t,e,n)})),Y=D.then((function(){return h.try((function(){var e=H.timeout;if(e)return P.timeout(e,new Error("Loading component timed out after "+e+" milliseconds"))}))})),J=P.then((function(){return q=!0,M.trigger(pr.RENDERED)}));return h.hash({initPromise:P,buildUrlPromise:b,onRenderPromise:f,getProxyContainerPromise:m,openFramePromise:_,openPrerenderFramePromise:S,renderContainerPromise:$,openPromise:A,openPrerenderPromise:O,setStatePromise:z,prerenderPromise:N,loadUrlPromise:D,buildWindowNamePromise:k,setWindowNamePromise:I,watchForClosePromise:B,onDisplayPromise:U,openBridgePromise:K,runTimeoutPromise:Y,onRenderedPromise:J,delegatePromise:l,watchForUnloadPromise:c,finalSetPropsPromise:v})})).catch((function(e){return h.all([st(e),rt(e)]).then((function(){throw e}),(function(){throw e}))})).then(fe)},destroy:rt,getProps:function(){return H},setProps:mt,export:ut,getHelpers:ht,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:yt,show:Oe,hide:Pe,renderContainer:ft,getProxyWindow:Ae,watchForUnload:it,openFrame:Ke,openPrerenderFrame:Ye,prerender:pt,open:at,openPrerender:Xe,setProxyWin:Te}}))},getExports:function(){return O({getExports:function(){return ct}})}}}function Cr(e){var t=e.uid,r=e.frame,n=e.prerenderFrame,a=e.doc,i=e.props,o=e.event,l=e.dimensions,s=l.width,c=l.height;if(r&&n){var u=a.createElement("div");u.setAttribute("id",t);var d=a.createElement("style");return i.cspNonce&&d.setAttribute("nonce",i.cspNonce),d.appendChild(a.createTextNode("\n #"+t+" {\n display: inline-block;\n position: relative;\n width: "+s+";\n height: "+c+";\n }\n\n #"+t+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+t+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+t+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),u.appendChild(r),u.appendChild(n),u.appendChild(d),n.classList.add("zoid-visible"),r.classList.add("zoid-invisible"),o.on(pr.RENDERED,(function(){n.classList.remove("zoid-visible"),n.classList.add("zoid-invisible"),r.classList.remove("zoid-invisible"),r.classList.add("zoid-visible"),setTimeout((function(){We(n)}),1)})),o.on(pr.RESIZE,(function(e){var t=e.width,r=e.height;"number"==typeof t&&(u.style.width=Je(t)),"number"==typeof r&&(u.style.height=Je(r))})),u}}function $r(e){var t=e.doc,r=e.props,n=t.createElement("html"),a=t.createElement("body"),i=t.createElement("style"),o=t.createElement("div");return o.classList.add("spinner"),r.cspNonce&&i.setAttribute("nonce",r.cspNonce),n.appendChild(a),a.appendChild(o),a.appendChild(i),i.appendChild(t.createTextNode("\n html, body {\n width: 100%;\n height: 100%;\n }\n\n .spinner {\n position: fixed;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n }\n\n @keyframes rotation {\n from {\n transform: translateX(-50%) translateY(-50%) rotate(0deg);\n }\n to {\n transform: translateX(-50%) translateY(-50%) rotate(359deg);\n }\n }\n ")),n}var Ar=Se(),Tr=Se();var Or=function(e){var t,r,n,a;tt().initialized||(tt().initialized=!0,r=(t={on:Xt,send:Qt}).on,n=t.send,(a=tt()).receiveMessage=a.receiveMessage||function(e){return Yt(e,{on:r,send:n})},function(e){var t=e.on,r=e.send;nt().getOrSet("postMessageListener",(function(){return He(window,"message",(function(e){!function(e,t){var r=t.on,n=t.send;h.try((function(){var t=e.source||e.sourceElement,a=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===a&&(a="file://"),t){if(!a)throw new Error("Post message did not have origin domain");Yt({source:t,origin:a,data:i},{on:r,send:n})}}))}(e,{on:t,send:r})}))}))}({on:Xt,send:Qt}),Nt({on:Xt,send:Qt,receiveMessage:Yt}),function(e){var t=e.on,r=e.send;nt("builtinListeners").getOrSet("helloListener",(function(){var e=t("postrobot_hello",{domain:"*"},(function(e){return ct(e.source,{domain:e.origin}),{instanceID:st()}})),n=D();return n&&ut(n,{send:r}).catch((function(e){})),e}))}({on:Xt,send:Qt}));var o=function(e){var t,r,n=function(e){var t=e.tag,r=e.url,n=e.domain,a=e.bridgeUrl,o=e.props,l=void 0===o?{}:o,s=e.getExtensions,c=void 0===s?function(){return{}}:s,u=e.dimensions,d=void 0===u?{}:u,p=e.autoResize,f=void 0===p?{}:p,h=e.allowedParentDomains,m=void 0===h?"*":h,g=e.attributes,y=void 0===g?{}:g,v=e.defaultContext,b=void 0===v?dr.IFRAME:v,w=e.containerTemplate,x=void 0===w?Cr:w,k=e.prerenderTemplate,_=void 0===k?$r:k,S=e.validate,E=e.eligible,$=void 0===E?function(){return{eligible:!0}}:E,A=e.logger,T=void 0===A?{info:fe}:A,O=e.exports,P=void 0===O?fe:O,z=e.method,F=e.children,N=void 0===F?function(){return{}}:F,I=t.replace(/-/g,"_"),L=i({},{window:{type:cr.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var t=e.value;if(!q(t)&&!Lt.isProxyWindow(t))throw new Error("Expected Window or ProxyWindow");if(q(t)){if(R(t))throw new Error("Window is closed");if(!C(t))throw new Error("Window is not same domain")}},decorate:function(e){return Jt(e.value)}},timeout:{type:cr.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:cr.STRING,required:!1},onDisplay:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr,decorate:kr},onRendered:{type:cr.FUNCTION,required:!1,sendToChild:!1,default:xr,decorate:kr},onRender:{type:cr.FUNCTION,required:!1,sendToChild:!1,default:xr,decorate:kr},onPrerendered:{type:cr.FUNCTION,required:!1,sendToChild:!1,default:xr,decorate:kr},onPrerender:{type:cr.FUNCTION,required:!1,sendToChild:!1,default:xr,decorate:kr},onClose:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr,decorate:kr},onDestroy:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr,decorate:kr},onResize:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr},onFocus:{type:cr.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:xr},close:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:cr.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:cr.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:cr.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},l);if(!x)throw new Error("Container template required");return{name:I,tag:t,url:r,domain:n,bridgeUrl:a,method:z,propsDef:L,dimensions:d,autoResize:f,allowedParentDomains:m,attributes:y,defaultContext:b,containerTemplate:x,prerenderTemplate:_,validate:S,logger:T,eligible:$,children:N,exports:"function"==typeof P?P:function(e){for(var t=e.getExports,r={},n=function(){var e=i[a],n=P[e].type,o=t().then((function(t){return t[e]}));r[e]=n===cr.FUNCTION?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.then((function(e){return e.apply(void 0,t)}))}:o},a=0,i=Object.keys(P);a<i.length;a++)n();return r},getExtensions:c}}(e),a=n.name,o=n.tag,l=n.defaultContext,s=n.eligible,c=n.children,u=n.getExtensions,d=tr(window),p=[],f=function(){if(function(e){try{return hr(window.name).name===e}catch(e){}return!1}(a)){var e=gr().payload;if(e.tag===o&&W(e.childDomainMatch,E()))return!0}return!1},m=de((function(){if(f()){if(window.xprops)throw delete d.components[o],new Error("Can not register "+a+" as child - child already registered");var e=function(e){var t,r=e.tag,n=e.propsDef,a=e.autoResize,i=e.allowedParentDomains,o=[],l=gr(),s=l.parent,c=l.payload,u=s.win,d=s.domain,p=new h,f=c.version,m=c.uid,g=c.exports,y=c.context,v=c.props;if(!function(e){if(!/_/.test(e)||!/_/.test("10_3_4"))throw new Error("Versions are in an invalid format ("+e+", 10_3_4)");return e.split("_")[0]==="10_3_4".split("_")[0]}(f))throw new Error("Parent window has zoid version "+f+", child window has version 10_3_4");var b=g.show,w=g.hide,x=g.close,k=g.onError,_=g.checkClose,S=g.export,A=g.resize,T=g.init,O=function(){return u},P=function(){return d},F=function(e){return o.push(e),{cancel:function(){o.splice(o.indexOf(e),1)}}},N=function(e){return A.fireAndForget({width:e.width,height:e.height})},R=function(e){return p.resolve(e),S(e)},I=function(e){var n=(void 0===e?{}:e).anyParent,a=[],i=t.parent;if(void 0===n&&(n=!i),!n&&!i)throw new Error("No parent found for "+r+" child");for(var o=0,l=z(window);o<l.length;o++){var s=l[o];if(C(s)){var c=$(s).xprops;if(c&&O()===c.getParent()){var u=c.parent;if(n||!i||u&&u.uid===i.uid){var d=rr(s,(function(e){return e.exports}));a.push({props:c,exports:d})}}}}return a},L=function(e,a,i){void 0===i&&(i=!1);var l=function(e,t,r,n,a,i){void 0===i&&(i=!1);for(var o={},l=0,s=Object.keys(r);l<s.length;l++){var c=s[l],u=t[c],d=u&&u.trustedDomains&&u.trustedDomains.length>0?u.trustedDomains.reduce((function(e,t){return e||W(t,E(window))}),!1):n===E(window)||C(e);if((!u||!u.sameDomain||d)&&(!u||!u.trustedDomains||d)){var p=vr(t,0,c,r[c],a);o[c]=p,u&&u.alias&&!o[u.alias]&&(o[u.alias]=p)}}if(!i)for(var f=0,h=Object.keys(t);f<h.length;f++){var m=h[f];r.hasOwnProperty(m)||(o[m]=vr(t,0,m,void 0,a))}return o}(u,n,e,a,{tag:r,show:b,hide:w,close:x,focus:br,onError:k,resize:N,getSiblings:I,onProps:F,getParent:O,getParentDomain:P,uid:m,export:R},i);t?ye(t,l):t=l;for(var s=0;s<o.length;s++)(0,o[s])(t)},M=function(e){return h.try((function(){return L(e,d,!0)}))};return{init:function(){return h.try((function(){var t="";return C(u)&&(t=function(e){var t=e.componentName,r=e.parentComponentWindow,n=lr({data:hr(window.name).serializedInitialPayload,sender:{win:r},basic:!0}),a=n.sender;if("uid"===n.reference.type||"global"===n.metaData.windowRef.type){var i=fr({name:t,serializedPayload:or({data:n.data,metaData:{windowRef:yr(r)},sender:{domain:a.domain},receiver:{win:window,domain:E()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:u})||""),tr(window).exports=e.exports({getExports:function(){return p}}),function(e,t){if(!W(e,t))throw new Error("Can not be rendered by domain: "+t)}(i,d),ft(u),window.addEventListener("beforeunload",(function(){_.fireAndForget()})),window.addEventListener("unload",(function(){_.fireAndForget()})),U(u,(function(){wr()})),T({name:t,updateProps:M,close:wr})})).then((function(){return(e=a.width,t=void 0!==e&&e,r=a.height,n=void 0!==r&&r,i=a.element,Ne(void 0===i?"body":i).catch(fe).then((function(e){return{width:t,height:n,element:e}}))).then((function(e){var t=e.width,r=e.height,n=e.element;n&&(t||r)&&y!==dr.POPUP&&Ue(n,(function(e){N({width:t?e.width:void 0,height:r?e.height:void 0})}),{width:t,height:r})}));var e,t,r,n,i})).catch((function(e){k(e)}))},getProps:function(){return t||(L(v,d),t)}}}(n);return e.init(),e}})),g=function(e){var t,r="zoid-"+o+"-"+oe(),d=e||{},f=s({props:d}),m=f.eligible,y=f.reason,v=d.onDestroy;d.onDestroy=function(){if(t&&m&&p.splice(p.indexOf(t),1),v)return v.apply(void 0,arguments)};var b=Er({uid:r,options:n});b.init(),m?b.setProps(d):d.onDestroy&&d.onDestroy(),Ar.register((function(e){return b.destroy(e||new Error("zoid destroyed all components"))}));var w=function(e){var t=(void 0===e?{}:e).decorate;return g((void 0===t?ve:t)(d))},x=function(e,r,n){return h.try((function(){if(!m){var t=new Error(y||a+" component is not eligible");return b.destroy(t).then((function(){throw t}))}if(!q(e))throw new Error("Must pass window to renderTo");return function(e,t){return h.try((function(){if(e.window)return Jt(e.window).getType();if(t){if(t!==dr.IFRAME&&t!==dr.POPUP)throw new Error("Unrecognized context: "+t);return t}return l}))}(d,n)})).then((function(a){if(r=function(e,t){if(t){if("string"!=typeof t&&!re(t))throw new TypeError("Expected string or element selector to be passed");return t}if(e===dr.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(a,r),e!==window&&"string"!=typeof r)throw new Error("Must pass string element when rendering to another window");return b.render({target:e,container:r,context:a,rerender:function(){var a=w();return ye(t,a),a.renderTo(e,r,n)}})})).catch((function(e){return b.destroy(e).then((function(){throw e}))}))};return t=i({},u(b),b.getExports(),b.getHelpers(),function(){for(var e=c(),t={},n=function(){var n=o[a],l=e[n];t[n]=function(e){var t=b.getProps(),n=i({},e,{parent:{uid:r,props:t,export:b.export}});return l(n)}},a=0,o=Object.keys(e);a<o.length;a++)n();return t}(),{isEligible:function(){return m},clone:w,render:function(e,t){return x(window,e,t)},renderTo:function(e,t,r){return x(e,t,r)}}),m&&p.push(t),t};if(m(),t=Xt("zoid_allow_delegate_"+a,(function(){return!0})),r=Xt("zoid_delegate_"+a,(function(e){var t=e.data;return{parent:Er({uid:t.uid,options:n,overrides:t.overrides,parentWin:e.source})}})),Tr.register(t.cancel),Tr.register(r.cancel),d.components=d.components||{},d.components[o])throw new Error("Can not register multiple components with the same tag: "+o);return d.components[o]=!0,{init:g,instances:p,driver:function(e,t){throw new Error("Driver support not enabled")},isChild:f,canRenderTo:function(e){return Qt(e,"zoid_allow_delegate_"+a).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:m}}(e),l=function(e){return o.init(e)};l.driver=function(e,t){return o.driver(e,t)},l.isChild=function(){return o.isChild()},l.canRenderTo=function(e){return o.canRenderTo(e)},l.instances=o.instances;var s=o.registerChild();return s&&(window.xprops=l.xprops=s.getProps()),l};function Pr(e){Zt&&Zt.destroyBridges();var t=Ar.all(e);return Ar=Se(),t}var zr=Pr;function Fr(e){var t;return zr(),delete window.__zoid_10_3_4__,function(){for(var e=nt("responseListeners"),t=0,r=e.keys();t<r.length;t++){var n=r[t],a=e.get(n);a&&(a.cancelled=!0),e.del(n)}}(),(t=nt().get("postMessageListener"))&&t.cancel(),delete window.__post_robot_11_0_0__,Tr.all(e)}}])},626:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.L=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(a,l,s):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(313)),i=r(436);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}a.setFileScope("src/themeContract.cjs.css.ts","@paypalcorp/pp-react-theme");t.L=(0,i.createThemeContract)({size:{icon:{xs:"",sm:"",md:"",lg:"",xl:""},circle:{xs:"",sm:"",md:"",lg:"",xl:""},tapTarget:{sm:"",default:"",lg:"",tiny:"",xs:""},pointerWidth:{sm:"",lg:""},indicator:{xs:"",sm:"",md:"",lg:""},field:{sm:"",lg:""},media:{xs:"",sm:"",md:"",lg:"",xl:"",xxl:""},pictogram:{sm:"",md:"",lg:""}},space:{0:"",25:"",50:"",75:"",100:"",150:"",200:"",250:"",300:"",350:"",400:"",450:"",500:"",600:"",700:"",800:"",900:"",1e3:"",1100:"",1200:"",tiny:"",xs:"",sm:"",md:"",lg:"",xl:"",jumbo:""},elevation:{blurCurve:"",blurSlope:"",blurBase:"",opacity:"",brightenFactor:"",verticalOffsetRatio:"",horizontalOffsetRatio:"",level1:{yoffset:"",opacity:"",blur:""},level2:{yoffset:"",opacity:"",blur:""},level3:{yoffset:"",opacity:"",blur:""}},motion:{timing:{x1:"",y1:"",x2:"",y2:""},duration:{hover:"",action:"",arrive:"",depart:"",repeat:"",linger:"",enter:{small:"",medium:"",large:""},exit:{small:"",medium:"",large:""},move:{small:"",medium:"",large:""},loop:{backForth:"",standard:""},pause:{read:"",reveal:""}},easing:{enter:{small:"",medium:"",large:""},exit:{small:"",medium:"",large:""},move:{small:"",medium:"",large:""},loop:{backForth:"",standard:""}}},border:{thickness:{normal:"",emphasis:"",focus:"",focusOutline:""},radius:{tiny:"",xs:"",sm:"",md:"",lg:"",xl:"",jumbo:"",interactive:""}},typography:{displayStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},displayMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},display:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},displaySmStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},displaySmMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},displaySm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingLgStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingLgMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingSmStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingSmMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},headingSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},titleStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},titleMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},title:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},bodyStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},bodyMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},body:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},captionStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},captionMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},caption:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},linkLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",underline:"",maxScaleFactor:""},linkSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",underline:"",maxScaleFactor:""},tagStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},tagMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},tag:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},dataVizStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},dataVizMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},dataViz:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},buttonLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},buttonSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldLabelLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldLabelSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldValueXl:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldValueLg:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},fieldValueSm:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},navigationBarStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},navigationBarMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},navigationBar:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},legalStrong:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},legalMedium:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""},legal:{family:"",size:"",weight:"",lineHeight:"",letterSpacing:"",maxScaleFactor:""}},blur:{interactive:""},color:{background:{main:"",alt:"",surface:"",surfaceHover:"",surfaceActive:"",highContrast:"",mediumContrast:""},primary:{main:"",mainHover:"",mainActive:"",contrast:"",contrastHover:"",contrastActive:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},secondary:{main:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""},mainHover:"",mainActive:"",contrast:""},tertiary:{main:"",mainHover:"",mainActive:"",contrast:"",contrastHover:"",contrastActive:""},featured:{main:"",mainHover:"",mainActive:"",contrast:""},promotion:{main:"",mainHover:"",mainActive:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""},light:{main:"",mainHover:"",mainActive:"",contrast:""},moderate:{main:"",mainHover:"",mainActive:"",contrast:""},soft:{main:"",mainHover:"",mainActive:"",contrast:""}},unselected:{main:"",mainHover:"",mainActive:"",contrast:""},selected:{main:"",mainHover:"",mainActive:"",alt:"",altHover:"",altActive:"",contrast:""},selectedRange:{main:"",mainHover:"",mainActive:"",contrast:""},link:{main:"",mainHover:"",mainActive:"",contrast:"",contrastHover:"",contrastActive:"",alt:"",altHover:"",altActive:""},overlay:{main:"",mainHover:"",mainActive:"",contrast:""},overlayInverse:{main:"",mainHover:"",mainActive:"",contrast:""},accent1:{main:"",contrast:""},accent2:{main:"",contrast:""},accent3:{main:"",contrast:""},accent4:{main:"",contrast:""},error:{main:"",mainHover:"",mainActive:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},warning:{main:"",mainHover:"",mainActive:"",alt:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},success:{main:"",mainHover:"",mainActive:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},system:{main:"",mainHover:"",mainActive:"",contrast:""},info:{main:"",mainHover:"",mainActive:"",contrast:""},specialty:{main:"",mainHover:"",mainActive:"",contrast:"",medium:{main:"",mainHover:"",mainActive:"",contrast:""}},dataViz:{empty:"",value1:"",value2:""},structure:{borderHighContrast:"",borderLowContrast:"",divider:"",focus:"",scrim:"",shimmer:"",shimmerInverse:"",sheen:"",shadow:"",focusOutline:"",errorOutline:""}}}),a.endFileScope()},699:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t._s=t.Tr=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(a,l,s):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(313)),i=r(436);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}a.setFileScope("src/cssVariables.cjs.css.ts","@paypalcorp/pp-react-utils"),t._s={main:(0,i.createVar)("contextColors_main"),background:(0,i.createVar)("contextColors_background"),hoverMain:(0,i.createVar)("contextColors_hoverMain"),hoverBack:(0,i.createVar)("contextColors_hoverBack"),activeMain:(0,i.createVar)("contextColors_activeMain"),activeBack:(0,i.createVar)("contextColors_activeBack")},t.Tr={caretSize:(0,i.createVar)("caretVariables_caretSize"),caretLeftOffset:(0,i.createVar)("caretVariables_caretLeftOffset"),caretRightOffset:(0,i.createVar)("caretVariables_caretRightOffset"),caretBottomOffset:(0,i.createVar)("caretVariables_caretBottomOffset"),caretTopOffset:(0,i.createVar)("caretVariables_caretTopOffset"),caretCenterOffset:(0,i.createVar)("caretVariables_caretCenterOffset"),caretSpaceShiftLeft:(0,i.createVar)("caretVariables_caretSpaceShiftLeft"),caretSpaceShiftRight:(0,i.createVar)("caretVariables_caretSpaceShiftRight")},a.endFileScope()},619:(e,t,r)=>{"use strict";r.d(t,{CN:()=>h,EC:()=>u,GX:()=>o,Ri:()=>f,VF:()=>d,bx:()=>p,i2:()=>s,rG:()=>c});var n=[{appendCss:()=>{},registerClassName:()=>{},onEndFileScope:()=>{},registerComposition:()=>{},markCompositionUsed:()=>{},getIdentOption:()=>"short"}],a=()=>{if(n.length<1)throw new Error("No adapter configured");return n[n.length-1]},i=!1,o=e=>{i||l(e)},l=e=>{if(!e)throw new Error('No adapter provided when calling "setAdapter"');i=!0,n.push(e)},s=function(){return a().appendCss(...arguments)},c=function(){return a().registerClassName(...arguments)},u=function(){return a().registerComposition(...arguments)},d=function(){return a().markCompositionUsed(...arguments)},p=function(){for(var e,t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return null===(e=(t=a()).onBeginFileScope)||void 0===e?void 0:e.call(t,...n)},f=function(){return a().onEndFileScope(...arguments)},h=function(){var e=a();return"getIdentOption"in e?e.getIdentOption(...arguments):"short"}},933:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:()=>n})},436:(e,t,r)=>{"use strict";r.r(t),r.d(t,{assertVarName:()=>rt,assignVars:()=>at,composeStyles:()=>ft,createContainer:()=>wt,createGlobalTheme:()=>ct,createGlobalThemeContract:()=>ot,createGlobalVar:()=>tt,createTheme:()=>ut,createThemeContract:()=>it,createVar:()=>et,createViewTransition:()=>xt,fallbackVar:()=>nt,fontFace:()=>mt,generateIdentifier:()=>Ye,globalFontFace:()=>gt,globalKeyframes:()=>vt,globalLayer:()=>Et,globalStyle:()=>ht,keyframes:()=>yt,layer:()=>St,style:()=>pt,styleVariants:()=>bt});var n,a,i={},o=r(867),l=r(937),s=r.n(l),c=class{constructor(e){const{failure:t,gotoFn:r,output:n}=this._buildTables(e);this.gotoFn=r,this.output=n,this.failure=t}_buildTables(e){const t={0:{}},r={};let n=0;for(const a of e){let e=0;for(const i of a)t[e]&&i in t[e]?e=t[e][i]:(n++,t[e][i]=n,t[n]={},e=n,r[n]=[]);r[e].push(a)}const a={},i=[];for(const e in t[0]){const r=t[0][e];a[r]=0,i.push(r)}for(;i.length>0;){const e=i.shift();if(void 0!==e)for(const n in t[e]){const o=t[e][n];i.push(o);let l=a[e];for(;l>0&&!(n in t[l]);)l=a[l];if(n in t[l]){const e=t[l][n];a[o]=e,r[o]=[...r[o],...r[e]]}else a[o]=0}}return{gotoFn:t,output:r,failure:a}}search(e){let t=0;const r=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t>0&&!(a in this.gotoFn[t]);)t=this.failure[t];if(a in this.gotoFn[t]&&(t=this.gotoFn[t][a],this.output[t].length>0)){const e=this.output[t];r.push([n,e])}}return r}match(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];for(;t>0&&!(n in this.gotoFn[t]);)t=this.failure[t];if(n in this.gotoFn[t]&&(t=this.gotoFn[t][n],this.output[t].length>0))return!0}return!1}},u=r(619),d=r(933);!function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"}(n||(n={})),function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"}(a||(a={}));const p=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,f=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,h=new Map([[126,a.Element],[94,a.Start],[36,a.End],[42,a.Any],[33,a.Not],[124,a.Hyphen]]),m=new Set(["has","not","matches","is","where","host","host-context"]),g=new Set(["contains","icontains"]);function y(e,t,r){const n=parseInt(t,16)-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function v(e){return e.replace(f,y)}function b(e){return 39===e||34===e}function w(e){return 32===e||9===e||10===e||12===e||13===e}function x(e){const t=[],r=k(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function k(e,t,r){let i=[];function o(e){const n=t.slice(r+e).match(p);if(!n)throw new Error(`Expected name, found ${t.slice(r)}`);const[a]=n;return r+=e+a.length,v(a)}function l(e){for(r+=e;r<t.length&&w(t.charCodeAt(r));)r++}function s(){const e=r+=1;let n=1;for(;n>0&&r<t.length;r++)40!==t.charCodeAt(r)||c(r)?41!==t.charCodeAt(r)||c(r)||n--:n++;if(n)throw new Error("Parenthesis not matched");return v(t.slice(e,r-1))}function c(e){let r=0;for(;92===t.charCodeAt(--e);)r++;return!(1&~r)}function u(){if(i.length>0&&function(e){switch(e.type){case n.Adjacent:case n.Child:case n.Descendant:case n.Parent:case n.Sibling:case n.ColumnCombinator:return!0;default:return!1}}(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function d(e){i.length>0&&i[i.length-1].type===n.Descendant?i[i.length-1].type=e:(u(),i.push({type:e}))}function f(e,t){i.push({type:n.Attribute,name:e,action:t,value:o(1),namespace:null,ignoreCase:"quirks"})}function y(){if(i.length&&i[i.length-1].type===n.Descendant&&i.pop(),0===i.length)throw new Error("Empty sub-selector");e.push(i)}if(l(0),t.length===r)return r;e:for(;r<t.length;){const e=t.charCodeAt(r);switch(e){case 32:case 9:case 10:case 12:case 13:0!==i.length&&i[0].type===n.Descendant||(u(),i.push({type:n.Descendant})),l(1);break;case 62:d(n.Child),l(1);break;case 60:d(n.Parent),l(1);break;case 126:d(n.Sibling),l(1);break;case 43:d(n.Adjacent),l(1);break;case 46:f("class",a.Element);break;case 35:f("id",a.Equals);break;case 91:{let e;l(1);let s=null;124===t.charCodeAt(r)?e=o(1):t.startsWith("*|",r)?(s="*",e=o(2)):(e=o(0),124===t.charCodeAt(r)&&61!==t.charCodeAt(r+1)&&(s=e,e=o(1))),l(0);let u=a.Exists;const d=h.get(t.charCodeAt(r));if(d){if(u=d,61!==t.charCodeAt(r+1))throw new Error("Expected `=`");l(2)}else 61===t.charCodeAt(r)&&(u=a.Equals,l(1));let p="",f=null;if("exists"!==u){if(b(t.charCodeAt(r))){const e=t.charCodeAt(r);let n=r+1;for(;n<t.length&&(t.charCodeAt(n)!==e||c(n));)n+=1;if(t.charCodeAt(n)!==e)throw new Error("Attribute value didn't end");p=v(t.slice(r+1,n)),r=n+1}else{const e=r;for(;r<t.length&&(!w(t.charCodeAt(r))&&93!==t.charCodeAt(r)||c(r));)r+=1;p=v(t.slice(e,r))}l(0);const e=32|t.charCodeAt(r);115===e?(f=!1,l(1)):105===e&&(f=!0,l(1))}if(93!==t.charCodeAt(r))throw new Error("Attribute selector didn't terminate");r+=1;const m={type:n.Attribute,name:e,action:u,value:p,namespace:s,ignoreCase:f};i.push(m);break}case 58:{if(58===t.charCodeAt(r+1)){i.push({type:n.PseudoElement,name:o(2).toLowerCase(),data:40===t.charCodeAt(r)?s():null});continue}const e=o(1).toLowerCase();let a=null;if(40===t.charCodeAt(r))if(m.has(e)){if(b(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${e} cannot be quoted`);if(a=[],r=k(a,t,r+1),41!==t.charCodeAt(r))throw new Error(`Missing closing parenthesis in :${e} (${t})`);r+=1}else{if(a=s(),g.has(e)){const e=a.charCodeAt(0);e===a.charCodeAt(a.length-1)&&b(e)&&(a=a.slice(1,-1))}a=v(a)}i.push({type:n.Pseudo,name:e,data:a});break}case 44:y(),i=[],l(1);break;default:{if(t.startsWith("/*",r)){const e=t.indexOf("*/",r+2);if(e<0)throw new Error("Comment was not terminated");r=e+2,0===i.length&&l(0);break}let a,s=null;if(42===e)r+=1,a="*";else if(124===e){if(a="",124===t.charCodeAt(r+1)){d(n.ColumnCombinator),l(2);break}}else{if(!p.test(t.slice(r)))break e;a=o(0)}124===t.charCodeAt(r)&&124!==t.charCodeAt(r+1)&&(s=a,42===t.charCodeAt(r+1)?(a="*",r+=2):a=o(1)),i.push("*"===a?{type:n.Universal,namespace:s}:{type:n.Tag,name:a,namespace:s})}}}return y(),r}var _=r(828),S=function(){return S=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},S.apply(this,arguments)};function E(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function C(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}var $,A=/(\u000D|\u000C|\u000D\u000A)/g,T=/[\u0000\uD800-\uDFFF]/g,O=/(\/\*)[\s\S]*?(\*\/)/g,P=function(e,t){if(e.length<=t+1)return null;for(var r=e.charCodeAt(t),n=[],a=t+1;a<e.length;a+=1){var i=e.charCodeAt(a);if(i===r)return[a,String.fromCharCode.apply(null,n)];if(92===i){var o=F(e,a);if(null===o)return null;var l=C(o,2),s=l[0],c=l[1];n.push(c),a=s}else{if(10===i)return null;n.push(i)}}return null},z=function(e,t){if(e.length<=t)return!1;var r,n=e.charCodeAt(t);return 45===n?!(e.length<=t+1)&&(45===(r=e.charCodeAt(t+1))||95===r||r>=65&&r<=90||r>=97&&r<=122||r>=128||92===r&&!(e.length<=t+2)&&10!==e.charCodeAt(t+2)):95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128||92===n&&!(e.length<=t+1)&&10!==(r=e.charCodeAt(t+1))},F=function(e,t){if(e.length<=t+1)return null;if(92!==e.charCodeAt(t))return null;var r=e.charCodeAt(t+1);if(10===r)return null;if(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102){for(var n=[r],a=Math.min(t+7,e.length),i=t+2;i<a;i+=1){var o=e.charCodeAt(i);if(!(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102))break;n.push(o)}if(i<e.length){var l=e.charCodeAt(i);9!==l&&32!==l&&10!==l||(i+=1)}return[i-1,parseInt(String.fromCharCode.apply(null,n),16)]}return[t+1,r]},N=function(e,t){var r=R(e,t);if(null===r)return null;var n=C(r,3),a=n[0],i=n[1],o=n[2],l=L(e,a+1);if(null!==l){var s=C(l,2);return[s[0],["<dimension-token>",i,s[1]]]}return a+1<e.length&&37===e.charCodeAt(a+1)?[a+1,["<percentage-token>",i]]:[a,["<number-token>",i,o]]},R=function(e,t){if(e.length<=t)return null;var r="integer",n=[],a=e.charCodeAt(t);for(43!==a&&45!==a||(t+=1,45===a&&n.push(45));t<e.length&&((c=e.charCodeAt(t))>=48&&c<=57);)n.push(c),t+=1;if(t+1<e.length){var i=e.charCodeAt(t),o=e.charCodeAt(t+1);if(46===i&&o>=48&&o<=57)for(n.push(i,o),r="number",t+=2;t<e.length&&((c=e.charCodeAt(t))>=48&&c<=57);)n.push(c),t+=1}if(t+1<e.length){i=e.charCodeAt(t),o=e.charCodeAt(t+1);var l=e.charCodeAt(t+2);if(69===i||101===i){var s=o>=48&&o<=57;if(s||(43===o||45===o)&&l>=48&&l<=57)for(r="number",s?(n.push(69,o),t+=2):45===o?(n.push(69,45,l),t+=3):(n.push(69,l),t+=3);t<e.length;){var c;if(!((c=e.charCodeAt(t))>=48&&c<=57))break;n.push(c),t+=1}}}var u=String.fromCharCode.apply(null,n),d="number"===r?parseFloat(u):parseInt(u);return-0===d&&(d=0),Number.isNaN(d)?null:[t-1,d,r]},I=function(e,t){if(e.length<=t)return null;for(var r=[],n=e.charCodeAt(t);t<e.length;n=e.charCodeAt(++t))if(45===n||95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128||n>=48&&n<=57)r.push(n);else{var a=F(e,t);if(null===a)break;var i=C(a,2),o=i[0],l=i[1];r.push(l),t=o}return 0===t?null:[t-1,String.fromCharCode.apply(null,r)]},L=function(e,t){if(e.length<=t||!z(e,t))return null;for(var r=[],n=e.charCodeAt(t);t<e.length;n=e.charCodeAt(++t))if(45===n||95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128||n>=48&&n<=57)r.push(n);else{var a=F(e,t);if(null===a)break;var i=C(a,2),o=i[0],l=i[1];r.push(l),t=o}return[t-1,String.fromCharCode.apply(null,r)]},M=function(e,t){for(var r=e.charCodeAt(t);9===r||32===r||10===r;)r=e.charCodeAt(++t);for(var n=[],a=!1;t<e.length;){if(41===r)return[t,String.fromCharCode.apply(null,n)];if(34===r||39===r||40===r)return null;if(9===r||32===r||10===r)a||0===n.length||(a=!0);else if(92===r){var i=F(e,t);if(null===i||a)return null;var o=C(i,2),l=o[0],s=o[1];n.push(s),t=l}else{if(a)return null;n.push(r)}r=e.charCodeAt(++t)}return null},D=function(e,t){var r=L(e,t);if(null===r)return null;var n=C(r,2),a=n[0],i=n[1];if("url"===i.toLowerCase()){if(e.length>a+1&&40===e.charCodeAt(a+1)){for(var o=2;a+o<e.length;o+=1){var l=e.charCodeAt(a+o);if(34===l||39===l)return[a+1,i.toLowerCase(),"<function-token>"];if(9!==l&&32!==l&&10!==l){var s=M(e,a+o);if(null===s)return null;var c=C(s,2);return[c[0],c[1],"<url-token>"]}}return[a+1,i.toLowerCase(),"<function-token>"]}}else if(e.length>a+1&&40===e.charCodeAt(a+1))return[a+1,i.toLowerCase(),"<function-token>"];return[a,i.toLowerCase(),"<ident-token>"]},H=function(e){if(null===e.mediaCondition)return e;var t=B(e.mediaCondition);return null===t.operator&&1===t.children.length&&"children"in t.children[0]&&(t=t.children[0]),{mediaPrefix:e.mediaPrefix,mediaType:e.mediaType,mediaCondition:t}},B=function e(t){for(var r=t.children.length-1;r>=0;r--){var n=t.children[r];if(!("context"in n)){var a=e(n);if(null===a.operator&&1===a.children.length)t.children[r]=a.children[0];else if(a.operator===t.operator&&("and"===a.operator||"or"===a.operator)){for(var i=[r,1],o=0;o<a.children.length;o++)i.push(a.children[o]);t.children.splice.apply(t.children,i)}}}return t},j=function(e,t){return t instanceof Error?new Error("".concat(t.message.trim(),"\n").concat(e.trim())):new Error(e.trim())},W=function(e){var t=function(e,t){void 0===t&&(t=0),e=(e=e.replace(A,"\n").replace(T,"�")).replace(O,"");for(var r=[];t<e.length;t+=1){var n=e.charCodeAt(t);if(9===n||32===n||10===n){for(var a=e.charCodeAt(++t);9===a||32===a||10===a;)a=e.charCodeAt(++t);t-=1,r.push({type:"<whitespace-token>"})}else if(34===n){if(null===(E=P(e,t)))return null;var i=C(E,2),o=i[0],l=i[1];r.push({type:"<string-token>",value:l}),t=o}else if(35===n){if(t+1<e.length&&(95===(h=e.charCodeAt(t+1))||h>=65&&h<=90||h>=97&&h<=122||h>=128||h>=48&&h<=57||92===h&&t+2<e.length&&10!==e.charCodeAt(t+2))){var s=z(e,t+1)?"id":"unrestricted";if(null!==(E=I(e,t+1))){var c=C(E,2);o=c[0],l=c[1],r.push({type:"<hash-token>",value:l.toLowerCase(),flag:s}),t=o;continue}}r.push({type:"<delim-token>",value:n})}else if(39===n){if(null===(E=P(e,t)))return null;var u=C(E,2);o=u[0],l=u[1],r.push({type:"<string-token>",value:l}),t=o}else if(40===n)r.push({type:"<(-token>"});else if(41===n)r.push({type:"<)-token>"});else if(43===n){var d=N(e,t);if(null===d)r.push({type:"<delim-token>",value:n});else{var p=C(d,2);o=p[0],"<dimension-token>"===(_=p[1])[0]?r.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?r.push({type:_[0],value:_[1],flag:_[2]}):r.push({type:_[0],value:_[1],flag:"number"}),t=o}}else if(44===n)r.push({type:"<comma-token>"});else if(45===n){if(null!==(v=N(e,t))){var f=C(v,2);o=f[0],"<dimension-token>"===(_=f[1])[0]?r.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?r.push({type:_[0],value:_[1],flag:_[2]}):r.push({type:_[0],value:_[1],flag:"number"}),t=o;continue}if(t+2<e.length){var h=e.charCodeAt(t+1),m=e.charCodeAt(t+2);if(45===h&&62===m){r.push({type:"<CDC-token>"}),t+=2;continue}}if(null!==(E=D(e,t))){var g=C(E,3),y=(o=g[0],l=g[1],g[2]);r.push({type:y,value:l}),t=o;continue}r.push({type:"<delim-token>",value:n})}else if(46===n){var v;if(null!==(v=N(e,t))){var b=C(v,2);o=b[0],"<dimension-token>"===(_=b[1])[0]?r.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?r.push({type:_[0],value:_[1],flag:_[2]}):r.push({type:_[0],value:_[1],flag:"number"}),t=o;continue}r.push({type:"<delim-token>",value:n})}else if(58===n)r.push({type:"<colon-token>"});else if(59===n)r.push({type:"<semicolon-token>"});else if(60===n){if(t+3<e.length){h=e.charCodeAt(t+1),m=e.charCodeAt(t+2);var w=e.charCodeAt(t+3);if(33===h&&45===m&&45===w){r.push({type:"<CDO-token>"}),t+=3;continue}}r.push({type:"<delim-token>",value:n})}else if(64===n){if(null!==(E=L(e,t+1))){var x=C(E,2);o=x[0],l=x[1],r.push({type:"<at-keyword-token>",value:l.toLowerCase()}),t=o;continue}r.push({type:"<delim-token>",value:n})}else if(91===n)r.push({type:"<[-token>"});else if(92===n){if(null===(E=F(e,t)))return null;var k=C(E,2);o=k[0],l=k[1],e=e.slice(0,t)+l+e.slice(o+1),t-=1}else if(93===n)r.push({type:"<]-token>"});else if(123===n)r.push({type:"<{-token>"});else if(125===n)r.push({type:"<}-token>"});else if(n>=48&&n<=57){var _,S=C(E=N(e,t),2);o=S[0],"<dimension-token>"===(_=S[1])[0]?r.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?r.push({type:_[0],value:_[1],flag:_[2]}):r.push({type:_[0],value:_[1],flag:"number"}),t=o}else if(95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128){var E;if(null===(E=D(e,t)))return null;var $=C(E,3);o=$[0],l=$[1],y=$[2],r.push({type:y,value:l}),t=o}else r.push({type:"<delim-token>",value:n})}return r.push({type:"<EOF-token>"}),r}(e.trim());if(null===t)throw j("Failed tokenizing");var r=0,n=t.length-1;if("<at-keyword-token>"===t[0].type&&"media"===t[0].value){if("<whitespace-token>"!==t[1].type)throw j("Expected whitespace after media");r=2;for(var a=2;a<t.length-1;a++){var i=t[a];if("<{-token>"===i.type){n=a;break}if("<semicolon-token>"===i.type)throw j("Expected '{' in media query but found ';'")}}return t=t.slice(r,n),U(t)},V=function(e){for(var t=[],r=!1,n=0;n<e.length;n++)"<whitespace-token>"===e[n].type?(r=!0,t.length>0&&(t[t.length-1].wsAfter=!0)):(t.push(S(S({},e[n]),{wsBefore:r,wsAfter:!1})),r=!1);return t},U=function(e){for(var t,r,n=[[]],a=0;a<e.length;a++){var i=e[a];"<comma-token>"===i.type?n.push([]):n[n.length-1].push(i)}var o=n.map(V);if(1===o.length&&0===o[0].length)return[{mediaCondition:null,mediaPrefix:null,mediaType:"all"}];var l=o.map((function(e){return 0===e.length?null:q(e)})),s=[];try{for(var c=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l),u=c.next();!u.done;u=c.next()){var d=u.value;null!==d&&s.push(d)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}if(0===s.length)throw j("No valid media queries");return s},q=function(e){var t=e[0];if("<(-token>"===t.type)try{return{mediaPrefix:null,mediaType:"all",mediaCondition:G(e,!0)}}catch(e){throw j("Expected media condition after '('",e)}else{if("<ident-token>"!==t.type)throw j("Expected media condition or media prefix");var r=null,n=void 0,a=t.value;"only"!==a&&"not"!==a||(r=a);var i=null===r?0:1;if(e.length<=i)throw j("Expected extra token in media query");var o=e[i];if("<ident-token>"===o.type){var l=o.value;if("all"===l)n="all";else if("print"===l||"screen"===l)n=l;else{if("tty"!==l&&"tv"!==l&&"projection"!==l&&"handheld"!==l&&"braille"!==l&&"embossed"!==l&&"aural"!==l&&"speech"!==l)throw j("Unknown ident '".concat(l,"' in media query"));r="not"===r?null:"not",n="all"}}else{if("not"!==r||"<(-token>"!==o.type)throw j("Invalid media query");var s=[{type:"<(-token>",wsBefore:!1,wsAfter:!1}];s.push.apply(s,e),s.push({type:"<)-token>",wsBefore:!1,wsAfter:!1});try{return{mediaPrefix:null,mediaType:"all",mediaCondition:G(s,!0)}}catch(e){throw j("Expected media condition after '('",e)}}if(i+1===e.length)return{mediaPrefix:r,mediaType:n,mediaCondition:null};if(!(i+4<e.length))throw j("Expected media condition after media prefix");var c=e[i+1];if("<ident-token>"!==c.type||"and"!==c.value)throw j("Expected 'and' after media prefix");try{return{mediaPrefix:r,mediaType:n,mediaCondition:G(e.slice(i+2),!1)}}catch(e){throw j("Expected media condition after 'and'",e)}}},G=function e(t,r,n){if(void 0===n&&(n=null),t.length<3||"<(-token>"!==t[0].type||"<)-token>"!==t[t.length-1].type)throw new Error("Invalid media condition");for(var a,i=t.length-1,o=0,l=0,s=0;s<t.length;s++){var c=t[s];if("<(-token>"===c.type?(l+=1,o=Math.max(o,l)):"<)-token>"===c.type&&(l-=1),0===l){i=s;break}}if(0!==l)throw new Error("Mismatched parens\nInvalid media condition");var u=t.slice(0,i+1);if(a=1===o?K(u):"<ident-token>"===u[1].type&&"not"===u[1].value?e(u.slice(2,-1),!0,"not"):e(u.slice(1,-1),!0),i===t.length-1)return{operator:n,children:[a]};var d=t[i+1];if("<ident-token>"!==d.type)throw new Error("Invalid operator\nInvalid media condition");if(null!==n&&n!==d.value)throw new Error("'".concat(d.value,"' and '").concat(n,"' must not be at same level\nInvalid media condition"));if("or"===d.value&&!r)throw new Error("Cannot use 'or' at top level of a media query\nInvalid media condition");if("and"!==d.value&&"or"!==d.value)throw new Error("Invalid operator: '".concat(d.value,"'\nInvalid media condition"));var p=e(t.slice(i+2),r,d.value);return{operator:d.value,children:[a].concat(p.children)}},K=function(e){if(e.length<3||"<(-token>"!==e[0].type||"<)-token>"!==e[e.length-1].type)throw new Error("Invalid media feature");for(var t=[e[0]],r=1;r<e.length;r++){if(r<e.length-2){var n=e[r],a=e[r+1],i=e[r+2];if("<number-token>"===n.type&&n.value>0&&"<delim-token>"===a.type&&47===a.value&&"<number-token>"===i.type&&i.value>0){t.push({type:"<ratio-token>",numerator:n.value,denominator:i.value,wsBefore:n.wsBefore,wsAfter:i.wsAfter}),r+=2;continue}}t.push(e[r])}var o=t[1];if("<ident-token>"===o.type&&3===t.length)return{context:"boolean",feature:o.value};if(5===t.length&&"<ident-token>"===t[1].type&&"<colon-token>"===t[2].type){var l=t[3];if("<number-token>"===l.type||"<dimension-token>"===l.type||"<ratio-token>"===l.type||"<ident-token>"===l.type){var s=t[1].value,c=null,u=s.slice(0,4);return"min-"===u?(c="min",s=s.slice(4)):"max-"===u&&(c="max",s=s.slice(4)),l.wsBefore,l.wsAfter,{context:"value",prefix:c,feature:s,value:E(l,["wsBefore","wsAfter"])}}}else if(t.length>=5)try{var d=Y(t);return{context:"range",feature:d.featureName,range:d}}catch(e){throw j("Invalid media feature",e)}throw new Error("Invalid media feature")},Y=function(e){var t,r,n,a;if(e.length<5||"<(-token>"!==e[0].type||"<)-token>"!==e[e.length-1].type)throw new Error("Invalid range");var i={leftToken:null,leftOp:null,featureName:"",rightOp:null,rightToken:null},o="<number-token>"===e[1].type||"<dimension-token>"===e[1].type||"<ratio-token>"===e[1].type||"<ident-token>"===e[1].type&&"infinite"===e[1].value;if("<delim-token>"===e[2].type){if(60===e[2].value)"<delim-token>"!==e[3].type||61!==e[3].value||e[3].wsBefore?i[o?"leftOp":"rightOp"]="<":i[o?"leftOp":"rightOp"]="<=";else if(62===e[2].value)"<delim-token>"!==e[3].type||61!==e[3].value||e[3].wsBefore?i[o?"leftOp":"rightOp"]=">":i[o?"leftOp":"rightOp"]=">=";else{if(61!==e[2].value)throw new Error("Invalid range");i[o?"leftOp":"rightOp"]="="}if(o)i.leftToken=e[1];else{if("<ident-token>"!==e[1].type)throw new Error("Invalid range");i.featureName=e[1].value}var l=2+(null!==(r=null===(t=i[o?"leftOp":"rightOp"])||void 0===t?void 0:t.length)&&void 0!==r?r:0),s=e[l];if(o){if("<ident-token>"!==s.type)throw new Error("Invalid range");if(i.featureName=s.value,e.length>=7){var c=e[l+1],u=e[l+2];if("<delim-token>"!==c.type)throw new Error("Invalid range");var d=c.value;if(60===d)"<delim-token>"!==u.type||61!==u.value||u.wsBefore?i.rightOp="<":i.rightOp="<=";else{if(62!==d)throw new Error("Invalid range");"<delim-token>"!==u.type||61!==u.value||u.wsBefore?i.rightOp=">":i.rightOp=">="}var p=e[l+1+(null!==(a=null===(n=i.rightOp)||void 0===n?void 0:n.length)&&void 0!==a?a:0)];i.rightToken=p}else if(l+2!==e.length)throw new Error("Invalid range")}else i.rightToken=s;var f=null,h=i.leftToken,m=i.leftOp,g=i.featureName,y=i.rightOp,v=i.rightToken,b=null;if(null!==h)if("<ident-token>"===h.type){var w=h.type;"infinite"===(k=h.value)&&(b={type:w,value:k})}else"<number-token>"!==h.type&&"<dimension-token>"!==h.type&&"<ratio-token>"!==h.type||(h.wsBefore,h.wsAfter,b=E(h,["wsBefore","wsAfter"]));var x=null;if(null!==v)if("<ident-token>"===v.type){var k;w=v.type,"infinite"===(k=v.value)&&(x={type:w,value:k})}else"<number-token>"!==v.type&&"<dimension-token>"!==v.type&&"<ratio-token>"!==v.type||(v.wsBefore,v.wsAfter,x=E(v,["wsBefore","wsAfter"]));if(null!==b&&null!==x)if("<"!==m&&"<="!==m||"<"!==y&&"<="!==y){if(">"!==m&&">="!==m||">"!==y&&">="!==y)throw new Error("Invalid range");f={leftToken:b,leftOp:m,featureName:g,rightOp:y,rightToken:x}}else f={leftToken:b,leftOp:m,featureName:g,rightOp:y,rightToken:x};else(null===b&&null===m&&null!==y&&null!==x||null!==b&&null!==m&&null===y&&null===x)&&(f={leftToken:b,leftOp:m,featureName:g,rightOp:y,rightToken:x});return f}throw new Error("Invalid range")};function X(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){var n,a,i;n=e,a=t,i=r[t],(a=X(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ee(e,t){for(var r in e)t(e[r],r)}function te(e,t){var r={};for(var n in e)-1===t.indexOf(n)&&(r[n]=e[n]);return r}function re(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var a of r)0!==a.length&&("string"==typeof a?a.includes(" ")?re(e,...a.trim().split(" ")):e.add(a):Array.isArray(a)&&re(e,...a))}function ne(e){var t=new Set;return re(t,...e),Array.from(t).join(" ")}class ae{constructor(){this.ruleset=new Map,this.precedenceLookup=new Map}findOrCreateCondition(e){var t=this.ruleset.get(e);return t||(t={query:e,rules:[],children:new ae},this.ruleset.set(e,t)),t}getConditionalRulesetByPath(e){var t=this;for(var r of e){var n=t.findOrCreateCondition(r);t=n.children}return t}addRule(e,t,r){var n=this.getConditionalRulesetByPath(r).findOrCreateCondition(t);if(!n)throw new Error("Failed to add conditional rule");n.rules.push(e)}addConditionPrecedence(e,t){for(var r=this.getConditionalRulesetByPath(e),n=0;n<t.length;n++){var a,i=t[n],o=null!==(a=r.precedenceLookup.get(i))&&void 0!==a?a:new Set;for(var l of t.slice(n+1))o.add(l);r.precedenceLookup.set(i,o)}}isCompatible(e){for(var[t,r]of this.precedenceLookup.entries())for(var n of r){var a;if(null!==(a=e.precedenceLookup.get(n))&&void 0!==a&&a.has(t))return!1}for(var{query:i,children:o}of e.ruleset.values()){var l=this.ruleset.get(i);if(l&&!l.children.isCompatible(o))return!1}return!0}merge(e){for(var{query:t,rules:r,children:n}of e.ruleset.values()){var a=this.ruleset.get(t);a?(a.rules.push(...r),a.children.merge(n)):this.ruleset.set(t,{query:t,rules:r,children:n})}for(var[i,o]of e.precedenceLookup.entries()){var l,s=null!==(l=this.precedenceLookup.get(i))&&void 0!==l?l:new Set;this.precedenceLookup.set(i,new Set([...s,...o]))}}mergeIfCompatible(e){return!!this.isCompatible(e)&&(this.merge(e),!0)}getSortedRuleset(){var e=this,t=[],r=function(r){var a=e.ruleset.get(n);if(!a)throw new Error("Can't find condition for ".concat(n));var i=t.findIndex((e=>r.has(e.query)));i>-1?t.splice(i,0,a):t.push(a)};for(var[n,a]of this.precedenceLookup.entries())r(a);return t}renderToArray(){var e=[];for(var{query:t,rules:r,children:n}of this.getSortedRuleset()){var a={};for(var i of r)a[i.selector]=Q(Q({},a[i.selector]),i.rule);Object.assign(a,...n.renderToArray()),e.push({[t]:a})}return e}}var ie,oe={":-moz-any-link":!0,":-moz-full-screen":!0,":-moz-placeholder":!0,":-moz-read-only":!0,":-moz-read-write":!0,":-ms-fullscreen":!0,":-ms-input-placeholder":!0,":-webkit-any-link":!0,":-webkit-full-screen":!0,"::-moz-color-swatch":!0,"::-moz-list-bullet":!0,"::-moz-list-number":!0,"::-moz-page-sequence":!0,"::-moz-page":!0,"::-moz-placeholder":!0,"::-moz-progress-bar":!0,"::-moz-range-progress":!0,"::-moz-range-thumb":!0,"::-moz-range-track":!0,"::-moz-scrolled-page-sequence":!0,"::-moz-selection":!0,"::-ms-backdrop":!0,"::-ms-browse":!0,"::-ms-check":!0,"::-ms-clear":!0,"::-ms-fill-lower":!0,"::-ms-fill-upper":!0,"::-ms-fill":!0,"::-ms-reveal":!0,"::-ms-thumb":!0,"::-ms-ticks-after":!0,"::-ms-ticks-before":!0,"::-ms-tooltip":!0,"::-ms-track":!0,"::-ms-value":!0,"::-webkit-backdrop":!0,"::-webkit-calendar-picker-indicator":!0,"::-webkit-inner-spin-button":!0,"::-webkit-input-placeholder":!0,"::-webkit-meter-bar":!0,"::-webkit-meter-even-less-good-value":!0,"::-webkit-meter-inner-element":!0,"::-webkit-meter-optimum-value":!0,"::-webkit-meter-suboptimum-value":!0,"::-webkit-outer-spin-button":!0,"::-webkit-progress-bar":!0,"::-webkit-progress-inner-element":!0,"::-webkit-progress-inner-value":!0,"::-webkit-progress-value":!0,"::-webkit-resizer":!0,"::-webkit-scrollbar-button":!0,"::-webkit-scrollbar-corner":!0,"::-webkit-scrollbar-thumb":!0,"::-webkit-scrollbar-track-piece":!0,"::-webkit-scrollbar-track":!0,"::-webkit-scrollbar":!0,"::-webkit-search-cancel-button":!0,"::-webkit-search-results-button":!0,"::-webkit-slider-runnable-track":!0,"::-webkit-slider-thumb":!0,"::after":!0,"::backdrop":!0,"::before":!0,"::cue":!0,"::file-selector-button":!0,"::first-letter":!0,"::first-line":!0,"::grammar-error":!0,"::marker":!0,"::placeholder":!0,"::selection":!0,"::spelling-error":!0,"::target-text":!0,"::view-transition-group":!0,"::view-transition-image-pair":!0,"::view-transition-new":!0,"::view-transition-old":!0,"::view-transition":!0,":active":!0,":after":!0,":any-link":!0,":before":!0,":blank":!0,":checked":!0,":default":!0,":defined":!0,":disabled":!0,":empty":!0,":enabled":!0,":first-child":!0,":first-letter":!0,":first-line":!0,":first-of-type":!0,":first":!0,":focus-visible":!0,":focus-within":!0,":focus":!0,":fullscreen":!0,":hover":!0,":in-range":!0,":indeterminate":!0,":invalid":!0,":last-child":!0,":last-of-type":!0,":left":!0,":link":!0,":only-child":!0,":only-of-type":!0,":optional":!0,":out-of-range":!0,":placeholder-shown":!0,":read-only":!0,":read-write":!0,":required":!0,":right":!0,":root":!0,":scope":!0,":target":!0,":valid":!0,":visited":!0},le=Object.keys(oe),se=oe,ce=(e,t)=>new Error((0,_.A)(ie||(ie=(0,d._)(['\n Invalid media query: "','"\n\n ',"\n\n Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries\n "])),e,t)),ue=e=>{if("@media "===e)throw ce(e,"Query is empty");try{(function(e){for(var t=e.length-1;t>=0;t--)e[t]=H(e[t])})(W(e))}catch(t){throw ce(e,t.message)}},de=["vars"],pe=["content"],fe="__DECLARATION",he={animationIterationCount:!0,borderImage:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,initialLetter:!0,lineClamp:!0,lineHeight:!0,maxLines:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,WebkitLineClamp:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderWidth:!0,shapeImageThreshold:!0,stopOpacity:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function me(e,t,r,n){var a=e.slice(0,t),i=e.slice(r);return"".concat(a).concat(n).concat(i)}var ge=[...le,"@layer","@media","@supports","@container","selectors"];class ye{constructor(e,t){this.rules=[],this.conditionalRulesets=[new ae],this.fontFaceRules=[],this.keyframesRules=[],this.propertyRules=[],this.localClassNamesMap=new Map(e.map((e=>[e,e]))),this.localClassNamesSearch=new c(e),this.layers=new Map,this.composedClassLists=t.map((e=>{var{identifier:t,classList:r}=e;return{identifier:t,regex:RegExp("(".concat(r,")"),"g")}})).reverse()}processCssObj(e){if("fontFace"!==e.type)if("property"!==e.type){if("keyframes"===e.type)return e.rule=Object.fromEntries(Object.entries(e.rule).map((e=>{var[t,r]=e;return[t,this.transformVars(this.transformProperties(r))]}))),void this.keyframesRules.push(e);if(this.currConditionalRuleset=new ae,"layer"===e.type){var t="@layer ".concat(e.name);this.addLayer([t])}else{var r=te(e.rule,ge);this.addRule({selector:e.selector,rule:r}),this.transformLayer(e,e.rule["@layer"]),this.transformMedia(e,e.rule["@media"]),this.transformSupports(e,e.rule["@supports"]),this.transformContainer(e,e.rule["@container"]),this.transformSimplePseudos(e,e.rule),this.transformSelectors(e,e.rule)}this.conditionalRulesets[this.conditionalRulesets.length-1].mergeIfCompatible(this.currConditionalRuleset)||this.conditionalRulesets.push(this.currConditionalRuleset)}else this.propertyRules.push(e);else this.fontFaceRules.push(e.rule)}addConditionalRule(e,t){var r=this.transformVars(this.transformProperties(e.rule)),n=this.transformSelector(e.selector);if(!this.currConditionalRuleset)throw new Error("Couldn't add conditional rule");var a=t[t.length-1],i=t.slice(0,t.length-1);this.currConditionalRuleset.addRule({selector:n,rule:r},a,i)}addRule(e){var t=this.transformVars(this.transformProperties(e.rule)),r=this.transformSelector(e.selector);this.rules.push({selector:r,rule:t})}addLayer(e){var t=e.join(" - ");this.layers.set(t,e)}transformProperties(e){return this.transformContent(this.pixelifyProperties(e))}pixelifyProperties(e){return ee(e,((t,r)=>{"number"!=typeof t||0===t||he[r]||(e[r]="".concat(t,"px"))})),e}transformVars(e){var{vars:t}=e,r=J(e,de);return t?Q(Q({},function(e){var t,r={};for(var n in e)r[(e[n],t=n,(0,o.Tm)(t))]=e[n];return r}(t)),r):r}transformContent(e){var{content:t}=e,r=J(e,pe);return void 0===t?r:Q({content:(Array.isArray(t)?t:[t]).map((e=>e&&(e.includes('"')||e.includes("'")||/^([A-Za-z\-]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\s|$)/.test(e))?e:'"'.concat(e,'"')))},r)}transformClassname(e){return".".concat(s()(e,{isIdentifier:!0}))}transformSelector(e){var t=e,r=function(e){t=t.replace(a,(()=>((0,u.VF)(e),e)))};for(var{identifier:n,regex:a}of this.composedClassLists)r(n);if(this.localClassNamesMap.has(t))return this.transformClassname(t);for(var i=this.localClassNamesSearch.search(t),o=t.length,l=i.length-1;l>=0;l--){var[s,[c]]=i[l],d=s-c.length+1;o<=s||(o=d,"."!==t[d-1]&&(t=me(t,d,s+1,this.transformClassname(c))))}return t}transformSelectors(e,t,r){ee(t.selectors,((t,n)=>{if("local"!==e.type)throw new Error("Selectors are not allowed within ".concat("global"===e.type?'"globalStyle"':'"selectors"'));var a=this.transformSelector(n.replace(RegExp("&","g"),e.selector));((e,t)=>{var r,n=()=>{var r=new RegExp(".".concat(s()(t,{isIdentifier:!0}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")),"g");return e.replace(r,"&")};try{r=x(e)}catch(e){throw new Error("Invalid selector: ".concat(n()))}r.forEach((e=>{try{for(var r=e.length-1;r>=-1;r--){if(!e[r])throw new Error;var a=e[r];if("child"===a.type||"parent"===a.type||"sibling"===a.type||"adjacent"===a.type||"descendant"===a.type)throw new Error;if("attribute"===a.type&&"class"===a.name&&a.value===t)return}}catch(e){throw new Error((0,_.A)($||($=(0,d._)(["\n Invalid selector: ","\n \n Style selectors must target the '&' character (along with any modifiers), e.g. "," or ",".\n \n This is to ensure that each style block only affects the styling of a single class.\n \n If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of ",") to 'parent', you should add "," to 'child').\n \n If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write ",", you should instead write 'globalStyle(",", { ... })'\n "])),n(),"`${parent} &`","`${parent} &:hover`","`& ${child}`","`${parent} &`","`& h1`","`${parent} h1`"))}}))})(a,e.selector);var i={selector:a,rule:te(t,ge)};r?this.addConditionalRule(i,r):this.addRule(i);var o={type:"selector",selector:a,rule:t};this.transformLayer(o,t["@layer"],r),this.transformSupports(o,t["@supports"],r),this.transformMedia(o,t["@media"],r),this.transformContainer(o,t["@container"],r)}))}transformMedia(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t)for(var[a,i]of(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@media ".concat(e)))),Object.entries(t))){var o="@media ".concat(a);ue(o);var l=[...n,o];this.addConditionalRule({selector:e.selector,rule:te(i,ge)},l),"local"===e.type&&(this.transformSimplePseudos(e,i,l),this.transformSelectors(e,i,l)),this.transformLayer(e,i["@layer"],l),this.transformSupports(e,i["@supports"],l),this.transformContainer(e,i["@container"],l)}}transformContainer(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@container ".concat(e)))),ee(t,((t,r)=>{var a="@container ".concat(r),i=[...n,a];this.addConditionalRule({selector:e.selector,rule:te(t,ge)},i),"local"===e.type&&(this.transformSimplePseudos(e,t,i),this.transformSelectors(e,t,i)),this.transformLayer(e,t["@layer"],i),this.transformSupports(e,t["@supports"],i),this.transformMedia(e,t["@media"],i)})))}transformLayer(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@layer ".concat(e)))),ee(t,((t,r)=>{var a=[...n,"@layer ".concat(r)];this.addLayer(a),this.addConditionalRule({selector:e.selector,rule:te(t,ge)},a),"local"===e.type&&(this.transformSimplePseudos(e,t,a),this.transformSelectors(e,t,a)),this.transformMedia(e,t["@media"],a),this.transformSupports(e,t["@supports"],a),this.transformContainer(e,t["@container"],a)})))}transformSupports(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@supports ".concat(e)))),ee(t,((t,r)=>{var a=[...n,"@supports ".concat(r)];this.addConditionalRule({selector:e.selector,rule:te(t,ge)},a),"local"===e.type&&(this.transformSimplePseudos(e,t,a),this.transformSelectors(e,t,a)),this.transformLayer(e,t["@layer"],a),this.transformMedia(e,t["@media"],a),this.transformContainer(e,t["@container"],a)})))}transformSimplePseudos(e,t,r){for(var n of Object.keys(t))if(se[n]){if("local"!==e.type)throw new Error("Simple pseudos are not valid in ".concat("global"===e.type?'"globalStyle"':'"selectors"'));r?this.addConditionalRule({selector:"".concat(e.selector).concat(n),rule:t[n]},r):this.addRule({conditions:r,selector:"".concat(e.selector).concat(n),rule:t[n]})}}toCss(){var e=[];for(var t of this.fontFaceRules)e.push(ve({"@font-face":t}));for(var r of this.propertyRules)e.push(ve({["@property ".concat(r.name)]:r.rule}));for(var n of this.keyframesRules)e.push(ve({["@keyframes ".concat(n.name)]:n.rule}));for(var a of this.layers.values()){var[i,...o]=a.reverse(),l={[i]:fe};for(var s of o)l={[s]:l};e.push(ve(l))}for(var c of this.rules)e.push(ve({[c.selector]:c.rule}));for(var u of this.conditionalRulesets)for(var d of u.renderToArray())e.push(ve(d));return e.filter(Boolean)}}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=function(n){var a,i=e[n];i&&Array.isArray(i)?r.push(...i.map((e=>ve({[n]:e},t)))):i&&"object"==typeof i?0===Object.keys(i).length||r.push("".concat(t).concat(n," {\n").concat(ve(i,t+" "),"\n").concat(t,"}")):i===fe?r.push("".concat(t).concat(n,";")):r.push("".concat(t).concat(n.startsWith("--")?n:(a=n,a.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()),": ").concat(i,";"))};for(var a of Object.keys(e))n(a);return r.join("\n")}var be=r(313);const we="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,xe=new Set,ke="object"==typeof process&&process?process:{},_e=(e,t,r,n)=>{"function"==typeof ke.emitWarning?ke.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let Se=globalThis.AbortController,Ee=globalThis.AbortSignal;if(void 0===Se){Ee=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},Se=class{constructor(){t()}signal=new Ee;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==ke.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,_e("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const Ce=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),$e=e=>Ce(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Ae:null:null;class Ae extends Array{constructor(e){super(e),this.fill(0)}}class Te{heap;length;static#e=!1;static create(e){const t=$e(e);if(!t)return[];Te.#e=!0;const r=new Te(e,t);return Te.#e=!1,r}constructor(e,t){if(!Te.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class Oe{#t;#r;#n;#a;#i;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#s;#c;#u;#d;#p;#f;#h;#m;#g;#y;#v;#b;#w;#x;#k;#_;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#w,sizes:e.#v,keyMap:e.#c,keyList:e.#u,valList:e.#d,next:e.#p,prev:e.#f,get head(){return e.#h},get tail(){return e.#m},free:e.#g,isBackgroundFetch:t=>e.#S(t),backgroundFetch:(t,r,n,a)=>e.#E(t,r,n,a),moveToTail:t=>e.#C(t),indexes:t=>e.#$(t),rindexes:t=>e.#A(t),isStale:t=>e.#T(t)}}get max(){return this.#t}get maxSize(){return this.#r}get calculatedSize(){return this.#s}get size(){return this.#l}get fetchMethod(){return this.#i}get memoMethod(){return this.#o}get dispose(){return this.#n}get disposeAfter(){return this.#a}constructor(e){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:a,updateAgeOnGet:i,updateAgeOnHas:o,allowStale:l,dispose:s,disposeAfter:c,noDisposeOnSet:u,noUpdateTTL:d,maxSize:p=0,maxEntrySize:f=0,sizeCalculation:h,fetchMethod:m,memoMethod:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:w,ignoreFetchAbort:x}=e;if(0!==t&&!Ce(t))throw new TypeError("max option must be a nonnegative integer");const k=t?$e(t):Array;if(!k)throw new Error("invalid max value: "+t);if(this.#t=t,this.#r=p,this.maxEntrySize=f||this.#r,this.sizeCalculation=h,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==g&&"function"!=typeof g)throw new TypeError("memoMethod must be a function if defined");if(this.#o=g,void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#i=m,this.#k=!!m,this.#c=new Map,this.#u=new Array(t).fill(void 0),this.#d=new Array(t).fill(void 0),this.#p=new k(t),this.#f=new k(t),this.#h=0,this.#m=0,this.#g=Te.create(t),this.#l=0,this.#s=0,"function"==typeof s&&(this.#n=s),"function"==typeof c?(this.#a=c,this.#y=[]):(this.#a=void 0,this.#y=void 0),this.#x=!!this.#n,this.#_=!!this.#a,this.noDisposeOnSet=!!u,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.#r&&!Ce(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ce(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#O()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!o,this.ttlResolution=Ce(n)||0===n?n:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!Ce(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#P()}if(0===this.#t&&0===this.ttl&&0===this.#r)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#r){const e="LRU_CACHE_UNBOUNDED";(e=>!xe.has(e))(e)&&(xe.add(e),_e("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,Oe))}}getRemainingTTL(e){return this.#c.has(e)?1/0:0}#P(){const e=new Ae(this.#t),t=new Ae(this.#t);this.#w=e,this.#b=t,this.#z=(r,n,a=we.now())=>{if(t[r]=0!==n?a:0,e[r]=n,0!==n&&this.ttlAutopurge){const e=setTimeout((()=>{this.#T(r)&&this.#F(this.#u[r],"expire")}),n+1);e.unref&&e.unref()}},this.#N=r=>{t[r]=0!==e[r]?we.now():0},this.#R=(a,i)=>{if(e[i]){const o=e[i],l=t[i];if(!o||!l)return;a.ttl=o,a.start=l,a.now=r||n();const s=a.now-l;a.remainingTTL=o-s}};let r=0;const n=()=>{const e=we.now();if(this.ttlResolution>0){r=e;const t=setTimeout((()=>r=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=a=>{const i=this.#c.get(a);if(void 0===i)return 0;const o=e[i],l=t[i];return o&&l?o-((r||n())-l):1/0},this.#T=a=>{const i=t[a],o=e[a];return!!o&&!!i&&(r||n())-i>o}}#N=()=>{};#R=()=>{};#z=()=>{};#T=()=>!1;#O(){const e=new Ae(this.#t);this.#s=0,this.#v=e,this.#I=t=>{this.#s-=e[t],e[t]=0},this.#L=(e,t,r,n)=>{if(this.#S(t))return 0;if(!Ce(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!Ce(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#M=(t,r,n)=>{if(e[t]=r,this.#r){const r=this.#r-e[t];for(;this.#s>r;)this.#D(!0)}this.#s+=e[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.#s)}}#I=e=>{};#M=(e,t,r)=>{};#L=(e,t,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#$({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#m;this.#H(t)&&(!e&&this.#T(t)||(yield t),t!==this.#h);)t=this.#f[t]}*#A({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#h;this.#H(t)&&(!e&&this.#T(t)||(yield t),t!==this.#m);)t=this.#p[t]}#H(e){return void 0!==e&&this.#c.get(this.#u[e])===e}*entries(){for(const e of this.#$())void 0===this.#d[e]||void 0===this.#u[e]||this.#S(this.#d[e])||(yield[this.#u[e],this.#d[e]])}*rentries(){for(const e of this.#A())void 0===this.#d[e]||void 0===this.#u[e]||this.#S(this.#d[e])||(yield[this.#u[e],this.#d[e]])}*keys(){for(const e of this.#$()){const t=this.#u[e];void 0===t||this.#S(this.#d[e])||(yield t)}}*rkeys(){for(const e of this.#A()){const t=this.#u[e];void 0===t||this.#S(this.#d[e])||(yield t)}}*values(){for(const e of this.#$())void 0===this.#d[e]||this.#S(this.#d[e])||(yield this.#d[e])}*rvalues(){for(const e of this.#A())void 0===this.#d[e]||this.#S(this.#d[e])||(yield this.#d[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#$()){const n=this.#d[r],a=this.#S(n)?n.__staleWhileFetching:n;if(void 0!==a&&e(a,this.#u[r],this))return this.get(this.#u[r],t)}}forEach(e,t=this){for(const r of this.#$()){const n=this.#d[r],a=this.#S(n)?n.__staleWhileFetching:n;void 0!==a&&e.call(t,a,this.#u[r],this)}}rforEach(e,t=this){for(const r of this.#A()){const n=this.#d[r],a=this.#S(n)?n.__staleWhileFetching:n;void 0!==a&&e.call(t,a,this.#u[r],this)}}purgeStale(){let e=!1;for(const t of this.#A({allowStale:!0}))this.#T(t)&&(this.#F(this.#u[t],"expire"),e=!0);return e}info(e){const t=this.#c.get(e);if(void 0===t)return;const r=this.#d[t],n=this.#S(r)?r.__staleWhileFetching:r;if(void 0===n)return;const a={value:n};if(this.#w&&this.#b){const e=this.#w[t],r=this.#b[t];if(e&&r){const t=e-(we.now()-r);a.ttl=t,a.start=Date.now()}}return this.#v&&(a.size=this.#v[t]),a}dump(){const e=[];for(const t of this.#$({allowStale:!0})){const r=this.#u[t],n=this.#d[t],a=this.#S(n)?n.__staleWhileFetching:n;if(void 0===a||void 0===r)continue;const i={value:a};if(this.#w&&this.#b){i.ttl=this.#w[t];const e=we.now()-this.#b[t];i.start=Math.floor(Date.now()-e)}this.#v&&(i.size=this.#v[t]),e.unshift([r,i])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const e=Date.now()-r.start;r.start=we.now()-e}this.set(t,r.value,r)}}set(e,t,r={}){if(void 0===t)return this.delete(e),this;const{ttl:n=this.ttl,start:a,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:l}=r;let{noUpdateTTL:s=this.noUpdateTTL}=r;const c=this.#L(e,t,r.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#F(e,"set"),this;let u=0===this.#l?void 0:this.#c.get(e);if(void 0===u)u=0===this.#l?this.#m:0!==this.#g.length?this.#g.pop():this.#l===this.#t?this.#D(!1):this.#l,this.#u[u]=e,this.#d[u]=t,this.#c.set(e,u),this.#p[this.#m]=u,this.#f[u]=this.#m,this.#m=u,this.#l++,this.#M(u,c,l),l&&(l.set="add"),s=!1;else{this.#C(u);const r=this.#d[u];if(t!==r){if(this.#k&&this.#S(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;void 0===t||i||(this.#x&&this.#n?.(t,e,"set"),this.#_&&this.#y?.push([t,e,"set"]))}else i||(this.#x&&this.#n?.(r,e,"set"),this.#_&&this.#y?.push([r,e,"set"]));if(this.#I(u),this.#M(u,c,l),this.#d[u]=t,l){l.set="replace";const e=r&&this.#S(r)?r.__staleWhileFetching:r;void 0!==e&&(l.oldValue=e)}}else l&&(l.set="update")}if(0===n||this.#w||this.#P(),this.#w&&(s||this.#z(u,n,a),l&&this.#R(l,u)),!i&&this.#_&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}return this}pop(){try{for(;this.#l;){const e=this.#d[this.#h];if(this.#D(!0),this.#S(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#_&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}}}#D(e){const t=this.#h,r=this.#u[t],n=this.#d[t];return this.#k&&this.#S(n)?n.__abortController.abort(new Error("evicted")):(this.#x||this.#_)&&(this.#x&&this.#n?.(n,r,"evict"),this.#_&&this.#y?.push([n,r,"evict"])),this.#I(t),e&&(this.#u[t]=void 0,this.#d[t]=void 0,this.#g.push(t)),1===this.#l?(this.#h=this.#m=0,this.#g.length=0):this.#h=this.#p[t],this.#c.delete(r),this.#l--,t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t,a=this.#c.get(e);if(void 0!==a){const e=this.#d[a];if(this.#S(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#T(a))return r&&this.#N(a),n&&(n.has="hit",this.#R(n,a)),!0;n&&(n.has="stale",this.#R(n,a))}else n&&(n.has="miss");return!1}peek(e,t={}){const{allowStale:r=this.allowStale}=t,n=this.#c.get(e);if(void 0===n||!r&&this.#T(n))return;const a=this.#d[n];return this.#S(a)?a.__staleWhileFetching:a}#E(e,t,r,n){const a=void 0===t?void 0:this.#d[t];if(this.#S(a))return a;const i=new Se,{signal:o}=r;o?.addEventListener("abort",(()=>i.abort(o.reason)),{signal:i.signal});const l={signal:i.signal,options:r,context:n},s=(n,a=!1)=>{const{aborted:o}=i.signal,s=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(o&&!a?(r.status.fetchAborted=!0,r.status.fetchError=i.signal.reason,s&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),o&&!s&&!a)return c(i.signal.reason);const d=u;return this.#d[t]===u&&(void 0===n?d.__staleWhileFetching?this.#d[t]=d.__staleWhileFetching:this.#F(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,l.options))),n},c=n=>{const{aborted:a}=i.signal,o=a&&r.allowStaleOnFetchAbort,l=o||r.allowStaleOnFetchRejection,s=l||r.noDeleteOnFetchRejection,c=u;if(this.#d[t]===u&&(s&&void 0!==c.__staleWhileFetching?o||(this.#d[t]=c.__staleWhileFetching):this.#F(e,"fetch")),l)return r.status&&void 0!==c.__staleWhileFetching&&(r.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw n};r.status&&(r.status.fetchDispatched=!0);const u=new Promise(((t,n)=>{const o=this.#i?.(e,a,l);o&&o instanceof Promise&&o.then((e=>t(void 0===e?void 0:e)),n),i.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(void 0),r.allowStaleOnFetchAbort&&(t=e=>s(e,!0)))}))})).then(s,(e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),c(e)))),d=Object.assign(u,{__abortController:i,__staleWhileFetching:a,__returned:void 0});return void 0===t?(this.set(e,d,{...l.options,status:void 0}),t=this.#c.get(e)):this.#d[t]=d,d}#S(e){if(!this.#k)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof Se}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:l=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:h,forceRefresh:m=!1,status:g,signal:y}=t;if(!this.#k)return g&&(g.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:a,status:g});const v={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:a,ttl:i,noDisposeOnSet:o,size:l,sizeCalculation:s,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:f,ignoreFetchAbort:p,status:g,signal:y};let b=this.#c.get(e);if(void 0===b){g&&(g.fetch="miss");const t=this.#E(e,b,v,h);return t.__returned=t}{const t=this.#d[b];if(this.#S(t)){const e=r&&void 0!==t.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const a=this.#T(b);if(!m&&!a)return g&&(g.fetch="hit"),this.#C(b),n&&this.#N(b),g&&this.#R(g,b),t;const i=this.#E(e,b,v,h),o=void 0!==i.__staleWhileFetching&&r;return g&&(g.fetch=a?"stale":"refresh",o&&a&&(g.returnedStale=!0)),o?i.__staleWhileFetching:i.__returned=i}}async forceFetch(e,t={}){const r=await this.fetch(e,t);if(void 0===r)throw new Error("fetch() returned undefined");return r}memo(e,t={}){const r=this.#o;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:a,...i}=t,o=this.get(e,i);if(!a&&void 0!==o)return o;const l=r(e,o,{options:i,context:n});return this.set(e,l,i),l}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:i}=t,o=this.#c.get(e);if(void 0!==o){const t=this.#d[o],l=this.#S(t);return i&&this.#R(i,o),this.#T(o)?(i&&(i.get="stale"),l?(i&&r&&void 0!==t.__staleWhileFetching&&(i.returnedStale=!0),r?t.__staleWhileFetching:void 0):(a||this.#F(e,"expire"),i&&r&&(i.returnedStale=!0),r?t:void 0)):(i&&(i.get="hit"),l?t.__staleWhileFetching:(this.#C(o),n&&this.#N(o),t))}i&&(i.get="miss")}#B(e,t){this.#f[t]=e,this.#p[e]=t}#C(e){e!==this.#m&&(e===this.#h?this.#h=this.#p[e]:this.#B(this.#f[e],this.#p[e]),this.#B(this.#m,e),this.#m=e)}delete(e){return this.#F(e,"delete")}#F(e,t){let r=!1;if(0!==this.#l){const n=this.#c.get(e);if(void 0!==n)if(r=!0,1===this.#l)this.#j(t);else{this.#I(n);const r=this.#d[n];if(this.#S(r)?r.__abortController.abort(new Error("deleted")):(this.#x||this.#_)&&(this.#x&&this.#n?.(r,e,t),this.#_&&this.#y?.push([r,e,t])),this.#c.delete(e),this.#u[n]=void 0,this.#d[n]=void 0,n===this.#m)this.#m=this.#f[n];else if(n===this.#h)this.#h=this.#p[n];else{const e=this.#f[n];this.#p[e]=this.#p[n];const t=this.#p[n];this.#f[t]=this.#f[n]}this.#l--,this.#g.push(n)}}if(this.#_&&this.#y?.length){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}return r}clear(){return this.#j("delete")}#j(e){for(const t of this.#A({allowStale:!0})){const r=this.#d[t];if(this.#S(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#u[t];this.#x&&this.#n?.(r,n,e),this.#_&&this.#y?.push([r,n,e])}}if(this.#c.clear(),this.#d.fill(void 0),this.#u.fill(void 0),this.#w&&this.#b&&(this.#w.fill(0),this.#b.fill(0)),this.#v&&this.#v.fill(0),this.#h=0,this.#m=0,this.#g.length=0,this.#s=0,this.#l=0,this.#_&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}}}const Pe=e=>e instanceof Date,ze=e=>null!=e&&"object"==typeof e,Fe=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Ne=e=>ze(e)&&(e=>0===Object.keys(e).length)(e),Re=(e,t)=>{if(e===t)return{};if(!ze(e)||!ze(t))return t;const r=Object.keys(e).reduce(((e,r)=>(Fe(t,r)||(e[r]=void 0),e)),Object.create(null));return Pe(e)||Pe(t)?e.valueOf()==t.valueOf()?{}:t:Object.keys(t).reduce(((r,n)=>{if(!Fe(e,n))return r[n]=t[n],r;const a=Re(e[n],t[n]);return!Ne(a)||Pe(a)||!Ne(e[n])&&Ne(t[n])?(r[n]=a,r):r}),r)},Ie=Re;var Le=r(633),Me=r.n(Le),De=r(744),He=r.n(De),Be=new Set,je=[],We=[],Ve={appendCss:e=>{We.push(e)},registerClassName:e=>{Be.add(e)},registerComposition:e=>{je.push(e)},markCompositionUsed:()=>{},onEndFileScope:e=>{var t=function(e){var{localClassNames:t,cssObjs:r,composedClassLists:n}=e,a=new ye(t,n);for(var i of r)a.processCssObj(i);return a.toCss()}({localClassNames:Array.from(Be),composedClassLists:je,cssObjs:We}).join("\n");(e=>{var{fileScope:t,css:r}=e,n=t.packageName?[t.packageName,t.filePath].join("/"):t.filePath,a=i[n];if(!a){var o=document.createElement("style");t.packageName&&o.setAttribute("data-package",t.packageName),o.setAttribute("data-file",t.filePath),o.setAttribute("type","text/css"),a=i[n]=o,document.head.appendChild(o)}a.innerHTML=r})({fileScope:e,css:t}),We=[]},getIdentOption:()=>"short"};(0,u.GX)(Ve);var Ue,qe=(e,t)=>{for(var r=t-1;r>=0;){if("/"===e[r])return r;r--}return-1},Ge=(Ue=new Oe({max:500}),e=>{var t=Ue.get(e);if(t)return t;var r=(e=>{var t,r=e.lastIndexOf(".css");if(-1===r)return"";var n=qe(e,r);if(t=e.slice(n+1,r),-1===n)return t;var a=qe(e,n-1),i=e.slice(a+1,n);return"index"!==t?t:i})(e);return Ue.set(e,r),r});function Ke(e){return e.match(/^[0-9]/)?"_".concat(e):e}function Ye(e){var t=(0,u.CN)(),{debugId:r,debugFileName:n=!0}=Q(Q({},"string"==typeof e?{debugId:e}:null),"object"==typeof e?e:null),a=(0,be.getAndIncrementRefCounter)().toString(36),{filePath:i,packageName:o}=(0,be.getFileScope)(),l=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o?"".concat(o).concat(i):i),s="".concat(l).concat(a);if("debug"===t){var c=function(e){var{debugId:t,debugFileName:r}=e,n=t?[t.replace(/\s/g,"_")]:[];if(r){var{filePath:a}=(0,be.getFileScope)(),i=Ge(a);i&&n.unshift(i)}return n.join("_")}({debugId:r,debugFileName:n});return c&&(s="".concat(c,"__").concat(s)),Ke(s)}if("function"==typeof t){if(!(s=t({hash:s,debugId:r,filePath:i,packageName:o})).match(/^[A-Z_][0-9A-Z_-]+$/i))throw new Error('Identifier function returned invalid indentifier: "'.concat(s,'"'));return s}return Ke(s)}var Xe=e=>(0,o.Bx)(e,(()=>""));function Ze(e,t,r){var n=[...Array(t).keys()].map((()=>" ")).join(""),a="".concat(r||" ").concat(n).concat(e);return"-"===r?Me().red(a):"+"===r?Me().green(a):a}function Qe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[];0===r&&n.push(Ze("{",0));var a=r+1,i=Object.keys(t).sort();for(var o of i){var l=t[o];o in e?"object"==typeof l?(n.push(Ze("".concat(o,": {"),a)),n.push(Qe(e[o],t[o],a)),n.push(Ze("}",a))):n.push(Ze("".concat(o,": ...,"),a,"-")):n.push(Ze("".concat(o,": ...,"),a,"+"))}return 0===r&&n.push(Ze("}",0)),n.join("\n")}var Je=e=>{var{syntax:t,inherits:r,initialValue:n}=e;return Q({syntax:'"'.concat(Array.isArray(t)?t.join(" | "):t,'"'),inherits:r?"true":"false"},null!=n?{initialValue:n}:{})};function et(e,t){var r=s()(Ye({debugId:"string"==typeof e?e:t,debugFileName:!1}),{isIdentifier:!0});return e&&"object"==typeof e&&(0,u.i2)({type:"property",name:"--".concat(r),rule:Je(e)},(0,be.getFileScope)()),"var(--".concat(r,")")}function tt(e,t){return t&&"object"==typeof t&&(0,u.i2)({type:"property",name:"--".concat(e),rule:Je(t)},(0,be.getFileScope)()),"var(--".concat(e,")")}function rt(e){if("string"!=typeof e||!/^var\(--.*\)$/.test(e))throw new Error("Invalid variable name: ".concat(e))}function nt(){for(var e="",t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reverse().forEach((t=>{""===e?e=String(t):(rt(t),e=t.replace(/\)$/,", ".concat(e,")")))})),e}function at(e,t){var r={},{valid:n,diffString:a}=function(e,t){var r=Ie(Xe(e),Xe(t)),n=0===Object.keys(r).length;return{valid:n,diffString:n?"":Qe(e,r)}}(e,t);if(!n)throw new Error("Tokens don't match contract.\n".concat(a));return(0,o.Bx)(t,((t,n)=>{r[(0,o.Jt)(e,n)]=String(t)})),r}function it(e){return(0,o.Bx)(e,((e,t)=>et(t.join("-"))))}function ot(e,t){return(0,o.Bx)(e,((e,r)=>{var n="function"==typeof t?t(e,r):e,a="string"==typeof n?n.replace(/^\-\-/,""):null;if("string"!=typeof a||a!==s()(a,{isIdentifier:!0}))throw new Error('Invalid variable name for "'.concat(r.join("."),'": ').concat(a));return"var(--".concat(a,")")}))}var lt,st=["@layer"];function ct(e,t,r){var n=Boolean(r),a=n?r:t,{layerName:i,tokens:o}=function(e){if("@layer"in e){var{"@layer":t}=e;return{layerName:t,tokens:J(e,st)}}return{tokens:e}}(a),l=n?t:it(o),s={vars:at(l,o)};if(i&&(s={"@layer":{[i]:s}}),(0,u.i2)({type:"global",selector:e,rule:s},(0,be.getFileScope)()),!n)return l}function ut(e,t,r){var n=Ye("object"==typeof t?r:t);(0,u.rG)(n,(0,be.getFileScope)());var a="object"==typeof t?ct(n,e,t):ct(n,e);return a?[n,a]:n}function dt(e,t){var r=Ye(t);(0,u.rG)(r,(0,be.getFileScope)());var n=[],a=[];for(var i of e)"string"==typeof i?n.push(i):a.push(i);var o=r;if(n.length>0&&(o="".concat(r," ").concat(ne(n)),(0,u.EC)({identifier:r,classList:o},(0,be.getFileScope)()),a.length>0&&(0,u.VF)(r)),a.length>0){var l=He().all(a,{arrayMerge:(e,t)=>t});(0,u.i2)({type:"local",selector:r,rule:l},(0,be.getFileScope)())}return o}function pt(e,t){if(Array.isArray(e))return dt(e,t);var r=Ye(t);return(0,u.rG)(r,(0,be.getFileScope)()),(0,u.i2)({type:"local",selector:r,rule:e},(0,be.getFileScope)()),r}function ft(){for(var e=(0,be.hasFileScope)()?dt:ne,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e(r)}function ht(e,t){(0,u.i2)({type:"global",selector:e,rule:t},(0,be.getFileScope)())}function mt(e,t){var r='"'.concat(s()(Ye(t),{quotes:"double"}),'"'),n=Array.isArray(e)?e:[e];for(var a of n){if("fontFamily"in a)throw new Error((0,_.A)(lt||(lt=(0,d._)(['\n This function creates and returns a hashed font-family name, so the "fontFamily" property should not be provided.\n \n If you\'d like to define a globally scoped custom font, you can use the "globalFontFace" function instead.\n ']))));(0,u.i2)({type:"fontFace",rule:Q(Q({},a),{},{fontFamily:r})},(0,be.getFileScope)())}return r}function gt(e,t){var r=Array.isArray(t)?t:[t];for(var n of r)(0,u.i2)({type:"fontFace",rule:Q(Q({},n),{},{fontFamily:e})},(0,be.getFileScope)())}function yt(e,t){var r=s()(Ye(t),{isIdentifier:!0});return(0,u.i2)({type:"keyframes",name:r,rule:e},(0,be.getFileScope)()),r}function vt(e,t){(0,u.i2)({type:"keyframes",name:e,rule:t},(0,be.getFileScope)())}function bt(){if("function"==typeof(arguments.length<=1?void 0:arguments[1])){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2],n={};for(var a in e)n[a]=pt(t(e[a],a),r?"".concat(r,"_").concat(a):a);return n}var i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],l={};for(var s in i)l[s]=pt(i[s],o?"".concat(o,"_").concat(s):s);return l}var wt=e=>Ye(e),xt=e=>Ye(e),kt={},_t=function(){var e,t=kt,r=arguments.length<=0?void 0:arguments[0];return"object"==typeof(arguments.length<=0?void 0:arguments[0])&&(e=arguments.length<=0?void 0:arguments[0],t=Q(Q({},kt),e),r=arguments.length<=1?void 0:arguments[1]),[t,r]};function St(){var[e,t]=_t(...arguments),r=Ye(t);return e.parent&&(r="".concat(e.parent,".").concat(r)),(0,u.i2)({type:"layer",name:r},(0,be.getFileScope)()),r}function Et(){var[e,t]=_t(...arguments);return e.parent&&(t="".concat(e.parent,".").concat(t)),(0,u.i2)({type:"layer",name:t},(0,be.getFileScope)()),t}},313:(e,t,r)=>{"use strict";r.r(t),r.d(t,{endFileScope:()=>u,getAndIncrementRefCounter:()=>f,getFileScope:()=>p,hasFileScope:()=>d,setFileScope:()=>c});var n,a=r(933),i=r(828),o=r(619),l=0,s=[];function c(e,t){l=0;var r={filePath:e,packageName:t};s.unshift(r),(0,o.bx)(r)}function u(){(0,o.Ri)(p()),l=0,s.splice(0,1)}function d(){return s.length>0}function p(){if(0===s.length)throw new Error((0,i.A)(n||(n=(0,a._)(["\n Styles were unable to be assigned to a file. This is generally caused by one of the following:\n\n - You may have created styles outside of a '.css.ts' context\n - You may have incorrect configuration. See https://vanilla-extract.style/documentation/getting-started\n "]))));return s[0]}function f(){return l++}},867:(e,t,r)=>{"use strict";function n(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function a(e,t){var r=e;for(var n of t){if(!(n in r))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n={};for(var a in e){var o=e[a],l=[...r,a];"string"==typeof o||"number"==typeof o||null==o?n[a]=t(o,l):"object"!=typeof o||Array.isArray(o)?console.warn('Skipping invalid key "'.concat(l.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(o)?"Array":typeof o,'"')):n[a]=i(o,t,l)}return n}r.d(t,{Bx:()=>i,Jt:()=>a,Tm:()=>n})},520:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>uS});var n={};r.r(n),r.d(n,{animationTimingName:()=>un,animationTimingStyle:()=>dn,ellipsisName:()=>hn,ellipsisStyles:()=>mn,slideLeft:()=>yn,slideRight:()=>gn,transitionTimingName:()=>pn,transitionTimingStyle:()=>fn,variables:()=>cn});var a={};r.r(a),r.d(a,{aU:()=>Rn,OG:()=>zn,YQ:()=>Fn});var i={};r.r(i),r.d(i,{rq:()=>Kn,E3:()=>Yn,eF:()=>Gn,jr:()=>Jn,H1:()=>Qn,g3:()=>Zn,_6:()=>ea,Fm:()=>Xn,JW:()=>ta});var o={};r.r(o),r.d(o,{circleBase:()=>Yh,circleInner:()=>Xh,circleInnerAccent1:()=>Zh,circleInnerAccent2:()=>Qh,circleInnerAccent3:()=>Jh,circleInnerAccent4:()=>em,circleInnerImage:()=>tm,circleProgressIndicator:()=>rm,circleRadiusSvg:()=>jh,circleSm:()=>nm,circleSmProgressIndicator:()=>am,iconWrapLg:()=>cm,iconWrapSm:()=>sm,progressIndicatorCircleRadius:()=>Gh,strokeColorAccent1:()=>um,strokeColorAccent2:()=>dm,strokeColorAccent3:()=>pm,strokeColorAccent4:()=>fm,textContent:()=>lm,textProgressMeterBase:()=>im,textProgressMeterInnerText:()=>om});var l={};r.r(l),r.d(l,{cellBase:()=>Cy,cellHeading:()=>_y,cellResponsive:()=>$y,columnCenter:()=>Py,columnEnd:()=>Oy,columnRemaining:()=>Zy,columnStart:()=>Ty,fixedFirstColumn:()=>gy,fixedFirstColumnTable:()=>oy,mobileColumnCenter:()=>tv,mobileColumnEnd:()=>ev,mobileColumnStart:()=>Jy,mobileGridZoneA1:()=>Fy,mobileGridZoneA12:()=>Iy,mobileGridZoneA123:()=>My,mobileGridZoneA2:()=>Ny,mobileGridZoneA23:()=>Ly,mobileGridZoneA3:()=>Ry,mobileGridZoneAB1:()=>Uy,mobileGridZoneAB12:()=>Ky,mobileGridZoneAB123:()=>Xy,mobileGridZoneAB2:()=>qy,mobileGridZoneAB23:()=>Yy,mobileGridZoneAB3:()=>Gy,mobileGridZoneB1:()=>Dy,mobileGridZoneB12:()=>jy,mobileGridZoneB123:()=>Vy,mobileGridZoneB2:()=>Hy,mobileGridZoneB23:()=>Wy,mobileGridZoneB3:()=>By,mobileGridZoneHidden:()=>zy,mobileWidth:()=>Qy,responsiveTableBase:()=>hy,rowBase:()=>Sy,rowSelected:()=>Ey,scrollContext:()=>py,scrollContextTable:()=>fy,stickyColFoot:()=>by,stickyColHead:()=>vy,summaryAdjust:()=>cy,summaryHeading:()=>ly,summaryItem:()=>sy,summaryTotal:()=>uy,summaryWrapper:()=>my,tableBase:()=>Ay,tbody:()=>xy,tfoot:()=>ky,thead:()=>wy,typeData:()=>ay,typeSummary:()=>iy,utility:()=>dy});var s={};r.r(s),r.d(s,{base:()=>Uw,baseIcon:()=>qw,baseSmIcon:()=>Gw,inverse:()=>Xw,leftIcon:()=>Qw,linkLg:()=>Ww,linkSm:()=>Vw,primary:()=>Kw,secondary:()=>Yw,shimmer:()=>Zw});var c=r(664),u=r.n(c),d=r(36),p=r.n(d),f=r(556),h=r.n(f);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(null,arguments)}function g(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var y=r(660),v=r.n(y),b=r(313),w=r(436);const x=r(626).L;b.setFileScope("src/theme.css.ts","@paypalcorp/pp-react-theme");const k=(0,w.createTheme)(x,{size:{icon:{xs:"1.125rem",sm:"1.5rem",md:"2rem",lg:"3rem",xl:"4rem"},circle:{xs:"1.5rem",sm:"2rem",md:"3rem",lg:"4rem",xl:"6rem"},tapTarget:{sm:"2.75rem",default:"3rem",lg:"4rem",tiny:"2rem",xs:"2.5rem"},pointerWidth:{sm:"0.75rem",lg:"1rem"},indicator:{xs:"0.1875rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem"},field:{sm:"3rem",lg:"4rem"},media:{xs:"22rem",sm:"36rem",md:"47rem",lg:"64rem",xl:"72rem",xxl:"90rem"},pictogram:{sm:"6rem",md:"8.5rem",lg:"10rem"}},space:{0:"0rem",25:"0.125rem",50:"0.25rem",75:"0.375rem",100:"0.5rem",150:"0.75rem",200:"1rem",250:"1.25rem",300:"1.5rem",350:"1.75rem",400:"2rem",450:"2.25rem",500:"2.5rem",600:"3rem",700:"3.5rem",800:"4rem",900:"4.5rem",1e3:"5rem",1100:"5.5rem",1200:"6rem",tiny:"0.125rem",xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem",jumbo:"2rem"},elevation:{blurCurve:"1",blurSlope:"-1",blurBase:"0.625rem",opacity:"0.15",brightenFactor:"0.02",verticalOffsetRatio:"1",horizontalOffsetRatio:"0",level1:{yoffset:"0.0625rem",opacity:"0.08",blur:"0.75rem"},level2:{yoffset:"0.125rem",opacity:"0.1",blur:"0.875rem"},level3:{yoffset:"0.125rem",opacity:"0.1",blur:"1.125rem"}},motion:{timing:{x1:"0",y1:"0.9",x2:"0.3",y2:"1"},duration:{hover:"0.10s",action:"0.20s",arrive:"0.50s",depart:"0.30s",repeat:"1.30s",linger:"7.00s",enter:{small:"0.20s",medium:"0.30s",large:"0.50s"},exit:{small:"0.10s",medium:"0.20s",large:"0.20s"},move:{small:"0.20s",medium:"0.50s",large:"0.80s"},loop:{backForth:"0.50s",standard:"1.30s"},pause:{read:"7.00s",reveal:"4.00s"}},easing:{enter:{small:"0,0,0,1",medium:"0.05,0.7,0.1,1",large:"0.05,0.7,0.1,1"},exit:{small:"0.3,0,1,1",medium:"0.3,0,0.8,0.15",large:"0.3,0,0.8,0.15"},move:{small:"0.2,0,0,1",medium:"0.2,0,0,1",large:"0.2,0,0,1"},loop:{backForth:"0.2,0,0,1",standard:"0,0,1,1"}}},border:{thickness:{normal:"0.0625rem",emphasis:"0.125rem",focus:"0.1875rem",focusOutline:"0.375rem"},radius:{tiny:"0.125rem",xs:"0.25rem",sm:"0.375rem",md:"0.5rem",lg:"0.75rem",xl:"1rem",jumbo:"2rem",interactive:"50%"}},typography:{displayStrong:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displayMedium:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},display:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySmStrong:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySmMedium:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySm:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},headingLgStrong:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingLgMedium:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingLg:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSmStrong:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSmMedium:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSm:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},titleStrong:{family:"PayPalPlain-Bold",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},titleMedium:{family:"PayPalPlain-Medium",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},title:{family:"PayPalPlain-Regular",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},bodyStrong:{family:"PayPalPlain-Bold",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},bodyMedium:{family:"PayPalPlain-Medium",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},body:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},captionStrong:{family:"PayPalPlain-Bold",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},captionMedium:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},caption:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},linkLg:{family:"PayPalPlain-Medium",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",underline:"true",maxScaleFactor:"2"},linkSm:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",underline:"true",maxScaleFactor:"2"},tagStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},tagMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},tag:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataVizStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataVizMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataViz:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},buttonLg:{family:"PayPalPro-Black",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},buttonSm:{family:"PayPalPro-Black",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},fieldLabelLg:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.5rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},fieldLabelSm:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},fieldValueXl:{family:"PayPalPlain-Regular",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},fieldValueLg:{family:"PayPalPlain-Regular",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},fieldValueSm:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.5rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},navigationBarStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},navigationBarMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},navigationBar:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},legalStrong:{family:"PayPalPlain-Bold",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},legalMedium:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},legal:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"}},blur:{interactive:"0.5rem"},color:{background:{main:"#f0f2f9",alt:"#f5f7fa",surface:"#ffffff",surfaceHover:"#edf0f2",surfaceActive:"#999999",highContrast:"#000000",mediumContrast:"#696969"},primary:{main:"#000000",mainHover:"#333333",mainActive:"#696969",contrast:"#ffffff",contrastHover:"#edf0f2",contrastActive:"#999999",medium:{main:"#333333",mainHover:"#000000",mainActive:"#696969",contrast:"#ffffff"}},secondary:{main:"#0066f5",medium:{main:"#e3f7ff",mainHover:"#008cff",mainActive:"#0057d9",contrast:"#002991"},mainHover:"#0038ba",mainActive:"#3db5ff",contrast:"#ffffff"},tertiary:{main:"#000000",mainHover:"#333333",mainActive:"#696969",contrast:"#f5f7fa",contrastHover:"#cccccc",contrastActive:"#808080"},featured:{main:"#60cdff",mainHover:"#008cff",mainActive:"#e3f7ff",contrast:"#000000"},promotion:{main:"#0057d9",mainHover:"#002991",mainActive:"#008cff",contrast:"#ffffff",medium:{main:"#60cdff",mainHover:"#008cff",mainActive:"#e3f7ff",contrast:"#000000"},light:{main:"#e3f7ff",mainHover:"#60cdff",mainActive:"#008cff",contrast:"#000000"},moderate:{main:"#b8e9ff",mainHover:"#e3f7ff",mainActive:"#60cdff",contrast:"#008cff"},soft:{main:"#e3f7ff",mainHover:"#b8e9ff",mainActive:"#60cdff",contrast:"#008cff"}},unselected:{main:"#696969",mainHover:"#333333",mainActive:"#999999",contrast:"#edf0f2"},selected:{main:"#000000",mainHover:"#333333",mainActive:"#696969",alt:"#0066f5",altHover:"#0038ba",altActive:"#3db5ff",contrast:"#ffffff"},selectedRange:{main:"#b8e9ff",mainHover:"#3db5ff",mainActive:"#0066f5",contrast:"#000000"},link:{main:"#0066f5",mainHover:"#0038ba",mainActive:"#3db5ff",contrast:"#ffffff",contrastHover:"#b8e9ff",contrastActive:"#3db5ff",alt:"#808080",altHover:"#808080",altActive:"#696969"},overlay:{main:"rgba(0, 0, 0, 0.55)",mainHover:"rgba(0, 0, 0, 0.5)",mainActive:"rgba(0, 0, 0, 0.1)",contrast:"#ffffff"},overlayInverse:{main:"rgba(255, 255, 255, 0.7)",mainHover:"rgba(255, 255, 255, 0.9)",mainActive:"rgba(255, 255, 255, 0.5)",contrast:"#000000"},accent1:{main:"#0066f5",contrast:"#ffffff"},accent2:{main:"#60cdff",contrast:"#000000"},accent3:{main:"#002991",contrast:"#ffffff"},accent4:{main:"#1a1a1a",contrast:"#ffffff"},error:{main:"#c31526",mainHover:"#9f111f",mainActive:"#e9585f",contrast:"#ffffff",medium:{main:"#f7d0d1",mainHover:"#e9585f",mainActive:"#c31526",contrast:"#770a0a"}},warning:{main:"#ffaa00",mainHover:"#aa7100",mainActive:"#ffdb93",alt:"#d08b00",contrast:"#000000",medium:{main:"#fff5e1",mainHover:"#ffdb93",mainActive:"#ffaa00",contrast:"#785000"}},success:{main:"#008556",mainHover:"#006b51",mainActive:"#0ac886",contrast:"#ffffff",medium:{main:"#e6faee",mainHover:"#73e6ab",mainActive:"#00a86d",contrast:"#005243"}},system:{main:"#696969",mainHover:"#333333",mainActive:"#999999",contrast:"#ffffff"},info:{main:"#cccccc",mainHover:"#808080",mainActive:"#f5f7fa",contrast:"#000000"},specialty:{main:"#4422bf",mainHover:"#1d0088",mainActive:"#9b80ff",contrast:"#ffffff",medium:{main:"#efebff",mainHover:"#b5a0ff",mainActive:"#7a57f9",contrast:"#1d0088"}},dataViz:{empty:"#edf0f2",value1:"#0066f5",value2:"#e3f7ff"},structure:{borderHighContrast:"#999999",borderLowContrast:"#cccccc",divider:"rgba(0, 0, 0, 0.1)",focus:"#0066f5",scrim:"rgba(0, 0, 0, 0.4)",shimmer:"#f0f2f9",shimmerInverse:"#808080",sheen:"rgba(255, 255, 255, 0.7)",shadow:"#000000",focusOutline:"#0066f5",errorOutline:"#c31526"}}},"ppui_theme_tokens");b.endFileScope(),b.setFileScope("src/darkTheme.css.ts","@paypalcorp/pp-react-theme"),(0,w.createTheme)(x,{size:{icon:{xs:"1.125rem",sm:"1.5rem",md:"2rem",lg:"3rem",xl:"4rem"},circle:{xs:"1.5rem",sm:"2rem",md:"3rem",lg:"4rem",xl:"6rem"},tapTarget:{sm:"2.75rem",default:"3rem",lg:"4rem",tiny:"2rem",xs:"2.5rem"},pointerWidth:{sm:"0.75rem",lg:"1rem"},indicator:{xs:"0.1875rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem"},field:{sm:"3rem",lg:"4rem"},media:{xs:"22rem",sm:"36rem",md:"47rem",lg:"64rem",xl:"72rem",xxl:"90rem"},pictogram:{sm:"6rem",md:"8.5rem",lg:"10rem"}},space:{0:"0rem",25:"0.125rem",50:"0.25rem",75:"0.375rem",100:"0.5rem",150:"0.75rem",200:"1rem",250:"1.25rem",300:"1.5rem",350:"1.75rem",400:"2rem",450:"2.25rem",500:"2.5rem",600:"3rem",700:"3.5rem",800:"4rem",900:"4.5rem",1e3:"5rem",1100:"5.5rem",1200:"6rem",tiny:"0.125rem",xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem",jumbo:"2rem"},elevation:{blurCurve:"1",blurSlope:"-1",blurBase:"0.625rem",opacity:"0.15",brightenFactor:"0.02",verticalOffsetRatio:"1",horizontalOffsetRatio:"0",level1:{yoffset:"0.0625rem",opacity:"0.08",blur:"0.75rem"},level2:{yoffset:"0.125rem",opacity:"0.1",blur:"0.875rem"},level3:{yoffset:"0.125rem",opacity:"0.1",blur:"1.125rem"}},motion:{timing:{x1:"0",y1:"0.9",x2:"0.3",y2:"1"},duration:{hover:"0.10s",action:"0.20s",arrive:"0.50s",depart:"0.30s",repeat:"1.30s",linger:"7.00s",enter:{small:"0.20s",medium:"0.30s",large:"0.50s"},exit:{small:"0.10s",medium:"0.20s",large:"0.20s"},move:{small:"0.20s",medium:"0.50s",large:"0.80s"},loop:{backForth:"0.50s",standard:"1.30s"},pause:{read:"7.00s",reveal:"4.00s"}},easing:{enter:{small:"0,0,0,1",medium:"0.05,0.7,0.1,1",large:"0.05,0.7,0.1,1"},exit:{small:"0.3,0,1,1",medium:"0.3,0,0.8,0.15",large:"0.3,0,0.8,0.15"},move:{small:"0.2,0,0,1",medium:"0.2,0,0,1",large:"0.2,0,0,1"},loop:{backForth:"0.2,0,0,1",standard:"0,0,1,1"}}},border:{thickness:{normal:"0.0625rem",emphasis:"0.125rem",focus:"0.1875rem",focusOutline:"0.375rem"},radius:{tiny:"0.125rem",xs:"0.25rem",sm:"0.375rem",md:"0.5rem",lg:"0.75rem",xl:"1rem",jumbo:"2rem",interactive:"50%"}},typography:{displayStrong:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displayMedium:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},display:{family:"PayPalPro-Black",size:"4rem",weight:"400",lineHeight:"3.625rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySmStrong:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySmMedium:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},displaySm:{family:"PayPalPro-Black",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.04em",maxScaleFactor:"1.25"},headingLgStrong:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingLgMedium:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingLg:{family:"PayPalPro-Black",size:"2rem",weight:"400",lineHeight:"2.25rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSmStrong:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSmMedium:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},headingSm:{family:"PayPalPro-Black",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},titleStrong:{family:"PayPalPlain-Bold",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},titleMedium:{family:"PayPalPlain-Medium",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},title:{family:"PayPalPlain-Regular",size:"1rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},bodyStrong:{family:"PayPalPlain-Bold",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},bodyMedium:{family:"PayPalPlain-Medium",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},body:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},captionStrong:{family:"PayPalPlain-Bold",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},captionMedium:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},caption:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},linkLg:{family:"PayPalPlain-Medium",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",underline:"true",maxScaleFactor:"2"},linkSm:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",underline:"true",maxScaleFactor:"2"},tagStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},tagMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},tag:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataVizStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataVizMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},dataViz:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},buttonLg:{family:"PayPalPro-Black",size:"0.875rem",weight:"400",lineHeight:"1.125rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},buttonSm:{family:"PayPalPro-Black",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},fieldLabelLg:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.5rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},fieldLabelSm:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1.25rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},fieldValueXl:{family:"PayPalPlain-Regular",size:"2.5rem",weight:"400",lineHeight:"2.75rem",letterSpacing:"-0.02em",maxScaleFactor:"1.5"},fieldValueLg:{family:"PayPalPlain-Regular",size:"1.5rem",weight:"400",lineHeight:"2rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},fieldValueSm:{family:"PayPalPlain-Regular",size:"0.875rem",weight:"400",lineHeight:"1.5rem",letterSpacing:"-0.02em",maxScaleFactor:"2"},navigationBarStrong:{family:"PayPalPlain-Bold",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},navigationBarMedium:{family:"PayPalPlain-Medium",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},navigationBar:{family:"PayPalPlain-Regular",size:"0.625rem",weight:"400",lineHeight:"0.75rem",letterSpacing:"0.03em",maxScaleFactor:"2"},legalStrong:{family:"PayPalPlain-Bold",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},legalMedium:{family:"PayPalPlain-Medium",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"},legal:{family:"PayPalPlain-Regular",size:"0.75rem",weight:"400",lineHeight:"1rem",letterSpacing:"-0.01em",maxScaleFactor:"2"}},blur:{interactive:"0.5rem"},color:{background:{main:"#474747",alt:"#474747",surface:"#000000",surfaceHover:"#1a1a1a",surfaceActive:"#333333",highContrast:"#ffffff",mediumContrast:"#999999"},primary:{main:"#60cdff",mainHover:"#b8e9ff",mainActive:"#3db5ff",contrast:"#000000",contrastHover:"#0066f5",contrastActive:"#008cff",medium:{main:"#333333",mainHover:"#000000",mainActive:"#696969",contrast:"#ffffff"}},secondary:{main:"#60cdff",medium:{main:"#e3f7ff",mainHover:"#008cff",mainActive:"#0057d9",contrast:"#002991"},mainHover:"#b8e9ff",mainActive:"#3db5ff",contrast:"#ffffff"},tertiary:{main:"#ffffff",mainHover:"#f5f7fa",mainActive:"#edf0f2",contrast:"#000000",contrastHover:"#333333",contrastActive:"#1a1a1a"},featured:{main:"#60cdff",mainHover:"#3db5ff",mainActive:"#008cff",contrast:"#000000"},promotion:{main:"#0057d9",mainHover:"#0066f5",mainActive:"#0038ba",contrast:"#ffffff",medium:{main:"#002991",mainHover:"#0057d9",mainActive:"#0038ba",contrast:"#cccccc"},light:{main:"#e3f7ff",mainHover:"#b8e9ff",mainActive:"#60cdff",contrast:"#000000"},moderate:{main:"#b8e9ff",mainHover:"#e3f7ff",mainActive:"#60cdff",contrast:"#008cff"},soft:{main:"#e3f7ff",mainHover:"#b8e9ff",mainActive:"#60cdff",contrast:"#008cff"}},unselected:{main:"#999999",mainHover:"#ffffff",mainActive:"#edf0f2",contrast:"#333333"},selected:{main:"#ffffff",mainHover:"#60cdff",mainActive:"#0066f5",alt:"#60cdff",altHover:"#60cdff",altActive:"#3db5ff",contrast:"#000000"},selectedRange:{main:"#b8e9ff",mainHover:"#60cdff",mainActive:"#3db5ff",contrast:"#000000"},link:{main:"#3db5ff",mainHover:"#60cdff",mainActive:"#b8e9ff",contrast:"#000000",contrastHover:"#000000",contrastActive:"#1a1a1a",alt:"#cccccc",altHover:"#cccccc",altActive:"#ffffff"},overlay:{main:"rgba(0, 0, 0, 0.55)",mainHover:"rgba(0, 0, 0, 0.4)",mainActive:"rgba(0, 0, 0, 0.7)",contrast:"#ffffff"},overlayInverse:{main:"rgba(0, 0, 0, 0.7)",mainHover:"rgba(0, 0, 0, 0.4)",mainActive:"rgba(0, 0, 0, 0.7)",contrast:"#000000"},accent1:{main:"#0066f5",contrast:"#ffffff"},accent2:{main:"#60cdff",contrast:"#000000"},accent3:{main:"#ffffff",contrast:"#002991"},accent4:{main:"#000000",contrast:"#3db5ff"},error:{main:"#e9585f",mainHover:"#f09c9f",mainActive:"#ee2c3f",contrast:"#ffffff",medium:{main:"#f7d0d1",mainHover:"#f09c9f",mainActive:"#e9585f",contrast:"#000000"}},warning:{main:"#ffdb93",mainHover:"#ffc042",mainActive:"#ffaa00",alt:"#aa7100",contrast:"#1a1a1a",medium:{main:"#fff5e1",mainHover:"#fff5e1",mainActive:"#ffe9be",contrast:"#000000"}},success:{main:"#0ac886",mainHover:"#73e6ab",mainActive:"#00a86d",contrast:"#1a1a1a",medium:{main:"#cbf8dd",mainHover:"#e6faee",mainActive:"#73e6ab",contrast:"#000000"}},system:{main:"#696969",mainHover:"#808080",mainActive:"#474747",contrast:"#ffffff"},info:{main:"#edf0f2",mainHover:"#f5f7fa",mainActive:"#cccccc",contrast:"#000000"},specialty:{main:"#9b80ff",mainHover:"#b5a0ff",mainActive:"#7a57f9",contrast:"#ffffff",medium:{main:"#dcd2ff",mainHover:"#efebff",mainActive:"#b5a0ff",contrast:"#000000"}},dataViz:{empty:"#edf0f2",value1:"#0066f5",value2:"#e3f7ff"},structure:{borderHighContrast:"#999999",borderLowContrast:"#cccccc",divider:"rgba(255, 255, 255, 0.06)",focus:"#3db5ff",scrim:"rgba(0, 0, 0, 0.4)",shimmer:"#edf0f2",shimmerInverse:"#808080",sheen:"rgba(255, 255, 255, 0.7)",shadow:"#000000",focusOutline:"#0066f5",errorOutline:"#c31526"}}},"ppui_dark_theme_tokens"),b.endFileScope();var _=["theme","className","children"],S=function(e){var t=e.theme,r=void 0===t?k:t,n=e.className,a=e.children,i=g(e,_);return v().createElement("div",m({className:"ppui-theme ".concat(r," ").concat(n||"")},i),a)},E="22rem",C="36rem",$="47rem",A="64rem",T="72rem",O="90rem",P=r(699);const z=P.Tr,F=P._s;function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function R(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}function I(e,t,r){return(t=R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,R(n.key),n)}}var M,D,H=function(){return"undefined"!=typeof window},B=function(){return"undefined"!=typeof document},j=(M=function(e,t,r,n){var a,i;return null!==(a=null!==(i=r[t])&&void 0!==i?i:r["".concat(e).concat(t)])&&void 0!==a?a:"function"==typeof n?n(e,t,r):n},D="sysColor",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return M.apply(void 0,[D].concat(t))}),W={fore:"contrast",back:"main",hover:"mainHover",active:"mainActive"},V={main:{familyName:"background",fore:"mediumContrast",back:"main"},contrast:{familyName:"background",fore:"highContrast",back:"main"},surface:{familyName:"background",fore:"mediumContrast",back:"surface",hover:"surfaceHover",active:"surfaceActive"},primary:W,primaryInverse:{familyName:"primary",fore:"main",back:"contrast",hover:"contrastHover",active:"contrastActive"},secondary:W,tertiary:W,featured:W,unselected:W,selected:W,linkMain:W,linkAlt:W,overlay:W,accent1:W,accent2:W,accent3:W,accent4:W,error:W,warning:W,success:W,system:W,info:W,specialty:W},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=V[t],n=r.familyName,a=void 0===n?t:n,i=r.fore,o=r.back,l=r.hover,s=r.active,c=e.color[a];return I(I(I(I(I(I({},F.main,c[i]),F.background,c[o]),F.hoverMain,c[i]),F.hoverBack,c[l]),F.activeMain,c[i]),F.activeBack,c[s])},q=1060,G=1090,K=/([+-]?\d*\.?\d*)([a-z%]*)?/,Y=function(e,t){var r;if("number"==typeof e)return{unit:t,value:e};var n=e.match(K);return{value:parseFloat(e),unit:null!==(r=n&&n[2])&&void 0!==r?r:t}},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r=Y(e,"px"),n=r.unit,a=r.value;return"rem"===n?a*t:a},Z=function(){for(var e="",t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t,r){t&&"string"==typeof t&&(e+=0===r?"".concat(t):" ".concat(t))})),e},Q=function(e,t){return"color-mix(in srgb, ".concat(e," ").concat(t,", transparent)")},J="ppui",ee={};function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J;ee[e]||(ee[e]=0);var t=++ee[e];return e===J?"".concat(t):"".concat(e).concat(t)}var re=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),I(this,"key",void 0),this.key=t}return t=e,(r=[{key:"IS_ARROW_LEFT",get:function(){return["ArrowLeft",e.NAME_ARROW_LEFT,e.CODE_ARROW_LEFT].includes(this.key)}},{key:"IS_ARROW_RIGHT",get:function(){return["ArrowRight",e.NAME_ARROW_RIGHT,e.CODE_ARROW_RIGHT].includes(this.key)}},{key:"IS_ARROW_UP",get:function(){return["ArrowUp",e.NAME_ARROW_UP,e.CODE_ARROW_UP].includes(this.key)}},{key:"IS_ARROW_DOWN",get:function(){return["ArrowDown",e.NAME_ARROW_DOWN,e.CODE_ARROW_DOWN].includes(this.key)}},{key:"IS_ENTER",get:function(){return[e.NAME_ENTER,e.CODE_ENTER].includes(this.key)}},{key:"IS_SPACEBAR",get:function(){return[e.NAME_SPACE,e.CODE_SPACE].includes(this.key)}},{key:"IS_TAB",get:function(){return[e.NAME_TAB,e.CODE_TAB].includes(this.key)}},{key:"IS_ESC",get:function(){return["Escape",e.NAME_ESC,e.CODE_ESC].includes(this.key)}},{key:"IS_HOME",get:function(){return[e.NAME_HOME,e.CODE_HOME].includes(this.key)}},{key:"IS_END",get:function(){return[e.NAME_END,e.CODE_END].includes(this.key)}},{key:"IS_BACKSPACE",get:function(){return[e.NAME_BACKSPACE,e.CODE_BACKSPACE].includes(this.key)}},{key:"IS_DELETE",get:function(){return[e.NAME_DELETE,e.CODE_DELETE].includes(this.key)}},{key:"IS_SIDE_NAVIGATION",get:function(){return this.IS_ARROW_LEFT||this.IS_ARROW_RIGHT||this.IS_END||this.IS_HOME}},{key:"IS_ARROW_KEY",get:function(){return this.IS_ARROW_LEFT||this.IS_ARROW_RIGHT||this.IS_ARROW_UP||this.IS_ARROW_DOWN}}])&&L(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();I(re,"CODE_ARROW_UP",38),I(re,"CODE_ARROW_DOWN",40),I(re,"CODE_ARROW_LEFT",37),I(re,"CODE_ARROW_RIGHT",39),I(re,"CODE_ENTER",13),I(re,"CODE_SPACE",32),I(re,"CODE_ESC",27),I(re,"CODE_TAB",9),I(re,"CODE_CAPS_LOCK",20),I(re,"CODE_HOME",36),I(re,"CODE_END",35),I(re,"CODE_BACKSPACE",8),I(re,"CODE_DELETE",46),I(re,"NAME_ARROW_UP","Up"),I(re,"NAME_ARROW_DOWN","Down"),I(re,"NAME_ARROW_LEFT","Left"),I(re,"NAME_ARROW_RIGHT","Right"),I(re,"NAME_ENTER","Enter"),I(re,"NAME_SPACE"," "),I(re,"NAME_ESC","Esc"),I(re,"NAME_TAB","Tab"),I(re,"NAME_HOME","Home"),I(re,"NAME_END","End"),I(re,"NAME_BACKSPACE","Backspace"),I(re,"NAME_DELETE","Delete");var ne=["as","children","className"];function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ie=function(e){if(null===e||"object"!==N(e))return e;var t=new e.constructor;for(var r in e)e.hasOwnProperty(r)&&(t[r]=ie(e[r]));return t},oe=function(e,t){if(t){var r=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(r,"ig");return e.replace(n,"<strong>$&</strong>")}return e},le=function(e){var t=e.as,r=void 0===t?"span":t,n=e.children,a=e.className,i=g(e,ne);return n?v().createElement(r,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:a},i),n):null};b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-screen-reader");const[se,ce]=(ue={position:"absolute",clip:"rect(1px, 1px, 1px, 1px)",padding:0,border:0,width:"1px",height:"1px",overflow:"hidden"},[(0,w.style)(ue,"screenreader"),ue]);var ue;b.endFileScope();var de=["as","className","children"],pe=function(e){var t=e.as,r=void 0===t?"div":t,n=e.className,a=e.children,i=g(e,de);return v().createElement(r,m({className:Z(se,n)},i,{"data-ppui":"true"}),a)};function fe(e,t){return[(0,w.style)(e,t),e]}b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-shimmer");const he=`cubic-bezier(${x.motion.easing.loop.standard})`,me=(0,w.keyframes)({"0%":{backgroundPosition:"100% 0"},"100%":{backgroundPosition:"-100% 0"}},"shimmer_animation"),[ge,ye]=fe({backgroundColor:x.color.structure.shimmer,border:`${x.border.thickness.normal} solid transparent`,backgroundImage:`linear-gradient(\n to right,\n ${x.color.structure.shimmer} 0%,\n ${x.color.structure.sheen} 50%,\n ${x.color.structure.shimmer} 100%\n )`,backgroundPosition:"100% 0",backgroundSize:"200%",animation:`${me} ${x.motion.duration.loop.standard}\n ${he} infinite`},"shimmer_base"),[ve,be]=fe({backgroundColor:x.color.structure.shimmerInverse,backgroundImage:`linear-gradient(\n to right,\n ${x.color.structure.shimmerInverse} 0%,\n ${x.color.structure.sheen} 50%,\n ${x.color.structure.shimmerInverse} 100%\n )`},"shimmer_inverse"),[we,xe]=fe({borderRadius:x.border.radius.lg,width:"100%",height:"100%"},"shimmer_default");b.endFileScope();var ke=["as","isInverse","className","hasStyleDefaults","children"],_e=function(e){var t=e.as,r=void 0===t?"div":t,n=e.isInverse,a=e.className,i=e.hasStyleDefaults,o=void 0===i||i,l=e.children,s=g(e,ke),c=Z(ge,n&&ve,o&&we,a);return v().createElement(r,m({className:c},s,{"data-ppui":"true"}),v().createElement(pe,{as:"span","data-ppui":"true"},l))};function Se(e,t){return[(0,w.style)(e,t),e]}b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text");const Ee=e=>`${e}, "Helvetica Neue", Arial, sans-serif`,Ce=(0,w.style)({margin:0,padding:0},"text_override_default"),[$e,Ae]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.body.family),fontSize:x.typography.body.size,lineHeight:x.typography.body.lineHeight,fontWeight:x.typography.body.weight,letterSpacing:x.typography.body.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.body.size}, calc(${x.typography.body.size}*${x.typography.body.maxScaleFactor}))`,lineHeight:`min(${x.typography.body.lineHeight}, calc(${x.typography.body.lineHeight}*${x.typography.body.maxScaleFactor}))`}}},"text-body"),[Te,Oe]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.bodyMedium.family),fontSize:x.typography.bodyMedium.size,lineHeight:x.typography.bodyMedium.lineHeight,fontWeight:x.typography.bodyMedium.weight,letterSpacing:x.typography.bodyMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.bodyMedium.size}, calc(${x.typography.bodyMedium.size}*${x.typography.bodyMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.bodyMedium.lineHeight}, calc(${x.typography.bodyMedium.lineHeight}*${x.typography.bodyMedium.maxScaleFactor}))`}}},"text-body_medium"),[Pe,ze]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.bodyStrong.family),fontSize:x.typography.bodyStrong.size,lineHeight:x.typography.bodyStrong.lineHeight,fontWeight:x.typography.bodyStrong.weight,letterSpacing:x.typography.bodyStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.bodyStrong.size}, calc(${x.typography.bodyStrong.size}*${x.typography.bodyStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.bodyStrong.lineHeight}, calc(${x.typography.bodyStrong.lineHeight}*${x.typography.bodyStrong.maxScaleFactor}))`}}},"text-body_strong"),[Fe,Ne]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.caption.family),fontSize:x.typography.caption.size,lineHeight:x.typography.caption.lineHeight,fontWeight:x.typography.caption.weight,letterSpacing:x.typography.caption.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.caption.size}, calc(${x.typography.caption.size}*${x.typography.caption.maxScaleFactor}))`,lineHeight:`min(${x.typography.caption.lineHeight}, calc(${x.typography.caption.lineHeight}*${x.typography.caption.maxScaleFactor}))`}}},"text-caption"),[Re,Ie]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.captionMedium.family),fontSize:x.typography.captionMedium.size,lineHeight:x.typography.captionMedium.lineHeight,fontWeight:x.typography.captionMedium.weight,letterSpacing:x.typography.captionMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.captionMedium.size}, calc(${x.typography.captionMedium.size}*${x.typography.captionMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.captionMedium.lineHeight}, calc(${x.typography.captionMedium.lineHeight}*${x.typography.captionMedium.maxScaleFactor}))`}}},"text-caption_medium"),[Le,Me]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.captionStrong.family),fontSize:x.typography.captionStrong.size,lineHeight:x.typography.captionStrong.lineHeight,fontWeight:x.typography.captionStrong.weight,letterSpacing:x.typography.captionStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.captionStrong.size}, calc(${x.typography.captionStrong.size}*${x.typography.captionStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.captionStrong.lineHeight}, calc(${x.typography.captionStrong.lineHeight}*${x.typography.captionStrong.maxScaleFactor}))`}}},"text-caption_strong"),[De,He]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.linkLg.family),fontSize:x.typography.linkLg.size,lineHeight:x.typography.linkLg.lineHeight,fontWeight:x.typography.linkLg.weight,letterSpacing:x.typography.linkLg.letterSpacing,textDecoration:x.typography.linkLg.underline?"underline":"none","@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.linkLg.size}, calc(${x.typography.linkLg.size}*${x.typography.linkLg.maxScaleFactor}))`,lineHeight:`min(${x.typography.linkLg.lineHeight}, calc(${x.typography.linkLg.lineHeight}*${x.typography.linkLg.maxScaleFactor}))`}}},"text-link_lg"),[Be,je]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.linkSm.family),fontSize:x.typography.linkSm.size,lineHeight:x.typography.linkSm.lineHeight,fontWeight:x.typography.linkSm.weight,letterSpacing:x.typography.linkSm.letterSpacing,textDecoration:x.typography.linkSm.underline?"underline":"none","@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.linkSm.size}, calc(${x.typography.linkSm.size}*${x.typography.linkSm.maxScaleFactor}))`,lineHeight:`min(${x.typography.linkSm.lineHeight}, calc(${x.typography.linkSm.lineHeight}*${x.typography.linkSm.maxScaleFactor}))`}}},"text-link_sm"),[We,Ve]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.tag.family),fontSize:x.typography.tag.size,lineHeight:x.typography.tag.lineHeight,fontWeight:x.typography.tag.weight,letterSpacing:x.typography.tag.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.tag.size}, calc(${x.typography.tag.size}*${x.typography.tag.maxScaleFactor}))`,lineHeight:`min(${x.typography.tag.lineHeight}, calc(${x.typography.tag.lineHeight}*${x.typography.tag.maxScaleFactor}))`}}},"text-tag"),[Ue,qe]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.tagMedium.family),fontSize:x.typography.tagMedium.size,lineHeight:x.typography.tagMedium.lineHeight,fontWeight:x.typography.tagMedium.weight,letterSpacing:x.typography.tagMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.tagMedium.size}, calc(${x.typography.tagMedium.size}*${x.typography.tagMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.tagMedium.lineHeight}, calc(${x.typography.tagMedium.lineHeight}*${x.typography.tagMedium.maxScaleFactor}))`}}},"text-tag_medium"),[Ge,Ke]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.tagStrong.family),fontSize:x.typography.tagStrong.size,lineHeight:x.typography.tagStrong.lineHeight,fontWeight:x.typography.tagStrong.weight,letterSpacing:x.typography.tagStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.tagStrong.size}, calc(${x.typography.tagStrong.size}*${x.typography.tagStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.tagStrong.lineHeight}, calc(${x.typography.tagStrong.lineHeight}*${x.typography.tagStrong.maxScaleFactor}))`}}},"text-tag_strong"),[Ye,Xe]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.dataViz.family),fontSize:x.typography.dataViz.size,lineHeight:x.typography.dataViz.lineHeight,fontWeight:x.typography.dataViz.weight,letterSpacing:x.typography.dataViz.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.dataViz.size}, calc(${x.typography.dataViz.size}*${x.typography.dataViz.maxScaleFactor}))`,lineHeight:`min(${x.typography.dataViz.lineHeight}, calc(${x.typography.dataViz.lineHeight}*${x.typography.dataViz.maxScaleFactor}))`}}},"text-data_viz"),[Ze,Qe]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.dataVizMedium.family),fontSize:x.typography.dataVizMedium.size,lineHeight:x.typography.dataVizMedium.lineHeight,fontWeight:x.typography.dataVizMedium.weight,letterSpacing:x.typography.dataVizMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.dataVizMedium.size}, calc(${x.typography.dataVizMedium.size}*${x.typography.dataVizMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.dataVizMedium.lineHeight}, calc(${x.typography.dataVizMedium.lineHeight}*${x.typography.dataVizMedium.maxScaleFactor}))`}}},"text-data_viz_medium"),[Je,et]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.dataVizStrong.family),fontSize:x.typography.dataVizStrong.size,lineHeight:x.typography.dataVizStrong.lineHeight,fontWeight:x.typography.dataVizStrong.weight,letterSpacing:x.typography.dataVizStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.dataVizStrong.size}, calc(${x.typography.dataVizStrong.size}*${x.typography.dataVizStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.dataVizStrong.lineHeight}, calc(${x.typography.dataVizStrong.lineHeight}*${x.typography.dataVizStrong.maxScaleFactor}))`}}},"text-data_viz_strong"),[tt,rt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.title.family),fontSize:x.typography.title.size,lineHeight:x.typography.title.lineHeight,fontWeight:x.typography.title.weight,letterSpacing:x.typography.title.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.title.size}, calc(${x.typography.title.size}*${x.typography.title.maxScaleFactor}))`,lineHeight:`min(${x.typography.title.lineHeight}, calc(${x.typography.title.lineHeight}*${x.typography.title.maxScaleFactor}))`}}},"text-title"),[nt,at]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.titleMedium.family),fontSize:x.typography.titleMedium.size,lineHeight:x.typography.titleMedium.lineHeight,fontWeight:x.typography.titleMedium.weight,letterSpacing:x.typography.titleMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.titleMedium.size}, calc(${x.typography.titleMedium.size}*${x.typography.titleMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.titleMedium.lineHeight}, calc(${x.typography.titleMedium.lineHeight}*${x.typography.titleMedium.maxScaleFactor}))`}}},"text-title_medium"),[it,ot]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.titleStrong.family),fontSize:x.typography.titleStrong.size,lineHeight:x.typography.titleStrong.lineHeight,fontWeight:x.typography.titleStrong.weight,letterSpacing:x.typography.titleStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.titleStrong.size}, calc(${x.typography.titleStrong.size}*${x.typography.titleStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.titleStrong.lineHeight}, calc(${x.typography.titleStrong.lineHeight}*${x.typography.titleStrong.maxScaleFactor}))`}}},"text-title_strong"),[lt,st]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.headingSm.family),fontSize:x.typography.headingSm.size,lineHeight:x.typography.headingSm.lineHeight,fontWeight:x.typography.headingSm.weight,letterSpacing:x.typography.headingSm.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.headingSm.size}, calc(${x.typography.headingSm.size}*${x.typography.headingSm.maxScaleFactor}))`,lineHeight:`min(${x.typography.headingSm.lineHeight}, calc(${x.typography.headingSm.lineHeight}*${x.typography.headingSm.maxScaleFactor}))`}}},"text-heading_sm"),[ct,ut]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.headingSmMedium.family),fontSize:x.typography.headingSmMedium.size,lineHeight:x.typography.headingSmMedium.lineHeight,fontWeight:x.typography.headingSmMedium.weight,letterSpacing:x.typography.headingSmMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.headingSmMedium.size}, calc(${x.typography.headingSmMedium.size}*${x.typography.headingSmMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.headingSmMedium.lineHeight}, calc(${x.typography.headingSmMedium.lineHeight}*${x.typography.headingSmMedium.maxScaleFactor}))`}}},"text-heading_sm_medium"),[dt,pt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.headingSmStrong.family),fontSize:x.typography.headingSmStrong.size,lineHeight:x.typography.headingSmStrong.lineHeight,fontWeight:x.typography.headingSmStrong.weight,letterSpacing:x.typography.headingSmStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.headingSmStrong.size}, calc(${x.typography.headingSmStrong.size}*${x.typography.headingSmStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.headingSmStrong.lineHeight}, calc(${x.typography.headingSmStrong.lineHeight}*${x.typography.headingSmStrong.maxScaleFactor}))`}}},"text-heading_sm_strong"),[ft,ht]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.headingLgStrong.family),fontSize:x.typography.headingLgStrong.size,lineHeight:x.typography.headingLgStrong.lineHeight,fontWeight:x.typography.headingLgStrong.weight,letterSpacing:x.typography.headingLgStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.headingLgStrong.size}, calc(${x.typography.headingLgStrong.size}*${x.typography.headingLgStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.headingLgStrong.lineHeight}, calc(${x.typography.headingLgStrong.lineHeight}*${x.typography.headingLgStrong.maxScaleFactor}))`}}},"text-heading_lg_strong"),[mt,gt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.headingLgMedium.family),fontSize:x.typography.headingLgMedium.size,lineHeight:x.typography.headingLgMedium.lineHeight,fontWeight:x.typography.headingLgMedium.weight,letterSpacing:x.typography.headingLgMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.headingLgMedium.size}, calc(${x.typography.headingLgMedium.size}*${x.typography.headingLgMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.headingLgMedium.lineHeight}, calc(${x.typography.headingLgMedium.lineHeight}*${x.typography.headingLgMedium.maxScaleFactor}))`}}},"text-heading_lg_medium"),[yt,vt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.headingLg.family),fontSize:x.typography.headingLg.size,lineHeight:x.typography.headingLg.lineHeight,fontWeight:x.typography.headingLg.weight,letterSpacing:x.typography.headingLg.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.headingLg.size}, calc(${x.typography.headingLg.size}*${x.typography.headingLg.maxScaleFactor}))`,lineHeight:`min(${x.typography.headingLg.lineHeight}, calc(${x.typography.headingLg.lineHeight}*${x.typography.headingLg.maxScaleFactor}))`}}},"text-heading_lg"),[bt,wt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.display.family),fontSize:x.typography.display.size,lineHeight:x.typography.display.lineHeight,fontWeight:x.typography.display.weight,letterSpacing:x.typography.display.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.display.size}, calc(${x.typography.display.size}*${x.typography.display.maxScaleFactor}))`,lineHeight:`min(${x.typography.display.lineHeight}, calc(${x.typography.display.lineHeight}*${x.typography.display.maxScaleFactor}))`}}},"text-display"),[xt,kt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.displayMedium.family),fontSize:x.typography.displayMedium.size,lineHeight:x.typography.displayMedium.lineHeight,fontWeight:x.typography.displayMedium.weight,letterSpacing:x.typography.displayMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.displayMedium.size}, calc(${x.typography.displayMedium.size}*${x.typography.displayMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.displayMedium.lineHeight}, calc(${x.typography.displayMedium.lineHeight}*${x.typography.displayMedium.maxScaleFactor}))`}}},"text-display_medium"),[_t,St]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.displayStrong.family),fontSize:x.typography.displayStrong.size,lineHeight:x.typography.displayStrong.lineHeight,fontWeight:x.typography.displayStrong.weight,letterSpacing:x.typography.displayStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.displayStrong.size}, calc(${x.typography.displayStrong.size}*${x.typography.displayStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.displayStrong.lineHeight}, calc(${x.typography.displayStrong.lineHeight}*${x.typography.displayStrong.maxScaleFactor}))`}}},"text-display_strong"),[Et,Ct]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.displaySm.family),fontSize:x.typography.displaySm.size,lineHeight:x.typography.displaySm.lineHeight,fontWeight:x.typography.displaySm.weight,letterSpacing:x.typography.displaySm.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.displaySm.size}, calc(${x.typography.displaySm.size}*${x.typography.displaySm.maxScaleFactor}))`,lineHeight:`min(${x.typography.displaySm.lineHeight}, calc(${x.typography.displaySm.lineHeight}*${x.typography.displaySm.maxScaleFactor}))`}}},"text-display_sm"),[$t,At]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.displaySmMedium.family),fontSize:x.typography.displaySmMedium.size,lineHeight:x.typography.displaySmMedium.lineHeight,fontWeight:x.typography.displaySmMedium.weight,letterSpacing:x.typography.displaySmMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.displaySmMedium.size}, calc(${x.typography.displaySmMedium.size}*${x.typography.displaySmMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.displaySmMedium.lineHeight}, calc(${x.typography.displaySmMedium.lineHeight}*${x.typography.displaySmMedium.maxScaleFactor}))`}}},"text-display_sm_medium"),[Tt,Ot]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.displaySmStrong.family),fontSize:x.typography.displaySmStrong.size,lineHeight:x.typography.displaySmStrong.lineHeight,fontWeight:x.typography.displaySmStrong.weight,letterSpacing:x.typography.displaySmStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.displaySmStrong.size}, calc(${x.typography.displaySmStrong.size}*${x.typography.displaySmStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.displaySmStrong.lineHeight}, calc(${x.typography.displaySmStrong.lineHeight}*${x.typography.displaySmStrong.maxScaleFactor}))`}}},"text-display_sm_strong"),[Pt,zt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.legal.family),fontSize:x.typography.legal.size,lineHeight:x.typography.legal.lineHeight,fontWeight:x.typography.legal.weight,letterSpacing:x.typography.legal.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.legal.size}, calc(${x.typography.legal.size}*${x.typography.legal.maxScaleFactor}))`,lineHeight:`min(${x.typography.legal.lineHeight}, calc(${x.typography.legal.lineHeight}*${x.typography.legal.maxScaleFactor}))`}}},"text-legal"),[Ft,Nt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.legalMedium.family),fontSize:x.typography.legalMedium.size,lineHeight:x.typography.legalMedium.lineHeight,fontWeight:x.typography.legalMedium.weight,letterSpacing:x.typography.legalMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.legalMedium.size}, calc(${x.typography.legalMedium.size}*${x.typography.legalMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.legalMedium.lineHeight}, calc(${x.typography.legalMedium.lineHeight}*${x.typography.legalMedium.maxScaleFactor}))`}}},"text-legal_medium"),[Rt,It]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.legalStrong.family),fontSize:x.typography.legalStrong.size,lineHeight:x.typography.legalStrong.lineHeight,fontWeight:x.typography.legalStrong.weight,letterSpacing:x.typography.legalStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.legalStrong.size}, calc(${x.typography.legalStrong.size}*${x.typography.legalStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.legalStrong.lineHeight}, calc(${x.typography.legalStrong.lineHeight}*${x.typography.legalStrong.maxScaleFactor}))`}}},"text-legal_strong"),[Lt,Mt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.navigationBar.family),fontSize:x.typography.navigationBar.size,lineHeight:x.typography.navigationBar.lineHeight,fontWeight:x.typography.navigationBar.weight,letterSpacing:x.typography.navigationBar.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.navigationBar.size}, calc(${x.typography.navigationBar.size}*${x.typography.navigationBar.maxScaleFactor}))`,lineHeight:`min(${x.typography.navigationBar.lineHeight}, calc(${x.typography.navigationBar.lineHeight}*${x.typography.navigationBar.maxScaleFactor}))`}}},"text-navigation_bar"),[Dt,Ht]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.navigationBarMedium.family),fontSize:x.typography.navigationBarMedium.size,lineHeight:x.typography.navigationBarMedium.lineHeight,fontWeight:x.typography.navigationBarMedium.weight,letterSpacing:x.typography.navigationBarMedium.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.navigationBarMedium.size}, calc(${x.typography.navigationBarMedium.size}*${x.typography.navigationBarMedium.maxScaleFactor}))`,lineHeight:`min(${x.typography.navigationBarMedium.lineHeight}, calc(${x.typography.navigationBarMedium.lineHeight}*${x.typography.navigationBarMedium.maxScaleFactor}))`}}},"text-navigation_bar_medium"),[Bt,jt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.navigationBarStrong.family),fontSize:x.typography.navigationBarStrong.size,lineHeight:x.typography.navigationBarStrong.lineHeight,fontWeight:x.typography.navigationBarStrong.weight,letterSpacing:x.typography.navigationBarStrong.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.navigationBarStrong.size}, calc(${x.typography.navigationBarStrong.size}*${x.typography.navigationBarStrong.maxScaleFactor}))`,lineHeight:`min(${x.typography.navigationBarStrong.lineHeight}, calc(${x.typography.navigationBarStrong.lineHeight}*${x.typography.navigationBarStrong.maxScaleFactor}))`}}},"text-navigation_bar_strong"),[Wt,Vt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.buttonSm.family),fontSize:x.typography.buttonSm.size,lineHeight:x.typography.buttonSm.lineHeight,fontWeight:x.typography.buttonSm.weight,letterSpacing:x.typography.buttonSm.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.buttonSm.size}, calc(${x.typography.buttonSm.size}*${x.typography.buttonSm.maxScaleFactor}))`,lineHeight:`min(${x.typography.buttonSm.lineHeight}, calc(${x.typography.buttonSm.lineHeight}*${x.typography.buttonSm.maxScaleFactor}))`}}},"text-button_sm"),[Ut,qt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.buttonLg.family),fontSize:x.typography.buttonLg.size,lineHeight:x.typography.buttonLg.lineHeight,fontWeight:x.typography.buttonLg.weight,letterSpacing:x.typography.buttonLg.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.buttonLg.size}, calc(${x.typography.buttonLg.size}*${x.typography.buttonLg.maxScaleFactor}))`,lineHeight:`min(${x.typography.buttonLg.lineHeight}, calc(${x.typography.buttonLg.lineHeight}*${x.typography.buttonLg.maxScaleFactor}))`}}},"text-button_lg"),[Gt,Kt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.mediumContrast),fontFamily:Ee(x.typography.fieldLabelSm.family),fontSize:x.typography.fieldLabelSm.size,lineHeight:x.typography.fieldLabelSm.lineHeight,fontWeight:x.typography.fieldLabelSm.weight,letterSpacing:x.typography.fieldLabelSm.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.fieldLabelSm.size}, calc(${x.typography.fieldLabelSm.size}*${x.typography.fieldLabelSm.maxScaleFactor}))`,lineHeight:`min(${x.typography.fieldLabelSm.lineHeight}, calc(${x.typography.fieldLabelSm.lineHeight}*${x.typography.fieldLabelSm.maxScaleFactor}))`}}},"text-fieldLabel_sm"),[Yt,Xt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.mediumContrast),fontFamily:Ee(x.typography.fieldLabelLg.family),fontSize:x.typography.fieldLabelLg.size,lineHeight:x.typography.fieldLabelLg.lineHeight,fontWeight:x.typography.fieldLabelLg.weight,letterSpacing:x.typography.fieldLabelLg.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.fieldLabelLg.size}, calc(${x.typography.fieldLabelLg.size}*${x.typography.fieldLabelLg.maxScaleFactor}))`,lineHeight:`min(${x.typography.fieldLabelLg.lineHeight}, calc(${x.typography.fieldLabelLg.lineHeight}*${x.typography.fieldLabelLg.maxScaleFactor}))`}}},"text-fieldLabel_lg"),[Zt,Qt]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.fieldValueSm.family),fontSize:x.typography.fieldValueSm.size,lineHeight:x.typography.fieldValueSm.lineHeight,fontWeight:x.typography.fieldValueSm.weight,letterSpacing:x.typography.fieldValueSm.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.fieldValueSm.size}, calc(${x.typography.fieldValueSm.size}*${x.typography.fieldValueSm.maxScaleFactor}))`,lineHeight:`min(${x.typography.fieldValueSm.lineHeight}, calc(${x.typography.fieldValueSm.lineHeight}*${x.typography.fieldValueSm.maxScaleFactor}))`}}},"text-fieldValue_sm"),[Jt,er]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.fieldValueLg.family),fontSize:x.typography.fieldValueLg.size,lineHeight:x.typography.fieldValueLg.lineHeight,fontWeight:x.typography.fieldValueLg.weight,letterSpacing:x.typography.fieldValueLg.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.fieldValueLg.size}, calc(${x.typography.fieldValueLg.size}*${x.typography.fieldValueLg.maxScaleFactor}))`,lineHeight:`min(${x.typography.fieldValueLg.lineHeight}, calc(${x.typography.fieldValueLg.lineHeight}*${x.typography.fieldValueLg.maxScaleFactor}))`}}},"text-fieldValue_lg"),[tr,rr]=Se({color:(0,w.fallbackVar)(F.main,x.color.background.highContrast),fontFamily:Ee(x.typography.fieldValueXl.family),fontSize:x.typography.fieldValueXl.size,lineHeight:x.typography.fieldValueXl.lineHeight,fontWeight:x.typography.fieldValueXl.weight,letterSpacing:x.typography.fieldValueXl.letterSpacing,"@media":{[`screen and (max-width: ${$})`]:{fontSize:`min(${x.typography.fieldValueXl.size}, calc(${x.typography.fieldValueXl.size}*${x.typography.fieldValueXl.maxScaleFactor}))`,lineHeight:`min(${x.typography.fieldValueXl.lineHeight}, calc(${x.typography.fieldValueXl.lineHeight}*${x.typography.fieldValueXl.maxScaleFactor}))`}}},"text-fieldValue_xl"),[nr,ar]=Se({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:1},"text-clamp_line_1"),[ir,or]=Se({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:2},"text-clamp_line_2"),[lr,sr]=Se({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:3},"text-clamp_line_3"),[cr,ur]=Se({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:4},"text-clamp_line_4"),[dr,pr]=Se({...xe,height:x.typography.display.lineHeight},"text-shimmer_display_lg"),[fr,hr]=Se({...xe,height:x.typography.displayStrong.lineHeight},"text-shimmer_display_lg_strong"),[mr,gr]=Se({...xe,height:x.typography.displayMedium.lineHeight},"text-shimmer_display_lg_medium"),[yr,vr]=Se({...xe,height:x.typography.displaySm.lineHeight},"text-shimmer_display_sm"),[br,wr]=Se({...xe,height:x.typography.displaySmStrong.lineHeight},"text-shimmer_display_sm_strong"),[xr,kr]=Se({...xe,height:x.typography.displaySmMedium.lineHeight},"text-shimmer_display_sm_medium"),[_r,Sr]=Se({...xe,height:x.typography.headingLg.lineHeight},"text-shimer_heading_lg"),[Er,Cr]=Se({...xe,height:x.typography.headingLgStrong.lineHeight},"text-shimer_heading_lg_strong"),[$r,Ar]=Se({...xe,height:x.typography.headingLgMedium.lineHeight},"text-shimer_heading_lg_medium"),[Tr,Or]=Se({...xe,height:x.typography.headingSm.lineHeight},"text-shimmer_heading_sm"),[Pr,zr]=Se({...xe,height:x.typography.headingSmStrong.lineHeight},"text-shimmer_heading_sm_strong"),[Fr,Nr]=Se({...xe,height:x.typography.headingSmMedium.lineHeight},"text-shimmer_heading_sm_medium"),[Rr,Ir]=Se({...xe,height:x.typography.body.lineHeight},"text-shimmer_body"),[Lr,Mr]=Se({...xe,height:x.typography.bodyStrong.lineHeight},"text-shimmer_body_strong"),[Dr,Hr]=Se({...xe,height:x.typography.bodyMedium.lineHeight},"text-shimmer_body_medium"),[Br,jr]=Se({...xe,height:x.typography.caption.lineHeight},"text-shimmer_caption"),[Wr,Vr]=Se({...xe,height:x.typography.captionStrong.lineHeight},"text-shimmer_caption_strong"),[Ur,qr]=Se({...xe,height:x.typography.captionMedium.lineHeight},"text-shimmer_caption_medium"),[Gr,Kr]=Se({...xe,height:x.typography.title.lineHeight},"text-shimmer_title"),[Yr,Xr]=Se({...xe,height:x.typography.titleStrong.lineHeight},"text-shimmer_title_strong"),[Zr,Qr]=Se({...xe,height:x.typography.titleMedium.lineHeight},"text-shimmer_title_medium");b.endFileScope();var Jr=["size","as","type","className","isLoading","isInverse","children"],en=function(e){var t=e.size,r=void 0===t?"lg":t,n=e.as,a=e.type,i=void 0===a?"regular":a,o=e.className,l=e.isLoading,s=e.isInverse,c=e.children,u=g(e,Jr),d={sm:{strong:dt,medium:ct,regular:lt},lg:{strong:ft,medium:mt,regular:yt}},p={sm:{strong:Pr,medium:Fr,regular:Tr},lg:{strong:Er,medium:$r,regular:_r}};if(l)return v().createElement(_e,m({className:Z(p[r][i],!n&&Ce,o),hasStyleDefaults:!1,isInverse:s},u,{"data-ppui":"true"}),c);var f=Z(d[r][i],!n&&Ce,o),h="lg"===r?"h2":"h3";return v().createElement(n||h,m({className:f,"data-ppui-info":"heading-text_7.2.2__8.12.0"},u),c)},tn=["as","type","className","isLoading","isInverse","clampAtLine","children"],rn=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.className,i=e.isLoading,o=e.isInverse,l=e.clampAtLine,s=e.children,c=g(e,tn);if(i){var u=Z({strong:Lr,medium:Dr,regular:Rr}[n],!t&&Ce,a);return v().createElement(_e,m({className:u,hasStyleDefaults:!1,isInverse:o},c,{"data-ppui":"true"}),s)}var d=Z({strong:Pe,medium:Te,regular:$e}[n],!t&&Ce,1===l&&nr,2===l&&ir,3===l&&lr,4===l&&cr,a);return v().createElement(t||"p",m({className:d,"data-ppui-info":"body-text_7.2.2__8.12.0"},c),s)},nn=["as","type","clampAtLine","className","isLoading","isInverse","children"],an=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.clampAtLine,i=e.className,o=e.isLoading,l=e.isInverse,s=e.children,c=g(e,nn),u={strong:Wr,medium:Ur,regular:Br};if(o)return v().createElement(_e,m({className:Z(u[n],!t&&Ce,i),hasStyleDefaults:!1,isInverse:l},c,{"data-ppui":"true"}),s);var d=Z({strong:Le,medium:Re,regular:Fe}[n],!t&&Ce,1===a&&nr,2===a&&ir,3===a&&lr,4===a&&cr,i);return v().createElement(t||"p",m({className:d,"data-ppui-info":"caption-text_7.2.2__8.12.0"},c),s)},on=["as","type","className","isLoading","isInverse","children"],ln=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.className,i=e.isLoading,o=e.isInverse,l=e.children,s=g(e,on),c={strong:Yr,medium:Zr,regular:Gr};if(i)return v().createElement(_e,m({className:Z(c[n],!t&&Ce,a),hasStyleDefaults:!1,isInverse:o},s,{"data-ppui":"true"}),l);var u=Z({strong:it,medium:nt,regular:tt}[n],!t&&Ce,a);return v().createElement(t||"h4",m({className:u,"data-ppui-info":"title-text_7.2.2__8.12.0"},s),l)};function sn(e,t){return[(0,w.style)(e,t),e]}b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-utils");const cn={ppuiEaseInOut:`cubic-bezier(${x.motion.timing.x1},${x.motion.timing.y1}, ${x.motion.timing.x2},${x.motion.timing.y2})`,ppuiEaseLoopStandard:`cubic-bezier(${x.motion.easing.loop.standard})`,ppuiEaseEnterSmall:`cubic-bezier(${x.motion.easing.enter.small})`,ppuiEaseExitSmall:`cubic-bezier(${x.motion.easing.exit.small})`,ppuiEaseMoveSmall:`cubic-bezier(${x.motion.easing.move.small})`},[un,dn]=sn({animationTimingFunction:cn.ppuiEaseInOut},"motion_animation"),[pn,fn]=sn({transitionTimingFunction:cn.ppuiEaseInOut},"motion_transition"),[hn,mn]=sn({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"ellipsis"),gn=(0,w.keyframes)({"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide_right"),yn=(0,w.keyframes)({"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},"slide_left");function vn(e,t){return[(0,w.style)(e,t),e]}b.endFileScope(),b.setFileScope("src/focusStyles.css.ts","@paypalcorp/pp-react-utils");const bn=`calc(${x.border.thickness.normal} + ${x.border.thickness.emphasis})`,wn=`calc(2*${bn})`,xn=x.color.structure.focusOutline,kn=`calc(${x.border.thickness.normal} * 2)`,_n=`calc(${x.border.thickness.normal} * 2)`,Sn=`calc(${bn} + ${bn})`,En=`calc(${x.border.thickness.emphasis} + ${x.border.thickness.normal})`,[Cn,$n]=vn({content:"",position:"absolute",top:0,left:0,right:0,border:"none",boxShadow:`0 0 0 ${wn} ${xn}`,borderRadius:"inherit",width:"100%",height:"100%",pointerEvents:"none"},"focus_after"),[An,Tn]=vn({content:"",position:"absolute",top:x.border.thickness.normal,left:x.border.thickness.normal,border:`${bn} solid ${x.color.structure.focus}`,boxShadow:`0 0 0 ${wn} ${xn}`,borderRadius:"inherit",textIndent:x.border.thickness.normal,width:`calc(100% - ${kn})`,height:`calc(100% - ${_n})`,pointerEvents:"none"},"offset_focus_after"),[On,Pn]=vn({boxShadow:`0 0 0 ${bn} ${x.color.structure.focus},\n 0 0 0 ${Sn} ${x.color.structure.focusOutline}`,outline:`${bn} solid transparent`,borderRadius:"inherit"},"focus_inline"),[zn,Fn]=vn({outline:`${x.border.thickness.emphasis} solid ${x.color.structure.focus}`,boxShadow:`0 0 0 ${x.border.thickness.emphasis} ${x.color.background.surface}`,outlineOffset:x.border.thickness.emphasis},"focus_offset_element"),[Nn,Rn]=vn({boxShadow:`0 0 0 ${En} inset ${x.color.structure.focus}`},"focus_inline_element");b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-accordion");const{ppuiEaseMoveSmall:In}=cn,Ln=(0,w.style)({...Ae,color:x.color.background.highContrast},"accordion_bodyText"),Mn=(0,w.style)({...Ne,color:x.color.background.highContrast},"accordion_captionText"),Dn=(0,w.style)({...rt,color:x.color.background.highContrast},"accordion_headingText"),Hn=(0,w.style)({...ze,color:x.color.background.highContrast},"accordion_titleText"),Bn=((0,w.style)({width:"100%",borderCollapse:"collapse",backgroundColor:x.color.background.surface,borderRadius:x.border.radius.xl},"accordion_base"),(0,w.style)({border:"none"},"accordion_row"),(0,w.style)([Ln,{textAlign:"start",maxHeight:0,overflowY:"hidden",transition:`max-height ${x.motion.duration.move.small} ${In}`}],"accordion_body"));(0,w.style)([Mn],"accordion_body_small"),(0,w.style)({maxHeight:"125rem"},"body_open"),(0,w.globalStyle)(`${Bn} p`,{margin:0}),(0,w.style)({padding:`${x.space[50]} ${x.space[200]} ${x.space[200]}`},"accordion_inner_body");const jn=(0,w.style)({cursor:"pointer",minHeight:"4rem",wordBreak:"break-word",padding:x.space[200],paddingInlineEnd:x.space[600],position:"relative",background:"none",border:"none",width:"100%",display:"flex",justifyContent:"center",flexDirection:"column",textAlign:"start",":focus":Rn},"accordion_header");(0,w.style)([jn,Hn],"accordion_header_small"),(0,w.style)([jn,Dn],"accordion_header_large"),(0,w.style)({color:x.color.background.mediumContrast,paddingTop:x.space[50]},"accordion_subheader"),(0,w.style)({color:x.color.background.mediumContrast,position:"absolute",right:x.space[200],transition:`transform ${x.motion.duration.move.small} ${In}`,selectors:{"[dir=rtl] &":{left:x.space[200],right:"auto"}}},"accordion_svg_icon"),(0,w.style)({transform:"rotate(180deg)"},"accordion_icon_rotate"),b.endFileScope();var Wn=v().createContext(null);function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var qn=function(e,t,r){if(e&&e.currencyFormatter){var n=e.currencyFormatter({currency:r}),a=function(e){var t={mask:Number},r="",n="";return e.forEach((function(e,a){var i=e.type,o=e.value;switch(i){case"currencySymbol":case"currency":0===a?r=o:n=o;break;case"group":t.thousandsSeparator=o;break;case"fraction":t.scale=o.length;break;case"decimal":t.radix=o}})),{intlMaskOptions:t,intlCurrencyPrefix:r,intlCurrencySuffix:n}}(n.formatToParts(1e3)),i=a.intlMaskOptions,o=a.intlCurrencyPrefix,l=a.intlCurrencySuffix;return 0===n.resolvedOptions().maximumFractionDigits&&(i.padFractionalZeros=!1,i.scale=0),{currencyMaskOptions:Un(Un({padFractionalZeros:!0},i),t),intlCurrencyPrefix:o,intlCurrencySuffix:l}}return{currencyMaskOptions:t}};b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-icons");const Gn={sysColorBackgroundMain:x.color.background.main,sysColorBackgroundAlt:x.color.background.alt,sysColorBackgroundSurface:x.color.background.surface,sysColorBackgroundSurfaceHover:x.color.background.surfaceHover,sysColorBackgroundSurfaceActive:x.color.background.surfaceActive,sysColorBackgroundHighContrast:x.color.background.highContrast,sysColorBackgroundMediumContrast:x.color.background.mediumContrast,sysColorPrimaryMain:x.color.primary.main,sysColorPrimaryMainHover:x.color.primary.mainHover,sysColorPrimaryMainActive:x.color.primary.mainActive,sysColorPrimaryContrast:x.color.primary.contrast,sysColorPrimaryContrastHover:x.color.primary.contrastHover,sysColorPrimaryContrastActive:x.color.primary.contrastActive,sysColorSecondaryMain:x.color.secondary.main,sysColorSecondaryMainHover:x.color.secondary.mainHover,sysColorSecondaryMainActive:x.color.secondary.mainActive,sysColorSecondaryContrast:x.color.secondary.contrast,sysColorTertiaryMain:x.color.tertiary.main,sysColorTertiaryMainHover:x.color.tertiary.mainHover,sysColorTertiaryMainActive:x.color.tertiary.mainActive,sysColorTertiaryContrast:x.color.tertiary.contrast,sysColorFeaturedMain:x.color.featured.main,sysColorFeaturedMainHover:x.color.featured.mainHover,sysColorFeaturedMainActive:x.color.featured.mainActive,sysColorFeaturedContrast:x.color.featured.contrast,sysColorUnselectedMain:x.color.unselected.main,sysColorUnselectedMainHover:x.color.unselected.mainHover,sysColorUnselectedMainActive:x.color.unselected.mainActive,sysColorUnselectedContrast:x.color.unselected.contrast,sysColorSelectedMain:x.color.selected.main,sysColorSelectedMainHover:x.color.selected.mainHover,sysColorSelectedMainActive:x.color.selected.mainActive,sysColorSelectedContrast:x.color.selected.contrast,sysColorSelectedRangeMain:x.color.selectedRange.main,sysColorSelectedRangeMainHover:x.color.selectedRange.mainHover,sysColorSelectedRangeMainActive:x.color.selectedRange.mainActive,sysColorSelectedRangeContrast:x.color.selectedRange.contrast,sysColorLinkMain:x.color.link.main,sysColorLinkMainHover:x.color.link.mainHover,sysColorLinkMainActive:x.color.link.mainActive,sysColorLinkAlt:x.color.link.alt,sysColorLinkAltHover:x.color.link.altHover,sysColorLinkAltActive:x.color.link.altActive,sysColorLinkContrast:x.color.link.contrast,sysColorLinkContrastHover:x.color.link.contrastHover,sysColorLinkContrastActive:x.color.link.contrastActive,sysColorAccent1Main:x.color.accent1.main,sysColorAccent1Contrast:x.color.accent1.contrast,sysColorAccent2Main:x.color.accent2.main,sysColorAccent2Contrast:x.color.accent2.contrast,sysColorAccent3Main:x.color.accent3.main,sysColorAccent3Contrast:x.color.accent3.contrast,sysColorAccent4Main:x.color.accent4.main,sysColorAccent4Contrast:x.color.accent4.contrast,sysColorErrorMain:x.color.error.main,sysColorErrorMainHover:x.color.error.mainHover,sysColorErrorMainActive:x.color.error.mainActive,sysColorErrorContrast:x.color.error.contrast,sysColorWarningMain:x.color.warning.main,sysColorWarningMainHover:x.color.warning.mainHover,sysColorWarningMainActive:x.color.warning.mainActive,sysColorWarningAlt:x.color.warning.alt,sysColorWarningContrast:x.color.warning.contrast,sysColorSuccessMain:x.color.success.main,sysColorSuccessMainHover:x.color.success.mainHover,sysColorSuccessMainActive:x.color.success.mainActive,sysColorSuccessContrast:x.color.success.contrast,sysColorSystemMain:x.color.system.main,sysColorSystemMainHover:x.color.system.mainHover,sysColorSystemMainActive:x.color.system.mainActive,sysColorSystemContrast:x.color.system.contrast,sysColorInfoMain:x.color.info.main,sysColorInfoMainHover:x.color.info.mainHover,sysColorInfoMainActive:x.color.info.mainActive,sysColorInfoContrast:x.color.info.contrast,sysColorSpecialtyMain:x.color.specialty.main,sysColorSpecialtyMainHover:x.color.specialty.mainHover,sysColorSpecialtyMainActive:x.color.specialty.mainActive,sysColorSpecialtyContrast:x.color.specialty.contrast},Kn=Gn.sysColorBackgroundHighContrast,Yn=(0,w.style)({speak:"none",aspectRatio:"1"},"icon_base"),Xn=((0,w.style)({display:"inline-block",width:x.size.icon.lg,height:x.size.icon.lg},"icon_background_base"),(0,w.style)({width:x.size.icon.xs,height:x.size.icon.xs},"icon_size_xs")),Zn=(0,w.style)({width:x.size.icon.sm,height:x.size.icon.sm},"icon_size_sm"),Qn=(0,w.style)({width:x.size.icon.md,height:x.size.icon.md},"icon_size_md"),Jn=(0,w.style)({width:x.size.icon.lg,height:x.size.icon.lg},"icon_size_lg"),ea=(0,w.style)({width:x.size.icon.xl,height:x.size.icon.xl},"icon_size_xl"),ta=(0,w.style)({speak:"none",display:"inline-block",aspectRatio:"1"},"icon_svg");(0,w.globalStyle)(`${ta} img, ${ta} svg`,{width:"100%",height:"100%",display:"block"}),b.endFileScope();var ra=["as","size","color","className","children"],na=function(e){var t=e.as,r=void 0===t?"span":t,n=e.size,a=void 0===n?"md":n,i=e.color,o=e.className,l=e.children,s=g(e,ra),c=Z(ta,"xs"===a&&Xn,"sm"===a&&Zn,"md"===a&&Qn,"lg"===a&&Jn,"xl"===a&&ea,o);return v().createElement(r,m({role:"img",style:i?function(e){var t=j(e,Gn,Kn);return{color:(0,w.fallbackVar)(F.main,t)}}(i):null,className:c,"data-ppui-info":"icons_9.8.2__8.12.0"},s),l)},aa=["svgElementRef"],ia=["svgElementRef"],oa=["svgElementRef"],la=["svgElementRef"],sa=["svgElementRef"],ca=["svgElementRef"],ua=["svgElementRef"],da=["svgElementRef"],pa=["svgElementRef"],fa=["svgElementRef"],ha=["svgElementRef"],ma=["svgElementRef"],ga=["svgElementRef"],ya=["svgElementRef"],va=["svgElementRef"],ba=["svgElementRef"],wa=["svgElementRef"],xa=["svgElementRef"],ka=["svgElementRef"],_a=["svgElementRef"],Sa=function(e){e.svgElementRef;var t=g(e,aa);return v().createElement(na,m({"aria-label":"arrow down sm icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 18",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M16.28 9.53l-6.75 5.75a.751.751 0 0 1-1.06 0L1.72 9.53a.75.75 0 1 1 1.06-1.06l5.47 4.47V3.25a.75.75 0 1 1 1.5 0v9.69l5.47-4.47a.75.75 0 1 1 1.06 1.06z","data-ppui":"true"})),e.children)},Ea=function(e){e.svgElementRef;var t=g(e,ia);return v().createElement(na,m({"aria-label":"arrow up sm icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 18",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M1.72 8.47l6.75-5.75a.75.75 0 0 1 1.06 0l6.75 5.75a.75.75 0 1 1-1.06 1.06L9.75 5.06v9.69a.75.75 0 1 1-1.5 0V5.06L2.78 9.53a.75.75 0 0 1-1.06-1.06z","data-ppui":"true"})),e.children)},Ca=function(e){e.svgElementRef;var t=g(e,oa);return v().createElement(na,m({"aria-label":"calendar icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M19.5 3h-2.25v-.75a.75.75 0 1 0-1.5 0V3h-7.5v-.75a.75.75 0 0 0-1.5 0V3H4.5A1.5 1.5 0 0 0 3 4.5v15A1.5 1.5 0 0 0 4.5 21h15a1.5 1.5 0 0 0 1.5-1.5v-15A1.5 1.5 0 0 0 19.5 3zM6.75 4.5v.75a.75.75 0 0 0 1.5 0V4.5h7.5v.75a.75.75 0 1 0 1.5 0V4.5h2.25v3h-15v-3h2.25zm12.75 15h-15V9h15v10.5zm-6.375-7.125a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0zm4.125 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0zM9 16.125a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0zm4.125 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0zm4.125 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0z","data-ppui":"true"})),e.children)},$a=function(e){e.svgElementRef;var t=g(e,la);return v().createElement(na,m({"aria-label":"checkmark background icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M16.28 9.22a.748.748 0 0 1 0 1.06l-5.25 5.25a.747.747 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l1.72 1.72 4.72-4.72a.75.75 0 0 1 1.06 0zM21.75 12A9.75 9.75 0 1 1 12 2.25 9.76 9.76 0 0 1 21.75 12zm-1.5 0A8.25 8.25 0 1 0 12 20.25 8.26 8.26 0 0 0 20.25 12z","data-ppui":"true"})),e.children)},Aa=function(e){e.svgElementRef;var t=g(e,sa);return v().createElement(na,m({"aria-label":"checkmark sm icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 18",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{fillRule:"evenodd",d:"M3.352 9.586l3.398 3.399 8.46-8.462a.763.763 0 0 1 1.08 1.079l-9 9a.761.761 0 0 1-1.08 0l-3.937-3.938a.763.763 0 1 1 1.079-1.078z",clipRule:"evenodd","data-ppui":"true"})),e.children)},Ta=function(e){e.svgElementRef;var t=g(e,ca);return v().createElement(na,m({"aria-label":"checkmark icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M21.53 7.28l-12 12a.75.75 0 0 1-1.06 0l-5.25-5.25a.75.75 0 0 1 1.06-1.06L9 17.69 20.47 6.22a.75.75 0 1 1 1.06 1.06z","data-ppui":"true"})),e.children)},Oa=function(e){e.svgElementRef;var t=g(e,ua);return v().createElement(na,m({"aria-label":"chevron down icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M20.03 9.53l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06L12 15.44l6.97-6.97a.75.75 0 0 1 1.06 1.06z","data-ppui":"true"})),e.children)},Pa=function(e){e.svgElementRef;var t=g(e,da);return v().createElement(na,m({"aria-label":"chevron right icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M17.03 12.53l-7.5 7.5a.751.751 0 0 1-1.06-1.06L15.44 12 8.47 5.03a.75.75 0 1 1 1.06-1.06l7.5 7.5a.752.752 0 0 1 0 1.06z","data-ppui":"true"})),e.children)},za=function(e){e.svgElementRef;var t=g(e,pa);return v().createElement(na,m({"aria-label":"chevron up icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M20.03 15.53a.75.75 0 0 1-1.06 0L12 8.56l-6.97 6.97a.75.75 0 1 1-1.06-1.06l7.5-7.5a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 0 1 0 1.06z","data-ppui":"true"})),e.children)},Fa=function(e){e.svgElementRef;var t=g(e,fa);return v().createElement(na,m({"aria-label":"close icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M19.28 18.22a.751.751 0 0 1-1.06 1.06L12 13.06l-6.22 6.22a.75.75 0 0 1-1.06-1.06L10.94 12 4.72 5.78a.75.75 0 1 1 1.06-1.06L12 10.94l6.22-6.22a.75.75 0 1 1 1.06 1.06L13.06 12l6.22 6.22z","data-ppui":"true"})),e.children)},Na=function(e){e.svgElementRef;var t=g(e,ha);return v().createElement(na,m({"aria-label":"critical icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M22.2 17.634L14.002 3.396a2.322 2.322 0 0 0-4.004 0L1.8 17.634a2.204 2.204 0 0 0 0 2.223A2.282 2.282 0 0 0 3.802 21h16.396a2.284 2.284 0 0 0 2-1.143 2.204 2.204 0 0 0 .002-2.223zm-1.3 1.472a.797.797 0 0 1-.701.394H3.802a.797.797 0 0 1-.702-.394.712.712 0 0 1 0-.723l8.2-14.238a.82.82 0 0 1 1.406 0l8.199 14.238a.712.712 0 0 1-.004.723zM11.25 13.5V9.75a.75.75 0 1 1 1.5 0v3.75a.75.75 0 0 1-1.5 0zm1.875 3.375a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0z","data-ppui":"true"})),e.children)},Ra=function(e){e.svgElementRef;var t=g(e,ma);return v().createElement(na,m({"aria-label":"decline icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M15.53 9.53L13.06 12l2.47 2.47a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 1 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.751.751 0 0 1 1.06 1.06zM21.75 12A9.75 9.75 0 1 1 12 2.25 9.76 9.76 0 0 1 21.75 12zm-1.5 0A8.25 8.25 0 1 0 12 20.25 8.26 8.26 0 0 0 20.25 12z","data-ppui":"true"})),e.children)},Ia=function(e){e.svgElementRef;var t=g(e,ga);return v().createElement(na,m({"aria-label":"edit icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M21.31 6.879l-4.188-4.19a1.5 1.5 0 0 0-2.122 0L3.44 14.25A1.487 1.487 0 0 0 3 15.31v4.19A1.5 1.5 0 0 0 4.5 21h4.19a1.485 1.485 0 0 0 1.06-.44L21.31 9a1.5 1.5 0 0 0 0-2.121zM8.69 19.5H4.5v-4.19l8.25-8.25 4.19 4.19-8.25 8.25zM18 10.19L13.81 6l2.25-2.25 4.19 4.189-2.25 2.25z","data-ppui":"true"})),e.children)},La=function(e){e.svgElementRef;var t=g(e,ya);return v().createElement(na,m({"aria-label":"hide icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M5.055 3.245a.75.75 0 1 0-1.11 1.01l1.804 1.984c-3.405 2.09-4.87 5.31-4.934 5.457a.75.75 0 0 0 0 .61c.032.074.827 1.834 2.592 3.6C5.759 18.255 8.73 19.5 12 19.5a11.93 11.93 0 0 0 4.882-1.015l2.062 2.27a.75.75 0 1 0 1.11-1.01L5.055 3.245zm4.437 7.11l3.907 4.299a3 3 0 0 1-3.907-4.299zM12 18c-2.886 0-5.407-1.05-7.493-3.117A12.482 12.482 0 0 1 2.344 12c.44-.824 1.843-3.13 4.439-4.63L8.47 9.222a4.5 4.5 0 0 0 5.968 6.563l1.381 1.518A10.501 10.501 0 0 1 12 18zm.563-8.947a.75.75 0 0 1 .28-1.473 4.515 4.515 0 0 1 3.635 3.997.75.75 0 0 1-.676.817.636.636 0 0 1-.07 0 .75.75 0 0 1-.75-.681 3.008 3.008 0 0 0-2.42-2.66zm10.62 3.252c-.04.089-.99 2.191-3.128 4.107a.752.752 0 0 1-1.068-.05.75.75 0 0 1 .068-1.068A12.447 12.447 0 0 0 21.66 12a12.485 12.485 0 0 0-2.168-2.885C17.407 7.05 14.886 6 12 6c-.608 0-1.215.048-1.815.147a.75.75 0 1 1-.248-1.48A12.562 12.562 0 0 1 12 4.5c3.27 0 6.24 1.243 8.593 3.595 1.765 1.765 2.56 3.527 2.592 3.601a.75.75 0 0 1 0 .61h-.002z","data-ppui":"true"})),e.children)},Ma=function(e){e.svgElementRef;var t=g(e,ba);return v().createElement(na,m({"aria-label":"refresh icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M22.5 5.25v4.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 1 1 0-1.5h2.569l-2.493-2.284-.024-.022a7.5 7.5 0 1 0-.156 10.76.75.75 0 0 1 1.031 1.09A8.947 8.947 0 0 1 12 21h-.124a9 9 0 1 1 6.476-15.375L21 8.044V5.25a.75.75 0 1 1 1.5 0z","data-ppui":"true"})),e.children)},Da=function(e){e.svgElementRef;var t=g(e,wa);return v().createElement(na,m({"aria-label":"search icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M21.53 20.47l-4.694-4.693a8.26 8.26 0 1 0-1.06 1.06l4.693 4.694a.75.75 0 0 0 1.062-1.061zM3.75 10.5a6.75 6.75 0 1 1 6.75 6.75 6.758 6.758 0 0 1-6.75-6.75z","data-ppui":"true"})),e.children)},Ha=function(e){e.svgElementRef;var t=g(e,xa);return v().createElement(na,m({"aria-label":"settings icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M12 7.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm8.25-2.797a7.39 7.39 0 0 0 0-.405l1.399-1.748a.749.749 0 0 0 .139-.662 10.05 10.05 0 0 0-1.02-2.46.75.75 0 0 0-.563-.37l-2.224-.247a7.458 7.458 0 0 0-.281-.281l-.262-2.23a.75.75 0 0 0-.37-.562c-.772-.447-1.6-.79-2.46-1.019a.75.75 0 0 0-.663.14L12.203 3.75h-.405L10.05 2.354a.75.75 0 0 0-.662-.139c-.862.23-1.69.573-2.46 1.02a.75.75 0 0 0-.37.563l-.247 2.227a8.514 8.514 0 0 0-.281.282l-2.23.256a.75.75 0 0 0-.562.369c-.447.772-.79 1.6-1.019 2.46a.75.75 0 0 0 .14.663l1.391 1.742v.405L2.354 13.95a.75.75 0 0 0-.139.662c.23.862.573 1.69 1.02 2.46a.75.75 0 0 0 .563.37l2.224.247c.093.097.186.191.28.281l.26 2.23a.75.75 0 0 0 .37.562c.772.447 1.6.79 2.46 1.019a.75.75 0 0 0 .663-.14l1.742-1.391c.135.004.27.004.405 0l1.748 1.399a.75.75 0 0 0 .662.139 10.05 10.05 0 0 0 2.46-1.02.75.75 0 0 0 .37-.563l.247-2.224c.097-.092.191-.186.281-.281l2.23-.262a.75.75 0 0 0 .562-.37 10.1 10.1 0 0 0 1.019-2.46.749.749 0 0 0-.14-.663l-1.391-1.742zm-1.51-.61c.017.271.017.543 0 .814a.75.75 0 0 0 .164.514l1.33 1.662a8.585 8.585 0 0 1-.584 1.406l-2.119.24a.75.75 0 0 0-.478.248c-.18.203-.373.395-.576.575a.75.75 0 0 0-.247.478l-.235 2.117c-.45.236-.921.432-1.407.584l-1.663-1.33a.75.75 0 0 0-.469-.164h-.044a6.903 6.903 0 0 1-.814 0 .75.75 0 0 0-.514.163l-1.667 1.331a8.585 8.585 0 0 1-1.406-.584l-.24-2.116a.75.75 0 0 0-.248-.478 6.949 6.949 0 0 1-.575-.576.75.75 0 0 0-.478-.247l-2.117-.236a8.561 8.561 0 0 1-.584-1.406l1.33-1.664a.75.75 0 0 0 .163-.513 6.93 6.93 0 0 1 0-.814.75.75 0 0 0-.163-.514l-1.33-1.666c.152-.485.348-.956.584-1.406l2.116-.24a.75.75 0 0 0 .478-.248 7.09 7.09 0 0 1 .575-.575.75.75 0 0 0 .249-.48l.235-2.115c.45-.236.921-.432 1.406-.584l1.664 1.33a.75.75 0 0 0 .513.163c.271-.016.543-.016.814 0a.75.75 0 0 0 .514-.163l1.666-1.33c.485.152.956.348 1.406.584l.24 2.116a.75.75 0 0 0 .248.478c.203.18.395.373.575.576a.75.75 0 0 0 .478.247l2.117.235c.236.45.432.921.584 1.407l-1.33 1.663a.75.75 0 0 0-.163.518h.003z","data-ppui":"true"})),e.children)},Ba=function(e){e.svgElementRef;var t=g(e,ka);return v().createElement(na,m({"aria-label":"view icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M23.185 11.696c-.032-.074-.827-1.835-2.592-3.6C18.241 5.742 15.27 4.5 12 4.5c-3.27 0-6.24 1.243-8.593 3.595C1.642 9.861.844 11.625.815 11.696a.75.75 0 0 0 0 .61c.032.074.827 1.834 2.592 3.6C5.759 18.256 8.73 19.5 12 19.5c3.27 0 6.24-1.243 8.593-3.594 1.765-1.766 2.56-3.526 2.592-3.6a.75.75 0 0 0 0-.61zM12 18c-2.886 0-5.407-1.05-7.493-3.117A12.511 12.511 0 0 1 2.344 12a12.499 12.499 0 0 1 2.163-2.883C6.593 7.05 9.114 6 12 6s5.407 1.05 7.493 3.117A12.507 12.507 0 0 1 21.661 12c-.676 1.262-3.62 6-9.661 6zm0-10.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.5a3 3 0 1 1 0-5.999A3 3 0 0 1 12 15z","data-ppui":"true"})),e.children)};b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-input");const{ellipsisName:ja,variables:Wa}=n,{ppuiEaseMoveSmall:Va}=Wa,Ua=`calc((${x.size.field.lg} - ${x.typography.fieldValueSm.lineHeight}) / 2)`,qa=`calc((${x.size.field.lg} - ${x.typography.fieldValueSm.lineHeight}) / 2)`,Ga=`calc(${x.size.field.lg} - ${x.space[100]} - ${x.typography.caption.lineHeight} - ${x.space[25]} - ${x.typography.fieldValueSm.lineHeight})`,Ka=`calc(${x.size.field.lg} - ${x.border.thickness.emphasis})`,Ya=(0,w.style)({...Kt,color:x.color.background.mediumContrast},"text-input_label"),Xa=(0,w.style)({...Ne,color:x.color.background.mediumContrast},"text-input_caption"),Za={...Qt,color:x.color.background.mediumContrast},Qa=(0,w.style)([Xa,{display:"flex",margin:`${x.space[50]} 0 0`}],"text-input_info"),Ja=(0,w.style)({textDecoration:"none",position:"absolute"},"text-input_field_icon"),ei=(0,w.style)([ja,Ya,{pointerEvents:"none",position:"absolute",top:x.space[100],transition:`font-size ${x.motion.duration.move.small} ${Va},\n top ${x.motion.duration.move.small} ${Va},\n backgroundColor ${x.motion.duration.move.small} ${Va}`,right:x.space[150],left:x.space[150],backgroundClip:"padding-box"}],"text-input_label"),ti=(0,w.style)({},"text-input_label_placeholder_shown_and_not_focused");(0,w.globalStyle)(`${ti}:placeholder-shown:not(:focus) ~ label`,{...Za,top:Ua,backgroundColor:"transparent",marginBottom:0});const ri=(0,w.style)([Qa,{display:"block",listStyle:"none",padding:`${x.space[25]} 0`,overflowWrap:"break-word"}],"text-input_helper_text"),ni=(0,w.style)([Qt,{padding:0,position:"relative",textAlign:"left",selectors:{"[dir='rtl'] &":{textAlign:"right"}}}],"text-input_base"),ai=(0,w.style)([Ja,{width:x.size.tapTarget.default,height:x.size.tapTarget.default,display:"flex",justifyContent:"center",alignItems:"center",top:x.space[100],right:x.space[100],left:"auto",selectors:{"[dir='rtl'] &":{left:x.space[100],right:"auto"}}}],"text-input_icon_right"),ii=(0,w.style)([Ja,{pointerEvents:"none",zIndex:1,inset:`${Ua} auto ${Ua} ${x.space[150]}`,color:x.color.background.mediumContrast,selectors:{"[dir='rtl'] &":{inset:`${Ua} ${x.space[150]} ${Ua} auto`}}}],"text-input_icon_left"),oi=(0,w.style)([Qt,{padding:`calc(${x.space[350]} + ${x.space[25]} - ${x.border.thickness.normal}) calc(${x.space[150]} - ${x.border.thickness.normal}) calc(${x.space[100]} + ${x.space[25]} - ${x.border.thickness.normal}) calc(${x.space[150]} - ${x.border.thickness.normal})`,textOverflow:"ellipsis",boxSizing:"border-box",width:"100%",border:`${x.color.structure.borderLowContrast} solid ${x.border.thickness.normal}`,borderRadius:x.border.radius.sm,backgroundColor:x.color.background.surface,margin:0,outline:"none",position:"relative",WebkitAppearance:"none",MozAppearance:"none",minHeight:x.size.field.lg,selectors:{"&::placeholder":{color:x.color.background.mediumContrast},"&:placeholder-shown:not(:focus)::-webkit-input-placeholder":{opacity:0,transition:`opacity ${x.motion.duration.move.small} ${Va}`},"&:placeholder-shown:not(:focus)::-moz-placeholder":{opacity:0,transition:`opacity ${x.motion.duration.move.small} ${Va}`},"&:first-line":{lineHeight:x.typography.fieldValueSm.lineHeight},"&::-ms-reveal, &::-ms-clear":{display:"none"},"&::-webkit-input-placeholder":{color:x.color.background.mediumContrast,opacity:1},"&:-moz-placeholder":{color:x.color.background.mediumContrast,opacity:1,transition:`opacity ${x.motion.duration.move.small} ${Va}`},"&:focus":Fn}}],"text-input_control"),li=(0,w.style)({padding:`calc(${x.space[250]} - ${x.border.thickness.normal}) calc(${x.space[150]} - ${x.border.thickness.normal}) calc(${x.space[250]} - ${x.border.thickness.normal}) calc(${x.space[150]} - ${x.border.thickness.normal})`,selectors:{"&:placeholder-shown:not(:focus)::placeholder":{opacity:1}}},"text-input_no_label_control"),si=(0,w.style)({border:`${x.border.thickness.emphasis} solid ${x.color.error.main}`,paddingTop:`calc(${x.space[350]} + ${x.space[25]} - ${x.border.thickness.emphasis})`,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`,paddingBottom:`calc(${x.space[100]} + ${x.space[25]} - ${x.border.thickness.emphasis})`,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`},"text-input_error_control"),ci=(0,w.style)({paddingRight:`calc(${x.size.tapTarget.default} - ${x.border.thickness.emphasis})`,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`,selectors:{"[dir='rtl'] &":{paddingLeft:`calc(${x.space[150]} + ${x.size.tapTarget.default} - ${x.border.thickness.emphasis})`,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_right"),ui=(0,w.style)({paddingLeft:`calc(${x.space[600]} - ${x.border.thickness.emphasis})`,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${x.space[600]} - ${x.border.thickness.emphasis})`,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_left"),di=(0,w.style)({paddingRight:`calc(${x.space[150]} + ${x.size.tapTarget.default} - ${x.border.thickness.emphasis})`,paddingLeft:`calc(${x.space[600]} - ${x.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${x.space[600]} - ${x.border.thickness.emphasis})`,paddingLeft:`calc(${x.space[150]} + ${x.size.tapTarget.default} - ${x.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_left_and_right"),pi=(0,w.style)({paddingTop:`calc(${Ua} - ${x.border.thickness.emphasis})`,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`,paddingBottom:`calc(${qa} - ${x.border.thickness.emphasis})`,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`},"text-input_no_label_error"),fi=(0,w.style)({paddingRight:`calc(${x.space[250]} + ${x.size.tapTarget.default} - ${x.border.thickness.normal})`,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${x.space[250]} + ${x.size.tapTarget.default} - ${x.border.thickness.normal})`,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.normal})`}}},"text-input_control_with_icon_right"),hi=(0,w.style)({paddingLeft:`calc(${x.space[600]} - ${x.border.thickness.normal})`,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${x.space[600]} - ${x.border.thickness.normal})`,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.normal})`}}},"text-input_control_with_icon_left"),mi=(0,w.style)({paddingLeft:`calc(${x.space[600]} - ${x.border.thickness.normal})`,paddingRight:`calc(${x.space[150]} + ${x.size.tapTarget.default} - ${x.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${x.space[600]} - ${x.border.thickness.normal})`,paddingLeft:`calc(${x.space[150]} + ${x.size.tapTarget.default} - ${x.border.thickness.normal})`}}},"text-input_control_with_icon_left_and_right"),gi=(0,w.style)({left:x.space[150],right:`calc(${x.space[150]} + ${x.size.tapTarget.default})`,selectors:{"[dir='rtl'] & ":{left:`calc(${x.space[150]} + ${x.size.tapTarget.default})`,right:x.space[150]}}},"text-input_label_with_icon_right"),yi=(0,w.style)({left:x.space[600],right:x.space[150],selectors:{"[dir='rtl'] & ":{right:x.space[600],left:x.space[150]}}},"text-input_label_with_icon_left"),vi=(0,w.style)([Qa,{alignItems:"center"}],"text-input_error_text"),bi=(0,w.style)({marginRight:x.space[50],alignSelf:"flex-start",flexShrink:"0",selectors:{"[dir='rtl'] & ":{marginLeft:x.space[50],marginRight:0}}},"text-input_error_icon"),wi=(0,w.style)([{color:x.color.error.main,marginLeft:0},bi],"text-input_error_icon"),xi=(0,w.style)([{color:x.color.success.main,marginLeft:"initial"},bi],"text-input_success_icon"),ki=(0,w.style)({listStyle:"none",padding:0,margin:0},"text-input_multi_line_error"),_i=(0,w.style)({position:"relative",display:"flex",backgroundColor:x.color.background.surface,padding:x.border.thickness.normal,":after":{content:" ",position:"absolute",height:"100%",width:"100%",top:0,left:0,border:`${x.border.thickness.normal} solid ${x.color.structure.borderLowContrast}`,borderRadius:x.border.radius.sm,pointerEvents:"none"},":focus-within":{borderRadius:x.border.radius.sm,...Fn}},"text-input_prefix_wrapper"),Si=(0,w.style)({padding:`${x.border.thickness.normal} ${x.border.thickness.emphasis}`,":after":{border:`${x.border.thickness.emphasis} solid ${x.color.error.main}`}},"text-input_prefix_wrapper_error"),Ei={whiteSpace:"nowrap",color:x.color.background.highContrast,padding:`calc(${x.space[350]} + ${x.space[25]} - ${x.border.thickness.normal}) ${x.space[25]} calc(${x.space[100]} - ${x.border.thickness.normal}) calc(${x.space[150]} - ${x.border.thickness.normal})`},Ci=(0,w.style)({border:"none",minHeight:Ka,":focus":{boxShadow:"none",outline:"none"}},"text-input_prefix_wrapper_control");(0,w.globalStyle)(`${Ci}:placeholder-shown:not(:focus) ~ div`,{opacity:0});const $i=(0,w.style)({order:-1,...Ei,selectors:{"[dir='rtl'] & ":{...Ei,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.normal})`,paddingLeft:x.space[25]}}},"text-input_prefix"),Ai=(0,w.style)({...Ei,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.normal})`,paddingLeft:x.space[25],selectors:{"[dir='rtl'] & ":{...Ei,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.normal})`,paddingRight:x.space[25]}}},"text-input_suffix"),Ti=(0,w.style)({paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`}}},"text-input_error_prefix"),Oi=(0,w.style)({paddingRight:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`}}},"text-input_error_suffix"),Pi=(0,w.style)({paddingTop:`calc(${Ua} - ${x.border.thickness.normal})`,paddingBottom:`calc(${qa} - ${x.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingTop:`calc(${Ua} - ${x.border.thickness.normal})`,paddingBottom:`calc(${qa} - ${x.border.thickness.normal})`}}},"text-input_no_label_suffix_or_prefix"),zi=(0,w.style)({paddingLeft:0,selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:x.space[150]}}},"text-input_prefix_wrapper_control_with_prefix"),Fi=(0,w.style)({paddingRight:0,selectors:{"[dir='rtl'] & ":{paddingLeft:0,paddingRight:x.space[150]}}},"text-input_prefix_wrapper_control_with_suffix"),Ni=(0,w.style)({paddingLeft:0,paddingRight:0,selectors:{"[dir='rtl'] & ":{paddingLeft:0,paddingRight:0}}},"text-input_prefix_wrapper_control_with_prefix_suffix"),Ri=(0,w.style)([Za,{position:"absolute",top:0,right:0,left:0,paddingTop:`calc(${Ua} + ${x.space[100]} + ${x.border.thickness.normal})`,paddingRight:x.space[150],paddingLeft:x.space[150],paddingBottom:`calc(${Ga} + ${x.border.thickness.normal})`,backgroundColor:x.color.background.surface,whiteSpace:"nowrap",selectors:{"[dir='rtl'] & ":{transform:`translateX(calc(${x.border.thickness.normal} * -1))`}}}],"text-display_placemat");(0,w.globalStyle)(`${Ri}& + input:focus`,{backgroundColor:"transparent"});const Ii=(0,w.style)({paddingTop:Ua},"text-display_no_label_placemat");b.endFileScope();var Li=["setFocus","className","inputClassName","labelClassName","successText","successIconAriaLabel","errorText","error","errorIconAriaLabel","helperText","value","name","id","label","isLabelHidden","placeholder","placemat","leftIcon","rightIcon","onChange","children","renderContent","removeBorderRadiusLeft","removeBorderRadiusRight","removeBorderRadiusBoth","dir"];function Mi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Hi=function(e){var t=e.messageId,r=e.helperText,n=e.errorText,a=e.errorIconAriaLabel,i=e.successText,o=e.successIconAriaLabel;if(n||i){var l,s,c,u=n||i,d=Array.isArray(u)?v().createElement("ul",{className:ki,"data-ppui":"true"},u.map((function(e,r){return v().createElement("li",{key:"msg".concat(t,"-").concat(r),"data-ppui":"true"},e)}))):u;if(n){var p={className:wi,role:"img","aria-label":a};s=v().createElement(Na,m({size:"sm"},p,{"data-ppui":"true"}))}if(!n){var f={className:xi,role:"img","aria-label":o};c=v().createElement($a,m({size:"sm"},f,{"data-ppui":"true"}))}return v().createElement("div",{className:vi,id:t,role:"alert","data-ppui":"true"},null!==(l=s)&&void 0!==l?l:c,d)}return r?Array.isArray(r)?v().createElement("ul",{className:ri,id:t,"data-ppui":"true"},r.map((function(e,r){return v().createElement("li",{key:"msg".concat(t,"-").concat(r),"data-ppui":"true"},e)}))):v().createElement("div",{className:ri,id:t,"data-ppui":"true"},r):null},Bi=function(e,t,r){return e?v().createElement("div",{className:Z("left"===t&&ii,"right"===t&&ai,r),key:"icon-".concat(t),"data-ppui":"true"},e):null},ji=function(e){var t=e.setFocus,r=e.className,n=e.inputClassName,a=e.labelClassName,i=e.successText,o=e.successIconAriaLabel,l=void 0===o?"Success":o,s=e.errorText,c=e.error,u=void 0===c?!!s:c,d=e.errorIconAriaLabel,p=void 0===d?"Error":d,f=e.helperText,h=e.value,m=e.name,y=e.id,b=void 0===y?"text-input-".concat(m):y,w=e.label,x=e.isLabelHidden,k=e.placeholder,_=void 0===k?" ":k,S=e.placemat,E=e.leftIcon,C=void 0===E?null:E,$=e.rightIcon,A=void 0===$?null:$,T=e.onChange;e.children;var O=e.renderContent;e.removeBorderRadiusLeft,e.removeBorderRadiusRight,e.removeBorderRadiusBoth;var P=e.dir,z=g(e,Li),F="message_".concat(b),N=T?{onChange:T,value:h}:{defaultValue:h},R=Di(Di(Di({},f||s?{"aria-describedby":F}:{}),N),z);return v().createElement("div",{className:Z(ni,r),dir:P,"data-ppui-info":"text-input_6.2.2__8.12.0"},Bi(C,"left"),O(Di({inputClassName:n,name:m,id:b,setFocus:t,hasError:u,placeholder:_,placemat:S,label:w,labelClassName:a,isLabelHidden:x,inputTag:"input",leftIcon:C,rightIcon:A},R)),v().createElement(Hi,{errorText:s,errorIconAriaLabel:p,successText:i,successIconAriaLabel:l,helperText:f,messageId:F,"data-ppui":"true"}),Bi(A,"right"))},Wi=["inputClassName","inputTag","name","id","setFocus","inputRef","hasError","placeholder","placemat","label","labelClassName","isLabelHidden","rightIcon","leftIcon","prefix","suffix"],Vi=function(e){var t=e.placeholder,r=e.value,n=void 0===r?"":r,a=e.isLabelHidden,i=void 0!==a&&a,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=e.length;return r>=t.length?e:e.concat(t.substring(r))}(n,t),l=Z(Ri,i&&Ii);return v().createElement("div",{className:l,"data-ppui":"true"},o)},Ui=function(e){var t=null!=e?e:" ";return""===t?" ":t},qi=function(e){var t=e.inputClassName,r=e.inputTag,n=e.name,a=e.id,i=e.setFocus,o=e.inputRef,l=e.hasError,s=e.placeholder,c=e.placemat,u=e.label,d=e.labelClassName,p=e.isLabelHidden,f=e.rightIcon,h=e.leftIcon,b=e.prefix,w=e.suffix,x=g(e,Wi),k=!u||""===u||p,_=Z(oi,k&&li,!l&&f&&fi,!l&&h&&hi,!l&&f&&h&&mi,ti,l&&si,l&&k&&pi,l&&f&&ci,l&&h&&ui,l&&h&&f&&di,b||w?Ci:null,l&&k&&(b||w)?pi:null,b&&zi,w&&Fi,b&&w&&Ni,t),S=Z(ei,f&&gi,h&&yi,k&&se,d),E=x.value;return(0,y.useEffect)((function(){var e=o.current;i&&e&&e.focus()}),[i]),v().createElement(v().Fragment,null,!!c&&v().createElement(Vi,{placeholder:c,value:E,isLabelHidden:k,"data-ppui":"true"}),v().createElement(r,m({className:_,name:n,id:a,ref:o,"aria-invalid":l,placeholder:Ui(s)},x,{"data-ppui":"true"})),u&&v().createElement("label",{htmlFor:a,id:"".concat(a,"-label"),className:S,"data-ppui":"true"},u))},Gi=["label","id","prefix","suffix","prefixClassName","suffixClassName","inputClassName","inputRef","onBlur","onFocus","hasError","isLabelHidden"],Ki=function(e){var t=e.label,r=e.id,n=e.prefix,a=e.suffix,i=e.prefixClassName,o=e.suffixClassName,l=e.inputClassName,s=e.inputRef,c=e.onBlur,u=void 0===c?null:c,d=e.onFocus,p=void 0===d?null:d,f=e.hasError,h=e.isLabelHidden,y=g(e,Gi),b=s,w=!t||""===t||h,x=Z($i,w&&Pi,f&&Ti,i),k=Z(Ai,w&&Pi,f&&Oi,o),_=Z(_i,f&&Si),S=t?"".concat(r,"-label "):"",E=n?"".concat(r,"-prefix "):"",C=a?"".concat(r,"-suffix"):"",$="".concat(S).concat(E).concat(C);return v().createElement("div",{className:_,onClick:function(){b.current&&b.current.focus()},"data-ppui":"true"},v().createElement(qi,m({label:t,id:r,prefix:n,suffix:a,inputClassName:l,inputRef:s,onFocus:function(e){p&&p(e)},onBlur:function(e){u&&u(e)},"aria-labelledby":$.trim(),hasError:f,isLabelHidden:w},y,{"data-ppui":"true"})),n&&v().createElement("div",{id:E.trim(),className:x,"data-ppui":"true"},n),a&&v().createElement("div",{id:C.trim(),className:k,"data-ppui":"true"},a))},Yi=["prefix","suffix","prefixClassName","suffixClassName"],Xi=["inputClassName","name","id","setFocus","hasError","placeholder","placemat","label","labelClassName","inputTag"],Zi=(0,y.forwardRef)((function(e,t){var r=e.prefix,n=e.suffix,a=e.prefixClassName,i=e.suffixClassName,o=g(e,Yi),l=(0,y.useRef)(),s=t||l;return v().createElement(ji,m({renderContent:function(e){var t=e.inputClassName,o=e.name,l=e.id,c=e.setFocus,u=e.hasError,d=e.placeholder,p=e.placemat,f=e.label,h=e.labelClassName,y=e.inputTag,b=g(e,Xi);return r||n?v().createElement(Ki,m({inputClassName:t,inputTag:y,name:o,id:l,setFocus:c,inputRef:s,hasError:u,placeholder:d,label:f,labelClassName:h,prefix:r,suffix:n,prefixClassName:a,suffixClassName:i},b,{"data-ppui":"true"})):v().createElement(qi,m({inputClassName:t,inputTag:y,name:o,id:l,setFocus:c,inputRef:s,hasError:u,placeholder:d,placemat:p,label:f,labelClassName:h},b,{"data-ppui":"true"}))}},o,{"data-ppui":"true"}))}));function Qi(e,t,r,n,a,i,o){try{var l=e[i](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,a)}function Ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eo(e,t){if(e){if("string"==typeof e)return Ji(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ji(e,t):void 0}}function to(e){return function(e){if(Array.isArray(e))return Ji(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ro(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||eo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(e,t){return[(0,w.style)(e,t),e]}b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-elevation");const ao=e=>`calc(((${x.elevation.horizontalOffsetRatio} * ${e})/16) * 1rem)`,io=e=>`calc(calc(((${e} * ${e} * ${x.elevation.blurCurve} + ${e} * ${x.elevation.blurSlope})/16) * 1rem) + ${x.elevation.blurBase})`,oo=(e=1)=>`calc(${e} * ${x.elevation.opacity}*100%)`,lo=Q(x.color.structure.shadow,oo()),so=e=>Q(x.color.background.surface,oo(e)),co=e=>`${ao(e)} ${(e=>`calc(((${x.elevation.verticalOffsetRatio} * ${e-1})/16) * 1rem)`)(e)} ${io(e)} ${lo}`,uo=e=>`linear-gradient(${so(e)}, ${so(e)})`,[po,fo]=no({boxShadow:co(1),backgroundImage:uo(1)},"elevation_level1"),[ho,mo]=no({boxShadow:co(2),backgroundImage:uo(2)},"elevation_level2"),[go,yo]=no({boxShadow:co(3),backgroundImage:uo(3)},"elevation_level3"),[vo,bo]=no({filter:`drop-shadow(${co(1)})`},"drop_shadow1"),[wo,xo]=no({filter:`drop-shadow(${co(2)})`},"drop_shadow2"),[ko,_o]=no({filter:`drop-shadow(${co(3)})`},"drop_shadow3"),[So,Eo]=no({boxShadow:`0 0 ${io(.33)} ${lo}`},"fixed_elevation"),[Co,$o]=no({boxShadow:`${ao(3)} ${`calc(((${x.elevation.verticalOffsetRatio} * -2)/16) * 1rem)`} ${io(3)} ${lo}`,backgroundImage:uo(3),transform:"translateZ(0)"},"elevation_level3_above");b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-list");const Ao=(0,w.style)({listStyle:"none",padding:"0",margin:"0",backgroundColor:"transparent"},"list_base"),To=(0,w.style)({display:"flex",textDecoration:"none",backgroundColor:"transparent",outline:"none"},"list_item-wrapper"),Oo={regular:(0,w.style)({paddingLeft:x.space[200],paddingRight:x.space[200]},"list_item-wrapper-gutter-regular"),none:(0,w.style)({paddingLeft:0,paddingRight:0},"list_item-wrapper-gutter-none")};(0,w.globalStyle)(`${To} > div:not(:last-child)`,{marginInlineEnd:x.space[100]});const Po=(0,w.style)({cursor:"pointer",position:"relative",":hover":{backgroundColor:x.color.background.surfaceHover},":active":{backgroundColor:x.color.background.surfaceActive}},"list_hover_active"),zo=(0,w.style)({backgroundColor:x.color.background.surfaceActive},"list_highlight"),Fo=(0,w.style)({display:"inherit",color:x.color.secondary.main,pointerEvents:"none",flexGrow:0},"list_decoration"),No=(0,w.style)({alignSelf:"center",display:"inline-flex",flexDirection:"column",gap:x.space[50],pointerEvents:"none",flexGrow:1},"list_content"),Ro=(0,w.style)({pointerEvents:"auto"},"list_action"),Io=(0,w.style)({alignSelf:"center",textAlign:"right",display:"flex",flexDirection:"column",gap:x.space[50],pointerEvents:"none",flexGrow:0,selectors:{"[dir='rtl'] &":{textAlign:"left",justifySelf:"end"}}},"list_trailing-content"),Lo=(0,w.style)({margin:0},"list_text"),Mo=(0,w.style)([Lo,{color:x.color.background.mediumContrast}],"list_secondary_text"),Do=(0,w.style)({alignSelf:"start"},"list_align-top"),Ho=(0,w.style)({alignSelf:"end"},"list_align-top"),Bo=(0,w.style)({alignSelf:"center"},"list_align-center"),jo=(0,w.style)({position:"relative",":focus":{...Rn,borderRadius:x.border.radius.xs}},"list_keyboard_active"),Wo=(0,w.style)({listStyleType:"none",margin:0,padding:0},"list_section-list"),Vo=(0,w.style)({padding:`${x.space[150]} ${x.space[200]}`},"list_section-title"),Uo={regular:(0,w.style)({paddingTop:x.space[150],paddingBottom:x.space[150]},"list_item-vertical-space-regular"),condensed:(0,w.style)({paddingTop:x.space[75],paddingBottom:x.space[75]},"list_item-vertical-space-condensed")},qo=(0,w.style)({"@media":{[`(max-width: ${$})`]:{minWidth:x.size.icon.lg,alignItems:"flex-end"}}},"checkmark-icon"),Go=(0,w.style)({pointerEvents:"none"},"unselectable");b.endFileScope();var Ko=["regular","none"],Yo=["regular","condensed"],Xo=["label","labelLineClamp","status","labelContext","labelDescription","labelDescriptionLineClamp","alert","action","value","decoration","trailingContent","navigationOptions","className","focusActive","isFocused","isHighlighted","isSelected","highlightText","isTextHighlighted","as","isItemFocusable","isItemNavigational","ariaDescribedby","role","gutterStyle","verticalSpace","unselectable"];function Zo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Qo=function(e){var t=e.label,r=e.labelLineClamp,n=e.status,a=e.labelContext,i=e.labelDescription,o=e.labelDescriptionLineClamp,l=e.alert,s=e.action;e.value;var c=e.decoration,u=e.trailingContent,d=e.navigationOptions;e.className,e.focusActive;var p=e.isFocused,f=e.isHighlighted,h=e.isSelected,b=e.highlightText,w=e.isTextHighlighted,x=e.as,k=void 0===x?"div":x,_=e.isItemFocusable,S=e.isItemNavigational,E=e.ariaDescribedby,C=e.role,$=e.gutterStyle,A=void 0===$?"regular":$,T=e.verticalSpace,O=void 0===T?"regular":T,P=e.unselectable,z=void 0!==P&&P,F=g(e,Xo),N=(0,y.useRef)();(0,y.useEffect)((function(){p&&N.current.focus()}),[p]);var R=Z(To,Uo[O],S&&Po,f&&zo,_&&jo,Oo[A],z&&Go),L={top:Do,center:Bo,bottom:Ho},M=Z(Fo,c&&L[c.align]),D=Z(Io,u&&L[u.align],qo),H=d&&function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d),B={as:"p",type:h?"strong":"regular",className:Lo,clampAtLine:r},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&v().createElement(an,m({as:"p",className:Mo},t?{clampAtLine:o}:{},{"data-ppui":"true"}),e)},W=function(e){return e&&v().createElement("div",{className:Ro,"data-ppui":"true"},e)};return v().createElement(k,m({className:R,role:C},z?null:{tabIndex:-1},{ref:N,"aria-describedby":E},d?null:{"aria-selected":void 0!==h&&h},H,F,{"data-ppui":"true"}),(null==c?void 0:c.thumbnail)&&v().createElement("div",{className:M,"data-ppui":"true"},c.thumbnail),(!!t||!!l||!!s||!!n||!!a||!!i)&&v().createElement("div",{className:No,"data-ppui":"true"},n&&v().createElement("div",{"data-ppui":"true"},n),j(a,!1),t&&function(){if(w&&"string"==typeof t){var e=oe(t,b);return v().createElement(rn,m({},B,{dangerouslySetInnerHTML:{__html:e},"data-ppui":"true"}))}return v().createElement(rn,m({},B,{"data-ppui":"true"}),t)}(),j(i,!0),l,W(s)),v().createElement("div",{className:D,"data-ppui":"true"},(u||h)&&v().createElement(v().Fragment,null,h?v().createElement(Ta,{"aria-label":"Selected",size:"sm",color:"SelectedMain","data-ppui":"true"}):null,(null==u?void 0:u.status)&&v().createElement("div",{"data-ppui":"true"},u.status),j(null==u?void 0:u.labelContext,!1),(null==u?void 0:u.label)&&v().createElement(rn,{as:"p",className:Lo,"data-ppui":"true"},u.label),j(null==u?void 0:u.labelDescription,!1),W(null==u?void 0:u.action),W(null==u?void 0:u.icon))))},Jo=function(e,t,r){for(var n=[],a="previous"===r?-1:1,i=0;i<e.length;i++){var o;(null===(o=e[i])||void 0===o?void 0:o.unselectable)||n.push(i)}return t===n[0]&&"previous"===r?n[n.length-1]:t===n[n.length-1]&&"next"===r?n[0]:n[n.indexOf(t)+a]},el=["options","focusActive","activeIndex","focusedIndex","className","onKeyDown","onClick","onFocus","onBlur","hasSections","highlightText","isTextHighlighted","itemAs","gutterStyle","verticalSpace"];function tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var rl=v().forwardRef((function(e,t){var r=e.options,n=e.focusActive,a=e.activeIndex,i=void 0===a?-1:a,o=e.focusedIndex,l=void 0===o?-1:o,s=e.className,c=e.onKeyDown,u=e.onClick,d=e.onFocus,p=e.onBlur,f=e.hasSections,h=e.highlightText,b=e.isTextHighlighted,w=e.itemAs,x=void 0===w?Qo:w,k=e.gutterStyle,_=void 0===k?"regular":k,S=e.verticalSpace,E=void 0===S?"regular":S,C=g(e,el),$=(0,y.useRef)(),A=t||$,T=ro((0,y.useState)(l),2),O=T[0],P=T[1];(0,y.useEffect)((function(){P(l)}),[l]);var z,F,N=function(e,t,r){(null==r?void 0:r.unselectable)||(P(t),u&&u(e,t))},R=function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.map((function(e,o){var l;"string"==typeof e.label||e.value;var s=u||e.onClick,c=!!s||!!e.navigationOptions,d=f?o+a:o,p={value:null!==(l=e.value)&&void 0!==l?l:e.label,role:s?"option":null,focusActive:n,highlightText:h,isTextHighlighted:b,isFocused:n&&O===d,isHighlighted:i===d,isItemNavigational:c,isItemFocusable:null!=n?n:c,as:e.navigationOptions?"a":"div",ariaDescribedby:f?r:null,gutterStyle:Ko.includes(_)?_:"regular",disabled:e.unselectable,verticalSpace:Yo.includes(E)?E:"regular"},g=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.wrapperProps);return delete e.wrapperProps,v().createElement("li",m({className:e.className,role:"menuitem","aria-selected":void 0!==e.isSelected&&e.isSelected,onClick:function(t){return N(t,d,e)},key:d,"data-value":e.value},g,{"data-ppui":"true"}),v().createElement(t,m({},p,e,{"data-ppui":"true"})))}))};return v().createElement("menu",m({className:Z(Ao,s),ref:A,tabIndex:n&&-1===O?0:-1},C,{onFocus:function(e){var t=n&&e.target===A.current&&e.currentTarget===A.current;!c&&t&&P(0),d&&d(e)},onBlur:function(e){var t=!A.current.contains(e.target)||!e.relatedTarget;!c&&n&&t&&P(-1),p&&p(e)},onKeyDown:function(e){if(c)c(e);else{var t=f?r.reduce((function(e,t){return(null==t?void 0:t.sectionItems)&&e.push.apply(e,to(t.sectionItems)),e}),[]):r,n=new re(e.key);n.IS_ARROW_UP&&O>0?(e.preventDefault(),P(Jo(t,O,"previous"))):n.IS_ARROW_DOWN&&O<t.length-1?(e.preventDefault(),P(Jo(t,O,"next"))):(n.IS_ENTER||n.IS_SPACEBAR)&&u&&(e.preventDefault(),N(e,O))}},"data-ppui":"true"}),f?(z=x,F=0,r.reduce((function(e,t){var r;if(null==t||null===(r=t.sectionItems)||void 0===r?void 0:r.length){var n=t.id?t.id:te("list_section_id");e.push(v().createElement("li",{role:"presentation",key:n,"data-ppui":"true"},t.title&&v().createElement("div",{className:Z(Vo,Uo[E]),id:t.id,"aria-hidden":"true","data-ppui":"true"},v().createElement(an,{"data-ppui":"true"},t.title)),v().createElement("menu",m({"aria-labelledby":t.id,className:Wo},C,{"data-ppui":"true"}),R(t.sectionItems,z,t.id,F)))),F+=t.sectionItems.length}return e}),[])):R(r,x))}));b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-menu");const nl="8rem",al=(0,w.style)([yo,{borderRadius:x.border.radius.lg,minWidth:nl,maxHeight:"30rem",overflowY:"auto",overflowX:"hidden",position:"absolute",marginTop:x.space[50],backgroundColor:x.color.background.surface,outline:`${x.border.thickness.normal} solid transparent`,zIndex:q}],"menu_container"),il=(0,w.style)({selectors:{[`${Ao}&`]:{padding:`${x.space[100]} 0`,"@media":{[`screen and (max-width: ${$})`]:{paddingBottom:x.space[400],paddingTop:0}}}}},"menu_list"),ol=(0,w.style)({display:"flex",height:"100%",alignItems:"center",justifyContent:"center"},"menu_loading_container");b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-loading-spinner");const{ppuiEaseLoopStandard:ll}=cn,sl=(0,w.keyframes)({to:{transform:"rotate(360deg)"}},"border_spinner"),cl="1rem",ul=(0,w.style)({color:x.color.primary.main,animation:`${sl} ${x.motion.duration.loop.standard} ${ll} infinite`,border:`${x.border.thickness.emphasis} solid currentColor`,borderRadius:"50%",clipPath:"polygon(50% 0%, 50% 50%, 100% 50%, 100% 100%, 0 100%, 0 0)"},"loading_spinner_base"),dl=(0,w.style)({minWidth:cl,minHeight:cl},"loading_spinner_size_xs"),pl=(0,w.style)({width:x.size.circle.xs,height:x.size.circle.xs},"loading_spinner_size_sm"),fl=(0,w.style)({width:x.size.circle.sm,height:x.size.circle.sm},"loading_spinner_size_md"),hl=(0,w.style)({width:x.size.circle.md,height:x.size.circle.md},"loading_spinner_size_lg"),ml=(0,w.style)({width:x.size.circle.xl,height:x.size.circle.xl},"loading_spinner_size_xl"),gl=(0,w.style)({color:x.color.primary.contrast},"loading_spinner_inverse");b.endFileScope();var yl=["as","className","inverse","size","screenReaderText"],vl=function(e){var t=e.as,r=void 0===t?"p":t,n=e.className,a=e.inverse,i=e.size,o=void 0===i?"sm":i,l=e.screenReaderText,s=g(e,yl),c={xs:dl,sm:pl,md:fl,lg:hl,xl:ml};Object.keys(c).includes(o)||(o="sm");var u=Z(ul,a&&gl,c[o],n);return v().createElement(r,m({className:u,"data-ppui-info":"loading-spinner_4.1.2__8.12.0"},s,{role:"alert"}),v().createElement("span",{className:se,"data-ppui":"true"},l))};b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-sheet");const{variables:bl}=n,{ppuiEaseInOut:wl}=bl,xl=`calc(${x.size.media.xl} * 0.75)`,kl=x.size.icon.lg,_l=`calc(${x.size.icon.xl} + (${x.space[100]}))`,Sl="100vw",El=`screen and (max-width: ${A})`,Cl=`screen and (max-width: ${$})`,$l=`screen and (max-width: ${C})`,Al=`screen and (min-width: ${$})`,Tl={transform:"translateZ(0) translateX(0)"},Ol={transform:"translateZ(0) translateX(100%)"},Pl={transform:"translateZ(0) translateX(-100%)"},zl={borderTopLeftRadius:x.border.radius.jumbo,borderTopRightRadius:x.border.radius.jumbo},Fl=(e="center")=>(0,w.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`sheet-container_center_${e}`),Nl=e=>(0,w.style)({"@media":{[Cl]:{height:`${e}dvh`,...zl}}},`sheet_height_${e}`),Rl=e=>{const t="right"===e?Ol:Pl;return(0,w.style)([ns,{"@media":{[Al]:t},selectors:{"&[aria-hidden='false']":Tl}}],`sheet-container_${e}`)},Il=(0,w.style)([Fl("flex-end"),{width:x.size.media.md,"@media":{[El]:{width:x.size.media.sm},[$l]:{width:Sl}}}],"sheet-container_bottom"),Ll=(0,w.style)({width:"75%",maxWidth:xl},"sheet_no_container"),Ml=(0,w.style)({height:"100dvh",width:"auto",willChange:"transform",transition:`transform ${x.motion.duration.depart} ${wl},\n height ${x.motion.duration.depart} ${wl}`,transform:"translateZ(0) translateY(100%)","@media":{[Cl]:{width:Sl,height:"auto",minHeight:"3rem",maxHeight:"90dvh",...zl}}},"sheet"),Dl=(0,w.style)({transform:"translateZ(0) translateY(0)"},"sheet_show"),Hl=(0,w.style)([Fl("center"),{position:"fixed",inset:0,zIndex:G,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${x.motion.duration.depart} ease-in-out,\n visibility ${x.motion.duration.depart} ${x.motion.duration.depart}`,backgroundColor:x.color.overlay.mainHover,boxShadow:"none"}],"sheet_backdrop");(0,w.globalStyle)(`${Hl} [aria-hidden="false"], ${Hl} [aria-hidden="true"]`,{transitionDuration:x.motion.duration.arrive});const Bl=(0,w.style)([{position:"fixed",inset:0,zIndex:G,transform:`visibiliy ${x.motion.duration.depart} ${x.motion.duration.depart}`,selectors:{"&::before":{content:" ",position:"absolute",inset:0,opacity:0,willChange:"opacity",transition:`opacity ${x.motion.duration.depart} ease-in-out`,backgroundColor:x.color.overlay.mainHover}}},Fl("flex-end")],"sheet-scrim"),jl=(0,w.style)({visibility:"visible",transition:"none",selectors:{"&::before":{opacity:1,transitionDuration:x.motion.duration.arrive}}},"sheet-scrim_show"),Wl=(0,w.style)({selectors:{"&::before":{content:" ",position:"absolute",top:x.space[100],left:0,right:0,margin:"auto",width:x.size.tapTarget.default,height:x.size.indicator.sm,backgroundColor:x.color.background.mediumContrast,borderRadius:x.border.radius.md,display:"none","@media":{[Cl]:{display:"block"}}}}},"sheet-show_gripper"),Vl=(0,w.style)({"@media":{[Cl]:{borderRadius:0}}},"sheet-content_with_header"),Ul=(0,w.style)({padding:"0 8.5rem","@media":{[El]:{padding:"0 5rem"},[Cl]:{padding:`0 ${x.space[200]} ${x.space[200]}`}}},"sheet-content"),ql=(0,w.style)({minHeight:_l,"@media":{[Cl]:{minHeight:kl}}},"sheet-header"),Gl=(0,w.style)({minHeight:_l,padding:x.space[150],margin:0,"@media":{[Cl]:{minHeight:kl,margin:0}}},"sheet-header_action"),Kl=(0,w.style)({"@media":{[Cl]:{padding:`0 ${x.space[100]}`}}},"sheet-header_action-spacing"),Yl=(0,w.style)({"@media":{[Cl]:{padding:`calc(${x.space[75]} + ${x.space[50]}) ${x.space[75]} 0`}}},"sheet-header_action-gripper-spacing"),Xl=(0,w.style)({flex:"0 0 100%",padding:`${x.space[100]} ${x.space[200]}`},"sheet-header_work_area"),Zl=(0,w.style)({position:"absolute",right:x.space[50],top:x.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:x.space[50],right:"auto","@media":{[Al]:{left:x.size.indicator.md}}}}},"sheet-content_close");(0,w.globalStyle)(`${Zl}`,{"@media":{[Al]:{right:x.size.indicator.md,top:x.space[150]}}});const Ql=(0,w.style)({"@media":{[Cl]:{height:"100dvh",maxHeight:"100dvh",borderTopLeftRadius:0,borderTopRightRadius:0}}},"sheet_height_100"),Jl=Nl("90"),es=Nl("50"),ts=(0,w.style)({"@media":{[Al]:{justifyContent:"flex-end"}}},"sheet_right_side"),rs=(0,w.style)({"@media":{[Al]:{width:"35.5rem"}}},"sheet-right_width"),ns=(0,w.style)({"@media":{[Al]:{willChange:"transform",transition:`transform ${x.motion.duration.depart}`,bottom:"inherit"}}},"sheet-container"),as=Rl("right"),is=Rl("left"),os=(0,w.style)({"@media":{[Al]:{paddingLeft:x.space[600],paddingRight:x.space[600]}}},"sheet-drawer_container");b.endFileScope();var ls=r(448),ss=r.n(ls);function cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var us=function(e){var t=e.id,r=void 0===t?te("animatee#"):t,n=e.shouldHide,a=void 0!==n&&n,i=e.onOpen,o=e.onCloseComplete,l=e.phaseProps,s=void 0===l?{initial:{isHidden:!0},showing:{isHidden:!1},hiding:{isHidden:!0}}:l,c=e.children,u=ro((0,y.useState)("initial"),2),d=u[0],p=u[1],f=(0,y.useRef)({event:null,closeMethod:""}),h=(0,y.useRef)(r),m=(0,y.useRef)(null),g=function(){m.current&&(clearTimeout(m.current),m.current=null);var e=f.current||{},t=e.event,r=e.closeMethod;p((function(e){return"initial"!==e?("function"==typeof o&&o(t,r),"initial"):e}))};(0,y.useLayoutEffect)((function(){a||"initial"!==d||p("showing"),a&&"initial"!==d&&(f.current.closeMethod="caller",p("hiding"))}),[a]);var b=function(e){e.target.dataset.animatee===h.current&&("hiding"===d?g():"function"==typeof i&&i(e),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation())};if(a&&"initial"===d)return null;var w=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({requestClose:function(e,t){f.current.event=e,f.current.closeMethod=t,p("hiding"),m.current=setTimeout((function(){g()}),1e3)},"data-animatee":h.current},s[d]);return v().createElement("div",{"data-testid":"animator",onTransitionEnd:b,onAnimationEnd:b},c(w))},ds=function(){return ds=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ds.apply(this,arguments)};function ps(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var fs=r(718),hs=r(214),ms=r.n(hs),gs="right-scroll-bar-position",ys="width-before-scroll-bar";function vs(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var bs="undefined"!=typeof window?hs.useLayoutEffect:hs.useEffect,ws=new WeakMap;function xs(e,t){var r,n,a,i=(r=t||null,n=function(t){return e.forEach((function(e){return vs(e,t)}))},(a=(0,hs.useState)((function(){return{value:r,callback:n,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=n,a.facade);return bs((function(){var t=ws.get(i);if(t){var r=new Set(t),n=new Set(e),a=i.current;r.forEach((function(e){n.has(e)||vs(e,null)})),n.forEach((function(e){r.has(e)||vs(e,a)}))}ws.set(i,e)}),[e]),i}function ks(e){return e}function _s(e,t){void 0===t&&(t=ks);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var a=t(e,n);return r.push(a),function(){r=r.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),r={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),r}}}};return a}function Ss(e,t){return void 0===t&&(t=ks),_s(e,t)}function Es(e){void 0===e&&(e={});var t=_s(null);return t.options=ds({async:!0,ssr:!1},e),t}var Cs=Es(),$s=function(){},As=hs.forwardRef((function(e,t){var r=hs.useRef(null),n=hs.useState({onScrollCapture:$s,onWheelCapture:$s,onTouchMoveCapture:$s}),a=n[0],i=n[1],o=e.forwardProps,l=e.children,s=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,f=e.noIsolation,h=e.inert,m=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,v=e.gapMode,b=ps(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=xs([r,t]),k=ds(ds({},b),a);return hs.createElement(hs.Fragment,null,u&&hs.createElement(w,{sideCar:Cs,removeScrollBar:c,shards:d,noIsolation:f,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:r,gapMode:v}),o?hs.cloneElement(hs.Children.only(l),ds(ds({},k),{ref:x})):hs.createElement(y,ds({},k,{className:s,ref:x}),l))}));As.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},As.classNames={fullWidth:ys,zeroRight:gs};var Ts="data-focus-lock",Os="data-focus-lock-disabled",Ps={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},zs=Ss({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Fs=Ss(),Ns=Ss(),Rs=Es({async:!0,ssr:"undefined"!=typeof document}),Is=(0,hs.createContext)(void 0),Ls=[],Ms=(0,hs.forwardRef)((function(e,t){var r,n=(0,hs.useState)(),a=n[0],i=n[1],o=(0,hs.useRef)(),l=(0,hs.useRef)(!1),s=(0,hs.useRef)(null),c=(0,hs.useState)({})[1],u=e.children,d=e.disabled,p=void 0!==d&&d,f=e.noFocusGuards,h=void 0!==f&&f,g=e.persistentFocus,y=void 0!==g&&g,v=e.crossFrame,b=void 0===v||v,w=e.autoFocus,x=void 0===w||w,k=(e.allowTextSelection,e.group),_=e.className,S=e.whiteList,E=e.hasPositiveIndices,C=e.shards,$=void 0===C?Ls:C,A=e.as,T=void 0===A?"div":A,O=e.lockProps,P=void 0===O?{}:O,z=e.sideCar,F=e.returnFocus,N=void 0!==F&&F,R=e.focusOptions,I=e.onActivation,L=e.onDeactivation,M=(0,hs.useState)({})[0],D=(0,hs.useCallback)((function(e){var t=e.captureFocusRestore;if(!s.current){var r,n=null==(r=document)?void 0:r.activeElement;s.current=n,n!==document.body&&(s.current=t(n))}o.current&&I&&I(o.current),l.current=!0,c()}),[I]),H=(0,hs.useCallback)((function(){l.current=!1,L&&L(o.current),c()}),[L]),B=(0,hs.useCallback)((function(e){var t=s.current;if(t){var r=("function"==typeof t?t():t)||document.body,n="function"==typeof N?N(r):N;if(n){var a="object"==typeof n?n:void 0;s.current=null,e?Promise.resolve().then((function(){return r.focus(a)})):r.focus(a)}}}),[N]),j=(0,hs.useCallback)((function(e){l.current&&zs.useMedium(e)}),[]),W=Fs.useMedium,V=(0,hs.useCallback)((function(e){o.current!==e&&(o.current=e,i(e))}),[]),U=m(((r={})[Os]=p&&"disabled",r[Ts]=k,r),P),q=!0!==h,G=q&&"tail"!==h,K=xs([t,V]),Y=(0,hs.useMemo)((function(){return{observed:o,shards:$,enabled:!p,active:l.current}}),[p,l.current,$,a]);return ms().createElement(hs.Fragment,null,q&&[ms().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:p?-1:0,style:Ps}),E?ms().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:Ps}):null],!p&&ms().createElement(z,{id:M,sideCar:Rs,observed:a,disabled:p,persistentFocus:y,crossFrame:b,autoFocus:x,whiteList:S,shards:$,onActivation:D,onDeactivation:H,returnFocus:B,focusOptions:R,noFocusGuards:h}),ms().createElement(T,m({ref:K},U,{className:_,onBlur:W,onFocus:j}),ms().createElement(Is.Provider,{value:Y},u)),G&&ms().createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:Ps}))}));Ms.propTypes={};const Ds=Ms;var Hs=Es(),Bs="data-focus-on-hidden",js={preventScroll:!0},Ws=fs.forwardRef((function(e,t){var r=fs.useState(!1),n=r[0],a=r[1],i=e.children,o=e.autoFocus,l=e.shards,s=e.crossFrame,c=e.enabled,u=void 0===c||c,d=e.scrollLock,p=void 0===d||d,f=e.focusLock,h=void 0===f||f,m=e.returnFocus,g=void 0===m||m,y=e.inert,v=e.allowPinchZoom,b=e.sideCar,w=e.className,x=e.shouldIgnore,k=e.preventScrollOnFocus,_=e.style,S=e.as,E=e.gapMode,C=ps(e,["children","autoFocus","shards","crossFrame","enabled","scrollLock","focusLock","returnFocus","inert","allowPinchZoom","sideCar","className","shouldIgnore","preventScrollOnFocus","style","as","gapMode"]),$=b,A=n.onActivation,T=n.onDeactivation,O=ps(n,["onActivation","onDeactivation"]),P=ds(ds({},O),{as:S,style:_,sideCar:b,shards:l,allowPinchZoom:v,gapMode:E,inert:y,enabled:u&&p});return fs.createElement(fs.Fragment,null,fs.createElement(Ds,{ref:t,sideCar:b,disabled:!(n&&u&&h),returnFocus:g,autoFocus:o,shards:l,crossFrame:s,onActivation:A,onDeactivation:T,className:w,whiteList:x,lockProps:P,focusOptions:k?js:void 0,as:As},i),u&&fs.createElement($,ds({},C,{sideCar:Hs,setLockProps:a,shards:l})))})),Vs=function(e){var t=e.sideCar,r=ps(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return hs.createElement(n,ds({},r))};function Us(e,t){return e.useMedium(t),Vs}function qs(e,t){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qs(e,t)}Vs.isSideCarExport=!0;var Gs=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},Ks=function(e){return Array.isArray(e)?e:[e]},Ys=function(e){return Array.isArray(e)?e[0]:e},Xs=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Zs=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Qs=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!e||Zs(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(Xs(e))}(t,Qs.bind(void 0,e));return e.set(t,n),n},Js=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!(e&&!Zs(e))||!!nc(e)&&t(Xs(e))}(t,Js.bind(void 0,e));return e.set(t,n),n},ec=function(e){return e.dataset},tc=function(e){return"INPUT"===e.tagName},rc=function(e){return tc(e)&&"radio"===e.type},nc=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},ac=function(e){var t;return Boolean(e&&(null===(t=ec(e))||void 0===t?void 0:t.focusGuard))},ic=function(e){return!ac(e)},oc=function(e){return Boolean(e)},lc=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),a=r-n,i=e.index-t.index;if(a){if(!r)return 1;if(!n)return-1}return a||i},sc=function(e,t,r){return Gs(e).map((function(e,t){var n=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:r&&-1===n?(e.dataset||{}).focusGuard?0:-1:n}})).filter((function(e){return!t||e.tabIndex>=0})).sort(lc)},cc=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),uc="".concat(cc,", [data-focus-guard]"),dc=function(e,t){return Gs((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?uc:cc)?[r]:[],dc(r))}),[])},pc=function(e,t){return e.reduce((function(e,r){var n,a=dc(r,t),i=(n=[]).concat.apply(n,a.map((function(e){return function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?pc([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,r.parentNode?Gs(r.parentNode.querySelectorAll(cc)).filter((function(e){return e===r})):[])}),[])},fc=function(e,t){return Gs(e).filter((function(e){return Qs(t,e)})).filter((function(e){return function(e){return!((tc(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},hc=function(e,t){return void 0===t&&(t=new Map),Gs(e).filter((function(e){return Js(t,e)}))},mc=function(e,t,r){return sc(fc(pc(e,r),t),!0,r)},gc=function(e,t){return sc(fc(pc(e),t),!1)},yc=function(e,t){return e.shadowRoot?yc(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Gs(e.children).some((function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&yc(n,t)}return yc(e,t)}))},vc=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?vc(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?vc(t.contentWindow.document):t}},bc=function(e){return e.parentNode?bc(e.parentNode):e},wc=function(e){return Ks(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(Ts);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var a=n+1;a<r;a+=1){var i=e[n].compareDocumentPosition(e[a]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(a),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}(Gs(bc(t).querySelectorAll("[".concat(Ts,'="').concat(r,'"]:not([').concat(Os,'="disabled"])')))):[t]),e}),[])},xc=function(e,t){return void 0===t&&(t=vc(Ys(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&wc(e).some((function(e){return yc(e,t)||function(e,t){return Boolean(Gs(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},kc=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},_c=function(e,t){return rc(e)&&e.name?function(e,t){return t.filter(rc).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Sc=function(e){return e[0]&&e.length>1?_c(e[0],e):e[0]},Ec=function(e,t){return e.indexOf(_c(t,e))},Cc="NEW_FOCUS",$c=function(e,t,r){var n,a=e.map((function(e){return e.node})),i=hc(a.filter((n=r,function(e){var t,r=null===(t=ec(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return i&&i.length?Sc(i):Sc(hc(t))},Ac=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Ac(e.parentNode.host||e.parentNode,t),t},Tc=function(e,t){for(var r=Ac(e),n=Ac(t),a=0;a<r.length;a+=1){var i=r[a];if(n.indexOf(i)>=0)return i}return!1},Oc=function(e,t,r){var n=Ks(e),a=Ks(t),i=n[0],o=!1;return a.filter(Boolean).forEach((function(e){o=Tc(o||e,e)||o,r.filter(Boolean).forEach((function(e){var t=Tc(i,e);t&&(o=!o||yc(t,o)?t:Tc(t,o))}))})),o},Pc=function(e,t){return e.reduce((function(e,r){return e.concat(function(e,t){return fc((r=e.querySelectorAll("[".concat("data-autofocus-inside","]")),Gs(r).map((function(e){return pc([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var r}(r,t))}),[])},zc=function(e,t){var r=vc(Ks(e).length>0?document:Ys(e).ownerDocument),n=wc(e).filter(ic),a=Oc(r||e,e,n),i=new Map,o=gc(n,i),l=o.filter((function(e){var t=e.node;return ic(t)}));if(l[0]){var s,c,u,d=gc([a],i).map((function(e){return e.node})),p=(s=d,c=l,u=new Map,c.forEach((function(e){return u.set(e.node,e)})),s.map((function(e){return u.get(e)})).filter(oc)),f=p.map((function(e){return e.node})),h=p.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),m=function(e,t,r,n,a){var i=e.length,o=e[0],l=e[i-1],s=ac(n);if(!(n&&e.indexOf(n)>=0)){var c=void 0!==n?r.indexOf(n):-1,u=a?r.indexOf(a):c,d=a?e.indexOf(a):-1;if(-1===c)return-1!==d?d:Cc;if(-1===d)return Cc;var p,f,h=c-u,m=r.indexOf(o),g=r.indexOf(l),y=(p=r,f=new Set,p.forEach((function(e){return f.add(_c(e,p))})),p.filter((function(e){return f.has(e)}))),v=void 0!==n?y.indexOf(n):-1,b=a?y.indexOf(a):v,w=y.filter((function(e){return e.tabIndex>=0})),x=void 0!==n?w.indexOf(n):-1,k=a?w.indexOf(a):x,_=x>=0&&k>=0?k-x:b-v;if(!h&&d>=0)return d;if(0===t.length)return d;var S=Ec(e,t[0]),E=Ec(e,t[t.length-1]);return c<=m&&s&&Math.abs(h)>1?E:c>=g&&s&&Math.abs(h)>1?S:h&&Math.abs(_)>1?d:c<=m?E:c>g?S:h?Math.abs(h)>1?d:(i+d+h)%i:void 0}}(f,h,d,r,t);if(m===Cc){var g=$c(o,h,Pc(n,i))||$c(o,f,Pc(n,i));return g?{node:g}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:p[m]}},Fc=0,Nc=!1,Rc=function(e,t,r){void 0===r&&(r={});var n=zc(e,t);if(!Nc&&n){if(Fc>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Nc=!0,void setTimeout((function(){Nc=!1}),1);Fc++,kc(n.node,r.focusOptions),Fc--}};function Ic(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var Lc=function(e){var t=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:Ic(r),parent:Ic(r.parentElement),left:Ic(r.previousElementSibling),right:Ic(r.nextElementSibling)}),r=r.parentElement;return{element:Ic(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,r,n,a,i;if(e)for(var o=e.stack,l=e.ownerDocument,s=new Map,c=0,u=o;c<u.length;c++){var d=u[c],p=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(p&&l.contains(p)){for(var f=null===(r=d.left)||void 0===r?void 0:r.call(d),h=d.current(),m=p.contains(h)?h:void 0,g=null===(n=d.right)||void 0===n?void 0:n.call(d),y=mc([p],s),v=null!==(i=null!==(a=null!=m?m:null==f?void 0:f.nextElementSibling)&&void 0!==a?a:g)&&void 0!==i?i:f;v;){for(var b=0,w=y;b<w.length;b++){var x=w[b];if(null==v?void 0:v.contains(x.node))return x.node}v=v.nextElementSibling}if(y.length)return y[0].node}}}(t)}},Mc=function(e,t,r){void 0===t&&(t={});var n=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),a=function(e,t,r){if(!e||!t)return console.error("no element or scope given"),{};var n=Ks(t);if(n.every((function(t){return!yc(t,e)})))return console.error("Active element is not contained in the scope"),{};var a=r?mc(n,new Map):gc(n,new Map),i=a.findIndex((function(t){return t.node===e}));return-1!==i?{prev:a[i-1],next:a[i+1],first:a[0],last:a[a.length-1]}:void 0}(e,n.scope,n.onlyTabbable);if(a){var i=r(a,n.cycle);i&&kc(i.node,n.focusOptions)}},Dc=function(e,t,r){var n,a,i,o,l=(a=e,i=null===(n=t.onlyTabbable)||void 0===n||n,{first:(o=i?mc(Ks(a),new Map):gc(Ks(a),new Map))[0],last:o[o.length-1]})[r];l&&kc(l.node,t.focusOptions)};function Hc(e){setTimeout(e,1)}var Bc=function(e){return e&&"current"in e?e.current:e},jc=function(){return document&&document.activeElement===document.body},Wc=null,Vc=null,Uc=function(){return null},qc=null,Gc=!1,Kc=!1,Yc=function(){return!0};function Xc(e,t,r,n){var a=null,i=e;do{var o=n[i];if(o.guard)o.node.dataset.focusAutoGuard&&(a=o);else{if(!o.lockItem)break;if(i!==e)return;a=null}}while((i+=r)!==t);a&&(a.node.tabIndex=0)}var Zc=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Qc=function(e){return gc(e,new Map)},Jc=function(){var e,t,r,n,a,i,o,l=!1;if(Wc){var s=Wc,c=s.observed,u=s.persistentFocus,d=s.autoFocus,p=s.shards,f=s.crossFrame,h=s.focusOptions,m=s.noFocusGuards,g=c||qc&&qc.portaledElement;if(jc()&&Vc&&Vc!==document.body&&(!document.body.contains(Vc)||!Qc([(o=Vc).parentNode]).some((function(e){return e.node===o})))){var y=Uc();y&&y.focus()}var v=document&&document.activeElement;if(g){var b=[g].concat(p.map(Bc).filter(Boolean));if(v&&!function(e){return(Wc.whiteList||Yc)(e)}(v)||(u||function(){if(!(f?Boolean(Gc):"meanwhile"===Gc)||!m||!Vc||Kc)return!1;var e=Qc(b),t=e.findIndex((function(e){return e.node===Vc}));return 0===t||t===e.length-1}()||!(jc()||function(e){void 0===e&&(e=document);var t=vc(e);return!!t&&Gs(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return yc(e,t)}))}())||!Vc&&d)&&(g&&!(xc(b)||v&&function(e,t){return t.some((function(t){return Zc(e,t,t)}))}(v,b)||(i=v,qc&&qc.portaledElement===i))&&(document&&!Vc&&v&&!d?(v.blur&&v.blur(),document.body.focus()):(l=Rc(b,Vc,{focusOptions:h}),qc={})),(Vc=document&&document.activeElement)!==document.body&&(Uc=Lc(Vc)),Gc=!1),document&&v!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var w=document&&document.activeElement,x=(t=wc(e=b).filter(ic),r=Oc(e,e,t),n=sc(pc([r],!0),!0,!0),a=pc(t,!1),n.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:ac(t)}}))),k=x.map((function(e){return e.node})).indexOf(w);k>-1&&(x.filter((function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Xc(k,x.length,1,x),Xc(k,-1,-1,x))}}}return l},eu=function(e){Jc()&&e&&(e.stopPropagation(),e.preventDefault())},tu=function(){return Hc(Jc)},ru=function(){Kc=!0},nu=function(){Kc=!1,Gc="just",Hc((function(){Gc="meanwhile"}))},au={moveFocusInside:Rc,focusInside:xc,focusNextElement:function(e,t){void 0===t&&(t={}),Mc(e,t,(function(e,t){var r=e.next,n=e.first;return r||t&&n}))},focusPrevElement:function(e,t){void 0===t&&(t={}),Mc(e,t,(function(e,t){var r=e.prev,n=e.last;return r||t&&n}))},focusFirstElement:function(e,t){void 0===t&&(t={}),Dc(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),Dc(e,t,"last")},captureFocusRestore:Lc};zs.assignSyncMedium((function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(qc={observerNode:r,portaledElement:t})})),Fs.assignMedium(tu),Ns.assignMedium((function(e){return e(au)}));const iu=(ou=function(e){return e.filter((function(e){return!e.disabled}))},lu=function(e){var t=e.slice(-1)[0];t&&!Wc&&(document.addEventListener("focusin",eu),document.addEventListener("focusout",tu),window.addEventListener("focus",ru),window.addEventListener("blur",nu));var r=Wc,n=r&&t&&t.id===r.id;Wc=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(Vc=null,n&&r.observed===t.observed||t.onActivation(au),Jc(),Hc(Jc)):(document.removeEventListener("focusin",eu),document.removeEventListener("focusout",tu),window.removeEventListener("focus",ru),window.removeEventListener("blur",nu),Vc=null)},function(e){var t,r=[];function n(){t=ou(r.map((function(e){return e.props}))),lu(t)}var a=function(a){var i,o;function l(){return a.apply(this,arguments)||this}o=a,(i=l).prototype=Object.create(o.prototype),i.prototype.constructor=i,qs(i,o),l.peek=function(){return t};var s=l.prototype;return s.componentDidMount=function(){r.push(this),n()},s.componentDidUpdate=function(){n()},s.componentWillUnmount=function(){var e=r.indexOf(this);r.splice(e,1),n()},s.render=function(){return ms().createElement(e,this.props)},l}(hs.PureComponent);return I(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(e)+")"),a})((function(){return null}));var ou,lu;Us(Rs,iu);var su=r(118);var cu=function(){var e=0,t=null;return{add:function(n){0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r.nc;return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uu=function(){var e=function(){var e=cu();return function(t,r){hs.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},du={left:0,top:0,right:0,gap:0},pu=function(e){return parseInt(e||"",10)||0},fu=uu(),hu="data-scroll-locked",mu=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(hu,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(gs," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(ys," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(gs," .").concat(gs," {\n right: 0 ").concat(n,";\n }\n \n .").concat(ys," .").concat(ys," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(hu,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},gu=function(){var e=parseInt(document.body.getAttribute(hu)||"0",10);return isFinite(e)?e:0},yu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;su.useEffect((function(){return document.body.setAttribute(hu,(gu()+1).toString()),function(){var e=gu()-1;e<=0?document.body.removeAttribute(hu):document.body.setAttribute(hu,e.toString())}}),[]);var i=su.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return du;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[pu(r),pu(n),pu(a)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}}(a)}),[a]);return su.createElement(fu,{styles:mu(i,!t,a,r?"":"!important")})},vu=!1;if("undefined"!=typeof window)try{var bu=Object.defineProperty({},"passive",{get:function(){return vu=!0,!0}});window.addEventListener("test",bu,bu),window.removeEventListener("test",bu,bu)}catch(e){vu=!1}var wu=!!vu&&{passive:!1},xu=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},ku=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),_u(e,n)){var a=Su(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_u=function(e,t){return"v"===e?function(e){return xu(e,"overflowY")}(t):function(e){return xu(e,"overflowX")}(t)},Su=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Eu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cu=function(e){return[e.deltaX,e.deltaY]},$u=function(e){return e&&"current"in e?e.current:e},Au=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Tu=0,Ou=[];function Pu(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}Us(Cs,(function(e){var t=hs.useRef([]),r=hs.useRef([0,0]),n=hs.useRef(),a=hs.useState(Tu++)[0],i=hs.useState(uu)[0],o=hs.useRef(e);hs.useEffect((function(){o.current=e}),[e]),hs.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,r){if(r||2===arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map($u),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=hs.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var a,i=Eu(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=ku(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=ku(d,u)),!p)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=a),!a)return!0;var f=n.current||a;return function(e,t,r,n){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*n,o=r.target,l=t.contains(o),s=!1,c=i>0,u=0,d=0;do{var p=Su(e,o),f=p[0],h=p[1]-p[2]-a*f;(f||h)&&_u(e,o)&&(u+=h,d+=f),o=o instanceof ShadowRoot?o.host:o.parentNode}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&(Math.abs(u)<1||!1)||!c&&(Math.abs(d)<1||!1))&&(s=!0),s}(f,t,e,"h"===f?s:c)}),[]),s=hs.useCallback((function(e){var r=e;if(Ou.length&&Ou[Ou.length-1]===i){var n="deltaY"in r?Cu(r):Eu(r),a=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,a=n,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)r.cancelable&&r.preventDefault();else if(!a){var s=(o.current.shards||[]).map($u).filter(Boolean).filter((function(e){return e.contains(r.target)}));(s.length>0?l(r,s[0]):!o.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),c=hs.useCallback((function(e,r,n,a){var i={name:e,delta:r,target:n,should:a,shadowParent:Pu(n)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=hs.useCallback((function(e){r.current=Eu(e),n.current=void 0}),[]),d=hs.useCallback((function(t){c(t.type,Cu(t),t.target,l(t,e.lockRef.current))}),[]),p=hs.useCallback((function(t){c(t.type,Eu(t),t.target,l(t,e.lockRef.current))}),[]);hs.useEffect((function(){return Ou.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,wu),document.addEventListener("touchmove",s,wu),document.addEventListener("touchstart",u,wu),function(){Ou=Ou.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,wu),document.removeEventListener("touchmove",s,wu),document.removeEventListener("touchstart",u,wu)}}),[]);var f=e.removeScrollBar,h=e.inert;return hs.createElement(hs.Fragment,null,h?hs.createElement(i,{styles:Au(a)}):null,f?hs.createElement(yu,{gapMode:e.gapMode}):null)}));var zu=new WeakMap,Fu=new WeakMap,Nu={},Ru=0,Iu=function(e){return e&&(e.host||Iu(e.parentNode))},Lu=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),function(e,t,r,n){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=Iu(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Nu[r]||(Nu[r]=new WeakMap);var i=Nu[r],o=[],l=new Set,s=new Set(a),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(zu.get(e)||0)+1,c=(i.get(e)||0)+1;zu.set(e,s),i.set(e,c),o.push(e),1===s&&a&&Fu.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),l.clear(),Ru++,function(){o.forEach((function(e){var t=zu.get(e)-1,a=i.get(e)-1;zu.set(e,t),i.set(e,a),t||(Fu.has(e)||e.removeAttribute(n),Fu.delete(e)),a||e.removeAttribute(r)})),--Ru||(zu=new WeakMap,zu=new WeakMap,Fu=new WeakMap,Nu={})}}(n,a,r,"aria-hidden")):function(){return null}},Mu=uu(),Du="\n ["+Bs+"] {\n pointer-events: none !important;\n }\n",Hu=function(){return fs.createElement(Mu,{styles:Du})},Bu=function(e){return"current"in e?e.current:e};const ju=Us(Hs,(function(e){var t=e.setLockProps,r=e.onEscapeKey,n=e.onClickOutside,a=e.shards,i=e.onActivation,o=e.onDeactivation,l=e.noIsolation,s=(0,fs.useState)(void 0),c=s[0],u=s[1],d=(0,fs.useRef)(null),p=(0,fs.useRef)(0);return fs.useEffect((function(){var e=function(e){e.defaultPrevented||"Escape"!==e.code&&"Escape"!==e.key&&27!==e.keyCode||!r||r(e)},t=function(e){e.defaultPrevented||e.target===d.current||e instanceof MouseEvent&&0!==e.button||a&&a.map(Bu).some((function(t){return t&&t.contains(e.target)||t===e.target}))||n&&n(e)},i=function(e){t(e),p.current=e.touches.length},o=function(e){p.current=e.touches.length};if(c)return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.addEventListener("touchstart",i),document.addEventListener("touchend",o),function(){document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)}}),[c,n,r]),(0,fs.useEffect)((function(){if(c)return i&&i(c),function(){o&&o()}}),[!!c]),(0,fs.useEffect)((function(){var e=function(){return null},r=!1;return t({onMouseDown:function(e){d.current=e.target},onTouchStart:function(e){d.current=e.target},onActivation:function(t){l||(e=Lu(function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,a++)n[a]=i[o];return n}([t],(a||[]).map(Bu)),document.body,Bs)),u((function(){return t}))},onDeactivation:function(){e(),r||u(null)}}),function(){r=!0,t(!1)}}),[]),fs.createElement(Hu,null)}));var Wu=function(e){return fs.createElement(ju,ds({},e))},Vu=fs.forwardRef((function(e,t){return fs.createElement(Ws,ds({},e,{ref:t,sideCar:Wu}))}));b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-icon-button");const{YQ:Uu}=a,qu=`calc(${x.space[100]} - 0.0625rem)`,Gu=`calc(${x.size.icon.sm} + 2 * ${x.space[150]})`,Ku=e=>({cursor:e}),Yu=(0,w.style)({...Ve,color:(0,w.fallbackVar)(F.main,x.color.background.highContrast)},"icon-button_font"),Xu={WebkitTextStrokeWidth:"0.0421875rem",color:(0,w.fallbackVar)(F.main,x.color.background.highContrast)},Zu=(0,w.style)([Yu,{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",padding:`${x.space[150]} 0`,width:"6rem",wordWrap:"break-word",border:"none",backgroundColor:"transparent",":focus":{...Ku("pointer"),outline:"none"},":hover":{...Ku("pointer")}}],"icon-button_container");(0,w.globalStyle)(`${Zu}:focus > div:first-of-type`,Uu),(0,w.globalStyle)(`${Zu}:focus > span:last-of-type`,Xu),(0,w.globalStyle)(`${Zu}:hover > span:last-of-type`,Xu),(0,w.globalStyle)(`${Zu}:active > span:last-of-type`,Xu),(0,w.globalStyle)(`${Zu}:hover > div:first-of-type`,{background:(0,w.fallbackVar)(F.hoverBack,x.color.tertiary.contrastHover)}),(0,w.globalStyle)(`${Zu}:active > div:first-of-type`,{background:(0,w.fallbackVar)(F.activeBack,x.color.tertiary.contrastActive)});const Qu=(0,w.style)({":hover":{...Ku("default")}},"icon-button_processing_container"),Ju=(0,w.style)({":hover":{...Ku("default")}},"icon-button_success_container");(0,w.globalStyle)(`${Ju}:hover > div:first-of-type`,{backgroundColor:(0,w.fallbackVar)(x.color.success.main)});const ed=(0,w.style)({display:"flex",justifyContent:"center",alignItems:"center"},"icon-button_size"),td=(0,w.style)([ed,{padding:qu,width:x.size.circle.sm,height:x.size.circle.sm}],"icon-button_size_sm"),rd=(0,w.style)([ed,{padding:x.space[200],width:x.size.tapTarget.lg,height:x.size.tapTarget.lg}],"icon-button_size_xl"),nd=(0,w.style)([ed,{padding:x.space[150],width:x.size.tapTarget.default,height:x.size.tapTarget.default}],"icon-button_size_lg"),ad=(0,w.style)({position:"relative",...Ku("pointer"),borderRadius:x.border.radius.interactive,border:"none",backgroundColor:"transparent",display:"inline-flex",":focus":Uu},"icon-button_base"),id=(0,w.style)({color:(0,w.fallbackVar)(F.main,x.color.primary.contrast),background:(0,w.fallbackVar)(F.background,x.color.primary.main),":hover":{background:(0,w.fallbackVar)(F.hoverBack,x.color.primary.mainHover)},":active":{background:(0,w.fallbackVar)(F.activeBack,x.color.primary.mainActive)}},"icon-button_primary"),od=(0,w.style)({color:(0,w.fallbackVar)(F.main,x.color.primary.contrast)},"icon-button_inverse"),ld=(0,w.style)({color:(0,w.fallbackVar)(F.main,x.color.tertiary.main),background:(0,w.fallbackVar)(F.background,x.color.tertiary.contrast),":hover":{background:(0,w.fallbackVar)(F.hoverBack,x.color.tertiary.contrastHover)},":active":{background:(0,w.fallbackVar)(F.activeBack,x.color.tertiary.contrastActive)}},"icon-button_secondary"),sd=(0,w.style)({background:(0,w.fallbackVar)(F.background,x.color.primary.contrast),color:(0,w.fallbackVar)(F.main,x.color.primary.main),":hover":{background:(0,w.fallbackVar)(F.hoverBack,x.color.primary.contrastHover)},":active":{background:(0,w.fallbackVar)(F.activeBack,x.color.primary.contrastActive)}},"icon-button_secondary_inverse"),cd=(0,w.style)({color:(0,w.fallbackVar)(F.main,x.color.background.mediumContrast),background:(0,w.fallbackVar)(F.background),":hover":{background:(0,w.fallbackVar)(F.hoverBack,x.color.background.surfaceHover)},":active":{background:(0,w.fallbackVar)(F.activeBack,x.color.background.surfaceActive)}},"icon-button_tertiary"),ud=(0,w.style)({color:(0,w.fallbackVar)(F.main,x.color.overlay.contrast),background:(0,w.fallbackVar)(F.background,x.color.overlay.main),":hover":{background:(0,w.fallbackVar)(F.hoverBack,x.color.overlay.mainHover)},":active":{background:(0,w.fallbackVar)(F.activeBack,x.color.overlay.mainActive)}},"icon-button_tertiary_inverse"),dd=(0,w.style)({pointerEvents:"none"},"icon-button_icon");(0,w.globalStyle)(`${ad}:hover > ${dd}`,{color:(0,w.fallbackVar)(F.hoverMain)}),(0,w.globalStyle)(`${ad}:active > ${dd}`,{color:(0,w.fallbackVar)(F.activeMain)});const pd=(0,w.style)({...xe,borderRadius:x.border.radius.interactive,width:Gu,height:Gu},"icon-button_shimmer"),fd=(0,w.style)({width:x.size.circle.sm,height:x.size.circle.sm},"icon-button_shimmer_size_sm"),hd=(0,w.style)({width:x.size.circle.lg,height:x.size.circle.lg},"icon-button_shimmer_size_xl"),md=(0,w.style)({width:x.size.circle.md,height:x.size.circle.md},"icon-button_shimmer_size_lg"),gd=(0,w.style)({margin:0},"icon-button_loading_spinner"),yd=(0,w.style)({pointerEvents:"none"},"icon-button_processing_state"),vd=(0,w.style)({pointerEvents:"none",backgroundColor:(0,w.fallbackVar)(F.background,x.color.success.main),color:(0,w.fallbackVar)(F.main,x.color.success.contrast),":hover":{background:(0,w.fallbackVar)(F.hoverBack,x.color.success.main),...Ku("default")},":active":{background:(0,w.fallbackVar)(F.activeBack,x.color.success.main)}},"icon-button_success_state"),bd=(0,w.style)({display:"-webkit-box",textAlign:"center",padding:`${x.space[100]} ${x.space[100]} 0 ${x.space[100]}`,width:"inherit",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},"icon-button_label"),wd=(0,w.style)({width:x.size.tapTarget.default,height:x.size.tapTarget.default,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",...Ku("pointer"),":focus":{outline:"none"}},"icon-button_small_tap_container");(0,w.globalStyle)(`${wd}:focus > div:first-of-type:not(${vd}):not(${yd})`,Uu),(0,w.globalStyle)(`${wd}:hover > ${id}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.hoverBack,x.color.primary.mainHover)}),(0,w.globalStyle)(`${wd}:active > ${id}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.activeBack,x.color.primary.mainActive)}),(0,w.globalStyle)(`${wd}:hover > ${ld}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.hoverBack,x.color.tertiary.contrastHover)}),(0,w.globalStyle)(`${wd}:active > ${ld}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.activeBack,x.color.tertiary.contrastActive)}),(0,w.globalStyle)(`${wd}:hover > ${cd}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.hoverBack,x.color.background.surfaceHover)}),(0,w.globalStyle)(`${wd}:active > ${cd}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.activeBack,x.color.background.surfaceActive)}),(0,w.globalStyle)(`${wd}:hover > ${sd}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.hoverBack,x.color.primary.contrastHover)}),(0,w.globalStyle)(`${wd}:active > ${sd}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.activeBack,x.color.primary.contrastActive)}),(0,w.globalStyle)(`${wd}:hover > ${ud}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.hoverBack,x.color.overlay.mainHover)}),(0,w.globalStyle)(`${wd}:active > ${ud}:not(${vd}):not(${yd})`,{background:(0,w.fallbackVar)(F.activeBack,x.color.overlay.mainActive)}),b.endFileScope();var xd=["as","iconName","svgIconComponent","className","label","iconClassName","children","buttonType","btnState","screenReaderText","inverse","size","isLoading"];function kd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Sd=(0,y.forwardRef)((function(e,t){var r=e.as,n=e.iconName,a=e.svgIconComponent,i=e.className,o=e.label,l=e.iconClassName,s=e.children,c=e.buttonType,u=void 0===c?"primary":c,d=e.btnState,p=void 0===d?"initial":d,f=e.screenReaderText,h=e.inverse,y=e.size,b=void 0===y?"lg":y,w=e.isLoading,x=g(e,xd),k="sm"!==b&&i;if(w){var _=Z(pd,{sm:fd,xl:hd,lg:md}[b],k),S="sm"!==b?_d({},x):{},E=v().createElement(_e,m({className:_,isInverse:h,hasStyleDefaults:!1},S,{"data-ppui":"true"}),s);return"sm"===b?v().createElement(r||"button",m({className:Z(wd,i)},x,{"data-ppui":"true"}),E):E}var C={sm:"xs",xl:"md",lg:"sm"}[b],$={sm:td,xl:rd,lg:nd},A=o||"sm"===b,T=Z(ad,$[b],"primary"===u&&id,"secondary"===u&&ld,"tertiary"===u&&cd,h&&od,"secondary"===u&&h&&sd,"tertiary"===u&&h&&ud,"success"===p&&vd,"processing"===p&&yd,!A&&k),O=Z(ad,"sm"===b?"":$[b],ld,"success"===p&&vd,"processing"===p&&yd),P=r||"button";(o||"sm"===b)&&(P="div");var z,F,N="button"===P?"button":null,R=a?v().createElement(a,{className:Z(dd,l),name:n,size:C,"aria-hidden":"true","data-ppui":"true"}):null,I=A?{}:_d({},x),L=_d({className:o?O:T,ref:t,type:N,disabled:p&&"initial"!==p},I),M=v().createElement(P,m({"data-ppui-info":"icon-button_4.2.2__8.12.0"},L),"initial"!==p?function(){var e=v().createElement(Ta,{size:C,className:dd,"data-ppui":"true"});if("processing"===p){var t={className:Z(dd,gd),inverse:!o&&("primary"===u||"tertiary"===u&&h),size:C};e=v().createElement(vl,m({},t,{"data-ppui":"true"}))}return v().createElement(v().Fragment,null,e,v().createElement("span",{className:se,role:"status","data-ppui":"true"},f||p))}():v().createElement(v().Fragment,null,R,!o&&v().createElement("span",{className:se,"data-ppui":"true"},s)));return o?v().createElement(v().Fragment,null,(z=null!=r?r:"button",F=Z(Zu,"success"===p&&Ju,"processing"===p&&Qu,i),v().createElement(z,m({className:F,tabIndex:0},x,{"data-ppui":"true"}),M,v().createElement("span",{className:bd,"data-ppui":"true"},o)))):"sm"===b?v().createElement(r||"button",m({className:Z(wd,i)},x,{"data-ppui":"true"}),M):v().createElement(v().Fragment,null,M)}));b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-modal");const Ed=x.space[800],Cd=x.size.icon.lg,$d=`calc(${x.size.icon.sm} + ${x.space[300]})`,Ad=`screen and (max-width: ${A})`,Td=`screen and (max-width: ${$})`,Od=`screen and (min-width: ${$})`,Pd={textAlign:"center"},zd={borderTopLeftRadius:x.border.radius.jumbo,borderTopRightRadius:x.border.radius.jumbo},Fd=(0,w.style)([go,{backgroundColor:x.color.background.surface,display:"grid",gridTemplateRows:"auto 1fr auto",position:"relative",flexBasis:"100%"}],"modal-base"),Nd=(0,w.style)([((e="center")=>(0,w.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`modal-container_center_${e}`))("center"),{position:"fixed",inset:0,zIndex:G,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${x.motion.duration.depart} ease-in-out,\n visibility ${x.motion.duration.depart} ${x.motion.duration.depart}`,backgroundColor:x.color.overlay.mainHover,boxShadow:"none"}],"modal_backdrop");(0,w.globalStyle)(`${Nd} [aria-hidden="false"], ${Nd} [aria-hidden="true"]`,{transitionDuration:x.motion.duration.arrive});const Rd=(0,w.style)([Ae,{flex:"1 1 auto",overflow:"auto",position:"relative",borderRadius:"inherit","@media":{[Td]:{padding:`0 ${x.space[300]} ${x.space[300]}`}}}],"modal-contents"),Id=(0,w.style)({selectors:{[`${Rd}&`]:{padding:0,"@media":{[Ad]:{padding:"0"},[Td]:{padding:0}}}}},"modal-content_no_padding"),Ld=(0,w.style)(Pd,"modal-content_center"),Md=(0,w.style)({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",position:"relative",flex:"0 0 auto",zIndex:1,minHeight:Ed,padding:x.space[150],"@media":{[Td]:zd}},"modal-header"),Dd=(0,w.style)([go,{"@media":{[Td]:zd}}],"modal-header_scrolled"),Hd=(0,w.style)({flex:`0 0 ${Cd}`,flexBasis:$d},"modal-header_action"),Bd=(0,w.style)([$e,{flex:"1 1 3rem",margin:x.space[100],...Pd}],"modal-header_title"),jd=(0,w.style)({flex:`0 0 ${Cd}`,flexBasis:$d,textAlign:"right"},"modal-header_close"),Wd=(0,w.style)({display:"flex",flex:"1 1 3rem",justifyContent:"center",marginTop:x.space[100]},"modal-header_logo"),Vd=(0,w.style)({width:x.size.icon.md,height:x.size.icon.md},"modal-header_logo_image"),Ud=(0,w.style)({position:"absolute",right:x.space[50],top:x.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:x.space[50],right:"auto","@media":{[Od]:{left:x.size.indicator.md}}}}},"modal-content_close");(0,w.globalStyle)(`${Ud}`,{"@media":{[Od]:{right:x.size.indicator.md,top:x.space[150]}}});const qd=(0,w.style)({minHeight:Ed,padding:x.space[200],position:"relative",flex:"1 0 auto"},"modal-footer"),Gd=(0,w.style)([go,{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}],"modal-footer_scrolled"),Kd=(0,w.style)({display:"flex",justifyContent:"center"},"modal-footer_align_center"),Yd=(0,w.style)({display:"flex",justifyContent:"end"},"modal-footer_align_right");b.endFileScope();var Xd=["requestClose","onBeforeClose","className","isHidden","center","noPadding","closeButtonLabel","noCloseButton","closeButtonProps","hideTitle","showLogo","mobileFixedHeight","showGripper","title","id","action","headerContents","footerContents","footerAlign","children","returnFocusToTrigger","headerClassName","containerClassName","contentContainerRef","wrapperClassName","footerClassName","skipFormFocus","contentScrollTop","onContentScroll","showDrawer"],Zd=function(){return!0},Qd=function(e){var t,r,n,a,i=e.requestClose,o=e.onBeforeClose,l=void 0===o?Zd:o,s=e.className,c=e.isHidden,u=e.center,d=e.noPadding,p=e.closeButtonLabel,f=void 0===p?"close sheet":p,h=e.noCloseButton,b=e.closeButtonProps,w=void 0===b?{}:b,x=e.hideTitle,k=e.showLogo,_=e.mobileFixedHeight,S=e.showGripper,E=void 0!==S&&S,C=e.title,A=e.id,T=e.action,O=e.headerContents,P=e.footerContents,z=e.footerAlign,F=e.children,N=e.returnFocusToTrigger,R=void 0===N||N,I=e.headerClassName,L=e.containerClassName,M=e.contentContainerRef,D=e.wrapperClassName,B=e.footerClassName,j=e.skipFormFocus,W=e.contentScrollTop,V=void 0===W?0:W,U=e.onContentScroll,q=e.showDrawer,G=void 0!==q&&q,K=g(e,Xd),Y=ro((0,y.useState)(!1),2),X=Y[0],Q=Y[1],J=ro((0,y.useState)(!1),2),ee=J[0],re=J[1],ne=ro((0,y.useState)(.5),2),ae=ne[0],ie=ne[1],oe=(0,y.useRef)(),le=(0,y.useRef)(),se=(0,y.useRef)(),ce=(0,y.useRef)(),ue=M||ce,de=(0,y.useRef)(),pe=!!H()&&"rtl"===getComputedStyle(document.body).direction,fe="dynamic"===_||E,he=parseInt($,10),me=!!H()&&(null===(t=window)||void 0===t?void 0:t.innerWidth)<he,ge=k&&!me,ye=null!=A?A:te(),ve=!!T||!h||!x||!!O||ge,be=function(){if(ue&&ue.current){var e=ue.current,t=0!==e.scrollTop;if(t!==X&&Q(t),P){var r=e.scrollTop+e.offsetHeight!==e.scrollHeight;r!==ee&&re(r)}}},we=function(){var e=oe.current;if(e){var t=.9*window.innerHeight;"100"===_?e.style.height="".concat(window.innerHeight):"90"===_?e.style.height="".concat(t,"px"):"50"===_?e.style.height="".concat(.5*window.innerHeight,"px"):e.style.maxHeight="".concat(t,"px")}};(0,y.useEffect)((function(){var e,t,r;return c||(be(),null===(e=window)||void 0===e||e.setTimeout((function(){var e=!1;if(de&&de.current){var t=de.current.querySelector("input");t&&(t.focus(),e=!0)}if(!e&&!j&&ue&&ue.current){var r=ue.current.querySelectorAll("a, button, textarea, input, select");r.length&&(r[0].focus(),e=!0)}if(!e&&ve)if(T&&se&&se.current){var n=se.current.querySelectorAll("a, button, select");n.length&&n[0].focus()}else{var a=le.current;a&&a.focus()}}),500),(H()&&"ontouchstart"in window||"undefined"!=typeof navigator&&(null!==(r=navigator.maxTouchPoints)&&void 0!==r?r:navigator.msMaxTouchPoints))&&window.innerHeight&&(window.addEventListener("resize",we,!1),fe?((t=oe.current)&&(t.style.height="".concat(window.innerHeight*ae,"px"),t.style.maxHeight="fit-content"),function(){var e=ue&&ue.current;.5===ae&&(e.style.overflow="hidden"),.9===ae&&(e.style.overflow="scroll")}()):we())),function(){window.removeEventListener("resize",we,!1)}}),[c,ae]),(0,y.useEffect)((function(){!c&&ue.current&&(ue.current.scrollTop=V)}),[V,c]);var xe=Z(Bl,!c&&jl,G&&ts),ke=Z(Fd,Ll,Ml,"100"===_&&Ql,"90"===_&&Jl,"50"===_&&es,fe&&es,!c&&Dl,G&&!pe&&as,G&&pe&&is),_e=Z(Rd,Ul,u&&Ld,ve&&Vl,d&&Id,G&&os),Se=c?"true":"false",Ee=function(e,t){l(t)&&(i(e,t),n=null,a=null)},Ce=h?null:v().createElement(Sd,m({svgIconComponent:Fa,onClick:function(e){Ee(e,"closeButton")},ref:le,buttonType:"tertiary"},w,{"data-ppui":"true"}),f),$e=function(e,t){var r=e.changedTouches[0],i=r.pageX,o=r.pageY,l=n-i,s=a-o;Math.abs(s)>Math.abs(l)&&(s<0&&(!t||0===t.scrollTop)&&(fe?(ie(.5),(s<-150||.5===ae)&&Ee(e,"swipeDown")):Ee(e,"swipeDown")),s>0&&fe&&ie(.9)),n=null,a=null},Ae=function(e){e.preventDefault()},Te=function(e){if(!a&&!n){var t=e.changedTouches[0];a=t.pageY,n=t.pageX}},Oe="header_".concat(ye),Pe={role:"dialog",className:D,"aria-modal":"true","aria-hidden":Se};ge||x?Pe["aria-label"]=C:Pe["aria-labelledby"]=Oe;var ze=T?v().createElement("div",{className:jd,"data-ppui":"true"}):null,Fe=Ce?v().createElement("div",{className:Hd,"data-ppui":"true"}):null,Ne=Ce?v().createElement("div",{className:jd,"data-ppui":"true"},Ce):ze,Re=T?v().createElement("div",{className:Hd,ref:se,"data-ppui":"true"},T):Fe,Ie=ge?Wd:Bd,Le=v().createElement("div",{className:Ie,id:Oe,"aria-live":"assertive","data-ppui":"true"},ge?v().createElement("img",{src:"https://www.paypalobjects.com/paypal-ui/logos/svg/paypal-mark-color.svg",alt:"paypal-logo",className:Vd,"data-ppui":"true"}):x?null:C),Me=O?v().createElement("div",{className:Xl,ref:de,"data-ppui":"true"},O):null,De=ve?v().createElement("header",{className:Z(Md,ql,Re&&Gl,E&&Wl,E?Yl:Kl,X&&Dd,I),onTouchStart:Te,onTouchMove:Ae,onTouchEnd:function(e){$e(e,null)},"data-ppui":"true"},Re,Le,Ne,Me):null,He=P?v().createElement("footer",{className:Z(qd,ee&&Gd,"center"===z&&Kd,"right"===z&&Yd,B),"data-ppui":"true"},P):null,Be=null===(r=document.getElementsByClassName("ppui-theme")[0])||void 0===r?void 0:r.classList[1];return v().createElement("div",m({},Pe,{className:Z(Be,xe),"data-ppui-info":"sheet_2.2.4__8.12.0"}),v().createElement(Vu,{enabled:!c,onEscapeKey:function(e){e.preventDefault(),Ee(e,"ESC")},onClickOutside:function(e){Ee(e,"backdropClick")},returnFocus:R,className:Z(Il,G&&rs),"data-ppui":"true"},v().createElement("article",m({className:Z(ke,L)},K,{ref:oe,"aria-hidden":Se,"data-ppui":"true"}),De,v().createElement("section",{className:Z(_e,s),onScroll:function(){if(ue&&ue.current){var e=ue.current;U&&U(e.scrollTop)}be()},ref:ue,onTouchStart:Te,onTouchMove:Ae,onTouchEnd:function(e){var t=ue&&ue.current;fe&&$e(e,t)},"data-ppui":"true"},F),He)))},Jd=["isOpen","onOpen","onCloseComplete","containerRef"],ep=function(e){var t=e.isOpen,r=e.onOpen,n=e.onCloseComplete,a=e.containerRef,i=g(e,Jd),o=ro((0,y.useState)(!1),2),l=o[0],s=o[1];(0,y.useEffect)((function(){s(!0)}),[]);var c=v().createElement(us,{shouldHide:!t,onOpen:r,onCloseComplete:n,"data-ppui":"true"},(function(e){return v().createElement(Qd,m({},e,i,{"data-ppui":"true"}))})),u=a&&a.current;return l&&(u?ss().createPortal(c,u):c)},tp=["name","value","className","containerClassName","itemClassName","mobileHeaderClassName","sheetClassName","sheetWrapperClassName","id","initialItemFocus","isOpen","ignoreKeyboard","mobileTitle","mobileHeaderContents","outsideClickCheck","onOpen","onClose","onSelection","options","returnFocusToTrigger","selectedIndex","activeItem","triggerElementId","triggerElementRef","rtl","isLoadingOptions","searchEnabled","mobileFixedHeight","hasSections","highlightText","isTextHighlighted"];function rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function np(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ap=function(e){e.name;var t,r=e.value,n=e.className,a=e.containerClassName,i=e.itemClassName,o=e.mobileHeaderClassName,l=e.sheetClassName,s=e.sheetWrapperClassName,c=e.id,u=void 0===c?te("selectionMenu_"):c,d=e.initialItemFocus,p=void 0===d||d,f=e.isOpen,h=e.ignoreKeyboard,b=e.mobileTitle,w=e.mobileHeaderContents,x=e.outsideClickCheck,k=e.onOpen,_=e.onClose,S=e.onSelection,E=e.options,C=e.returnFocusToTrigger,A=void 0===C||C,T=e.selectedIndex,O=void 0===T?0:T,P=e.activeItem,z=void 0===P?-1:P,F=e.triggerElementId,N=e.triggerElementRef,R=e.rtl,L=void 0!==R&&R,M=e.isLoadingOptions,D=void 0!==M&&M,j=e.searchEnabled,W=void 0!==j&&j,V=e.mobileFixedHeight,U=e.hasSections,q=void 0!==U&&U,G=e.highlightText,K=void 0===G?null:G,Y=e.isTextHighlighted,Q=void 0!==Y&&Y,J=g(e,tp),ee=(0,y.useRef)(),ne=(0,y.useRef)(),ae=(0,y.useRef)(),ie=(0,y.useRef)(""),oe=E&&E.length>0,le=function(e){var t=ro(v().useState(e),2),r=t[0],n=t[1],a=v().useRef(r);return[a,function(e){a.current=e,n(e)}]}(p?O:-1),se=ro(le,2),ce=se[0],ue=se[1],de=ro((0,y.useState)(!0),2),pe=de[0],fe=de[1],he=X(nl),me=X("67.5rem"),ge=X($),ye=!!H()&&window.innerWidth<ge,ve=function(e){return e&&e.current?e.current:null},be=ve(N)||(F&&B()?document.getElementById(F):null),we=function(e){return e.reduce((function(e,t){return(null==t?void 0:t.suggestions)&&e.push.apply(e,to(t.suggestions)),e}),[])},xe=function(e){var t=ve(ee),r=null==be?void 0:be.contains(e.target);x&&!x(e)||r||t&&!t.contains(e.target)&&_(e,"backdropClick")},ke=function(e){var t,r=null===(t=e.target)||void 0===t?void 0:t.parentElement,n=function(e,t){return e.findIndex((function(e){return t===e.value||t===e.label}))}(q?we(E):E,r.dataset.value);ue(n),S(n,e)},_e=function(e){!function(e){e.preventDefault();var r=ce.current,n=new re(e.key||e.keyCode),a=q?we(E):E;if(n.IS_ARROW_UP)fe(!0),r>0&&ue(Jo(a,r,"previous"));else if(n.IS_ARROW_DOWN)fe(!0),r<a.length-1&&ue(Jo(a,r,"next"));else if(n.IS_ENTER)S(r,e);else if(n.IS_TAB||n.IS_ESC){var i=n.IS_TAB?re.NAME_TAB:re.NAME_ESC;"function"!=typeof _||ye||_(e,i),null==be||be.focus()}else if(W&&1===e.key.length){clearTimeout(t),ie.current=ie.current+e.key,t=setTimeout((function(){ie.current=""}),700);var o=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).findIndex((function(t){return t.label.toLowerCase().startsWith(e.toLowerCase())}))}(E,ie.current);o>=0&&(fe(!0),ue(o))}}(e)},Se=function(e){if(void 0!==e)return e;if(void 0!==O&&O>=0)if(q){var t=we(E);if(t&&t[O]&&void 0!==t[O].value)return t[O].value}else if(E&&E[O]&&void 0!==E[O].value)return E[O].value}(r),Ee=h?-1:ce.current,Ce=function(){return f&&oe?(arguments.length>0&&void 0!==arguments[0]?arguments[0]:E).map((function(e,t){var r=e.hasOwnProperty("value")?e.value:e.label,n=!e.unselectable&&(void 0===Se?O===t:r===Se);return np(np({},e),{},I(I({decoration:e.decoration?{thumbnail:e.decoration,align:"center"}:null,trailingContent:{align:"center"},className:i,onClick:ke,role:"option",isSelected:n},"data-value",r),"value",r))})):[]},$e=f&&oe?E.map((function(e){return{title:e.title,id:e.id,sectionItems:Ce(e.suggestions)}})):[];(0,y.useLayoutEffect)((function(){return f&&!ye&&function(){var e=null==be?void 0:be.getBoundingClientRect().width;if(D)ve(ae).style.width="".concat(e||me,"px");else{var t=ve(ne);if(!t)return;var r=t.getBoundingClientRect().width;e>he&&e>r&&(t.style.width="".concat(e,"px"))}}(),f&&oe&&(document.addEventListener("click",xe),h||document.body.addEventListener("keydown",_e),ye?fe(!1):(fe(p),Ee<0&&ue(0)),"function"==typeof k&&k(ye)),function(){document.removeEventListener("click",xe),h||document.body.removeEventListener("keydown",_e),fe(!1)}}),[f,D]);var Ae=L?"rtl":null,Te=q?$e:Ce(E),Oe=Te&&v().createElement(rl,m({className:Z(il,n),id:u,tabIndex:0,"aria-hidden":!f,hasSections:!!q,ref:ne,dir:Ae,options:Te,activeIndex:z,focusedIndex:Ee,focusActive:!ye&&pe,highlightText:K,isTextHighlighted:Q},J,{"data-ppui":"true"})),Pe=D?v().createElement("div",{ref:ae,className:ol,"data-ppui":"true"},v().createElement(vl,{screenReaderText:"loading",size:"md","data-ppui":"true"})):Oe;return function(){if(ye){var e=w?"90":void 0;return v().createElement(ep,{isOpen:f,onCloseComplete:_,title:b,headerClassName:o,headerContents:w,noPadding:!0,noCloseButton:!1,mobileFixedHeight:V||e,className:l,wrapperClassName:s,returnFocusToTrigger:A,"data-ppui":"true"},Pe)}return f&&v().createElement("div",{ref:ee,className:Z(al,a),"data-ppui-info":"selection-menu_4.1.4__8.12.0"},Pe)}()};b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-combobox");const ip=(0,w.style)({position:"relative"},"combobox_base"),op=(0,w.style)({top:x.size.field.lg},"combobox_menu"),lp=(0,w.style)({cursor:"pointer"},"combobox_affordance_trigger"),sp=(0,w.style)({opacity:0,position:"absolute",pointerEvents:"none",width:0,height:0},"combobox_hidden_select");b.endFileScope();var cp=["name","options","value","text","id","dir","label","onOpen","onChange","onBlur","onTextChange","onFocus","getMenuOptions","placeholder","isLoadingOptions","emptyMessage","mobileTitle","sheetWrapperClassName","autoComplete","hasSections","isTextHightlighted","isTextHighlighted","sheetInputRef"];function up(){up=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),l=new T(n||[]);return a(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="executing",h="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==r&&n.call(x,o)&&(b=x);var k=v.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(a,i,o,l){var s=d(e[a],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==N(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function E(t,r,n){var a=p;return function(i,o){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===i)throw o;return{value:e,done:!0}}for(n.method=i,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=h,n.method="throw",n.arg=c.arg)}}}function C(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=d(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(N(t)+" is not iterable")}return y.prototype=v,a(k,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new S(u(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(k),c(k,s,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var pp=function(e,t,r){return t?e.filter((function(e){var n=t.toLowerCase(),a=function(e){return(e.label||"").toLowerCase().substring(0,n.length)===n};return r?(e.suggestions=e.suggestions.filter((function(e){return a(e)})),e):a(e)})):e},fp=function(e){var t;return null!==(t=e.value)&&void 0!==t?t:e.label},hp=function(e,t){return e.reduce((function(e,r){var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r);return n.hasOwnProperty("suggestions")?n.suggestions.map((function(e){e.hasOwnProperty("id")||(e.id="".concat(t,"__").concat(fp(e)))})):n.hasOwnProperty("id")||(n.id="".concat(t,"__").concat(fp(r))),e.push(n),e}),[])},mp=function(e,t){return e?e.map((function(e){return t?(e.suggestions.map((function(e){return e.onMouseDown=function(e){return e.preventDefault()}})),e):(e.onMouseDown=function(e){return e.preventDefault()},r=e,Object.entries(r).reduce((function(e,t){var r=ro(t,2),n=r[0],a=r[1];return e[n]=a,e}),{}));var r})):[]};(0,y.forwardRef)((function(e,t){var r,n=e.name,a=void 0===n?"NO_NAME":n,i=e.options,o=e.value,l=void 0===o?"":o,s=e.text,c=e.id,u=e.dir,d=e.label,p=e.onOpen,f=e.onChange,h=e.onBlur,b=e.onTextChange,w=e.onFocus,x=void 0===w?null:w,k=e.getMenuOptions,_=void 0===k?pp:k,S=e.placeholder,E=e.isLoadingOptions,C=e.emptyMessage,$=void 0===C?"No results. Try something else or check for errors.":C,A=e.mobileTitle,T=void 0===A?d:A,O=e.sheetWrapperClassName,P=e.autoComplete,z=e.hasSections,F=void 0!==z&&z,N=e.isTextHightlighted,R=void 0!==N&&N,I=e.isTextHighlighted,L=void 0!==I&&I,M=e.sheetInputRef,D=g(e,cp),H=ro((0,y.useState)(!1),2),B=H[0],j=H[1],W=ro((0,y.useState)(-1),2),V=W[0],U=W[1],q=ro((0,y.useState)(""),2),G=q[0],K=q[1],Y=ro((0,y.useState)(i),2),X=Y[0],Z=Y[1],Q=ro((0,y.useState)(l),2),J=Q[0],ee=Q[1],ne=ro((0,y.useState)(!1),2),ae=ne[0],oe=ne[1],le=ro((0,y.useState)(!1),2),se=le[0],ce=le[1],ue=ro((0,y.useState)(E),2),de=ue[0],pe=ue[1],fe=(0,y.useRef)(),he=M||fe,me=(0,y.useRef)(),ge=function(e){return e.reduce((function(e,t){return t.suggestions&&e.push.apply(e,to(t.suggestions)),e}),[])},ye=function(e,t){if(!(""===t||e&&i))return t;var r=F?ge(i):i,n=null==r?void 0:r.find((function(t){return e===fp(t)}));return n?n.label:e},ve=ye(l,s),be=ro((0,y.useState)(ve||""),2),we=be[0],xe=be[1],ke=ro((0,y.useState)(ve||""),2),_e=ke[0],Se=ke[1],Ee=ro((0,y.useState)(""),2),Ce=Ee[0],$e=Ee[1],Ae=null!=c?c:te("Combobox_"),Te="combo_txt_".concat(Ae),Oe="combo_menu_".concat(Ae),Pe=function(){var e,t=(e=up().mark((function e(t){var r,n,o,l,s;return up().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=_===pp)||pe(!0),ce(!1),!F){e.next=18;break}return n=ie(i),e.t0=hp,e.next=8,_(n,t,F);case 8:e.t1=e.sent,e.t2=a,e.t3=F,o=(0,e.t0)(e.t1,e.t2,e.t3),l=!0,o.map((function(e){var t;(null==e||null===(t=e.suggestions)||void 0===t?void 0:t.length)>0&&(l=!1)})),l&&(n.push({suggestions:[{label:$,unselectable:!0}]}),ce(!0),Se("")),Z(n),e.next=26;break;case 18:return e.t4=hp,e.next=21,_(i,t);case 21:e.t5=e.sent,e.t6=a,(s=(0,e.t4)(e.t5,e.t6))&&0!==s.length||(s=[{label:$,unselectable:!0}],ce(!0),Se("")),Z(s);case 26:U(-1),K(""),r||pe(!1);case 28:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){Qi(i,n,a,o,l,"next",e)}function l(e){Qi(i,n,a,o,l,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}(),ze=function(e){"function"==typeof f&&f({target:{name:a,value:e}})},Fe=function(e){j(e),oe(e)},Ne=function(){E||(Pe(""),$e("")),Fe(!0),me.current&&me.current.select()},Re=function(e){"function"==typeof b&&b(e),$e(e.target.value),xe(e.target.value),Pe(e.target.value),Se(""),ee("")},Ie=function(){Fe(!1),K("")},Le=function(e){r=e;var t=(F?ge(X):X)[e];t&&!t.unselectable&&(Se(t.value||t.label),xe(t.label),ee(fp(t)),$e(t.label),ze(fp(t)),Fe(!1))},Me=function(){return!V||V<0?"":(F?ge(X):X)[V].id},De=function(e){var t=e.key||e.keyCode,r=new re(t),n=F?ge(X):X;r.IS_ARROW_UP?U(Jo(n,V,"previous")):r.IS_ARROW_DOWN?B?U(Jo(n,V,"next")):Ne():r.IS_ENTER||"Unidentified"===t?(e.preventDefault(),B?Le(V):Ne()):(r.IS_TAB||r.IS_ESC)&&Ie()},He=G?null:S,Be="sheet_t_".concat(a),je=B?za:Oa,We=v().createElement(je,{onClick:function(e){e.stopPropagation(),B?Fe(!1):(oe(!0),Ne())},size:"sm","aria-hidden":"true","data-testid":"combo-affordance",color:"BackgroundMediumContrast",className:lp,"data-ppui":"true"});(0,y.useEffect)((function(){ee(l),xe(ye(l,""));var e=F?ge(X):X,t=null==e?void 0:e.find((function(e){return l===fp(e)}));t&&(t.hasOwnProperty("value")?Se(t.value):Se(t.label))}),[l]),(0,y.useEffect)((function(){pe(E)}),[E]),(0,y.useEffect)((function(){s&&xe(s)}),[s]);var Ve=function(e){return e&&e.current?e.current:null};(0,y.useEffect)((function(){if(!E&&B){var e=Ve(he);e&&e.focus()}i&&i.length&&(Z(i),xe(ye(l,we)))}),[E,i]);var Ue={role:"combobox",autoComplete:null!=P?P:"new-password","aria-expanded":B,"aria-haspopup":!0,"aria-controls":Oe,"aria-activedescendant":Me(),value:we,placeholder:G?" ":S,placemat:G,inputRef:me},qe=!se&&(R||L),Ge=F?ge(X):X,Ke=!0;return null==Ge||Ge.map((function(e){""===(null==e?void 0:e.value)&&(Ke=!1)})),v().createElement("div",{dir:u,className:ip,"data-ppui-info":"combobox_4.1.4__8.12.0"},v().createElement("select",{className:sp,name:a,"aria-hidden":"true",id:"hiddenSelect_".concat(a),tabIndex:-1,role:"hiddenSelect_".concat(a),onChange:function(e){return Le(e.target.selectedIndex-1)},value:_e,"data-ppui":"true"},Ke&&v().createElement("option",{role:"hiddenSelect_option",value:"","data-ppui":"true"},d),(null==Ge?void 0:Ge.length)&&Ge.map((function(e,t){return v().createElement("option",{key:t,value:e.value,role:"hiddenSelect_option","data-ppui":"true"},e.label)}))),v().createElement(Zi,m({name:"combo_t_".concat(a),label:d,id:Te,rightIcon:We,setFocus:ae},D,Ue,{onChange:function(e){"function"==typeof b&&b(e),xe(e.target.value),""===e.target.value&&Se(""),Pe(e.target.value),ee(""),B||Fe(!0)},onClick:function(){B||Ne()},onKeyDown:De,onFocus:function(e){var t=Ve(he);x&&!t&&x(e)},onBlur:function(){if(!he.current){var e=J?ye(J,""):J;if(!we&&J)ee(""),ze("");else if(e.toLowerCase()!==we.toLowerCase()){var t=X.find((function(e){var t,r;return(null==e||null===(t=e.label)||void 0===t?void 0:t.toLowerCase())===we.toLowerCase()||(null==e||null===(r=e.value)||void 0===r?void 0:r.toLowerCase())===we.toLowerCase()}));if(t){var r=X.indexOf(t);Le(r),xe(t.label)}else ee(""),ze(""),xe("")}h&&h({target:{name:a,textValue:we,value:J}})}},"data-reactcombo":!0,ref:t,"data-ppui":"true"})),v().createElement(ap,{name:"combo_m_".concat(a),value:J,id:Oe,isLoadingOptions:de,initialItemFocus:!1,ignoreKeyboard:!0,isOpen:B,mobileTitle:T,mobileHeaderContents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ltr";return v().createElement("div",{dir:e,"data-ppui":"true"},v().createElement(Zi,{name:Be,ref:he,label:d,value:Ce,placeholder:He,placemat:G,onChange:Re,onKeyDown:function(e){return De(e)},autoComplete:"off",role:"combobox","aria-controls":Oe,"aria-activedescendant":Me(),"data-ppui":"true"}))}(u),outsideClickCheck:function(e){return e.target.id!==Te},onOpen:p,onClose:Ie,selectedIndex:r,onSelection:Le,activeItem:V,triggerElementRef:me,options:mp(X,F),containerClassName:op,sheetWrapperClassName:O,hasSections:F,highlightText:we,isTextHighlighted:qe,"data-ppui":"true"}))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-grid");const gp="0.75rem",yp={xs:`(min-width: ${E})`,sm:`(min-width: ${C})`,md:`(min-width: ${$})`,lg:`(min-width: ${A})`,xl:`(min-width: ${T})`,xxl:`(min-width: ${O})`},vp=(e,t)=>(0,w.style)({"@media":{[yp[e]]:{msFlex:`0 0 ${t/12*100}%`,flex:`0 0 ${t/12*100}%`,maxWidth:t/12*100+"%"}}},`grid-col-${e}-${t}`),bp=(e,t)=>(0,w.style)({"@media":{[yp[e]]:{marginLeft:t/12*100+"%"}}},`grid-col-offset-${e}-${t}`),wp=(e,t)=>(0,w.style)({"@media":{[yp[e]]:{order:t}}},`grid-col-order-${e}-${-1===t?"first":13===t?"last":t}`),xp=(e,t)=>(0,w.style)({"@media":{[yp[e]]:{display:`${t} !important`}}},`grid-col-display-${e}-${t}`),kp=(e,t,r)=>(0,w.style)({"@media":{[yp[e]]:{justifyContent:r}}},`grid-row-justify-content-${e}-${t}`),_p=(e,t,r)=>(0,w.style)({"@media":{[yp[e]]:{alignSelf:r}}},`grid-row-align-self-${e}-${t}`),Sp=(e,t,r)=>(0,w.style)({"@media":{[yp[e]]:{alignContent:r}}},`grid-row-align-content-${e}-${t}`),Ep=(e,t,r)=>(0,w.style)({"@media":{[yp[e]]:{alignItems:r}}},`grid-row-align-items-${e}-${t}`),Cp=(e,t)=>(0,w.style)({"@media":{[yp[e]]:{msFlexDirection:t,flexDirection:t}}},`grid-row-flex-${e}-${t}`),$p=e=>(0,w.style)({msFlex:`0 0 ${e/12*100}%`,flex:`0 0 ${e/12*100}%`,maxWidth:e/12*100+"%"},`grid-col-${e}`),Ap={paddingTop:x.space[100],paddingBottom:x.space[100]},Tp={position:"relative",width:"100%",minHeight:"1px",paddingRight:gp,paddingLeft:gp},Op=((0,w.style)({marginLeft:"8.333333333333332%"},"grid-col-offset-1"),(0,w.style)({marginLeft:"16.666666666666664%"},"grid-col-offset-2"),(0,w.style)({marginLeft:"25%"},"grid-col-offset-3"),(0,w.style)({marginLeft:"33.33333333333333%"},"grid-col-offset-4"),(0,w.style)({marginLeft:"41.66666666666667%"},"grid-col-offset-5"),(0,w.style)({marginLeft:"50%"},"grid-col-offset-6"),(0,w.style)({marginLeft:"58.333333333333336%"},"grid-col-offset-7"),(0,w.style)({marginLeft:"66.66666666666666%"},"grid-col-offset-8"),(0,w.style)({marginLeft:"75%"},"grid-col-offset-9"),(0,w.style)({marginLeft:"83.33333333333334%"},"grid-col-offset-10"),(0,w.style)({marginLeft:"91.66666666666666%"},"grid-col-offset-11"),(0,w.style)({marginLeft:"100%"},"grid-col-offset-12"),bp("xs",1),bp("xs",2),bp("xs",3),bp("xs",4),bp("xs",5),bp("xs",6),bp("xs",7),bp("xs",8),bp("xs",9),bp("xs",10),bp("xs",11),bp("xs",12),bp("sm",1),bp("sm",2),bp("sm",3),bp("sm",4),bp("sm",5),bp("sm",6),bp("sm",7),bp("sm",8),bp("sm",9),bp("sm",10),bp("sm",11),bp("sm",12),bp("md",1),bp("md",2),bp("md",3),bp("md",4),bp("md",5),bp("md",6),bp("md",7),bp("md",8),bp("md",9),bp("md",10),bp("md",11),bp("md",12),bp("lg",1),bp("lg",2),bp("lg",3),bp("lg",4),bp("lg",5),bp("lg",6),bp("lg",7),bp("lg",8),bp("lg",9),bp("lg",10),bp("lg",11),bp("lg",12),bp("xl",1),bp("xl",2),bp("xl",3),bp("xl",4),bp("xl",5),bp("xl",6),bp("xl",7),bp("xl",8),bp("xl",9),bp("xl",10),bp("xl",11),bp("xl",12),bp("xxl",1),bp("xxl",2),bp("xxl",3),bp("xxl",4),bp("xxl",5),bp("xxl",6),bp("xxl",7),bp("xxl",8),bp("xxl",9),bp("xxl",10),bp("xxl",11),bp("xxl",12),(0,w.style)({order:1},"grid-col-order-1"),(0,w.style)({order:2},"grid-col-order-2"),(0,w.style)({order:3},"grid-col-order-3"),(0,w.style)({order:4},"grid-col-order-4"),(0,w.style)({order:5},"grid-col-order-5"),(0,w.style)({order:6},"grid-col-order-6"),(0,w.style)({order:7},"grid-col-order-7"),(0,w.style)({order:8},"grid-col-order-8"),(0,w.style)({order:9},"grid-col-order-9"),(0,w.style)({order:10},"grid-col-order-10"),(0,w.style)({order:11},"grid-col-order-11"),(0,w.style)({order:12},"grid-col-order-12"),(0,w.style)({order:13},"grid-col-order-last"),(0,w.style)({order:-1},"grid-col-order-first"),wp("xs",1),wp("xs",2),wp("xs",3),wp("xs",4),wp("xs",5),wp("xs",6),wp("xs",7),wp("xs",8),wp("xs",9),wp("xs",10),wp("xs",11),wp("xs",12),wp("xs",13),wp("xs",-1),wp("sm",1),wp("sm",2),wp("sm",3),wp("sm",4),wp("sm",5),wp("sm",6),wp("sm",7),wp("sm",8),wp("sm",9),wp("sm",10),wp("sm",11),wp("sm",12),wp("sm",13),wp("sm",-1),wp("md",1),wp("md",2),wp("md",3),wp("md",4),wp("md",5),wp("md",6),wp("md",7),wp("md",8),wp("md",9),wp("md",10),wp("md",11),wp("md",12),wp("md",13),wp("md",-1),wp("lg",1),wp("lg",2),wp("lg",3),wp("lg",4),wp("lg",5),wp("lg",6),wp("lg",7),wp("lg",8),wp("lg",9),wp("lg",10),wp("lg",11),wp("lg",12),wp("lg",13),wp("lg",-1),wp("xl",1),wp("xl",2),wp("xl",3),wp("xl",4),wp("xl",5),wp("xl",6),wp("xl",7),wp("xl",8),wp("xl",9),wp("xl",10),wp("xl",11),wp("xl",12),wp("xl",13),wp("xl",-1),wp("xxl",1),wp("xxl",2),wp("xxl",3),wp("xxl",4),wp("xxl",5),wp("xxl",6),wp("xxl",7),wp("xxl",8),wp("xxl",9),wp("xxl",10),wp("xxl",11),wp("xxl",12),wp("xxl",13),wp("xxl",-1),(0,w.style)({justifyContent:"flex-start !important"},"grid-justify-content-start"),(0,w.style)({justifyContent:"flex-end !important"},"grid-justify-content-end"),(0,w.style)({justifyContent:"center !important"},"grid-justify-content-center"),(0,w.style)({justifyContent:"space-between !important"},"grid-justify-content-between"),(0,w.style)({justifyContent:"space-around !important"},"grid-justify-content-around"),kp("xs","start","flex-start"),kp("xs","end","flex-end"),kp("xs","center","center"),kp("xs","between","space-between"),kp("xs","around","space-around"),kp("sm","start","flex-start"),kp("sm","end","flex-end"),kp("sm","center","center"),kp("sm","between","space-between"),kp("sm","around","space-around"),kp("md","start","flex-start"),kp("md","end","flex-end"),kp("md","center","center"),kp("md","between","space-between"),kp("md","around","space-around"),kp("lg","start","flex-start"),kp("lg","end","flex-end"),kp("lg","center","center"),kp("lg","between","space-between"),kp("lg","around","space-around"),kp("xl","start","flex-start"),kp("xl","end","flex-end"),kp("xl","center","center"),kp("xl","between","space-between"),kp("xl","around","space-around"),kp("xxl","start","flex-start"),kp("xxl","end","flex-end"),kp("xxl","center","center"),kp("xxl","between","space-between"),kp("xxl","around","space-around"),(0,w.style)({alignSelf:"auto !important"},"grid-align-self-auto"),(0,w.style)({alignSelf:"flex-start !important"},"grid-align-self-start"),(0,w.style)({alignSelf:"flex-end !important"},"grid-align-self-end"),(0,w.style)({alignSelf:"center !important"},"grid-align-self-center"),(0,w.style)({alignSelf:"baseline !important"},"grid-align-self-baseline"),(0,w.style)({alignSelf:"stretch !important"},"grid-align-self-stretch"),_p("xs","auto","auto"),_p("xs","start","flex-start"),_p("xs","end","flex-end"),_p("xs","center","center"),_p("xs","baseline","baseline"),_p("xs","stretch","stretch"),_p("sm","auto","auto"),_p("sm","start","flex-start"),_p("sm","end","flex-end"),_p("sm","center","center"),_p("sm","baseline","baseline"),_p("sm","stretch","stretch"),_p("md","auto","auto"),_p("md","start","flex-start"),_p("md","end","flex-end"),_p("md","center","center"),_p("md","baseline","baseline"),_p("md","stretch","stretch"),_p("lg","auto","auto"),_p("lg","start","flex-start"),_p("lg","end","flex-end"),_p("lg","center","center"),_p("lg","baseline","baseline"),_p("lg","stretch","stretch"),_p("xl","auto","auto"),_p("xl","start","flex-start"),_p("xl","end","flex-end"),_p("xl","center","center"),_p("xl","baseline","baseline"),_p("xl","stretch","stretch"),_p("xxl","auto","auto"),_p("xxl","start","flex-start"),_p("xxl","end","flex-end"),_p("xxl","center","center"),_p("xxl","baseline","baseline"),_p("xxl","stretch","stretch"),(0,w.style)({alignItems:"flex-start !important"},"grid-align-items-start"),(0,w.style)({alignItems:"flex-end !important"},"grid-align-items-end"),(0,w.style)({alignItems:"center !important"},"grid-align-items-center"),(0,w.style)({alignItems:"baseline !important"},"grid-align-items-baseline"),(0,w.style)({alignItems:"stretch !important"},"grid-align-items-stretch"),Ep("xs","start","flex-start"),Ep("xs","end","flex-end"),Ep("xs","center","center"),Ep("xs","baseline","baseline"),Ep("xs","stretch","stretch"),Ep("sm","start","flex-start"),Ep("sm","end","flex-end"),Ep("sm","center","center"),Ep("sm","baseline","baseline"),Ep("sm","stretch","stretch"),Ep("md","start","flex-start"),Ep("md","end","flex-end"),Ep("md","center","center"),Ep("md","baseline","baseline"),Ep("md","stretch","stretch"),Ep("lg","start","flex-start"),Ep("lg","end","flex-end"),Ep("lg","center","center"),Ep("lg","baseline","baseline"),Ep("lg","stretch","stretch"),Ep("xl","start","flex-start"),Ep("xl","end","flex-end"),Ep("xl","center","center"),Ep("xl","start","baseline"),Ep("xl","stretch","stretch"),Ep("xxl","start","flex-start"),Ep("xxl","end","flex-end"),Ep("xxl","center","center"),Ep("xxl","baseline","baseline"),Ep("xxl","stretch","stretch"),(0,w.style)({alignContent:"flex-start !important"},"grid-align-content-start"),(0,w.style)({alignContent:"flex-end"},"grid-align-content-end"),(0,w.style)({alignContent:"center !important"},"grid-align-content-center"),(0,w.style)({alignContent:"space-between !important"},"grid-align-content-between"),(0,w.style)({alignContent:"space-around !important"},"grid-align-content-around"),(0,w.style)({alignContent:"stretch !important"},"grid-align-content-stretch"),Sp("xs","start","flex-start"),Sp("xs","end","flex-end"),Sp("xs","center","center"),Sp("xs","between","space-between"),Sp("xs","around","space-around"),Sp("xs","stretch","stretch"),Sp("sm","start","flex-start"),Sp("sm","end","flex-end"),Sp("sm","center","center"),Sp("sm","between","space-between"),Sp("sm","around","space-around"),Sp("sm","stretch","stretch"),Sp("md","start","flex-start"),Sp("md","end","flex-end"),Sp("md","center","center"),Sp("md","between","space-between"),Sp("md","around","space-around"),Sp("md","stretch","stretch"),Sp("lg","start","flex-start"),Sp("lg","end","flex-end"),Sp("lg","center","center"),Sp("lg","between","space-between"),Sp("lg","around","space-around"),Sp("lg","stretch","stretch"),Sp("xl","start","flex-start"),Sp("xl","end","flex-end"),Sp("xl","center","center"),Sp("xl","between","space-between"),Sp("xl","around","space-around"),Sp("xl","stretch","stretch"),Sp("xxl","start","flex-start"),Sp("xxl","end","flex-end"),Sp("xxl","center","center"),Sp("xxl","between","space-between"),Sp("xxl","around","space-around"),Sp("xxl","stretch","stretch"),(0,w.style)({display:"none !important"},"grid-display-none"),(0,w.style)({display:"inline !important"},"grid-display-inline"),(0,w.style)({display:"inline-block !important"},"grid-display-inline-block"),(0,w.style)({display:"block !important"},"grid-display-block"),(0,w.style)({display:"table !important"},"grid-display-table"),(0,w.style)({display:"table-row !important"},"grid-display-table-row"),(0,w.style)({display:"table-cell !important"},"grid-display-table-cell"),(0,w.style)({display:"flex !important "},"grid-display-flex"),xp("xs","none"),xp("xs","inline"),xp("xs","inline-block"),xp("xs","block"),xp("xs","table"),xp("xs","table-row"),xp("xs","table-cell"),xp("xs","flex"),xp("sm","none"),xp("sm","inline"),xp("sm","inline-block"),xp("sm","block"),xp("sm","table"),xp("sm","table-row"),xp("sm","table-cell"),xp("sm","flex"),xp("md","none"),xp("md","inline"),xp("md","inline-block"),xp("md","block"),xp("md","table"),xp("md","table-row"),xp("md","table-cell"),xp("md","flex"),xp("lg","none"),xp("lg","inline"),xp("lg","inline-block"),xp("lg","block"),xp("lg","table"),xp("lg","table-row"),xp("lg","table-cell"),xp("lg","flex"),xp("xl","none"),xp("xl","inline"),xp("xl","inline-block"),xp("xl","block"),xp("xl","table"),xp("xl","table-row"),xp("xl","table-cell"),xp("xl","flex"),xp("xxl","none"),xp("xxl","inline"),xp("xxl","inline-block"),xp("xxl","block"),xp("xxl","table"),xp("xxl","table-row"),xp("xxl","table-cell"),xp("xxl","flex"),(0,w.style)({msFlexDirection:"row",flexDirection:"row"},"grid-flex-row"),(0,w.style)({msFlexDirection:"column",flexDirection:"column"},"grid-flex-column"),(0,w.style)({msFlexDirection:"row-reverse",flexDirection:"row-reverse"},"grid-flex-row-reverse"),(0,w.style)({msFlexDirection:"column-reverse",flexDirection:"column-reverse"},"grid-flex-column-reverse"),(0,w.style)({flexWrap:"wrap-reverse"},"grid-flex-wrap-reverse"),(0,w.style)({msFlex:"1 1 auto",flex:"1 1 auto"},"grid-flex-fill"),(0,w.style)({msFlexPositive:"0",flexGrow:"0"},"grid-flex-grow-0"),(0,w.style)({msFlexPositive:"1",flexGrow:"1"},"grid-flex-grow-1"),(0,w.style)({flexShrink:"0"},"grid-flex-shrink-0"),(0,w.style)({flexShrink:"1"},"grid-flex-shrink-1"),Cp("xs","row"),Cp("xs","column"),Cp("xs","row-reverse"),Cp("xs","column-reverse"),Cp("xs","wrap-reverse"),Cp("xs","fill"),Cp("xs","grow-0"),Cp("xs","grow-1"),Cp("xs","shrink-0"),Cp("xs","shrink-1"),Cp("sm","row"),Cp("sm","column"),Cp("sm","row-reverse"),Cp("sm","column-reverse"),Cp("sm","wrap-reverse"),Cp("sm","fill"),Cp("sm","grow-0"),Cp("sm","grow-1"),Cp("sm","shrink-0"),Cp("sm","shrink-1"),Cp("md","row"),Cp("md","column"),Cp("md","row-reverse"),Cp("md","column-reverse"),Cp("md","wrap-reverse"),Cp("md","fill"),Cp("md","grow-0"),Cp("md","grow-1"),Cp("md","shrink-0"),Cp("md","shrink-1"),Cp("lg","row"),Cp("lg","column"),Cp("lg","row-reverse"),Cp("lg","column-reverse"),Cp("lg","wrap-reverse"),Cp("lg","fill"),Cp("lg","grow-0"),Cp("lg","grow-1"),Cp("lg","shrink-0"),Cp("lg","shrink-1"),Cp("xl","row"),Cp("xl","column"),Cp("xl","row-reverse"),Cp("xl","column-reverse"),Cp("xl","wrap-reverse"),Cp("xl","fill"),Cp("xl","grow-0"),Cp("xl","grow-1"),Cp("xl","shrink-0"),Cp("xl","shrink-1"),Cp("xxl","row"),Cp("xxl","column"),Cp("xxl","row-reverse"),Cp("xxl","column-reverse"),Cp("xxl","wrap-reverse"),Cp("xxl","fill"),Cp("xxl","grow-0"),Cp("xxl","grow-1"),Cp("xxl","shrink-0"),Cp("xxl","shrink-1"),(0,w.style)({width:"100%",paddingRight:x.space[200],paddingLeft:x.space[200],marginRight:"auto",marginLeft:"auto"},"grid-container_fluid"),(0,w.style)({width:"100%",paddingRight:0,paddingLeft:0,marginRight:"auto",marginLeft:"auto"},"grid-container_form"),(0,w.style)({width:"100%",paddingRight:x.space[450],paddingLeft:x.space[450],marginRight:"auto",marginLeft:"auto",maxWidth:O,"@media":{[`(min-width: ${$})`]:{paddingRight:x.space[400],paddingLeft:x.space[400],maxWidth:O},[`(min-width: ${O})`]:{paddingRight:x.space[600],paddingLeft:x.space[600],maxWidth:O}}},"grid-container_xxl"),(0,w.style)({width:"100%",paddingRight:x.space[150],paddingLeft:x.space[150],marginRight:"auto",marginLeft:"auto","@media":{[`(min-width: ${C})`]:{paddingRight:x.space[300],paddingLeft:x.space[300],maxWidth:C},[`(min-width: ${$})`]:{paddingRight:x.space[450],paddingLeft:x.space[450],maxWidth:$},[`(min-width: ${A})`]:{paddingRight:x.space[450],paddingLeft:x.space[450],maxWidth:A},[`(min-width: ${T})`]:{paddingRight:x.space[450],paddingLeft:x.space[450],maxWidth:T}}},"grid-container"),(0,w.style)({display:"flex",flexWrap:"wrap",marginRight:`calc(${x.space[150]} * -1)`,marginLeft:`calc(${x.space[150]} * -1)`},"grid-row"),(0,w.style)({...Tp,flexBasis:0,msFlexPositive:1,flexGrow:1,maxWidth:"100%"},"grid-col")),Pp=((0,w.style)({msFlex:"0 0 auto",flex:"0 0 auto",maxWidth:"none",width:"auto"},"grid-col-auto"),$p(1),$p(2),$p(3),$p(4),$p(5),$p(6),$p(7),$p(8),$p(9),$p(10),$p(11),$p(12),vp("xs",1),vp("xs",2),vp("xs",3),vp("xs",4),vp("xs",5),vp("xs",6),vp("xs",7),vp("xs",8),vp("xs",9),vp("xs",10),vp("xs",11),vp("xs",12),vp("sm",1),vp("sm",2),vp("sm",3),vp("sm",4),vp("sm",5),vp("sm",6),vp("sm",7),vp("sm",8),vp("sm",9),vp("sm",10),vp("sm",11),vp("sm",12),vp("md",1),vp("md",2),vp("md",3),vp("md",4),vp("md",5),vp("md",6),vp("md",7),vp("md",8),vp("md",9),vp("md",10),vp("md",11),vp("md",12),vp("lg",1),vp("lg",2),vp("lg",3),vp("lg",4),vp("lg",5),vp("lg",6),vp("lg",7),vp("lg",8),vp("lg",9),vp("lg",10),vp("lg",11),vp("lg",12),vp("xl",1),vp("xl",2),vp("xl",3),vp("xl",4),vp("xl",5),vp("xl",6),vp("xl",7),vp("xl",8),vp("xl",9),vp("xl",10),vp("xl",11),vp("xl",12),vp("xxl",1),vp("xxl",2),vp("xxl",3),vp("xxl",4),vp("xxl",5),vp("xxl",6),vp("xxl",7),vp("xxl",8),vp("xxl",9),vp("xxl",10),vp("xxl",11),vp("xxl",12),(0,w.style)({...Ap},"grid-col-form-vspace"),(0,w.style)({...Tp,...Ap,msFlex:"0 0 100%",flex:"0 0 100%",maxWidth:"100%"},"grid-col-form-full"),(0,w.style)({...Tp,...Ap,msFlex:"0 0 50%",flex:"0 0 50%",maxWidth:"50%"},"grid-col-form-half"),(0,w.style)({...Tp,...Ap,msFlex:"0 0 75%",flex:"0 0 75%",maxWidth:"75%"},"grid-col-form-3qtr"),(0,w.style)({...Tp,...Ap,msFlex:"0 0 25%",flex:"0 0 25%",maxWidth:"25%"},"grid-col-form-1qtr"),(0,w.style)({...Tp,...Ap,msFlex:"0 0 auto",flex:"0 0 auto",maxWidth:"auto"},"grid-col-form-auto"),(0,w.style)({marginLeft:0,marginRight:0},"grid-no-gutters"));(0,w.globalStyle)(`${Pp} > ${Op}, ${Pp} > [class*='col-']`,{paddingLeft:0,paddingRight:0}),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-auto-suggest");const zp=`calc((2 * ${x.size.field.lg}))`,Fp=(0,w.style)({position:"relative"},"auto-suggest_base"),Np=(0,w.style)({minWidth:zp,maxWidth:x.size.media.lg,marginTop:x.space[75],padding:`${x.space[100]} 0`,overflowX:"hidden",width:"100%"},"auto-suggest_suggestion_list_container"),Rp=(0,w.style)([Np,yo,{borderRadius:x.border.radius.lg,backgroundColor:x.color.background.surface,zIndex:q,outline:`${x.border.thickness.normal} solid transparent`,top:x.size.field.lg,position:"absolute"}],"auto-suggest_elevated_suggestion_list_container"),Ip=(0,w.style)({padding:`${x.space[150]} ${x.space[200]}`},"auto-suggest_content"),Lp=(0,w.style)({overflowY:"auto",maxHeight:x.size.media.sm,"@media":{[`(max-width: ${$})`]:{maxHeight:`calc((${x.size.media.sm}))`}}},"auto-suggest_suggestion_list"),Mp=(0,w.style)({display:"flex",justifyContent:"center"},"auto-suggest_centered_content"),Dp=(0,w.style)({margin:`0 ${x.space[200]}`},"auto-suggest_error_message");b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-contextual-alert");const Hp=(0,w.style)([Fe,{display:"flex"}],"contextual-alert_base"),Bp=(0,w.style)({marginTop:"0.0625rem",marginRight:x.space[50],height:x.size.icon.xs,flexShrink:"0",selectors:{"[dir='rtl'] &":{marginLeft:`${x.space[50]}`,marginRight:0}}},"contextual-alert_status_icon"),jp=(0,w.style)({marginTop:x.space[25]},"contextual-alert_content_wrapper"),Wp=(0,w.style)({padding:0},"contextual-alert_no_padding");b.endFileScope();var Vp=["className","type","typeIconAriaLabel","children","noPadding"],Up=["info","success","error","warning"],qp={info:function(e){e.svgElementRef;var t=g(e,va);return v().createElement(na,m({"aria-label":"information icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M12 2.25A9.75 9.75 0 1 0 21.75 12 9.76 9.76 0 0 0 12 2.25zm0 18A8.25 8.25 0 1 1 20.25 12 8.26 8.26 0 0 1 12 20.25zm1.5-3.75a.75.75 0 0 1-.75.75 1.5 1.5 0 0 1-1.5-1.5V12a.75.75 0 1 1 0-1.5 1.5 1.5 0 0 1 1.5 1.5v3.75a.75.75 0 0 1 .75.75zm-3-8.625a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0z","data-ppui":"true"})),e.children)},success:$a,warning:function(e){e.svgElementRef;var t=g(e,_a);return v().createElement(na,m({"aria-label":"warning icon"},t,{"data-ppui":"true"}),v().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",ref:e.svgElementRef,"data-ppui":"true"},v().createElement("path",{d:"M12 2.25A9.75 9.75 0 1 0 21.75 12 9.76 9.76 0 0 0 12 2.25zm0 18A8.25 8.25 0 1 1 20.25 12 8.26 8.26 0 0 1 12 20.25zm-.75-7.5V7.5a.75.75 0 1 1 1.5 0v5.25a.75.75 0 1 1-1.5 0zm1.875 3.375a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0z","data-ppui":"true"})),e.children)},error:Na},Gp=function(e){var t=e.className,r=e.type,n=void 0===r?"info":r,a=e.typeIconAriaLabel,i=void 0===a?n:a,o=e.children,l=e.noPadding,s=void 0!==l&&l,c=g(e,Vp),u=Up.includes(n)?n:"info",d=qp[u],p=Z(Hp,s&&Wp,t);return v().createElement("div",m({role:"alert",className:p,"data-ppui-info":"contextual-alert_4.1.3__8.12.0"},c),v().createElement(d,{className:Bp,size:"xs",color:{info:"sysColorInfoContrast",success:"sysColorSuccessMain",warning:"sysColorWarningAlt",error:"sysColorErrorMain"}[u],role:"img","aria-label":i,"data-ppui":"true"}),v().createElement("div",{className:jp,"data-ppui":"true"},o))},Kp=["suggestions","renderSuggestion","onHighlight","onSelect","className","listItemClassName","query","enableKeyboardInteraction","hasSections"];function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zp=function(e){var t=e.suggestions,r=void 0===t?[]:t,n=e.renderSuggestion,a=e.onHighlight,i=e.onSelect,o=e.className,l=e.listItemClassName,s=e.query,c=e.enableKeyboardInteraction,u=void 0===c||c,d=e.hasSections,p=g(e,Kp),f=ro((0,y.useState)(-1),2),h=f[0],b=f[1],w=(0,y.useRef)(-1),x=(0,y.useRef)([]),k=function(e,t){return t?e.reduce((function(e,t,r){return t.suggestions&&t.suggestions.forEach((function(n,a){e.push({value:n,section:t,suggestionIndex:a,sectionIndex:r})})),e}),[]):e.reduce((function(e,t,r){return e.push({value:t,suggestionIndex:r}),e}),[])}(r,d),_=function(e,t){if(b(t),w.current=t,-1!==t){var r=k[t].section?"".concat(k[t].section.id,"_").concat(k[t].value.id):k[t].value.id,n=x.current[r];n&&n.scrollIntoView&&n.scrollIntoView({behavior:"smooth",block:"nearest"})}a&&a(e,k[t].value,k[t].section)},S=function(e,t){i&&i(e,k[t].value,k[t].section)},E=function(e){if(k.length){var t=[];k.map((function(e){return t.push(e.value)}));var r=w.current,n=new re(e.key||e.keyCode);n.IS_ARROW_UP?(e.preventDefault(),_(e,Jo(t,r,"previous"))):n.IS_ARROW_DOWN?(e.preventDefault(),_(e,Jo(t,r,"next"))):n.IS_ENTER&&(e.preventDefault(),r>=0&&S(e,r))}};(0,y.useEffect)((function(){return b(-1),w.current=-1,r.length&&u&&document.addEventListener("keydown",E),function(){document.removeEventListener("keydown",E)}}),[r,u]);var C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r.length>0?e.map((function(e,r){var a=e.hasOwnProperty("value")?e.value:e.label,i=n?n(e,s):function(e,t){var r=oe(e,t);return v().createElement(rn,{as:"span",dangerouslySetInnerHTML:{__html:r},"data-ppui":"true"})}(a,s);return Xp(Xp({},e),{},I(I(I(I({id:e.id,decoration:e.decoration?{thumbnail:e.decoration,align:"center"}:null,trailingContent:{align:"center"},onMouseDown:function(e){return e.preventDefault()},onMouseMove:function(e){return e.preventDefault()},onClick:function(e){S(e,t+r)},role:"option"},"data-value",a),"label",i),"labelDescription",e.labelDescription),"className",l))})):[]},$=d?function(){if(r.length>0){var e=0;return r.map((function(t){var r={title:t.title,sectionItems:C(t.suggestions,e)};return e+=t.suggestions.length,r}))}return[]}():C(r);return k.length?v().createElement(rl,m({className:o,tabIndex:0,hasSections:d,ref:x,options:$,activeIndex:h},p,{"data-ppui":"true"})):null},Qp=["id","value","debounceTimeout","fetchSuggestions","suggestionList","isSuggestionListInline","isLoadingSuggestions","onChange","onFocus","onKeyDown","onBlur","onClear","className","triggerComponent","suggestions","defaultSuggestionList","suggestionListFooter","suggestionListContainerClassName","suggestionListFooterClassName","suggestionListChangeMessage","suggestionListLoadingMessage","suggestionListErrorMessage","onSuggestionListClose"],Jp=function(e,t){return t?e.reduce((function(e,t){return t.suggestions&&(e+=t.suggestions.length),e}),0):e.length};(0,y.forwardRef)((function(e,t){var r=e.id,n=void 0===r?"default":r,a=e.value,i=e.debounceTimeout,o=void 0===i?500:i,l=e.fetchSuggestions,s=void 0===l?function(){}:l,c=e.suggestionList,u=void 0===c?v().createElement(Zp,{suggestions:[],"data-ppui":"true"}):c,d=e.isSuggestionListInline,p=e.isLoadingSuggestions,f=e.onChange,h=e.onFocus,b=e.onKeyDown,w=e.onBlur,x=e.onClear,k=e.className,_=e.triggerComponent,S=void 0===_?Zi:_;e.suggestions;var E=e.defaultSuggestionList,C=void 0===E?v().createElement(Zp,{suggestions:[],"data-ppui":"true"}):E,$=e.suggestionListFooter,A=e.suggestionListContainerClassName,T=e.suggestionListFooterClassName,O=e.suggestionListChangeMessage,P=e.suggestionListLoadingMessage,z=void 0===P?"Loading suggestions":P,F=e.suggestionListErrorMessage,N=e.onSuggestionListClose,R=g(e,Qp),I=(0,y.useRef)(),L=(0,y.useRef)(),M=(0,y.useRef)(),D=ro((0,y.useState)(!1),2),H=D[0],B=D[1],j=ro((0,y.useState)(""),2),W=j[0],V=j[1],U=ro((0,y.useState)(!1),2),q=U[0],G=U[1],K=t||L,Y=Jp(u.props.suggestions||[],u.props.hasSections),X=Jp(C.props.suggestions||[],C.props.hasSections),Q=function(e){var t=K.current,r=M.current;e.target===t||r&&r.contains(e.target)||B(!1)};(0,y.useEffect)((function(){return function(){I.current&&clearTimeout(I.current)}}),[]),(0,y.useEffect)((function(){return H&&!d&&document.addEventListener("click",Q),function(){document.removeEventListener("click",Q)}}),[H,d]);var J=function(e){N&&Y&&N(e)},ee=function(e,t,r){V(r?"".concat(r.id,"_").concat(t.id):t.id),u.props.onHighlight&&u.props.onHighlight(e,t,r)},te=function(e,t,r){u.props.onSelect&&u.props.onSelect(e,t,r),d||B(!1)},ne="".concat(n,"-suggestionList"),ae=$?v().createElement("div",{className:Z(Ip,T),"data-ppui":"true"},$):null,ie=!p&&Y>0&&v().createElement(v().Fragment,null,v().cloneElement(u,{id:ne,"aria-labelledby":"".concat(n,"-label"),onHighlight:ee,onSelect:te,enableKeyboardInteraction:q,className:Lp}),ae),oe=X>0&&v().createElement(v().Fragment,null,v().cloneElement(C,{id:ne,"aria-labelledby":"".concat(n,"-label"),onHighlight:ee,onSelect:te,enableKeyboardInteraction:q,className:Lp}),ae),le=p?v().createElement("div",{className:Mp,"data-ppui":"true"},v().createElement(vl,{screenReaderText:z,size:"md","data-ppui":"true"})):null,se=null;Y||p||!F||(se=(0,y.isValidElement)(F)?F:v().createElement(Gp,{className:Dp,type:"warning","data-ppui":"true"},F));var ce=d?Np:Rp,ue=null;a&&H&&(ie||le||se)?ue=v().createElement("div",{className:Z(ce,A),ref:M,"data-ppui":"true"},ie,le,se):!a&&H&&X>0&&(ue=v().createElement("div",{className:Z(ce,A),ref:M,"data-ppui":"true"},oe));var de=O||"".concat(Y," suggestions available"),fe=S!==Zi?{onClear:function(e){J(e),x&&x(e)}}:{};return v().createElement("div",{className:Z(Fp,k),"data-ppui-info":"auto-suggest_3.2.4__8.12.0"},v().createElement(S,m({},R,{id:n,value:a,ref:K,onChange:function(e){var t=e.target.value;I.current&&clearTimeout(I.current),I.current=setTimeout((function(){s(t)}),o),B(!0),f(e)},onFocus:function(e){(Y||X)&&B(!0),s(a),G(!0),h&&h(e)},onKeyDown:function(e){var t=new re(e.key||e.keyCode);(t.IS_ESC||t.IS_TAB)&&(d||B(!1),t.IS_ESC&&x&&x(e)),b&&b(e)},onBlur:function(e){J(e),G(!1),w&&w(e)},"aria-activedescendant":W,"aria-autocomplete":"list",role:"combobox","aria-expanded":Y>0&&H,"aria-owns":ne,"aria-haspopup":"listbox"},fe,{"data-ppui":"true"})),ue,v().createElement(pe,{role:"status","data-ppui":"true"},de))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-address-input"),(0,w.style)({textAlign:"center"},"address-input-suggestion-list-footer"),(0,w.style)({height:"0.75rem"},"address-input-google-logo"),(0,w.style)({color:x.color.background.mediumContrast,marginTop:x.space[50]},"address-input-google-address-secondary-text"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-alert");const ef=`calc(${x.space[100]} + ${x.size.field.sm})`,tf=`calc(${x.space[350]} + ${x.typography.body.size})`,rf=`calc(${x.space[200]} - ${x.space[25]})`,nf=`calc(${x.space[100]} - ${x.border.thickness.normal})`,af=`calc(${x.space[200]} - ${x.border.thickness.emphasis})`,of=((0,w.style)([$e,{boxSizing:"border-box",padding:`${x.space[200]} ${ef} ${x.space[200]}\n ${tf}`,borderWidth:x.border.thickness.normal,borderStyle:"solid",borderRadius:x.border.radius.lg,position:"relative",textAlign:"initial",selectors:{"[dir='rtl'] &":{paddingLeft:ef,paddingRight:tf}}}],"alert_base"),(0,w.style)({display:"inline-block",position:"absolute",left:rf,textAlign:"center",color:x.color.system.mainActive,lineHeight:x.size.icon.sm,fontSize:x.size.icon.sm,top:af,verticalAlign:"middle",selectors:{"[dir='rtl'] &":{left:"auto",right:rf}}},"alert_svg_icon"),(0,w.style)({position:"absolute",top:0,right:nf,selectors:{"[dir='rtl'] &":{left:nf,right:"auto"}}},"alert_close_btn"),(e,t)=>({border:"none",backgroundColor:e,color:t}));(0,w.style)({...of(x.color.info.main,x.color.info.contrast),vars:U(x,"info")},"alert_info"),(0,w.style)({...of(x.color.warning.main,x.color.warning.contrast),vars:U(x,"warning")},"alert_warning"),(0,w.style)({...of(x.color.success.main,x.color.success.contrast),vars:U(x,"success")},"alert_success"),(0,w.style)({...of(x.color.error.main,x.color.error.contrast),vars:U(x,"error")},"alert_error"),(0,w.style)({color:x.color.info.contrast},"info_icon"),(0,w.style)({color:x.color.warning.contrast},"warning_icon"),(0,w.style)({color:x.color.success.contrast},"success_icon"),(0,w.style)({color:x.color.error.contrast},"error_icon"),(0,w.style)({paddingRight:x.space[200],selectors:{"[dir='rtl'] &":{paddingLeft:x.space[200],paddingRight:tf}}},"no_close_btn"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-appbadge");const lf="2.5rem";(0,w.style)({lineHeight:0},"appbadge_base"),(0,w.style)({height:lf,width:"7.5rem",verticalAlign:"bottom"},"appbadge_ios"),(0,w.style)({height:lf,width:"8.4375rem",verticalAlign:"bottom"},"appbadge_android"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar");const sf=e=>({width:e,height:e}),cf=(e,t)=>({backgroundColor:e,color:t});(0,w.style)({...xe,borderRadius:x.border.radius.interactive,...sf(x.size.circle.lg)},"shimmer"),(0,w.style)({...sf(x.size.circle.md)},"shimmer_size_md"),(0,w.style)({...sf(x.size.circle.sm)},"shimmer_size_sm"),(0,w.style)({...sf(x.size.circle.xs)},"shimmer_size_xs"),(0,w.style)({...sf(x.size.circle.lg),...rt,lineHeight:x.size.circle.lg},"avatar_size_lg"),(0,w.style)({...sf(x.size.circle.md),...Ae,lineHeight:x.size.circle.md},"avatar_size_md"),(0,w.style)({...sf(x.size.circle.sm),...Ne,lineHeight:x.size.circle.sm},"avatar_size_sm"),(0,w.style)({...sf(x.size.circle.xs),...Ve,lineHeight:x.size.circle.xs},"avatar_size_xs"),(0,w.style)({borderRadius:x.border.radius.interactive,textAlign:"center",textTransform:"uppercase",display:"flex",justifyContent:"center",alignItems:"center",border:"none",...cf(x.color.accent1.main,x.color.accent1.contrast),position:"relative"},"avatar_base"),(0,w.style)({...cf(x.color.accent1.main,x.color.accent1.contrast)},"avatar_colorAccent1Main"),(0,w.style)({...cf(x.color.accent2.main,x.color.accent2.contrast)},"avatar_colorAccent2Main"),(0,w.style)({...cf(x.color.accent3.main,x.color.accent3.contrast)},"avatar_colorAccent3Main"),(0,w.style)({...cf(x.color.accent4.main,x.color.accent4.contrast)},"avatar_colorAccent4Main"),(0,w.style)({...cf(x.color.accent3.main,x.color.accent3.contrast)},"generic_bank"),(0,w.style)({...cf(x.color.accent4.main,x.color.accent4.contrast)},"generic_causes"),(0,w.style)({...cf(x.color.accent4.main,x.color.accent4.contrast)},"generic_biller"),(0,w.style)({...cf(x.color.accent1.main,x.color.accent1.contrast)},"generic_merchant"),(0,w.style)({...cf(x.color.accent1.main,x.color.accent1.contrast)},"generic_profile"),(0,w.style)({...cf(x.color.accent2.main,x.color.accent2.contrast)},"generic_subscription"),(0,w.style)({borderRadius:"inherit",...sf("inherit"),background:x.color.accent1.contrast,objectFit:"cover"},"avatar_image"),(0,w.style)({boxSizing:"border-box",position:"absolute",bottom:0,right:`calc(${x.border.thickness.normal} * -1)`},"avatar_badge"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar-button");const uf="0.0421875rem",df=(0,w.style)({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",padding:`${x.space[150]} 0`,minHeight:"7.25rem",width:"6rem",wordWrap:"break-word",background:"none",border:"none",...Ne,color:x.color.background.highContrast,":focus":{cursor:"pointer",outline:"none"},":hover":{cursor:"pointer"}},"avatar_button_base"),pf=(0,w.style)({textAlign:"center",padding:`${x.space[100]} ${x.space[100]} 0 ${x.space[100]}`,width:"inherit",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},"avatar_button_label");(0,w.globalStyle)(`${df}:focus > span:first-of-type`,{WebkitTextStrokeWidth:uf}),(0,w.globalStyle)(`${df}:focus > span:last-of-type`,{textDecoration:"underline"}),(0,w.globalStyle)(`${df}:focus > div:first-of-type`,{...Rn,boxShadow:"inherit",outlineOffset:"inherit"}),(0,w.globalStyle)(`${df}:hover > span:first-of-type`,{WebkitTextStrokeWidth:uf}),(0,w.globalStyle)(`${df}:hover > span:last-of-type`,{textDecoration:"underline"}),b.endFileScope();var ff=["className","label","children","as"];(0,y.forwardRef)((function(e,t){var r=e.className,n=e.label,a=void 0===n?"default":n,i=e.children,o=e.as,l=g(e,ff),s=v().cloneElement(i,{size:"lg","aria-hidden":"true"});return v().createElement(o||"button",m({role:"button",className:Z(df,r),tabIndex:0,ref:t},l,{"data-ppui":"true"}),s,v().createElement("span",{className:pf,"data-ppui":"true"},a))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar-stack");const{ellipsisName:hf}=n,mf=((0,w.style)({display:"flex",alignItems:"center"},"avatar_stack_base"),(0,w.style)({borderRadius:x.border.radius.interactive,flexShrink:0,backgroundColor:x.color.background.main,border:`solid ${x.border.thickness.normal} ${x.color.background.surface}`,zIndex:1,selectors:{"[dir=rtl] &":{marginLeft:0}}},"avatar"));(0,w.style)([hf,{...Ne,color:x.color.background.mediumContrast,marginLeft:x.space[100],marginRight:0,selectors:{"[dir=rtl] &":{marginLeft:0,marginRight:x.space[100]}}}],"avatar_label"),(0,w.globalStyle)(`${mf}:not(:first-of-type)`,{marginInlineStart:`calc(${x.space[100]} * -1)`}),(0,w.globalStyle)(`${mf} > div`,{overflow:"hidden"}),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-badge");const gf={borderStyle:"solid",borderColor:"transparent"},yf=(e,t=null)=>{const r={color:e};return t&&(r.backgroundColor=t),r},vf=(0,w.style)({maxWidth:"18rem",overflow:"hidden",wordBreak:"break-word",textTransform:"none",WebkitLineClamp:2,display:"-webkit-inline-box",WebkitBoxOrient:"vertical",height:"auto"},"badge-base"),bf=((0,w.style)([Fe,vf,{borderRadius:x.border.radius.md,borderTopWidth:x.space[100],borderBottomWidth:x.space[100],borderRightWidth:x.space[100],borderLeftWidth:x.space[100]},gf],"badge-base_large"),(0,w.style)([We,vf,{borderRadius:x.border.radius.sm,borderTopWidth:x.space[25],borderBottomWidth:x.space[25],borderRightWidth:x.space[100],borderLeftWidth:x.space[100]},gf],"badge-base_small"),(0,w.style)({position:"relative",paddingInlineStart:`calc(${x.size.icon.xs} + ${x.space[25]})`},"badge-left_icon"),(0,w.style)({position:"absolute",insetInline:"0 auto",insetBlock:`calc(${x.border.thickness.normal} * -1)`},"badge-icon"),(0,w.style)({width:x.size.circle.xs,height:x.size.circle.xs,padding:x.border.thickness.normal,border:`${x.border.thickness.emphasis} solid ${x.color.background.surface}`,borderRadius:"50%"},"badge-icon_badge"));(0,w.style)([bf,yf(x.color.success.main,x.color.background.main)],"badge-authorized"),(0,w.style)([bf,yf(x.color.warning.alt,x.color.background.main)],"badge-inprogress"),(0,w.style)([bf,yf(x.color.error.main,x.color.background.main)],"badge-onhold"),(0,w.style)([bf,yf(x.color.specialty.main,x.color.background.main)],"badge-favorite"),(0,w.style)([Gt,yf(x.color.error.contrast,x.color.error.main),{padding:`0 ${x.space[50]}`,height:x.size.icon.xs,minWidth:x.size.icon.xs,outline:`${x.border.thickness.emphasis} solid ${x.color.background.surface}`,border:"0",borderRadius:`calc(${x.size.circle.xs}/2)`,lineHeight:x.typography.body.lineHeight,textAlign:"center",selectors:{"[dir='rtl'] &":{textAlign:"center"}}}],"badge-numeric"),(0,w.style)([yf(x.color.specialty.contrast,x.color.specialty.main),{vars:U(x,"specialty")}],"badge-high_contrast_feature"),(0,w.style)([yf(x.color.success.contrast,x.color.success.main),{vars:U(x,"success")}],"badge-high_contrast_success"),(0,w.style)([yf(x.color.warning.contrast,x.color.warning.main),{vars:U(x,"warning")}],"badge-high_contrast_warning"),(0,w.style)([yf(x.color.error.contrast,x.color.error.main),{vars:U(x,"error")}],"badge-high_contrast_critical"),(0,w.style)([yf(x.color.info.main,x.color.info.contrast),{vars:U(x,"info")}],"badge-high_contrast_neutral"),(0,w.style)([yf(x.color.overlay.contrast,x.color.overlay.main),{backdropFilter:`blur(calc(${x.blur.interactive} / 2))`,vars:U(x,"overlay")}],"badge-high_contrast_overlay"),(0,w.style)([yf(x.color.secondary.contrast,x.color.secondary.main),{vars:U(x,"secondary")}],"badge-high_contrast_highlight"),(0,w.style)([yf(x.color.specialty.medium.contrast,x.color.specialty.medium.main),{vars:U(x,"specialty")}],"badge-low_contrast_feature"),(0,w.style)([yf(x.color.success.medium.contrast,x.color.success.medium.main),{vars:U(x,"success")}],"badge-low_contrast_success"),(0,w.style)([yf(x.color.warning.medium.contrast,x.color.warning.medium.main),{vars:U(x,"warning")}],"badge-low_contrast_warning"),(0,w.style)([yf(x.color.error.medium.contrast,x.color.error.medium.main),{vars:U(x,"error")}],"badge-low_contrast_critical"),(0,w.style)([yf(x.color.info.contrast,x.color.info.main),{vars:U(x,"info")}],"badge-low_contrast_neutral"),(0,w.style)([yf(x.color.overlayInverse.contrast,x.color.overlayInverse.main),{backdropFilter:`blur(calc(${x.blur.interactive} / 2))`,vars:U(x,"overlay")}],"badge-low_contrast_overlay"),(0,w.style)([yf(x.color.tertiary.main,x.color.tertiary.contrast),{vars:U(x,"tertiary")}],"badge-low_contrast_highlight"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-banner");const wf=(0,w.style)({boxSizing:"border-box",textDecoration:"none",borderWidth:x.border.thickness.normal,padding:`${x.space[150]} ${x.space[200]}`,position:"relative",width:"100%",cursor:"pointer",display:"block",outline:`${x.border.thickness.normal} solid transparent`,":focus":Rn},"banner"),xf=((0,w.style)({selectors:{"&.critical":{backgroundColor:x.color.error.main},"&.warning":{backgroundColor:x.color.warning.main},"&.specialty":{backgroundColor:x.color.specialty.main}}},"banner-color-selector"),(0,w.style)({selectors:{"&:active.critical":{backgroundColor:x.color.error.mainActive},"&:active.warning":{backgroundColor:x.color.warning.mainActive},"&:active.specialty":{backgroundColor:x.color.specialty.mainActive}}},"banner-active-color-selector"),(0,w.style)({position:"relative",":before":{content:"",position:"absolute",margin:"0 -50vw",inset:"0 50%"}},"banner-full-width"),(0,w.style)([tt,{textAlign:"left",maxWidth:"100%",width:"100%",display:"flex",selectors:{"&.critical":{color:x.color.error.contrast},"&.warning":{color:x.color.warning.contrast},"&.specialty":{color:x.color.specialty.contrast}}}],"banner-title-wrapper"));(0,w.globalStyle)(`${wf}[dir="rtl"] ${xf}`,{textAlign:"right"}),(0,w.style)({marginTop:x.space[50]},"banner-title");const kf=(0,w.style)({marginRight:x.space[100],marginTop:x.space[25],flexShrink:"0"},"banner-left-side-icon");(0,w.globalStyle)(`${wf}[dir="rtl"] ${kf}`,{marginLeft:x.space[100],marginRight:0});const _f=(0,w.style)({marginRight:0,marginLeft:"auto",marginTop:x.space.tiny,flexShrink:"0"},"banner-right-side-icon");(0,w.globalStyle)(`${wf}[dir="rtl"] ${_f}`,{marginLeft:0,marginRight:"auto",transform:"rotate(180deg)"});const Sf=(0,w.style)([$e,{display:"flex",padding:`0 ${x.space[400]}`,selectors:{'&[dir="rtl"]':{textAlign:"right"},"&.critical":{color:x.color.error.contrast},"&.warning":{color:x.color.warning.contrast},"&.specialty":{color:x.color.specialty.contrast}}}],"banner-sub-text");(0,w.globalStyle)(`${wf}[dir="rtl"] ${Sf}`,{textAlign:"right"}),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-buttons");const{YQ:Ef}=a,Cf=(0,w.keyframes)({"0%":{opacity:0},"100%":{opacity:1}},"button_fade_in"),$f={display:"inline-flex",alignItems:"center",justifyContent:"center"},Af=e=>(0,w.style)({display:"inline-grid",gridTemplateColumns:`repeat(${e}, max-content)`,gap:x.space[200],padding:`${x.space[150]} ${x.space[200]}`},`button_group-${e}`),Tf=(0,w.style)({position:"relative",borderRadius:1e3,borderStyle:"solid",borderWidth:`${x.border.thickness.normal}`,cursor:"pointer",textDecoration:"none",...$f,transition:`color ${x.motion.duration.action} ease,\n background-color ${x.motion.duration.action} ease,\n border-color ${x.motion.duration.action} ease`,":focus":Ef},"button_base"),Of=(0,w.style)({...qt,minWidth:"6rem",padding:`calc(${x.space[150]} - ${x.border.thickness.emphasis}) calc(${x.space[400]} - ${x.border.thickness.emphasis})`,minHeight:x.size.tapTarget.default},"button_size_lg"),Pf=(0,w.style)({...Vt,minWidth:"3.75rem",minHeight:x.size.tapTarget.tiny,padding:`calc(${x.size.indicator.md} - ${x.border.thickness.emphasis}) calc(${x.space[200]} - ${x.border.thickness.emphasis})`},"button_size_sm"),zf={primary:(0,w.style)({color:(0,w.fallbackVar)(F.background,x.color.primary.contrast),border:`${x.border.thickness.emphasis} solid ${(0,w.fallbackVar)(F.main,x.color.primary.main)}`,backgroundColor:(0,w.fallbackVar)(F.main,x.color.primary.main),":hover":{color:(0,w.fallbackVar)(F.hoverMain,x.color.primary.contrast),textDecoration:"none",backgroundColor:(0,w.fallbackVar)(F.hoverBack,x.color.primary.mainHover),borderColor:(0,w.fallbackVar)(F.hoverBack,x.color.primary.mainHover)},":active":{color:(0,w.fallbackVar)(F.activeMain,x.color.primary.contrast),outline:"none",backgroundColor:(0,w.fallbackVar)(F.activeBack,x.color.primary.mainActive),borderColor:(0,w.fallbackVar)(F.activeBack,x.color.primary.mainActive)},":visited":{color:(0,w.fallbackVar)(F.main,x.color.primary.contrast)}},"button_primary"),primaryInverse:(0,w.style)({backgroundColor:(0,w.fallbackVar)(F.background,x.color.primary.contrast),borderColor:(0,w.fallbackVar)(F.background,x.color.primary.contrast),color:(0,w.fallbackVar)(F.main,x.color.primary.main),":hover":{color:(0,w.fallbackVar)(F.hoverMain,x.color.primary.main),backgroundColor:(0,w.fallbackVar)(F.hoverBack,x.color.primary.contrastHover),borderColor:(0,w.fallbackVar)(F.hoverBack,x.color.primary.contrastHover)},":active":{color:(0,w.fallbackVar)(F.activeMain,x.color.primary.main),backgroundColor:(0,w.fallbackVar)(F.activeBack,x.color.primary.contrastActive),borderColor:(0,w.fallbackVar)(F.activeBack,x.color.primary.contrastActive)},":visited":{color:(0,w.fallbackVar)(F.main,x.color.primary.main)}},"button_inverse"),secondary:(0,w.style)({backgroundColor:"transparent",borderColor:(0,w.fallbackVar)(F.main,x.color.structure.borderLowContrast),color:(0,w.fallbackVar)(F.main,x.color.primary.main),":visited":{color:(0,w.fallbackVar)(F.main,x.color.primary.main)},":hover":{backgroundColor:(0,w.fallbackVar)(F.hoverBack,"transparent"),color:(0,w.fallbackVar)(F.hoverMain,x.color.primary.mainHover),borderColor:(0,w.fallbackVar)(F.hoverMain,x.color.primary.mainHover)},":active":{backgroundColor:(0,w.fallbackVar)(F.activeBack,"transparent"),color:(0,w.fallbackVar)(F.activeMain,x.color.primary.mainActive),borderColor:(0,w.fallbackVar)(F.activeMain,x.color.primary.mainActive)}},"button_secondary"),secondaryInverse:(0,w.style)({borderColor:(0,w.fallbackVar)(F.background,x.color.primary.contrast),color:(0,w.fallbackVar)(F.main,x.color.primary.contrast),backgroundColor:"transparent",":visited":{color:(0,w.fallbackVar)(F.main,x.color.primary.contrastActive)},":hover":{backgroundColor:"transparent",color:(0,w.fallbackVar)(F.hoverMain,x.color.primary.contrastHover),borderColor:(0,w.fallbackVar)(F.hoverMain,x.color.primary.contrastHover)},":active":{backgroundColor:(0,w.fallbackVar)(F.activeBack,x.color.primary.mainActive),color:(0,w.fallbackVar)(F.activeMain,x.color.primary.contrastActive),borderColor:(0,w.fallbackVar)(F.activeMain,x.color.primary.contrastActive)}},"button_secondary_inverse"),tertiary:(0,w.style)({color:(0,w.fallbackVar)(F.main,x.color.link.main),padding:0,position:"relative",cursor:"pointer",backgroundColor:"transparent",border:"none",borderRadius:x.border.radius.sm,minHeight:x.size.tapTarget.default,...$f,":hover":{color:(0,w.fallbackVar)(F.hoverMain,x.color.link.mainHover),backgroundColor:(0,w.fallbackVar)(F.hoverBack,"transparent")},":focus":{...Ef,color:(0,w.fallbackVar)(F.main,x.color.link.main)},":active":{color:(0,w.fallbackVar)(F.activeMain,x.color.link.mainActive),backgroundColor:(0,w.fallbackVar)(F.activeBack,"transparent")}},"button_tertiary"),overlay:(0,w.style)({backgroundColor:(0,w.fallbackVar)(F.background,x.color.overlayInverse.main),borderColor:(0,w.fallbackVar)(F.main,x.color.structure.borderLowContrast),color:(0,w.fallbackVar)(F.main,x.color.overlayInverse.contrast),":visited":{color:(0,w.fallbackVar)(F.main,x.color.primary.main)},":hover":{backgroundColor:(0,w.fallbackVar)(F.hoverBack,x.color.overlayInverse.mainHover)},":active":{backgroundColor:(0,w.fallbackVar)(F.activeBack,x.color.overlayInverse.main),color:(0,w.fallbackVar)(F.activeMain,x.color.primary.mainActive),borderColor:(0,w.fallbackVar)(F.activeMain,x.color.primary.mainActive)}},"button_overlay")},Ff=(0,w.style)({...Vt,color:(0,w.fallbackVar)(F.main,x.color.link.main)},"button_tertiary-small"),Nf=(0,w.style)({marginInlineEnd:x.space[100]},"button_icon"),Rf=(0,w.style)({marginInlineStart:x.space[100],marginInlineEnd:0,verticalAlign:"top",position:"relative",pointerEvents:"none"},"button_affordance"),If=(0,w.style)({borderColor:x.color.success.main,backgroundColor:x.color.success.main,pointerEvents:"none"},"button_success_state"),Lf=(0,w.style)({color:"transparent",pointerEvents:"none",":hover":{color:"transparent"},":active":{color:"transparent"},":visited":{color:"transparent"}},"button_processing_state"),Mf=(0,w.style)({position:"absolute",top:0,bottom:0,left:0,right:0,borderRadius:"inherit",textAlign:"center",opacity:0,animation:`${Cf} ${x.motion.duration.hover} ease-in forwards`,display:"flex",justifyContent:"center",alignItems:"center",paddingRight:0},"button_state_overlay"),Df=(0,w.style)({backgroundColor:x.color.success.main},"button_success_state_overlay"),Hf=(0,w.style)({color:x.color.primary.contrast},"button_success_state_icon"),Bf=(0,w.style)({},"button_success_state_icon_sm"),jf=(Af(1),Af(2),Af(3),(0,w.style)({"@media":{[`(max-width: ${$})`]:{width:"100%"}}},"button_full_width")),Wf=((0,w.style)({"@media":{[`(max-width: ${C})`]:{gridTemplateColumns:"none",width:"100%"}}},"button_btnGroupFullWidth"),(0,w.style)({height:x.size.tapTarget.default,display:"inline-flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:0,":focus":{outline:"none"}},"button_small_tap_container")),Vf=(0,w.style)({cursor:"pointer"},"button-cursor_pointer");(0,w.globalStyle)(`${Wf}:focus > div:first-of-type:not(${If}):not(${Lf})`,Ef),b.endFileScope();var Uf=["isMenu","isOpen","isSmall","className"],qf=["variant","size","inverse","secondary","tertiary","isMenu","isOpen","btnState","screenReaderText","className","children","as","iconComponent","fullWidthOnMobile"];function Gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yf=["primary","secondary","overlay","tertiary"],Xf=function(e){var t=e.isMenu,r=e.isOpen,n=e.isSmall,a=e.className,i=g(e,Uf);if(!t)return null;var o=r?za:Oa;return v().createElement(o,m({className:a},i,{size:n?"xs":"sm","data-ppui":"true"}))},Zf=(0,y.forwardRef)((function(e,t){var r=e.variant,n=e.size,a=e.inverse,i=e.secondary,o=e.tertiary,l=e.isMenu,s=e.isOpen,c=e.btnState,u=void 0===c?"initial":c,d=e.screenReaderText,p=e.className,f=e.children,h=e.as,y=e.iconComponent,b=e.fullWidthOnMobile,w=void 0===b||b,x=g(e,qf),k="sm"===n,_=u&&"initial"===u,S=Kf({},x);void 0!==s&&(S["aria-expanded"]=s),S["tab-index"]=0,S.disabled=!_,S.ref=t,S["data-ppui-info"]="";var E=h||"button";k&&(E="div");var C=v().createElement(E,m({className:function(){var e,t=k?"":p;if(r){var n=function(e){return!a||"primary"!==e&&"secondary"!==e?Yf.includes(e)?e:"primary":"".concat(e,"Inverse")}(r);e=Z(Tf,k?Pf:Of,zf[n],w&&jf,"success"===u&&If,"processing"===u&&Lf,t)}else if(o)e=Z(zf.tertiary,k?Ff:Of,t);else{var l=function(e,t){var r=e?"secondary":"primary";return t?"".concat(r,"Inverse"):r}(i,a);e=Z(Tf,k?Pf:Of,zf[l],w&&jf,"success"===u&&If,"processing"===u&&Lf,t)}return e}(),id:te("button_")},k?{}:Kf({},S),{"data-ppui":"true"}),function(){var e;_||(e=d||u);var t=Z(Hf,k&&Bf),c=v().createElement(Ta,{className:t,size:k?"sm":"md","data-ppui":"true"}),p=null;y&&(p=v().createElement(y,{className:Nf,size:k?"xs":"sm","data-ppui":"true"}));var h,g=Z(Mf,"success"===u&&Df),b=_?null:v().createElement("span",{className:g,"data-ppui":"true"},"success"===u&&c,"processing"===u&&!o&&v().createElement(vl,m({},(h={},"processing"!==u||(h.as="span","sm"===n&&(h.size="xs"),(r&&(a&&"secondary"===r||!a&&"primary"===r)||!r&&(i&&a||!i&&!a))&&(h.inverse=!0)),h),{"data-ppui":"true"}))),w=e?v().createElement("span",{role:"status",className:se,"data-ppui":"true"},f," ",e):null;return v().createElement(v().Fragment,null,p,f,v().createElement(Xf,{isMenu:l,isOpen:s,isSmall:k,className:Rf,"data-ppui":"true"}),b,w)}());return k?v().createElement(h||"button",m({className:Z(Wf,"initial"===u&&Vf,p)},S,{"data-ppui":"true"}),C):C}));b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-button-menu"),(0,w.style)({position:"relative"},"button_menu_wrapper"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-card");const Qf={border:"none"},Jf=(0,w.style)({padding:x.space[300],position:"relative",textAlign:"initial",backgroundColor:x.color.background.surface,borderRadius:x.border.radius.lg,appearance:"none",":focus":Rn},"card_base"),eh=(0,w.style)(Qf,"card_level1"),th=(0,w.style)(Qf,"card_level3"),rh=(0,w.style)({cursor:"pointer",width:"100%",appearance:"none",":hover":fo,":active":{boxShadow:"none"},":focus":Rn},"card_clickable"),nh=(0,w.style)({marginBottom:x.space[300],display:"table"},"card_header"),ah=(0,w.style)({width:"100%",display:"table-cell",margin:"initial",padding:`${x.space[50]} 0`,textTransform:"none",verticalAlign:"middle"},"card_title"),ih=(0,w.style)({marginTop:"0.9375rem",marginBottom:"0.9375rem"},"card_content"),oh=(0,w.style)({marginTop:x.space[300]},"card_footer");(0,w.globalStyle)(`${oh} button, a`,{margin:"initial"}),(0,w.globalStyle)(`${oh} button:not(:last-child), ${oh} a:not(:last-child)`,{marginInlineEnd:x.space[300]});const lh=(0,w.style)({minWidth:"6.6875rem",minHeight:"11rem"},"size_xxs"),sh=(0,w.style)({minWidth:"10rem",minHeight:"5rem"},"size_xs"),ch=(0,w.style)({minWidth:"20.75rem",minHeight:"5rem",borderRadius:x.border.radius.lg},"size_xs-long");b.endFileScope();var uh=["onClick","label","as","children","className","isLoading","isInverse","size","level"],dh=["className","children"],ph=["className","children"],fh=["className","children"];function hh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var mh=function(e){var t=e.onClick,r=e.label,n=e.as,a=void 0===n?"function"==typeof t?"button":"div":n,i=e.children,o=e.className,l=e.isLoading,s=e.isInverse,c=e.size,u=e.level,d=void 0===u?"1":u,p=g(e,uh);if(l)return v().createElement(_e,m({isInverse:s},p,{"data-ppui":"true"}),i);var f={xxs:lh,xs:sh,"xs-long":ch},h={1:eh,3:th},y=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hh(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},p);r&&(y["aria-label"]=r);var b=Z(Jf,f[c],h[d],t&&rh,o);return v().createElement(a,m({className:b,"data-ppui-info":"card_3.2.3__8.12.0",onClick:t},y),i)};mh.Header=function(e){var t=e.className,r=e.children,n=g(e,dh),a=Z(nh,t),i=Z(ah,t);return v().createElement("header",m({className:a},n,{"data-ppui":"true"}),v().createElement(en,{size:"sm",className:i,"data-ppui":"true"},r))},mh.Content=function(e){var t=e.className,r=e.children,n=g(e,ph),a=Z(ih,t);return v().createElement("div",m({className:a},n,{"data-ppui":"true"}),r)},mh.Footer=function(e){var t=e.className,r=e.children,n=g(e,fh),a=Z(oh,t);return v().createElement("footer",m({className:a},n,{"data-ppui":"true"}),r)},b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-checkbox");const gh=`calc(${x.size.circle.xs} + ${x.space[150]} + ${x.space[25]})`,yh=(0,w.style)({position:"relative",textAlign:"start",marginBottom:0},"checkbox_base"),vh=((0,w.style)({display:"flex",flexDirection:"column",margin:0,padding:0,border:"none",textAlign:"start"},"checkbox_group"),(0,w.style)({padding:`${x.space[150]} 0`},"checkbox-group_base")),bh=(0,w.style)([$e,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"block",paddingInlineStart:gh,position:"relative",textAlign:"start",WebkitTapHighlightColor:"transparent"}],"checkbox_label");(0,w.globalStyle)(`${bh} span:first-of-type`,{insetInlineStart:0}),(0,w.style)({...Ae,color:x.color.background.mediumContrast,padding:`0 0 ${x.space[150]} 0`,marginBottom:x.space[50],textAlign:"start"},"checkbox-group_label");const wh=(0,w.style)({position:"relative",top:"0.125rem",marginLeft:x.space[150]},"checkbox_icon_label"),xh=(0,w.style)({borderRadius:x.border.radius.xs,border:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,boxSizing:"border-box",height:x.size.circle.xs,left:0,position:"absolute",width:x.size.circle.xs,lineHeight:1.3,textAlign:"center",backgroundColor:x.color.background.surface,display:"flex",justifyContent:"center",alignItems:"center",top:0},"checkbox_checkmark_container"),kh=(0,w.style)([xh,{top:"auto"}],"checkbox_checkmark_container_decoration"),_h=(0,w.style)({fontSize:x.size.icon.xs},"checkbox_check_icon"),Sh=(0,w.style)({height:x.space[25],width:"0.875rem",backgroundColor:x.color.selected.contrast,borderRadius:x.border.radius.xs},"checkbox_partial_icon"),Eh=(0,w.style)({cursor:"pointer",opacity:0,position:"absolute"},"checkbox_input");(0,w.globalStyle)(`${Eh}:checked + label > span > span:first-of-type`,{borderColor:x.color.selected.main,backgroundColor:x.color.selected.main,color:x.color.selected.contrast,borderRadius:x.border.radius.xs}),(0,w.globalStyle)(`${Eh}:checked + label > span > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,w.globalStyle)(`${Eh}:not(:checked) + label > span > span:first-of-type > span:first-of-type`,{display:"none"}),(0,w.globalStyle)(`${Eh}:focus + label > span > span:first-of-type`,Fn),(0,w.globalStyle)(`${Eh}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${x.border.thickness.normal} * -1)`});const Ch=(0,w.style)({},"checkbox_error_state");(0,w.globalStyle)(`${Ch}:checked + label > span > span:first-of-type`,{borderWidth:x.border.thickness.emphasis,borderColor:x.color.error.main}),(0,w.globalStyle)(`${Ch}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${x.border.thickness.emphasis} * -1)`});const $h=(0,w.style)({borderWidth:x.border.thickness.emphasis,borderColor:x.color.error.main,lineHeight:1.1},"error_checkbox"),Ah=(0,w.style)({...Ne,color:x.color.background.mediumContrast},"checkbox-caption_text"),Th=(0,w.style)([Ah,{display:"flex",alignItems:"center",margin:0}],"error_text"),Oh=(0,w.style)({color:x.color.error.main,marginInlineEnd:x.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_error_icon"),Ph=(0,w.style)({color:x.color.success.main,marginInlineEnd:x.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_success_icon"),zh=(0,w.style)({paddingBottom:x.space[150]},"checkbox_label_error"),Fh=(0,w.style)([Ah,{margin:`${x.space[50]} 0 0`}],"checkbox_helper_text"),Nh=((0,w.style)({margin:0},"checkbox_group_helper_text"),(0,w.style)({display:"flex",alignItems:"center",minHeight:"1.5rem",margin:0},"checkbox_items")),Rh=(0,w.style)({display:"flex",alignItems:"center",marginInlineEnd:x.space[100],minHeight:"auto",pointerEvents:"none"},"checkbox_thumbnail"),Ih=(0,w.style)({width:x.size.icon.lg,height:x.size.icon.lg},"checkbox_thumbnail_decoration"),Lh=(0,w.style)({margin:0,pointerEvents:"none"},"checkbox_item_text"),Mh=(0,w.style)([Ah,{display:"block",paddingTop:x.space[50],pointerEvents:"none"}],"checkbox_item_secondary_text"),Dh=(0,w.style)({padding:`${x.space[100]} 0`},"checkbox_group_base_with_sec_text");b.endFileScope();var Hh=["id","label","aria-label","decoration","secondaryText","labelIcon","helperText","errorText","errorIconAriaLabel","error","successText","successIconAriaLabel","partial","name","dir","className","onChange","inCheckboxGroup"],Bh=(0,y.forwardRef)((function(e,t){var r,n,a,i,o,l,s,c,u,d=e.id,p=e.label,f=e["aria-label"],h=e.decoration,y=e.secondaryText,b=e.labelIcon,w=e.helperText,x=e.errorText,k=e.errorIconAriaLabel,_=void 0===k?"Error":k,S=e.error,E=e.successText,C=e.successIconAriaLabel,$=void 0===C?"Success":C,A=e.partial,T=e.name,O=void 0===T?"default":T,P=e.dir,z=e.className,F=e.onChange,N=e.inCheckboxGroup,R=g(e,Hh),I=Z(yh,S&&Ch,N&&vh,N&&y&&Dh,z),L=null!=d?d:te("Checkbox_"),M=v().createElement(Na,{className:Oh,size:"sm",role:"img","aria-label":_,"data-ppui":"true"}),D=v().createElement($a,{className:Ph,size:"sm",role:"img","aria-label":$,"data-ppui":"true"});return S&&!E?r=x&&v().createElement("p",{className:Th,id:O,"data-ppui":"true"},M,x):E&&!S&&(r=E&&v().createElement("p",{className:Th,id:O,"data-ppui":"true"},D,E)),v().createElement("div",{className:I,"data-id":"checkbox",dir:P,"data-ppui-info":"checkbox_5.1.2__8.12.0"},v().createElement("input",m({className:Z(Eh,S&&Ch),tabIndex:0,type:"checkbox",id:L,name:O,ref:t,onChange:function(e){F&&(e.stopPropagation(),F(e))}},R,S&&x&&{"aria-describedby":O,"aria-invalid":!0},{"data-ppui":"true"})),(n=b&&v().createElement("span",{className:wh,"data-ppui":"true"},b),a=v().createElement(Aa,{className:_h,size:"xs","data-ppui":"true"}),i=v().createElement("span",{className:Sh,"data-ppui":"true"}),o=!S&&!E&&w&&v().createElement("p",{className:Fh,"data-ppui":"true"},w),l=Z(!!h&&kh,!h&&xh,S&&$h),s=Z(bh,(S||E)&&!N&&zh),c=A?i:a,u=v().createElement("span",{className:Nh,"data-ppui":"true"},v().createElement("span",{className:l,"data-ppui":"true"},c),function(){var e=h&&v().createElement("span",{className:Rh,"data-ppui":"true"},v().cloneElement(h,{className:Z(h.props.className,Ih)})),t=v().createElement("span",{className:Lh,"data-ppui":"true"},v().createElement(rn,{as:"span",className:Z(!p&&se),"data-ppui":"true"},null!=p?p:f),y&&v().createElement(an,{className:Mh,as:"span","data-ppui":"true"},y));return v().createElement("span",{className:Nh,"data-ppui":"true"},e,t)}()),v().createElement("label",{className:s,htmlFor:L,"data-ppui":"true"},u,n,o)),r)}));b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-circle-progress-meter");const jh="50%",Wh=x.size.indicator.sm,Vh=x.size.circle.lg,Uh=x.size.circle.md,qh=x.size.indicator.xs,Gh=`calc(${jh} - ${qh})`,Kh=`calc(${qh} * 2)`,Yh=(0,w.style)({position:"relative",borderRadius:x.border.radius.interactive,border:`${Wh} solid ${x.color.background.alt}`,width:Vh,height:Vh,backgroundColor:x.color.background.surface,padding:x.space[50],flexShrink:0},"circle_progress_meter-base"),Xh=(0,w.style)({borderRadius:x.border.radius.interactive,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},"circle_progress_meter-inner"),Zh=(0,w.style)({color:x.color.accent1.contrast,backgroundColor:x.color.accent1.main},"circle_progress_meter-inner_accent1"),Qh=(0,w.style)({color:x.color.accent2.contrast,backgroundColor:x.color.accent2.main},"circle_progress_meter-inner_accent2"),Jh=(0,w.style)({color:x.color.accent3.contrast,backgroundColor:x.color.accent3.main},"circle_progress_meter-inner_accent3"),em=(0,w.style)({color:x.color.accent4.contrast,backgroundColor:x.color.accent4.main},"circle_progress_meter-inner_accent4"),tm=(0,w.style)({width:"100%",height:"100%",borderRadius:"inherit"},"circle_progress_meter-inner_image"),rm=(0,w.style)({position:"absolute",top:`calc(${Wh} * -1)`,left:`calc(${Wh} * -1)`,width:Vh,height:Vh,fill:"none",strokeWidth:Kh,strokeLinecap:"round",transform:"rotate(-90deg)",transformOrigin:"50% 50%",stroke:x.color.accent2.main},"circle_progress_meter-indicator"),nm=(0,w.style)({width:Uh,height:Uh,borderWidth:qh},"circle_progress_meter-size_sm"),am=(0,w.style)({top:`calc(${qh} * -1)`,left:`calc(${qh} * -1)`,width:Uh,height:Uh,strokeWidth:Kh},"circle_progress_meter-size_sm_progress_indicator"),im=(0,w.style)({padding:0},"circle_progress_meter-text_base"),om=(0,w.style)({backgroundColor:x.color.background.surface},"circle_progress_meter-text_inner"),lm=(0,w.style)({overflow:"hidden"},"circle_progress_meter-text_content"),sm=(0,w.style)({width:x.size.icon.sm,height:x.size.icon.sm},"circle_progress_meter-icon_wrap_sm"),cm=(0,w.style)({width:x.size.icon.md,height:x.size.icon.md},"circle_progress_meter-icon_wrap_lg"),um=(0,w.style)({stroke:x.color.accent1.main},"circle_progress-meter_stroke_accent1"),dm=(0,w.style)({stroke:x.color.accent2.main},"circle_progress-meter_stroke_accent2"),pm=(0,w.style)({stroke:x.color.accent3.main},"circle_progress-meter_stroke_accent3"),fm=(0,w.style)({stroke:x.color.accent4.main},"circle_progress-meter_stroke_accent4");b.endFileScope();var hm=["className","max","value","color","label","size","children","innerText","iconComponent","imageSrc"];function mm(e,t){return[(0,w.style)(e,t),e]}(0,y.forwardRef)((function(e,t){var r,n,a,i=e.className,l=e.max,s=void 0===l?1:l,c=e.value,u=void 0===c?0:c,d=e.color,p=void 0===d?"accent2":d,f=e.label,h=e.size,y=void 0===h?"lg":h,b=e.children,w=e.innerText,x=e.iconComponent,k=e.imageSrc,_=g(e,hm),S="sm"===y,E=Gh,C="calc(2 * ".concat(Math.PI," * ").concat(E,")"),$="calc(".concat(C," - (calc(").concat(u/s,") * ").concat(C,"))"),A=Z(Yh,w&&im,S&&nm,i),T=Z(rm,function(e){var t,r=e.charAt(0).toUpperCase()+e.slice(1);return null!==(t=o["strokeColor".concat(r)])&&void 0!==t?t:dm}(p),S&&am),O=Z(Xh,function(e){var t,r=e.charAt(0).toUpperCase()+e.slice(1);return null!==(t=o["circleInner".concat(r)])&&void 0!==t?t:Qh}(p),w&&om);return w?(a=lm,r=S?v().createElement(an,{className:a,"data-ppui":"true"},w):v().createElement(rn,{className:a,"data-ppui":"true"},w)):x?(n=S?sm:cm,r=v().createElement("div",{className:n,"data-ppui":"true"},v().createElement(x,{size:"sm"===y?"sm":"md","data-ppui":"true"}))):r=k?v().createElement("img",{src:k,className:tm,"data-ppui":"true"}):b,v().createElement("div",{className:A,"data-ppui-info":"circle-progress-meter_1.1.2__8.12.0"},v().createElement("svg",{className:T,style:{strokeDasharray:C,strokeDashoffset:$},"aria-hidden":"true",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","data-ppui":"true"},v().createElement("circle",{cx:jh,cy:jh,style:{r:Gh},"data-ppui":"true"})),v().createElement("div",{className:O,"aria-hidden":"true","data-ppui":"true"},r),v().createElement("label",{className:se,"data-ppui":"true"},f,v().createElement("progress",m({max:s,value:u},_,{ref:t,"data-ppui":"true"}))))})),b.setFileScope("src/caretStyles.css.ts","@paypalcorp/pp-react-utils");const gm=z,[ym,vm]=mm({":before":{content:"",position:"absolute",backgroundColor:"inherit",width:gm.caretSize,height:gm.caretSize,transform:"scale(0.72) rotate(45deg)",boxShadow:"inherit",zIndex:0},":after":{content:"",position:"absolute",backgroundColor:"inherit",width:"2.5rem",height:x.space[200]}},"caret_base"),[bm,wm]=mm({":before":{top:"auto",bottom:`calc(-1 * ${gm.caretBottomOffset})`},":after":{top:"auto",bottom:0}},"caret_position_bottom"),[xm,km]=mm({":before":{bottom:"auto",top:`calc(-1 * ${gm.caretTopOffset})`},":after":{top:0,bottom:"auto"}},"caret_position_top"),[_m,Sm]=mm({":before":{left:`calc(50% - ${gm.caretCenterOffset} / 2)`,right:"auto"},":after":{left:"calc(50% - 1.25rem)",right:"auto"}},"caret_position_center"),[Em,Cm]=mm({":before":{left:gm.caretSpaceShiftLeft,right:"auto"},":after":{left:x.space[100],right:"auto"}},"caret_position_shift_left"),[$m,Am]=mm({":before":{left:"auto",right:gm.caretSpaceShiftRight},":after":{left:"auto",right:x.space[100]}},"caret_position_shift_right"),[Tm,Om]=mm({":before":{top:`calc(50% - ${gm.caretLeftOffset})`,bottom:"auto",left:`calc(-1 * ${gm.caretLeftOffset})`,right:"auto"},":after":{transform:"rotate(90deg)",top:`calc(50% - ${gm.caretLeftOffset})`,bottom:"auto",left:`calc(-1 * ${x.space[150]})`,right:"auto"}},"caret_position_left"),[Pm,zm]=mm({":before":{top:`calc(50% - ${gm.caretRightOffset})`,bottom:"auto",left:"auto",right:`calc(-1 * ${gm.caretRightOffset})`},":after":{transform:"rotate(90deg)",top:`calc(50% - ${gm.caretRightOffset})`,bottom:"auto",left:"auto",right:`calc(-1 * ${x.space[150]})`}},"caret_position_right");b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-coach-tip");const Fm=`calc(calc(${x.size.tapTarget.sm} - ${x.size.icon.xs}/2) + ${x.size.icon.xs}/2)`,Nm=`calc(${x.size.pointerWidth.lg}/2)`;(0,w.style)([go,ym,{display:"none",position:"absolute",backgroundColor:x.color.background.surface,maxWidth:"20rem",padding:x.space[300],borderRadius:x.border.radius.xs,zIndex:1080,":focus":{outline:"none"},vars:{[gm.caretSize]:x.size.pointerWidth.lg,[gm.caretTopOffset]:Nm,[gm.caretBottomOffset]:Nm,[gm.caretSpaceShiftLeft]:x.space[300],[gm.caretSpaceShiftRight]:x.space[300],[gm.caretCenterOffset]:x.size.pointerWidth.lg,[gm.caretLeftOffset]:Nm,[gm.caretRightOffset]:Nm}}],"coach_tip-base"),(0,w.style)({display:"flex",width:"100%",justifyContent:"space-between"},"coach_tip-header"),(0,w.style)([tt,{display:"inline-block",marginBottom:x.space[150],maxWidth:`calc(100% - ${Fm})`}],"coach_tip-header_text"),(0,w.style)({display:"inline-block",maxWidth:`calc(100% - ${Fm})`},"coach_tip-no_header"),(0,w.style)({display:"flex",alignItems:"center",marginTop:x.space[150]},"coach_tip-footer"),(0,w.style)([Fe,{display:"inline-block",flex:"1 1 auto",flexShrink:"0"}],"coach_tip-footer_label"),(0,w.style)({display:"flex"},"coach_tip-footer_button_container"),(0,w.style)({marginInlineStart:x.space[300]},"coach_tip-footer_button"),(0,w.style)([$e],"coach_tip-text"),(0,w.style)({marginTop:`calc(${x.space[200]} * -1)`,marginInlineEnd:`calc(${x.space[200]} * -1)`,padding:x.space[50],zIndex:1},"coach_tip-close_button"),(0,w.style)([xm,Em],"coach_tip-caret_top_left"),(0,w.style)([xm,_m],"coach_tip-caret_top_center"),(0,w.style)([xm,$m],"coach_tip-caret_top_right"),(0,w.style)([bm,Em],"coach_tip-caret_bottom_left"),(0,w.style)([bm,_m],"coach_tip-caret_bottom_center"),(0,w.style)([bm,$m],"coach_tip-caret_bottom_right"),(0,w.style)([Tm],"coach_tip-caret_left"),(0,w.style)([Pm],"coach_tip-caret_right"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-code-input");const Rm=(0,w.style)({display:"inline-block"},"code_input_base"),Im=(0,w.style)({width:x.size.field.sm,marginRight:x.space[100],marginBottom:x.space[100],"@media":{[`(max-width: ${C})`]:{width:"2.5rem"}}},"code_input_text_input"),Lm=(0,w.style)({padding:0},"code_input_text_input_with_error"),Mm=(0,w.style)({...er,textAlign:"center",padding:0,caretColor:"transparent",WebkitTouchCallout:"none",selectors:{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},'&[type="number"]':{MozAppearance:"textfield"},"&::selection":{background:"transparent"},"&::-moz-selection":{background:"transparent"},"&:first-line":{lineHeight:x.typography.fieldValueLg.lineHeight}}},"code_input_text_input_control"),Dm=(0,w.style)({display:"flex",marginRight:`calc(${x.space[100]} * -1)`,marginBottom:`calc(${x.space[100]} * -1)`,flexWrap:"wrap",selectors:{"[dir='rtl'] & ":{direction:"ltr"}}},"code_input_wrapper"),Hm=(0,w.style)({marginTop:x.space[50],display:"flex",alignItems:"center"},"code_input_error"),Bm=(0,w.style)({...Ne,color:x.color.background.mediumContrast,flexGrow:1,width:0},"code_input_error_text"),jm=(0,w.style)({color:x.color.error.main,marginInlineEnd:x.space[50]},"code_input_error_icon"),Wm=(0,w.style)({listStyle:"none",padding:0,margin:0},"code_input_error_text_list");b.endFileScope();var Vm=["alphaCharCapitalize","className","errorText","error","name","id","inputClassName","inputWrapperClassName","onChange","pinLength","value","autoFocus","onBlur","onFocus","numberOnly","wrapperAriaLabel"];v().forwardRef((function(e,t){var r=e.alphaCharCapitalize,n=void 0!==r&&r,a=e.className,i=e.errorText,o=e.error,l=void 0===o?!!i:o,s=e.name,c=void 0===s?"default":s,u=e.id,d=void 0===u?c:u,p=e.inputClassName,f=e.inputWrapperClassName,h=e.onChange,b=void 0===h?void 0:h,w=e.pinLength,x=void 0===w?6:w,k=e.value,_=void 0===k?"":k,S=e.autoFocus,E=e.onBlur,C=void 0===E?null:E,$=e.onFocus,A=void 0===$?null:$,T=e.numberOnly,O=void 0!==T&&T,P=e.wrapperAriaLabel,z=void 0===P?"group":P,F=g(e,Vm),N=(0,y.useRef)([]),R=t||N,I=/^[0-9]+$/,L=[re.NAME_BACKSPACE,re.NAME_DELETE,re.NAME_TAB],M=ro(v().useState(!1),2),D=M[0],H=M[1],B=to(x<3||x>=6?Array(6).keys():Array(x).keys()),j=_&&_.split("").map((function(e){return" "===e?"":e})),W=function(){var e=R.current.map((function(e){return""===e.value?" ":e.value})).join("");b&&b(e)},V=function(e){R&&R.current[e]&&R.current[e].focus()},U=function(e,t){for(var r=R.current.length,a=Math.min(e&&e.length,r),i=t,o=0;o<a&&(R.current[i].value=n?e[o].toUpperCase():e[o],++i!==r);o++);V(i===r?i-1:i)};(0,y.useEffect)((function(){S&&V(0)}),[]);var q,G=function(e){C&&!R.current.includes(e.relatedTarget)&&(C(e),H(!1))},K=function(e){e.target.select(),A&&!D&&(H(!0),A(e))},Y=Z(Rm,a),X=Z(Im,i&&Hm,f),Q=Z(Mm,i&&Lm,p),J=B.map((function(e){return v().createElement(Zi,m({key:e,className:X,inputClassName:Q,"aria-label":"".concat(e+1,"-").concat(B.length),name:"".concat(c,"-").concat(e),id:"ci-".concat(d,"-").concat(e),ref:function(t){return function(e,t){e&&(R.current[t]=e,R.current[t].value=j?j[t]:"")}(t,e)},onInput:function(t){return function(e,t){var r,a;if((null===(r=e.target)||void 0===r||null===(a=r.value)||void 0===a?void 0:a.length)&&V(t+1),n&&(e.target.value=e.target.value.toUpperCase()),e.target.value.length>1){var i=e.target.value.replace(/\s/g,"").split("");U(i,t)}W()}(t,e)},onKeyDown:function(t){return function(e,t){var r=e.key||e.keyCode,n=new re(r);(n.IS_SPACEBAR||n.IS_HOME||n.IS_END||n.IS_ARROW_KEY)&&e.preventDefault(),n.IS_BACKSPACE||n.IS_DELETE?""===e.target.value||" "===e.target.value?V(t-1):(e.target.value=" ",W()):n.IS_ARROW_LEFT?V(t-1):n.IS_ARROW_RIGHT?V(t+1):n.IS_HOME?V(0):n.IS_END?V(x-1):e.target.select(),(e.ctrlKey||e.metaKey)&&"v"===r||r.match(I)||L.includes(r)||!O||e.preventDefault()}(t,e)},onPaste:function(e){return function(e){var t=e.clipboardData&&e.clipboardData.getData("text");if(e.preventDefault(),!t||t.match(I)||!O){var r=t&&t.replace(/\s/g,"").split("");("number"===e.target.type||O)&&r.some(isNaN)||(U(r,0),W())}}(e)},onFocus:K,onBlur:G,"aria-describedby":l?"message_".concat(c):null,error:l&&!!i,pattern:O?"[0-9]*":""},F,{"data-ppui":"true"}))}));return v().createElement("div",{className:Y,id:d,"data-ppui-info":"code-input_3.1.2__8.12.0"},v().createElement("div",{className:Dm,role:"group","aria-label":z,"data-ppui":"true"},J),i&&(q=Array.isArray(i)?v().createElement("ul",{className:Wm,"data-ppui":"true"},i.map((function(e,t){return v().createElement("li",{key:"text$-".concat(t),"data-ppui":"true"},e)}))):i,v().createElement("div",{className:Hm,id:"message_".concat(c),role:"alert","data-ppui":"true"},v().createElement(Na,{className:jm,size:"sm","aria-hidden":"true","data-ppui":"true"}),v().createElement("span",{className:Bm,"data-ppui":"true"},q))))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-flag");const Um={"1x":{url:"https://www.paypalobjects.com/paypal-ui/components/flags/1x.png",width:32,height:24},"2x":{url:"https://www.paypalobjects.com/paypal-ui/components/flags/2x.png",width:64,height:48},"3x":{url:"https://www.paypalobjects.com/paypal-ui/components/flags/3x.png",width:96,height:72}},qm={"1x":x.size.icon.sm,"2x":x.size.icon.md},Gm=e=>`scale(calc(${qm[e]} / ${Um[e].width/16}))`,Km=e=>({width:"100%",height:"100%",background:`transparent url(${Um[e].url}) no-repeat`,backgroundSize:"cover",backgroundOrigin:"border-box",transformOrigin:"top left",position:"absolute",left:0,border:`${x.border.thickness.normal} solid ${x.color.structure.divider}`,transform:Gm(e),borderRadius:x.border.radius.xs}),Ym=(0,w.style)({display:"inline-block",boxSizing:"border-box",position:"relative"},"flag"),Xm=(0,w.style)({width:x.size.icon.sm,height:`calc(${x.size.icon.sm} * 0.75)`},"flag_size_sm"),Zm=(0,w.style)({width:x.size.icon.md,height:`calc(${x.size.icon.md} * 0.75)`},"flag_size_md"),Qm=(0,w.style)({"@media":{"only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)":{backgroundImage:`url(${Um["2x"].url})`,transform:Gm("2x")}}},"flag_scale_base"),Jm=(0,w.style)(Km("1x"),"flag_scale_sm"),eg=(0,w.style)(Km("2x"),"flag_scale_md"),tg=(0,w.style)({borderRadius:0},"flag_no_rounded_corners"),rg=(0,w.style)({backgroundPosition:"0 0%",selectors:{...Object.entries({ad:"0.431",ae:"0.862",ag:"1.293",ai:"1.724",al:"2.155",am:"2.586",an:"3.017",ao:"3.448",ar:"3.879",at:"4.310",au:"4.741",aw:"5.172",az:"5.603",ba:"6.034",bb:"6.466",be:"6.897",bf:"7.328",bg:"7.759",bh:"8.190",bi:"8.621",bj:"9.052",bm:"9.483",bn:"9.914",bo:"10.345",br:"10.776",bs:"11.207",bt:"11.638",bw:"12.069",by:"12.500",bz:"12.931",c2:"13.362",ca:"13.793",cd:"14.224",cg:"14.655",ch:"15.086",ci:"15.517",ck:"15.948",cl:"16.379",cm:"16.810",cn:"17.241",co:"17.672",cr:"18.103",cv:"18.534",cy:"18.966",cz:"19.397",de:"19.828",dj:"20.259",dk:"20.690",dm:"21.121",do:"21.552",dz:"21.983",ec:"22.414",ee:"22.845",eg:"23.276",er:"23.707",es:"24.138",et:"24.569",fi:"25.000",fj:"25.431",fk:"25.862",fm:"26.293",fo:"26.724",fr:"27.155",ga:"27.586",gb:"28.017",gd:"28.448",ge:"28.879",gf:"29.310",gi:"29.741",gl:"30.172",gm:"30.603",gn:"31.034",gp:"31.466",gr:"31.897",gt:"32.328",gw:"32.759",gy:"33.190",hk:"33.621",hn:"34.052",hr:"34.483",hu:"34.914",id:"35.345",ie:"35.776",il:"36.207",in:"36.638",is:"37.069",it:"37.500",jm:"37.931",jo:"38.362",jp:"38.793",ke:"39.224",kg:"39.655",kh:"40.086",ki:"40.517",km:"40.948",kn:"41.379",kr:"41.810",kw:"42.241",ky:"42.672",kz:"43.103",la:"43.534",lc:"43.966",li:"44.397",lk:"44.828",ls:"45.259",lt:"45.690",lu:"46.121",lv:"46.552",ma:"46.983",mc:"47.414",md:"47.845",me:"48.276",mg:"48.707",mh:"49.138",mk:"49.569",ml:"50.000",mn:"50.431",mq:"50.862",mr:"51.293",ms:"51.724",mt:"52.155",mu:"52.586",mv:"53.017",mw:"53.448",mx:"53.879",my:"54.310",mz:"54.741",na:"55.172",nc:"55.603",ne:"56.034",nf:"56.466",ng:"56.897",ni:"57.328",nl:"57.759",no:"58.190",np:"58.621",nr:"59.052",nu:"59.483",nz:"59.914",om:"60.345",pa:"60.776",pe:"61.207",pf:"61.638",pg:"62.069",ph:"62.500",pl:"62.931",pm:"63.362",pn:"63.793",pt:"64.224",pw:"64.655",py:"65.086",qa:"65.517",re:"65.948",ro:"66.379",rs:"66.810",ru:"67.241",rw:"67.672",sa:"68.103",sb:"68.534",sc:"68.966",se:"69.397",sg:"69.828",sh:"70.259",si:"70.690",sj:"71.121",sk:"71.552",sl:"71.983",sm:"72.414",sn:"72.845",so:"73.276",sr:"73.707",st:"74.138",sv:"74.569",sz:"75.000",tc:"75.431",td:"75.862",tg:"76.293",th:"76.724",tj:"77.155",tm:"77.586",tn:"78.017",to:"78.448",tr:"78.879",tt:"79.310",tv:"79.741",tw:"0.000",tz:"80.603",ua:"81.034",ug:"81.466",us:"81.897",uy:"82.328",va:"82.759",vc:"83.190",ve:"83.621",vg:"84.052",vn:"84.483",vu:"84.914",wf:"85.345",ws:"85.776",ye:"86.207",yt:"86.638",za:"87.069",zm:"87.500",zw:"87.931",eu:"88.362",af:"88.793",as:"89.224",bd:"89.655",io:"90.086",cf:"90.517",cx:"90.948",cc:"91.379",gq:"91.810",gh:"92.241",gu:"92.672",gg:"93.103",ht:"93.534",im:"93.966",lb:"94.397",je:"94.828",lr:"95.259",mo:"95.690",mm:"96.121",mp:"96.552",pk:"96.983",ps:"97.414",pr:"97.845",tl:"98.276",tk:"98.707",vi:"99.138",uz:"99.569",eh:"100.000"}).reduce(((e,[t,r])=>({...e,[`&.flag_${t}`]:{backgroundPosition:`0 ${r}%`}})),{})}},"flag_selector");b.endFileScope();var ng=["countryCode","size","noRoundCorners","className"],ag=function(e){var t=e.countryCode,r=e.size,n=void 0===r?"sm":r,a=e.noRoundCorners,i=void 0!==a&&a,o=e.className,l=g(e,ng);return v().createElement("div",m({className:Z(Ym,"sm"===n&&Xm,"md"===n&&Zm,o)},l,{"data-ppui":"true"}),v().createElement("span",{className:Z(Qm,rg,t&&"flag_".concat(t.toLowerCase()),"sm"===n&&Jm,"md"===n&&eg,i&&tg),"data-ppui":"true"}))};function ig(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function og(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new og.InputMask(e,t)}class lg{constructor(e){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}aggregate(e){return this.rawInserted+=e.rawInserted,this.skip=this.skip||e.skip,this.inserted+=e.inserted,this.tailShift+=e.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}function sg(e){return"string"==typeof e||e instanceof String}og.ChangeDetails=lg;const cg="NONE",ug="LEFT",dg="FORCE_LEFT",pg="RIGHT",fg="FORCE_RIGHT";function hg(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function mg(e){return Array.isArray(e)?e:[e,new lg]}function gg(e,t){if(t===e)return!0;var r,n=Array.isArray(t),a=Array.isArray(e);if(n&&a){if(t.length!=e.length)return!1;for(r=0;r<t.length;r++)if(!gg(t[r],e[r]))return!1;return!0}if(n!=a)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){var i=t instanceof Date,o=e instanceof Date;if(i&&o)return t.getTime()==e.getTime();if(i!=o)return!1;var l=t instanceof RegExp,s=e instanceof RegExp;if(l&&s)return t.toString()==e.toString();if(l!=s)return!1;var c=Object.keys(t);for(r=0;r<c.length;r++)if(!Object.prototype.hasOwnProperty.call(e,c[r]))return!1;for(r=0;r<c.length;r++)if(!gg(e[c[r]],t[c[r]]))return!1;return!0}return!(!t||!e||"function"!=typeof t||"function"!=typeof e)&&t.toString()===e.toString()}class yg{constructor(e,t,r,n){for(this.value=e,this.cursorPos=t,this.oldValue=r,this.oldSelection=n;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?cg:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?ug:pg}}class vg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;this.value=e,this.from=t,this.stop=r}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class bg{constructor(e){this._value="",this._update(Object.assign({},bg.DEFAULTS,e)),this.isInitialized=!0}updateOptions(e){Object.keys(e).length&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e)}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{input:!0};return this.reset(),this.append(e,t,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(e){this.reset(),this.append(e,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(e){this.value=this.doFormat(e)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(e){this.reset(),this.append(e,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return Math.min(this.value.length,t-e)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t)}extractTail(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new vg(this.extractInput(e,t),e)}appendTail(e){return sg(e)&&(e=new vg(String(e))),e.appendTo(this)}_appendCharRaw(e){return e?(this._value+=e,new lg({inserted:e,rawInserted:e})):new lg}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n=this.state;let a;if([e,a]=mg(this.doPrepare(e,t)),a=a.aggregate(this._appendCharRaw(e,t)),a.inserted){let e,i=!1!==this.doValidate(t);if(i&&null!=r){const t=this.state;!0===this.overwrite&&(e=r.state,r.unshift(this.value.length-a.tailShift));let n=this.appendTail(r);i=n.rawInserted===r.toString(),i&&n.inserted||"shift"!==this.overwrite||(this.state=t,e=r.state,r.shift(),n=this.appendTail(r),i=n.rawInserted===r.toString()),i&&n.inserted&&(this.state=t)}i||(a=new lg,this.state=n,r&&e&&(r.state=e))}return a}_appendPlaceholder(){return new lg}_appendEager(){return new lg}append(e,t,r){if(!sg(e))throw new Error("value should be string");const n=new lg,a=sg(r)?new vg(String(r)):r;null!=t&&t.tail&&(t._beforeTailState=this.state);for(let r=0;r<e.length;++r){const i=this._appendChar(e[r],t,a);if(!i.rawInserted&&!this.doSkipInvalid(e[r],t,a))break;n.aggregate(i)}return(!0===this.eager||"append"===this.eager)&&null!=t&&t.input&&e&&n.aggregate(this._appendEager()),null!=a&&(n.tailShift+=this.appendTail(a).tailShift),n}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,e)+this.value.slice(t),new lg}withValueRefresh(e){if(this._refreshing||!this.isInitialized)return e();this._refreshing=!0;const t=this.rawInputValue,r=this.value,n=e();return this.rawInputValue=t,this.value&&this.value!==r&&0===r.indexOf(this.value)&&this.append(r.slice(this.value.length),{},""),delete this._refreshing,n}runIsolated(e){if(this._isolated||!this.isInitialized)return e(this);this._isolated=!0;const t=this.state,r=e(this);return this.state=t,delete this._isolated,r}doSkipInvalid(e){return this.skipInvalid}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(e,this,t):e}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(e){return this.format?this.format(e,this):e}doParse(e){return this.parse?this.parse(e,this):e}splice(e,t,r,n){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{input:!0};const i=e+t,o=this.extractTail(i),l=!0===this.eager||"remove"===this.eager;let s;l&&(n=function(e){switch(e){case ug:return dg;case pg:return fg;default:return e}}(n),s=this.extractInput(0,i,{raw:!0}));let c=e;const u=new lg;if(n!==cg&&(c=this.nearestInputPos(e,t>1&&0!==e&&!l?cg:n),u.tailShift=c-e),u.aggregate(this.remove(c)),l&&n!==cg&&s===this.rawInputValue)if(n===dg){let e;for(;s===this.rawInputValue&&(e=this.value.length);)u.aggregate(new lg({tailShift:-1})).aggregate(this.remove(e-1))}else n===fg&&o.unshift();return u.aggregate(this.append(r,a,o))}maskEquals(e){return this.mask===e}typedValueEquals(e){const t=this.typedValue;return e===t||bg.EMPTY_VALUES.includes(e)&&bg.EMPTY_VALUES.includes(t)||this.doFormat(e)===this.doFormat(this.typedValue)}}function wg(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?og.MaskedRegExp:sg(e)?og.MaskedPattern:e instanceof Date||e===Date?og.MaskedDate:e instanceof Number||"number"==typeof e||e===Number?og.MaskedNumber:Array.isArray(e)||e===Array?og.MaskedDynamic:og.Masked&&e.prototype instanceof og.Masked?e:e instanceof og.Masked?e.constructor:e instanceof Function?og.MaskedFunction:(console.warn("Mask not found for mask",e),og.Masked)}function xg(e){if(og.Masked&&e instanceof og.Masked)return e;const t=(e=Object.assign({},e)).mask;if(og.Masked&&t instanceof og.Masked)return t;const r=wg(t);if(!r)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new r(e)}bg.DEFAULTS={format:String,parse:e=>e,skipInvalid:!0},bg.EMPTY_VALUES=[void 0,null,""],og.Masked=bg,og.createMask=xg;const kg=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],_g={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Sg{constructor(e){const{parent:t,isOptional:r,placeholderChar:n,displayChar:a,lazy:i,eager:o}=e,l=ig(e,kg);this.masked=xg(l),Object.assign(this,{parent:t,isOptional:r,placeholderChar:n,displayChar:a,lazy:i,eager:o})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===e&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new lg}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isFilled)return new lg;const r=this.masked.state,n=this.masked._appendChar(e,t);return n.inserted&&!1===this.doValidate(t)&&(n.inserted=n.rawInserted="",this.masked.state=r),n.inserted||this.isOptional||this.lazy||t.input||(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=Boolean(n.inserted),n}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const e=new lg;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new lg}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(e,t,r)}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cg;const r=this.value.length,n=Math.min(Math.max(e,0),r);switch(t){case ug:case dg:return this.isComplete?n:0;case pg:case fg:return this.isComplete?n:r;default:return n}}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}}class Eg{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new lg}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cg;const r=this._value.length;switch(t){case ug:case dg:return 0;default:return r}}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._isRawInput?t-e:0}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return Boolean(this._value)}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new lg;if(this.isFilled)return r;const n=!0===this.eager||"append"===this.eager,a=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!n)&&!t.tail;return a&&(r.rawInserted=this.char),this._value=r.inserted=this.char,this._isRawInput=a&&(t.raw||t.input),r}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new lg;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new vg("")}appendTail(e){return sg(e)&&(e=new vg(String(e))),e.appendTo(this)}append(e,t,r){const n=this._appendChar(e[0],t);return null!=r&&(n.tailShift+=this.appendTail(r).tailShift),n}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(e){Object.assign(this,e)}}const Cg=["chunks"];class $g{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;sg(e)&&(e=new vg(String(e)));const t=this.chunks[this.chunks.length-1],r=t&&(t.stop===e.stop||null==e.stop)&&e.from===t.from+t.toString().length;if(e instanceof vg)r?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof $g){if(null==e.stop){let t;for(;e.chunks.length&&null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof og.MaskedPattern))return new vg(this.toString()).appendTo(e);const t=new lg;for(let r=0;r<this.chunks.length&&!t.skip;++r){const n=this.chunks[r],a=e._mapPosToBlock(e.value.length),i=n.stop;let o;if(null!=i&&(!a||a.index<=i)){if(n instanceof $g||e._stops.indexOf(i)>=0){const r=e._appendPlaceholder(i);t.aggregate(r)}o=n instanceof $g&&e._blocks[i]}if(o){const r=o.appendTail(n);r.skip=!1,t.aggregate(r),e._value+=r.inserted;const a=n.toString().slice(r.rawInserted.length);a&&t.aggregate(e.append(a,{tail:!0}))}else t.aggregate(e.append(n.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map((e=>e.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t}=e,r=ig(e,Cg);Object.assign(this,r),this.chunks=t.map((e=>{const t="chunks"in e?new $g:new vg;return t.state=e,t}))}unshift(e){if(!this.chunks.length||null!=e&&this.from>=e)return"";const t=null!=e?e-this.from:e;let r=0;for(;r<this.chunks.length;){const e=this.chunks[r],n=e.unshift(t);if(e.toString()){if(!n)break;++r}else this.chunks.splice(r,1);if(n)return n}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],r=t.shift();if(t.toString()){if(!r)break;--e}else this.chunks.splice(e,1);if(r)return r}return""}}class Ag{constructor(e,t){this.masked=e,this._log=[];const{offset:r,index:n}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=r,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return this.state=e,e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null===(t=this.block)||void 0===t?void 0:t.value.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,dg),0!==this.offset||void 0}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ug),!0}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ug),!0}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,fg),this.offset!==this.block.value.length||void 0}))}pushRightBeforeInput(){return this._pushRight((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,cg),!0}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,cg),!0}))}}og.MaskedRegExp=class extends bg{_update(e){e.mask&&(e.validate=t=>t.search(e.mask)>=0),super._update(e)}};const Tg=["_blocks"];class Og extends bg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},_g,e.definitions),super(Object.assign({},Og.DEFAULTS,e))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let t=this.mask;if(!t||!e)return;let r=!1,n=!1;for(let o=0;o<t.length;++o){var a,i;if(this.blocks){const e=t.slice(o),r=Object.keys(this.blocks).filter((t=>0===e.indexOf(t)));r.sort(((e,t)=>t.length-e.length));const n=r[0];if(n){const e=xg(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[n]));e&&(this._blocks.push(e),this._maskedBlocks[n]||(this._maskedBlocks[n]=[]),this._maskedBlocks[n].push(this._blocks.length-1)),o+=n.length-1;continue}}let l=t[o],s=l in e;if(l===Og.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===l||"}"===l){r=!r;continue}if("["===l||"]"===l){n=!n;continue}if(l===Og.ESCAPE_CHAR){if(++o,l=t[o],!l)break;s=!1}const c=null===(a=e[l])||void 0===a||!a.mask||(null===(i=e[l])||void 0===i?void 0:i.mask.prototype)instanceof og.Masked?{mask:e[l]}:e[l],u=s?new Sg(Object.assign({parent:this,isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},c)):new Eg({char:l,eager:this.eager,isUnmasking:r});this._blocks.push(u)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map((e=>e.state))})}set state(e){const{_blocks:t}=e,r=ig(e,Tg);this._blocks.forEach(((e,r)=>e.state=t[r])),super.state=r}reset(){super.reset(),this._blocks.forEach((e=>e.reset()))}get isComplete(){return this._blocks.every((e=>e.isComplete))}get isFilled(){return this._blocks.every((e=>e.isFilled))}get isFixed(){return this._blocks.every((e=>e.isFixed))}get isOptional(){return this._blocks.every((e=>e.isOptional))}doCommit(){this._blocks.forEach((e=>e.doCommit())),super.doCommit()}get unmaskedValue(){return this._blocks.reduce(((e,t)=>e+t.unmaskedValue),"")}set unmaskedValue(e){super.unmaskedValue=e}get value(){return this._blocks.reduce(((e,t)=>e+t.value),"")}set value(e){super.value=e}get displayValue(){return this._blocks.reduce(((e,t)=>e+t.displayValue),"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new lg;let r=null===(e=this._mapPosToBlock(this.value.length))||void 0===e?void 0:e.index;if(null==r)return t;this._blocks[r].isFilled&&++r;for(let e=r;e<this._blocks.length;++e){const r=this._blocks[e]._appendEager();if(!r.inserted)break;t.aggregate(r)}return t}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this._mapPosToBlock(this.value.length),n=new lg;if(!r)return n;for(let o=r.index;;++o){var a,i;const r=this._blocks[o];if(!r)break;const l=r._appendChar(e,Object.assign({},t,{_beforeTailState:null===(a=t._beforeTailState)||void 0===a||null===(i=a._blocks)||void 0===i?void 0:i[o]})),s=l.skip;if(n.aggregate(l),s||l.rawInserted)break}return n}extractTail(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const r=new $g;return e===t||this._forEachBlocksInRange(e,t,((e,t,n,a)=>{const i=e.extractTail(n,a);i.stop=this._findStopBefore(t),i.from=this._blockStartPos(t),i instanceof $g&&(i.blockIndex=t),r.extend(i)})),r}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return"";let n="";return this._forEachBlocksInRange(e,t,((e,t,a,i)=>{n+=e.extractInput(a,i,r)})),n}_findStopBefore(e){let t;for(let r=0;r<this._stops.length;++r){const n=this._stops[r];if(!(n<=e))break;t=n}return t}_appendPlaceholder(e){const t=new lg;if(this.lazy&&null==e)return t;const r=this._mapPosToBlock(this.value.length);if(!r)return t;const n=r.index,a=null!=e?e:this._blocks.length;return this._blocks.slice(n,a).forEach((r=>{if(!r.lazy||null!=e){const e=null!=r._blocks?[r._blocks.length]:[],n=r._appendPlaceholder(...e);this._value+=n.inserted,t.aggregate(n)}})),t}_mapPosToBlock(e){let t="";for(let r=0;r<this._blocks.length;++r){const n=this._blocks[r],a=t.length;if(t+=n.value,e<=t.length)return{index:r,offset:e-a}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce(((e,t)=>e+t.value.length),0)}_forEachBlocksInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;const n=this._mapPosToBlock(e);if(n){const e=this._mapPosToBlock(t),a=e&&n.index===e.index,i=n.offset,o=e&&a?e.offset:this._blocks[n.index].value.length;if(r(this._blocks[n.index],n.index,i,o),e&&!a){for(let t=n.index+1;t<e.index;++t)r(this._blocks[t],t,0,this._blocks[t].value.length);r(this._blocks[e.index],e.index,0,e.offset)}}}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const r=super.remove(e,t);return this._forEachBlocksInRange(e,t,((e,t,n,a)=>{r.aggregate(e.remove(n,a))})),r}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cg;if(!this._blocks.length)return 0;const r=new Ag(this,e);if(t===cg)return r.pushRightBeforeInput()?r.pos:(r.popState(),r.pushLeftBeforeInput()?r.pos:this.value.length);if(t===ug||t===dg){if(t===ug){if(r.pushRightBeforeFilled(),r.ok&&r.pos===e)return e;r.popState()}if(r.pushLeftBeforeInput(),r.pushLeftBeforeRequired(),r.pushLeftBeforeFilled(),t===ug){if(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.ok&&r.pos<=e)return r.pos;if(r.popState(),r.ok&&r.pos<=e)return r.pos;r.popState()}return r.ok?r.pos:t===dg?0:(r.popState(),r.ok?r.pos:(r.popState(),r.ok?r.pos:0))}return t===pg||t===fg?(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.pushRightBeforeFilled()?r.pos:t===fg?this.value.length:(r.popState(),r.ok?r.pos:(r.popState(),r.ok?r.pos:this.nearestInputPos(e,ug)))):e}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=0;return this._forEachBlocksInRange(e,t,((e,t,n,a)=>{r+=e.totalInputPositions(n,a)})),r}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map((e=>this._blocks[e])):[]}}Og.DEFAULTS={lazy:!0,placeholderChar:"_"},Og.STOP_CHAR="`",Og.ESCAPE_CHAR="\\",Og.InputDefinition=Sg,Og.FixedDefinition=Eg,og.MaskedPattern=Og;class Pg extends Og{get _matchFrom(){return this.maxLength-String(this.from).length}_update(e){e=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},e);let t=String(e.to).length;null!=e.maxLength&&(t=Math.max(t,e.maxLength)),e.maxLength=t;const r=String(e.from).padStart(t,"0"),n=String(e.to).padStart(t,"0");let a=0;for(;a<n.length&&n[a]===r[a];)++a;e.mask=n.slice(0,a).replace(/0/g,"\\0")+"0".repeat(t-a),super._update(e)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(e){let t="",r="";const[,n,a]=e.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(t="0".repeat(n.length)+a,r="9".repeat(n.length)+a),t=t.padEnd(this.maxLength,"0"),r=r.padEnd(this.maxLength,"9"),[t,r]}doPrepare(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if([e,t]=mg(super.doPrepare(e.replace(/\D/g,""),r)),!this.autofix||!e)return e;const n=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0");let i=this.value+e;if(i.length>this.maxLength)return"";const[o,l]=this.boundaries(i);return Number(l)<this.from?n[i.length-1]:Number(o)>this.to?"pad"===this.autofix&&i.length<this.maxLength?["",t.aggregate(this.append(n[i.length-1]+e,r))]:a[i.length-1]:e}doValidate(){const e=this.value;if(-1===e.search(/[^0]/)&&e.length<=this._matchFrom)return!0;const[t,r]=this.boundaries(e);return this.from<=Number(r)&&Number(t)<=this.to&&super.doValidate(...arguments)}}og.MaskedRange=Pg;class zg extends Og{constructor(e){super(Object.assign({},zg.DEFAULTS,e))}_update(e){e.mask===Date&&delete e.mask,e.pattern&&(e.mask=e.pattern);const t=e.blocks;e.blocks=Object.assign({},zg.GET_DEFAULT_BLOCKS()),e.min&&(e.blocks.Y.from=e.min.getFullYear()),e.max&&(e.blocks.Y.to=e.max.getFullYear()),e.min&&e.max&&e.blocks.Y.from===e.blocks.Y.to&&(e.blocks.m.from=e.min.getMonth()+1,e.blocks.m.to=e.max.getMonth()+1,e.blocks.m.from===e.blocks.m.to&&(e.blocks.d.from=e.min.getDate(),e.blocks.d.to=e.max.getDate())),Object.assign(e.blocks,this.blocks,t),Object.keys(e.blocks).forEach((t=>{const r=e.blocks[t];!("autofix"in r)&&"autofix"in e&&(r.autofix=e.autofix)})),super._update(e)}doValidate(){const e=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&null!=e&&(null==this.min||this.min<=e)&&(null==this.max||e<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}}zg.DEFAULTS={pattern:"d{.}`m{.}`Y",format:e=>e?[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join("."):"",parse:e=>{const[t,r,n]=e.split(".");return new Date(n,r-1,t)}},zg.GET_DEFAULT_BLOCKS=()=>({d:{mask:Pg,from:1,to:31,maxLength:2},m:{mask:Pg,from:1,to:12,maxLength:2},Y:{mask:Pg,from:1900,to:9999}}),og.MaskedDate=zg;class Fg{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch(e){}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch(e){}return null!=e?e:this.value.length}select(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch(e){}}_unsafeSelect(e,t){}get isActive(){return!1}bindEvents(e){}unbindEvents(){}}og.MaskElement=Fg;class Ng extends Fg{constructor(e){super(),this.input=e,this._handlers={}}get rootElement(){var e,t,r;return null!==(e=null===(t=(r=this.input).getRootNode)||void 0===t?void 0:t.call(r))&&void 0!==e?e:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}bindEvents(e){Object.keys(e).forEach((t=>this._toggleEventHandler(Ng.EVENTS_MAP[t],e[t])))}unbindEvents(){Object.keys(this._handlers).forEach((e=>this._toggleEventHandler(e)))}_toggleEventHandler(e,t){this._handlers[e]&&(this.input.removeEventListener(e,this._handlers[e]),delete this._handlers[e]),t&&(this.input.addEventListener(e,t),this._handlers[e]=t)}}Ng.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},og.HTMLMaskElement=Ng;class Rg extends Ng{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),r=t&&t.anchorOffset,n=t&&t.focusOffset;return null==n||null==r||r<n?r:n}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),r=t&&t.anchorOffset,n=t&&t.focusOffset;return null==n||null==r||r>n?r:n}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const r=this.rootElement.createRange();r.setStart(this.input.firstChild||this.input,e),r.setEnd(this.input.lastChild||this.input,t);const n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(r))}get value(){return this.input.textContent}set value(e){this.input.textContent=e}}og.HTMLContenteditableMaskElement=Rg;const Ig=["mask"];og.InputMask=class{constructor(e,t){this.el=e instanceof Fg?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new Rg(e):new Ng(e),this.masked=xg(t),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(e){var t;return null==e||(null===(t=this.masked)||void 0===t?void 0:t.maskEquals(e))}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof og.Masked)&&this.masked.constructor===wg(e))return void this.masked.updateOptions({mask:e});const t=xg({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const a=this._listeners[e];a&&a.forEach((e=>e(...r)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const e=this.masked.unmaskedValue,t=this.masked.value,r=this.displayValue,n=this.unmaskedValue!==e||this.value!==t;this._unmaskedValue=e,this._value=t,this.el.value!==r&&(this.el.value=r),n&&this._fireChangeEvents()}updateOptions(e){const{mask:t}=e,r=ig(e,Ig),n=!this.maskEquals(t),a=!gg(this.masked,r);n&&(this.mask=t),a&&this.masked.updateOptions(r),(n||a)&&this.updateControl()}updateCursor(e){null!=e&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout((()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,ug))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const r=this._listeners[e].indexOf(t);return r>=0&&this._listeners[e].splice(r,1),this}_onInput(e){if(this._inputEvent=e,this._abortUpdateCursor(),!this._selection)return this.updateValue();const t=new yg(this.el.value,this.cursorPos,this.displayValue,this._selection),r=this.masked.rawInputValue,n=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,a=r===this.masked.rawInputValue?t.removeDirection:cg;let i=this.masked.nearestInputPos(t.startChangePos+n,a);a!==cg&&(i=this.masked.nearestInputPos(i,cg)),this.updateControl(),this.updateCursor(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};class Lg extends bg{constructor(e){super(Object.assign({},Lg.DEFAULTS,e))}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"(".concat(hg(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(hg).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(hg(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e);const[r,n]=mg(super.doPrepare(e,t));return e&&!r&&(n.skip=!0),[r,n]}_separatorsCount(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;for(let n=0;n<e;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++r,t&&(e+=this.thousandsSeparator.length));return r}_separatorsCountFromSlice(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;return[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,r))}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(e,t);const r=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);const a=super._appendCharRaw(e,t);this._value=this._insertThousandsSeparators(this._value);const i=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,o=this._separatorsCountFromSlice(i);return a.tailShift+=(o-n)*this.thousandsSeparator.length,a.skip=!a.rawInserted&&e===this.thousandsSeparator,a}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,r=this.value.indexOf(this.thousandsSeparator,t);if(r<=e)return r}return-1}_adjustRangeWithSeparators(e,t){const r=this._findSeparatorAround(e);r>=0&&(e=r);const n=this._findSeparatorAround(t);return n>=0&&(t=n+this.thousandsSeparator.length),[e,t]}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;[e,t]=this._adjustRangeWithSeparators(e,t);const r=this.value.slice(0,e),n=this.value.slice(t),a=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+n));const i=this._separatorsCountFromSlice(r);return new lg({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case cg:case ug:case dg:{const r=this._findSeparatorAround(e-1);if(r>=0){const n=r+this.thousandsSeparator.length;if(e<n||this.value.length<=n||t===dg)return r}break}case pg:case fg:{const t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doValidate(e){let t=Boolean(this._removeThousandsSeparators(this.value).match(this._numberRegExp));if(t){const e=this.number;t=t&&!isNaN(e)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return t&&super.doValidate(e)}doCommit(){if(this.value){const e=this.number;let t=e;null!=this.min&&(t=Math.max(t,this.min)),null!=this.max&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.doFormat(t));let r=this.value;this.normalizeZeros&&(r=this._normalizeZeros(r)),this.padFractionalZeros&&this.scale>0&&(r=this._padFractionalZeros(r)),this._value=r}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,((e,t,r,n)=>t+n)),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n=0===this.scale&&e!==this.thousandsSeparator&&(e===this.radix||e===Lg.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,r)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,Lg.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(e){this.rawInputValue=this.doFormat(e).replace(Lg.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}typedValueEquals(e){return(super.typedValueEquals(e)||Lg.EMPTY_VALUES.includes(e)&&Lg.EMPTY_VALUES.includes(this.typedValue))&&!(0===e&&""===this.value)}}Lg.UNMASKED_RADIX=".",Lg.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[Lg.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},Lg.EMPTY_VALUES=[...bg.EMPTY_VALUES,0],og.MaskedNumber=Lg;var Mg=["name","isControlled","maskOptions","onAccept","onComplete","value"],Dg={Range:og.MaskedRange},Hg=(0,y.forwardRef)((function(e,t){var r=e.name,n=e.isControlled,a=void 0!==n&&n,i=e.maskOptions,o=void 0===i?{mask:Number}:i,l=e.onAccept,s=e.onComplete,c=e.value,u=g(e,Mg),d=(0,y.useRef)(),p=t||d,f=(0,y.useRef)(null),h=null==f?void 0:f.current;return(0,y.useEffect)((function(){h&&h.updateOptions(o)}),[o]),(0,y.useEffect)((function(){h&&(h.unmaskedValue=c)}),[c]),(0,y.useEffect)((function(){var e=p.current;if(e&&!f.current){f.current=og(e,o);var t=f.current;t.on("accept",(function(){l&&l(t.value,t.unmaskedValue,t.typedValue)})),t.on("complete",(function(){s&&s(t.value,t.unmaskedValue,t.typedValue)}))}return function(){h&&(h.off("accept"),h.off("complete"),h.destroy())}}),[]),h&&a&&(h.unmaskedValue="".concat(c)),v().createElement(Zi,m({name:r,value:c,ref:p,"data-ppui-info":"masked-text-input_3.2.3__8.12.0"},u))}));b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-tooltip");const{caretSize:Bg,caretRightOffset:jg,caretTopOffset:Wg,caretBottomOffset:Vg,caretLeftOffset:Ug,caretCenterOffset:qg,caretSpaceShiftLeft:Gg,caretSpaceShiftRight:Kg}=gm,{E3:Yg,Fm:Xg}=i,Zg="18rem",Qg=`calc(${x.size.pointerWidth.lg} / 2)`,Jg=((0,w.style)([go,ym,wm,Sm,{...Ae,color:x.color.background.highContrast,visibility:"hidden",opacity:0,maxWidth:Zg,wordWrap:"break-word",padding:x.space[200],position:"absolute",borderRadius:x.border.radius.sm,backgroundColor:x.color.background.surface,zIndex:1070,selectors:{"[aria-hidden = 'false']&":{visibility:"visible",opacity:1}},vars:{[jg]:Qg,[Bg]:x.size.pointerWidth.lg,[Wg]:Qg,[Vg]:Qg,[Ug]:Qg,[qg]:x.size.pointerWidth.lg,[Gg]:x.size.pointerWidth.lg,[Kg]:x.size.pointerWidth.lg}}],"tooltip_base"),(0,w.style)(zm,"tooltip_position_left"),(0,w.style)(Om,"tooltip_position_right"),(0,w.style)(km,"tooltip_position_bottom"),(0,w.style)(Cm,"tooltip_tip_position_left"),(0,w.style)(Am,"tooltip_tip_position_right"),(0,w.style)([Yg,Xg,{width:x.size.tapTarget.sm,height:x.size.tapTarget.sm,padding:0,display:"inline-flex",justifyContent:"center",alignItems:"center",color:x.color.secondary.main,cursor:"pointer",border:0,backgroundColor:"transparent",position:"relative",":hover":{color:x.color.secondary.mainActive,outline:"0.938rem"},":active":{color:x.color.secondary.mainActive,outline:"none"},":focus":{outline:"none"}}],"tooltip-icon"));(0,w.globalStyle)(`${Jg}:focus > span:first-of-type`,{borderRadius:x.border.radius.interactive,...Fn});const ey=(0,w.style)({display:"flex"},"tooltip_image");(0,w.globalStyle)(`${ey} > img `,{maxWidth:`calc(${Zg}-2*${x.space[200]})`}),(0,w.style)({justifyContent:"flex-start",paddingBottom:x.space[100]},"tooltip_image_top_left"),(0,w.style)({justifyContent:"center",paddingBottom:x.space[100]},"tooltip_image_top_center"),(0,w.style)({justifyContent:"flex-start",paddingTop:x.space[100]},"tooltip_image_bottom_left"),(0,w.style)({justifyContent:"center",paddingTop:x.space[100]},"tooltip_image_bottom_center"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-credit-card-input"),(0,w.style)({height:x.size.icon.md},"credit_card_cvv_image"),(0,w.style)({selectors:{"[dir='rtl'] &":{direction:"ltr",textAlign:"right"}}},"credit_card_number_input_rtl"),b.endFileScope();var ty=["name","maskOptions","prefix","suffix","currencyType","value"],ry=(0,y.forwardRef)((function(e,t){var r=e.name,n=e.maskOptions,a=e.prefix,i=e.suffix,o=e.currencyType,l=void 0===o?"USD":o,s=e.value,c=g(e,ty),u=(0,y.useContext)(Wn),d=qn(u,n,l),p=d.currencyMaskOptions,f=d.intlCurrencyPrefix,h=d.intlCurrencySuffix,b="decimal",w=s;if(p&&(0===p.scale&&(b="numeric"),w)){var x=ro(w.split("."),2),k=x[0],_=x[1];if(_){var S=_.substring(0,p.scale);w=k+(S?p.radix+S:"")}}return v().createElement(Hg,m({name:r,value:w,maskOptions:p,prefix:a||f,suffix:i||h,inputMode:b,ref:t,"data-ppui-info":"currency-input_3.2.7__8.12.0"},c))}));b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-table");const ny=e=>`screen and (${e}-width: ${$})`,ay=(0,w.style)({},"table-type_data"),iy=(0,w.style)({},"table-type_summary"),oy=(0,w.style)({},"table-fixed_first_column_table"),ly=(0,w.style)({},"table-section_summary_heading"),sy=(0,w.style)({},"table-section_summary_item"),cy=(0,w.style)({},"table-section_summary_adjust"),uy=(0,w.style)({},"table-section_summary_total"),dy=(0,w.style)({},"table-section_utility"),py=(0,w.style)({display:"inline-block",overflow:"auto",maxHeight:"100%",width:"100%"},"table-scroll_context"),fy=(0,w.style)({border:"none",tableLayout:"fixed",display:"block",overflow:"auto"},"table-scroll_context_table"),hy=(0,w.style)({borderSpacing:0,borderCollapse:"separate",border:"none",tableLayout:"fixed",overflow:"auto",width:"100%"},"table-r_table_base"),my=(0,w.style)({"@media":{[ny("max")]:{border:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,borderEndEndRadius:x.border.radius.lg,borderEndStartRadius:x.border.radius.lg}}},"table-summary_wrap"),gy=(0,w.style)({display:"block"},"table-fixed1st"),yy={position:"sticky",top:0,zIndex:1},vy=(0,w.style)(yy,"table-head_sticky"),by=(0,w.style)({position:"sticky",bottom:0,zIndex:10},"table-foot_sticky"),wy=(0,w.style)({"@media":{[ny("max")]:{selectors:{[`${hy} &`]:{display:"none"}}}},selectors:{[`${fy} &`]:yy}},"table-thead"),xy=(0,w.style)({backgroundColor:x.color.background.surface},"table-tbody"),ky=(0,w.style)({backgroundColor:x.color.background.surface},"table-tfoot"),_y=(0,w.style)({textAlign:"start",padding:x.space[150],selectors:{[`${xy} &:first-of-type`]:{...ze,backgroundColor:"inherit"},[`${fy} ${wy} &`]:{borderBottom:"none",position:"sticky",top:0,backgroundColor:x.color.background.main},[`${fy} ${xy} &`]:{...Eo,clipPath:`polygon(0 0, 0 100%, calc(100% + ${x.elevation.blurBase}) 100%, calc(100% + ${x.elevation.blurBase}) 0)`},[`${oy} &`]:{position:"sticky"},[`${oy} &:first-of-type`]:{left:0},[`${oy} ${wy} &:first-of-type`]:{...Eo,borderBottom:"none",clipPath:`polygon(0 0, 0 100%, calc(100% + ${x.elevation.blurBase}) 100%, calc(100% + ${x.elevation.blurBase}) 0)`,zIndex:2},[`[dir='rtl'] ${oy} ${wy} &`]:{clipPath:`polygon(\n calc(-1 * ${x.elevation.blurBase}) 0,\n calc(-1 * ${x.elevation.blurBase}) 100%,\n 100% 100%,\n 100% calc(-1*${x.elevation.blurBase})\n )`,right:0,left:"unset"},[`[dir='rtl'] ${oy} ${xy} &:first-of-type`]:{position:"sticky",left:"unset",right:0,clipPath:`polygon(\n calc(-1*${x.elevation.blurBase}) 0,\n calc(-1*${x.elevation.blurBase}) 100%,\n 100% 100%,\n 100% calc(-1*${x.elevation.blurBase})\n )`},[`${ay} ${wy} &`]:{...ze,backgroundColor:x.color.background.main},[`${iy} ${wy} &`]:{...ot,backgroundColor:x.color.background.surface},[`${iy} ${ky} &`]:{...ot,backgroundColor:x.color.background.main},[`${hy} ${ky} &:first-of-type`]:{...ot,position:"sticky",bottom:0,verticalAlign:"middle"},[`${hy} ${xy} &`]:{position:"sticky",left:0},[`${hy} &`]:{"@media":{[ny("max")]:{display:"block",height:"auto",padding:`${x.space[50]} ${x.space[100]}`,border:"none !important"}}},[`${hy} &:first-of-type`]:{"@media":{[ny("min")]:{paddingLeft:x.space[200]}}},[`${hy} &:last-of-type`]:{"@media":{[ny("min")]:{paddingRight:x.space[200]}}}}},"table-th"),Sy=(0,w.style)({backgroundColor:x.color.background.surface,borderBottom:`${x.space[50]} solid ${x.color.background.main}`,selectors:{[`${hy} &`]:{"@media":{[ny("max")]:{display:"grid",width:"100%",gridTemplateAreas:"'a1 a2 a3' 'b1 b2 b3'",gridTemplateColumns:"auto 1fr auto",gap:`0 ${x.space[100]}`,padding:`${x.space[150]} 0`}}},[`${wy} &`]:{whiteSpace:"nowrap"},[`${ky} &`]:{backgroundColor:x.color.background.main,whiteSpace:"nowrap"},[`${sy} &`]:{borderBottom:"none"},[`${cy} &`]:{borderBottom:"none",borderTop:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`},[`${uy} &`]:{borderTop:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,backgroundColor:x.color.background.main}}},"table-row_base"),Ey=(0,w.style)({backgroundColor:x.color.selectedRange.main,color:x.color.selectedRange.contrast},"table-row_selected"),Cy=(0,w.style)({...Ae,color:"inherit",padding:x.space[150],height:`calc(${x.size.tapTarget.default} + ${x.space[150]} * 2)`,width:"var(--normalWidth)",verticalAlign:"middle",borderBottom:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,paddingLeft:x.space[200],selectors:{[`${dy} &`]:{borderBottom:"none",backgroundColor:x.color.background.surface},[`${ly} &`]:{textAlign:"start",padding:x.space[150],borderBottom:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`},[`${sy} &`]:{borderBottom:"none"},[`${sy} &:first-of-type`]:{borderLeft:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`},[`${sy} &:last-of-type`]:{borderRight:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`},[`${cy} &`]:{...ze,borderTop:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,borderBottom:"none"},[`${cy} &:first-of-type`]:{borderLeft:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`},[`${cy} &:last-of-type`]:{borderRight:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`},[`${uy} &`]:{...ze,backgroundColor:x.color.background.main,borderTop:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`},[`${uy} &:first-of-type`]:{borderEndStartRadius:x.border.radius.lg,borderLeft:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`},[`${uy} &:last-of-type`]:{borderEndEndRadius:x.border.radius.lg,borderRight:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`}}},"table-cell_base"),$y=(0,w.style)({"@media":{[ny("min")]:{":first-of-type":{paddingLeft:x.space[200]},":last-of-type":{paddingRight:x.space[200]}},[ny("max")]:{display:"block",height:"auto",padding:`${x.space[50]} ${x.space[100]}`,border:"none !important"}}},"table-cell_resp"),Ay=(0,w.style)([$e,{borderSpacing:0,borderCollapse:"separate"}],"table-base"),Ty=(0,w.style)({textAlign:"start"},"table-align_start"),Oy=(0,w.style)({textAlign:"end"},"table-align_end"),Py=(0,w.style)({textAlign:"center"},"table-align_center"),zy=(0,w.style)({"@media":{[ny("max")]:{display:"none"}}},"table-m_hide"),Fy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a1"}}},"table-m_a1"),Ny=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a2"}}},"table-m_a2"),Ry=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a3",textAlign:"end",width:"100%"}}},"table-m_a3"),Iy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / a2 / a2"}}},"table-m_a12"),Ly=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a2 / a2 / a3 / a3"}}},"table-m_a12"),My=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / a3 / a3"}}},"table-m_a123"),Dy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"b1"}}},"table-m_b1"),Hy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"b2"}}},"table-m_b2"),By=(0,w.style)({"@media":{[ny("max")]:{gridArea:"b3",textAlign:"end",width:"100%"}}},"table-m_b3"),jy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"b1 / b1 / b2 / b2"}}},"table-m_b12"),Wy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"b2 / b2 / b3 / b3"}}},"table-m_b23"),Vy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"b1 / b1 / b3 / b3",width:"100%"}}},"table-m_b123"),Uy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / b1 / b1"}}},"table-m_ab1"),qy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a2 / a2 / b2 / b2"}}},"table-m_ab2"),Gy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a3 / a3 / b3 / b3",width:"100%"}}},"table-m_ab3"),Ky=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / b2 / b2"}}},"table-m_ab12"),Yy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a2 / a2 / b3 / b3",width:"100%"}}},"table-m_ab23"),Xy=(0,w.style)({"@media":{[ny("max")]:{gridArea:"a1 / a1 / b3 / b3",width:"100%"}}},"table-m_ab123"),Zy=(0,w.style)({width:"100%"},"table-w100"),Qy=(0,w.style)({"@media":{[ny("max")]:{width:"var(--mWidth)"}}},"table_cell-mobile_width"),Jy=(0,w.style)({"@media":{[ny("max")]:{textAlign:"start"}}},"table-align_start"),ev=(0,w.style)({"@media":{[ny("max")]:{textAlign:"end"}}},"table-align_end"),tv=(0,w.style)({"@media":{[ny("max")]:{textAlign:"center"}}},"table-align_center");b.endFileScope();var rv=["className","children","sticky","as"],nv=(0,y.forwardRef)((function(e,t){var r=e.className,n=e.children,a=e.sticky,i=void 0!==a&&a,o=e.as,s=void 0===o?"tbody":o,c=g(e,rv),u=Z(l[s],i&&"thead"===s&&vy,i&&"tfoot"===s&&by,r);return v().createElement(s,m({ref:t,className:u},c,{"data-ppui":"true"}),n)})),av=function(e){return v().createElement(nv,m({},e,{as:"tbody","data-ppui":"true"}))},iv=function(e){return v().createElement(nv,m({},e,{as:"thead","data-ppui":"true"}))},ov=["isSelected","section","className","children"],lv=(0,y.forwardRef)((function(e,t){var r=e.isSelected,n=e.section,a=e.className,i=e.children,o=g(e,ov),l=Z(Sy,r&&Ey,n&&function(e){switch(e){case"summaryHeading":return ly;case"summaryItem":return sy;case"summaryAdjust":return cy;case"summaryTotal":return uy;case"utility":return dy;default:return""}}(n),a);return v().createElement("tr",m({ref:t,className:l},o,{"data-ppui":"true"}),i)})),sv=["className","mobile","claimsRemainingSpace","width","span","isHeader","children","align"];function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var uv=(0,y.forwardRef)((function(e,t){var r=e.className,n=e.mobile,a=e.claimsRemainingSpace,i=e.width,o=e.span,l=void 0===o?1:o,s=e.isHeader,c=e.children,u=e.align,d=g(e,sv),p={hidden:zy,a1:Fy,a2:Ny,a3:Ry,b1:Dy,b2:Hy,b3:By,a12:Iy,a23:Ly,a123:My,b12:jy,b23:Wy,b123:Vy,ab1:Uy,ab2:qy,ab3:Gy,ab12:Ky,ab23:Yy,ab123:Xy},f=function(e,t){switch(e){case"right":case"end":return t?ev:Oy;case"center":return t?tv:Py;default:return t?Jy:Ty}},h=Z(Cy,s&&_y,u&&f(u,!1),(null==n?void 0:n.align)&&f(n.align,!0),(null==n?void 0:n.placement)&&$y,(null==n?void 0:n.placement)&&p[n.placement],(null==n?void 0:n.width)&&Qy,a&&Zy,r),y={"--normalWidth":i,"--mWidth":null==n?void 0:n.width},b=s?"th":"td",w=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d);return l>1&&(w.colSpan=l),v().createElement(b,m({ref:t,className:h},w,{style:y,"data-ppui":"true"}),c)})),dv=function(e){return v().createElement(uv,m({isHeader:!0},e,{"data-ppui":"true"}))};b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-data-table");const pv=(0,w.style)({display:"flex",alignItems:"center"},"data_table-flex_container"),fv=(0,w.style)({display:"grid",gridTemplateColumns:"1fr auto",gap:x.space[150],alignItems:"center"},"data_table-setting_icon"),hv=(0,w.style)({},"data_table-checkbox");(0,w.globalStyle)(`${hv} label`,{display:"block"});const mv=(0,w.style)({visibility:"hidden"},"data_table-checkbox_disabled"),gv=(0,w.style)({backgroundSize:x.size.circle.lg},"data_table-empty_table_label"),yv=(0,w.style)({marginTop:x.space[150],display:"grid",gridTemplateColumns:"auto",gridTemplateRows:"auto auto",placeItems:"center"},"data_table-info_block"),vv=(0,w.style)({margin:`${x.space[150]} 0`},"data_table-iblock_msg"),bv=(0,w.style)({margin:`${x.space[150]} 0`},"data_table-iblock_action"),wv=(0,w.style)({width:x.size.pictogram.sm},"data_table-iblock_deco"),xv=((0,w.style)({padding:x.space[100],display:"inline-grid",gridTemplateColumns:"auto 1fr",placeItems:"center",gap:x.space[100],height:"auto"},"data_table-icon_message"),(0,w.style)({padding:`${x.space[100]} ${x.space[150]}`},"data_table-see_more"),(0,w.style)({marginLeft:x.space[50],selectors:{"[dir='rtl'] &":{marginRight:x.space[50],marginLeft:0}}},"data_table-header_button")),kv=(0,w.style)({color:x.color.primary.main,border:`${x.border.thickness.normal} solid ${x.color.primary.main}`,borderRadius:x.border.radius.interactive},"data_table-currently_sorted_by_icon"),_v=((0,w.style)({position:"relative",":before":{content:" ",position:"absolute",inset:0,backgroundColor:x.color.structure.scrim,zIndex:1}},"data_table-loading"),(0,w.style)({padding:x.space[150],display:"grid",placeItems:"center"},"data_table-spinner"));(0,w.style)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1},"data_table-spinner"),b.endFileScope(),v().memo((function(e){var t,r=e.columns,n=e.columnOrder,a=e.isInteractive,i=e.toggleAllLabel,o=void 0===i?"Toggle all rows":i,l=e.selectedRows,s=e.idPrefix,c=e.rows,u=e.interactiveCellContentClassName,d=e.onSelection,p=e.onSort,f=e.sortInProgress,h=e.settings,m=(0,y.useMemo)((function(){return c.reduce((function(e,t){var r=t.id;return t.isUnselectable||e.push(r),e}),[])}),[c]),g=Z(pv,0===m.length&&mv);if(a){var b=l.length>0,w=m.length&&l.length===m.length;t=v().createElement(Bh,{name:"".concat(s,"DataTableToggleAll"),id:"".concat(s,"DataTableToggleAll"),"aria-label":o,className:g,partial:b&&!w,checked:b||w,onChange:function(e){d(e.target.checked?m:[])},"data-ppui":"true"})}var x=n.length-1,k=n.map((function(e,n){return function(e,r,n,i){var o=r.title,l=r.sortButtonLabel,s=r.sortDirection,c=r.isSortCurrent,d=r.align,m=r.width,g=r.claimsRemainingSpace,y=o;if(s){var b="ascending"===s?Ea:Sa,w=l||"".concat(c?"Currently":""," sorted by ").concat(e," in ").concat(s," order");y=v().createElement("div",{className:pv,"data-ppui":"true"},o,v().createElement(Sd,{className:xv,iconClassName:c&&kv,svgIconComponent:b,onClick:function(){p&&p(e,"ascending"===s?"descending":"ascending")},buttonType:"tertiary",btnState:f===e?"processing":"initial",size:"sm","data-ppui":"true"},w))}if(0===n&&a&&(y=function(e){return v().createElement("div",{className:Z(pv,u),"data-ppui":"true"},t,e)}(y)),i&&"function"==typeof(null==h?void 0:h.onClick)){var x,k=v().createElement(Sd,{svgIconComponent:Ha,buttonType:"tertiary",onClick:function(){h&&h.onClick&&h.onClick()},"data-ppui":"true"},h.screenReaderText);!function(e){return"string"==typeof e&&e.length>0||!!e}(o)?(y=k,d=null!==(x=d)&&void 0!==x?x:"end"):y=v().createElement("div",{className:fv,"data-ppui":"true"},v().createElement("div",{"data-ppui":"true"},y),v().createElement("div",{"data-ppui":"true"},k))}return v().createElement(dv,{key:e,scope:"col","aria-sort":s,align:d,width:m,claimsRemainingSpace:g,"data-ppui":"true"},y)}(e,r[e],n,n===x)}));return v().createElement(iv,{sticky:!0,"data-ppui":"true"},v().createElement(lv,{"data-ppui":"true"},k))})),v().memo((function(e){var t,r=e.rows,n=e.isInteractive,a=e.idPrefix,i=e.selectedRows,o=e.columns,l=e.columnOrder,s=e.interactiveCellContentClassName,c=e.onSelection,u=e.loadingProps,d=r.map((function(e){var t,r=e.id;n&&(t=v().createElement(Bh,{name:"".concat(a,"DataTable").concat(r),id:"".concat(a,"DataTable").concat(r),"aria-label":r,className:Z(hv,e.isUnselectable&&mv),disabled:!!e.isUnselectable,checked:i.includes(r),onChange:function(e){var t=e.target.checked?i.concat(r):i.filter((function(e){return e!==r}));c(t)},"data-ppui":"true"}));var u=n&&i.includes(r),d=function(e,t){return l.map((function(r,a){var i=function(e,t){var r=e[t]?e[t].value:"";if(o[t].cellAs){var n=o[t].cellAs;r=v().createElement(n,m({id:e.id},e[t],{"data-ppui":"true"}))}return r}(e,r),l=o[r],c=l.mobile,u=l.align,d=l.width;return 0===a&&n?v().createElement(dv,{key:r,mobile:c,align:u,width:d,scope:"row","data-ppui":"true"},function(e,t){return v().createElement("div",{className:Z(pv,s),"data-ppui":"true"},e,t)}(t,i)):v().createElement(uv,{key:r,mobile:c,align:u,width:d,"data-ppui":"true"},i)}))}(e,t);return v().createElement(lv,{key:r,isSelected:u,"data-ppui":"true"},d)})),p=function(e){var t=e.decoration,r=e.buttonLabel,n=e.buttonRef,a=e.message,i=e.isError,o=e.buttonAction,l=e.processing,s=r&&o?v().createElement(Zf,{onClick:o,secondary:i,tertiary:!i,size:"sm",ref:n,key:"load-btn",btnState:l?"processing":"initial","data-ppui":"true"},r):null;return v().createElement("div",{className:yv,"data-ppui":"true"},t,v().createElement("div",{className:vv,"data-ppui":"true"},a),v().createElement("div",{className:bv,"data-ppui":"true"},s))};return d.length?v().createElement(av,{"data-ppui":"true"},d):(t=u.errorMsg?v().createElement(p,{decoration:v().createElement(Ma,{color:"PrimaryMain",size:"xl","data-ppui":"true"}),buttonLabel:u.retryButtonLabel,buttonAction:u.onRetry,buttonRef:u.retryButtonRef,isError:!0,message:u.errorMsg,processing:u.isLoading,"data-ppui":"true"}):u.isLoading?v().createElement("div",{className:_v,"data-ppui":"true"},v().createElement(vl,{size:"lg",as:"div",screenReaderText:u.loadingText,"aria-live":u.loadingText,"data-ppui":"true"})):v().createElement(p,{decoration:v().createElement("img",{className:wv,alt:"emtpy",src:"https://www.paypalobjects.com/paypal-ui/pictograms/grayscale/svg/grayscale-1.svg","data-ppui":"true"}),buttonLabel:u.retryButtonLabel,buttonAction:u.onRetry,buttonRef:u.retryButtonRef,isError:!1,message:u.emptyMsg,"data-ppui":"true"}),v().createElement(av,{"data-ppui":"true"},v().createElement(lv,{"data-ppui":"true"},v().createElement(uv,{span:l.length,align:"center",className:gv,mobile:{placement:"ab123"},"data-ppui":"true"},t))))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-date-input");const{caretSize:Sv,caretTopOffset:Ev,caretCenterOffset:Cv}=gm,$v={width:"100%"},Av=e=>{const t=["end"===e?x.color.selectedRange.main:x.color.background.surface,"end"===e?x.color.background.surface:x.color.selectedRange.main];return(0,w.style)({background:`linear-gradient(to right, ${t[0]} 50%, ${t[1]} 50%)`},`calendar_range_${e}`)},Tv=e=>({width:e,height:e}),Ov=()=>(0,w.style)([mo,ym,km,Sm,{backgroundColor:x.color.background.surface,position:"absolute",top:`calc(${x.size.field.lg} + ${x.space[100]})`,padding:x.space[200],border:`${x.border.thickness.normal} solid ${x.color.background.surface}`,borderRadius:x.border.radius.sm,zIndex:q,cursor:"initial",vars:{[Sv]:x.size.pointerWidth.lg,[Ev]:`calc(${x.size.pointerWidth.lg} / 2)`,[Cv]:x.size.pointerWidth.lg}}],"calendar_container"),Pv=(0,w.style)({cursor:"pointer"},"calendar_trigger"),zv=(0,w.style)([Ov(),{selectors:{"&:after":{top:`calc(${x.border.thickness.normal} * -1)`}}}],"calendar_container"),Fv=(0,w.style)([Ov(),{right:`calc(${x.space[100]} * -1)`,selectors:{"&:before":{left:`calc(100% - ((${x.size.icon.lg} / 2) + ${x.space[200]}))`},"&:after":{top:`calc(${x.border.thickness.normal} * -1)`,left:`calc(100% - ${x.space[600]})`}}}],"calendar_container-left"),Nv=(0,w.style)([Ov(),{left:`calc(${x.space[100]} * -1)`,selectors:{"&:before":{left:`calc(${x.size.icon.lg} / 2)`},"&:after":{top:`calc(${x.border.thickness.normal} * -1)`,left:`calc((${x.size.icon.lg} / 2) - ${x.space[100]})`}}}],"calendar_container-right"),Rv=((0,w.style)({display:"flex",alignItems:"center",justifyContent:"space-between",whiteSpace:"nowrap","@media":{[`screen and (max-width: ${A})`]:{marginTop:x.space[50]}}},"calendar_nav"),(0,w.style)({},"nav_prev_btn"),(0,w.style)({},"nav_next_btn"),(0,w.style)({selectors:{"&:after":{display:"none"}}},"calendar_nav-no-focus"),(0,w.style)({visibility:"hidden"},"calendar_nav-hidden"),(0,w.style)({},"full_width"));(0,w.globalStyle)(`${Rv} table`,$v);const Iv=(0,w.style)({borderSpacing:0,"@media":{[`screen and (max-width: ${$})`]:$v}},"calendar_table");(0,w.globalStyle)(`${Iv} th, ${Iv} td`,{textAlign:"center",padding:`${x.space[25]} 0`}),(0,w.style)({borderTop:`${x.border.thickness.normal} solid transparent`,borderBottom:`${x.border.thickness.normal} solid transparent`,backgroundColor:`${x.color.selectedRange.main}`},"cell_in_range"),Av("start"),Av("end"),(0,w.style)([Tv(x.size.tapTarget.default),$e,{border:"none",padding:0,margin:`0 ${x.space[25]}`,textDecoration:"none",cursor:"pointer",borderRadius:x.border.radius.interactive,backgroundColor:"transparent",selectors:{"&:hover":{border:`${x.border.thickness.emphasis} solid ${x.color.primary.mainHover}`}},"@media":{[`screen and (max-width: ${E})`]:Tv(x.size.tapTarget.sm),[`screen and (min-width: ${E}) and (max-width: ${C})`]:Tv(x.size.tapTarget.sm)}}],"date"),(0,w.style)({color:x.color.selectedRange.contrast},"date_in_range"),(0,w.style)({color:x.color.background.mediumContrast},"date_not_current"),(0,w.style)({textDecorationLine:"line-through",cursor:"not-allowed",color:x.color.background.mediumContrast,selectors:{"&:hover":{border:"none"}}},"disabled"),(0,w.style)({border:`${x.border.thickness.normal} solid ${x.color.background.highContrast}`},"today"),(0,w.style)({color:x.color.selected.contrast,border:`${x.border.thickness.normal} solid ${x.color.selected.main}`,backgroundColor:x.color.selected.main},"selected"),(0,w.style)({color:x.color.specialty.main,border:`${x.border.thickness.normal} solid ${x.color.specialty.main}`},"due_date"),(0,w.style)({color:x.color.selected.contrast,border:`${x.border.thickness.normal} solid ${x.color.specialty.main}`},"due_date_selected"),(0,w.style)([Tv(x.size.tapTarget.default),{display:"inline-block",position:"relative","@media":{[`screen and (max-width: ${E})`]:Tv(x.size.tapTarget.sm),[`(min-width: ${E}) and (max-width: ${C})`]:Tv(x.size.tapTarget.sm)}}],"icon_container"),(0,w.style)({position:"absolute",bottom:0,right:0,pointerEvents:"none",backgroundColor:x.color.background.surface,borderRadius:x.border.radius.interactive,color:x.color.specialty.main},"icon"),(0,w.style)({display:"flex",alignItems:"center",marginTop:x.space[100],marginInlineStart:x.space[200]},"legend"),(0,w.style)({display:"flex",alignItems:"center",whiteSpace:"nowrap",marginInlineEnd:x.space[200]},"legend_item"),(0,w.style)({color:x.color.background.mediumContrast},"legend_item_label"),(0,w.style)({width:x.typography.caption.size,height:x.typography.caption.size,display:"inline-block",marginInlineEnd:x.space[50],borderRadius:x.border.radius.interactive},"key"),(0,w.style)({backgroundColor:x.color.background.surface,color:x.color.specialty.main,marginInlineEnd:x.space[50],borderRadius:x.border.radius.interactive},"due_date_legend_key");const Lv=(0,w.style)({},"date_input-wrapper");(0,w.globalStyle)(`${Lv} input`,{color:x.color.background.mediumContrast}),(0,w.globalStyle)(`${Lv} input:focus`,{color:x.color.background.highContrast}),(0,w.globalStyle)(`${Lv} [dir="rtl"] input`,{textAlign:"right",direction:"ltr"}),b.endFileScope();var Mv={mask:"m`/d`/y",lazy:!1,blocks:{d:{mask:Dg.Range,from:1,to:31,maxLength:2,placeholderChar:"D"},m:{mask:Dg.Range,from:1,to:12,maxLength:2,placeholderChar:"M"},y:{mask:Dg.Range,from:1900,to:2999,maxLength:4,placeholderChar:"Y"}}},Dv=function(e){var t=e.isCalendarVisible,r=e.label,n=e.children,a=e.calendarTriggerRef,i=e.wrapperContainerRef,o=e.onShowCalendar,l=e.calendarInSheet,s=void 0!==l&&l,c=ro((0,y.useState)(!1),2),u=c[0],d=c[1],p=(0,y.useRef)(),f=ro((0,y.useState)(zv),2),h=f[0],m=f[1],g=function(e){new re(e.key||e.keyCode).IS_ESC&&o(!1)},b=function(e){a.current.contains(e.target)||p.current.contains(e.target)||o(!1)},w=function(){o(!1)};return(0,y.useLayoutEffect)((function(){m(zv);var e,r,n=H()&&window.innerWidth<752;return function(){var e,t=(e=a)&&e.current?e.current:null,r=t.getBoundingClientRect(),n=H()&&window.innerWidth||document.documentElement.clientWidth,o=200+.0625*((H()&&parseFloat(window.getComputedStyle(document.documentElement).fontSize))-16)*200;if(null==i?void 0:i.current){var l=i.current.getBoundingClientRect();r.left-l.left<o?m(Nv):l.right+o>l.width&&m(Fv)}else t&&(r.left<o?m(Nv):r.right+o>n&&m(Fv))}(),d(n),!n&&t&&(window.addEventListener("resize",w),document.addEventListener("keydown",g),s||document.addEventListener("click",b),null===(e=p.current)||void 0===e||null===(r=e.scrollIntoView)||void 0===r||r.call(e,{behavior:"smooth",block:"nearest"})),function(){window.removeEventListener("resize",w),document.removeEventListener("keydown",g),document.removeEventListener("click",b)}}),[t]),u||s?v().createElement(ep,{isOpen:t,onCloseComplete:function(){return o(!1)},noCloseButton:!0,title:r,skipFormFocus:!0,"data-ppui":"true"},s&&!u?v().createElement("div",{className:Rv,"data-ppui":"true"},n):n):t?v().createElement("div",{className:h,ref:p,"data-ppui":"true"},n):null};function Hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hv(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jv(e){if(!e)return null;var t=e.split("/"),r=Number(t[0]),n=Number(t[1]),a=Number(t[2]);return new Date(a,r-1,n)}function Wv(e){return e?new Intl.DateTimeFormat("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}).format(e):""}var Vv=Intl.DateTimeFormat().resolvedOptions().timeZone,Uv=["name","label","className","calendar","isCalendarVisible","wrapperContainerRef","onShowCalendar","maskOptions","selectedDate","onSelection","parseDate","formatDate","formatterSkeleton","sheetContainerRef","onComplete","onAccept","calendarInSheet","isLabelHidden"];(0,y.forwardRef)((function(e,t){var r=e.name,n=e.label,a=e.className,i=e.calendar,o=e.isCalendarVisible,l=e.wrapperContainerRef,s=e.onShowCalendar,c=e.maskOptions,u=e.selectedDate,d=e.onSelection,p=e.parseDate,f=e.formatDate,h=e.formatterSkeleton,b=void 0===h?"yyyyMMdd":h,w=e.sheetContainerRef,x=e.onComplete,k=e.onAccept,_=e.calendarInSheet,S=e.isLabelHidden,E=g(e,Uv);d||(d=function(){});var C=(0,y.useContext)(Wn),$=(0,y.useRef)(),A=(0,y.useRef)(),T=t||A,O=(0,y.useRef)(),P=(0,y.useMemo)((function(){return function(e,t,r){if(!e||!e.dateInputMaskFormat)return Bv(Bv({},Mv),r);var n=e.dateInputMaskFormat({style:t}).maskArray,a=n.reduce((function(e,t){var r=t.type,n=t.value;return"month"!==r&&"day"!==r&&"year"!==r||(e[r]=n[0].toUpperCase()),e}),{day:"",month:"",year:""}),i=n.map((function(e){var t=e.type,r=e.value;switch(t){case"month":return"m";case"day":return"d";case"year":return"y";default:var n=r.replace(/[^\x00-\x7F]/g,"");return"`".concat(n)}})).join("");return Bv(Bv(Bv({},Mv),{},{blocks:{d:Bv(Bv({},Mv.blocks.d),{},{placeholderChar:a.day}),m:Bv(Bv({},Mv.blocks.m),{},{placeholderChar:a.month}),y:Bv(Bv({},Mv.blocks.y),{},{placeholderChar:a.year})}},r),{},{mask:i})}(C,b,c)}),[b,c]),z=(0,y.useMemo)((function(){return function(e,t,r,n){if(!e||!e.dateTimeFormatter)return{_formatDate:r||Wv,_parseDate:n||jv};var a=e.dateTimeFormatter({style:t,timeZone:Vv});return{_formatDate:r||function(e){return e?a.format(e):""},_parseDate:n||function(e){return e&&a.parse(e)}}}(C,b,f,p)}),[f,p]),F=z._formatDate,N=z._parseDate,R=i&&v().createElement(v().Fragment,null,v().createElement(Ca,{size:"sm",onMouseDown:function(e){return e.preventDefault()},onClick:function(){T.current.focus(),s(!o)},svgElementRef:$,color:"sysColorBackgroundMediumContrast",className:Pv,"aria-hidden":"true","data-ppui":"true"}),v().createElement(Dv,{isCalendarVisible:o,onShowCalendar:s,label:n,sheetContainerRef:w,wrapperContainerRef:l,calendarTriggerRef:$,calendarInSheet:_,"data-ppui":"true"},i)),I=F(u).replace(/\D/g,"");O.current=I;var L=Z(Lv,a);return v().createElement(Hg,m({name:r,label:n,rightIcon:R,maskOptions:P,className:L,inputMode:"numeric","data-ppui-info":"date-input_4.1.5__8.12.0"},E,{onComplete:function(e,t,r){t!==O.current&&d(N(e)),x&&x(e,t,r)},onAccept:function(e,t,r){t||d(null),k&&k(e,t,r)},value:I,ref:T,isLabelHidden:S}))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-dialog");const{variables:qv}=n,{ppuiEaseInOut:Gv}=qv,Kv=x.space[400],Yv=`calc(${x.size.media.xl} * 0.75)`,Xv=`screen and (max-width: ${$})`,Zv=`screen and (max-width: ${C})`,Qv=`screen and (min-width: ${$})`,Jv={borderTopLeftRadius:x.border.radius.jumbo,borderTopRightRadius:x.border.radius.jumbo},eb=(e="center")=>(0,w.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`dialog-container_center_${e}`),tb=((0,w.style)([eb(),{width:"75%",maxWidth:Yv,"@media":{[Xv]:{width:`calc(100% - ${x.space[600]})`},[Zv]:{width:`calc(100% - ${x.space[400]})`}}}],"dialog-container_middle"),(0,w.style)([{minHeight:"8rem",borderRadius:x.border.radius.jumbo,maxHeight:"75dvh",opacity:0,transition:`opacity ${x.motion.duration.depart} ${Gv}`}],"dialog"),(0,w.style)(Jv,"dialog_header_scrolled"),(0,w.style)([eb("center"),{position:"fixed",inset:0,zIndex:G,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${x.motion.duration.depart} ease-in-out,\n visibility ${x.motion.duration.depart} ${x.motion.duration.depart}`,backgroundColor:x.color.overlay.mainHover,boxShadow:"none"}],"dialog_backdrop"));(0,w.globalStyle)(`${tb} [aria-hidden="false"], ${tb} [aria-hidden="true"]`,{transitionDuration:x.motion.duration.arrive}),(0,w.style)({visibility:"visible",opacity:1,transition:`opacity ${x.motion.duration.depart} ease-in-out`},"dialog_backdrop_show"),(0,w.style)({opacity:1,transition:`opacity ${x.motion.duration.depart} ease-in-out ${x.motion.duration.depart}`},"dialog_backdrop_show_article"),(0,w.style)({maxHeight:"70dvh",padding:`0 ${Kv}`},"dialog-content"),(0,w.style)({"@media":{[Zv]:{padding:`0 ${x.space[200]} ${x.space[300]}`}}},"dialog-content_no_padding");const rb=(0,w.style)({position:"absolute",right:x.space[50],top:x.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:x.space[50],right:"auto","@media":{[Qv]:{left:x.size.indicator.md}}}}},"dialog-content_close");(0,w.globalStyle)(`${rb}`,{"@media":{[Qv]:{right:x.size.indicator.md,top:x.space[150]}}}),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-divider"),(0,w.style)({border:"none",borderTop:`${x.border.thickness.normal} solid ${x.color.structure.divider}`,margin:`${x.space[150]} 0`},"divider_base"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-dropdown-menu");const nb=(0,w.style)({position:"relative",textAlign:"start"},"dropdown-base"),ab=(0,w.style)([Yt,hn,{pointerEvents:"none",position:"absolute",transition:`font-size ${x.motion.duration.hover} ease-in-out, top ${x.motion.duration.hover} ease-in-out, background-color ${x.motion.duration.hover} linear`,insetInlineStart:x.space[150],top:`calc((${x.size.field.lg} - ${x.typography.fieldLabelLg.lineHeight}) / 2)`,insetInlineEnd:`calc(${x.space[150]} + ${x.size.icon.sm})`}],"dropdown-label"),ib=(0,w.style)([zn],"dropdown-button_active"),ob=(0,w.style)([Zt,hn,{boxSizing:"border-box",height:x.size.field.lg,width:"100%",border:`${x.border.thickness.normal} solid ${x.color.structure.borderLowContrast}`,borderRadius:x.border.radius.sm,backgroundColor:x.color.background.surface,paddingTop:`calc(${x.space[100]} + ${x.space[25]} + ${x.typography.fieldLabelSm.lineHeight} - ${x.border.thickness.normal})`,paddingInlineEnd:`calc(${x.space[150]} + ${x.size.icon.sm} - ${x.border.thickness.normal})`,paddingInlineStart:`calc(${x.space[150]} - ${x.border.thickness.normal})`,paddingBottom:`calc(${x.space[150]} - ${x.border.thickness.normal})`,cursor:"pointer",textAlign:"start",":focus":Fn}],"dropdown-button"),lb=(0,w.style)({border:`${x.border.thickness.emphasis} solid ${x.color.error.main}`,paddingTop:`calc(${x.space[100]} + ${x.space[25]} + ${x.typography.fieldLabelSm.lineHeight} - ${x.border.thickness.emphasis})`,paddingInlineEnd:`calc(${x.space[150]} + ${x.size.icon.sm} - ${x.border.thickness.emphasis})`,paddingInlineStart:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`,paddingBottom:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`},"dropdown-button_error"),sb=(0,w.style)([Gt,{top:x.space[100]}],"dropdown-label_active"),cb=(0,w.style)({pointerEvents:"none",position:"absolute",top:`calc(${x.space[100]} + ${x.space[150]})`,insetInlineEnd:`calc(${x.space[100]} + ${x.space[150]})`,marginInlineStart:x.space[150]},"dropdown-affordance_icon"),ub=(0,w.style)({...Ne,color:x.color.background.mediumContrast,display:"flex",marginTop:x.space[50],alignItems:"center"},"dropdown-helper_text"),db=(0,w.style)({...Ne,color:x.color.background.mediumContrast,display:"flex",marginTop:x.space[50],alignItems:"center"},"dropdown-error_text"),pb=(0,w.style)({color:x.color.error.main,marginInlineEnd:x.space[50]},"dropdown-error_icon"),fb=(0,w.style)({opacity:0,position:"absolute",pointerEvents:"none",width:0,height:0},"dropdpown-select_box");b.endFileScope();var hb=["className","menuContainerClassName","menuListClassName","menuItemClassName","menuMobileHeaderClassName","menuButtonClassName","menuLabelClassName","skipButtonFocus","sheetClassName","sheetWrapperClassName","id","label","name","errorText","errorIconAriaLabel","helperText","value","options","ariaLabelledby","renderButtonContent","onChange","onClose","onClick","onKeyDown","isLoadingOptions","showUnselect"];function mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mb(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yb=function(e){return e&&e.current?e.current:null},vb=(0,y.forwardRef)((function(e,t){var r=e.className,n=e.menuContainerClassName,a=e.menuListClassName,i=e.menuItemClassName,o=e.menuMobileHeaderClassName,l=e.menuButtonClassName,s=e.menuLabelClassName,c=e.skipButtonFocus,u=void 0!==c&&c,d=e.sheetClassName,p=e.sheetWrapperClassName,f=e.id,h=e.label,b=void 0===h?"Label":h,w=e.name,x=e.errorText,k=e.errorIconAriaLabel,_=void 0===k?"Error":k,S=e.helperText,E=e.value,C=e.options,$=void 0===C?[]:C,A=e.ariaLabelledby,T=e.renderButtonContent,O=e.onChange,P=e.onClose,z=e.onClick,F=e.onKeyDown,N=e.isLoadingOptions,R=e.showUnselect,I=g(e,hb),L="dropdownMenuButton_".concat(f||b.replace(/\s/g,"")),M=(0,y.useRef)(),D=null!=t?t:M,H="dropdownMenuSelect_".concat(f||b.replace(/\s/g,"")),B=ro((0,y.useState)(!1),2),j=B[0],W=B[1],V=ro((0,y.useState)(!!E),2),U=V[0],q=V[1],G=ro((0,y.useState)(!1),2),K=G[0],Y=G[1];(0,y.useEffect)((function(){var e,t=yb(D),r=t&&(null===(e=window)||void 0===e?void 0:e.getComputedStyle(t));Y("rtl"===(null==r?void 0:r.direction))}));var X=function(e){W((function(e){return!e})),q(!e.detail)},Q=function(e){W(!1);var t,r=yb(D);if(r&&(u?r.blur():r.focus()),O){var n=$.length>0&&e>=0;t=n?$[e].value||$[e].label:null,R&&(t=n?$[e].value:null),O({target:{selectedIndex:e,value:t}})}},J=S?"dropdown_helperText":x&&"dropdown_errorText",ee="",te="",ne=-1;if(E){for(var ae=0;ae<$.length;ae++)if($[ae].value===E){ee=T?T():$[ae].label,te=$[ae].value,ne=ae;break}}else!E&&$.length>0&&""===$[0].value&&(ne=0);var ie=j?za:Oa,oe=v().createElement(ie,{size:"sm",className:cb,color:"BackgroundMediumContrast","aria-hidden":"true","data-ppui":"true"}),le=A?"".concat(L,"-label ").concat(A):"".concat(L,"-label");ee&&(le="".concat(le," ").concat(L));var se=gb(gb(gb({},J&&{"aria-describedby":J}),{"aria-labelledby":le}),I),ce=Z(ob,j&&ib,x&&lb),ue=Z(ab,(j||ee)&&sb);return v().createElement("div",{className:Z(nb,r),id:f,"data-ppui-info":"dropdown-menu_4.2.5__8.12.0"},v().createElement("select",{className:fb,"aria-hidden":"true",id:H,name:w,tabIndex:-1,onChange:function(e){return Q(e.target.selectedIndex-1)},value:te,autoComplete:I.autoComplete,"data-ppui":"true"},v().createElement("option",{disabled:!0,value:"","data-ppui":"true"},b),$.length>0&&$.map((function(e,t){return v().createElement("option",{key:t,value:e.value?e.value:e.label,"data-ppui":"true"},e.label)}))),v().createElement("button",m({className:Z(ce,l),type:"button",id:L,ref:D,"aria-haspopup":"listbox","aria-expanded":j,onClick:function(e){((null==$?void 0:$.length)||N)&&(X(e),z&&z(e))},onKeyDown:function(e){var t=new re(e.key||e.keyCode);!j&&(t.IS_ARROW_UP||t.IS_ARROW_DOWN)&&function(e){return!(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)}(e)&&(e.preventDefault(),X(e)),F&&F(e)}},se,{"data-ppui":"true"}),oe,v().createElement("span",{"data-ppui":"true"},ee)),v().createElement("label",{id:"".concat(L,"-label"),htmlFor:L,className:Z(ue,s),"data-ppui":"true"},v().createElement("span",{"data-ppui":"true"},b)),v().createElement(ap,{initialItemFocus:U,isOpen:j,mobileTitle:b,onClose:function(e){W(!1),P&&P(e)},onSelection:Q,selectedIndex:ne,triggerElementRef:D,options:$,className:a,containerClassName:n,itemClassName:i,mobileHeaderClassName:o,sheetClassName:d,sheetWrapperClassName:p,rtl:K,returnFocusToTrigger:!u,isLoadingOptions:N,searchEnabled:!0,"data-ppui":"true"}),function(e,t,r,n){if(e){var a={className:pb,role:"img","aria-label":t},i=v().createElement(Na,m({size:"sm"},a,{"data-ppui":"true"}));return v().createElement("div",{className:db,id:n,role:"alert","data-ppui":"true"},i,v().createElement("span",{"data-ppui":"true"},e))}return r?v().createElement("div",{className:ub,id:n,"data-ppui":"true"},v().createElement("span",{"data-ppui":"true"},r)):null}(x,_,S,J))}));b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-error-view");const bb=(0,w.style)({display:"flex",alignItems:"center",justifyContent:"center",height:x.size.media.sm},"error-view_base"),wb=(0,w.style)({display:"flex",flexDirection:"column"},"error-view_wrapper"),xb=(0,w.style)({position:"fixed",inset:0,backgroundColor:x.color.background.surface,zIndex:G},"error-view_fullscreen-base"),kb=(0,w.style)({display:"flex",flexDirection:"column",alignItems:"center",position:"absolute",top:"33%",width:"100%",padding:`0 ${x.space[400]}`},"error-view_fullscreen-wrapper"),_b=(0,w.style)([ir,{marginBottom:x.space[200],textAlign:"center"}],"error-view_title"),Sb=(0,w.style)({textAlign:"center",marginBottom:x.space[200]},"error-view_subtitle"),Eb=(0,w.style)({display:"flex",flexDirection:"column",alignItems:"center"},"error-view_button-wrap"),Cb=(0,w.style)({margin:`${x.space[100]} 0`},"error-view_primary-button");b.endFileScope();var $b=function(e){var t,r=e.title,n=void 0===r?"title":r,a=e.subTitle,i=void 0===a?"sub title":a,o=e.primaryButtonOptions,l=e.tertiaryButtonOptions,s=e.fullScreen,c=void 0!==s&&s;(0,y.useLayoutEffect)((function(){return c&&B()&&(document.body.style.overflow="hidden"),function(){c&&B()&&(document.body.style.overflow="auto")}}),[]);var u=bb,d=wb;return c&&(u=xb,d=kb),v().createElement("section",{className:u,"data-ppui-info":"error-view_2.1.3__8.12.0","aria-live":"polite"},v().createElement("div",{className:d,"data-ppui":"true"},v().createElement(en,{size:"sm",className:_b,"data-ppui":"true"},n),v().createElement(rn,{clampAtLine:3,className:Sb,"data-ppui":"true"},i),v().createElement("div",{className:Eb,"data-ppui":"true"},v().createElement(Zf,{onClick:null==o?void 0:o.onClick,className:Z(Cb,null==o?void 0:o.className),"data-ppui":"true"},null!==(t=null==o?void 0:o.title)&&void 0!==t?t:"title"),l&&v().createElement(Zf,m({tertiary:!0},l,{"data-ppui":"true"}),l.title))))};b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-facet");const Ab=(0,w.keyframes)({"0%":{opacity:0},"100%":{opacity:1}},"button_fade_in"),Tb=(0,w.style)({position:"relative",textAlign:"center",backgroundColor:x.color.background.surface,borderRadius:x.border.radius.jumbo},"facet_container"),Ob=(0,w.style)([{width:"100%",cursor:"pointer",display:"inline-grid",backgroundColor:x.color.background.surface,borderRadius:x.border.radius.jumbo}],"facet_label"),Pb=(0,w.style)([ar,Ie,{justifyContent:"center",alignItems:"center",cursor:"pointer",wordWrap:"break-word",color:x.color.background.highContrast}],"facet_label_inner_span"),zb=(0,w.style)({color:"transparent",pointerEvents:"none",":hover":{color:"transparent"},":active":{color:"transparent"},":visited":{color:"transparent"}},"facet_processing_state"),Fb={sm:(0,w.style)({minWidth:"2.75rem",maxWidth:"8rem"},"facet_sm_container"),lg:(0,w.style)({minWidth:"4rem",maxWidth:"10rem"},"facet_lg_container")},Nb={sm:(0,w.style)({padding:`${x.space[100]} ${x.space[150]}`,height:x.space[400]},"facet_size_sm"),lg:(0,w.style)({padding:`${x.space[150]} ${x.space[300]}`,height:x.space[500]},"facet_size_lg")},Rb=(0,w.style)({opacity:0,position:"absolute"},"facet_control"),Ib=(0,w.style)({position:"absolute",inset:0,borderRadius:"inherit",textAlign:"center",opacity:0,animation:`${Ab} ${x.motion.duration.hover} ease-in forwards`,display:"flex",justifyContent:"center",alignItems:"center",paddingRight:0},"facet_state_overlay"),Lb=(0,w.style)({color:x.color.background.highContrast},"facet_loading_spinner");(0,w.globalStyle)(`${Tb}:has(${Rb}:focus)`,{...Fn}),(0,w.globalStyle)(`${Rb}:hover ~ label`,{outline:`${x.border.thickness.emphasis} solid ${x.color.unselected.mainHover}`,outlineOffset:`calc(${x.border.thickness.emphasis}*-1)`}),(0,w.globalStyle)(`${Rb}:checked ~ label`,{outline:`${x.border.thickness.emphasis} solid ${x.color.selected.main}`,color:x.color.selected.main,outlineOffset:`calc(${x.border.thickness.emphasis}*-1)`}),b.endFileScope();var Mb=["state","selected","screenReaderText","size","className","inputClassName","labelClassName","id","label","onChange","onClick","value"];(0,y.forwardRef)((function(e,t){var r=e.state,n=void 0===r?"initial":r,a=e.selected,i=e.screenReaderText,o=e.size,l=e.className,s=e.inputClassName,c=e.labelClassName,u=e.id,d=e.label,p=e.onChange,f=e.onClick,h=e.value,y=g(e,Mb),b=null!=u?u:te("Facets_"),w={};"processing"===n&&(w.as="span","sm"===o&&(w.size="xs"));var x={defaultChecked:!!a};p&&(x.onChange=p),f&&(x.onClick=f),x.disabled=n&&"initial"!==n;var k=x.disabled?v().createElement("span",{className:Ib,"data-ppui":"true"},"processing"===n&&v().createElement(vl,m({},w,{className:Lb,"data-ppui":"true"}))):null,_=i?v().createElement("span",{role:"status",className:se,"data-ppui":"true"},i):null,S=["sm","lg"].includes(o)?o:"lg",E=Z(Ob,Nb[S],c),C=Z(Tb,Fb[S],l),$=Z(Pb,"processing"===n&&zb);return v().createElement("div",{className:C,"data-ppui-info":"facet_1.2.2__8.12.0"},v().createElement("input",m({className:Z(Rb,s),id:b,type:"checkbox","aria-label":d,value:h,ref:t},x,y,{"data-ppui":"true"})),k,v().createElement("label",{className:E,htmlFor:b,"data-ppui":"true"},v().createElement("span",{className:$,"data-ppui":"true"},d)),_)})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-focus-flow");const Db=(e,t="focus_flow")=>`${t}_${e}`,Hb="44rem",Bb=`calc(2 * ${x.space[300]})`;(0,w.style)({position:"fixed",inset:"0",backgroundColor:x.color.background.surface,zIndex:G},Db("base")),(0,w.style)({height:"100%",margin:"0 auto",display:"flex",flexDirection:"column"},Db("container")),(0,w.style)([$e,{overflow:"auto",position:"relative",borderRadius:"inherit",padding:`${x.space[200]} 0`,margin:"0 auto",width:"36rem",flexBasis:"100%","@media":{[`screen and (max-width: ${Hb})`]:{width:"100%",padding:x.space[200]}}}],Db("content")),(0,w.style)({width:"100%"},Db("header")),(0,w.style)({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:x.space[200],position:"relative",flex:"0 0 auto",zIndex:"1",width:Hb,margin:"0 auto",padding:`${x.space[150]} 0`,"@media":{[`screen and (max-width: ${Hb})`]:{width:"100%",padding:`${x.space[100]} ${x.space[200]}`}}},Db("header_content")),(0,w.style)({flex:`0 0 ${x.size.icon.lg}`},Db("header_action")),(0,w.style)([$e,{flex:`1 1 ${Bb}`,margin:`${x.space[100]} 0`,textAlign:"center"}],Db("header_title")),(0,w.style)({flex:`0 0 ${x.size.icon.lg}`},Db("header_close")),(0,w.style)({display:"flex",flex:`1 1 ${Bb}`,justifyContent:"center",marginTop:`${x.space[100]}`,width:`${x.size.icon.md}`,height:`${x.size.icon.md}`},Db("header_logo")),(0,w.style)([go],Db("header_scrolled")),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-hero-currency");const jb=44/64,Wb=1/jb,Vb={position:"absolute",content:"",top:x.space[50],bottom:x.space[50]},Ub=(0,w.style)({":after":{borderRight:`${x.border.thickness.emphasis} solid`,borderRightColor:"transparent"},selectors:{"[dir='rtl'] &:before":{borderRight:`${x.border.thickness.emphasis} solid`,borderRightColor:"transparent"}}},"hero_currency-border_right_color"),qb=((0,w.style)(Vb,"hero_currency-cursor_position"),(0,w.keyframes)({"50%":{borderRightColor:"transparent"}},"hero_currency-blinker")),Gb={borderRight:`${x.border.thickness.emphasis} solid`,borderRightColor:x.color.background.highContrast,animation:`${qb} 1s step-start infinite`},Kb=((0,w.style)(Gb,"hero_currency-animateCursor"),(0,w.style)({borderBottom:`${x.border.thickness.normal} solid transperent`},"hero_currency-base")),Yb=(0,w.style)({textAlign:"center"},"hero_currency-center_aligned"),Xb=(0,w.style)({marginBottom:`calc(${x.space[300]} + ${x.space[75]})`},"hero_currency-error_text_spacing"),Zb=(0,w.style)({display:"inline-flex",fontSize:x.space[800],lineHeight:`calc(${x.space[800]} + ${x.space[50]})`,transformOrigin:"left",scale:jb,pointerEvents:"none",transition:"scale 200ms ease-in-out",selectors:{"[dir='rtl'] &":{transformOrigin:"right"}}},"hero_currency-view"),Qb=(0,w.style)({display:"inline-block"},"hero_currency-currency_part"),Jb=(0,w.style)({selectors:{[`${Kb}:hover &`]:{scale:.75}}},"hero_currency-no_focus"),ew=(0,w.style)({transformOrigin:"center",selectors:{"[dir='rtl'] &":{transformOrigin:"center"}}},"hero_currency-center_view"),tw=(0,w.style)({height:0},"hero_currency-text_input");(0,w.globalStyle)(`${tw} > div:first-of-type`,{opacity:0});const rw=(0,w.style)({scale:1},"hero_currency-focused_view"),nw=(0,w.style)({":after":Gb,selectors:{"[dir='rtl'] &:before":Gb}},"hero_currency-focus_enter"),aw=(0,w.style)({color:x.color.background.mediumContrast,fontWeight:"normal"},"hero_currency-trailing_zeros_focused"),iw=(0,w.style)({color:x.color.background.highContrast},"hero_currency-trailing_zeros_focused_default"),ow=(0,w.style)({color:x.color.background.highContrast,selectors:{"[dir='rtl'] &":{opacity:1}}},"hero_currency-symbol"),lw=(0,w.style)({color:x.color.background.highContrast,fontWeight:"normal",position:"relative",":after":Vb,selectors:{"[dir='rtl'] &":{order:3,direction:"ltr"},"[dir='rtl'] &:after":{content:"none"},"[dir='rtl'] &:before":Vb}},"hero_currency-entered"),sw=(0,w.style)({color:x.color.background.highContrast,selectors:{"[dir='rtl'] &":{order:2}}},"hero_currency-trailing_zeros_default"),cw=(0,w.style)({marginInlineStart:x.space[100],alignSelf:"center",pointerEvents:"auto",scale:Wb,transformOrigin:"left",selectors:{":focus &:after":{boxShadow:"none",border:"none"},"[dir='rtl'] &":{transformOrigin:"right",order:4}}},"hero_currency-edit_icon");b.endFileScope();var uw=["name","id","maskOptions","currencyType","prefix","onAccept","onFocus","onBlur","onKeyDown","value","className","inputClassName","label","showEditIcon","align"];function dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dw(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,y.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"heroCurrency":r,a=e.id,i=void 0===a?n:a,o=e.maskOptions,l=e.currencyType,s=e.prefix,c=e.onAccept,u=e.onFocus,d=void 0===u?null:u,p=e.onBlur,f=void 0===p?null:p,h=e.onKeyDown,b=void 0===h?null:h,w=e.value,x=void 0===w?"":w;e.className;var k=e.inputClassName,_=e.label,S=void 0===_?"Enter amount":_,E=e.showEditIcon,C=e.align,$=void 0===C?"left":C,A=g(e,uw);c||(c=function(){});var T=(0,y.useRef)(),O=ro((0,y.useState)(""),2),P=O[0],z=O[1],F=ro((0,y.useState)(""),2),N=F[0],R=F[1],I=t||T,L=(0,y.useContext)(Wn),M=(0,y.useMemo)((function(){return qn(L,o,l)}),[L,o,l]),D=M.currencyMaskOptions,H=M.intlCurrencyPrefix,B=M.intlCurrencySuffix;function j(){if(null==I?void 0:I.current){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",r=arguments.length>2?arguments[2]:void 0;if(!e)return{entered:"",trailingZeros:U?"":"0"};e.charAt(0)===t&&(e="0".concat(e));var n=e.split(t);return{entered:e,trailingZeros:n.length>1?new Array(r+1).join("0").substring(n[1].length,r):""}}(I.current.value,D.radix,D.scale);z(e.entered),R(e.trailingZeros)}}(0,y.useEffect)((function(){j()}),[x]);var W=s||H||B||"$",V=ro((0,y.useState)(!1),2),U=V[0],q=V[1],G=Z(Kb,"center"===$&&Yb,(A.errorText||A.helperText||A.successText)&&Xb),K=Z(Zb,U&&rw,!U&&Jb,"center"===$&&ew),Y=Z(lw,!U&&Ub,U&&nw,Qb),X=Z(!U&&sw,U&&aw,U&&!x&&iw,Qb),Q=pw(pw({},D),{},{normalizeZeros:!1,padFractionalZeros:!1}),J=0===(null==D?void 0:D.scale)?"numeric":"decimal";return v().createElement("div",{className:G,id:i,"data-ppui-info":"hero-currency_3.2.7__8.12.0"},v().createElement(ry,m({name:n,label:S,inputMode:J,value:x,maskOptions:Q,inputClassName:k,className:tw,onFocus:function(e){q(!0);var t=e.target,r=t.value;r&&setTimeout((function(){return t.setSelectionRange(r.length,r.length)}),100),d&&d(e)},onBlur:function(e){if(q(!1),""!==P){var t=P.replaceAll(D.thousandsSeparator,"").replace(D.radix,".");c(null==P?void 0:P.concat(N),null==t?void 0:t.concat(N),null==t?void 0:t.concat(N))}f&&f(e)},onAccept:c,onKeyDown:function(e){new re(e.key||e.keyCode).IS_SIDE_NAVIGATION&&(e.preventDefault(),e.stopPropagation()),b&&b(e)},onInput:j,prefix:W,autoComplete:"off",ref:I},A,{"data-ppui":"true"})),v().createElement("div",{className:K,"aria-hidden":"true","data-ppui":"true"},v().createElement("span",{className:Z(ow,Qb),"data-ppui":"true"},W),v().createElement("span",{className:Y,"data-ppui":"true"},P),v().createElement("span",{className:X,"data-ppui":"true"},N),!U&&E&&x&&v().createElement(Sd,{buttonType:"tertiary",svgIconComponent:Ia,className:cw,onClick:function(){(null==I?void 0:I.current)&&I.current.focus()},tabIndex:"-1","data-ppui":"true"})))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-horizontal-scroll");const{ppuiEaseInOut:fw}=n?.variables,hw=(0,w.style)({position:"relative"},"horizontal_scroll_base"),mw=(0,w.style)({display:"flex",flexDirection:"row",listStyle:"none",margin:0,overflowY:"-moz-hidden-unscrollable",overflowX:"auto",padding:`${x.space[200]} 0`},"horizontal_scroll_item_list");(0,w.globalStyle)(`${mw} > *`,{flex:"0 0 auto"});const gw=(0,w.style)({margin:`0 ${x.space[100]}`,"@media":{[`(max-width:${$})`]:{margin:`0 ${x.space[75]}`}}},"horizontal_scroll_item"),yw=(0,w.style)({position:"absolute",top:0,display:"flex",alignItems:"center",height:`calc(100% - ${x.size.indicator.lg} - ${x.space[200]})`,opacity:0,transition:`opacity 0.3s ${fw}`,pointerEvents:"none",selectors:{[`${hw}:hover &`]:{opacity:1}}},"horizontal_scroll_button_nav");(0,w.globalStyle)(`${yw} > button`,{pointerEvents:"all",...fo}),(0,w.globalStyle)(`${yw} > button:hover`,{...yo}),(0,w.globalStyle)(`${yw}b> button:focus:after`,{display:"none"}),(0,w.style)([yw,{left:x.space[200],selectors:{"[dir='rtl'] &":{left:"unset",right:x.space[200]}}}],"horizontal_scroll_button_previous"),(0,w.style)([yw,{right:x.space[200],selectors:{"[dir='rtl'] &":{left:x.space[200],right:"unset"}}}],"horizontal_scroll_button_next"),(0,w.style)({overflowX:"visible"},"horizontal_scroll_item_list_desktop"),(0,w.style)({overflowX:"hidden"},"horizontal_scroll_page_container"),(0,w.style)({position:"relative",left:0,transition:`left 1s ${fw}`,selectors:{"[dir='rtl'] &":{right:0,left:"unset",transition:`right 1s ${fw}`}}},"horizontal_scroll_page"),(0,w.style)({paddingBottom:x.space[200],textAlign:"center",lineHeight:x.size.indicator.lg},"horizontal_scroll_dots"),(0,w.style)({margin:`0 ${x.space[100]}`,height:x.size.indicator.lg,width:x.size.indicator.lg,borderRadius:x.border.radius.interactive,backgroundColor:x.color.unselected.main,display:"inline-block"},"horizontal_scroll_dot"),(0,w.style)({backgroundColor:x.color.selected.main},"horizontal_scroll_dot_selected"),b.endFileScope();var vw=x.space[200],bw=x.space[150],ww=x.space[200],xw=function(e){var t=e.items,r=e.numOfVisibleItems,n=e.hasFixedSizeItems,a=e.isMobileBreakpoint;if(n)return{flexBasis:"auto"};if(a){var i=t.length===r?null:"calc(".concat(vw," + ").concat(bw," / 2)"),o=i?"calc(100% - ".concat(i,")"):"100%";return{flexBasis:"calc(".concat(o," / ").concat(r," - ").concat(bw,")")}}return{flexBasis:"calc(100% / ".concat(r," - ").concat(ww,")")}},kw=["items","hasFixedSizeItems","isMobileBreakpoint","itemClassName","numOfVisibleItems","renderItem"];(0,y.forwardRef)((function(e,t){var r=e.items;e.hasFixedSizeItems,e.isMobileBreakpoint;var n=e.itemClassName;e.numOfVisibleItems;var a=e.renderItem,i=g(e,kw),o=function(e){e.target.scrollIntoView({block:"nearest"})},l=r.map((function(t,i){var l=null==xw?void 0:xw(e);return v().createElement("li",{"aria-label":"".concat(i+1,"-").concat(r.length),key:t.id,"data-item-id":t.id,style:l,className:Z(n,gw),"data-ppui":"true"},a(t,{tabIndex:"0",role:"button",onFocus:o}))}));return v().createElement("ul",m({className:mw,ref:t},i,{"data-ppui":"true"}),l)})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-legal-consent");const _w=`calc(${x.size.circle.xs} + ${x.space[150]} + ${x.space[25]})`,Sw=(0,w.style)({position:"relative",textAlign:"start",marginBottom:0},"checkbox_base"),Ew=(0,w.style)([$e,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"block",paddingInlineStart:_w,position:"relative",textAlign:"start",WebkitTapHighlightColor:"transparent"}],"checkbox_label");(0,w.globalStyle)(`${Ew} span:first-of-type`,{insetInlineStart:0});const Cw=(0,w.style)({borderRadius:x.border.radius.xs,border:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,boxSizing:"border-box",height:x.size.circle.xs,left:0,position:"absolute",width:x.size.circle.xs,lineHeight:1.3,textAlign:"center",backgroundColor:x.color.background.surface,display:"flex",justifyContent:"center",alignItems:"center",top:0},"checkbox_checkmark_container"),$w=((0,w.style)([Cw,{top:"auto"}],"checkbox_checkmark_container_decoration"),(0,w.style)({fontSize:x.size.icon.xs,flexShrink:"0"},"checkbox_check_icon")),Aw=(0,w.style)({cursor:"pointer",opacity:0,position:"absolute"},"checkbox_input");(0,w.globalStyle)(`${Aw}:checked + label > span > span:first-of-type`,{borderColor:x.color.selected.main,backgroundColor:x.color.selected.main,color:x.color.selected.contrast,borderRadius:x.border.radius.xs}),(0,w.globalStyle)(`${Aw}:checked + label > span > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,w.globalStyle)(`${Aw}:not(:checked) + label > span > span:first-of-type > span:first-of-type`,{display:"none"}),(0,w.globalStyle)(`${Aw}:focus + label > span > span:first-of-type`,Fn),(0,w.globalStyle)(`${Aw}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${x.border.thickness.normal} * -1)`});const Tw=(0,w.style)({},"checkbox_error_state");(0,w.globalStyle)(`${Tw}:checked + label > span > span:first-of-type`,{borderWidth:x.border.thickness.emphasis,borderColor:x.color.error.main}),(0,w.globalStyle)(`${Tw}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${x.border.thickness.emphasis} * -1)`});const Ow=(0,w.style)({borderWidth:x.border.thickness.emphasis,borderColor:x.color.error.main,lineHeight:1.1},"error_checkbox"),Pw=(0,w.style)({...Ne,color:x.color.background.mediumContrast},"captionText"),zw=(0,w.style)([Pw,{display:"flex",alignItems:"center",margin:0}],"error_text"),Fw=(0,w.style)({color:x.color.error.main,marginInlineEnd:x.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_error_icon"),Nw=(0,w.style)({paddingBottom:x.space[150]},"checkbox_label_error"),Rw=(0,w.style)({display:"flex",alignItems:"center",minHeight:"1.5rem",margin:0},"checkbox_items"),Iw=(0,w.style)({marginBottom:x.space[150]},"checkbox_legal_consent_label");(0,w.globalStyle)(`${Iw} > span:first-of-type`,{display:"flex"});const Lw=(0,w.style)([Pw],"checkbox_legal_consent_text"),Mw=(0,w.style)([Pw,{paddingInlineStart:_w,margin:0}],"checkbox_legal_consent_supporting_text_wrapper"),Dw=(0,w.style)({paddingInlineStart:0},"checkbox_legal_consent_supporting_text_wrapper_when_no_label"),Hw=(0,w.style)({padding:`${x.space[150]} 0 0 0`,margin:0,listStyleType:"none"},"checkbox_legal_consent_links_wrapper"),Bw=(0,w.style)({paddingTop:0},"checkbox_legal_consent_links_wrapper_when_no_label"),jw=(0,w.style)({display:"flex",flexDirection:"column",rowGap:x.space[300],alignItems:"flex-start"},"checkbox_legal_consent_group_spacing");b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-links");const Ww=(0,w.style)([De,{textDecoration:x.typography.linkLg.underline?"underline":"none"}],"link-lg-text"),Vw=(0,w.style)([Be,{textDecoration:x.typography.linkSm.underline?"underline":"none"}],"link-sm-text"),Uw=(0,w.style)({borderRadius:x.border.radius.xs},"link_base"),qw=(0,w.style)({position:"relative",paddingInlineStart:`calc(${x.size.icon.sm} + ${x.space[100]})`},"link_base_icon"),Gw=(0,w.style)({paddingInlineStart:`calc(${x.size.icon.xs} + ${x.space[100]})`},"link_base_icon_sm"),Kw=(0,w.style)({color:(0,w.fallbackVar)(F.main,x.color.link.main),":focus":{...Fn,color:(0,w.fallbackVar)(F.main,x.color.link.main),cursor:"pointer"},":hover":{cursor:"pointer",textDecoration:"underline",color:(0,w.fallbackVar)(F.hoverMain,x.color.link.mainHover),backgroundColor:(0,w.fallbackVar)(F.hoverBack,"transparent")},":active":{textDecoration:"underline",color:(0,w.fallbackVar)(F.activeMain,x.color.link.mainActive),backgroundColor:(0,w.fallbackVar)(F.activeBack,"transparent")}},"link_primary"),Yw=(0,w.style)({textDecoration:"underline",color:(0,w.fallbackVar)(F.main,x.color.link.alt),":focus":{color:(0,w.fallbackVar)(F.main,x.color.link.altHover)},":hover":{color:(0,w.fallbackVar)(F.hoverMain,x.color.link.altHover),backgroundColor:(0,w.fallbackVar)(F.hoverBack,"transparent")},":active":{color:(0,w.fallbackVar)(F.activeMain,x.color.link.altActive),backgroundColor:(0,w.fallbackVar)(F.activeBack,"transparent")}},"link_secondary"),Xw=(0,w.style)({color:x.color.link.contrast,textDecoration:"underline",":visited":{color:(0,w.fallbackVar)(F.activeMain,x.color.link.contrast)},":focus":{color:(0,w.fallbackVar)(F.activeMain,x.color.link.contrast)},":hover":{color:(0,w.fallbackVar)(F.hoverMain,x.color.link.contrastHover)},":active":{color:(0,w.fallbackVar)(F.activeMain,x.color.link.contrastActive),textDecoration:"underline"}},"link_inverse"),Zw=(0,w.style)([we,{height:x.space[300]}],"link_shimmer"),Qw=(0,w.style)({position:"absolute",inset:0,display:"flex",alignItems:"center"},"link_left_icon");b.endFileScope();var Jw,ex,tx=["inverse","secondary","size","primaryAlt","className","leftIcon","children","as","isLoading"],rx=new Set(["","paypal.com","paypal.cn","gopay.cn"]),nx=/\bnoreferrer\b/,ax=/\bnoopener\b/,ix=(0,y.forwardRef)((function(e,t){var r=e.inverse,n=e.secondary,a=e.size,i=e.primaryAlt,o=e.className,l=e.leftIcon,c=e.children,u=e.as,d=void 0===u?"a":u,p=e.isLoading,f=g(e,tx);if(p)return v().createElement(_e,m({className:Z(Zw,o),hasStyleDefaults:!1,isInverse:r},f,{"data-ppui":"true"}),c);var h,y=f.target,b=f.rel,w=void 0===b?null:b,x=f.href,k=void 0===x?"/":x;"a"===d&&(null==y?void 0:y.trim())&&((null===(h=w)||void 0===h?void 0:h.trim())?function(e,t){nx.test(t)&&ax.test(t)||function(e){try{var t=new URL(e);return rx.has(t.hostname)}catch(t){"isInternalUrl('".concat(e,"'}) failed to parse: ").concat(t)}return!1}(e)||"WARNING! '".concat(e,'\'\nOpening 3rd party URL in a new window/tab without setting rel to "noreferrer noopener" is potentially unsafe.')}(k,w):w="noreferrer noopener");var _=v().createElement("span",{className:Qw,"data-ppui":"true"},l),S=r?"inverse":i||n?"secondary":"primary",E=Z(Uw,s[S],l&&qw,l&&"sm"===a&&Gw,"sm"===a?Vw:Ww,o);return v().createElement(d,m({className:E,ref:t,"data-ppui-info":"links_5.1.2__8.12.0",target:y,rel:w},f),l&&_,c)})),ox=["id","name","label","links","onChange","errorText","errorIconAriaLabel","className","children"];function lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lx(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,y.forwardRef)((function(e,t){var r,n,a,i,o=e.id,l=e.name,s=e.label,c=e.links,u=void 0===c?[]:c,d=e.onChange,p=e.errorText,f=e.errorIconAriaLabel,h=void 0===f?"Error":f,y=e.className,b=e.children,w=g(e,ox),x=u.map((function(e,t){var r=v().createElement(ix,sx(sx({},e),{},{size:"sm"}));return v().createElement("li",{key:t,"data-ppui":"true"},r)})),k=null!=o?o:te("LegalConsent_"),_=Z(Sw,p&&Tw,y),S=Z(Mw,s&&p&&Nw,!(null==s?void 0:s.length)&&Dw),E=Z(jw,Hw,!(null==s?void 0:s.length)&&Bw),C="p";return x.length?(r=v().createElement("ul",{className:E,"data-ppui":"true"},x),C="div"):r=b,v().createElement("div",{className:_,"data-ppui-info":"legal-consent_3.1.2__8.12.0"},s&&v().createElement(v().Fragment,null,v().createElement("input",m({className:Z(Aw,p&&Tw),type:"checkbox",id:k,name:l,ref:t,tabIndex:0,onChange:function(e){d&&(e.stopPropagation(),d(e))}},w,p&&{"aria-describedby":l,"aria-invalid":!0},{"data-ppui":"true"})),(n=Z(Cw,p&&Ow),a=v().createElement("span",{"data-ppui":"true"},v().createElement("span",{className:n,"data-ppui":"true"},v().createElement(Aa,{className:$w,size:"xs","data-ppui":"true"})),v().createElement(an,{className:Lw,as:"span","data-ppui":"true"},s)),i=Z(Ew,Rw,Iw),v().createElement("label",{className:i,htmlFor:k,"data-ppui":"true"},a))),v().createElement(C,{className:S,"data-ppui":"true"},r),s&&p&&v().createElement("p",{className:zw,id:l,"data-ppui":"true"},v().createElement(Na,{className:Fw,size:"sm",role:"img","aria-label":h,"data-ppui":"true"}),p))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-linear-progress-meter"),(0,w.style)({padding:`${x.space[50]} ${x.space[300]} ${x.space[300]} ${x.space[300]}`,transition:`value ${x.motion.duration.arrive}`},"progress-meter_base"),(0,w.style)({padding:0},"progress_meter-no_padding"),(0,w.style)({verticalAlign:"bottom",width:"100%",backgroundClip:"content-box",WebkitBackgroundClip:"content-box",border:`${x.border.thickness.normal} solid transparent`,borderRadius:x.border.radius.sm,height:x.size.indicator.lg,marginBottom:x.space[100],appearance:"none",selectors:{"&::-webkit-progress-inner-element":{marginTop:`calc(${x.border.thickness.normal} * -1)`,borderRadius:x.border.radius.sm,padding:0,height:x.size.indicator.lg},"&::-webkit-progress-value":{borderRadius:x.border.radius.sm,height:x.size.indicator.md},"&::-webkit-progress-bar":{borderRadius:x.border.radius.sm,height:x.size.indicator.md,backgroundColor:x.color.background.alt},"&::-moz-progress-bar":{borderRadius:x.border.radius.sm,padding:0,height:x.size.indicator.md}}},"progress_tag"),(0,w.style)({selectors:{"&::-moz-progress-bar":{minWidth:x.border.radius.md},"&::-webkit-progress-value":{minWidth:x.border.radius.md},"&::-webkit-progress-bar":{minWidth:x.border.radius.md}}},"progress_value_min_width"),(0,w.style)([$e],"progress_meter-label"),(0,w.style)({letterSpacing:"normal",marginInlineEnd:x.space[50]},"progress_meter-steps"),(0,w.style)({color:x.color.background.mediumContrast},"progress_meter-label_title"),(0,w.style)({},"progress_meter-size_sm"),(0,w.style)([Fe],"progress_meter-size_sm_label"),(0,w.style)([Fe],"progress_meter-size_sm_steps"),(0,w.style)({...Ne,color:x.color.background.mediumContrast},"progress_meter-size_sm_title"),(0,w.style)({color:x.color.background.surface},"progress_meter-inverse_label"),(0,w.style)({color:x.color.system.contrast},"progress_meter-size_sm_inverse_label_steps"),(0,w.style)({color:x.color.background.surface},"progress_meter-size_sm_inverse_label_title"),(0,w.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:x.color.secondary.main},"&::-webkit-progress-value":{backgroundColor:x.color.secondary.main}}},"progress-meter_color_accent1"),(0,w.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:x.color.error.main},"&::-webkit-progress-value":{backgroundColor:x.color.error.main}}},"progress-meter_color_accent2"),(0,w.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:x.color.success.main},"&::-webkit-progress-value":{backgroundColor:x.color.success.main}}},"progress-meter_color_accent3"),(0,w.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:x.color.primary.main},"&::-webkit-progress-value":{backgroundColor:x.color.primary.main}}},"progress-meter_color_accent4"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-overflow-menu"),(0,w.style)({position:"relative",display:"inline-block",maxHeight:"16rem"},"overflow_menu_base"),(0,w.style)({selectors:{"[aria-expanded='true']&":{background:`${x.color.background.surfaceActive}`}}},"overflow_menu_btn_active"),(0,w.style)([fo,{right:"0",margin:"0",position:"fixed",zIndex:"1060",listStyle:"none",borderRadius:`${x.border.radius.lg}`,backgroundColor:`${x.color.background.surface}`,display:"none",padding:`${x.space[100]} 0`,overflow:"auto",width:"fit-content",selectors:{"[aria-hidden = 'false']&":{display:"inline-block"},"[dir='rtl'] & ":{right:"auto",left:x.space[150]}}}],"overflow_menu_list"),(0,w.style)([Ae,{whiteSpace:"nowrap",display:"block",textAlign:"justify",textOverflow:"ellipsis",position:"relative",textDecoration:"none",padding:`${x.space[150]} ${x.space[200]}`,":hover":{backgroundColor:`${x.color.background.surfaceHover}`,cursor:"pointer",outline:0},":focus":{boxShadow:"none",outline:0,borderRadius:0}}],"overflow_menu_list_item"),(0,w.style)({":focus":Rn},"overflow_menu_keyboard_active"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-panel-slider"),Jw=x.motion.duration.arrive,(ex=Y(Jw,"ms")).unit,ex.value,cn.ppuiEaseInOut,(0,w.style)({position:"relative",minHeight:"100%",whiteSpace:"nowrap",padding:`0 ${x.space[150]}`,overflowX:"hidden"},"panel-slider-container"),(0,w.style)({display:"inline-block",width:"100%",padding:`${x.space[200]} ${x.space[150]}`,height:"100%",whiteSpace:"normal"},"panel-slider-panel"),b.endFileScope();var cx=["as","isHidden","hideToggleLabel","onToggleHide","value"];(0,y.forwardRef)((function(e,t){var r=e.as,n=e.isHidden,a=void 0===n||n,i=e.hideToggleLabel,o=e.onToggleHide,l=e.value,s=g(e,cx),c=(0,y.useRef)(),u=t||c;(0,y.useEffect)((function(){var e=u.current;e&&(null==l?void 0:l.length)&&requestAnimationFrame((function(){e.setSelectionRange(l.length,l.length)}))}),[a]);var d=a?{type:"password"}:{},p=i||(a?"show":"hide");return v().createElement(r||Zi,m({ref:u,rightIcon:v().createElement(Sd,{buttonType:"tertiary",svgIconComponent:a?Ba:La,onClick:function(){o&&o(!a)},onMouseDown:function(e){return e.preventDefault()},"data-ppui":"true"},p),value:l,"data-ppui-info":"password-input_3.1.3__8.12.0"},d,s))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-phone-input");const ux="8.813rem",dx=(0,w.style)({flexGrow:1},"phone_input_base"),px=(0,w.style)({direction:"ltr",textAlign:"right"},"phone_input-rtl"),fx=(0,w.style)({display:"flex",gap:x.space[100],"@media":{[`screen and (max-width:${E})`]:{display:"block"}},selectors:{"[dir='rtl'] &":{direction:"ltr"}}},"phone_input-combined"),hx=(0,w.style)({minWidth:ux,"@media":{[`screen and (max-width:${$})`]:{marginBottom:x.space[100]},[`screen and (min-width:${E})`]:{maxWidth:ux}}},"phone_input-menu_width"),mx=(0,w.style)({flexGrow:1,selectors:{"[dir='rtl'] &":{direction:"rtl"}}},"phone_input-menu"),gx=(0,w.style)({marginRight:x.space[100],selectors:{"[dir='rtl'] &":{marginRight:0,marginLeft:x.space[100]}}},"phone_input-thumbnail"),yx=(0,w.style)({whiteSpace:"nowrap"},"phone_input-menu_list"),vx=(0,w.style)({flexGrow:1,selectors:{":not(:empty) &":{paddingBottom:x.space[100],paddingRight:x.space[700]},"[dir='rtl'] &":{borderRadius:x.border.radius.sm,marginLeft:0,marginRight:0},"[dir='rtl']:not(:empty) &":{paddingLeft:x.space[700],paddingRight:`calc(${x.space.md} - ${x.border.thickness.normal})`}}},"phone_input-menu_button");(0,w.globalStyle)(`${vx}>span`,{pointerEvents:"none"});const bx=(0,w.style)({display:"flex"},"phone_input-menu_button_content"),wx=((0,w.style)({marginLeft:0,selectors:{"[dir='rtl'] &":{marginRight:0}}},"phone_input-affordance"),(0,w.style)({selectors:{"[dir='rtl'] &":{left:0}}},"phone_input-menu_container"));b.endFileScope();var xx=["AT","AX","BD","BG","CD","CN","CU","CW","DE","DZ","EG","FI","GB","HR","ID","IE","IL","IQ","IR","IT","KE","KH","KI","KP","KR","LB","LR","LU","MM","MN","MU","MW","MY","NA","NG","PG","PH","PK","PL","PY","RO","RS","RW","SE","SH","SK","SO","SR","SY","TK","TW","VA","WS","YE","ZW"],kx=["AD","AR","AT","AX","BA","BG","BR","CD","CW","DE","EE","FI","GA","HR","ID","IS","IT","KH","KR","LB","LI","LR","MC","MM","MX","MY","NZ","PA","PN","RS","SB","SO","TK","TV","VA","WS","XK","ZA"],_x="00000000000000000000";function Sx(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];if(a&&i)return{countryCode:a,pattern:i};if(t&&e&&e.phoneFormatter){var l=n?"MOBILE":"FIXED_LINE",s=e.exampleGenerator({feature:"phone",region:t,type:l}).generate(),c=s.countryCode,u=s.nationalNumber,d=_x;if(o){var p=e.phoneFormatter({phoneRegion:t,style:r}).format({countryCode:c,nationalNumber:u}),f=p;if(p.includes("+")&&(f=p.split("+".concat(c))[1].trim()),d=f.replace(/\d/g,"0"),(n?kx:xx).includes(t)){var h=d.match(/0/g).length,m="0".repeat(20-h);d+="[".concat(m,"]")}}return{countryCode:c,pattern:d}}return{countryCode:a||"",pattern:i||_x}}var Ex=["rtl","countryOptions","options","flagId","codeId","value"],Cx=function(e){var t=e.rtl,r=e.countryOptions,n=e.options,a=e.flagId,i=e.codeId,o=e.value,l=g(e,Ex);return v().createElement(vb,m({renderButtonContent:function(){var e;if(o&&n){var l=n.findIndex((function(e){return e.value===o}));e=r[l]}var s="";return e&&e.countryPhoneCode&&(s=t?"".concat(e.countryPhoneCode,"+"):"+".concat(e.countryPhoneCode)),e&&e.phoneRegion?v().createElement("span",{className:bx,"data-ppui":"true"},v().createElement("span",{className:gx,"data-ppui":"true"},v().createElement(ag,{id:a,countryCode:e.phoneRegion,size:"md","aria-label":e.countryName,role:"img","data-ppui":"true"})),v().createElement("span",{id:i,"data-ppui":"true"},s)):v().createElement(v().Fragment,null,s)},options:n,value:o},l,{"data-ppui":"true"}))},$x=["name","countryOptions","inputLabel","menuLabel","menuId","className","inputClassName","menuClassName","mobile","onPhoneCodeChange","phoneCode","showUnselect","unselectLabel","formatType"],Ax=((0,y.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"phoneInputMenu":r,a=e.countryOptions,i=void 0===a?[]:a,o=e.inputLabel,l=void 0===o?"Phone Number":o,s=e.menuLabel,c=void 0===s?"Code":s,u=e.menuId,d=e.className,p=e.inputClassName,f=e.menuClassName,h=e.mobile,b=void 0!==h&&h,w=e.onPhoneCodeChange,x=e.phoneCode,k=e.showUnselect,_=void 0!==k&&k,S=e.unselectLabel,E=void 0===S?"None":S,C=e.formatType,$=void 0===C?"international":C,A=g(e,$x);i.length;var T,O,P,z,F,N,R=ro((0,y.useState)(!1),2),I=R[0],L=R[1],M=(0,y.useContext)(Wn),D=(0,y.useCallback)((function(e){if(null!==e&&H()){var t=window.getComputedStyle(e);L("rtl"===(null==t?void 0:t.direction))}}),[null==M?void 0:M.locale]),B=ro((0,y.useState)(!1),2),j=B[0],W=B[1];i[0]&&""===i[0].phoneRegion&&i.splice(0,1),_&&i.unshift({phoneRegion:"",countryName:E,phoneFormat:_x}),N=(0,y.useMemo)((function(){return i.map((function(e,t){var r=Sx(M,e.phoneRegion,$,b,e.countryPhoneCode,e.phoneFormat,e.isPhoneMetaDataLoaded),n=M&&M.getDisplayNamesObject&&M.getDisplayNamesObject({type:"region"}),a=r.countryCode,o=r.pattern;return z=e.phoneRegion,O=e.countryPhoneCode||a,P=e.phoneFormat||o,F=e.countryName||n&&n.select(e.phoneRegion),i[t].countryPhoneCode=O,i[t].phoneFormat=P,i[t].countryName=F,function(e,t,r,n){T=e,t&&(T+=n?" ".concat(t,"+"):" +".concat(t));var a=r&&t?"".concat(r,"_").concat(t):"";return{label:T,value:a,decoration:r&&v().createElement(ag,{countryCode:r,size:"md","data-ppui":"true"})}}(F,O,z,I)}))}),[i,$,b]);var V=_x,U=i.filter((function(e){var t=e.phoneRegion&&e.countryPhoneCode?"".concat(e.phoneRegion,"_").concat(e.countryPhoneCode):"";return x===t}));U.length&&(V=U[0].phoneFormat);var q="phone-input-country-flag_",G="phone-input-country-code_",K=u?"".concat(q).concat(u):te(q),Y=u?"".concat(G).concat(u):te(G),X=Z(mx,hx,f),Q=v().createElement(Cx,{id:u,label:c,options:N,countryOptions:i,value:x,onChange:function(e){var t,r;w&&(w(e),0===(null===(t=e.target)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.length)&&_||W(!0))},className:X,menuContainerClassName:wx,menuListClassName:yx,menuButtonClassName:vx,sheetClassName:yx,rtl:I,showUnselect:!0,flagId:K,codeId:Y,autoComplete:A.autoComplete,"data-ppui":"true"}),J=v().createElement(Hg,m({type:"tel",name:n,label:l,maskOptions:{mask:V},className:mx,inputClassName:Z(I&&px,p),setFocus:j,ref:t,onBlur:function(){return W(!1)},"aria-describedby":"".concat(K," ").concat(Y)},A,{"data-ppui":"true"}));return v().createElement("div",{ref:D,className:Z(d,dx),"data-ppui-info":"phone-input_3.1.6__8.12.0"},v().createElement("div",{className:fx,"data-ppui":"true"},Q,J))})),["name","label","countryOptions","className","inputClassName","formatType","mobile"]);(0,y.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"":r,a=e.label,i=void 0===a?"Phone Number":a,o=e.countryOptions,l=e.className,s=e.inputClassName,c=e.formatType,u=void 0===c?(null==o?void 0:o.countryPhoneCode)?"international":"national":c,d=e.mobile,p=void 0!==d&&d,f=g(e,Ax),h=ro((0,y.useState)(!1),2),b=h[0],w=h[1],x=(0,y.useContext)(Wn),k=(0,y.useCallback)((function(e){if(e&&H()){var t=window.getComputedStyle(e);w("rtl"===(null==t?void 0:t.direction))}}),[null==x?void 0:x.locale]),_=(0,y.useMemo)((function(){return Sx(x,null==o?void 0:o.phoneRegion,u,p,null==o?void 0:o.countryPhoneCode,null==o?void 0:o.phoneFormat,null==o?void 0:o.isPhoneMetaDataLoaded)}),[null==o?void 0:o.phoneRegion,u,p]),S=_.countryCode,E=_.pattern,C="",$="";return"international"===u&&(C=b?"":"+".concat(S),$=b?"".concat(S,"+"):""),v().createElement("div",{ref:k,className:Z(dx,l),"data-ppui-info":"phone-input_3.1.6__8.12.0"},v().createElement(Hg,m({type:"tel",name:"phoneInput-".concat(n),label:i,prefix:C,suffix:$,ref:t,maskOptions:{mask:E},inputClassName:Z(b&&px,s)},f,{"data-ppui":"true"})))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-physical-card"),(0,w.style)([po,{borderRadius:x.border.radius.lg,border:`${x.border.thickness.normal} solid transparent`,backgroundColor:x.color.background.surface,backgroundOrigin:"border-box",position:"relative",overflow:"hidden",paddingTop:`calc(100% * ${216/343} - (2 * ${x.border.thickness.normal}))`}],"physical_card-base"),(0,w.style)({position:"absolute",top:0,width:"100%",height:"100%"},"physical_card-content"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-pill"),(0,w.style)({backgroundColor:x.color.selectedRange.main,paddingBlock:x.space[100],paddingInline:`${x.space[150]} ${x.size.tapTarget.sm}`,whiteSpace:"nowrap",borderRadius:"100px",position:"relative",display:"inline-grid",gridTemplateColumns:"1fr auto",placeItems:"center"},"pill-base"),(0,w.style)({paddingInline:x.space[150]},"pill_hide_close_btn"),(0,w.style)({...Ve,color:x.color.selectedRange.contrast,textOverflow:"ellipsis",whiteSpace:"nowrap"},"pill-label"),(0,w.style)({position:"absolute",right:0,selectors:{"[dir=rtl] &":{left:0,right:"auto"}}},"pill-button_space"),(0,w.style)({color:x.color.selectedRange.contrast},"pill-icon_button_color"),(0,w.style)({backgroundColor:x.color.background.surface},"pill-tray"),(0,w.style)({overflowX:"scroll",margin:0,padding:`${x.space[100]} ${x.space[100]} ${x.space[200]}`,display:"flex",columnGap:x.space[100]},"pill-scroll"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-progress-stepper");const Tx="--ps-m_ol_c",Ox={paddingLeft:x.space[200],paddingRight:x.space[200]},Px={display:"block"},zx={flexDirection:"row",alignItems:"initial"},Fx={margin:`${x.space[200]} 0`,textAlign:"initial"},Nx={display:"inline-flex",alignItems:"center"},Rx={display:"none"},Ix={margin:`0 ${x.space[200]} 0 ${x.space[400]}`,padding:`${x.space[200]} 0`},Lx={insetInlineStart:"auto",top:`calc(${x.size.icon.md} + ${x.space[200]})`,width:x.border.thickness.focus,height:"100%"},Mx=((0,w.style)({color:x.color.background.highContrast,listStyle:"none",margin:0,padding:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(0, 1fr))",selectors:{"&[data-stepper-variant='vertical']":Px}},"progress_stepper-base"),(0,w.style)({margin:0,overflow:"clip",paddingTop:x.space[50],"@media":{[`screen and (max-width: ${$})`]:Ox}},"progress_stepper-compact_wrapper"),{margin:"0 var(--ps-m-od)"}),Dx=((0,w.style)({"@media":{[`screen and (max-width: ${$})`]:Mx}},"progress_stepper-compact_base"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:Px}},"progress_stepper-vertical_base"),(0,w.style)({display:"flex",position:"relative",flexDirection:"column",alignItems:"center",zIndex:0,selectors:{"[data-stepper-variant='vertical'] &":zx}},"progress_stepper-item"));(0,w.globalStyle)(`${Dx}:last-of-type > div:first-of-type:after`,{display:"none"}),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:{height:x.size.icon.xs,width:x.size.icon.xs}}},"progress_stepper-icon_item"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:{fontSize:x.typography.fieldLabelSm.size,display:"grid",lineHeight:"unset",placeItems:"center",textAlign:"center",padding:0}}},"progress_stepper-text_item"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:zx}},"progress_stepper-vertical_item"),(0,w.style)({textAlign:"center",marginTop:x.space[200],selectors:{"[data-stepper-variant='vertical'] &":Fx}},"progress_stepper-item_content"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:Fx}},"progress_stepper-vertical_item_content"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:Rx}},"progress_stepper-vertical_item_content"),(0,w.style)({selectors:{"[data-stepper-variant='vertical'] &":Nx}},"progress_stepper-item_content_without_description"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:Nx}},"progress_stepper-vertical_marker"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:Rx}},"progress_stepper-vertical_marker"),(0,w.style)({color:x.color.background.highContrast},"progress_stepper-label"),(0,w.style)({color:x.color.background.mediumContrast,marginTop:x.space[50]},"progress_stepper-description");const Hx={display:"block",paddingTop:`${x.space[100]}`,paddingBottom:`${x.space[100]}`};(0,w.style)({display:"none","@media":{[`screen and (max-width: ${$})`]:Hx}},"progress_stepper-compact_details"),(0,w.style)({color:x.color.background.alt,display:"flex",justifyContent:"center",margin:0,padding:0,":after":{position:"absolute",content:"",top:x.space[200],insetInlineStart:"50%",width:"100%",height:x.border.thickness.focus,backgroundColor:x.color.structure.divider,zIndex:-1},selectors:{"[data-stepper-variant='vertical'] &":Ix,"[data-stepper-variant='vertical'] &:after":Lx}},"progress_stepper-marker"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:{...Ix,":after":{...Lx,insetInlineStart:"auto",top:`calc(${x.size.icon.md} + ${x.space[200]})`,width:x.border.thickness.focus,height:"100%",zIndex:-1}}}},"progress_stepper-vertical_marker"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:{":after":{top:`calc(${x.space[150]} - (0.5 * ${x.border.thickness.emphasis}))`}}}},"progress_stepper-compact_marker"),(0,w.style)({outlineOffset:x.space[25],outline:`${x.border.thickness.emphasis} solid var(${Tx})`,boxShadow:`0 0 0 ${x.space[25]} ${x.color.background.surface}`,zIndex:0},"progress_stepper-current_marker"),(0,w.style)({":after":{backgroundColor:x.color.success.main}},"progress_stepper-marker_success"),(0,w.style)({":after":{backgroundColor:x.color.structure.divider}},"progress_stepper-marker_default"),(0,w.style)({":after":{backgroundColor:x.color.warning.main}},"progress_stepper-marker_warning"),(0,w.style)({":after":{backgroundColor:x.color.error.main}},"progress_stepper-marker_cancelled"),(0,w.style)({":after":{backgroundColor:x.color.error.main}},"progress_stepper-marker_critical"),(0,w.style)({borderRadius:x.border.radius.interactive,height:x.size.icon.md,width:x.size.icon.md,padding:x.space[50]},"progress_stepper-icon"),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:{height:x.size.icon.sm,width:x.size.icon.sm,display:"grid",placeItems:"center",padding:0}}},"progress_stepper-compact_icon"),(0,w.style)({vars:{[Tx]:x.color.error.main},backgroundColor:x.color.error.main},"progress_stepper-icon_cancelled"),(0,w.style)({vars:{[Tx]:x.color.error.main},backgroundColor:x.color.error.main},"progress_stepper-icon_critical"),(0,w.style)({vars:{[Tx]:x.color.warning.main},backgroundColor:x.color.warning.main},"progress_stepper-icon_warning"),(0,w.style)({vars:{[Tx]:x.color.success.main},backgroundColor:x.color.success.main},"progress_stepper-icon_success"),(0,w.style)({vars:{[Tx]:x.color.structure.divider},backgroundColor:x.color.background.surface,border:`${x.border.thickness.focus} solid ${x.color.structure.divider}`,padding:`${x.space[50]} calc(${x.space[200]} - ${x.border.thickness.focus})`},"progress_stepper-icon_default"),(0,w.style)({textAlign:"center",display:"grid",height:"100%",alignItems:"center"},"progress_stepper-numeric"),(0,w.style)({backgroundColor:x.color.background.alt,padding:0},"progress_stepper-numeric_default"),(0,w.style)({color:x.color.primary.contrast},"progress_stepper-numeric_success"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-radio");const Bx=(0,w.style)({...Ne,color:x.color.background.mediumContrast},"radio-caption_text"),jx=((0,w.style)({display:"flex",flexDirection:"column",margin:0,padding:0,border:"none",textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"radio-group_base"),(0,w.style)({position:"relative",padding:`${x.space[150]} 0`,textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"radio-base")),Wx=((0,w.style)({...Xt,color:x.color.background.mediumContrast,display:"block",paddingBottom:x.space[150],marginBottom:x.space[50]},"radio-group_label"),(0,w.style)({display:"flex",alignItems:"center",minHeight:x.size.tapTarget.sm,paddingBottom:0},"radio-group_labelwithicon"),(0,w.style)({marginInlineStart:x.space[100]},"radio-group_iconLabel"),(0,w.style)([Zt,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"inline-block",paddingLeft:x.space[450],position:"relative",WebkitTapHighlightColor:"transparent",selectors:{"[dir='rtl'] & ":{paddingRight:x.space[450],paddingLeft:0}}}],"radio-label")),Vx=(0,w.style)({borderRadius:x.border.radius.interactive,border:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,height:x.size.circle.xs,position:"absolute",top:0,left:0,width:x.size.circle.xs,backgroundColor:x.color.background.surface,selectors:{"[dir='rtl'] & ":{right:0}}},"radio-check_icon_container"),Ux=(0,w.style)({border:`${x.border.thickness.emphasis} solid ${x.color.error.main}`},"radio-icon_error_check_icon_container"),qx=(0,w.style)({display:"none"},"radio-check_icon"),Gx=(0,w.style)({opacity:0,position:"absolute",cursor:"pointer",margin:0},"radio-icon_input");(0,w.globalStyle)(`${Gx}:checked + label > span:first-of-type`,{borderColor:x.color.selected.main,backgroundColor:x.color.selected.main,color:x.color.background.surface}),(0,w.globalStyle)(`${Gx}:checked + label > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,w.globalStyle)(`${Gx}:focus + label > span:first-of-type`,{...Fn}),(0,w.globalStyle)(`${Gx}:active:not(:checked) + label > span:first-of-type`,{background:x.color.background.surfaceActive});const Kx=(0,w.style)({},"radio_input_with_error");(0,w.globalStyle)(`${Kx}:checked + label > span:first-of-type`,{border:`${x.border.thickness.emphasis} solid ${x.color.error.main}`});const Yx=(0,w.style)({top:"50%",transform:"translateY(-50%)"},"radio-centered_label_check_icon_container"),Xx=(0,w.style)([Bx,{margin:0,listStyle:"none",marginTop:x.space[50]}],"radio-helper_text");(0,w.style)([Bx,{margin:0,listStyle:"none"}],"radio-group_helper_text"),(0,w.style)([Bx,{display:"flex",margin:0,alignItems:"center"}],"radio-error_text"),(0,w.style)({color:x.color.error.main,marginRight:x.space[50],flexShrink:"0",alignSelf:"flex-start",selectors:{"[dir='rtl'] & ":{marginLeft:x.space[50],marginRight:0}}},"radio-error_icon"),b.endFileScope();var Zx=["label","name","value","id","centeredLabel","helperText","className","labelClassName","onChange","checked","errorText"],Qx=function(e){return v().createElement("span",{className:e.className,"aria-hidden":"true","data-ppui":"true"},v().createElement("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","data-ppui":"true"},v().createElement("circle",{r:"18",cy:"50",cx:"50",strokeWidth:"0",fill:"currentColor","data-ppui":"true"})))};(0,y.forwardRef)((function(e,t){var r=e.label,n=e.name,a=void 0===n?te():n,i=e.value,o=void 0===i?function(e){return"string"==typeof e?e:"value_not_set"}(r):i,l=e.id,s=void 0===l?"Radio_".concat(a,"_").concat(o):l,c=e.centeredLabel,u=void 0!==c&&c,d=e.helperText,p=e.className,f=e.labelClassName,h=e.onChange,y=e.checked,b=void 0!==y&&y,w=e.errorText,x=g(e,Zx),k={onChange:h};k[h?"checked":"defaultChecked"]=b;var _=Z(Gx,!!w&&Kx),S=Z(Vx,!!w&&Ux,u&&Yx);return v().createElement("div",{className:Z(jx,p),"data-ppui-info":"radio_4.1.2__8.12.0"},v().createElement("input",m({className:_,type:"radio",name:a,value:o,id:s,ref:t},k,x,{"data-ppui":"true"})),v().createElement("label",{className:Z(Wx,f),htmlFor:s,"data-ppui":"true"},v().createElement("span",{className:S,"data-ppui":"true"},v().createElement(Qx,{className:qx,"data-ppui":"true"})),r,function(e,t){return e&&v().createElement("p",{className:t,"data-ppui":"true"},e)}(d,Xx)))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-scroll-box"),(0,w.style)({display:"grid",gridTemplateRows:"auto 1fr auto",height:"100%"},"sb_base"),(0,w.style)({position:"relative",overflow:"hidden",zIndex:"0",selectors:{"&:before":{content:"",position:"absolute",top:"-1rem",left:"0",right:"0",display:"block",height:"1rem",...yo,zIndex:"-1"},"&:after":{content:"",position:"absolute",bottom:"-1rem",left:"0",right:"0",display:"block",height:"1rem",...$o,zIndex:"-1"}}},"sb_content"),(0,w.style)({padding:`${x.space[100]} ${x.space[150]}`},"sb_head"),(0,w.style)({padding:`${x.space[100]} ${x.space[150]}`},"sb_foot"),(0,w.style)({padding:`0 ${x.space[150]}`,height:"100%",overflow:"scroll",background:`linear-gradient(to bottom,\n ${x.color.background.surface},\n transparent ${x.space[400]},\n transparent calc(100% - ${x.space[400]}),\n ${x.color.background.surface} 100%\n )`,backgroundAttachment:"local"},"sb_scroller"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-search-input");const{ppuiEaseMoveSmall:Jx}=cn,ek=(0,w.style)({borderRadius:x.size.icon.xl,paddingLeft:`calc(${x.space[500]} + ${x.space[50]})`,paddingRight:x.space[600],"@media":{[`(max-width: ${$})`]:{paddingTop:x.space[150],paddingBottom:x.space[150],minHeight:x.size.field.sm,selectors:{"[dir='rtl'] &":{paddingTop:x.space[150],paddingBottom:x.space[150]}}}},selectors:{"[dir='rtl'] &":{paddingRight:`calc(${x.space[500]} + ${x.space[50]})`,paddingLeft:x.space[600]}}},"search_input"),tk=(0,w.style)({borderColor:x.color.structure.borderLowContrast},"search_border_color"),rk=(0,w.style)({left:x.space[50],position:"absolute",selectors:{"[dir='rtl'] &":{right:x.space[50],position:"absolute"}},"@media":{[`(max-width: ${$})`]:{top:`calc(-1 * ${x.space[100]})`}}},"left_icon"),nk=(0,w.style)({position:"absolute",right:`calc(-1 * ${x.space[25]})`,"@media":{[`(max-width: ${$})`]:{top:`calc(-1 * ${x.space[100]})`}},selectors:{"[dir='rtl'] &":{left:`calc(-1 * ${x.space[100]})`,right:x.space[25]}}},"rightIcon"),ak=(0,w.style)({paddingInlineStart:x.space[200],transition:`padding ${x.motion.duration.move.small} ${Jx}`},"remove_extra_padding"),ik=(0,w.style)({backgroundColor:x.color.background.alt},"search_input_level2");b.endFileScope();var ok=["keepClearButton","onClear","className","clearButtonLabel","clearButtonAriaLabel","inputClassName","labelClassName","errorText","label","value","onKeyDown","onFocus","onBlur","pageLevel"];(0,y.forwardRef)((function(e,t){var r=e.keepClearButton,n=e.onClear,a=e.className,i=e.clearButtonLabel,o=void 0===i?"Clear input":i,l=e.clearButtonAriaLabel,s=void 0===l?"The info has been cleared":l,c=e.inputClassName,u=e.labelClassName,d=e.errorText,p=e.label,f=e.value,h=e.onKeyDown,b=e.onFocus,w=e.onBlur,x=e.pageLevel,k=void 0===x?1:x,_=g(e,ok),S=ro((0,y.useState)(!1),2),E=S[0],C=S[1],$=ro((0,y.useState)(!0),2),A=$[0],T=$[1],O=ro((0,y.useState)(!1),2),P=O[0],z=O[1],F=E?{"aria-label":s,"aria-atomic":"true","aria-live":"polite",role:"button"}:null,N=f||r?{rightIcon:v().createElement(Sd,m({buttonType:"tertiary",className:nk,svgIconComponent:Ra,onClick:function(e){n&&n(e),C(!0),z(!0)},onMouseDown:function(e){return e.preventDefault()}},F,{"data-ppui":"true"}),o)}:null,R=A?{leftIcon:v().createElement(Da,{className:rk,size:"sm","aria-hidden":"true","data-ppui":"true"})}:null,I=Z(ek,!d&&tk,!A&&ak,2===k&&ik,c);return v().createElement(v().Fragment,null,v().createElement(Zi,m({className:a,ref:t},R,N,{inputClassName:I,labelClassName:u,errorText:d,isLabelHidden:!0,placeholder:p,label:p,value:f,onFocus:function(e){T(!1),z(!0),b&&b(e)},onBlur:function(e){T(!f),z(!1),w&&w(e)},"data-ppui-info":"search-input_3.2.2__8.12.0",setFocus:P},_,{onKeyDown:function(e){E&&C(!1),"Escape"===e.key&&n&&n(e),h&&h(e)}})))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-segmented-controller");const lk="64rem",sk=((0,w.style)({backgroundColor:x.color.background.alt,borderRadius:lk,display:"flex",alignItems:"stretch",justifyContent:"flex-start",position:"relative",padding:"0.1875rem",gap:x.space[50]},"segmented_controller_tab_wrapper"),(0,w.style)({borderRadius:"inherit",position:"relative",backgroundColor:"transparent",width:"100%",border:0,minWidth:0,padding:0,cursor:"pointer",...Vt,zIndex:1,":focus":Fn},"segmented_controller_tab"));(0,w.globalStyle)(`[data-contrast-variant="high"] ${sk}:hover:not(:focus) span`,{background:x.color.selected.altHover,color:x.color.selected.contrast}),(0,w.globalStyle)(`[data-contrast-variant="low"] ${sk}:hover:not(:focus) span`,{background:x.color.unselected.mainHover,fontWeight:x.typography.buttonSm.weight}),(0,w.globalStyle)(`[data-contrast-variant="high"] ${sk}[aria-selected="true"] span`,{color:x.color.selected.contrast}),(0,w.globalStyle)(`[data-contrast-variant="low"] ${sk}[aria-selected="true"] span`,{color:x.color.selected.main}),(0,w.style)({position:"absolute",top:0,left:0,width:0,height:0,borderRadius:lk,transition:`left ${x.motion.duration.move.small} ${cn.ppuiEaseMoveSmall}`},"segmented_controller_tab_slider"),(0,w.style)({background:x.color.selected.alt},"segmented_controller_tab_slider_default"),(0,w.style)({background:x.color.selected.contrast},"segmented_controller_tab_slider_low_contrast");const ck=(0,w.style)({display:"flex",flexWrap:"wrap",justifyContent:"center",alignItems:"center",height:"100%",wordBreak:"break-word",border:`${x.border.thickness.normal} solid transparent`,padding:x.space.sm,borderRadius:"inherit",color:x.color.background.mediumContrast,pointerEvents:"none"},"segmented_controller_tab_title");(0,w.style)({selectors:{'&[aria-hidden="true"]':{display:"none"}}},"segmented_controller_tab_content"),(0,w.style)({display:"block"},"segmented_controller_tab_content_visible"),(0,w.style)({display:"none"},"segmented_controller_tab_content_hidden"),b.endFileScope();var uk=["id","tabIdx","label","segmentedControllerId","panelId","selected","onClick","className"];v().forwardRef((function(e,t){var r=e.id,n=e.tabIdx,a=e.label,i=e.segmentedControllerId,o=e.panelId,l=e.selected,s=e.onClick,c=e.className,u=g(e,uk),d=l?0:-1,p=r||"".concat(i,"-tab").concat(parseInt(n,10)+1);return v().createElement("button",m({"data-tab-index":n,id:p,className:Z(sk,c),"aria-controls":o,"aria-selected":l,tabIndex:d,type:"button",role:"tab",ref:t},u,{onClick:s,"data-ppui":"true"}),v().createElement("span",{className:ck,"data-ppui":"true"},a))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-segmented-progress-meter");const dk=(0,w.style)({display:"flex",gap:x.space[75]},"segmented_progress_meter-container"),pk=(0,w.style)({width:"100%"},"segmented_progress_meter-stack");b.endFileScope(),(0,y.forwardRef)((function(e,t){var r=e.className,n=e.size,a=void 0===n?"lg":n,i=e.duration,o=void 0===i?7:i,l=e.autoProgress,s=void 0!==l&&l,c=e.onChange,u=void 0===c?null:c,d=e.children,p=ro((0,y.useState)(0),2),f=p[0],h=p[1],m=ro((0,y.useState)([]),2),g=m[0],b=m[1],w=ro((0,y.useState)(!1),2),x=w[0],k=w[1],_=ro((0,y.useState)(!1),2),S=_[0],E=_[1],C=(0,y.useRef)(null),$=(0,y.useRef)(null),A=(0,y.useRef)(0),T=(0,y.useRef)(null),O=d.length,P=Z(dk,r);u&&(0,y.useEffect)((function(){u({index:f})}),[S]);var z=function(){$.current=Date.now(),A.current=0,T.current=Date.now(),clearInterval(C.current),E(!S)};return(0,y.useImperativeHandle)(t,(function(){return{next:function(){f<O-1&&(b((function(e){var t=to(e);return t[f]=1,t})),h(f+1),z())},prev:function(){f>0&&(b((function(e){var t=to(e);return t[f]=0,t[f-1]=0,t})),h(f-1),z())},pause:function(){return x||(T.current=Date.now()),void k(!0)},resume:function(){return x&&(A.current+=Date.now()-T.current),void k(!1)}}})),s&&(0,y.useEffect)((function(){return $.current||($.current=Date.now()),x||(C.current=setInterval((function(){var e=(Date.now()-$.current-A.current)/(1e3*o);if(b((function(t){var r=to(t);return r[f]=Math.min(e,1),r})),e>=1){if(f+1>=O)return void clearInterval(C.current);h(f+1),z()}}),10)),function(){return clearInterval(C.current)}}),[o,f,x]),v().createElement("div",{className:P,"data-ppui-info":"segmented-progress-meter_1.2.3__8.12.0"},function(e,t,r,n){var a=[];return v().Children.forEach(e,(function(e,i){var o=v().createElement("div",{key:"linearProgressMeterStacked_".concat(i),className:pk,"data-ppui":"true"},n&&v().cloneElement(e,{size:t,max:1,value:r[i]||0,noPadding:!0}),!n&&v().cloneElement(e,{size:t,noPadding:!0}));a.push(o)})),a}(d,a,g,s))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-selection-card-group");const fk="0.1875rem",hk=`calc(${x.size.indicator.lg} * 2)`,mk="selection-card-group",gk={content:"",position:"absolute",borderRadius:x.border.radius.lg,inset:"0"},yk={position:"absolute",top:`calc(${x.space[150]} + ${x.space[25]})`,right:x.space[200],width:hk,height:hk},vk={right:"unset",left:x.space[200]},bk=(e,t)=>({outline:`${e} solid ${t}`,outlineOffset:`calc(${e} * -1)`}),wk=(e,t)=>({...gk,boxShadow:`inset 0 0 0 ${t} ${x.color.error.contrast}`,...bk(e,x.color.error.main)}),xk=e=>({gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`}),kk=((0,w.style)({boxSizing:"border-box",borderStyle:"none",padding:0,margin:0},`${mk}_base`),(0,w.style)({display:"grid",gridGap:x.space[100]},`${mk}_container`),(0,w.style)({...xk(1)},`${mk}_container_grid-vertical`),(0,w.style)({...xk(2)},`${mk}_container_grid-two`),(0,w.style)({...xk(3)},`${mk}_container_grid-three`),(0,w.style)({...xk(4)},`${mk}_container_grid-four`),(0,w.style)({display:"flex",borderRadius:x.border.radius.lg,backgroundColor:x.color.background.surface,position:"relative",padding:`${x.space[150]} ${x.space[200]}`,minHeight:"2.875rem",selectors:{"&:has(input:hover)":{cursor:"pointer"},"&:has(input:focus)":{...Fn,boxShadow:`0 0 0 ${x.border.thickness.normal} ${x.color.structure.borderLowContrast}, \n 0 0 0 ${x.border.thickness.normal} ${x.color.background.surface}`}}},`${mk}_card-label`));(0,w.style)({selectors:{"&:has(input:checked)":{backgroundColor:x.color.selected.alt,color:x.color.selected.contrast}}},`${mk}_card-expressive`),(0,w.style)({selectors:{"&:has(input:checked):before":{...gk,...bk(x.border.thickness.emphasis,x.color.selected.main)}}},`${mk}_card-functional`),(0,w.style)({...yk,top:`calc(${x.space[200]} - ${x.border.thickness.normal})`,border:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,borderRadius:x.border.radius.interactive,backgroundColor:x.color.background.surface,selectors:{[`${kk}:has(input:checked) &`]:{display:"none"},"[dir='rtl'] &":{...vk}}},`${mk}_unselected`),(0,w.style)({display:"none",...yk,selectors:{[`${kk}:has(input:checked) &`]:{display:"block"},"[dir='rtl'] &":{...vk}}},`${mk}_selected-multi`),(0,w.style)({display:"none",...yk,border:`0.3125rem solid ${x.color.background.surface}`,borderRadius:x.border.radius.interactive,selectors:{[`${kk}:has(input:checked) &`]:{display:"block"},"[dir='rtl'] &":{...vk}}},`${mk}_selected-single`),(0,w.style)({borderColor:x.color.selected.main},"selected-functional-single"),(0,w.style)({color:x.color.selected.main},`${mk}_selected-functional-multi`),(0,w.style)({padding:`${x.space[25]} 0`,width:"100%",borderRadius:"inherit"},`${mk}_layout`),(0,w.style)({paddingInlineEnd:x.space[350]},`${mk}_layout-end-padding`),(0,w.style)({display:"grid",gridGap:x.space[200]},`${mk}_layout-decoration`),(0,w.style)({gridTemplateColumns:"auto 1fr",alignItems:"center",gridGap:x.space[100]},`${mk}_decoration-align-leading`),(0,w.style)({opacity:0,position:"absolute"},`${mk}_input`),(0,w.style)({...Ie,color:x.color.background.mediumContrast,display:"flex",alignItems:"center",marginTop:x.space[50],marginBottom:0},`${mk}_error-text`),(0,w.style)({color:x.color.error.main,marginInlineEnd:x.space[50],flexShrink:0,alignSelf:"flex-start"},`${mk}_error-icon`),(0,w.style)({background:x.color.background.alt},`${mk}_expressive-level-3`),(0,w.style)({":before":{...gk,...bk(x.border.thickness.normal,x.color.structure.borderLowContrast)}},`${mk}_functional-level-3`),(0,w.style)({":after":{...wk(x.border.thickness.emphasis,fk)}},`${mk}_error-expressive`),(0,w.style)({":after":{...wk(x.border.thickness.emphasis,fk)},selectors:{"&:has(input:checked):after":{...wk(fk,"0.25rem")}}},`${mk}_error-functional`),(0,w.style)({selectors:{[`${Te}&`]:{color:"inherit"}}},`${mk}_label`),(0,w.style)({selectors:{[`${Fe}&`]:{marginTop:x.space[25],color:x.color.background.mediumContrast},[`${kk}:has(input:checked) &`]:{color:"inherit"}}},`${mk}_label-description`),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-selection-group");const _k=(e,t="selection_group")=>`${t}_${e}`,Sk=x.space[100],Ek=`calc(${x.space[100]} - ${x.border.thickness.normal})`,Ck=`calc(${x.space[100]} - ${x.border.thickness.focus})`,$k=`calc(${x.border.thickness.normal} + ${x.border.thickness.normal})`,Ak="0.125rem",Tk={content:"",position:"absolute",top:`calc(${x.border.thickness.normal} * -1)`,left:`calc(${x.border.thickness.normal} * -1)`,right:0,borderRadius:x.border.radius.md,width:`calc(100% + ${Ak})`,height:`calc(100% + ${Ak})`,pointerEvents:"none"},Ok={backgroundColor:x.color.background.surface,color:x.color.secondary.main,borderColor:x.color.secondary.main,borderWidth:x.border.thickness.normal,padding:Sk,zIndex:1,WebkitTextStrokeWidth:"0.0421875rem"},Pk={flexDirection:"column",minWidth:"auto"},zk=((0,w.style)({boxSizing:"border-box",borderStyle:"none",padding:0,textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},_k("base")),(0,w.style)({display:"flex",flexWrap:"wrap",position:"relative",minWidth:"18rem",marginTop:`calc(${x.space[150]} * -1)`,marginInlineEnd:`calc(${x.space[150]} * -1)`},_k("buttons")),(0,w.style)({"@media":{[`screen and (max-width: ${E})`]:Pk}},_k("buttons_responsive_xs")),(0,w.style)({"@media":{[`screen and (max-width: ${C})`]:Pk}},_k("buttons_responsive_sm")),(0,w.style)({"@media":{[`screen and (max-width: ${$})`]:Pk}},_k("buttons_responsive_md")),(0,w.style)({...Pk,marginTop:0,display:"grid",gridAutoRows:"1fr",gap:x.space[150]},_k("buttons_vertical")),(0,w.style)([$e,{display:"block",color:x.color.background.highContrast,marginBottom:x.space[150]}],_k("group_label")),(0,w.style)({...Ie,display:"block",listStyle:"none",paddingLeft:0,margin:`${x.space[150]} 0 0 0`},_k("helper_text")),(0,w.style)({...Ie,color:x.color.background.mediumContrast,display:"flex",alignItems:"center",marginTop:x.space[50],marginBottom:0},_k("error_text")),(0,w.style)({color:x.color.error.main,marginInlineEnd:x.space[50],flexShrink:"0",alignSelf:"flex-start"},_k("error_icon")),(0,w.style)({justifyContent:"center"},_k("center")),(0,w.style)({justifyContent:"stretch"},_k("justify")),(0,w.style)({position:"absolute",clip:"rect(0, 0, 0, 0)",pointerEvents:"none",width:"1px",height:"1px"},_k("control")));(0,w.globalStyle)(`${zk}:focus + label`,{outline:"none",...Fn,borderWidth:x.border.thickness.normal,padding:Sk}),(0,w.globalStyle)(`${zk}:checked + label div`,{color:x.color.secondary.main}),(0,w.globalStyle)(`${zk}:checked + label span`,{color:x.color.secondary.main});const Fk=(0,w.style)({},_k("label_when_focused_and_checked"));(0,w.globalStyle)(`${Fk} input:checked + label:after`,{border:`${$k} solid ${x.color.primary.main}`}),(0,w.style)([$e,{display:"flex",flexDirection:"column",justifyContent:"center",backgroundColor:x.color.background.surface,padding:Sk,marginTop:x.space[150],marginRight:x.space[150],textAlign:"center",cursor:"pointer",userSelect:"none",border:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,borderRadius:x.border.radius.md,position:"relative",transition:`color ${x.motion.duration.action} ease,\n background-color ${x.motion.duration.action} ease,\n border-color ${x.motion.duration.action} ease`,minHeight:"3.75rem",minWidth:"5.125rem",selectors:{"&:hover":{background:x.color.background.surface,borderColor:x.color.secondary.main},"[dir='rtl'] & ":{marginRight:0,marginLeft:x.space[150]}}}],_k("label")),(0,w.style)({textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},_k("secondary_label_vertical")),(0,w.style)({marginRight:0,marginTop:0},_k("label_vertical")),(0,w.style)({flex:"1 0 auto"},_k("label_justify"));const Nk=(0,w.style)({},_k("primary"));(0,w.globalStyle)(`${Nk} input:checked + label`,Ok),(0,w.globalStyle)(`${Nk} input:focus + label:after`,{borderColor:x.color.secondary.main}),(0,w.globalStyle)(`${Nk} input:checked + label:after`,{...Tk,border:`${x.border.thickness.focus} solid ${x.color.secondary.main}`}),(0,w.globalStyle)(`${Nk} input:checked + label &:hover`,{border:`${x.border.thickness.normal} solid ${x.color.secondary.main}`}),(0,w.globalStyle)(`${Nk} input:checked + label span`,{color:x.color.secondary.main}),(0,w.style)([Ie,{color:x.color.background.mediumContrast}],_k("secondary_label_two")),(0,w.style)({borderWidth:x.border.thickness.emphasis,backgroundColor:x.color.background.surface,borderColor:x.color.error.main,padding:Ek},_k("error_label"));const Rk=(0,w.style)({},_k("error_label_when_checked"));(0,w.globalStyle)(`${Rk} input:checked + label:after`,{padding:Ck,border:`${x.border.thickness.focus} solid ${x.color.error.main}`,zIndex:1}),(0,w.globalStyle)(`${Rk} input:checked + label &:hover`,{border:`${x.border.thickness.focus} solid ${x.color.error.main}`}),(0,w.globalStyle)(`${Rk} input:checked + label &:after`,{border:"none"});const Ik=(0,w.style)({},_k("error_label_when_focused"));(0,w.globalStyle)(`${Ik} input:focus + label &:hover`,{borderColor:x.color.error.main,borderWidth:x.border.thickness.emphasis}),(0,w.globalStyle)(`${Ik} input:focus + label &:after`,{border:"none"}),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-switch");const Lk="3.5rem",Mk=`calc(${Lk} - ${x.size.circle.sm})`,Dk=`calc(${x.size.circle.sm} / 2)`,{ppuiEaseMoveSmall:Hk}=cn,Bk=(0,w.style)({position:"relative",textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"switch_base"),jk=(0,w.style)([$e,{display:"block",marginBottom:x.space[150],selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:x.space[300]}}}],"switch_label"),Wk=(0,w.style)({display:"block",color:x.color.background.mediumContrast},"switch_secondary_label"),Vk=(0,w.style)({display:"flex",flexWrap:"wrap",alignItems:"center",width:"100%"},"switch_inline"),Uk=(0,w.style)({flex:"1 1 0",textAlign:"start",paddingRight:x.space[300],marginBottom:0,selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:x.space[300]}}},"switch_inline_label"),qk=(0,w.style)({flex:"0 0 100%"},"switch_inline_helperText"),Gk=(0,w.style)({width:Lk,height:x.size.circle.sm,position:"relative"},"switch_container"),Kk=(0,w.style)({display:"inline-block",width:Lk,height:x.size.circle.sm,cursor:"pointer",border:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,borderRadius:Dk,backgroundColor:x.color.unselected.main},"switch_state");(0,w.globalStyle)(`${Kk} > span`,{visibility:"hidden",width:"0.0625rem",height:"0.0625rem",overflow:"hidden",position:"absolute",whiteSpace:"nowrap"});const Yk=(0,w.style)({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:0,left:0,width:x.size.circle.sm,height:x.size.circle.sm,backgroundColor:x.color.selected.contrast,borderRadius:x.border.radius.interactive,border:`${x.border.thickness.normal} solid ${x.color.structure.borderHighContrast}`,transition:`${x.motion.duration.move.small} ${Hk}`},"switch_handler"),Xk=(0,w.style)({display:"none",color:x.color.selected.main},"switch_selectedIcon"),Zk=(0,w.style)({opacity:0,position:"absolute"},"switch_control");(0,w.globalStyle)(`${Zk}:focus ~ label`,{...Fn}),(0,w.globalStyle)(`${Zk}:hover ~ label`,{backgroundColor:x.color.unselected.mainHover}),(0,w.globalStyle)(`${Zk}:checked ~ label`,{backgroundColor:x.color.selected.main,border:`${x.border.thickness.normal} solid ${x.color.selected.main}`}),(0,w.globalStyle)(`${Zk}:checked ~ span`,{transform:`translateX(${Mk})`,border:`${x.border.thickness.normal} solid ${x.color.selected.main}`}),(0,w.globalStyle)(`${Zk}:checked + label + span > span:first-of-type`,{display:"inline-block"}),(0,w.globalStyle)(`${Zk}:checked:hover ~ label`,{backgroundColor:x.color.selected.mainHover});const Qk=(0,w.style)([Fe,{marginTop:x.space[50],listStyle:"none",paddingLeft:0,color:x.color.background.mediumContrast}],"switch_helperText");b.endFileScope();var Jk=["checked","inline","className","inputClassName","labelClassName","helperText","hideLabel","id","label","secondaryLabel","onChange","required","value"];(0,y.forwardRef)((function(e,t){var r=e.checked,n=e.inline,a=e.className,i=e.inputClassName,o=e.labelClassName,l=e.helperText,s=e.hideLabel,c=e.id,u=void 0===c?te("Switch_"):c,d=e.label,p=e.secondaryLabel,f=e.onChange;e.required;var h,y,b=e.value,w=g(e,Jk),x=Z(Bk,n&&Vk,a),k=Z(jk,n&&Uk),_=Z(Qk,n&&qk),S="message_".concat(u),E="label_".concat(u),C=f?{onChange:f,checked:r}:{defaultChecked:r};return v().createElement("div",{className:x,"data-ppui-info":"switch_4.2.2__8.12.0"},!s&&v().createElement("span",{id:E,className:k,"data-ppui":"true"},d,v().createElement(le,{as:"div",className:Wk,"data-ppui":"true"},p)),v().createElement("div",{className:Gk,"data-ppui":"true"},v().createElement("input",m({},l?{"aria-describedby":S}:null,s?{}:{"aria-labelledby":E},{"aria-label":s?d:null,className:Z(Zk,i),id:u,role:"switch",type:"checkbox",value:b,ref:t},C,w,{"data-ppui":"true"})),v().createElement("label",{className:Z(Kk,o),htmlFor:u,"data-ppui":"true"},v().createElement("span",{"data-ppui":"true"},d)),v().createElement("span",{className:Yk,"data-ppui":"true"},v().createElement(Aa,{size:"xs",className:Xk,"aria-hidden":"true","data-ppui":"true"}))),(y=S,(h=l)&&v().createElement("div",{className:_,id:y,"data-ppui":"true"},h)||null))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-tabs");const{variables:e_}=n,t_=`calc(${x.space[400]} + ${x.space[300]})`,r_=`calc(${x.size.tapTarget.default} * 2)`,n_=`calc(${x.space[300]} * 3)`,a_={display:"none"},i_={display:"block"},o_=((0,w.style)({position:"relative"},"tabs_wrapper_base"),(0,w.style)({overflowY:"hidden",whiteSpace:"nowrap",position:"relative",scrollbarWidth:"none",padding:`${x.space[300]} ${x.space[300]} ${x.space[300]} ${t_}`,selectors:{"&::-webkit-scrollbar":{...a_}}},"tabs_base"),(0,w.style)({display:"flex",float:"left",minHeight:x.size.field.sm,width:"max-content",position:"relative",selectors:{"[dir='rtl'] &":{float:"right"}}},"tabs_wrapper"),(0,w.style)({minWidth:"100%",width:"auto",minHeight:x.size.field.sm,justifyContent:"center","@media":{"(max-width: 120px)":{width:"auto",justifyContent:"flex-start"}}},"tabs_center"),(0,w.style)({...i_,...qt,padding:`${x.space[150]} ${x.space[50]}`,minHeight:x.size.field.sm,minWidth:"5.25rem",maxWidth:"11.5rem",marginInlineEnd:x.space[200],outline:"none",position:"relative",border:"none",backgroundColor:"transparent",whiteSpace:"normal",wordWrap:"break-word",textDecoration:"none",flexShrink:0,cursor:"pointer",color:x.color.background.mediumContrast,zIndex:1,":last-of-type":{marginInlineEnd:0},"::after":{content:"",position:"absolute",inset:0,border:"none",pointerEvents:"none",top:"auto"},":hover":{backgroundColor:x.color.background.surfaceHover,borderRadius:x.border.radius.xs,textDecoration:"none"},":active":{color:x.color.background.highContrast,textDecoration:"none"},":focus":{...Fn,textDecoration:"none",borderRadius:x.border.radius.xs,outlineOffset:"unset",transform:"none",transition:"none"},":visited":{textDecoration:"none"}},"tabs_btn")),l_=((0,w.style)({position:"absolute",bottom:0,left:0,width:0,height:x.border.thickness.emphasis,borderRadius:x.border.radius.tiny,borderBottom:`${x.border.thickness.emphasis} solid ${x.color.background.highContrast}`,transition:`all ${x.motion.duration.move.small} ${e_.ppuiEaseMoveSmall}`},"tabs_slider"),(0,w.style)({color:x.color.background.highContrast,":hover":{textDecoration:"none"}},"tabs_selected_btn"));(0,w.globalStyle)(`${l_}:hover::after`,{borderRadius:x.border.radius.tiny,borderBottom:`${x.border.thickness.emphasis} solid ${x.color.background.highContrast}`}),(0,w.style)({backgroundColor:x.color.background.surface,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,visibility:"hidden",width:x.size.tapTarget.default,height:r_,top:0},"tabs_scroll_btn"),(0,w.style)({left:0,background:`linear-gradient(\n 90deg,\n ${x.color.background.surface} 47.45%,\n ${Q(x.color.background.surface,"0")} 100%\n )`,zIndex:1},"tabs_scroll_btn_left"),(0,w.style)({right:0,background:`linear-gradient(\n 270deg,\n ${x.color.background.surface} 47.45%,\n ${Q(x.color.background.surface,"0")} 100%\n )`,zIndex:1},"tabs_scroll_btn_right"),(0,w.style)({visibility:"visible",opacity:1,transition:`visibility ${x.motion.duration.move.small},\n opacity ${x.motion.duration.move.small}`},"tabs_scroll_btn_visible"),(0,w.style)([po,{color:x.color.primary.main,background:x.color.background.surface}],"tabs_arrow_icon"),(0,w.style)({margin:`0 ${x.space[300]} 0 ${n_}`,":focus":{outline:"none"},selectors:{"&[aria-hidden='true']":{...a_}}},"tabs_content"),(0,w.style)({":focus":{boxShadow:`0 0 ${x.border.thickness.emphasis}\n ${x.border.thickness.emphasis} ${x.color.structure.focus}`}},"tabs_content_focus"),(0,w.style)({...a_},"hide_btn"),(0,w.style)({...i_},"tabs_content_visible"),(0,w.style)({...a_},"tabs_content_hidden"),(0,w.style)([go,{background:x.color.background.surface}],"tabs_nav_background"),b.endFileScope();var s_=["id","tabIdx","label","tabGroupId","panelId","selected","onClick","className"];v().forwardRef((function(e,t){var r=e.id,n=e.tabIdx,a=e.label,i=e.tabGroupId,o=e.panelId,l=e.selected,s=e.onClick,c=e.className,u=g(e,s_),d=Z(o_,l&&l_,c),p=l?0:-1,f=r||"".concat(i,"-tab").concat(parseInt(n,10)+1);return v().createElement("button",m({ref:t,"data-tab-index":n,id:f,className:d,"aria-controls":o,"aria-selected":l,tabIndex:p,type:"button",role:"tab"},u,{onClick:s,"data-button-text":a,"data-ppui":"true"}),a)})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-area");const c_=(0,w.style)({backgroundColor:x.color.background.surface,outline:"none",boxShadow:"none",resize:"none",display:"block"},"text-area_control");(0,w.globalStyle)(`${c_}:placeholder-shown:not(:focus) ~ label`,{paddingTop:0});const u_=(0,w.style)({backgroundColor:x.color.background.surface,top:x.border.thickness.normal,paddingTop:`calc(${x.space[100]} - ${x.border.thickness.normal})`},"text-area_control_label"),d_=(0,w.style)({top:x.border.thickness.emphasis,paddingTop:`calc(${x.space[100]} - ${x.border.thickness.emphasis})`},"text-area_control_error_label"),p_=(0,w.style)({cursor:"text",position:"relative",padding:x.border.thickness.normal,":after":{content:" ",position:"absolute",height:"100%",width:"100%",top:0,left:0,border:`${x.border.thickness.normal} solid ${x.color.structure.borderLowContrast}`,borderRadius:x.border.radius.sm,pointerEvents:"none"},":focus-within":{borderRadius:x.border.radius.sm,...Fn}},"text-area_wrapper"),f_={border:"none",outline:"none",boxShadow:"none",marginTop:`calc(${x.space[350]} + ${x.space[25]} - ${x.border.thickness.normal})`,paddingTop:0,minHeight:`calc((${x.size.field.sm} / 2) + ${x.space[100]} - ${x.border.thickness.normal})`};(0,w.globalStyle)(`${p_} > textarea:focus, ${p_} > textarea:not(:focus)`,f_);const h_=(0,w.style)([Xa,{paddingTop:x.space[100],paddingRight:`calc(${x.space[150]} - ${x.border.thickness.normal})`,paddingBottom:`calc(${x.space[100]} - ${x.border.thickness.normal})`,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.normal})`,textAlign:"right",backgroundColor:x.color.background.surface,selectors:{"[dir='rtl'] & ":{textAlign:"left"}}}],"text-area_counter_text"),m_=(0,w.style)({paddingLeft:x.border.thickness.emphasis,paddingRight:x.border.thickness.emphasis,":after":{border:`${x.border.thickness.emphasis} solid ${x.color.error.main}`}},"text-area_error_counter_wrapper"),g_=(0,w.style)({color:x.color.error.main,paddingLeft:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`,paddingRight:`calc(${x.space[150]} - ${x.border.thickness.emphasis})`},"text-area_error_counter_text");b.endFileScope();var y_=["className","minRows","maxRows","showCharacterCounter","maxCharacters","counterStatusText","onChange","onBlur","onFocus","value","errorText","successText"],v_=["inputClassName","name","id","setFocus","hasError","placeholder","label","labelClassName","inputTag","placemat"];(0,y.forwardRef)((function(e,t){var r=e.className,n=e.minRows,a=e.maxRows,i=e.showCharacterCounter,o=void 0!==i&&i,l=e.maxCharacters,s=e.counterStatusText,c=e.onChange,u=void 0===c?null:c,d=e.onBlur,p=void 0===d?null:d,f=e.onFocus,h=void 0===f?null:f,b=e.value,w=e.errorText,x=e.successText,k=g(e,y_),_=function(e){return e*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16)}(1.5),S=a>1?Math.min(a,6):6,E=n>=1?Math.max(n,1):2,C=ro((0,y.useState)(b?b.length:0),2),$=C[0],A=C[1],T=ro((0,y.useState)(!1),2),O=T[0],P=T[1],z=(0,y.useRef)(),F=t||z,N=(0,y.useContext)(Wn),R=(0,y.useRef)(0),I=(0,y.useRef)(_*S),L=(0,y.useRef)(_*E);(0,y.useEffect)((function(){if(F.current){var e=F.current,t=e.offsetHeight,r=e.clientHeight,n=window.getComputedStyle(e),a=Number(n.getPropertyValue("line-height").split("px")[0]),i=Number(n.getPropertyValue("padding-bottom").split("px")[0]),o=Number(n.getPropertyValue("padding-top").split("px")[0]),l=Number.isNaN(a)?_:a,s=Number.isNaN(i)?0:i,c=Number.isNaN(o)?0:o;R.current=t-r,I.current=R.current+c+s+l*S,L.current=R.current+c+s+l*E,function(){var e=F.current;e.style.height="".concat(L.current,"px");var t=e.scrollHeight+R.current;t>I.current?e.style.height="".concat(I.current,"px"):t>L.current?e.style.height="".concat(t,"px"):e.style.height="".concat(L.current,"px")}(),P("rtl"===n.direction)}}),[E,S,b]);var M=function(){F.current&&F.current.focus()};return v().createElement(ji,m({className:r,value:b,onChange:function(e){var t=e.target;A(t.value.length),u&&u(e)},onFocus:function(e){h&&h(e)},onBlur:function(e){p&&p(e)},renderContent:function(e){var t=e.inputClassName,r=e.name,n=e.id,a=e.setFocus,i=e.hasError,c=e.placeholder,u=e.label,d=e.labelClassName;e.inputTag,e.placemat;var p=g(e,v_),f=v().createElement(qi,m({inputClassName:Z(t,c_),inputTag:"textarea",name:r,id:n,setFocus:a,inputRef:F,hasError:i,placeholder:c,label:u,labelClassName:Z(d,u_,d_)},p,{"data-ppui":"true"})),h=Z(p_,i&&m_);if(o){var y="";l&&(y=O?"".concat(l,"/"):"/".concat(l));var b=O?"".concat(y).concat($):"".concat($).concat(y),w=function(e,t,r,n){return r?e&&e.messageFormatter?e.messageFormatter({id:r}).format(n):r:t}(N,"".concat($," out of ").concat(l," characters used"),s,{charCount:$,maxCharacters:l}),x=Z(h_,i&&g_);return v().createElement("div",{className:h,onClick:M,"data-ppui":"true"},f,v().createElement("div",{className:x,role:"status","aria-live":"polite","aria-atomic":"true","aria-label":w,"data-ppui":"true"},b))}return v().createElement("div",{className:h,onClick:M,"data-ppui":"true"},f)},errorText:w,successText:x,"data-ppui-info":"text-area_1.2.2__8.12.0"},k))})),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-display");const b_=`calc(${x.size.tapTarget.default} + ${x.space[150]})`,w_=`calc(${x.typography.caption.lineHeight} + ${x.space[75]})`;(0,w.style)({paddingTop:x.space[150],paddingBottom:x.space[150],paddingLeft:0,selectors:{"[dir='rtl'] & ":{paddingLeft:b_}}},"text-display_no_label_control"),(0,w.style)({border:0,paddingLeft:0,paddingTop:w_,paddingBottom:0,minHeight:"2.875rem",display:"block",backgroundColor:"transparent",overflowWrap:"break-word",selectors:{"[dir='rtl'] & ":{paddingRight:0}}},"text-display_control"),(0,w.style)({top:0,left:0,selectors:{"[dir='rtl'] & ":{left:b_,right:0}}},"text-display_label"),(0,w.style)({top:0},"text-display_icon_right"),(0,w.style)({right:b_},"text-display_label_icon_right"),(0,w.style)({paddingRight:`calc(${b_} - ${x.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${b_} - ${x.border.thickness.normal})`}}},"text-display_control_icon_right"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-toast");const x_=`calc(-2*${x.space[200]})`,{ppuiEaseEnterSmall:k_,ppuiEaseExitSmall:__}=cn,S_=((0,w.style)([ho,$e,{display:"flex",padding:x.space[200],borderRadius:x.border.radius.lg,left:0,right:0,margin:"auto",whiteSpace:"normal",maxWidth:"30rem",pointerEvents:"auto"}],"toast_base"),(0,w.style)({alignItems:"center",display:"flex"},"toast_message"),(0,w.style)({display:"flex",position:"fixed",top:x.space[200],zIndex:1100,left:"50%",transform:"translateX(-50%)",width:`calc(100% - ${x.space[200]} * 2)`,visibility:"hidden",opacity:0,pointerEvents:"none",selectors:{"&[aria-hidden='false']":{visibility:"visible",opacity:1}}},"toast_container"),(0,w.keyframes)({"0%":{transform:`translate(-50%, ${x_})`,opacity:0},"100%":{visibility:"visible",transform:"translate(-50%, 0)",opacity:1}},"toast_fade-in")),E_=(0,w.keyframes)({"0%":{visibility:"visible",transform:"translate(-50%, 0)",opacity:1},"100%":{visibility:"hidden",transform:`translate(-50%, ${x_})`,opacity:0}},"toast_fade-out"),C_=((0,w.style)({animation:`${S_} ${x.motion.duration.enter.small} ${k_}`},"toast_show"),(0,w.style)({animation:`${E_} ${x.motion.duration.exit.small} ${__}`},"toast_hide"),{background:x.color.success.main,color:x.color.success.contrast});(0,w.style)({marginRight:x.space[100],height:x.size.icon.sm,flexShrink:"0",selectors:{"[dir='rtl'] &":{marginLeft:x.space[100],marginRight:0}}},"toast_icon"),(0,w.style)({background:x.color.system.main,color:x.color.system.contrast},"toast_info"),(0,w.style)(C_,"toast_success"),(0,w.style)(C_,"toast_favorite"),b.endFileScope(),b.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-section");const $_=(0,w.style)({display:"flex",justifyContent:"space-between",marginBottom:x.space[50],height:"1.5rem"},"section_title-container"),A_=(0,w.style)({marginBottom:x.space[150]},"section_header"),T_=(0,w.style)({margin:`${x.space[25]} 0`},"section_title"),O_=(0,w.style)({display:"flex",cursor:"pointer",":focus":{...Fn},border:"none",background:"inherit",borderRadius:x.border.radius.xs,alignItems:"center",paddingLeft:x.space[100],columnGap:x.space[25]},"section_action-container"),P_=(0,w.style)({color:x.color.background.mediumContrast},"section_caption-text"),z_=(0,w.style)({display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-start",rowGap:x.space[150]},"section_content-area"),F_=(0,w.style)([Fe,{margin:`${x.space[150]} 0`,color:x.color.background.mediumContrast}],"section_footer"),N_=(0,w.style)({selectors:{"[dir='rtl'] &":{transform:"rotate(180deg)"}}},"section_action-icon");b.endFileScope();var R_=function(e){var t=e.label,r=e.onClick;return v().createElement("button",{className:O_,onClick:function(e){return r(e)},onKeyDown:function(e){!function(e,t){"Enter"===e.key&&t(e)}(e,r)},"data-ppui":"true"},t&&v().createElement(an,{clampAtLine:2,className:P_,"data-ppui":"true"},t),v().createElement(Pa,{className:N_,size:"xs",color:"sysColorBackgroundMediumContrast","data-ppui":"true"}))},I_=function(e){var t=e.title,r=e.subTitle,n=e.action;return v().createElement(v().Fragment,null,v().createElement("div",{className:$_,"data-ppui":"true"},t&&v().createElement(ln,{className:T_,type:"medium","data-ppui":"true"},t),n&&v().createElement(R_,{label:n.label,onClick:n.onClick,"data-ppui":"true"})),r&&v().createElement(an,{clampAtLine:2,className:P_,"data-ppui":"true"},r))},L_=["variant","children","className","id"],M_=["children","className"],D_=["children","className"],H_=["children"],B_=function(e){var t=e.children,r=g(e,H_);return v().createElement("section",m({},r,{"data-ppui":"true"}),t)};B_.Header=function(e){var t=e.variant,r=void 0===t?"default":t,n=e.children,a=e.className,i=e.id,o=g(e,L_);return v().createElement("header",{className:Z(A_,a),id:i,"data-ppui":"true"},function(){switch(r){case"default":return v().createElement(I_,m({},o,{"data-ppui":"true"}));case"custom":return v().createElement(v().Fragment,null,n);default:return v().createElement(v().Fragment,null)}}())},B_.Content=function(e){var t=e.children,r=e.className,n=g(e,D_);return v().createElement("article",m({className:Z(z_,r)},n,{"data-ppui":"true"}),t)},B_.Footer=function(e){var t=e.children,r=e.className,n=g(e,M_);return v().createElement("footer",m({className:Z(F_,r)},n,{"data-ppui":"true"}),t)};var j_=r(867),W_=function(e){var t=e.children,r=e.styleOverrides,n=void 0===r?{}:r,a=Object.keys(n).length>0?function(e,t){var r={};if("object"==typeof t){var n=e;(0,j_.Bx)(t,((e,t)=>{if(null!=e){var a=(0,j_.Jt)(n,t);r[(0,j_.Tm)(a)]=String(e)}}))}else{var a=e;for(var i in a){var o=a[i];null!=o&&(r[(0,j_.Tm)(i)]=o)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),r}(x,n):{};return u().createElement(S,{theme:k,style:{width:"100%"}},u().createElement("div",{style:a},t))};W_.propTypes={children:h().node,styleOverrides:h().object};const V_=W_;var U_=r(150),q_=r(151),G_=U_.create({tag:"zoid-popup",url:function(e){return e.props.url},dimensions:function(e){var t=e.props;return{width:t.width,height:t.height}},domain:[/^https:\/\/[a-z0-9.-]*\.paypal\.(com|cn)$/],defaultContext:U_.CONTEXT.POPUP,props:{onComplete:{type:"function",required:!0},onClose:{type:"function",required:!0},getAccessToken:{type:"function",required:!1}},containerTemplate:function(e){var t=e.uid,r=e.tag,n=e.context,a=e.focus,i=e.close,o=e.doc;function l(e){return e.preventDefault(),e.stopPropagation(),i()}return q_.node("div",{id:t,onClick:function(e){return e.preventDefault(),e.stopPropagation(),a()},class:"".concat(r," ").concat(r,"-context-").concat(n," ").concat(r,"-focus")},q_.node("a",{href:"#",onClick:l,class:"".concat(r,"-close")}),q_.node("a",{href:"#",onClick:l,class:"".concat(r,"-close")}),q_.node("style",null,"\n #".concat(t," {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.8);\n }\n #").concat(t,".").concat(r,"-context-").concat(U_.CONTEXT.POPUP," {\n cursor: pointer;\n }\n #").concat(t," .").concat(r,"-close {\n position: absolute;\n right: 16px;\n top: 16px;\n width: 16px;\n height: 16px;\n opacity: 0.6;\n }\n #").concat(t," .").concat(r,"-close:hover {\n opacity: 1;\n }\n #").concat(t," .").concat(r,"-close:before,\n #").concat(t," .").concat(r,"-close:after {\n position: absolute;\n left: 8px;\n content: ' ';\n height: 16px;\n width: 2px;\n background-color: white;\n }\n #").concat(t," .").concat(r,"-close:before {\n transform: rotate(45deg);\n }\n #").concat(t," .").concat(r,"-close:after {\n transform: rotate(-45deg);\n }\n "))).render(q_.dom({doc:o}))}});const K_=function(e){var t=e.url,r=e.width,n=e.height,a=e.showPopUp,i=e.partnerName,o=e.childComponents,l=e.setShowPopUp,s=e.styles,d=e.onError,p=e.onComplete,f=e.getAccessToken,h=function(){l(!1)},m=function(e){var t;null===(t=document.getElementsByClassName("zoid-popup-close"))||void 0===t||null===(t=t[0])||void 0===t||t.click(),p(e)};return(0,c.useEffect)((function(){var e=new Set,t=function(t){var r,n=(t.data||{}).type;n&&!e.has(n)&&("EMBEDDED_LOGIN_SUCCESS"===n&&(e.add(n),t.source&&t.source.postMessage({type:"APPLY_PARENT_DATA",styles:s,partnerName:i,origin:null===(r=window)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.origin},"*")),"DATA_STORED_FAILED"===n&&(e.add(n),d()),"DATA_STORED_SUCCESS"===n&&(e.add(n),m()))};return window.addEventListener("message",t),function(){window.removeEventListener("message",t)}}),[]),(0,c.useEffect)((function(){a&&function(e){var t=e.onComplete,r=e.onClose,n=e.width,a=e.height,i=e.url,o=e.getAccessToken;G_({onComplete:t,onClose:r,getAccessToken:o,width:n,height:a,url:i}).render("#zoidFrame",U_.CONTEXT.POPUP)}({onComplete:m,onClose:h,width:r,height:n,url:t,getAccessToken:f})}),[a]),u().createElement("div",{id:"zoidFrame"},o)},Y_={development:{fileNamePrefix:"development.",host:"localhost.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.sandbox.paypal.com/webapps/tracking/ts"},staging:{fileNamePrefix:"staging.",host:"www.msmaster.qa.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.msmaster.qa.paypal.com/webapps/tracking/ts"},sandbox:{fileNamePrefix:"sandbox.",host:"www.sandbox.paypal.com",paScriptUrl:"https://www.paypalobjects.com/pa/js/min/pa.js",fptiUrl:"https://t.paypal.com/ts"},production:{fileNamePrefix:"",host:"www.paypal.com",paScriptUrl:"https://www.paypalobjects.com/pa/js/min/pa.js",fptiUrl:"https://t.paypal.com/ts"},te1:{fileNamePrefix:"te-e2e-embedded-path-testing.",host:"www.te-e2e-embedded-path-testing.qa.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.msmaster.qa.paypal.com/webapps/tracking/ts"},te2:{fileNamePrefix:"te-hybrid-path-integration.",host:"www.te-hybrid-path-integration.qa.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.msmaster.qa.paypal.com/webapps/tracking/ts"},te3:{fileNamePrefix:"te-eop-release.",host:"www.te-eop-release.qa.paypal.com",paScriptUrl:"https://www.paypalobjects.com/staging/pa/js/min/pa.js",fptiUrl:"https://www.msmaster.qa.paypal.com/webapps/tracking/ts"}};var X_=function(e){return e?Y_[e].host:null!=="www.paypal.com"?"www.paypal.com":Y_.production.host};function Z_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Q_=function(e){var t,r,n=e.onComplete,a=e.getAccessToken,i=e.styles,o=e.onError,l=e.partnerName,s=e.payerId,d=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Z_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z_(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1],h=function(){return u().createElement($b,{title:"Please login with your email and password.",subTitle:"",primaryButtonOptions:{id:"zoidButton",title:"Log In",onClick:function(e){e.preventDefault(),f(!0)}}})};if("function"!=typeof a){var m=new URLSearchParams({payerId:s}),g=" https://".concat(X_(e.env),"/fundsmanagement/embedded?").concat(m.toString());return u().createElement(K_,{styles:i,partnerName:l,onError:o,url:"https://".concat(X_(e.env),"/signin/?returnUri=").concat(encodeURIComponent(g)),width:768,height:1200,onComplete:n,setShowPopUp:f,showPopUp:p,childComponents:h()})}return u().createElement(K_,{styles:i,partnerName:l,onError:o,url:"https://".concat(X_(e.env),"/fundsmanagement/login-redirect"),getAccessToken:a,width:768,height:1200,onComplete:n,setShowPopUp:f,showPopUp:p,childComponents:h()})};Q_.propTypes={onComplete:h().func.isRequired,getAccessToken:h().func,styles:h().object,onError:h().func.isRequired,partnerName:h().string,payerId:h().string,name:h().string,label:h().string.isRequired,columnConfig:h().object,url:h().string,value:h().string,trackButtonClick:h().func},Q_.defaultProps={columnConfig:{xs:12,sm:12,md:8,lg:7}};const J_=Q_,eS=function(e){var t=e.isLoading,r=e.children;return u().createElement(u().Fragment,null,t&&u().createElement("div",{id:"loadingWrapper",style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},u().createElement(vl,{size:"lg"})),r)};function tS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rS(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var nS="PROMPT_LOGIN",aS="LOGGED_IN",iS="ERROR",oS=function(e){var t=e.url,r=e.getAccessToken,n=e.style,a=e.partnerName,i=e.payerId,o=tS((0,c.useState)(nS),2),l=o[0],s=o[1],d=tS((0,c.useState)(!0),2),p=d[0],f=d[1];(0,c.useEffect)((function(){window.sessionStorage.getItem("embeddedExperienceLoggedIn")?(s(aS),f(!0)):(s(nS),f(!1))}),[]);var h=function(){setTimeout((function(){f(!1)}),2e3)},m=function(){s(nS),f(!1),window.sessionStorage.removeItem("embeddedExperienceLoggedIn")},g=function(){s(aS),f(!0),window.sessionStorage.setItem("embeddedExperienceLoggedIn","true")},y=function(){s(iS),f(!1)},v=(0,c.useMemo)((function(){return l===nS?u().createElement(J_,{styles:n,partnerName:a,onError:y,onComplete:g,getAccessToken:r,payerId:i}):l===iS?u().createElement($b,{title:"Something went wrong",subTitle:"This happens sometimes – trying again may help fix the problem.",primaryButtonOptions:{title:"Try Again",onClick:function(){return s(nS)}}}):u().createElement(eS,{isLoading:p},u().createElement("iframe",{src:t,onLoad:h,onError:m,style:{border:"none",position:"absolute",top:0,right:0,bottom:0,left:0,width:"100%",height:"100%"}}))}),[l,p,t]);return u().createElement(V_,null,u().createElement("div",{style:{width:"100%",position:"absolute",height:"100%"}},v))};oS.propTypes={url:h().string.isRequired,getAccessToken:h().func,style:h().object,partnerName:h().string,payerId:h().string};const lS=oS;var sS={MONEY:{url:function(e){return"https://".concat(X_(e),"/fundsmanagement/money")}},BANKS:{url:function(e){return"https://".concat(X_(e),"/fundsmanagement/banks")}},ACTION_WIDGETS:{url:function(e){return"https://".concat(X_(e),"/smartrec/actionwidget")}},PAID_FEATURES:{url:function(e){return"https://".concat(X_(e),"/vas-mgmt")}},PHONE:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/phone")}},LIFT_LIMITS:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/liftLimits")}},LANGUAGE_EDIT:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/language/edit")}},TIMEZONE_EDIT:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/timezone/edit")}},INSIGHTS:{url:function(e){return"https://".concat(X_(e),"/performance")}},REPORT:{url:function(e){return"https://".concat(X_(e),"/reports")}},PAYMENT_PREFERENCES:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/preferences/payments")}},VIEW_BUSINESS_PROFILE:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/unified-profile/business")}},CSM:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/customerServiceMessage")}},ACCOUNT_SETTINGS_PAYMENT_PREFERENCES:{url:function(e){return"https://".concat(X_(e),"/unifiedsettings/account/paymentPreferences")}},MERCHANT_LISTING:{url:function(e){return"https://".concat(X_(e),"/unifiedtransactions/")}},ACTIVITY_REFUND:{url:function(e){return"https://".concat(X_(e),"/unifiedtransactions/refund")}},WORKING_CAPITAL:{url:function(e){return"https://".concat(X_(e),"/workingcapital")}}},cS={};!function(e,t){Object.keys(sS).forEach((function(r){e.PayPal=e.PayPal||{};var n={initialize:function(e){var n=t.getElementById(e.targetElementId);n?p().render(u().createElement(lS,{url:sS[r].url(e.env),style:e.style,partnerName:e.partnerName,getAccessToken:e.getAccessToken,payerId:e.payerId}),n):console.error("Target element not found")}};e.PayPal[r]=n,cS[r]=n}))}(window,document);const uS=cS},937:e=>{"use strict";var t={}.hasOwnProperty,r=/[ -,\.\/:-@\[-\^`\{-~]/,n=/[ -,\.\/:-@\[\]\^`\{-~]/,a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,i=function e(i,o){"single"!=(o=function(e,r){if(!e)return r;var n={};for(var a in r)n[a]=t.call(e,a)?e[a]:r[a];return n}(o,e.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var l="double"==o.quotes?'"':"'",s=o.isIdentifier,c=i.charAt(0),u="",d=0,p=i.length;d<p;){var f=i.charAt(d++),h=f.charCodeAt(),m=void 0;if(h<32||h>126){if(h>=55296&&h<=56319&&d<p){var g=i.charCodeAt(d++);56320==(64512&g)?h=((1023&h)<<10)+(1023&g)+65536:d--}m="\\"+h.toString(16).toUpperCase()+" "}else m=o.escapeEverything?r.test(f)?"\\"+f:"\\"+h.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?"\\"+h.toString(16).toUpperCase()+" ":"\\"==f||!s&&('"'==f&&l==f||"'"==f&&l==f)||s&&n.test(f)?"\\"+f:f;u+=m}return s&&(/^-[-\d]/.test(u)?u="\\-"+u.slice(1):/\d/.test(c)&&(u="\\3"+c+" "+u.slice(1))),u=u.replace(a,(function(e,t,r){return t&&t.length%2?e:(t||"")+r})),!s&&o.wrap?l+u+l:u};i.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},i.version="3.0.0",e.exports=i},744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function a(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function l(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||a,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?s.arrayMerge(e,r,s):function(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach((function(t){a[t]=n(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))})),a}(e,r,s):n(r,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var s=l;e.exports=s},780:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t),r.d(t,"ElementNode",(function(){return i})),r.d(t,"FragmentNode",(function(){return o})),r.d(t,"TextNode",(function(){return l})),r.d(t,"ComponentNode",(function(){return s})),r.d(t,"node",(function(){return f})),r.d(t,"Fragment",(function(){return h})),r.d(t,"text",(function(){return m})),r.d(t,"dom",(function(){return _})),r.d(t,"react",(function(){return $})),r.d(t,"html",(function(){return O})),r.d(t,"preact",(function(){return z})),r.d(t,"regex",(function(){return F})),r.d(t,"NODE_TYPE",(function(){return n})),r.d(t,"Style",(function(){return N})),r.d(t,"Regex",(function(){return L})),r.d(t,"RegexText",(function(){return M})),r.d(t,"RegexWord",(function(){return D})),r.d(t,"RegexCharacters",(function(){return H})),r.d(t,"RegexGroup",(function(){return B})),r.d(t,"RegexUnion",(function(){return j}));var n={ELEMENT:"element",TEXT:"text",COMPONENT:"component",FRAGMENT:"fragment"};function a(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n].render(t);if(a)if(Array.isArray(a))for(var i=0;i<a.length;i++){var o=a[i];o&&r.push(o)}else r.push(a)}return r}var i=function(){function e(e,t,r){this.type=n.ELEMENT,this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=t||{},this.children=r;var a=this.props.onRender;"function"==typeof a&&(this.onRender=a,delete t.onRender)}var t=e.prototype;return t.render=function(e){var t=e(this);return this.onRender&&this.onRender(t),t},t.renderChildren=function(e){return a(this.children,e)},e}(),o=function(){function e(e){this.type=n.FRAGMENT,this.children=void 0,this.children=e}return e.prototype.render=function(e){return a(this.children,e)},e}(),l=function(){function e(e){this.type=n.TEXT,this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),s=function(){function e(e,t,r){this.type=n.COMPONENT,this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=t||{},this.children=r,this.props.children=r}var t=e.prototype;return t.renderComponent=function(e){var t=function(e){var t=c(Array.isArray(e)?e:[e]);return 1===t.length?t[0]:t.length>1?new o(t):void 0}(this.component(this.props,this.children));if(t)return t.render(e)},t.render=function(e){return e(this)},t.renderChildren=function(e){return a(this.children,e)},e}();function c(e){for(var t=[],r=0;r<e.length;r++){var a=e[r];if(a)if("string"==typeof a||"number"==typeof a)t.push(new l(a.toString()));else{if("boolean"==typeof a)continue;if(Array.isArray(a))for(var i=0,o=c(a);i<o.length;i++)t.push(o[i]);else{if(!a||a.type!==n.ELEMENT&&a.type!==n.TEXT&&a.type!==n.COMPONENT)throw new TypeError("Unrecognized node type: "+typeof a);t.push(a)}}}return t}var u,d,p,f=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(n=c(n),"string"==typeof e)return new i(e,t,n);if("function"==typeof e)return new s(e,t,n);throw new TypeError("Expected jsx element to be a string or a function")},h=function(e,t){return t};function m(){return function e(t){if(t.type===n.COMPONENT)return[].concat(t.renderComponent(e)).join("");if(t.type===n.ELEMENT)throw new Error("Text renderer does not support basic elements");if(t.type===n.TEXT)return t.text;throw new TypeError("Unhandleable node: "+t.type)}}function g(e){return null!=e}var y=((u={}).svg="http://www.w3.org/2000/svg",u),v=((d={})["xlink:href"]="http://www.w3.org/1999/xlink",d);function b(e,t){return e.createTextNode(t.text)}function w(e,t){for(var r=t.props,n=0,a=Object.keys(r);n<a.length;n++){var i=a[n],o=r[i];if(null!=o&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof o)e.addEventListener(i.slice(2).toLowerCase(),o);else if("string"==typeof o||"number"==typeof o){var l=v[i];l?e.setAttributeNS(l,i,o.toString()):e.setAttribute(i,o.toString())}else"boolean"==typeof o&&!0===o&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||r.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(16*Math.random()))})))}var x=((p={}).iframe=function(e,t){var r=t.children[0];if(1!==t.children.length||!r||r.type!==n.ELEMENT||"html"!==r.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var t=e.contentWindow;if(!t)throw new Error("Expected frame to have contentWindow");for(var n=t.document,a=n.documentElement;a.children&&a.children.length;)a.removeChild(a.children[0]);for(var i=r.render(_({doc:n}));i.children.length;)a.appendChild(i.children[0])}))},p.script=function(e,t){var r=t.children[0];if(1!==t.children.length||!r||r.type!==n.TEXT)throw new Error("Expected only single text node as child of script element");e.text=r.text},p.default=function(e,t,r){for(var n=0,a=t.renderChildren(r);n<a.length;n++)e.appendChild(a[n])},p);function k(e,t,r,n){if(t.props.hasOwnProperty("innerHTML")){if(t.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var a=t.props.innerHTML;if("string"!=typeof a)throw new TypeError("innerHTML prop must be string");"script"===t.name?e.text=a:(e.innerHTML=a,function(e,t){void 0===t&&(t=window.document);for(var r=0,n=e.querySelectorAll("script");r<n.length;r++){var a=n[r],i=a.parentNode;if(i){var o=t.createElement("script");o.text=a.textContent,i.replaceChild(o,a)}}}(e,r))}else(x[t.name]||x.default)(e,t,n)}function _(e){void 0===e&&(e={});var t=e.doc,r=void 0===t?document:t;return function e(t){if(t.type===n.COMPONENT)return t.renderComponent(e);if(t.type===n.TEXT)return b(r,t);if(t.type===n.ELEMENT){var a=y[t.name.toLowerCase()];if(a)return function e(t,a){if(t.type===n.COMPONENT)return t.renderComponent((function(t){return e(t,a)}));if(t.type===n.TEXT)return b(r,t);if(t.type===n.ELEMENT){var i=function(e,t,r){return e.createElementNS(r,t.name)}(r,t,a);return w(i,t),k(i,t,r,(function(t){return e(t,a)})),i}throw new TypeError("Unhandleable node")}(t,a);var i=function(e,t){return t.props.el?t.props.el:e.createElement(t.name)}(r,t);return w(i,t),k(i,t,r,e),i}throw new TypeError("Unhandleable node")}}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function E(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}var C=["innerHTML","class"];function $(e){var t=(void 0===e?{}:e).React;if(!t)throw new Error("Must pass React library to react renderer");return function e(r){if(r.type===n.COMPONENT)return t.createElement.apply(t,[function(){return r.renderComponent(e)||null},r.props].concat(r.renderChildren(e)));if(r.type===n.ELEMENT)return t.createElement.apply(t,[r.name,(a=r.props,i=a.innerHTML,S({dangerouslySetInnerHTML:i?{__html:i}:null,className:a.class},E(a,C)))].concat(r.renderChildren(e)));var a,i;if(r.type===n.TEXT)return r.text;throw new TypeError("Unhandleable node")}}var A={br:!0};function T(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function O(){return function e(t){if(t.type===n.COMPONENT)return[].concat(t.renderComponent(e)).join("");if(t.type===n.ELEMENT){var r=(i=t.props,(o=Object.keys(i).filter((function(e){var t=i[e];return"innerHTML"!==e&&("string"==typeof t||"number"==typeof t||!0===t)}))).length?" "+o.map((function(e){var t=i[e];if(!0===t)return""+T(e);if("string"!=typeof t&&"number"!=typeof t)throw new TypeError("Unexpected prop type: "+typeof t);return""===t?T(e):T(e)+'="'+T(t.toString())+'"'})).join(" "):"");if(A[t.name])return"<"+t.name+r+" />";var a="string"==typeof t.props.innerHTML?t.props.innerHTML:t.renderChildren(e).join("");return"<"+t.name+r+">"+a+"</"+t.name+">"}var i,o;if(t.type===n.TEXT)return T(t.text);throw new TypeError("Unhandleable node: "+t.type)}}var P=["innerHTML"];function z(e){var t=(void 0===e?{}:e).Preact;if(!t)throw new Error("Must pass Preact library to react renderer");return function e(r){if(r.type===n.COMPONENT)return t.h.apply(t,[function(){return r.renderComponent(e)||null},r.props].concat(r.renderChildren(e)));if(r.type===n.ELEMENT)return t.h.apply(t,[r.name,(a=r.props,i=a.innerHTML,S({dangerouslySetInnerHTML:i?{__html:i}:null},E(a,P)))].concat(r.renderChildren(e)));var a,i;if(r.type===n.TEXT)return r.text;throw new TypeError("Unhandleable node")}}function F(){var e=m();return function(t){return new RegExp(e(t))}}function N(e){var t=e.css,r=e.nonce,n=e.children;return f(h,null,f("style",{innerHTML:"string"==typeof t?t:t._getCss(),nonce:r}),n)}F.node=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var i=f.apply(void 0,[e,t].concat(n));return e.renderer?i.render(e.renderer()):i};var R=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")},I=function(e,t){return(t=function(e,t){if(!t)throw new Error("Must pass children to "+e);return t}(e,t)).map((function(e){return e.type===n.TEXT?new l(R(e.text)):e}))};function L(e,t){var r=e.exact,n=void 0===r||r;return t=I("RegexGroup",t),n?["^"].concat(t,["$"]):t}function M(e,t){return I("RegexText",t)}function D(e,t){return function(e,t){if(t&&t.length)throw new Error("Must not pass children to RegexWord")}(0,t),"\\w+"}function H(e,t){return["["].concat(I("RegexText",t),["]"])}function B(e,t){var r=e.repeat,n=e.repeatMin,a=e.repeatMax,i=e.name,o=e.optional,s=void 0!==o&&o,c=e.capture,u=void 0===c||c,d=e.union,p=void 0!==d&&d;if(t=I("RegexGroup",t),g(r)&&(g(n)||g(a)))throw new Error("repeat can not be used with repeatMin or repeatMax");if(i&&!u)throw new Error("Named groups must be captured");if(p){for(var f=[],h=0,m=t;h<m.length;h++)f.push(m[h]),f.push(new l("|"));f.pop(),t=f}var y=[];return y.push(u?"(":"(?:"),i&&y.push("?<"+R(i)+">"),y.push.apply(y,t),y.push(")"),g(r)&&("number"==typeof r?y.push("{"+r+"}"):!0===r&&y.push("+")),(g(n)||g(a))&&y.push("{"+(n||"")+","+(a||"")+"}"),s&&y.push("?"),y}function j(e,t){for(var r=[],n=0,a=t=I("RegexGroup",t);n<a.length;n++)r.push(a[n]),r.push("|");return r.pop(),r}L.renderer=F}])},151:(e,t,r)=>{e.exports=r(780)},228:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,o,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))r.call(i,c)&&(l[c]=i[c]);if(t){o=t(i);for(var u=0;u<o.length;u++)n.call(i,o[u])&&(l[o[u]]=i[o[u]])}}return l}},633:e=>{var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},694:(e,t,r)=>{"use strict";var n=r(925);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},556:(e,t,r)=>{e.exports=r(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},551:(e,t,r)=>{"use strict";var n=r(664),a=r(228),i=r(982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(o(227));function l(e,t,r,n,a,i,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var s=!1,c=null,u=!1,d=null,p={onError:function(e){s=!0,c=e}};function f(e,t,r,n,a,i,o,u,d){s=!1,c=null,l.apply(p,arguments)}var h=null,m=null,g=null;function y(e,t,r){var n=e.type||"unknown-event";e.currentTarget=g(r),function(e,t,r,n,a,i,l,p,h){if(f.apply(this,arguments),s){if(!s)throw Error(o(198));var m=c;s=!1,c=null,u||(u=!0,d=m)}}(n,t,void 0,e),e.currentTarget=null}var v=null,b={};function w(){if(v)for(var e in b){var t=b[e],r=v.indexOf(e);if(!(-1<r))throw Error(o(96,e));if(!k[r]){if(!t.extractEvents)throw Error(o(97,e));for(var n in k[r]=t,r=t.eventTypes){var a=void 0,i=r[n],l=t,s=n;if(_.hasOwnProperty(s))throw Error(o(99,s));_[s]=i;var c=i.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&x(c[a],l,s);a=!0}else i.registrationName?(x(i.registrationName,l,s),a=!0):a=!1;if(!a)throw Error(o(98,n,e))}}}}function x(e,t,r){if(S[e])throw Error(o(100,e));S[e]=t,E[e]=t.eventTypes[r].dependencies}var k=[],_={},S={},E={};function C(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!b.hasOwnProperty(t)||b[t]!==n){if(b[t])throw Error(o(102,t));b[t]=n,r=!0}}r&&w()}var $=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),A=null,T=null,O=null;function P(e){if(e=m(e)){if("function"!=typeof A)throw Error(o(280));var t=e.stateNode;t&&(t=h(t),A(e.stateNode,e.type,t))}}function z(e){T?O?O.push(e):O=[e]:T=e}function F(){if(T){var e=T,t=O;if(O=T=null,P(e),t)for(e=0;e<t.length;e++)P(t[e])}}function N(e,t){return e(t)}function R(e,t,r,n,a){return e(t,r,n,a)}function I(){}var L=N,M=!1,D=!1;function H(){null===T&&null===O||(I(),F())}function B(e,t,r){if(D)return e(t,r);D=!0;try{return L(e,t,r)}finally{D=!1,H()}}var j=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W=Object.prototype.hasOwnProperty,V={},U={};function q(e,t,r,n,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new q(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new q(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new q(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Y);G[t]=new q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new q(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new q(e,1,!1,e.toLowerCase(),null,!0)}));var X=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(e,t,r,n){var a=G.hasOwnProperty(t)?G[t]:null;(null!==a?0===a.type:!n&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,a,n)&&(r=null),n||null===a?function(e){return!!W.call(U,e)||!W.call(V,e)&&(j.test(e)?U[e]=!0:(V[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,re=J?Symbol.for("react.fragment"):60107,ne=J?Symbol.for("react.strict_mode"):60108,ae=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,oe=J?Symbol.for("react.context"):60110,le=J?Symbol.for("react.concurrent_mode"):60111,se=J?Symbol.for("react.forward_ref"):60112,ce=J?Symbol.for("react.suspense"):60113,ue=J?Symbol.for("react.suspense_list"):60120,de=J?Symbol.for("react.memo"):60115,pe=J?Symbol.for("react.lazy"):60116,fe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case re:return"Fragment";case te:return"Portal";case ae:return"Profiler";case ne:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case oe:return"Context.Consumer";case ie:return"Context.Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case fe:return ge(e.render);case pe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,a=e._debugSource,i=ge(e.type);r=null,n&&(r=ge(n.type)),n=i,i="",a?i=" (at "+a.fileName.replace(Q,"")+":"+a.lineNumber+")":r&&(i=" (created by "+r+")"),r="\n in "+(n||"Unknown")+i}t+=r,e=e.return}while(e);return t}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=be(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function ke(e,t){var r=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function _e(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=ve(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Z(e,"checked",t,!1)}function Ee(e,t){Se(e,t);var r=ve(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?$e(e,t.type,r):t.hasOwnProperty("defaultValue")&&$e(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function $e(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ae(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Te(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ve(r),t=null,a=0;a<e.length;a++){if(e[a].value===r)return e[a].selected=!0,void(n&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:ve(r)}}function ze(e,t){var r=ve(t.value),n=ve(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ne(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Re(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ie,Le,Me=(Le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ie=Ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return Le(e,t)}))}:Le);function De(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function He(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Be={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},je={},We={};function Ve(e){if(je[e])return je[e];if(!Be[e])return e;var t,r=Be[e];for(t in r)if(r.hasOwnProperty(t)&&t in We)return je[e]=r[t];return e}$&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete Be.animationend.animation,delete Be.animationiteration.animation,delete Be.animationstart.animation),"TransitionEvent"in window||delete Be.transitionend.transition);var Ue=Ve("animationend"),qe=Ve("animationiteration"),Ge=Ve("animationstart"),Ke=Ve("transitionend"),Ye="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Qe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Qe(e)!==e)throw Error(o(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(n=a.return)){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return et(a),e;if(i===n)return et(a),t;i=i.sibling}throw Error(o(188))}if(r.return!==n.return)r=a,n=i;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,n=i;break}if(s===n){l=!0,n=a,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,n=a;break}if(s===n){l=!0,n=i,r=a;break}s=s.sibling}if(!l)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function nt(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var at=null;function it(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)y(e,t[n],r[n]);else t&&y(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ot(e){if(null!==e&&(at=rt(at,e)),e=at,at=null,e){if(nt(e,it),at)throw Error(o(95));if(u)throw e=d,u=!1,d=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!$)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function ut(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,r,n){if(ct.length){var a=ct.pop();return a.topLevelType=e,a.eventSystemFlags=n,a.nativeEvent=t,a.targetInst=r,a}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function pt(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=Or(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var a=lt(e.nativeEvent);n=e.topLevelType;var i=e.nativeEvent,o=e.eventSystemFlags;0===r&&(o|=64);for(var l=null,s=0;s<k.length;s++){var c=k[s];c&&(c=c.extractEvents(n,t,i,a,o))&&(l=rt(l,c))}ot(l)}}function ft(e,t,r){if(!r.has(e)){switch(e){case"scroll":Gt(t,"scroll",!0);break;case"focus":case"blur":Gt(t,"focus",!0),Gt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":st(e)&&Gt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ye.indexOf(e)&&qt(e,t)}r.set(e,null)}}var ht,mt,gt,yt=!1,vt=[],bt=null,wt=null,xt=null,kt=new Map,_t=new Map,St=[],Et="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function $t(e,t,r,n,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:a,container:n}}function At(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_t.delete(t.pointerId)}}function Tt(e,t,r,n,a,i){return null===e||e.nativeEvent!==i?(e=$t(t,r,n,a,i),null!==t&&null!==(t=Pr(t))&&mt(t),e):(e.eventSystemFlags|=n,e)}function Ot(e){var t=Or(e.target);if(null!==t){var r=Qe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Je(r)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){gt(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=Pr(t);return null!==r&&mt(r),e.blockedOn=t,!1}return!0}function zt(e,t,r){Pt(e)&&r.delete(t)}function Ft(){for(yt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=Pr(e.blockedOn))&&ht(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==bt&&Pt(bt)&&(bt=null),null!==wt&&Pt(wt)&&(wt=null),null!==xt&&Pt(xt)&&(xt=null),kt.forEach(zt),_t.forEach(zt)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Rt(e){function t(t){return Nt(t,e)}if(0<vt.length){Nt(vt[0],e);for(var r=1;r<vt.length;r++){var n=vt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==bt&&Nt(bt,e),null!==wt&&Nt(wt,e),null!==xt&&Nt(xt,e),kt.forEach(t),_t.forEach(t),r=0;r<St.length;r++)(n=St[r]).blockedOn===e&&(n.blockedOn=null);for(;0<St.length&&null===(r=St[0]).blockedOn;)Ot(r),null===r.blockedOn&&St.shift()}var It={},Lt=new Map,Mt=new Map,Dt=["abort","abort",Ue,"animationEnd",qe,"animationIteration",Ge,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ke,"transitionEnd","waiting","waiting"];function Ht(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],a=e[r+1],i="on"+(a[0].toUpperCase()+a.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n],eventPriority:t},Mt.set(n,t),Lt.set(n,i),It[a]=i}}Ht("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ht("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ht(Dt,2);for(var Bt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),jt=0;jt<Bt.length;jt++)Mt.set(Bt[jt],0);var Wt=i.unstable_UserBlockingPriority,Vt=i.unstable_runWithPriority,Ut=!0;function qt(e,t){Gt(t,e,!1)}function Gt(e,t,r){var n=Mt.get(t);switch(void 0===n?2:n){case 0:n=Kt.bind(null,t,1,e);break;case 1:n=Yt.bind(null,t,1,e);break;default:n=Xt.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Kt(e,t,r,n){M||I();var a=Xt,i=M;M=!0;try{R(a,e,t,r,n)}finally{(M=i)||H()}}function Yt(e,t,r,n){Vt(Wt,Xt.bind(null,e,t,r,n))}function Xt(e,t,r,n){if(Ut)if(0<vt.length&&-1<Et.indexOf(e))e=$t(null,e,t,r,n),vt.push(e);else{var a=Zt(e,t,r,n);if(null===a)At(e,n);else if(-1<Et.indexOf(e))e=$t(a,e,t,r,n),vt.push(e);else if(!function(e,t,r,n,a){switch(t){case"focus":return bt=Tt(bt,e,t,r,n,a),!0;case"dragenter":return wt=Tt(wt,e,t,r,n,a),!0;case"mouseover":return xt=Tt(xt,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return kt.set(i,Tt(kt.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,_t.set(i,Tt(_t.get(i)||null,e,t,r,n,a)),!0}return!1}(a,e,t,r,n)){At(e,n),e=dt(e,n,null,t);try{B(pt,e)}finally{ut(e)}}}}function Zt(e,t,r,n){if(null!==(r=Or(r=lt(n)))){var a=Qe(r);if(null===a)r=null;else{var i=a.tag;if(13===i){if(null!==(r=Je(a)))return r;r=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}e=dt(e,n,r,t);try{B(pt,e)}finally{ut(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];function er(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function tr(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),a=er(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}Object.keys(Qt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var rr=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nr(e,t){if(t){if(rr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62,""))}}function ar(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ir="http://www.w3.org/1999/xhtml";function or(e,t){var r=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=E[t];for(var n=0;n<t.length;n++)ft(t[n],e,r)}function lr(){}function sr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var r,n=cr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cr(n)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=sr();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=sr((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr="$",mr="/$",gr="$?",yr="$!",vr=null,br=null;function wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function xr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var kr="function"==typeof setTimeout?setTimeout:void 0,_r="function"==typeof clearTimeout?clearTimeout:void 0;function Sr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Er(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if(r===hr||r===yr||r===gr){if(0===t)return e;t--}else r===mr&&t++}e=e.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),$r="__reactInternalInstance$"+Cr,Ar="__reactEventHandlers$"+Cr,Tr="__reactContainere$"+Cr;function Or(e){var t=e[$r];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Tr]||r[$r]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Er(e);null!==e;){if(r=e[$r])return r;e=Er(e)}return t}r=(e=r).parentNode}return null}function Pr(e){return!(e=e[$r]||e[Tr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Fr(e){return e[Ar]||null}function Nr(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t){var r=e.stateNode;if(!r)return null;var n=h(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(o(231,t,typeof r));return r}function Ir(e,t,r){(t=Rr(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function Lr(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=Nr(t);for(t=r.length;0<t--;)Ir(r[t],"captured",e);for(t=0;t<r.length;t++)Ir(r[t],"bubbled",e)}}function Mr(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Rr(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function Dr(e){e&&e.dispatchConfig.registrationName&&Mr(e._targetInst,null,e)}function Hr(e){nt(e,Lr)}var Br=null,jr=null,Wr=null;function Vr(){if(Wr)return Wr;var e,t,r=jr,n=r.length,a="value"in Br?Br.value:Br.textContent,i=a.length;for(e=0;e<n&&r[e]===a[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===a[i-t];t++);return Wr=a.slice(e,1<t?1-t:void 0)}function Ur(){return!0}function qr(){return!1}function Gr(e,t,r,n){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(r):"target"===a?this.target=n:this[a]=r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Ur:qr,this.isPropagationStopped=qr,this}function Kr(e,t,r,n){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,r,n),a}return new this(e,t,r,n)}function Yr(e){if(!(e instanceof this))throw Error(o(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Xr(e){e.eventPool=[],e.getPooled=Kr,e.release=Yr}a(Gr.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ur)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ur)},persist:function(){this.isPersistent=Ur},isPersistent:qr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qr,this._dispatchInstances=this._dispatchListeners=null}}),Gr.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gr.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var i=new t;return a(i,r.prototype),r.prototype=i,r.prototype.constructor=r,r.Interface=a({},n.Interface,e),r.extend=n.extend,Xr(r),r},Xr(Gr);var Zr=Gr.extend({data:null}),Qr=Gr.extend({data:null}),Jr=[9,13,27,32],en=$&&"CompositionEvent"in window,tn=null;$&&"documentMode"in document&&(tn=document.documentMode);var rn=$&&"TextEvent"in window&&!tn,nn=$&&(!en||tn&&8<tn&&11>=tn),an=String.fromCharCode(32),on={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ln=!1;function sn(e,t){switch(e){case"keyup":return-1!==Jr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function cn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var un=!1,dn={eventTypes:on,extractEvents:function(e,t,r,n){var a;if(en)e:{switch(e){case"compositionstart":var i=on.compositionStart;break e;case"compositionend":i=on.compositionEnd;break e;case"compositionupdate":i=on.compositionUpdate;break e}i=void 0}else un?sn(e,r)&&(i=on.compositionEnd):"keydown"===e&&229===r.keyCode&&(i=on.compositionStart);return i?(nn&&"ko"!==r.locale&&(un||i!==on.compositionStart?i===on.compositionEnd&&un&&(a=Vr()):(jr="value"in(Br=n)?Br.value:Br.textContent,un=!0)),i=Zr.getPooled(i,t,r,n),(a||null!==(a=cn(r)))&&(i.data=a),Hr(i),a=i):a=null,(e=rn?function(e,t){switch(e){case"compositionend":return cn(t);case"keypress":return 32!==t.which?null:(ln=!0,an);case"textInput":return(e=t.data)===an&&ln?null:e;default:return null}}(e,r):function(e,t){if(un)return"compositionend"===e||!en&&sn(e,t)?(e=Vr(),Wr=jr=Br=null,un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nn&&"ko"!==t.locale?null:t.data}}(e,r))?((t=Qr.getPooled(on.beforeInput,t,r,n)).data=e,Hr(t)):t=null,null===a?t:null===t?a:[a,t]}},pn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!pn[e.type]:"textarea"===t}var hn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function mn(e,t,r){return(e=Gr.getPooled(hn.change,e,t,r)).type="change",z(r),Hr(e),e}var gn=null,yn=null;function vn(e){ot(e)}function bn(e){if(xe(zr(e)))return e}function wn(e,t){if("change"===e)return t}var xn=!1;function kn(){gn&&(gn.detachEvent("onpropertychange",_n),yn=gn=null)}function _n(e){if("value"===e.propertyName&&bn(yn))if(e=mn(yn,e,lt(e)),M)ot(e);else{M=!0;try{N(vn,e)}finally{M=!1,H()}}}function Sn(e,t,r){"focus"===e?(kn(),yn=r,(gn=t).attachEvent("onpropertychange",_n)):"blur"===e&&kn()}function En(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return bn(yn)}function Cn(e,t){if("click"===e)return bn(t)}function $n(e,t){if("input"===e||"change"===e)return bn(t)}$&&(xn=st("input")&&(!document.documentMode||9<document.documentMode));var An={eventTypes:hn,_isInputEventSupported:xn,extractEvents:function(e,t,r,n){var a=t?zr(t):window,i=a.nodeName&&a.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===a.type)var o=wn;else if(fn(a))if(xn)o=$n;else{o=En;var l=Sn}else(i=a.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(o=Cn);if(o&&(o=o(e,t)))return mn(o,r,n);l&&l(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&$e(a,"number",a.value)}},Tn=Gr.extend({view:null,detail:null}),On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function zn(){return Pn}var Fn=0,Nn=0,Rn=!1,In=!1,Ln=Tn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:zn,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Fn;return Fn=e.screenX,Rn?"mousemove"===e.type?e.screenX-t:0:(Rn=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Nn;return Nn=e.screenY,In?"mousemove"===e.type?e.screenY-t:0:(In=!0,0)}}),Mn=Ln.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Dn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Hn={eventTypes:Dn,extractEvents:function(e,t,r,n,a){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&!(32&a)&&(r.relatedTarget||r.fromElement)||!o&&!i)return null;if(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,null!==(t=(t=r.relatedTarget||r.toElement)?Or(t):null)&&(t!==Qe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):o=null,o===t)return null;if("mouseout"===e||"mouseover"===e)var l=Ln,s=Dn.mouseLeave,c=Dn.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Mn,s=Dn.pointerLeave,c=Dn.pointerEnter,u="pointer");if(e=null==o?i:zr(o),i=null==t?i:zr(t),(s=l.getPooled(s,o,r,n)).type=u+"leave",s.target=e,s.relatedTarget=i,(r=l.getPooled(c,t,r,n)).type=u+"enter",r.target=i,r.relatedTarget=e,u=t,(n=o)&&u)e:{for(c=u,o=0,e=l=n;e;e=Nr(e))o++;for(e=0,t=c;t;t=Nr(t))e++;for(;0<o-e;)l=Nr(l),o--;for(;0<e-o;)c=Nr(c),e--;for(;o--;){if(l===c||l===c.alternate)break e;l=Nr(l),c=Nr(c)}l=null}else l=null;for(c=l,l=[];n&&n!==c&&(null===(o=n.alternate)||o!==c);)l.push(n),n=Nr(n);for(n=[];u&&u!==c&&(null===(o=u.alternate)||o!==c);)n.push(u),u=Nr(u);for(u=0;u<l.length;u++)Mr(l[u],"bubbled",s);for(u=n.length;0<u--;)Mr(n[u],"captured",r);return 64&a?[s,r]:[s]}},Bn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},jn=Object.prototype.hasOwnProperty;function Wn(e,t){if(Bn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!jn.call(t,r[n])||!Bn(e[r[n]],t[r[n]]))return!1;return!0}var Vn=$&&"documentMode"in document&&11>=document.documentMode,Un={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qn=null,Gn=null,Kn=null,Yn=!1;function Xn(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yn||null==qn||qn!==sr(r)?null:(r="selectionStart"in(r=qn)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Kn&&Wn(Kn,r)?null:(Kn=r,(e=Gr.getPooled(Un.select,Gn,e,t)).type="select",e.target=qn,Hr(e),e))}var Zn={eventTypes:Un,extractEvents:function(e,t,r,n,a,i){if(!(i=!(a=i||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{a=Ze(a),i=E.onSelect;for(var o=0;o<i.length;o++)if(!a.has(i[o])){a=!1;break e}a=!0}i=!a}if(i)return null;switch(a=t?zr(t):window,e){case"focus":(fn(a)||"true"===a.contentEditable)&&(qn=a,Gn=t,Kn=null);break;case"blur":Kn=Gn=qn=null;break;case"mousedown":Yn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yn=!1,Xn(r,n);case"selectionchange":if(Vn)break;case"keydown":case"keyup":return Xn(r,n)}return null}},Qn=Gr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jn=Gr.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ea=Tn.extend({relatedTarget:null});function ta(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ra={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},na={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},aa=Tn.extend({key:function(e){if(e.key){var t=ra[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ta(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?na[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:zn,charCode:function(e){return"keypress"===e.type?ta(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ta(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ia=Ln.extend({dataTransfer:null}),oa=Tn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:zn}),la=Gr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),sa=Ln.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ca={eventTypes:It,extractEvents:function(e,t,r,n){var a=Lt.get(e);if(!a)return null;switch(e){case"keypress":if(0===ta(r))return null;case"keydown":case"keyup":e=aa;break;case"blur":case"focus":e=ea;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ln;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ia;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oa;break;case Ue:case qe:case Ge:e=Qn;break;case Ke:e=la;break;case"scroll":e=Tn;break;case"wheel":e=sa;break;case"copy":case"cut":case"paste":e=Jn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mn;break;default:e=Gr}return Hr(t=e.getPooled(a,t,r,n)),t}};if(v)throw Error(o(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Fr,m=Pr,g=zr,C({SimpleEventPlugin:ca,EnterLeaveEventPlugin:Hn,ChangeEventPlugin:An,SelectEventPlugin:Zn,BeforeInputEventPlugin:dn});var ua=[],da=-1;function pa(e){0>da||(e.current=ua[da],ua[da]=null,da--)}function fa(e,t){da++,ua[da]=e.current,e.current=t}var ha={},ma={current:ha},ga={current:!1},ya=ha;function va(e,t){var r=e.type.contextTypes;if(!r)return ha;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in r)i[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ba(e){return null!=e.childContextTypes}function wa(){pa(ga),pa(ma)}function xa(e,t,r){if(ma.current!==ha)throw Error(o(168));fa(ma,t),fa(ga,r)}function ka(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in e))throw Error(o(108,ge(t)||"Unknown",i));return a({},r,{},n)}function _a(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ha,ya=ma.current,fa(ma,e),fa(ga,ga.current),!0}function Sa(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=ka(e,t,ya),n.__reactInternalMemoizedMergedChildContext=e,pa(ga),pa(ma),fa(ma,e)):pa(ga),fa(ga,r)}var Ea=i.unstable_runWithPriority,Ca=i.unstable_scheduleCallback,$a=i.unstable_cancelCallback,Aa=i.unstable_requestPaint,Ta=i.unstable_now,Oa=i.unstable_getCurrentPriorityLevel,Pa=i.unstable_ImmediatePriority,za=i.unstable_UserBlockingPriority,Fa=i.unstable_NormalPriority,Na=i.unstable_LowPriority,Ra=i.unstable_IdlePriority,Ia={},La=i.unstable_shouldYield,Ma=void 0!==Aa?Aa:function(){},Da=null,Ha=null,Ba=!1,ja=Ta(),Wa=1e4>ja?Ta:function(){return Ta()-ja};function Va(){switch(Oa()){case Pa:return 99;case za:return 98;case Fa:return 97;case Na:return 96;case Ra:return 95;default:throw Error(o(332))}}function Ua(e){switch(e){case 99:return Pa;case 98:return za;case 97:return Fa;case 96:return Na;case 95:return Ra;default:throw Error(o(332))}}function qa(e,t){return e=Ua(e),Ea(e,t)}function Ga(e,t,r){return e=Ua(e),Ca(e,t,r)}function Ka(e){return null===Da?(Da=[e],Ha=Ca(Pa,Xa)):Da.push(e),Ia}function Ya(){if(null!==Ha){var e=Ha;Ha=null,$a(e)}Xa()}function Xa(){if(!Ba&&null!==Da){Ba=!0;var e=0;try{var t=Da;qa(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Da=null}catch(t){throw null!==Da&&(Da=Da.slice(e+1)),Ca(Pa,Ya),t}finally{Ba=!1}}}function Za(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function Qa(e,t){if(e&&e.defaultProps)for(var r in t=a({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var Ja={current:null},ei=null,ti=null,ri=null;function ni(){ri=ti=ei=null}function ai(e){var t=Ja.current;pa(Ja),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function oi(e,t){ei=e,ri=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(No=!0),e.firstContext=null)}function li(e,t){if(ri!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ri=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(o(308));ti=t,ei.dependencies={expirationTime:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var si=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function di(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function pi(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function fi(e,t){var r=e.alternate;null!==r&&ui(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function hi(e,t,r,n){var i=e.updateQueue;si=!1;var o=i.baseQueue,l=i.shared.pending;if(null!==l){if(null!==o){var s=o.next;o.next=l.next,l.next=s}o=l,i.shared.pending=null,null!==(s=e.alternate)&&null!==(s=s.updateQueue)&&(s.baseQueue=l)}if(null!==o){s=o.next;var c=i.baseState,u=0,d=null,p=null,f=null;if(null!==s)for(var h=s;;){if((l=h.expirationTime)<n){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===f?(p=f=m,d=c):f=f.next=m,l>u&&(u=l)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ws(l,h.suspenseConfig);e:{var g=e,y=h;switch(l=t,m=r,y.tag){case 1:if("function"==typeof(g=y.payload)){c=g.call(m,c,l);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(l="function"==typeof(g=y.payload)?g.call(m,c,l):g))break e;c=a({},c,l);break e;case 2:si=!0}}null!==h.callback&&(e.effectTag|=32,null===(l=i.effects)?i.effects=[h]:l.push(h))}if(null===(h=h.next)||h===s){if(null===(l=i.shared.pending))break;h=o.next=l.next,l.next=s,i.baseQueue=o=l,i.shared.pending=null}}null===f?d=c:f.next=p,i.baseState=d,i.baseQueue=f,xs(u),e.expirationTime=u,e.memoizedState=c}}function mi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(null!==a){if(n.callback=null,n=a,a=r,"function"!=typeof n)throw Error(o(191,n));n.call(a)}}}var gi=X.ReactCurrentBatchConfig,yi=(new n.Component).refs;function vi(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:a({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var bi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Qe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=ls(),a=gi.suspense;(a=di(n=ss(n,e,a),a)).payload=t,null!=r&&(a.callback=r),pi(e,a),cs(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=ls(),a=gi.suspense;(a=di(n=ss(n,e,a),a)).tag=1,a.payload=t,null!=r&&(a.callback=r),pi(e,a),cs(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=ls(),n=gi.suspense;(n=di(r=ss(r,e,n),n)).tag=2,null!=t&&(n.callback=t),pi(e,n),cs(e,r)}};function wi(e,t,r,n,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,o):!(t.prototype&&t.prototype.isPureReactComponent&&Wn(r,n)&&Wn(a,i))}function xi(e,t,r){var n=!1,a=ha,i=t.contextType;return"object"==typeof i&&null!==i?i=li(i):(a=ba(t)?ya:ma.current,i=(n=null!=(n=t.contextTypes))?va(e,a):ha),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bi,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function ki(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&bi.enqueueReplaceState(t,t.state,null)}function _i(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=yi,ci(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=li(i):(i=ba(t)?ya:ma.current,a.context=va(e,i)),hi(e,r,a,n),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,r),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&bi.enqueueReplaceState(a,a.state,null),hi(e,r,a,n),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Si=Array.isArray;function Ei(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=n.refs;t===yi&&(t=n.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function Ci(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function $i(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Bs(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Vs(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=a(t,r.props)).ref=Ei(e,t,r),n.return=e,n):((n=js(r.type,r.key,r.props,null,e.mode,n)).ref=Ei(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Us(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function d(e,t,r,n,i){return null===t||7!==t.tag?((t=Ws(r,e.mode,n,i)).return=e,t):((t=a(t,r)).return=e,t)}function p(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Vs(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=js(t.type,t.key,t.props,null,e.mode,r)).ref=Ei(e,null,t),r.return=e,r;case te:return(t=Us(t,e.mode,r)).return=e,t}if(Si(t)||me(t))return(t=Ws(t,e.mode,r,null)).return=e,t;Ci(e,t)}return null}function f(e,t,r,n){var a=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==a?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return r.key===a?r.type===re?d(e,t,r.props.children,n,a):c(e,t,r,n):null;case te:return r.key===a?u(e,t,r,n):null}if(Si(r)||me(r))return null!==a?null:d(e,t,r,n,null);Ci(e,r)}return null}function h(e,t,r,n,a){if("string"==typeof n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return e=e.get(null===n.key?r:n.key)||null,n.type===re?d(t,e,n.props.children,a,n.key):c(t,e,n,a);case te:return u(t,e=e.get(null===n.key?r:n.key)||null,n,a)}if(Si(n)||me(n))return d(t,e=e.get(r)||null,n,a,null);Ci(t,n)}return null}function m(a,o,l,s){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(a,d,l[m],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=i(y,o,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===l.length)return r(a,d),c;if(null===d){for(;m<l.length;m++)null!==(d=p(a,l[m],s))&&(o=i(d,o,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=n(a,d);m<l.length;m++)null!==(g=h(d,a,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=i(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),c}function g(a,l,s,c){var u=me(s);if("function"!=typeof u)throw Error(o(150));if(null==(s=u.call(s)))throw Error(o(151));for(var d=u=null,m=l,g=l=0,y=null,v=s.next();null!==m&&!v.done;g++,v=s.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(a,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(a,m),l=i(b,l,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return r(a,m),u;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=p(a,v.value,c))&&(l=i(v,l,g),null===d?u=v:d.sibling=v,d=v);return u}for(m=n(a,m);!v.done;g++,v=s.next())null!==(v=h(m,a,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=i(v,l,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(a,e)})),u}return function(e,n,i,s){var c="object"==typeof i&&null!==i&&i.type===re&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=n;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===re){r(e,c.sibling),(n=a(c,i.props.children)).return=e,e=n;break e}}else if(c.elementType===i.type){r(e,c.sibling),(n=a(c,i.props)).ref=Ei(e,c,i),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}i.type===re?((n=Ws(i.props.children,e.mode,s,i.key)).return=e,e=n):((s=js(i.type,i.key,i.props,null,e.mode,s)).ref=Ei(e,n,i),s.return=e,e=s)}return l(e);case te:e:{for(c=i.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=a(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Us(i,e.mode,s)).return=e,e=n}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=a(n,i)).return=e,e=n):(r(e,n),(n=Vs(i,e.mode,s)).return=e,e=n),l(e);if(Si(i))return m(e,n,i,s);if(me(i))return g(e,n,i,s);if(u&&Ci(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return r(e,n)}}var Ai=$i(!0),Ti=$i(!1),Oi={},Pi={current:Oi},zi={current:Oi},Fi={current:Oi};function Ni(e){if(e===Oi)throw Error(o(174));return e}function Ri(e,t){switch(fa(Fi,t),fa(zi,e),fa(Pi,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Re(null,"");break;default:t=Re(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pa(Pi),fa(Pi,t)}function Ii(){pa(Pi),pa(zi),pa(Fi)}function Li(e){Ni(Fi.current);var t=Ni(Pi.current),r=Re(t,e.type);t!==r&&(fa(zi,e),fa(Pi,r))}function Mi(e){zi.current===e&&(pa(Pi),pa(zi))}var Di={current:0};function Hi(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||r.data===gr||r.data===yr))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.effectTag)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Bi(e,t){return{responder:e,props:t}}var ji=X.ReactCurrentDispatcher,Wi=X.ReactCurrentBatchConfig,Vi=0,Ui=null,qi=null,Gi=null,Ki=!1;function Yi(){throw Error(o(321))}function Xi(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Bn(e[r],t[r]))return!1;return!0}function Zi(e,t,r,n,a,i){if(Vi=i,Ui=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,ji.current=null===e||null===e.memoizedState?xo:ko,e=r(n,a),t.expirationTime===Vi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(o(301));i+=1,Gi=qi=null,t.updateQueue=null,ji.current=_o,e=r(n,a)}while(t.expirationTime===Vi)}if(ji.current=wo,t=null!==qi&&null!==qi.next,Vi=0,Gi=qi=Ui=null,Ki=!1,t)throw Error(o(300));return e}function Qi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Gi?Ui.memoizedState=Gi=e:Gi=Gi.next=e,Gi}function Ji(){if(null===qi){var e=Ui.alternate;e=null!==e?e.memoizedState:null}else e=qi.next;var t=null===Gi?Ui.memoizedState:Gi.next;if(null!==t)Gi=t,qi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(qi=e).memoizedState,baseState:qi.baseState,baseQueue:qi.baseQueue,queue:qi.queue,next:null},null===Gi?Ui.memoizedState=Gi=e:Gi=Gi.next=e}return Gi}function eo(e,t){return"function"==typeof t?t(e):t}function to(e){var t=Ji(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=qi,a=n.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}n.baseQueue=a=i,r.pending=null}if(null!==a){a=a.next,n=n.baseState;var s=l=i=null,c=a;do{var u=c.expirationTime;if(u<Vi){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=n):s=s.next=d,u>Ui.expirationTime&&(Ui.expirationTime=u,xs(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ws(u,c.suspenseConfig),n=c.eagerReducer===e?c.eagerState:e(n,c.action);c=c.next}while(null!==c&&c!==a);null===s?i=n:s.next=l,Bn(n,t.memoizedState)||(No=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ro(e){var t=Ji(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);Bn(i,t.memoizedState)||(No=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function no(e){var t=Qi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e}).dispatch=bo.bind(null,Ui,e),[t.memoizedState,e]}function ao(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Ui.updateQueue)?(t={lastEffect:null},Ui.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function io(){return Ji().memoizedState}function oo(e,t,r,n){var a=Qi();Ui.effectTag|=e,a.memoizedState=ao(1|t,r,void 0,void 0===n?null:n)}function lo(e,t,r,n){var a=Ji();n=void 0===n?null:n;var i=void 0;if(null!==qi){var o=qi.memoizedState;if(i=o.destroy,null!==n&&Xi(n,o.deps))return void ao(t,r,i,n)}Ui.effectTag|=e,a.memoizedState=ao(1|t,r,i,n)}function so(e,t){return oo(516,4,e,t)}function co(e,t){return lo(516,4,e,t)}function uo(e,t){return lo(4,2,e,t)}function po(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fo(e,t,r){return r=null!=r?r.concat([e]):null,lo(4,2,po.bind(null,t,e),r)}function ho(){}function mo(e,t){return Qi().memoizedState=[e,void 0===t?null:t],e}function go(e,t){var r=Ji();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Xi(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function yo(e,t){var r=Ji();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Xi(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function vo(e,t,r){var n=Va();qa(98>n?98:n,(function(){e(!0)})),qa(97<n?97:n,(function(){var n=Wi.suspense;Wi.suspense=void 0===t?null:t;try{e(!1),r()}finally{Wi.suspense=n}}))}function bo(e,t,r){var n=ls(),a=gi.suspense;a={expirationTime:n=ss(n,e,a),suspenseConfig:a,action:r,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===Ui||null!==i&&i===Ui)Ki=!0,a.expirationTime=Vi,Ui.expirationTime=Vi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,l=i(o,r);if(a.eagerReducer=i,a.eagerState=l,Bn(l,o))return}catch(e){}cs(e,n)}}var wo={readContext:li,useCallback:Yi,useContext:Yi,useEffect:Yi,useImperativeHandle:Yi,useLayoutEffect:Yi,useMemo:Yi,useReducer:Yi,useRef:Yi,useState:Yi,useDebugValue:Yi,useResponder:Yi,useDeferredValue:Yi,useTransition:Yi},xo={readContext:li,useCallback:mo,useContext:li,useEffect:so,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,oo(4,2,po.bind(null,t,e),r)},useLayoutEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var r=Qi();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Qi();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=bo.bind(null,Ui,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Qi().memoizedState=e},useState:no,useDebugValue:ho,useResponder:Bi,useDeferredValue:function(e,t){var r=no(e),n=r[0],a=r[1];return so((function(){var r=Wi.suspense;Wi.suspense=void 0===t?null:t;try{a(e)}finally{Wi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=no(!1),r=t[0];return t=t[1],[mo(vo.bind(null,t,e),[t,e]),r]}},ko={readContext:li,useCallback:go,useContext:li,useEffect:co,useImperativeHandle:fo,useLayoutEffect:uo,useMemo:yo,useReducer:to,useRef:io,useState:function(){return to(eo)},useDebugValue:ho,useResponder:Bi,useDeferredValue:function(e,t){var r=to(eo),n=r[0],a=r[1];return co((function(){var r=Wi.suspense;Wi.suspense=void 0===t?null:t;try{a(e)}finally{Wi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=to(eo),r=t[0];return t=t[1],[go(vo.bind(null,t,e),[t,e]),r]}},_o={readContext:li,useCallback:go,useContext:li,useEffect:co,useImperativeHandle:fo,useLayoutEffect:uo,useMemo:yo,useReducer:ro,useRef:io,useState:function(){return ro(eo)},useDebugValue:ho,useResponder:Bi,useDeferredValue:function(e,t){var r=ro(eo),n=r[0],a=r[1];return co((function(){var r=Wi.suspense;Wi.suspense=void 0===t?null:t;try{a(e)}finally{Wi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ro(eo),r=t[0];return t=t[1],[go(vo.bind(null,t,e),[t,e]),r]}},So=null,Eo=null,Co=!1;function $o(e,t){var r=Ds(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Ao(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function To(e){if(Co){var t=Eo;if(t){var r=t;if(!Ao(e,t)){if(!(t=Sr(r.nextSibling))||!Ao(e,t))return e.effectTag=-1025&e.effectTag|2,Co=!1,void(So=e);$o(So,r)}So=e,Eo=Sr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Co=!1,So=e}}function Oo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;So=e}function Po(e){if(e!==So)return!1;if(!Co)return Oo(e),Co=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xr(t,e.memoizedProps))for(t=Eo;t;)$o(e,t),t=Sr(t.nextSibling);if(Oo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if(r===mr){if(0===t){Eo=Sr(e.nextSibling);break e}t--}else r!==hr&&r!==yr&&r!==gr||t++}e=e.nextSibling}Eo=null}}else Eo=So?Sr(e.stateNode.nextSibling):null;return!0}function zo(){Eo=So=null,Co=!1}var Fo=X.ReactCurrentOwner,No=!1;function Ro(e,t,r,n){t.child=null===e?Ti(t,null,r,n):Ai(t,e.child,r,n)}function Io(e,t,r,n,a){r=r.render;var i=t.ref;return oi(t,a),n=Zi(e,t,r,n,i,a),null===e||No?(t.effectTag|=1,Ro(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Jo(e,t,a))}function Lo(e,t,r,n,a,i){if(null===e){var o=r.type;return"function"!=typeof o||Hs(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=js(r.type,null,n,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Mo(e,t,o,n,a,i))}return o=e.child,a<i&&(a=o.memoizedProps,(r=null!==(r=r.compare)?r:Wn)(a,n)&&e.ref===t.ref)?Jo(e,t,i):(t.effectTag|=1,(e=Bs(o,n)).ref=t.ref,e.return=t,t.child=e)}function Mo(e,t,r,n,a,i){return null!==e&&Wn(e.memoizedProps,n)&&e.ref===t.ref&&(No=!1,a<i)?(t.expirationTime=e.expirationTime,Jo(e,t,i)):Ho(e,t,r,n,i)}function Do(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function Ho(e,t,r,n,a){var i=ba(r)?ya:ma.current;return i=va(t,i),oi(t,a),r=Zi(e,t,r,n,i,a),null===e||No?(t.effectTag|=1,Ro(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Jo(e,t,a))}function Bo(e,t,r,n,a){if(ba(r)){var i=!0;_a(t)}else i=!1;if(oi(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),xi(t,r,n),_i(t,r,n,a),n=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=r.contextType;c="object"==typeof c&&null!==c?li(c):va(t,c=ba(r)?ya:ma.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==n||s!==c)&&ki(t,o,n,c),si=!1;var p=t.memoizedState;o.state=p,hi(t,n,o,a),s=t.memoizedState,l!==n||p!==s||ga.current||si?("function"==typeof u&&(vi(t,r,u,n),s=t.memoizedState),(l=si||wi(t,r,l,n,p,s,c))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=c,n=l):("function"==typeof o.componentDidMount&&(t.effectTag|=4),n=!1)}else o=t.stateNode,ui(e,t),l=t.memoizedProps,o.props=t.type===t.elementType?l:Qa(t.type,l),s=o.context,c="object"==typeof(c=r.contextType)&&null!==c?li(c):va(t,c=ba(r)?ya:ma.current),(d="function"==typeof(u=r.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==n||s!==c)&&ki(t,o,n,c),si=!1,s=t.memoizedState,o.state=s,hi(t,n,o,a),p=t.memoizedState,l!==n||s!==p||ga.current||si?("function"==typeof u&&(vi(t,r,u,n),p=t.memoizedState),(u=si||wi(t,r,l,n,s,p,c))?(d||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,p,c),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,p,c)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=c,n=u):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),n=!1);return jo(e,t,r,n,i,a)}function jo(e,t,r,n,a,i){Do(e,t);var o=!!(64&t.effectTag);if(!n&&!o)return a&&Sa(t,r,!1),Jo(e,t,i);n=t.stateNode,Fo.current=t;var l=o&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&o?(t.child=Ai(t,e.child,null,i),t.child=Ai(t,null,l,i)):Ro(e,t,l,i),t.memoizedState=n.state,a&&Sa(t,r,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?xa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xa(0,t.context,!1),Ri(e,t.containerInfo)}var Vo,Uo,qo,Go,Ko={dehydrated:null,retryTime:0};function Yo(e,t,r){var n,a=t.mode,i=t.pendingProps,o=Di.current,l=!1;if((n=!!(64&t.effectTag))||(n=!!(2&o)&&(null===e||null!==e.memoizedState)),n?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),fa(Di,1&o),null===e){if(void 0!==i.fallback&&To(t),l){if(l=i.fallback,(i=Ws(null,a,0,null)).return=t,!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=Ws(l,a,r,null)).return=t,i.sibling=r,t.memoizedState=Ko,t.child=i,r}return a=i.children,t.memoizedState=null,t.child=Ti(t,null,a,r)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,l){if(i=i.fallback,(r=Bs(e,e.pendingProps)).return=t,!(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=l;null!==l;)l.return=r,l=l.sibling;return(a=Bs(a,i)).return=t,r.sibling=a,r.childExpirationTime=0,t.memoizedState=Ko,t.child=r,a}return r=Ai(t,e.child,i.children,r),t.memoizedState=null,t.child=r}if(e=e.child,l){if(l=i.fallback,(i=Ws(null,a,0,null)).return=t,i.child=e,null!==e&&(e.return=i),!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=Ws(l,a,r,null)).return=t,i.sibling=r,r.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ko,t.child=i,r}return t.memoizedState=null,t.child=Ai(t,e,i.children,r)}function Xo(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),ii(e.return,t)}function Zo(e,t,r,n,a,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:a,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailExpiration=0,o.tailMode=a,o.lastEffect=i)}function Qo(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(Ro(e,t,n.children,r),2&(n=Di.current))n=1&n|2,t.effectTag|=64;else{if(null!==e&&64&e.effectTag)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xo(e,r);else if(19===e.tag)Xo(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(fa(Di,n),2&t.mode)switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(e=r.alternate)&&null===Hi(e)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Zo(t,!1,a,r,i,t.lastEffect);break;case"backwards":for(r=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Hi(e)){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Zo(t,!0,r,null,i,t.lastEffect);break;case"together":Zo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Jo(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&xs(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Bs(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Bs(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function el(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function tl(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ba(t.type)&&wa(),null;case 3:return Ii(),pa(ga),pa(ma),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!Po(t)||(t.effectTag|=4),Uo(t),null;case 5:Mi(t),r=Ni(Fi.current);var i=t.type;if(null!==e&&null!=t.stateNode)qo(e,t,i,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ni(Pi.current),Po(t)){n=t.stateNode,i=t.type;var l=t.memoizedProps;switch(n[$r]=t,n[Ar]=l,i){case"iframe":case"object":case"embed":qt("load",n);break;case"video":case"audio":for(e=0;e<Ye.length;e++)qt(Ye[e],n);break;case"source":qt("error",n);break;case"img":case"image":case"link":qt("error",n),qt("load",n);break;case"form":qt("reset",n),qt("submit",n);break;case"details":qt("toggle",n);break;case"input":_e(n,l),qt("invalid",n),or(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!l.multiple},qt("invalid",n),or(r,"onChange");break;case"textarea":Pe(n,l),qt("invalid",n),or(r,"onChange")}for(var s in nr(i,l),e=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?n.textContent!==c&&(e=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(e=["children",""+c]):S.hasOwnProperty(s)&&null!=c&&or(r,s)}switch(i){case"input":we(n),Ce(n,l,!0);break;case"textarea":we(n),Fe(n);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(n.onclick=lr)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(s=9===r.nodeType?r:r.ownerDocument,e===ir&&(e=Ne(i)),e===ir?"script"===i?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=s.createElement(i,{is:n.is}):(e=s.createElement(i),"select"===i&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,i),e[$r]=t,e[Ar]=n,Vo(e,t,!1,!1),t.stateNode=e,s=ar(i,n),i){case"iframe":case"object":case"embed":qt("load",e),c=n;break;case"video":case"audio":for(c=0;c<Ye.length;c++)qt(Ye[c],e);c=n;break;case"source":qt("error",e),c=n;break;case"img":case"image":case"link":qt("error",e),qt("load",e),c=n;break;case"form":qt("reset",e),qt("submit",e),c=n;break;case"details":qt("toggle",e),c=n;break;case"input":_e(e,n),c=ke(e,n),qt("invalid",e),or(r,"onChange");break;case"option":c=Ae(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},c=a({},n,{value:void 0}),qt("invalid",e),or(r,"onChange");break;case"textarea":Pe(e,n),c=Oe(e,n),qt("invalid",e),or(r,"onChange");break;default:c=n}nr(i,c);var u=c;for(l in u)if(u.hasOwnProperty(l)){var d=u[l];"style"===l?tr(e,d):"dangerouslySetInnerHTML"===l?null!=(d=d?d.__html:void 0)&&Me(e,d):"children"===l?"string"==typeof d?("textarea"!==i||""!==d)&&De(e,d):"number"==typeof d&&De(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(S.hasOwnProperty(l)?null!=d&&or(r,l):null!=d&&Z(e,l,d,s))}switch(i){case"input":we(e),Ce(e,n,!1);break;case"textarea":we(e),Fe(e);break;case"option":null!=n.value&&e.setAttribute("value",""+ve(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?Te(e,!!n.multiple,r,!1):null!=n.defaultValue&&Te(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=lr)}wr(i,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Go(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(o(166));r=Ni(Fi.current),Ni(Pi.current),Po(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[$r]=t,t.stateNode=r)}return null;case 13:return pa(Di),n=t.memoizedState,64&t.effectTag?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Po(t):(n=null!==(i=e.memoizedState),r||null===i||null!==(i=e.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),r&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Di.current?Bl===Pl&&(Bl=Nl):(Bl!==Pl&&Bl!==Nl||(Bl=Rl),0!==ql&&null!==Ml&&(Ks(Ml,Hl),Ys(Ml,ql)))),(r||n)&&(t.effectTag|=4),null);case 4:return Ii(),Uo(t),null;case 10:return ai(t),null;case 19:if(pa(Di),null===(n=t.memoizedState))return null;if(i=!!(64&t.effectTag),null===(l=n.rendering)){if(i)el(n,!1);else if(Bl!==Pl||null!==e&&64&e.effectTag)for(l=t.child;null!==l;){if(null!==(e=Hi(l))){for(t.effectTag|=64,el(n,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)l=r,(i=n).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=l,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,l=e.dependencies,i.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),n=n.sibling;return fa(Di,1&Di.current|2),t.child}l=l.sibling}}else{if(!i)if(null!==(e=Hi(l))){if(t.effectTag|=64,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),el(n,!0),null===n.tail&&"hidden"===n.tailMode&&!l.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Wa()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,i=!0,el(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=n.last)?r.sibling=l:t.child=l,n.last=l)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=Wa()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Wa(),r.sibling=null,t=Di.current,fa(Di,i?1&t|2:1&t),r):null}throw Error(o(156,t.tag))}function rl(e){switch(e.tag){case 1:ba(e.type)&&wa();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ii(),pa(ga),pa(ma),64&(t=e.effectTag))throw Error(o(285));return e.effectTag=-4097&t|64,e;case 5:return Mi(e),null;case 13:return pa(Di),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return pa(Di),null;case 4:return Ii(),null;case 10:return ai(e),null;default:return null}}function nl(e,t){return{value:e,source:t,stack:ye(t)}}Vo=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Uo=function(){},qo=function(e,t,r,n,i){var o=e.memoizedProps;if(o!==n){var l,s,c=t.stateNode;switch(Ni(Pi.current),e=null,r){case"input":o=ke(c,o),n=ke(c,n),e=[];break;case"option":o=Ae(c,o),n=Ae(c,n),e=[];break;case"select":o=a({},o,{value:void 0}),n=a({},n,{value:void 0}),e=[];break;case"textarea":o=Oe(c,o),n=Oe(c,n),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(c.onclick=lr)}for(l in nr(r,n),r=null,o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&null!=o[l])if("style"===l)for(s in c=o[l])c.hasOwnProperty(s)&&(r||(r={}),r[s]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(S.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in n){var u=n[l];if(c=null!=o?o[l]:void 0,n.hasOwnProperty(l)&&u!==c&&(null!=u||null!=c))if("style"===l)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(e||(e=[]),e.push(l,r)),r=u;else"dangerouslySetInnerHTML"===l?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(l,u)):"children"===l?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(l,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(S.hasOwnProperty(l)?(null!=u&&or(i,l),e||c===u||(e=[])):(e=e||[]).push(l,u))}r&&(e=e||[]).push("style",r),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Go=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var al="function"==typeof WeakSet?WeakSet:Set;function il(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=ye(r)),null!==r&&ge(r.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ol(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fs(e,t)}else t.current=null}function ll(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Qa(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(o(163))}function sl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function cl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ul(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void cl(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:Qa(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&mi(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}mi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&wr(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&Rt(r)))))}throw Error(o(163))}function dl(e,t,r){switch("function"==typeof Ls&&Ls(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;qa(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var a=t;try{r()}catch(e){Fs(a,e)}}e=e.next}while(e!==n)}))}break;case 1:ol(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Fs(e,t)}}(t,r);break;case 5:ol(t);break;case 4:yl(e,t,r)}}function pl(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&pl(t)}function fl(e){return 5===e.tag||3===e.tag||4===e.tag}function hl(e){e:{for(var t=e.return;null!==t;){if(fl(t)){var r=t;break e}t=t.return}throw Error(o(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(o(161))}16&r.effectTag&&(De(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||fl(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?ml(e,r,t):gl(e,r,t)}function ml(e,t,r){var n=e.tag,a=5===n||6===n;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=lr));else if(4!==n&&null!==(e=e.child))for(ml(e,t,r),e=e.sibling;null!==e;)ml(e,t,r),e=e.sibling}function gl(e,t,r){var n=e.tag,a=5===n||6===n;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(gl(e,t,r),e=e.sibling;null!==e;)gl(e,t,r),e=e.sibling}function yl(e,t,r){for(var n,a,i=t,l=!1;;){if(!l){l=i.return;e:for(;;){if(null===l)throw Error(o(160));switch(n=l.stateNode,l.tag){case 5:a=!1;break e;case 3:case 4:n=n.containerInfo,a=!0;break e}l=l.return}l=!0}if(5===i.tag||6===i.tag){e:for(var s=e,c=i,u=r,d=c;;)if(dl(s,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}a?(s=n,c=i.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,a=!0,i.child.return=i,i=i.child;continue}}else if(dl(e,i,r),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(l=!1)}i.sibling.return=i.return,i=i.sibling}}function vl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void sl(3,t);case 1:case 12:case 17:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,a=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[Ar]=n,"input"===e&&"radio"===n.type&&null!=n.name&&Se(r,n),ar(e,a),t=ar(e,n),a=0;a<i.length;a+=2){var l=i[a],s=i[a+1];"style"===l?tr(r,s):"dangerouslySetInnerHTML"===l?Me(r,s):"children"===l?De(r,s):Z(r,l,s,t)}switch(e){case"input":Ee(r,n);break;case"textarea":ze(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?Te(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?Te(r,!!n.multiple,n.defaultValue,!0):Te(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Rt(t.containerInfo)));case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Kl=Wa()),null!==r)e:for(e=r;;){if(5===e.tag)i=e.stateNode,n?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,i.style.display=er("display",a));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void bl(t);case 19:return void bl(t)}throw Error(o(163))}function bl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new al),t.forEach((function(t){var n=Rs.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var wl="function"==typeof WeakMap?WeakMap:Map;function xl(e,t,r){(r=di(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Zl||(Zl=!0,Ql=n),il(e,t)},r}function kl(e,t,r){(r=di(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var a=t.value;r.payload=function(){return il(e,t),n(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Jl?Jl=new Set([this]):Jl.add(this),il(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var _l,Sl=Math.ceil,El=X.ReactCurrentDispatcher,Cl=X.ReactCurrentOwner,$l=0,Al=8,Tl=16,Ol=32,Pl=0,zl=1,Fl=2,Nl=3,Rl=4,Il=5,Ll=$l,Ml=null,Dl=null,Hl=0,Bl=Pl,jl=null,Wl=1073741823,Vl=1073741823,Ul=null,ql=0,Gl=!1,Kl=0,Yl=500,Xl=null,Zl=!1,Ql=null,Jl=null,es=!1,ts=null,rs=90,ns=null,as=0,is=null,os=0;function ls(){return(Ll&(Tl|Ol))!==$l?1073741821-(Wa()/10|0):0!==os?os:os=1073741821-(Wa()/10|0)}function ss(e,t,r){if(!(2&(t=t.mode)))return 1073741823;var n=Va();if(!(4&t))return 99===n?1073741823:1073741822;if((Ll&Tl)!==$l)return Hl;if(null!==r)e=Za(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Za(e,150,100);break;case 97:case 96:e=Za(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==Ml&&e===Hl&&--e,e}function cs(e,t){if(50<as)throw as=0,is=null,Error(o(185));if(null!==(e=us(e,t))){var r=Va();1073741823===t?(Ll&Al)!==$l&&(Ll&(Tl|Ol))===$l?hs(e):(ps(e),Ll===$l&&Ya()):ps(e),(4&Ll)===$l||98!==r&&99!==r||(null===ns?ns=new Map([[e,t]]):(void 0===(r=ns.get(e))||r>t)&&ns.set(e,t))}}function us(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,a=null;if(null===n&&3===e.tag)a=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){a=n.stateNode;break}n=n.return}return null!==a&&(Ml===a&&(xs(t),Bl===Rl&&Ks(a,Hl)),Ys(a,t)),a}function ds(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Gs(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function ps(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ka(hs.bind(null,e));else{var t=ds(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=ls();if(n=1073741823===t?99:1===t||2===t?95:0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=n)return;r!==Ia&&$a(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?Ka(hs.bind(null,e)):Ga(n,fs.bind(null,e),{timeout:10*(1073741821-t)-Wa()}),e.callbackNode=t}}}function fs(e,t){if(os=0,t)return Xs(e,t=ls()),ps(e),null;var r=ds(e);if(0!==r){if(t=e.callbackNode,(Ll&(Tl|Ol))!==$l)throw Error(o(327));if(Os(),e===Ml&&r===Hl||ys(e,r),null!==Dl){var n=Ll;Ll|=Tl;for(var a=bs();;)try{_s();break}catch(t){vs(e,t)}if(ni(),Ll=n,El.current=a,Bl===zl)throw t=jl,ys(e,r),Ks(e,r),ps(e),t;if(null===Dl)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Bl,Ml=null,n){case Pl:case zl:throw Error(o(345));case Fl:Xs(e,2<r?2:r);break;case Nl:if(Ks(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Cs(a)),1073741823===Wl&&10<(a=Kl+Yl-Wa())){if(Gl){var i=e.lastPingedTime;if(0===i||i>=r){e.lastPingedTime=r,ys(e,r);break}}if(0!==(i=ds(e))&&i!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=kr($s.bind(null,e),a);break}$s(e);break;case Rl:if(Ks(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Cs(a)),Gl&&(0===(a=e.lastPingedTime)||a>=r)){e.lastPingedTime=r,ys(e,r);break}if(0!==(a=ds(e))&&a!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==Vl?n=10*(1073741821-Vl)-Wa():1073741823===Wl?n=0:(n=10*(1073741821-Wl)-5e3,0>(n=(a=Wa())-n)&&(n=0),(r=10*(1073741821-r)-a)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sl(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=kr($s.bind(null,e),n);break}$s(e);break;case Il:if(1073741823!==Wl&&null!==Ul){i=Wl;var l=Ul;if(0>=(n=0|l.busyMinDurationMs)?n=0:(a=0|l.busyDelayMs,n=(i=Wa()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=a?0:a+n-i),10<n){Ks(e,r),e.timeoutHandle=kr($s.bind(null,e),n);break}}$s(e);break;default:throw Error(o(329))}if(ps(e),e.callbackNode===t)return fs.bind(null,e)}}return null}function hs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Ll&(Tl|Ol))!==$l)throw Error(o(327));if(Os(),e===Ml&&t===Hl||ys(e,t),null!==Dl){var r=Ll;Ll|=Tl;for(var n=bs();;)try{ks();break}catch(t){vs(e,t)}if(ni(),Ll=r,El.current=n,Bl===zl)throw r=jl,ys(e,t),Ks(e,t),ps(e),r;if(null!==Dl)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ml=null,$s(e),ps(e)}return null}function ms(e,t){var r=Ll;Ll|=1;try{return e(t)}finally{(Ll=r)===$l&&Ya()}}function gs(e,t){var r=Ll;Ll&=-2,Ll|=Al;try{return e(t)}finally{(Ll=r)===$l&&Ya()}}function ys(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,_r(r)),null!==Dl)for(r=Dl.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&wa();break;case 3:Ii(),pa(ga),pa(ma);break;case 5:Mi(n);break;case 4:Ii();break;case 13:case 19:pa(Di);break;case 10:ai(n)}r=r.return}Ml=e,Dl=Bs(e.current,null),Hl=t,Bl=Pl,jl=null,Vl=Wl=1073741823,Ul=null,ql=0,Gl=!1}function vs(e,t){for(;;){try{if(ni(),ji.current=wo,Ki)for(var r=Ui.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Vi=0,Gi=qi=Ui=null,Ki=!1,null===Dl||null===Dl.return)return Bl=zl,jl=t,Dl=null;e:{var a=e,i=Dl.return,o=Dl,l=t;if(t=Hl,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var s=l;if(!(2&o.mode)){var c=o.alternate;c?(o.updateQueue=c.updateQueue,o.memoizedState=c.memoizedState,o.expirationTime=c.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var u=!!(1&Di.current),d=i;do{var p;if(p=13===d.tag){var f=d.memoizedState;if(null!==f)p=null!==f.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(p){var m=d.updateQueue;if(null===m){var g=new Set;g.add(s),d.updateQueue=g}else m.add(s);if(!(2&d.mode)){if(d.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var y=di(1073741823,null);y.tag=2,pi(o,y)}o.expirationTime=1073741823;break e}l=void 0,o=t;var v=a.pingCache;if(null===v?(v=a.pingCache=new wl,l=new Set,v.set(s,l)):void 0===(l=v.get(s))&&(l=new Set,v.set(s,l)),!l.has(o)){l.add(o);var b=Ns.bind(null,a,s,o);s.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);l=Error((ge(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(o))}Bl!==Il&&(Bl=Fl),l=nl(l,o),d=i;do{switch(d.tag){case 3:s=l,d.effectTag|=4096,d.expirationTime=t,fi(d,xl(d,s,t));break e;case 1:s=l;var w=d.type,x=d.stateNode;if(!(64&d.effectTag||"function"!=typeof w.getDerivedStateFromError&&(null===x||"function"!=typeof x.componentDidCatch||null!==Jl&&Jl.has(x)))){d.effectTag|=4096,d.expirationTime=t,fi(d,kl(d,s,t));break e}}d=d.return}while(null!==d)}Dl=Es(Dl)}catch(e){t=e;continue}break}}function bs(){var e=El.current;return El.current=wo,null===e?wo:e}function ws(e,t){e<Wl&&2<e&&(Wl=e),null!==t&&e<Vl&&2<e&&(Vl=e,Ul=t)}function xs(e){e>ql&&(ql=e)}function ks(){for(;null!==Dl;)Dl=Ss(Dl)}function _s(){for(;null!==Dl&&!La();)Dl=Ss(Dl)}function Ss(e){var t=_l(e.alternate,e,Hl);return e.memoizedProps=e.pendingProps,null===t&&(t=Es(e)),Cl.current=null,t}function Es(e){Dl=e;do{var t=Dl.alternate;if(e=Dl.return,2048&Dl.effectTag){if(null!==(t=rl(Dl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=tl(t,Dl,Hl),1===Hl||1!==Dl.childExpirationTime){for(var r=0,n=Dl.child;null!==n;){var a=n.expirationTime,i=n.childExpirationTime;a>r&&(r=a),i>r&&(r=i),n=n.sibling}Dl.childExpirationTime=r}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Dl.firstEffect),null!==Dl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Dl.firstEffect),e.lastEffect=Dl.lastEffect),1<Dl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Dl:e.firstEffect=Dl,e.lastEffect=Dl))}if(null!==(t=Dl.sibling))return t;Dl=e}while(null!==Dl);return Bl===Pl&&(Bl=Il),null}function Cs(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function $s(e){var t=Va();return qa(99,As.bind(null,e,t)),null}function As(e,t){do{Os()}while(null!==ts);if((Ll&(Tl|Ol))!==$l)throw Error(o(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=Cs(r);if(e.firstPendingTime=a,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ml&&(Dl=Ml=null,Hl=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,a=r.firstEffect):a=r:a=r.firstEffect,null!==a){var i=Ll;Ll|=Ol,Cl.current=null,vr=Ut;var l=pr();if(fr(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(s=(s=l.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{s.nodeType,d.nodeType}catch(e){s=null;break e}var p=0,f=-1,h=-1,m=0,g=0,y=l,v=null;t:for(;;){for(var b;y!==s||0!==u&&3!==y.nodeType||(f=p+u),y!==d||0!==c&&3!==y.nodeType||(h=p+c),3===y.nodeType&&(p+=y.nodeValue.length),null!==(b=y.firstChild);)v=y,y=b;for(;;){if(y===l)break t;if(v===s&&++m===u&&(f=p),v===d&&++g===c&&(h=p),null!==(b=y.nextSibling))break;v=(y=v).parentNode}y=b}s=-1===f||-1===h?null:{start:f,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;br={activeElementDetached:null,focusedElem:l,selectionRange:s},Ut=!1,Xl=a;do{try{Ts()}catch(e){if(null===Xl)throw Error(o(330));Fs(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);Xl=a;do{try{for(l=e,s=t;null!==Xl;){var w=Xl.effectTag;if(16&w&&De(Xl.stateNode,""),128&w){var x=Xl.alternate;if(null!==x){var k=x.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:hl(Xl),Xl.effectTag&=-3;break;case 6:hl(Xl),Xl.effectTag&=-3,vl(Xl.alternate,Xl);break;case 1024:Xl.effectTag&=-1025;break;case 1028:Xl.effectTag&=-1025,vl(Xl.alternate,Xl);break;case 4:vl(Xl.alternate,Xl);break;case 8:yl(l,u=Xl,s),pl(u)}Xl=Xl.nextEffect}}catch(e){if(null===Xl)throw Error(o(330));Fs(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);if(k=br,x=pr(),w=k.focusedElem,s=k.selectionRange,x!==w&&w&&w.ownerDocument&&dr(w.ownerDocument.documentElement,w)){null!==s&&fr(w)&&(x=s.start,void 0===(k=s.end)&&(k=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(k,w.value.length)):(k=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(k=k.getSelection(),u=w.textContent.length,l=Math.min(s.start,u),s=void 0===s.end?l:Math.min(s.end,u),!k.extend&&l>s&&(u=s,s=l,l=u),u=ur(w,l),d=ur(w,s),u&&d&&(1!==k.rangeCount||k.anchorNode!==u.node||k.anchorOffset!==u.offset||k.focusNode!==d.node||k.focusOffset!==d.offset)&&((x=x.createRange()).setStart(u.node,u.offset),k.removeAllRanges(),l>s?(k.addRange(x),k.extend(d.node,d.offset)):(x.setEnd(d.node,d.offset),k.addRange(x))))),x=[];for(k=w;k=k.parentNode;)1===k.nodeType&&x.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<x.length;w++)(k=x[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Ut=!!vr,br=vr=null,e.current=r,Xl=a;do{try{for(w=e;null!==Xl;){var _=Xl.effectTag;if(36&_&&ul(w,Xl.alternate,Xl),128&_){x=void 0;var S=Xl.ref;if(null!==S){var E=Xl.stateNode;Xl.tag,x=E,"function"==typeof S?S(x):S.current=x}}Xl=Xl.nextEffect}}catch(e){if(null===Xl)throw Error(o(330));Fs(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);Xl=null,Ma(),Ll=i}else e.current=r;if(es)es=!1,ts=e,rs=t;else for(Xl=a;null!==Xl;)t=Xl.nextEffect,Xl.nextEffect=null,Xl=t;if(0===(t=e.firstPendingTime)&&(Jl=null),1073741823===t?e===is?as++:(as=0,is=e):as=0,"function"==typeof Is&&Is(r.stateNode,n),ps(e),Zl)throw Zl=!1,e=Ql,Ql=null,e;return(Ll&Al)!==$l||Ya(),null}function Ts(){for(;null!==Xl;){var e=Xl.effectTag;256&e&&ll(Xl.alternate,Xl),!(512&e)||es||(es=!0,Ga(97,(function(){return Os(),null}))),Xl=Xl.nextEffect}}function Os(){if(90!==rs){var e=97<rs?97:rs;return rs=90,qa(e,Ps)}}function Ps(){if(null===ts)return!1;var e=ts;if(ts=null,(Ll&(Tl|Ol))!==$l)throw Error(o(331));var t=Ll;for(Ll|=Ol,e=e.current.firstEffect;null!==e;){try{var r=e;if(512&r.effectTag)switch(r.tag){case 0:case 11:case 15:case 22:sl(5,r),cl(5,r)}}catch(t){if(null===e)throw Error(o(330));Fs(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return Ll=t,Ya(),!0}function zs(e,t,r){pi(e,t=xl(e,t=nl(r,t),1073741823)),null!==(e=us(e,1073741823))&&ps(e)}function Fs(e,t){if(3===e.tag)zs(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){zs(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Jl||!Jl.has(n))){pi(r,e=kl(r,e=nl(t,e),1073741823)),null!==(r=us(r,1073741823))&&ps(r);break}}r=r.return}}function Ns(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),Ml===e&&Hl===r?Bl===Rl||Bl===Nl&&1073741823===Wl&&Wa()-Kl<Yl?ys(e,Hl):Gl=!0:Gs(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,ps(e)))}function Rs(e,t){var r=e.stateNode;null!==r&&r.delete(t),0==(t=0)&&(t=ss(t=ls(),e,null)),null!==(e=us(e,t))&&ps(e)}_l=function(e,t,r){var n=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||ga.current)No=!0;else{if(n<r){switch(No=!1,t.tag){case 3:Wo(t),zo();break;case 5:if(Li(t),4&t.mode&&1!==r&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ba(t.type)&&_a(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,a=t.type._context,fa(Ja,a._currentValue),a._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?Yo(e,t,r):(fa(Di,1&Di.current),null!==(t=Jo(e,t,r))?t.sibling:null);fa(Di,1&Di.current);break;case 19:if(n=t.childExpirationTime>=r,64&e.effectTag){if(n)return Qo(e,t,r);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),fa(Di,Di.current),!n)return null}return Jo(e,t,r)}No=!1}}else No=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=va(t,ma.current),oi(t,r),a=Zi(null,t,n,e,a,r),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ba(n)){var i=!0;_a(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ci(t);var l=n.getDerivedStateFromProps;"function"==typeof l&&vi(t,n,l,e),a.updater=bi,t.stateNode=a,a._reactInternalFiber=t,_i(t,n,e,r),t=jo(null,t,n,!0,i,r)}else t.tag=0,Ro(null,t,a,r),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,i=t.tag=function(e){if("function"==typeof e)return Hs(e)?1:0;if(null!=e){if((e=e.$$typeof)===se)return 11;if(e===de)return 14}return 2}(a),e=Qa(a,e),i){case 0:t=Ho(null,t,a,e,r);break e;case 1:t=Bo(null,t,a,e,r);break e;case 11:t=Io(null,t,a,e,r);break e;case 14:t=Lo(null,t,a,Qa(a.type,e),n,r);break e}throw Error(o(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,Ho(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 1:return n=t.type,a=t.pendingProps,Bo(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 3:if(Wo(t),n=t.updateQueue,null===e||null===n)throw Error(o(282));if(n=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,ui(e,t),hi(t,n,null,r),(n=t.memoizedState.element)===a)zo(),t=Jo(e,t,r);else{if((a=t.stateNode.hydrate)&&(Eo=Sr(t.stateNode.containerInfo.firstChild),So=t,a=Co=!0),a)for(r=Ti(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Ro(e,t,n,r),zo();t=t.child}return t;case 5:return Li(t),null===e&&To(t),n=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,xr(n,a)?l=null:null!==i&&xr(n,i)&&(t.effectTag|=16),Do(e,t),4&t.mode&&1!==r&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ro(e,t,l,r),t=t.child),t;case 6:return null===e&&To(t),null;case 13:return Yo(e,t,r);case 4:return Ri(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ai(t,null,n,r):Ro(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,Io(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 7:return Ro(e,t,t.pendingProps,r),t.child;case 8:case 12:return Ro(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,a=t.pendingProps,l=t.memoizedProps,i=a.value;var s=t.type._context;if(fa(Ja,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0==(i=Bn(s,i)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(s,i):1073741823))){if(l.children===a.children&&!ga.current){t=Jo(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var u=c.firstContext;null!==u;){if(u.context===n&&u.observedBits&i){1===s.tag&&((u=di(r,null)).tag=2,pi(s,u)),s.expirationTime<r&&(s.expirationTime=r),null!==(u=s.alternate)&&u.expirationTime<r&&(u.expirationTime=r),ii(s.return,r),c.expirationTime<r&&(c.expirationTime=r);break}u=u.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ro(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=(i=t.pendingProps).children,oi(t,r),n=n(a=li(a,i.unstable_observedBits)),t.effectTag|=1,Ro(e,t,n,r),t.child;case 14:return i=Qa(a=t.type,t.pendingProps),Lo(e,t,a,i=Qa(a.type,i),n,r);case 15:return Mo(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qa(n,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ba(n)?(e=!0,_a(t)):e=!1,oi(t,r),xi(t,n,a),_i(t,n,a,r),jo(null,t,n,!0,e,r);case 19:return Qo(e,t,r)}throw Error(o(156,t.tag))};var Is=null,Ls=null;function Ms(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ds(e,t,r,n){return new Ms(e,t,r,n)}function Hs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bs(e,t){var r=e.alternate;return null===r?((r=Ds(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function js(e,t,r,n,a,i){var l=2;if(n=e,"function"==typeof e)Hs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case re:return Ws(r.children,a,i,t);case le:l=8,a|=7;break;case ne:l=8,a|=1;break;case ae:return(e=Ds(12,r,t,8|a)).elementType=ae,e.type=ae,e.expirationTime=i,e;case ce:return(e=Ds(13,r,t,a)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=Ds(19,r,t,a)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:l=10;break e;case oe:l=9;break e;case se:l=11;break e;case de:l=14;break e;case pe:l=16,n=null;break e;case fe:l=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ds(l,r,t,a)).elementType=e,t.type=n,t.expirationTime=i,t}function Ws(e,t,r,n){return(e=Ds(7,e,n,t)).expirationTime=r,e}function Vs(e,t,r){return(e=Ds(6,e,null,t)).expirationTime=r,e}function Us(e,t,r){return(t=Ds(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qs(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Gs(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function Ks(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ys(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Xs(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function Zs(e,t,r,n){var a=t.current,i=ls(),l=gi.suspense;i=ss(i,a,l);e:if(r){t:{if(Qe(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(o(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(ba(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===r.tag){var c=r.type;if(ba(c)){r=ka(r,c,s);break e}}r=s}else r=ha;return null===t.context?t.context=r:t.pendingContext=r,(t=di(i,l)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),pi(a,t),cs(a,i),i}function Qs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Js(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function ec(e,t){Js(e,t),(e=e.alternate)&&Js(e,t)}function tc(e,t,r){var n=new qs(e,t,r=null!=r&&!0===r.hydrate),a=Ds(3,null,null,2===t?7:1===t?3:0);n.current=a,a.stateNode=n,ci(a),e[Tr]=n.current,r&&0!==t&&function(e,t){var r=Ze(t);Et.forEach((function(e){ft(e,t,r)})),Ct.forEach((function(e){ft(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function rc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nc(e,t,r,n,a){var i=r._reactRootContainer;if(i){var o=i._internalRoot;if("function"==typeof a){var l=a;a=function(){var e=Qs(o);l.call(e)}}Zs(t,o,e,a)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new tc(e,0,t?{hydrate:!0}:void 0)}(r,n),o=i._internalRoot,"function"==typeof a){var s=a;a=function(){var e=Qs(o);s.call(e)}}gs((function(){Zs(t,o,e,a)}))}return Qs(o)}function ac(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!rc(t))throw Error(o(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)}tc.prototype.render=function(e){Zs(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zs(null,e,null,(function(){t[Tr]=null}))},ht=function(e){if(13===e.tag){var t=Za(ls(),150,100);cs(e,t),ec(e,t)}},mt=function(e){13===e.tag&&(cs(e,3),ec(e,3))},gt=function(e){if(13===e.tag){var t=ls();cs(e,t=ss(t,e,null)),ec(e,t)}},A=function(e,t,r){switch(t){case"input":if(Ee(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=Fr(n);if(!a)throw Error(o(90));xe(n),Ee(n,a)}}}break;case"textarea":ze(e,r);break;case"select":null!=(t=r.value)&&Te(e,!!r.multiple,t,!1)}},N=ms,R=function(e,t,r,n,a){var i=Ll;Ll|=4;try{return qa(98,e.bind(null,t,r,n,a))}finally{(Ll=i)===$l&&Ya()}},I=function(){(Ll&(1|Tl|Ol))===$l&&(function(){if(null!==ns){var e=ns;ns=null,e.forEach((function(e,t){Xs(t,e),ps(t)})),Ya()}}(),Os())},L=function(e,t){var r=Ll;Ll|=2;try{return e(t)}finally{(Ll=r)===$l&&Ya()}};var ic={Events:[Pr,zr,Fr,C,_,Hr,function(e){nt(e,Dr)},z,F,Xt,ot,Os,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);Is=function(e){try{t.onCommitFiberRoot(r,e,void 0,!(64&~e.current.effectTag))}catch(e){}},Ls=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}}(a({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Or,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ic,t.createPortal=ac,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if((Ll&(Tl|Ol))!==$l)throw Error(o(187));var r=Ll;Ll|=1;try{return qa(99,e.bind(null,t))}finally{Ll=r,Ya()}},t.hydrate=function(e,t,r){if(!rc(t))throw Error(o(200));return nc(null,e,t,!0,r)},t.render=function(e,t,r){if(!rc(t))throw Error(o(200));return nc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!rc(e))throw Error(o(40));return!!e._reactRootContainer&&(gs((function(){nc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tr]=null}))})),!0)},t.unstable_batchedUpdates=ms,t.unstable_createPortal=function(e,t){return ac(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!rc(r))throw Error(o(200));if(null==e||void 0===e._reactInternalFiber)throw Error(o(38));return nc(e,t,r,!1,n)},t.version="16.14.0"},961:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(551)},287:(e,t,r)=>{"use strict";var n=r(228),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.forward_ref"):60112,f=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}function x(){}function k(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var _=k.prototype=new x;_.constructor=k,n(_,w.prototype),_.isPureReactComponent=!0;var S={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function $(e,t,r){var n,a={},o=null,l=null;if(null!=t)for(n in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)E.call(t,n)&&!C.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===a[n]&&(a[n]=s[n]);return{$$typeof:i,type:e,key:o,ref:l,props:a,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var T=/\/+/g,O=[];function P(e,t,r,n){if(O.length){var a=O.pop();return a.result=e,a.keyPrefix=t,a.func=r,a.context=n,a.count=0,a}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function z(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function F(e,t,r,n){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return r(n,e,""===t?"."+R(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=t+R(a=e[s],s);l+=F(a,c,r,n)}else if("function"==typeof(c=null===e||"object"!=typeof e?null:"function"==typeof(c=g&&e[g]||e["@@iterator"])?c:null))for(e=c.call(e),s=0;!(a=e.next()).done;)l+=F(a=a.value,c=t+R(a,s++),r,n);else if("object"===a)throw r=""+e,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return l}function N(e,t,r){return null==e?0:F(e,"",t,r)}function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,r){var n=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,n,r,(function(e){return e})):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+r)),n.push(e))}function M(e,t,r,n,a){var i="";null!=r&&(i=(""+r).replace(T,"$&/")+"/"),N(e,L,t=P(t,i,n,a)),z(t)}var D={current:null};function H(){var e=D.current;if(null===e)throw Error(y(321));return e}var B={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:function(e,t,r){if(null==e)return e;var n=[];return M(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;N(e,I,t=P(null,null,t,r)),z(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return M(e,t,null,(function(e){return e})),t},only:function(e){if(!A(e))throw Error(y(143));return e}},t.Component=w,t.Fragment=l,t.Profiler=c,t.PureComponent=k,t.StrictMode=s,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,r){if(null==e)throw Error(y(267,e));var a=n({},e.props),o=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)E.call(t,u)&&!C.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:l,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=$,t.createFactory=function(e){var t=$.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return H().useCallback(e,t)},t.useContext=function(e,t){return H().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return H().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return H().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return H().useLayoutEffect(e,t)},t.useMemo=function(e,t){return H().useMemo(e,t)},t.useReducer=function(e,t,r){return H().useReducer(e,t,r)},t.useRef=function(e){return H().useRef(e)},t.useState=function(e){return H().useState(e)},t.version="16.14.0"},540:(e,t,r)=>{"use strict";e.exports=r(287)},463:(e,t)=>{"use strict";var r,n,a,i,o;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,s=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},n=function(e,t){s=setTimeout(e,t)},a=function(){clearTimeout(s)},i=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var y=!1,v=null,b=-1,w=5,x=0;i=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();x=e+w;try{v(!0,e)?_.postMessage(null):(y=!1,v=null)}catch(e){throw _.postMessage(null),e}}else y=!1},r=function(e){v=e,y||(y=!0,_.postMessage(null))},n=function(e,r){b=f((function(){e(t.unstable_now())}),r)},a=function(){h(b),b=-1}}function S(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,a=e[n];if(!(void 0!==a&&0<$(a,t)))break e;e[n]=t,e[r]=a,r=n}}function E(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length;n<a;){var i=2*(n+1)-1,o=e[i],l=i+1,s=e[l];if(void 0!==o&&0>$(o,r))void 0!==s&&0>$(s,o)?(e[n]=s,e[l]=r,n=l):(e[n]=o,e[i]=r,n=i);else{if(!(void 0!==s&&0>$(s,r)))break e;e[n]=s,e[l]=r,n=l}}}return t}return null}function $(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var A=[],T=[],O=1,P=null,z=3,F=!1,N=!1,R=!1;function I(e){for(var t=E(T);null!==t;){if(null===t.callback)C(T);else{if(!(t.startTime<=e))break;C(T),t.sortIndex=t.expirationTime,S(A,t)}t=E(T)}}function L(e){if(R=!1,I(e),!N)if(null!==E(A))N=!0,r(M);else{var t=E(T);null!==t&&n(L,t.startTime-e)}}function M(e,r){N=!1,R&&(R=!1,a()),F=!0;var o=z;try{for(I(r),P=E(A);null!==P&&(!(P.expirationTime>r)||e&&!i());){var l=P.callback;if(null!==l){P.callback=null,z=P.priorityLevel;var s=l(P.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?P.callback=s:P===E(A)&&C(A),I(r)}else C(A);P=E(A)}if(null!==P)var c=!0;else{var u=E(T);null!==u&&n(L,u.startTime-r),c=!1}return c}finally{P=null,z=o,F=!1}}function D(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||F||(N=!0,r(M))},t.unstable_getCurrentPriorityLevel=function(){return z},t.unstable_getFirstCallbackNode=function(){return E(A)},t.unstable_next=function(e){switch(z){case 1:case 2:case 3:var t=3;break;default:t=z}var r=z;z=t;try{return e()}finally{z=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=z;z=e;try{return t()}finally{z=r}},t.unstable_scheduleCallback=function(e,i,o){var l=t.unstable_now();if("object"==typeof o&&null!==o){var s=o.delay;s="number"==typeof s&&0<s?l+s:l,o="number"==typeof o.timeout?o.timeout:D(e)}else o=D(e),s=l;return e={id:O++,callback:i,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>l?(e.sortIndex=s,S(T,e),null===E(A)&&e===E(T)&&(R?a():R=!0,n(L,s-l))):(e.sortIndex=o,S(A,e),N||F||(N=!0,r(M))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();I(e);var r=E(A);return r!==P&&null!==P&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<P.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=z;return function(){var r=z;z=t;try{return e.apply(this,arguments)}finally{z=r}}}},982:(e,t,r)=>{"use strict";e.exports=r(463)},828:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>o});const o=function e(t){return r.withOptions=r=>e(a(a({},t),r)),r;function r(e,...r){const n="string"==typeof e?[e]:e.raw,{escapeSpecialCharacters:a=Array.isArray(e)}=t;let i="";for(let e=0;e<n.length;e++){let t=n[e];a&&(t=t.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),i+=t,e<r.length&&(i+=r[e])}const o=i.split("\n");let l=null;for(const e of o){const t=e.match(/^(\s+)\S+/);if(t){const e=t[1].length;l=l?Math.min(l,e):e}}if(null!==l){const e=l;i=o.map((t=>" "===t[0]||"\t"===t[0]?t.slice(e):t)).join("\n")}return i=i.trim(),a&&(i=i.replace(/\\n/g,"\n")),i}}({})}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return s[e].call(r.exports,r,r.exports,u),r.exports}return u.m=s,u.c=c,u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{u.S={};var e={},t={};u.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];u.o(u.S,r)||(u.S[r]={});var i=u.S[r],o="MerchantOnboarding",l=(e,t,r,n)=>{var a=i[e]=i[e]||{},l=a[t];(!l||!l.loaded&&(!n!=!l.eager?n:o>l.from))&&(a[t]={get:r,from:o,eager:!!n})},s=[];return"default"===r&&(l("react-dom","16.14.0",(()=>()=>u(961)),1),l("react","16.14.0",(()=>()=>u(540)),1)),e[r]=s.length?Promise.all(s).then((()=>e[r]=1)):1}}})(),e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},t=e=>{var r=e[0],n="";if(1===e.length)return"*";if(r+.5){n+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var a=1,i=1;i<e.length;i++)a--,n+="u"==(typeof(l=e[i]))[0]?"-":(a>0?".":"")+(a=2,l);return n}var o=[];for(i=1;i<e.length;i++){var l=e[i];o.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?o.pop()+" "+o.pop():t(l))}return s();function s(){return o.pop().replace(/^\((.+)\)$/,"$1")}},r=(t,n)=>{if(0 in t){n=e(n);var a=t[0],i=a<0;i&&(a=-a-1);for(var o=0,l=1,s=!0;;l++,o++){var c,u,d=l<t.length?(typeof t[l])[0]:"";if(o>=n.length||"o"==(u=(typeof(c=n[o]))[0]))return!s||("u"==d?l>a&&!i:""==d!=i);if("u"==u){if(!s||"u"!=d)return!1}else if(s)if(d==u)if(l<=a){if(c!=t[l])return!1}else{if(i?c>t[l]:c<t[l])return!1;c!=t[l]&&(s=!1)}else if("s"!=d&&"n"!=d){if(i||l<=a)return!1;s=!1,l--}else{if(l<=a||u<d!=i)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,l--)}}var p=[],f=p.pop.bind(p);for(o=1;o<t.length;o++){var h=t[o];p.push(1==h?f()|f():2==h?f()&f():h?r(h,n):!f())}return!!f()},n=(t,r,n)=>{var a=n?(e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}))(t[r]):t[r];return Object.keys(a).reduce(((t,r)=>!t||!a[t].loaded&&((t,r)=>{t=e(t),r=e(r);for(var n=0;;){if(n>=t.length)return n<r.length&&"u"!=(typeof r[n])[0];var a=t[n],i=(typeof a)[0];if(n>=r.length)return"u"==i;var o=r[n],l=(typeof o)[0];if(i!=l)return"o"==i&&"n"==l||"s"==l||"u"==i;if("o"!=i&&"u"!=i&&a!=o)return a<o;n++}})(t,r)?r:t),0)},a=(e,t,r)=>r?r():((e,t)=>(e=>{throw new Error(e)})("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),i=(e=>function(t,r,n,a,i){var o=u.I(t);return o&&o.then&&!n?o.then(e.bind(e,t,u.S[t],r,!1,a,i)):e(t,u.S[t],r,n,a,i)})(((e,i,o,l,s,c)=>{if(!((e,t)=>e&&u.o(e,t))(i,o))return a(e,o,c);var d,p,f=n(i,o,l);return r(s,f)||(p=((e,r,n,a)=>"Unsatisfied version "+n+" from "+(n&&e[r][n].from)+" of shared singleton module "+r+" (required "+t(a)+")")(i,o,f,s),"undefined"!=typeof console&&console.warn&&console.warn(p)),(d=i[o][f]).loaded=1,d.get()})),o={},l={664:()=>i("default","react",!0,[1,16,14,0],(()=>()=>u(540))),36:()=>i("default","react-dom",!0,[1,16,14,0],(()=>()=>u(961))),660:()=>i("default","react",!0,[0,16],(()=>()=>u(540))),448:()=>i("default","react-dom",!0,[0,16],(()=>()=>u(961))),718:()=>i("default","react",!0,[,[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1],(()=>()=>u(540))),214:()=>i("default","react",!0,[,[1,19,0,0,,"rc"],[1,19,0,0],[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1,1,1],(()=>()=>u(540))),118:()=>i("default","react",!0,[,[1,19,0,0],[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1,1],(()=>()=>u(540)))},[664,36,660,448,718,214,118].forEach((e=>{u.m[e]=t=>{o[e]=0,delete u.c[e];var r=l[e]();if("function"!=typeof r)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=r()}})),u.nc=void 0,u(520)})()));
|