@paypal/merchant-onboarding-sdk 1.0.0 → 1.0.2
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 +176 -149
- package/dist/index.d.ts +3 -1
- package/dist/onboarding.js +198 -145
- package/dist/servicing.js +13013 -223
- package/dist/v1/js/development.partner.js +8187 -148
- package/dist/v1/js/development.servicing.js +15630 -1368
- package/dist/v1/js/partner.js +1 -1
- package/dist/v1/js/partner.js.LICENSE.txt +33 -0
- package/dist/v1/js/sandbox.partner.js +8187 -148
- package/dist/v1/js/sandbox.servicing.js +15630 -1368
- package/dist/v1/js/servicing.js +1 -1
- package/dist/v1/js/servicing.js.LICENSE.txt +33 -0
- package/dist/v1/js/staging.partner.js +8187 -148
- package/dist/v1/js/staging.servicing.js +15630 -1368
- package/dist/v1/js/te-e2e-embedded-path-testing.partner.js +8187 -148
- package/dist/v1/js/te-e2e-embedded-path-testing.servicing.js +15630 -1368
- package/dist/v1/js/te-eop-release.partner.js +8187 -148
- package/dist/v1/js/te-eop-release.servicing.js +15630 -1368
- package/dist/v1/js/te-hybrid-path-integration.partner.js +8187 -148
- package/dist/v1/js/te-hybrid-path-integration.servicing.js +15630 -1368
- package/package.json +6 -39
package/dist/v1/js/partner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see partner.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={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:()=>m,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)},m=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:()=>kt,createGlobalTheme:()=>ct,createGlobalThemeContract:()=>ot,createGlobalVar:()=>tt,createTheme:()=>ut,createThemeContract:()=>it,createVar:()=>et,createViewTransition:()=>xt,fallbackVar:()=>nt,fontFace:()=>ht,generateIdentifier:()=>Ye,globalFontFace:()=>gt,globalKeyframes:()=>bt,globalLayer:()=>Ct,globalStyle:()=>mt,keyframes:()=>yt,layer:()=>St,style:()=>pt,styleVariants:()=>vt});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,m=new Map([[126,a.Element],[94,a.Start],[36,a.End],[42,a.Any],[33,a.Not],[124,a.Hyphen]]),h=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 b(e){return e.replace(f,y)}function v(e){return 39===e||34===e}function k(e){return 32===e||9===e||10===e||12===e||13===e}function x(e){const t=[],r=w(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function w(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,b(a)}function l(e){for(r+=e;r<t.length&&k(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 b(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=m.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(v(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=b(t.slice(r+1,n)),r=n+1}else{const e=r;for(;r<t.length&&(!k(t.charCodeAt(r))&&93!==t.charCodeAt(r)||c(r));)r+=1;p=b(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 h={type:n.Attribute,name:e,action:u,value:p,namespace:s,ignoreCase:f};i.push(h);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(h.has(e)){if(v(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${e} cannot be quoted`);if(a=[],r=w(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)&&v(e)&&(a=a.slice(1,-1))}a=b(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 C(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 E(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=P(e,a);if(null===o)return null;var l=E(o,2),s=l[0],c=l[1];n.push(c),a=s}else{if(10===i)return null;n.push(i)}}return null},F=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))},P=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]},R=function(e,t){var r=L(e,t);if(null===r)return null;var n=E(r,3),a=n[0],i=n[1],o=n[2],l=I(e,a+1);if(null!==l){var s=E(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]]},L=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]},N=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=P(e,t);if(null===a)break;var i=E(a,2),o=i[0],l=i[1];r.push(l),t=o}return 0===t?null:[t-1,String.fromCharCode.apply(null,r)]},I=function(e,t){if(e.length<=t||!F(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=P(e,t);if(null===a)break;var i=E(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=P(e,t);if(null===i||a)return null;var o=E(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},H=function(e,t){var r=I(e,t);if(null===r)return null;var n=E(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=E(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>"]},j=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},D=function(e,t){return t instanceof Error?new Error("".concat(t.message.trim(),"\n").concat(e.trim())):new Error(e.trim())},V=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===(C=z(e,t)))return null;var i=E(C,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===(m=e.charCodeAt(t+1))||m>=65&&m<=90||m>=97&&m<=122||m>=128||m>=48&&m<=57||92===m&&t+2<e.length&&10!==e.charCodeAt(t+2))){var s=F(e,t+1)?"id":"unrestricted";if(null!==(C=N(e,t+1))){var c=E(C,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===(C=z(e,t)))return null;var u=E(C,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=R(e,t);if(null===d)r.push({type:"<delim-token>",value:n});else{var p=E(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!==(b=R(e,t))){var f=E(b,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 m=e.charCodeAt(t+1),h=e.charCodeAt(t+2);if(45===m&&62===h){r.push({type:"<CDC-token>"}),t+=2;continue}}if(null!==(C=H(e,t))){var g=E(C,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 b;if(null!==(b=R(e,t))){var v=E(b,2);o=v[0],"<dimension-token>"===(_=v[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){m=e.charCodeAt(t+1),h=e.charCodeAt(t+2);var k=e.charCodeAt(t+3);if(33===m&&45===h&&45===k){r.push({type:"<CDO-token>"}),t+=3;continue}}r.push({type:"<delim-token>",value:n})}else if(64===n){if(null!==(C=I(e,t+1))){var x=E(C,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===(C=P(e,t)))return null;var w=E(C,2);o=w[0],l=w[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=E(C=R(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 C;if(null===(C=H(e,t)))return null;var $=E(C,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 D("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 D("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 D("Expected '{' in media query but found ';'")}}return t=t.slice(r,n),U(t)},W=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(W);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:G(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 D("No valid media queries");return s},G=function(e){var t=e[0];if("<(-token>"===t.type)try{return{mediaPrefix:null,mediaType:"all",mediaCondition:q(e,!0)}}catch(e){throw D("Expected media condition after '('",e)}else{if("<ident-token>"!==t.type)throw D("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 D("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 D("Unknown ident '".concat(l,"' in media query"));r="not"===r?null:"not",n="all"}}else{if("not"!==r||"<(-token>"!==o.type)throw D("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:q(s,!0)}}catch(e){throw D("Expected media condition after '('",e)}}if(i+1===e.length)return{mediaPrefix:r,mediaType:n,mediaCondition:null};if(!(i+4<e.length))throw D("Expected media condition after media prefix");var c=e[i+1];if("<ident-token>"!==c.type||"and"!==c.value)throw D("Expected 'and' after media prefix");try{return{mediaPrefix:r,mediaType:n,mediaCondition:q(e.slice(i+2),!1)}}catch(e){throw D("Expected media condition after 'and'",e)}}},q=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:C(l,["wsBefore","wsAfter"])}}}else if(t.length>=5)try{var d=Y(t);return{context:"range",feature:d.featureName,range:d}}catch(e){throw D("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,m=i.leftToken,h=i.leftOp,g=i.featureName,y=i.rightOp,b=i.rightToken,v=null;if(null!==m)if("<ident-token>"===m.type){var k=m.type;"infinite"===(w=m.value)&&(v={type:k,value:w})}else"<number-token>"!==m.type&&"<dimension-token>"!==m.type&&"<ratio-token>"!==m.type||(m.wsBefore,m.wsAfter,v=C(m,["wsBefore","wsAfter"]));var x=null;if(null!==b)if("<ident-token>"===b.type){var w;k=b.type,"infinite"===(w=b.value)&&(x={type:k,value:w})}else"<number-token>"!==b.type&&"<dimension-token>"!==b.type&&"<ratio-token>"!==b.type||(b.wsBefore,b.wsAfter,x=C(b,["wsBefore","wsAfter"]));if(null!==v&&null!==x)if("<"!==h&&"<="!==h||"<"!==y&&"<="!==y){if(">"!==h&&">="!==h||">"!==y&&">="!==y)throw new Error("Invalid range");f={leftToken:v,leftOp:h,featureName:g,rightOp:y,rightToken:x}}else f={leftToken:v,leftOp:h,featureName:g,rightOp:y,rightToken:x};else(null===v&&null===h&&null!==y&&null!==x||null!==v&&null!==h&&null===y&&null===x)&&(f={leftToken:v,leftOp:h,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 Q(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 Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(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)):Q(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]=Z(Z({},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]=j(e[t])})(V(e))}catch(t){throw ce(e,t.message)}},de=["vars"],pe=["content"],fe="__DECLARATION",me={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 he(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||me[r]||(e[r]="".concat(t,"px"))})),e}transformVars(e){var{vars:t}=e,r=J(e,de);return t?Z(Z({},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:Z({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=he(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(be({"@font-face":t}));for(var r of this.propertyRules)e.push(be({["@property ".concat(r.name)]:r.rule}));for(var n of this.keyframesRules)e.push(be({["@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(be(l))}for(var c of this.rules)e.push(be({[c.selector]:c.rule}));for(var u of this.conditionalRulesets)for(var d of u.renderToArray())e.push(be(d));return e.filter(Boolean)}}function be(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=>be({[n]:e},t)))):i&&"object"==typeof i?0===Object.keys(i).length||r.push("".concat(t).concat(n," {\n").concat(be(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 ve=r(313);const ke="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,xe=new Set,we="object"==typeof process&&process?process:{},_e=(e,t,r,n)=>{"function"==typeof we.emitWarning?we.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let Se=globalThis.AbortController,Ce=globalThis.AbortSignal;if(void 0===Se){Ce=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},Se=class{constructor(){t()}signal=new Ce;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"!==we.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 Ee=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),$e=e=>Ee(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;#m;#h;#g;#y;#b;#v;#k;#x;#w;#_;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#k,sizes:e.#b,keyMap:e.#c,keyList:e.#u,valList:e.#d,next:e.#p,prev:e.#f,get head(){return e.#m},get tail(){return e.#h},free:e.#g,isBackgroundFetch:t=>e.#S(t),backgroundFetch:(t,r,n,a)=>e.#C(t,r,n,a),moveToTail:t=>e.#E(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:m,fetchMethod:h,memoMethod:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:k,ignoreFetchAbort:x}=e;if(0!==t&&!Ee(t))throw new TypeError("max option must be a nonnegative integer");const w=t?$e(t):Array;if(!w)throw new Error("invalid max value: "+t);if(this.#t=t,this.#r=p,this.maxEntrySize=f||this.#r,this.sizeCalculation=m,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!==h&&"function"!=typeof h)throw new TypeError("fetchMethod must be a function if specified");if(this.#i=h,this.#w=!!h,this.#c=new Map,this.#u=new Array(t).fill(void 0),this.#d=new Array(t).fill(void 0),this.#p=new w(t),this.#f=new w(t),this.#m=0,this.#h=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=!!v,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.#r&&!Ee(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ee(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#O()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!o,this.ttlResolution=Ee(n)||0===n?n:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!Ee(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.#k=e,this.#v=t,this.#F=(r,n,a=ke.now())=>{if(t[r]=0!==n?a:0,e[r]=n,0!==n&&this.ttlAutopurge){const e=setTimeout((()=>{this.#T(r)&&this.#P(this.#u[r],"expire")}),n+1);e.unref&&e.unref()}},this.#R=r=>{t[r]=0!==e[r]?ke.now():0},this.#L=(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=ke.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}}#R=()=>{};#L=()=>{};#F=()=>{};#T=()=>!1;#O(){const e=new Ae(this.#t);this.#s=0,this.#b=e,this.#N=t=>{this.#s-=e[t],e[t]=0},this.#I=(e,t,r,n)=>{if(this.#S(t))return 0;if(!Ee(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),!Ee(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.#H(!0)}this.#s+=e[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.#s)}}#N=e=>{};#M=(e,t,r)=>{};#I=(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.#h;this.#j(t)&&(!e&&this.#T(t)||(yield t),t!==this.#m);)t=this.#f[t]}*#A({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#m;this.#j(t)&&(!e&&this.#T(t)||(yield t),t!==this.#h);)t=this.#p[t]}#j(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.#P(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.#k&&this.#v){const e=this.#k[t],r=this.#v[t];if(e&&r){const t=e-(ke.now()-r);a.ttl=t,a.start=Date.now()}}return this.#b&&(a.size=this.#b[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.#k&&this.#v){i.ttl=this.#k[t];const e=ke.now()-this.#v[t];i.start=Math.floor(Date.now()-e)}this.#b&&(i.size=this.#b[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=ke.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.#I(e,t,r.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let u=0===this.#l?void 0:this.#c.get(e);if(void 0===u)u=0===this.#l?this.#h:0!==this.#g.length?this.#g.pop():this.#l===this.#t?this.#H(!1):this.#l,this.#u[u]=e,this.#d[u]=t,this.#c.set(e,u),this.#p[this.#h]=u,this.#f[u]=this.#h,this.#h=u,this.#l++,this.#M(u,c,l),l&&(l.set="add"),s=!1;else{this.#E(u);const r=this.#d[u];if(t!==r){if(this.#w&&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.#N(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.#k||this.#z(),this.#k&&(s||this.#F(u,n,a),l&&this.#L(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.#m];if(this.#H(!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)}}}#H(e){const t=this.#m,r=this.#u[t],n=this.#d[t];return this.#w&&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.#N(t),e&&(this.#u[t]=void 0,this.#d[t]=void 0,this.#g.push(t)),1===this.#l?(this.#m=this.#h=0,this.#g.length=0):this.#m=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.#R(a),n&&(n.has="hit",this.#L(n,a)),!0;n&&(n.has="stale",this.#L(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}#C(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.#P(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.#P(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.#w)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:m,forceRefresh:h=!1,status:g,signal:y}=t;if(!this.#w)return g&&(g.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:a,status:g});const b={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 v=this.#c.get(e);if(void 0===v){g&&(g.fetch="miss");const t=this.#C(e,v,b,m);return t.__returned=t}{const t=this.#d[v];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(v);if(!h&&!a)return g&&(g.fetch="hit"),this.#E(v),n&&this.#R(v),g&&this.#L(g,v),t;const i=this.#C(e,v,b,m),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.#L(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.#P(e,"expire"),i&&r&&(i.returnedStale=!0),r?t:void 0)):(i&&(i.get="hit"),l?t.__staleWhileFetching:(this.#E(o),n&&this.#R(o),t))}i&&(i.get="miss")}#B(e,t){this.#f[t]=e,this.#p[e]=t}#E(e){e!==this.#h&&(e===this.#m?this.#m=this.#p[e]:this.#B(this.#f[e],this.#p[e]),this.#B(this.#h,e),this.#h=e)}delete(e){return this.#P(e,"delete")}#P(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.#D(t);else{this.#N(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.#h)this.#h=this.#f[n];else if(n===this.#m)this.#m=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.#D("delete")}#D(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.#k&&this.#v&&(this.#k.fill(0),this.#v.fill(0)),this.#b&&this.#b.fill(0),this.#m=0,this.#h=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,Fe=e=>null!=e&&"object"==typeof e,Pe=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Re=e=>Fe(e)&&(e=>0===Object.keys(e).length)(e),Le=(e,t)=>{if(e===t)return{};if(!Fe(e)||!Fe(t))return t;const r=Object.keys(e).reduce(((e,r)=>(Pe(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(!Pe(e,n))return r[n]=t[n],r;const a=Le(e[n],t[n]);return!Re(a)||ze(a)||!Re(e[n])&&Re(t[n])?(r[n]=a,r):r}),r)},Ne=Le;var Ie=r(633),Me=r.n(Ie),He=r(744),je=r.n(He),Be=new Set,De=[],Ve=[],We={appendCss:e=>{Ve.push(e)},registerClassName:e=>{Be.add(e)},registerComposition:e=>{De.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:De,cssObjs:Ve}).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}),Ve=[]},getIdentOption:()=>"short"};(0,u.GX)(We);var Ue,Ge=(e,t)=>{for(var r=t-1;r>=0;){if("/"===e[r])return r;r--}return-1},qe=(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=Ge(e,r);if(t=e.slice(n+1,r),-1===n)return t;var a=Ge(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}=Z(Z({},"string"==typeof e?{debugId:e}:null),"object"==typeof e?e:null),a=(0,ve.getAndIncrementRefCounter)().toString(36),{filePath:i,packageName:o}=(0,ve.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,ve.getFileScope)(),i=qe(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 Qe(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 Ze(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[];0===r&&n.push(Qe("{",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(Qe("".concat(o,": {"),a)),n.push(Ze(e[o],t[o],a)),n.push(Qe("}",a))):n.push(Qe("".concat(o,": ...,"),a,"-")):n.push(Qe("".concat(o,": ...,"),a,"+"))}return 0===r&&n.push(Qe("}",0)),n.join("\n")}var Je=e=>{var{syntax:t,inherits:r,initialValue:n}=e;return Z({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,ve.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,ve.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=Ne(Xe(e),Xe(t)),n=0===Object.keys(r).length;return{valid:n,diffString:n?"":Ze(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,ve.getFileScope)()),!n)return l}function ut(e,t,r){var n=Ye("object"==typeof t?r:t);(0,u.rG)(n,(0,ve.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,ve.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,ve.getFileScope)()),a.length>0&&(0,u.VF)(r)),a.length>0){var l=je().all(a,{arrayMerge:(e,t)=>t});(0,u.i2)({type:"local",selector:r,rule:l},(0,ve.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,ve.getFileScope)()),(0,u.i2)({type:"local",selector:r,rule:e},(0,ve.getFileScope)()),r}function ft(){for(var e=(0,ve.hasFileScope)()?dt:ne,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e(r)}function mt(e,t){(0,u.i2)({type:"global",selector:e,rule:t},(0,ve.getFileScope)())}function ht(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:Z(Z({},a),{},{fontFamily:r})},(0,ve.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:Z(Z({},n),{},{fontFamily:e})},(0,ve.getFileScope)())}function yt(e,t){var r=s()(Ye(t),{isIdentifier:!0});return(0,u.i2)({type:"keyframes",name:r,rule:e},(0,ve.getFileScope)()),r}function bt(e,t){(0,u.i2)({type:"keyframes",name:e,rule:t},(0,ve.getFileScope)())}function vt(){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 kt=e=>Ye(e),xt=e=>Ye(e),wt={},_t=function(){var e,t=wt,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=Z(Z({},wt),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,ve.getFileScope)()),r}function Ct(){var[e,t]=_t(...arguments);return e.parent&&(t="".concat(e.parent,".").concat(t)),(0,u.i2)({type:"layer",name:t},(0,ve.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})},972:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>IC});var n={};r.r(n),r.d(n,{animationTimingName:()=>la,animationTimingStyle:()=>sa,ellipsisName:()=>da,ellipsisStyles:()=>pa,slideLeft:()=>ma,slideRight:()=>fa,transitionTimingName:()=>ca,transitionTimingStyle:()=>ua,variables:()=>oa});var a={};r.r(a),r.d(a,{aU:()=>Fa,OG:()=>Ta,YQ:()=>Oa});var i={};r.r(i),r.d(i,{rq:()=>Ua,E3:()=>Ga,eF:()=>Wa,jr:()=>Xa,H1:()=>Ya,g3:()=>Ka,_6:()=>Qa,Fm:()=>qa,JW:()=>Za});var o={};r.r(o),r.d(o,{circleBase:()=>Gh,circleInner:()=>qh,circleInnerAccent1:()=>Kh,circleInnerAccent2:()=>Yh,circleInnerAccent3:()=>Xh,circleInnerAccent4:()=>Qh,circleInnerImage:()=>Zh,circleProgressIndicator:()=>Jh,circleRadiusSvg:()=>Hh,circleSm:()=>eg,circleSmProgressIndicator:()=>tg,iconWrapLg:()=>og,iconWrapSm:()=>ig,progressIndicatorCircleRadius:()=>Wh,strokeColorAccent1:()=>lg,strokeColorAccent2:()=>sg,strokeColorAccent3:()=>cg,strokeColorAccent4:()=>ug,textContent:()=>ag,textProgressMeterBase:()=>rg,textProgressMeterInnerText:()=>ng});var l={};r.r(l),r.d(l,{cellBase:()=>_b,cellHeading:()=>kb,cellResponsive:()=>Sb,columnCenter:()=>Ab,columnEnd:()=>$b,columnRemaining:()=>Kb,columnStart:()=>Eb,fixedFirstColumn:()=>fb,fixedFirstColumnTable:()=>nb,mobileColumnCenter:()=>Zb,mobileColumnEnd:()=>Qb,mobileColumnStart:()=>Xb,mobileGridZoneA1:()=>Ob,mobileGridZoneA12:()=>Pb,mobileGridZoneA123:()=>Lb,mobileGridZoneA2:()=>zb,mobileGridZoneA23:()=>Rb,mobileGridZoneA3:()=>Fb,mobileGridZoneAB1:()=>Db,mobileGridZoneAB12:()=>Ub,mobileGridZoneAB123:()=>qb,mobileGridZoneAB2:()=>Vb,mobileGridZoneAB23:()=>Gb,mobileGridZoneAB3:()=>Wb,mobileGridZoneB1:()=>Nb,mobileGridZoneB12:()=>Hb,mobileGridZoneB123:()=>Bb,mobileGridZoneB2:()=>Ib,mobileGridZoneB23:()=>jb,mobileGridZoneB3:()=>Mb,mobileGridZoneHidden:()=>Tb,mobileWidth:()=>Yb,responsiveTableBase:()=>db,rowBase:()=>xb,rowSelected:()=>wb,scrollContext:()=>cb,scrollContextTable:()=>ub,stickyColFoot:()=>gb,stickyColHead:()=>hb,summaryAdjust:()=>ob,summaryHeading:()=>ab,summaryItem:()=>ib,summaryTotal:()=>lb,summaryWrapper:()=>pb,tableBase:()=>Cb,tbody:()=>bb,tfoot:()=>vb,thead:()=>yb,typeData:()=>tb,typeSummary:()=>rb,utility:()=>sb});var s={};r.r(s),r.d(s,{base:()=>Dx,baseIcon:()=>Vx,baseSmIcon:()=>Wx,inverse:()=>qx,leftIcon:()=>Yx,linkLg:()=>jx,linkSm:()=>Bx,primary:()=>Ux,secondary:()=>Gx,shimmer:()=>Kx});var c,u,d,p,f=r(664),m=r.n(f),h=r(556),g=r.n(h),y=r(98),b=r.n(y),v=r(115),k=r.n(v),x=r(831),w=r.n(x),_=r(228),S=r.n(_),C="bodyAttributes",E="htmlAttributes",$={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},A=(Object.keys($).map((function(e){return $[e]})),"charset"),T="cssText",O="href",z="innerHTML",F="itemprop",P="rel",R={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},L=Object.keys(R).reduce((function(e,t){return e[R[t]]=t,e}),{}),N=[$.NOSCRIPT,$.SCRIPT,$.STYLE],I="data-react-helmet",M="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},H=function(){function e(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,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},D=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(e){var t=K(e,$.TITLE),r=K(e,"titleTemplate");if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=K(e,"defaultTitle");return t||n||void 0},W=function(e){return K(e,"onChangeClientState")||function(){}},U=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return j({},e,t)}),{})},G=function(e,t){return t.filter((function(e){return void 0!==e[$.BASE]})).map((function(e){return e[$.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),a=0;a<n.length;a++){var i=n[a].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},q=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&J("Helmet: "+e+' should be of type "Array". Instead found type "'+M(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var a={};r.filter((function(e){for(var r=void 0,i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],s=l.toLowerCase();-1===t.indexOf(s)||r===P&&"canonical"===e[r].toLowerCase()||s===P&&"stylesheet"===e[s].toLowerCase()||(r=s),-1===t.indexOf(l)||l!==z&&l!==T&&l!==F||(r=l)}if(!r||!e[r])return!1;var c=e[r].toLowerCase();return n[r]||(n[r]={}),a[r]||(a[r]={}),!n[r][c]&&(a[r][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(a),o=0;o<i.length;o++){var l=i[o],s=S()({},n[l],a[l]);n[l]=s}return e}),[]).reverse()},K=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},Y=(c=Date.now(),function(e){var t=Date.now();t-c>16?(c=t,e(t)):setTimeout((function(){Y(e)}),0)}),X=function(e){return clearTimeout(e)},Q="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Y:r.g.requestAnimationFrame||Y,Z="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||X:r.g.cancelAnimationFrame||X,J=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ee=null,te=function(e,t){var r=e.baseTag,n=e.bodyAttributes,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,l=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,p=e.titleAttributes;ae($.BODY,n),ae($.HTML,a),ne(d,p);var f={baseTag:ie($.BASE,r),linkTags:ie($.LINK,i),metaTags:ie($.META,o),noscriptTags:ie($.NOSCRIPT,l),scriptTags:ie($.SCRIPT,c),styleTags:ie($.STYLE,u)},m={},h={};Object.keys(f).forEach((function(e){var t=f[e],r=t.newTags,n=t.oldTags;r.length&&(m[e]=r),n.length&&(h[e]=f[e].oldTags)})),t&&t(),s(e,m,h)},re=function(e){return Array.isArray(e)?e.join(""):e},ne=function(e,t){void 0!==e&&document.title!==e&&(document.title=re(e)),ae($.TITLE,t)},ae=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(I),a=n?n.split(","):[],i=[].concat(a),o=Object.keys(t),l=0;l<o.length;l++){var s=o[l],c=t[s]||"";r.getAttribute(s)!==c&&r.setAttribute(s,c),-1===a.indexOf(s)&&a.push(s);var u=i.indexOf(s);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)r.removeAttribute(i[d]);a.length===i.length?r.removeAttribute(I):r.getAttribute(I)!==o.join(",")&&r.setAttribute(I,o.join(","))}},ie=function(e,t){var r=document.head||document.querySelector($.HEAD),n=r.querySelectorAll(e+"["+I+"]"),a=Array.prototype.slice.call(n),i=[],o=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===z)r.innerHTML=t.innerHTML;else if(n===T)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[n]?"":t[n];r.setAttribute(n,l)}r.setAttribute(I,"true"),a.some((function(e,t){return o=t,r.isEqualNode(e)}))?a.splice(o,1):i.push(r)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:a,newTags:i}},oe=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[R[r]||r]=e[r],t}),t)},se=function(e,t,r){switch(e){case $.TITLE:return{toComponent:function(){return function(e,t,r){var n,a=((n={key:t})[I]=!0,n),i=le(r,a);return[w().createElement($.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,r,n){var a=oe(r),i=re(t);return a?"<"+e+" "+I+'="true" '+a+">"+D(i,n)+"</"+e+">":"<"+e+" "+I+'="true">'+D(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case C:case E:return{toComponent:function(){return le(t)},toString:function(){return oe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,a=((n={key:r})[I]=!0,n);return Object.keys(t).forEach((function(e){var r=R[e]||e;if(r===z||r===T){var n=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:n}}else a[r]=t[e]})),w().createElement(e,a)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var a=Object.keys(n).filter((function(e){return!(e===z||e===T)})).reduce((function(e,t){var a=void 0===n[t]?t:t+'="'+D(n[t],r)+'"';return e?e+" "+a:a}),""),i=n.innerHTML||n.cssText||"",o=-1===N.indexOf(e);return t+"<"+e+" "+I+'="true" '+a+(o?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},ce=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,l=e.noscriptTags,s=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,p=e.titleAttributes;return{base:se($.BASE,t,n),bodyAttributes:se(C,r,n),htmlAttributes:se(E,a,n),link:se($.LINK,i,n),meta:se($.META,o,n),noscript:se($.NOSCRIPT,l,n),script:se($.SCRIPT,s,n),style:se($.STYLE,c,n),title:se($.TITLE,{title:d,titleAttributes:p},n)}},ue=b()((function(e){return{baseTag:G([O,"target"],e),bodyAttributes:U(C,e),defer:K(e,"defer"),encode:K(e,"encodeSpecialCharacters"),htmlAttributes:U(E,e),linkTags:q($.LINK,[P,O],e),metaTags:q($.META,["name",A,"http-equiv","property",F],e),noscriptTags:q($.NOSCRIPT,[z],e),onChangeClientState:W(e),scriptTags:q($.SCRIPT,["src",z],e),styleTags:q($.STYLE,[T],e),title:V(e),titleAttributes:U("titleAttributes",e)}}),(function(e){ee&&Z(ee),e.defer?ee=Q((function(){te(e,(function(){ee=null}))})):(te(e),ee=null)}),ce)((function(){return null})),de=(u=ue,p=d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!k()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case $.SCRIPT:case $.NOSCRIPT:return{innerHTML:t};case $.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,a=e.newChildProps,i=e.nestedChildren;return j({},n,((t={})[r.type]=[].concat(n[r.type]||[],[j({},a,this.mapNestedChildrenToProps(r,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(n.type){case $.TITLE:return j({},a,((t={})[n.type]=o,t.titleAttributes=j({},i),t));case $.BODY:return j({},a,{bodyAttributes:j({},i)});case $.HTML:return j({},a,{htmlAttributes:j({},i)})}return j({},a,((r={})[n.type]=j({},i),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=j({},t);return Object.keys(e).forEach((function(t){var n;r=j({},r,((n={})[t]=e[t],n))})),r},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return w().Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,i=a.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[L[r]||r]=e[r],t}),t)}(B(a,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case $.LINK:case $.META:case $.NOSCRIPT:case $.SCRIPT:case $.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:o,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=B(e,["children"]),n=j({},r);return t&&(n=this.mapChildrenToProps(t,n)),w().createElement(u,n)},H(t,null,[{key:"canUseDOM",set:function(e){u.canUseDOM=e}}]),t}(w().Component),d.propTypes={base:g().object,bodyAttributes:g().object,children:g().oneOfType([g().arrayOf(g().node),g().node]),defaultTitle:g().string,defer:g().bool,encodeSpecialCharacters:g().bool,htmlAttributes:g().object,link:g().arrayOf(g().object),meta:g().arrayOf(g().object),noscript:g().arrayOf(g().object),onChangeClientState:g().func,script:g().arrayOf(g().object),style:g().arrayOf(g().object),title:g().string,titleAttributes:g().object,titleTemplate:g().string},d.defaultProps={defer:!0,encodeSpecialCharacters:!0},d.peek=u.peek,d.rewind=function(){var e=u.rewind();return e||(e=ce({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},p);de.renderStatic=de.rewind;var pe=r(660),fe=r.n(pe),me=r(313),he=r(436);function ge(){return ge=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},ge.apply(null,arguments)}function ye(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}const be=r(626).L;me.setFileScope("src/theme.css.ts","@paypalcorp/pp-react-theme");const ve=(0,he.createTheme)(be,{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");me.endFileScope(),me.setFileScope("src/darkTheme.css.ts","@paypalcorp/pp-react-theme"),(0,he.createTheme)(be,{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"),me.endFileScope();var ke=["theme","className","children"],xe=function(e){var t=e.theme,r=void 0===t?ve:t,n=e.className,a=e.children,i=ye(e,ke);return fe().createElement("div",ge({className:"ppui-theme ".concat(r," ").concat(n||"")},i),a)},we="22rem",_e="36rem",Se="47rem",Ce="64rem",Ee="72rem",$e="90rem",Ae=r(699);const Te=Ae.Tr,Oe=Ae._s;function ze(e){return ze="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},ze(e)}function Fe(e){var t=function(e){if("object"!=ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(t)?t:t+""}function Pe(e,t,r){return(t=Fe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Re(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,Fe(n.key),n)}}var Le,Ne,Ie=function(){return"undefined"!=typeof window},Me=function(){return"undefined"!=typeof document},He=(Le=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},Ne="sysColor",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Le.apply(void 0,[Ne].concat(t))}),je={fore:"contrast",back:"main",hover:"mainHover",active:"mainActive"},Be={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:je,primaryInverse:{familyName:"primary",fore:"main",back:"contrast",hover:"contrastHover",active:"contrastActive"},secondary:je,tertiary:je,featured:je,unselected:je,selected:je,linkMain:je,linkAlt:je,overlay:je,accent1:je,accent2:je,accent3:je,accent4:je,error:je,warning:je,success:je,system:je,info:je,specialty:je},De=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=Be[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 Pe(Pe(Pe(Pe(Pe(Pe({},Oe.main,c[i]),Oe.background,c[o]),Oe.hoverMain,c[i]),Oe.hoverBack,c[l]),Oe.activeMain,c[i]),Oe.activeBack,c[s])},Ve=1060,We=1090,Ue=/([+-]?\d*\.?\d*)([a-z%]*)?/,Ge=function(e,t){var r;if("number"==typeof e)return{unit:t,value:e};var n=e.match(Ue);return{value:parseFloat(e),unit:null!==(r=n&&n[2])&&void 0!==r?r:t}},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r=Ge(e,"px"),n=r.unit,a=r.value;return"rem"===n?a*t:a},Ke=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},Ye=function(e,t){return"color-mix(in srgb, ".concat(e," ").concat(t,", transparent)")},Xe="ppui",Qe={};function Ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe;Qe[e]||(Qe[e]=0);var t=++Qe[e];return e===Xe?"".concat(t):"".concat(e).concat(t)}var Je=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Pe(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}}])&&Re(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();Pe(Je,"CODE_ARROW_UP",38),Pe(Je,"CODE_ARROW_DOWN",40),Pe(Je,"CODE_ARROW_LEFT",37),Pe(Je,"CODE_ARROW_RIGHT",39),Pe(Je,"CODE_ENTER",13),Pe(Je,"CODE_SPACE",32),Pe(Je,"CODE_ESC",27),Pe(Je,"CODE_TAB",9),Pe(Je,"CODE_CAPS_LOCK",20),Pe(Je,"CODE_HOME",36),Pe(Je,"CODE_END",35),Pe(Je,"CODE_BACKSPACE",8),Pe(Je,"CODE_DELETE",46),Pe(Je,"NAME_ARROW_UP","Up"),Pe(Je,"NAME_ARROW_DOWN","Down"),Pe(Je,"NAME_ARROW_LEFT","Left"),Pe(Je,"NAME_ARROW_RIGHT","Right"),Pe(Je,"NAME_ENTER","Enter"),Pe(Je,"NAME_SPACE"," "),Pe(Je,"NAME_ESC","Esc"),Pe(Je,"NAME_TAB","Tab"),Pe(Je,"NAME_HOME","Home"),Pe(Je,"NAME_END","End"),Pe(Je,"NAME_BACKSPACE","Backspace"),Pe(Je,"NAME_DELETE","Delete");var et=["as","children","className"];function tt(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 rt=function(e){if(null===e||"object"!==ze(e))return e;var t=new e.constructor;for(var r in e)e.hasOwnProperty(r)&&(t[r]=rt(e[r]));return t},nt=function(e,t){if(t){var r=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(r,"ig");return e.replace(n,"<strong>$&</strong>")}return e},at=function(e){var t=e.as,r=void 0===t?"span":t,n=e.children,a=e.className,i=ye(e,et);return n?fe().createElement(r,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:a},i),n):null};me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-screen-reader");const[it,ot]=(lt={position:"absolute",clip:"rect(1px, 1px, 1px, 1px)",padding:0,border:0,width:"1px",height:"1px",overflow:"hidden"},[(0,he.style)(lt,"screenreader"),lt]);var lt;me.endFileScope();var st=["as","className","children"],ct=function(e){var t=e.as,r=void 0===t?"div":t,n=e.className,a=e.children,i=ye(e,st);return fe().createElement(r,ge({className:Ke(it,n)},i,{"data-ppui":"true"}),a)};function ut(e,t){return[(0,he.style)(e,t),e]}me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-shimmer");const dt=`cubic-bezier(${be.motion.easing.loop.standard})`,pt=(0,he.keyframes)({"0%":{backgroundPosition:"100% 0"},"100%":{backgroundPosition:"-100% 0"}},"shimmer_animation"),[ft,mt]=ut({backgroundColor:be.color.structure.shimmer,border:`${be.border.thickness.normal} solid transparent`,backgroundImage:`linear-gradient(\n to right,\n ${be.color.structure.shimmer} 0%,\n ${be.color.structure.sheen} 50%,\n ${be.color.structure.shimmer} 100%\n )`,backgroundPosition:"100% 0",backgroundSize:"200%",animation:`${pt} ${be.motion.duration.loop.standard}\n ${dt} infinite`},"shimmer_base"),[ht,gt]=ut({backgroundColor:be.color.structure.shimmerInverse,backgroundImage:`linear-gradient(\n to right,\n ${be.color.structure.shimmerInverse} 0%,\n ${be.color.structure.sheen} 50%,\n ${be.color.structure.shimmerInverse} 100%\n )`},"shimmer_inverse"),[yt,bt]=ut({borderRadius:be.border.radius.lg,width:"100%",height:"100%"},"shimmer_default");me.endFileScope();var vt=["as","isInverse","className","hasStyleDefaults","children"],kt=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=ye(e,vt),c=Ke(ft,n&&ht,o&&yt,a);return fe().createElement(r,ge({className:c},s,{"data-ppui":"true"}),fe().createElement(ct,{as:"span","data-ppui":"true"},l))};function xt(e,t){return[(0,he.style)(e,t),e]}me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text");const wt=e=>`${e}, "Helvetica Neue", Arial, sans-serif`,_t=(0,he.style)({margin:0,padding:0},"text_override_default"),[St,Ct]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.body.family),fontSize:be.typography.body.size,lineHeight:be.typography.body.lineHeight,fontWeight:be.typography.body.weight,letterSpacing:be.typography.body.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.body.size}, calc(${be.typography.body.size}*${be.typography.body.maxScaleFactor}))`,lineHeight:`min(${be.typography.body.lineHeight}, calc(${be.typography.body.lineHeight}*${be.typography.body.maxScaleFactor}))`}}},"text-body"),[Et,$t]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.bodyMedium.family),fontSize:be.typography.bodyMedium.size,lineHeight:be.typography.bodyMedium.lineHeight,fontWeight:be.typography.bodyMedium.weight,letterSpacing:be.typography.bodyMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.bodyMedium.size}, calc(${be.typography.bodyMedium.size}*${be.typography.bodyMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.bodyMedium.lineHeight}, calc(${be.typography.bodyMedium.lineHeight}*${be.typography.bodyMedium.maxScaleFactor}))`}}},"text-body_medium"),[At,Tt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.bodyStrong.family),fontSize:be.typography.bodyStrong.size,lineHeight:be.typography.bodyStrong.lineHeight,fontWeight:be.typography.bodyStrong.weight,letterSpacing:be.typography.bodyStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.bodyStrong.size}, calc(${be.typography.bodyStrong.size}*${be.typography.bodyStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.bodyStrong.lineHeight}, calc(${be.typography.bodyStrong.lineHeight}*${be.typography.bodyStrong.maxScaleFactor}))`}}},"text-body_strong"),[Ot,zt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.caption.family),fontSize:be.typography.caption.size,lineHeight:be.typography.caption.lineHeight,fontWeight:be.typography.caption.weight,letterSpacing:be.typography.caption.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.caption.size}, calc(${be.typography.caption.size}*${be.typography.caption.maxScaleFactor}))`,lineHeight:`min(${be.typography.caption.lineHeight}, calc(${be.typography.caption.lineHeight}*${be.typography.caption.maxScaleFactor}))`}}},"text-caption"),[Ft,Pt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.captionMedium.family),fontSize:be.typography.captionMedium.size,lineHeight:be.typography.captionMedium.lineHeight,fontWeight:be.typography.captionMedium.weight,letterSpacing:be.typography.captionMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.captionMedium.size}, calc(${be.typography.captionMedium.size}*${be.typography.captionMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.captionMedium.lineHeight}, calc(${be.typography.captionMedium.lineHeight}*${be.typography.captionMedium.maxScaleFactor}))`}}},"text-caption_medium"),[Rt,Lt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.captionStrong.family),fontSize:be.typography.captionStrong.size,lineHeight:be.typography.captionStrong.lineHeight,fontWeight:be.typography.captionStrong.weight,letterSpacing:be.typography.captionStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.captionStrong.size}, calc(${be.typography.captionStrong.size}*${be.typography.captionStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.captionStrong.lineHeight}, calc(${be.typography.captionStrong.lineHeight}*${be.typography.captionStrong.maxScaleFactor}))`}}},"text-caption_strong"),[Nt,It]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.linkLg.family),fontSize:be.typography.linkLg.size,lineHeight:be.typography.linkLg.lineHeight,fontWeight:be.typography.linkLg.weight,letterSpacing:be.typography.linkLg.letterSpacing,textDecoration:be.typography.linkLg.underline?"underline":"none","@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.linkLg.size}, calc(${be.typography.linkLg.size}*${be.typography.linkLg.maxScaleFactor}))`,lineHeight:`min(${be.typography.linkLg.lineHeight}, calc(${be.typography.linkLg.lineHeight}*${be.typography.linkLg.maxScaleFactor}))`}}},"text-link_lg"),[Mt,Ht]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.linkSm.family),fontSize:be.typography.linkSm.size,lineHeight:be.typography.linkSm.lineHeight,fontWeight:be.typography.linkSm.weight,letterSpacing:be.typography.linkSm.letterSpacing,textDecoration:be.typography.linkSm.underline?"underline":"none","@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.linkSm.size}, calc(${be.typography.linkSm.size}*${be.typography.linkSm.maxScaleFactor}))`,lineHeight:`min(${be.typography.linkSm.lineHeight}, calc(${be.typography.linkSm.lineHeight}*${be.typography.linkSm.maxScaleFactor}))`}}},"text-link_sm"),[jt,Bt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.tag.family),fontSize:be.typography.tag.size,lineHeight:be.typography.tag.lineHeight,fontWeight:be.typography.tag.weight,letterSpacing:be.typography.tag.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.tag.size}, calc(${be.typography.tag.size}*${be.typography.tag.maxScaleFactor}))`,lineHeight:`min(${be.typography.tag.lineHeight}, calc(${be.typography.tag.lineHeight}*${be.typography.tag.maxScaleFactor}))`}}},"text-tag"),[Dt,Vt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.tagMedium.family),fontSize:be.typography.tagMedium.size,lineHeight:be.typography.tagMedium.lineHeight,fontWeight:be.typography.tagMedium.weight,letterSpacing:be.typography.tagMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.tagMedium.size}, calc(${be.typography.tagMedium.size}*${be.typography.tagMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.tagMedium.lineHeight}, calc(${be.typography.tagMedium.lineHeight}*${be.typography.tagMedium.maxScaleFactor}))`}}},"text-tag_medium"),[Wt,Ut]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.tagStrong.family),fontSize:be.typography.tagStrong.size,lineHeight:be.typography.tagStrong.lineHeight,fontWeight:be.typography.tagStrong.weight,letterSpacing:be.typography.tagStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.tagStrong.size}, calc(${be.typography.tagStrong.size}*${be.typography.tagStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.tagStrong.lineHeight}, calc(${be.typography.tagStrong.lineHeight}*${be.typography.tagStrong.maxScaleFactor}))`}}},"text-tag_strong"),[Gt,qt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.dataViz.family),fontSize:be.typography.dataViz.size,lineHeight:be.typography.dataViz.lineHeight,fontWeight:be.typography.dataViz.weight,letterSpacing:be.typography.dataViz.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.dataViz.size}, calc(${be.typography.dataViz.size}*${be.typography.dataViz.maxScaleFactor}))`,lineHeight:`min(${be.typography.dataViz.lineHeight}, calc(${be.typography.dataViz.lineHeight}*${be.typography.dataViz.maxScaleFactor}))`}}},"text-data_viz"),[Kt,Yt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.dataVizMedium.family),fontSize:be.typography.dataVizMedium.size,lineHeight:be.typography.dataVizMedium.lineHeight,fontWeight:be.typography.dataVizMedium.weight,letterSpacing:be.typography.dataVizMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.dataVizMedium.size}, calc(${be.typography.dataVizMedium.size}*${be.typography.dataVizMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.dataVizMedium.lineHeight}, calc(${be.typography.dataVizMedium.lineHeight}*${be.typography.dataVizMedium.maxScaleFactor}))`}}},"text-data_viz_medium"),[Xt,Qt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.dataVizStrong.family),fontSize:be.typography.dataVizStrong.size,lineHeight:be.typography.dataVizStrong.lineHeight,fontWeight:be.typography.dataVizStrong.weight,letterSpacing:be.typography.dataVizStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.dataVizStrong.size}, calc(${be.typography.dataVizStrong.size}*${be.typography.dataVizStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.dataVizStrong.lineHeight}, calc(${be.typography.dataVizStrong.lineHeight}*${be.typography.dataVizStrong.maxScaleFactor}))`}}},"text-data_viz_strong"),[Zt,Jt]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.title.family),fontSize:be.typography.title.size,lineHeight:be.typography.title.lineHeight,fontWeight:be.typography.title.weight,letterSpacing:be.typography.title.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.title.size}, calc(${be.typography.title.size}*${be.typography.title.maxScaleFactor}))`,lineHeight:`min(${be.typography.title.lineHeight}, calc(${be.typography.title.lineHeight}*${be.typography.title.maxScaleFactor}))`}}},"text-title"),[er,tr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.titleMedium.family),fontSize:be.typography.titleMedium.size,lineHeight:be.typography.titleMedium.lineHeight,fontWeight:be.typography.titleMedium.weight,letterSpacing:be.typography.titleMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.titleMedium.size}, calc(${be.typography.titleMedium.size}*${be.typography.titleMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.titleMedium.lineHeight}, calc(${be.typography.titleMedium.lineHeight}*${be.typography.titleMedium.maxScaleFactor}))`}}},"text-title_medium"),[rr,nr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.titleStrong.family),fontSize:be.typography.titleStrong.size,lineHeight:be.typography.titleStrong.lineHeight,fontWeight:be.typography.titleStrong.weight,letterSpacing:be.typography.titleStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.titleStrong.size}, calc(${be.typography.titleStrong.size}*${be.typography.titleStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.titleStrong.lineHeight}, calc(${be.typography.titleStrong.lineHeight}*${be.typography.titleStrong.maxScaleFactor}))`}}},"text-title_strong"),[ar,ir]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.headingSm.family),fontSize:be.typography.headingSm.size,lineHeight:be.typography.headingSm.lineHeight,fontWeight:be.typography.headingSm.weight,letterSpacing:be.typography.headingSm.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.headingSm.size}, calc(${be.typography.headingSm.size}*${be.typography.headingSm.maxScaleFactor}))`,lineHeight:`min(${be.typography.headingSm.lineHeight}, calc(${be.typography.headingSm.lineHeight}*${be.typography.headingSm.maxScaleFactor}))`}}},"text-heading_sm"),[or,lr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.headingSmMedium.family),fontSize:be.typography.headingSmMedium.size,lineHeight:be.typography.headingSmMedium.lineHeight,fontWeight:be.typography.headingSmMedium.weight,letterSpacing:be.typography.headingSmMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.headingSmMedium.size}, calc(${be.typography.headingSmMedium.size}*${be.typography.headingSmMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.headingSmMedium.lineHeight}, calc(${be.typography.headingSmMedium.lineHeight}*${be.typography.headingSmMedium.maxScaleFactor}))`}}},"text-heading_sm_medium"),[sr,cr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.headingSmStrong.family),fontSize:be.typography.headingSmStrong.size,lineHeight:be.typography.headingSmStrong.lineHeight,fontWeight:be.typography.headingSmStrong.weight,letterSpacing:be.typography.headingSmStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.headingSmStrong.size}, calc(${be.typography.headingSmStrong.size}*${be.typography.headingSmStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.headingSmStrong.lineHeight}, calc(${be.typography.headingSmStrong.lineHeight}*${be.typography.headingSmStrong.maxScaleFactor}))`}}},"text-heading_sm_strong"),[ur,dr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.headingLgStrong.family),fontSize:be.typography.headingLgStrong.size,lineHeight:be.typography.headingLgStrong.lineHeight,fontWeight:be.typography.headingLgStrong.weight,letterSpacing:be.typography.headingLgStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.headingLgStrong.size}, calc(${be.typography.headingLgStrong.size}*${be.typography.headingLgStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.headingLgStrong.lineHeight}, calc(${be.typography.headingLgStrong.lineHeight}*${be.typography.headingLgStrong.maxScaleFactor}))`}}},"text-heading_lg_strong"),[pr,fr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.headingLgMedium.family),fontSize:be.typography.headingLgMedium.size,lineHeight:be.typography.headingLgMedium.lineHeight,fontWeight:be.typography.headingLgMedium.weight,letterSpacing:be.typography.headingLgMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.headingLgMedium.size}, calc(${be.typography.headingLgMedium.size}*${be.typography.headingLgMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.headingLgMedium.lineHeight}, calc(${be.typography.headingLgMedium.lineHeight}*${be.typography.headingLgMedium.maxScaleFactor}))`}}},"text-heading_lg_medium"),[mr,hr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.headingLg.family),fontSize:be.typography.headingLg.size,lineHeight:be.typography.headingLg.lineHeight,fontWeight:be.typography.headingLg.weight,letterSpacing:be.typography.headingLg.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.headingLg.size}, calc(${be.typography.headingLg.size}*${be.typography.headingLg.maxScaleFactor}))`,lineHeight:`min(${be.typography.headingLg.lineHeight}, calc(${be.typography.headingLg.lineHeight}*${be.typography.headingLg.maxScaleFactor}))`}}},"text-heading_lg"),[gr,yr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.display.family),fontSize:be.typography.display.size,lineHeight:be.typography.display.lineHeight,fontWeight:be.typography.display.weight,letterSpacing:be.typography.display.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.display.size}, calc(${be.typography.display.size}*${be.typography.display.maxScaleFactor}))`,lineHeight:`min(${be.typography.display.lineHeight}, calc(${be.typography.display.lineHeight}*${be.typography.display.maxScaleFactor}))`}}},"text-display"),[br,vr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.displayMedium.family),fontSize:be.typography.displayMedium.size,lineHeight:be.typography.displayMedium.lineHeight,fontWeight:be.typography.displayMedium.weight,letterSpacing:be.typography.displayMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.displayMedium.size}, calc(${be.typography.displayMedium.size}*${be.typography.displayMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.displayMedium.lineHeight}, calc(${be.typography.displayMedium.lineHeight}*${be.typography.displayMedium.maxScaleFactor}))`}}},"text-display_medium"),[kr,xr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.displayStrong.family),fontSize:be.typography.displayStrong.size,lineHeight:be.typography.displayStrong.lineHeight,fontWeight:be.typography.displayStrong.weight,letterSpacing:be.typography.displayStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.displayStrong.size}, calc(${be.typography.displayStrong.size}*${be.typography.displayStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.displayStrong.lineHeight}, calc(${be.typography.displayStrong.lineHeight}*${be.typography.displayStrong.maxScaleFactor}))`}}},"text-display_strong"),[wr,_r]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.displaySm.family),fontSize:be.typography.displaySm.size,lineHeight:be.typography.displaySm.lineHeight,fontWeight:be.typography.displaySm.weight,letterSpacing:be.typography.displaySm.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.displaySm.size}, calc(${be.typography.displaySm.size}*${be.typography.displaySm.maxScaleFactor}))`,lineHeight:`min(${be.typography.displaySm.lineHeight}, calc(${be.typography.displaySm.lineHeight}*${be.typography.displaySm.maxScaleFactor}))`}}},"text-display_sm"),[Sr,Cr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.displaySmMedium.family),fontSize:be.typography.displaySmMedium.size,lineHeight:be.typography.displaySmMedium.lineHeight,fontWeight:be.typography.displaySmMedium.weight,letterSpacing:be.typography.displaySmMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.displaySmMedium.size}, calc(${be.typography.displaySmMedium.size}*${be.typography.displaySmMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.displaySmMedium.lineHeight}, calc(${be.typography.displaySmMedium.lineHeight}*${be.typography.displaySmMedium.maxScaleFactor}))`}}},"text-display_sm_medium"),[Er,$r]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.displaySmStrong.family),fontSize:be.typography.displaySmStrong.size,lineHeight:be.typography.displaySmStrong.lineHeight,fontWeight:be.typography.displaySmStrong.weight,letterSpacing:be.typography.displaySmStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.displaySmStrong.size}, calc(${be.typography.displaySmStrong.size}*${be.typography.displaySmStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.displaySmStrong.lineHeight}, calc(${be.typography.displaySmStrong.lineHeight}*${be.typography.displaySmStrong.maxScaleFactor}))`}}},"text-display_sm_strong"),[Ar,Tr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.legal.family),fontSize:be.typography.legal.size,lineHeight:be.typography.legal.lineHeight,fontWeight:be.typography.legal.weight,letterSpacing:be.typography.legal.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.legal.size}, calc(${be.typography.legal.size}*${be.typography.legal.maxScaleFactor}))`,lineHeight:`min(${be.typography.legal.lineHeight}, calc(${be.typography.legal.lineHeight}*${be.typography.legal.maxScaleFactor}))`}}},"text-legal"),[Or,zr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.legalMedium.family),fontSize:be.typography.legalMedium.size,lineHeight:be.typography.legalMedium.lineHeight,fontWeight:be.typography.legalMedium.weight,letterSpacing:be.typography.legalMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.legalMedium.size}, calc(${be.typography.legalMedium.size}*${be.typography.legalMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.legalMedium.lineHeight}, calc(${be.typography.legalMedium.lineHeight}*${be.typography.legalMedium.maxScaleFactor}))`}}},"text-legal_medium"),[Fr,Pr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.legalStrong.family),fontSize:be.typography.legalStrong.size,lineHeight:be.typography.legalStrong.lineHeight,fontWeight:be.typography.legalStrong.weight,letterSpacing:be.typography.legalStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.legalStrong.size}, calc(${be.typography.legalStrong.size}*${be.typography.legalStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.legalStrong.lineHeight}, calc(${be.typography.legalStrong.lineHeight}*${be.typography.legalStrong.maxScaleFactor}))`}}},"text-legal_strong"),[Rr,Lr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.navigationBar.family),fontSize:be.typography.navigationBar.size,lineHeight:be.typography.navigationBar.lineHeight,fontWeight:be.typography.navigationBar.weight,letterSpacing:be.typography.navigationBar.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.navigationBar.size}, calc(${be.typography.navigationBar.size}*${be.typography.navigationBar.maxScaleFactor}))`,lineHeight:`min(${be.typography.navigationBar.lineHeight}, calc(${be.typography.navigationBar.lineHeight}*${be.typography.navigationBar.maxScaleFactor}))`}}},"text-navigation_bar"),[Nr,Ir]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.navigationBarMedium.family),fontSize:be.typography.navigationBarMedium.size,lineHeight:be.typography.navigationBarMedium.lineHeight,fontWeight:be.typography.navigationBarMedium.weight,letterSpacing:be.typography.navigationBarMedium.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.navigationBarMedium.size}, calc(${be.typography.navigationBarMedium.size}*${be.typography.navigationBarMedium.maxScaleFactor}))`,lineHeight:`min(${be.typography.navigationBarMedium.lineHeight}, calc(${be.typography.navigationBarMedium.lineHeight}*${be.typography.navigationBarMedium.maxScaleFactor}))`}}},"text-navigation_bar_medium"),[Mr,Hr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.navigationBarStrong.family),fontSize:be.typography.navigationBarStrong.size,lineHeight:be.typography.navigationBarStrong.lineHeight,fontWeight:be.typography.navigationBarStrong.weight,letterSpacing:be.typography.navigationBarStrong.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.navigationBarStrong.size}, calc(${be.typography.navigationBarStrong.size}*${be.typography.navigationBarStrong.maxScaleFactor}))`,lineHeight:`min(${be.typography.navigationBarStrong.lineHeight}, calc(${be.typography.navigationBarStrong.lineHeight}*${be.typography.navigationBarStrong.maxScaleFactor}))`}}},"text-navigation_bar_strong"),[jr,Br]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.buttonSm.family),fontSize:be.typography.buttonSm.size,lineHeight:be.typography.buttonSm.lineHeight,fontWeight:be.typography.buttonSm.weight,letterSpacing:be.typography.buttonSm.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.buttonSm.size}, calc(${be.typography.buttonSm.size}*${be.typography.buttonSm.maxScaleFactor}))`,lineHeight:`min(${be.typography.buttonSm.lineHeight}, calc(${be.typography.buttonSm.lineHeight}*${be.typography.buttonSm.maxScaleFactor}))`}}},"text-button_sm"),[Dr,Vr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.buttonLg.family),fontSize:be.typography.buttonLg.size,lineHeight:be.typography.buttonLg.lineHeight,fontWeight:be.typography.buttonLg.weight,letterSpacing:be.typography.buttonLg.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.buttonLg.size}, calc(${be.typography.buttonLg.size}*${be.typography.buttonLg.maxScaleFactor}))`,lineHeight:`min(${be.typography.buttonLg.lineHeight}, calc(${be.typography.buttonLg.lineHeight}*${be.typography.buttonLg.maxScaleFactor}))`}}},"text-button_lg"),[Wr,Ur]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.mediumContrast),fontFamily:wt(be.typography.fieldLabelSm.family),fontSize:be.typography.fieldLabelSm.size,lineHeight:be.typography.fieldLabelSm.lineHeight,fontWeight:be.typography.fieldLabelSm.weight,letterSpacing:be.typography.fieldLabelSm.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.fieldLabelSm.size}, calc(${be.typography.fieldLabelSm.size}*${be.typography.fieldLabelSm.maxScaleFactor}))`,lineHeight:`min(${be.typography.fieldLabelSm.lineHeight}, calc(${be.typography.fieldLabelSm.lineHeight}*${be.typography.fieldLabelSm.maxScaleFactor}))`}}},"text-fieldLabel_sm"),[Gr,qr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.mediumContrast),fontFamily:wt(be.typography.fieldLabelLg.family),fontSize:be.typography.fieldLabelLg.size,lineHeight:be.typography.fieldLabelLg.lineHeight,fontWeight:be.typography.fieldLabelLg.weight,letterSpacing:be.typography.fieldLabelLg.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.fieldLabelLg.size}, calc(${be.typography.fieldLabelLg.size}*${be.typography.fieldLabelLg.maxScaleFactor}))`,lineHeight:`min(${be.typography.fieldLabelLg.lineHeight}, calc(${be.typography.fieldLabelLg.lineHeight}*${be.typography.fieldLabelLg.maxScaleFactor}))`}}},"text-fieldLabel_lg"),[Kr,Yr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.fieldValueSm.family),fontSize:be.typography.fieldValueSm.size,lineHeight:be.typography.fieldValueSm.lineHeight,fontWeight:be.typography.fieldValueSm.weight,letterSpacing:be.typography.fieldValueSm.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.fieldValueSm.size}, calc(${be.typography.fieldValueSm.size}*${be.typography.fieldValueSm.maxScaleFactor}))`,lineHeight:`min(${be.typography.fieldValueSm.lineHeight}, calc(${be.typography.fieldValueSm.lineHeight}*${be.typography.fieldValueSm.maxScaleFactor}))`}}},"text-fieldValue_sm"),[Xr,Qr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.fieldValueLg.family),fontSize:be.typography.fieldValueLg.size,lineHeight:be.typography.fieldValueLg.lineHeight,fontWeight:be.typography.fieldValueLg.weight,letterSpacing:be.typography.fieldValueLg.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.fieldValueLg.size}, calc(${be.typography.fieldValueLg.size}*${be.typography.fieldValueLg.maxScaleFactor}))`,lineHeight:`min(${be.typography.fieldValueLg.lineHeight}, calc(${be.typography.fieldValueLg.lineHeight}*${be.typography.fieldValueLg.maxScaleFactor}))`}}},"text-fieldValue_lg"),[Zr,Jr]=xt({color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast),fontFamily:wt(be.typography.fieldValueXl.family),fontSize:be.typography.fieldValueXl.size,lineHeight:be.typography.fieldValueXl.lineHeight,fontWeight:be.typography.fieldValueXl.weight,letterSpacing:be.typography.fieldValueXl.letterSpacing,"@media":{[`screen and (max-width: ${Se})`]:{fontSize:`min(${be.typography.fieldValueXl.size}, calc(${be.typography.fieldValueXl.size}*${be.typography.fieldValueXl.maxScaleFactor}))`,lineHeight:`min(${be.typography.fieldValueXl.lineHeight}, calc(${be.typography.fieldValueXl.lineHeight}*${be.typography.fieldValueXl.maxScaleFactor}))`}}},"text-fieldValue_xl"),[en,tn]=xt({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:1},"text-clamp_line_1"),[rn,nn]=xt({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:2},"text-clamp_line_2"),[an,on]=xt({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:3},"text-clamp_line_3"),[ln,sn]=xt({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:4},"text-clamp_line_4"),[cn,un]=xt({...bt,height:be.typography.display.lineHeight},"text-shimmer_display_lg"),[dn,pn]=xt({...bt,height:be.typography.displayStrong.lineHeight},"text-shimmer_display_lg_strong"),[fn,mn]=xt({...bt,height:be.typography.displayMedium.lineHeight},"text-shimmer_display_lg_medium"),[hn,gn]=xt({...bt,height:be.typography.displaySm.lineHeight},"text-shimmer_display_sm"),[yn,bn]=xt({...bt,height:be.typography.displaySmStrong.lineHeight},"text-shimmer_display_sm_strong"),[vn,kn]=xt({...bt,height:be.typography.displaySmMedium.lineHeight},"text-shimmer_display_sm_medium"),[xn,wn]=xt({...bt,height:be.typography.headingLg.lineHeight},"text-shimer_heading_lg"),[_n,Sn]=xt({...bt,height:be.typography.headingLgStrong.lineHeight},"text-shimer_heading_lg_strong"),[Cn,En]=xt({...bt,height:be.typography.headingLgMedium.lineHeight},"text-shimer_heading_lg_medium"),[$n,An]=xt({...bt,height:be.typography.headingSm.lineHeight},"text-shimmer_heading_sm"),[Tn,On]=xt({...bt,height:be.typography.headingSmStrong.lineHeight},"text-shimmer_heading_sm_strong"),[zn,Fn]=xt({...bt,height:be.typography.headingSmMedium.lineHeight},"text-shimmer_heading_sm_medium"),[Pn,Rn]=xt({...bt,height:be.typography.body.lineHeight},"text-shimmer_body"),[Ln,Nn]=xt({...bt,height:be.typography.bodyStrong.lineHeight},"text-shimmer_body_strong"),[In,Mn]=xt({...bt,height:be.typography.bodyMedium.lineHeight},"text-shimmer_body_medium"),[Hn,jn]=xt({...bt,height:be.typography.caption.lineHeight},"text-shimmer_caption"),[Bn,Dn]=xt({...bt,height:be.typography.captionStrong.lineHeight},"text-shimmer_caption_strong"),[Vn,Wn]=xt({...bt,height:be.typography.captionMedium.lineHeight},"text-shimmer_caption_medium"),[Un,Gn]=xt({...bt,height:be.typography.title.lineHeight},"text-shimmer_title"),[qn,Kn]=xt({...bt,height:be.typography.titleStrong.lineHeight},"text-shimmer_title_strong"),[Yn,Xn]=xt({...bt,height:be.typography.titleMedium.lineHeight},"text-shimmer_title_medium");me.endFileScope();var Qn=["size","as","type","className","isLoading","isInverse","children"],Zn=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=ye(e,Qn),d={sm:{strong:sr,medium:or,regular:ar},lg:{strong:ur,medium:pr,regular:mr}},p={sm:{strong:Tn,medium:zn,regular:$n},lg:{strong:_n,medium:Cn,regular:xn}};if(l)return fe().createElement(kt,ge({className:Ke(p[r][i],!n&&_t,o),hasStyleDefaults:!1,isInverse:s},u,{"data-ppui":"true"}),c);var f=Ke(d[r][i],!n&&_t,o),m="lg"===r?"h2":"h3";return fe().createElement(n||m,ge({className:f,"data-ppui-info":"heading-text_7.2.2__8.12.0"},u),c)},Jn=["as","type","className","isLoading","isInverse","clampAtLine","children"],ea=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=ye(e,Jn);if(i){var u=Ke({strong:Ln,medium:In,regular:Pn}[n],!t&&_t,a);return fe().createElement(kt,ge({className:u,hasStyleDefaults:!1,isInverse:o},c,{"data-ppui":"true"}),s)}var d=Ke({strong:At,medium:Et,regular:St}[n],!t&&_t,1===l&&en,2===l&&rn,3===l&&an,4===l&&ln,a);return fe().createElement(t||"p",ge({className:d,"data-ppui-info":"body-text_7.2.2__8.12.0"},c),s)},ta=["as","type","clampAtLine","className","isLoading","isInverse","children"],ra=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=ye(e,ta),u={strong:Bn,medium:Vn,regular:Hn};if(o)return fe().createElement(kt,ge({className:Ke(u[n],!t&&_t,i),hasStyleDefaults:!1,isInverse:l},c,{"data-ppui":"true"}),s);var d=Ke({strong:Rt,medium:Ft,regular:Ot}[n],!t&&_t,1===a&&en,2===a&&rn,3===a&&an,4===a&&ln,i);return fe().createElement(t||"p",ge({className:d,"data-ppui-info":"caption-text_7.2.2__8.12.0"},c),s)},na=["as","type","className","isLoading","isInverse","children"],aa=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=ye(e,na),c={strong:qn,medium:Yn,regular:Un};if(i)return fe().createElement(kt,ge({className:Ke(c[n],!t&&_t,a),hasStyleDefaults:!1,isInverse:o},s,{"data-ppui":"true"}),l);var u=Ke({strong:rr,medium:er,regular:Zt}[n],!t&&_t,a);return fe().createElement(t||"h4",ge({className:u,"data-ppui-info":"title-text_7.2.2__8.12.0"},s),l)};function ia(e,t){return[(0,he.style)(e,t),e]}me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-utils");const oa={ppuiEaseInOut:`cubic-bezier(${be.motion.timing.x1},${be.motion.timing.y1}, ${be.motion.timing.x2},${be.motion.timing.y2})`,ppuiEaseLoopStandard:`cubic-bezier(${be.motion.easing.loop.standard})`,ppuiEaseEnterSmall:`cubic-bezier(${be.motion.easing.enter.small})`,ppuiEaseExitSmall:`cubic-bezier(${be.motion.easing.exit.small})`,ppuiEaseMoveSmall:`cubic-bezier(${be.motion.easing.move.small})`},[la,sa]=ia({animationTimingFunction:oa.ppuiEaseInOut},"motion_animation"),[ca,ua]=ia({transitionTimingFunction:oa.ppuiEaseInOut},"motion_transition"),[da,pa]=ia({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"ellipsis"),fa=(0,he.keyframes)({"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide_right"),ma=(0,he.keyframes)({"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},"slide_left");function ha(e,t){return[(0,he.style)(e,t),e]}me.endFileScope(),me.setFileScope("src/focusStyles.css.ts","@paypalcorp/pp-react-utils");const ga=`calc(${be.border.thickness.normal} + ${be.border.thickness.emphasis})`,ya=`calc(2*${ga})`,ba=be.color.structure.focusOutline,va=`calc(${be.border.thickness.normal} * 2)`,ka=`calc(${be.border.thickness.normal} * 2)`,xa=`calc(${ga} + ${ga})`,wa=`calc(${be.border.thickness.emphasis} + ${be.border.thickness.normal})`,[_a,Sa]=ha({content:"",position:"absolute",top:0,left:0,right:0,border:"none",boxShadow:`0 0 0 ${ya} ${ba}`,borderRadius:"inherit",width:"100%",height:"100%",pointerEvents:"none"},"focus_after"),[Ca,Ea]=ha({content:"",position:"absolute",top:be.border.thickness.normal,left:be.border.thickness.normal,border:`${ga} solid ${be.color.structure.focus}`,boxShadow:`0 0 0 ${ya} ${ba}`,borderRadius:"inherit",textIndent:be.border.thickness.normal,width:`calc(100% - ${va})`,height:`calc(100% - ${ka})`,pointerEvents:"none"},"offset_focus_after"),[$a,Aa]=ha({boxShadow:`0 0 0 ${ga} ${be.color.structure.focus},\n 0 0 0 ${xa} ${be.color.structure.focusOutline}`,outline:`${ga} solid transparent`,borderRadius:"inherit"},"focus_inline"),[Ta,Oa]=ha({outline:`${be.border.thickness.emphasis} solid ${be.color.structure.focus}`,boxShadow:`0 0 0 ${be.border.thickness.emphasis} ${be.color.background.surface}`,outlineOffset:be.border.thickness.emphasis},"focus_offset_element"),[za,Fa]=ha({boxShadow:`0 0 0 ${wa} inset ${be.color.structure.focus}`},"focus_inline_element");me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-accordion");const{ppuiEaseMoveSmall:Pa}=oa,Ra=(0,he.style)({...Ct,color:be.color.background.highContrast},"accordion_bodyText"),La=(0,he.style)({...zt,color:be.color.background.highContrast},"accordion_captionText"),Na=(0,he.style)({...Jt,color:be.color.background.highContrast},"accordion_headingText"),Ia=(0,he.style)({...Tt,color:be.color.background.highContrast},"accordion_titleText"),Ma=((0,he.style)({width:"100%",borderCollapse:"collapse",backgroundColor:be.color.background.surface,borderRadius:be.border.radius.xl},"accordion_base"),(0,he.style)({border:"none"},"accordion_row"),(0,he.style)([Ra,{textAlign:"start",maxHeight:0,overflowY:"hidden",transition:`max-height ${be.motion.duration.move.small} ${Pa}`}],"accordion_body"));(0,he.style)([La],"accordion_body_small"),(0,he.style)({maxHeight:"125rem"},"body_open"),(0,he.globalStyle)(`${Ma} p`,{margin:0}),(0,he.style)({padding:`${be.space[50]} ${be.space[200]} ${be.space[200]}`},"accordion_inner_body");const Ha=(0,he.style)({cursor:"pointer",minHeight:"4rem",wordBreak:"break-word",padding:be.space[200],paddingInlineEnd:be.space[600],position:"relative",background:"none",border:"none",width:"100%",display:"flex",justifyContent:"center",flexDirection:"column",textAlign:"start",":focus":Fa},"accordion_header");(0,he.style)([Ha,Ia],"accordion_header_small"),(0,he.style)([Ha,Na],"accordion_header_large"),(0,he.style)({color:be.color.background.mediumContrast,paddingTop:be.space[50]},"accordion_subheader"),(0,he.style)({color:be.color.background.mediumContrast,position:"absolute",right:be.space[200],transition:`transform ${be.motion.duration.move.small} ${Pa}`,selectors:{"[dir=rtl] &":{left:be.space[200],right:"auto"}}},"accordion_svg_icon"),(0,he.style)({transform:"rotate(180deg)"},"accordion_icon_rotate"),me.endFileScope();var ja=fe().createContext(null);function Ba(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 Da(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ba(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Va=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:Da(Da({padFractionalZeros:!0},i),t),intlCurrencyPrefix:o,intlCurrencySuffix:l}}return{currencyMaskOptions:t}};me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-icons");const Wa={sysColorBackgroundMain:be.color.background.main,sysColorBackgroundAlt:be.color.background.alt,sysColorBackgroundSurface:be.color.background.surface,sysColorBackgroundSurfaceHover:be.color.background.surfaceHover,sysColorBackgroundSurfaceActive:be.color.background.surfaceActive,sysColorBackgroundHighContrast:be.color.background.highContrast,sysColorBackgroundMediumContrast:be.color.background.mediumContrast,sysColorPrimaryMain:be.color.primary.main,sysColorPrimaryMainHover:be.color.primary.mainHover,sysColorPrimaryMainActive:be.color.primary.mainActive,sysColorPrimaryContrast:be.color.primary.contrast,sysColorPrimaryContrastHover:be.color.primary.contrastHover,sysColorPrimaryContrastActive:be.color.primary.contrastActive,sysColorSecondaryMain:be.color.secondary.main,sysColorSecondaryMainHover:be.color.secondary.mainHover,sysColorSecondaryMainActive:be.color.secondary.mainActive,sysColorSecondaryContrast:be.color.secondary.contrast,sysColorTertiaryMain:be.color.tertiary.main,sysColorTertiaryMainHover:be.color.tertiary.mainHover,sysColorTertiaryMainActive:be.color.tertiary.mainActive,sysColorTertiaryContrast:be.color.tertiary.contrast,sysColorFeaturedMain:be.color.featured.main,sysColorFeaturedMainHover:be.color.featured.mainHover,sysColorFeaturedMainActive:be.color.featured.mainActive,sysColorFeaturedContrast:be.color.featured.contrast,sysColorUnselectedMain:be.color.unselected.main,sysColorUnselectedMainHover:be.color.unselected.mainHover,sysColorUnselectedMainActive:be.color.unselected.mainActive,sysColorUnselectedContrast:be.color.unselected.contrast,sysColorSelectedMain:be.color.selected.main,sysColorSelectedMainHover:be.color.selected.mainHover,sysColorSelectedMainActive:be.color.selected.mainActive,sysColorSelectedContrast:be.color.selected.contrast,sysColorSelectedRangeMain:be.color.selectedRange.main,sysColorSelectedRangeMainHover:be.color.selectedRange.mainHover,sysColorSelectedRangeMainActive:be.color.selectedRange.mainActive,sysColorSelectedRangeContrast:be.color.selectedRange.contrast,sysColorLinkMain:be.color.link.main,sysColorLinkMainHover:be.color.link.mainHover,sysColorLinkMainActive:be.color.link.mainActive,sysColorLinkAlt:be.color.link.alt,sysColorLinkAltHover:be.color.link.altHover,sysColorLinkAltActive:be.color.link.altActive,sysColorLinkContrast:be.color.link.contrast,sysColorLinkContrastHover:be.color.link.contrastHover,sysColorLinkContrastActive:be.color.link.contrastActive,sysColorAccent1Main:be.color.accent1.main,sysColorAccent1Contrast:be.color.accent1.contrast,sysColorAccent2Main:be.color.accent2.main,sysColorAccent2Contrast:be.color.accent2.contrast,sysColorAccent3Main:be.color.accent3.main,sysColorAccent3Contrast:be.color.accent3.contrast,sysColorAccent4Main:be.color.accent4.main,sysColorAccent4Contrast:be.color.accent4.contrast,sysColorErrorMain:be.color.error.main,sysColorErrorMainHover:be.color.error.mainHover,sysColorErrorMainActive:be.color.error.mainActive,sysColorErrorContrast:be.color.error.contrast,sysColorWarningMain:be.color.warning.main,sysColorWarningMainHover:be.color.warning.mainHover,sysColorWarningMainActive:be.color.warning.mainActive,sysColorWarningAlt:be.color.warning.alt,sysColorWarningContrast:be.color.warning.contrast,sysColorSuccessMain:be.color.success.main,sysColorSuccessMainHover:be.color.success.mainHover,sysColorSuccessMainActive:be.color.success.mainActive,sysColorSuccessContrast:be.color.success.contrast,sysColorSystemMain:be.color.system.main,sysColorSystemMainHover:be.color.system.mainHover,sysColorSystemMainActive:be.color.system.mainActive,sysColorSystemContrast:be.color.system.contrast,sysColorInfoMain:be.color.info.main,sysColorInfoMainHover:be.color.info.mainHover,sysColorInfoMainActive:be.color.info.mainActive,sysColorInfoContrast:be.color.info.contrast,sysColorSpecialtyMain:be.color.specialty.main,sysColorSpecialtyMainHover:be.color.specialty.mainHover,sysColorSpecialtyMainActive:be.color.specialty.mainActive,sysColorSpecialtyContrast:be.color.specialty.contrast},Ua=Wa.sysColorBackgroundHighContrast,Ga=(0,he.style)({speak:"none",aspectRatio:"1"},"icon_base"),qa=((0,he.style)({display:"inline-block",width:be.size.icon.lg,height:be.size.icon.lg},"icon_background_base"),(0,he.style)({width:be.size.icon.xs,height:be.size.icon.xs},"icon_size_xs")),Ka=(0,he.style)({width:be.size.icon.sm,height:be.size.icon.sm},"icon_size_sm"),Ya=(0,he.style)({width:be.size.icon.md,height:be.size.icon.md},"icon_size_md"),Xa=(0,he.style)({width:be.size.icon.lg,height:be.size.icon.lg},"icon_size_lg"),Qa=(0,he.style)({width:be.size.icon.xl,height:be.size.icon.xl},"icon_size_xl"),Za=(0,he.style)({speak:"none",display:"inline-block",aspectRatio:"1"},"icon_svg");(0,he.globalStyle)(`${Za} img, ${Za} svg`,{width:"100%",height:"100%",display:"block"}),me.endFileScope();var Ja=["as","size","color","className","children"],ei=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=ye(e,Ja),c=Ke(Za,"xs"===a&&qa,"sm"===a&&Ka,"md"===a&&Ya,"lg"===a&&Xa,"xl"===a&&Qa,o);return fe().createElement(r,ge({role:"img",style:i?function(e){var t=He(e,Wa,Ua);return{color:(0,he.fallbackVar)(Oe.main,t)}}(i):null,className:c,"data-ppui-info":"icons_9.8.2__8.12.0"},s),l)},ti=["svgElementRef"],ri=["svgElementRef"],ni=["svgElementRef"],ai=["svgElementRef"],ii=["svgElementRef"],oi=["svgElementRef"],li=["svgElementRef"],si=["svgElementRef"],ci=["svgElementRef"],ui=["svgElementRef"],di=["svgElementRef"],pi=["svgElementRef"],fi=["svgElementRef"],mi=["svgElementRef"],hi=["svgElementRef"],gi=["svgElementRef"],yi=["svgElementRef"],bi=["svgElementRef"],vi=["svgElementRef"],ki=["svgElementRef"],xi=function(e){e.svgElementRef;var t=ye(e,ti);return fe().createElement(ei,ge({"aria-label":"arrow down sm icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},wi=function(e){e.svgElementRef;var t=ye(e,ri);return fe().createElement(ei,ge({"aria-label":"arrow up sm icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},_i=function(e){e.svgElementRef;var t=ye(e,ni);return fe().createElement(ei,ge({"aria-label":"calendar icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Si=function(e){e.svgElementRef;var t=ye(e,ai);return fe().createElement(ei,ge({"aria-label":"checkmark background icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ci=function(e){e.svgElementRef;var t=ye(e,ii);return fe().createElement(ei,ge({"aria-label":"checkmark sm icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ei=function(e){e.svgElementRef;var t=ye(e,oi);return fe().createElement(ei,ge({"aria-label":"checkmark icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},$i=function(e){e.svgElementRef;var t=ye(e,li);return fe().createElement(ei,ge({"aria-label":"chevron down icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ai=function(e){e.svgElementRef;var t=ye(e,si);return fe().createElement(ei,ge({"aria-label":"chevron right icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ti=function(e){e.svgElementRef;var t=ye(e,ci);return fe().createElement(ei,ge({"aria-label":"chevron up icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Oi=function(e){e.svgElementRef;var t=ye(e,ui);return fe().createElement(ei,ge({"aria-label":"close icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},zi=function(e){e.svgElementRef;var t=ye(e,di);return fe().createElement(ei,ge({"aria-label":"critical icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Fi=function(e){e.svgElementRef;var t=ye(e,pi);return fe().createElement(ei,ge({"aria-label":"decline icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Pi=function(e){e.svgElementRef;var t=ye(e,fi);return fe().createElement(ei,ge({"aria-label":"edit icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ri=function(e){e.svgElementRef;var t=ye(e,mi);return fe().createElement(ei,ge({"aria-label":"hide icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Li=function(e){e.svgElementRef;var t=ye(e,gi);return fe().createElement(ei,ge({"aria-label":"refresh icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ni=function(e){e.svgElementRef;var t=ye(e,yi);return fe().createElement(ei,ge({"aria-label":"search icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ii=function(e){e.svgElementRef;var t=ye(e,bi);return fe().createElement(ei,ge({"aria-label":"settings icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Mi=function(e){e.svgElementRef;var t=ye(e,vi);return fe().createElement(ei,ge({"aria-label":"view icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)};me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-input");const{ellipsisName:Hi,variables:ji}=n,{ppuiEaseMoveSmall:Bi}=ji,Di=`calc((${be.size.field.lg} - ${be.typography.fieldValueSm.lineHeight}) / 2)`,Vi=`calc((${be.size.field.lg} - ${be.typography.fieldValueSm.lineHeight}) / 2)`,Wi=`calc(${be.size.field.lg} - ${be.space[100]} - ${be.typography.caption.lineHeight} - ${be.space[25]} - ${be.typography.fieldValueSm.lineHeight})`,Ui=`calc(${be.size.field.lg} - ${be.border.thickness.emphasis})`,Gi=(0,he.style)({...Ur,color:be.color.background.mediumContrast},"text-input_label"),qi=(0,he.style)({...zt,color:be.color.background.mediumContrast},"text-input_caption"),Ki={...Yr,color:be.color.background.mediumContrast},Yi=(0,he.style)([qi,{display:"flex",margin:`${be.space[50]} 0 0`}],"text-input_info"),Xi=(0,he.style)({textDecoration:"none",position:"absolute"},"text-input_field_icon"),Qi=(0,he.style)([Hi,Gi,{pointerEvents:"none",position:"absolute",top:be.space[100],transition:`font-size ${be.motion.duration.move.small} ${Bi},\n top ${be.motion.duration.move.small} ${Bi},\n backgroundColor ${be.motion.duration.move.small} ${Bi}`,right:be.space[150],left:be.space[150],backgroundClip:"padding-box"}],"text-input_label"),Zi=(0,he.style)({},"text-input_label_placeholder_shown_and_not_focused");(0,he.globalStyle)(`${Zi}:placeholder-shown:not(:focus) ~ label`,{...Ki,top:Di,backgroundColor:"transparent",marginBottom:0});const Ji=(0,he.style)([Yi,{display:"block",listStyle:"none",padding:`${be.space[25]} 0`,overflowWrap:"break-word"}],"text-input_helper_text"),eo=(0,he.style)([Yr,{padding:0,position:"relative",textAlign:"left",selectors:{"[dir='rtl'] &":{textAlign:"right"}}}],"text-input_base"),to=(0,he.style)([Xi,{width:be.size.tapTarget.default,height:be.size.tapTarget.default,display:"flex",justifyContent:"center",alignItems:"center",top:be.space[100],right:be.space[100],left:"auto",selectors:{"[dir='rtl'] &":{left:be.space[100],right:"auto"}}}],"text-input_icon_right"),ro=(0,he.style)([Xi,{pointerEvents:"none",zIndex:1,inset:`${Di} auto ${Di} ${be.space[150]}`,color:be.color.background.mediumContrast,selectors:{"[dir='rtl'] &":{inset:`${Di} ${be.space[150]} ${Di} auto`}}}],"text-input_icon_left"),no=(0,he.style)([Yr,{padding:`calc(${be.space[350]} + ${be.space[25]} - ${be.border.thickness.normal}) calc(${be.space[150]} - ${be.border.thickness.normal}) calc(${be.space[100]} + ${be.space[25]} - ${be.border.thickness.normal}) calc(${be.space[150]} - ${be.border.thickness.normal})`,textOverflow:"ellipsis",boxSizing:"border-box",width:"100%",border:`${be.color.structure.borderLowContrast} solid ${be.border.thickness.normal}`,borderRadius:be.border.radius.sm,backgroundColor:be.color.background.surface,margin:0,outline:"none",position:"relative",WebkitAppearance:"none",MozAppearance:"none",minHeight:be.size.field.lg,selectors:{"&::placeholder":{color:be.color.background.mediumContrast},"&:placeholder-shown:not(:focus)::-webkit-input-placeholder":{opacity:0,transition:`opacity ${be.motion.duration.move.small} ${Bi}`},"&:placeholder-shown:not(:focus)::-moz-placeholder":{opacity:0,transition:`opacity ${be.motion.duration.move.small} ${Bi}`},"&:first-line":{lineHeight:be.typography.fieldValueSm.lineHeight},"&::-ms-reveal, &::-ms-clear":{display:"none"},"&::-webkit-input-placeholder":{color:be.color.background.mediumContrast,opacity:1},"&:-moz-placeholder":{color:be.color.background.mediumContrast,opacity:1,transition:`opacity ${be.motion.duration.move.small} ${Bi}`},"&:focus":Oa}}],"text-input_control"),ao=(0,he.style)({padding:`calc(${be.space[250]} - ${be.border.thickness.normal}) calc(${be.space[150]} - ${be.border.thickness.normal}) calc(${be.space[250]} - ${be.border.thickness.normal}) calc(${be.space[150]} - ${be.border.thickness.normal})`,selectors:{"&:placeholder-shown:not(:focus)::placeholder":{opacity:1}}},"text-input_no_label_control"),io=(0,he.style)({border:`${be.border.thickness.emphasis} solid ${be.color.error.main}`,paddingTop:`calc(${be.space[350]} + ${be.space[25]} - ${be.border.thickness.emphasis})`,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`,paddingBottom:`calc(${be.space[100]} + ${be.space[25]} - ${be.border.thickness.emphasis})`,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`},"text-input_error_control"),oo=(0,he.style)({paddingRight:`calc(${be.size.tapTarget.default} - ${be.border.thickness.emphasis})`,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`,selectors:{"[dir='rtl'] &":{paddingLeft:`calc(${be.space[150]} + ${be.size.tapTarget.default} - ${be.border.thickness.emphasis})`,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_right"),lo=(0,he.style)({paddingLeft:`calc(${be.space[600]} - ${be.border.thickness.emphasis})`,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${be.space[600]} - ${be.border.thickness.emphasis})`,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_left"),so=(0,he.style)({paddingRight:`calc(${be.space[150]} + ${be.size.tapTarget.default} - ${be.border.thickness.emphasis})`,paddingLeft:`calc(${be.space[600]} - ${be.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${be.space[600]} - ${be.border.thickness.emphasis})`,paddingLeft:`calc(${be.space[150]} + ${be.size.tapTarget.default} - ${be.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_left_and_right"),co=(0,he.style)({paddingTop:`calc(${Di} - ${be.border.thickness.emphasis})`,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`,paddingBottom:`calc(${Vi} - ${be.border.thickness.emphasis})`,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`},"text-input_no_label_error"),uo=(0,he.style)({paddingRight:`calc(${be.space[250]} + ${be.size.tapTarget.default} - ${be.border.thickness.normal})`,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${be.space[250]} + ${be.size.tapTarget.default} - ${be.border.thickness.normal})`,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.normal})`}}},"text-input_control_with_icon_right"),po=(0,he.style)({paddingLeft:`calc(${be.space[600]} - ${be.border.thickness.normal})`,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${be.space[600]} - ${be.border.thickness.normal})`,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.normal})`}}},"text-input_control_with_icon_left"),fo=(0,he.style)({paddingLeft:`calc(${be.space[600]} - ${be.border.thickness.normal})`,paddingRight:`calc(${be.space[150]} + ${be.size.tapTarget.default} - ${be.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${be.space[600]} - ${be.border.thickness.normal})`,paddingLeft:`calc(${be.space[150]} + ${be.size.tapTarget.default} - ${be.border.thickness.normal})`}}},"text-input_control_with_icon_left_and_right"),mo=(0,he.style)({left:be.space[150],right:`calc(${be.space[150]} + ${be.size.tapTarget.default})`,selectors:{"[dir='rtl'] & ":{left:`calc(${be.space[150]} + ${be.size.tapTarget.default})`,right:be.space[150]}}},"text-input_label_with_icon_right"),ho=(0,he.style)({left:be.space[600],right:be.space[150],selectors:{"[dir='rtl'] & ":{right:be.space[600],left:be.space[150]}}},"text-input_label_with_icon_left"),go=(0,he.style)([Yi,{alignItems:"center"}],"text-input_error_text"),yo=(0,he.style)({marginRight:be.space[50],alignSelf:"flex-start",flexShrink:"0",selectors:{"[dir='rtl'] & ":{marginLeft:be.space[50],marginRight:0}}},"text-input_error_icon"),bo=(0,he.style)([{color:be.color.error.main,marginLeft:0},yo],"text-input_error_icon"),vo=(0,he.style)([{color:be.color.success.main,marginLeft:"initial"},yo],"text-input_success_icon"),ko=(0,he.style)({listStyle:"none",padding:0,margin:0},"text-input_multi_line_error"),xo=(0,he.style)({position:"relative",display:"flex",backgroundColor:be.color.background.surface,padding:be.border.thickness.normal,":after":{content:" ",position:"absolute",height:"100%",width:"100%",top:0,left:0,border:`${be.border.thickness.normal} solid ${be.color.structure.borderLowContrast}`,borderRadius:be.border.radius.sm,pointerEvents:"none"},":focus-within":{borderRadius:be.border.radius.sm,...Oa}},"text-input_prefix_wrapper"),wo=(0,he.style)({padding:`${be.border.thickness.normal} ${be.border.thickness.emphasis}`,":after":{border:`${be.border.thickness.emphasis} solid ${be.color.error.main}`}},"text-input_prefix_wrapper_error"),_o={whiteSpace:"nowrap",color:be.color.background.highContrast,padding:`calc(${be.space[350]} + ${be.space[25]} - ${be.border.thickness.normal}) ${be.space[25]} calc(${be.space[100]} - ${be.border.thickness.normal}) calc(${be.space[150]} - ${be.border.thickness.normal})`},So=(0,he.style)({border:"none",minHeight:Ui,":focus":{boxShadow:"none",outline:"none"}},"text-input_prefix_wrapper_control");(0,he.globalStyle)(`${So}:placeholder-shown:not(:focus) ~ div`,{opacity:0});const Co=(0,he.style)({order:-1,..._o,selectors:{"[dir='rtl'] & ":{..._o,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.normal})`,paddingLeft:be.space[25]}}},"text-input_prefix"),Eo=(0,he.style)({..._o,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.normal})`,paddingLeft:be.space[25],selectors:{"[dir='rtl'] & ":{..._o,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.normal})`,paddingRight:be.space[25]}}},"text-input_suffix"),$o=(0,he.style)({paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`}}},"text-input_error_prefix"),Ao=(0,he.style)({paddingRight:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`}}},"text-input_error_suffix"),To=(0,he.style)({paddingTop:`calc(${Di} - ${be.border.thickness.normal})`,paddingBottom:`calc(${Vi} - ${be.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingTop:`calc(${Di} - ${be.border.thickness.normal})`,paddingBottom:`calc(${Vi} - ${be.border.thickness.normal})`}}},"text-input_no_label_suffix_or_prefix"),Oo=(0,he.style)({paddingLeft:0,selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:be.space[150]}}},"text-input_prefix_wrapper_control_with_prefix"),zo=(0,he.style)({paddingRight:0,selectors:{"[dir='rtl'] & ":{paddingLeft:0,paddingRight:be.space[150]}}},"text-input_prefix_wrapper_control_with_suffix"),Fo=(0,he.style)({paddingLeft:0,paddingRight:0,selectors:{"[dir='rtl'] & ":{paddingLeft:0,paddingRight:0}}},"text-input_prefix_wrapper_control_with_prefix_suffix"),Po=(0,he.style)([Ki,{position:"absolute",top:0,right:0,left:0,paddingTop:`calc(${Di} + ${be.space[100]} + ${be.border.thickness.normal})`,paddingRight:be.space[150],paddingLeft:be.space[150],paddingBottom:`calc(${Wi} + ${be.border.thickness.normal})`,backgroundColor:be.color.background.surface,whiteSpace:"nowrap",selectors:{"[dir='rtl'] & ":{transform:`translateX(calc(${be.border.thickness.normal} * -1))`}}}],"text-display_placemat");(0,he.globalStyle)(`${Po}& + input:focus`,{backgroundColor:"transparent"});const Ro=(0,he.style)({paddingTop:Di},"text-display_no_label_placemat");me.endFileScope();var Lo=["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 No(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 Io(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?No(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):No(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Mo=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)?fe().createElement("ul",{className:ko,"data-ppui":"true"},u.map((function(e,r){return fe().createElement("li",{key:"msg".concat(t,"-").concat(r),"data-ppui":"true"},e)}))):u;if(n){var p={className:bo,role:"img","aria-label":a};s=fe().createElement(zi,ge({size:"sm"},p,{"data-ppui":"true"}))}if(!n){var f={className:vo,role:"img","aria-label":o};c=fe().createElement(Si,ge({size:"sm"},f,{"data-ppui":"true"}))}return fe().createElement("div",{className:go,id:t,role:"alert","data-ppui":"true"},null!==(l=s)&&void 0!==l?l:c,d)}return r?Array.isArray(r)?fe().createElement("ul",{className:Ji,id:t,"data-ppui":"true"},r.map((function(e,r){return fe().createElement("li",{key:"msg".concat(t,"-").concat(r),"data-ppui":"true"},e)}))):fe().createElement("div",{className:Ji,id:t,"data-ppui":"true"},r):null},Ho=function(e,t,r){return e?fe().createElement("div",{className:Ke("left"===t&&ro,"right"===t&&to,r),key:"icon-".concat(t),"data-ppui":"true"},e):null},jo=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,h=e.name,g=e.id,y=void 0===g?"text-input-".concat(h):g,b=e.label,v=e.isLabelHidden,k=e.placeholder,x=void 0===k?" ":k,w=e.placemat,_=e.leftIcon,S=void 0===_?null:_,C=e.rightIcon,E=void 0===C?null:C,$=e.onChange;e.children;var A=e.renderContent;e.removeBorderRadiusLeft,e.removeBorderRadiusRight,e.removeBorderRadiusBoth;var T=e.dir,O=ye(e,Lo),z="message_".concat(y),F=$?{onChange:$,value:m}:{defaultValue:m},P=Io(Io(Io({},f||s?{"aria-describedby":z}:{}),F),O);return fe().createElement("div",{className:Ke(eo,r),dir:T,"data-ppui-info":"text-input_6.2.2__8.12.0"},Ho(S,"left"),A(Io({inputClassName:n,name:h,id:y,setFocus:t,hasError:u,placeholder:x,placemat:w,label:b,labelClassName:a,isLabelHidden:v,inputTag:"input",leftIcon:S,rightIcon:E},P)),fe().createElement(Mo,{errorText:s,errorIconAriaLabel:p,successText:i,successIconAriaLabel:l,helperText:f,messageId:z,"data-ppui":"true"}),Ho(E,"right"))},Bo=["inputClassName","inputTag","name","id","setFocus","inputRef","hasError","placeholder","placemat","label","labelClassName","isLabelHidden","rightIcon","leftIcon","prefix","suffix"],Do=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=Ke(Po,i&&Ro);return fe().createElement("div",{className:l,"data-ppui":"true"},o)},Vo=function(e){var t=null!=e?e:" ";return""===t?" ":t},Wo=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,m=e.leftIcon,h=e.prefix,g=e.suffix,y=ye(e,Bo),b=!u||""===u||p,v=Ke(no,b&&ao,!l&&f&&uo,!l&&m&&po,!l&&f&&m&&fo,Zi,l&&io,l&&b&&co,l&&f&&oo,l&&m&&lo,l&&m&&f&&so,h||g?So:null,l&&b&&(h||g)?co:null,h&&Oo,g&&zo,h&&g&&Fo,t),k=Ke(Qi,f&&mo,m&&ho,b&&it,d),x=y.value;return(0,pe.useEffect)((function(){var e=o.current;i&&e&&e.focus()}),[i]),fe().createElement(fe().Fragment,null,!!c&&fe().createElement(Do,{placeholder:c,value:x,isLabelHidden:b,"data-ppui":"true"}),fe().createElement(r,ge({className:v,name:n,id:a,ref:o,"aria-invalid":l,placeholder:Vo(s)},y,{"data-ppui":"true"})),u&&fe().createElement("label",{htmlFor:a,id:"".concat(a,"-label"),className:k,"data-ppui":"true"},u))},Uo=["label","id","prefix","suffix","prefixClassName","suffixClassName","inputClassName","inputRef","onBlur","onFocus","hasError","isLabelHidden"],Go=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,m=e.isLabelHidden,h=ye(e,Uo),g=s,y=!t||""===t||m,b=Ke(Co,y&&To,f&&$o,i),v=Ke(Eo,y&&To,f&&Ao,o),k=Ke(xo,f&&wo),x=t?"".concat(r,"-label "):"",w=n?"".concat(r,"-prefix "):"",_=a?"".concat(r,"-suffix"):"",S="".concat(x).concat(w).concat(_);return fe().createElement("div",{className:k,onClick:function(){g.current&&g.current.focus()},"data-ppui":"true"},fe().createElement(Wo,ge({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":S.trim(),hasError:f,isLabelHidden:y},h,{"data-ppui":"true"})),n&&fe().createElement("div",{id:w.trim(),className:b,"data-ppui":"true"},n),a&&fe().createElement("div",{id:_.trim(),className:v,"data-ppui":"true"},a))},qo=["prefix","suffix","prefixClassName","suffixClassName"],Ko=["inputClassName","name","id","setFocus","hasError","placeholder","placemat","label","labelClassName","inputTag"],Yo=(0,pe.forwardRef)((function(e,t){var r=e.prefix,n=e.suffix,a=e.prefixClassName,i=e.suffixClassName,o=ye(e,qo),l=(0,pe.useRef)(),s=t||l;return fe().createElement(jo,ge({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,m=e.labelClassName,h=e.inputTag,g=ye(e,Ko);return r||n?fe().createElement(Go,ge({inputClassName:t,inputTag:h,name:o,id:l,setFocus:c,inputRef:s,hasError:u,placeholder:d,label:f,labelClassName:m,prefix:r,suffix:n,prefixClassName:a,suffixClassName:i},g,{"data-ppui":"true"})):fe().createElement(Wo,ge({inputClassName:t,inputTag:h,name:o,id:l,setFocus:c,inputRef:s,hasError:u,placeholder:d,placemat:p,label:f,labelClassName:m},g,{"data-ppui":"true"}))}},o,{"data-ppui":"true"}))}));function Xo(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 Qo(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 Zo(e,t){if(e){if("string"==typeof e)return Qo(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)?Qo(e,t):void 0}}function Jo(e){return function(e){if(Array.isArray(e))return Qo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zo(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 el(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)||Zo(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 tl(e,t){return[(0,he.style)(e,t),e]}me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-elevation");const rl=e=>`calc(((${be.elevation.horizontalOffsetRatio} * ${e})/16) * 1rem)`,nl=e=>`calc(calc(((${e} * ${e} * ${be.elevation.blurCurve} + ${e} * ${be.elevation.blurSlope})/16) * 1rem) + ${be.elevation.blurBase})`,al=(e=1)=>`calc(${e} * ${be.elevation.opacity}*100%)`,il=Ye(be.color.structure.shadow,al()),ol=e=>Ye(be.color.background.surface,al(e)),ll=e=>`${rl(e)} ${(e=>`calc(((${be.elevation.verticalOffsetRatio} * ${e-1})/16) * 1rem)`)(e)} ${nl(e)} ${il}`,sl=e=>`linear-gradient(${ol(e)}, ${ol(e)})`,[cl,ul]=tl({boxShadow:ll(1),backgroundImage:sl(1)},"elevation_level1"),[dl,pl]=tl({boxShadow:ll(2),backgroundImage:sl(2)},"elevation_level2"),[fl,ml]=tl({boxShadow:ll(3),backgroundImage:sl(3)},"elevation_level3"),[hl,gl]=tl({filter:`drop-shadow(${ll(1)})`},"drop_shadow1"),[yl,bl]=tl({filter:`drop-shadow(${ll(2)})`},"drop_shadow2"),[vl,kl]=tl({filter:`drop-shadow(${ll(3)})`},"drop_shadow3"),[xl,wl]=tl({boxShadow:`0 0 ${nl(.33)} ${il}`},"fixed_elevation"),[_l,Sl]=tl({boxShadow:`${rl(3)} ${`calc(((${be.elevation.verticalOffsetRatio} * -2)/16) * 1rem)`} ${nl(3)} ${il}`,backgroundImage:sl(3),transform:"translateZ(0)"},"elevation_level3_above");me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-list");const Cl=(0,he.style)({listStyle:"none",padding:"0",margin:"0",backgroundColor:"transparent"},"list_base"),El=(0,he.style)({display:"flex",textDecoration:"none",backgroundColor:"transparent",outline:"none"},"list_item-wrapper"),$l={regular:(0,he.style)({paddingLeft:be.space[200],paddingRight:be.space[200]},"list_item-wrapper-gutter-regular"),none:(0,he.style)({paddingLeft:0,paddingRight:0},"list_item-wrapper-gutter-none")};(0,he.globalStyle)(`${El} > div:not(:last-child)`,{marginInlineEnd:be.space[100]});const Al=(0,he.style)({cursor:"pointer",position:"relative",":hover":{backgroundColor:be.color.background.surfaceHover},":active":{backgroundColor:be.color.background.surfaceActive}},"list_hover_active"),Tl=(0,he.style)({backgroundColor:be.color.background.surfaceActive},"list_highlight"),Ol=(0,he.style)({display:"inherit",color:be.color.secondary.main,pointerEvents:"none",flexGrow:0},"list_decoration"),zl=(0,he.style)({alignSelf:"center",display:"inline-flex",flexDirection:"column",gap:be.space[50],pointerEvents:"none",flexGrow:1},"list_content"),Fl=(0,he.style)({pointerEvents:"auto"},"list_action"),Pl=(0,he.style)({alignSelf:"center",textAlign:"right",display:"flex",flexDirection:"column",gap:be.space[50],pointerEvents:"none",flexGrow:0,selectors:{"[dir='rtl'] &":{textAlign:"left",justifySelf:"end"}}},"list_trailing-content"),Rl=(0,he.style)({margin:0},"list_text"),Ll=(0,he.style)([Rl,{color:be.color.background.mediumContrast}],"list_secondary_text"),Nl=(0,he.style)({alignSelf:"start"},"list_align-top"),Il=(0,he.style)({alignSelf:"end"},"list_align-top"),Ml=(0,he.style)({alignSelf:"center"},"list_align-center"),Hl=(0,he.style)({position:"relative",":focus":{...Fa,borderRadius:be.border.radius.xs}},"list_keyboard_active"),jl=(0,he.style)({listStyleType:"none",margin:0,padding:0},"list_section-list"),Bl=(0,he.style)({padding:`${be.space[150]} ${be.space[200]}`},"list_section-title"),Dl={regular:(0,he.style)({paddingTop:be.space[150],paddingBottom:be.space[150]},"list_item-vertical-space-regular"),condensed:(0,he.style)({paddingTop:be.space[75],paddingBottom:be.space[75]},"list_item-vertical-space-condensed")},Vl=(0,he.style)({"@media":{[`(max-width: ${Se})`]:{minWidth:be.size.icon.lg,alignItems:"flex-end"}}},"checkmark-icon"),Wl=(0,he.style)({pointerEvents:"none"},"unselectable");me.endFileScope();var Ul=["regular","none"],Gl=["regular","condensed"],ql=["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 Kl(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 Yl=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,m=e.isSelected,h=e.highlightText,g=e.isTextHighlighted,y=e.as,b=void 0===y?"div":y,v=e.isItemFocusable,k=e.isItemNavigational,x=e.ariaDescribedby,w=e.role,_=e.gutterStyle,S=void 0===_?"regular":_,C=e.verticalSpace,E=void 0===C?"regular":C,$=e.unselectable,A=void 0!==$&&$,T=ye(e,ql),O=(0,pe.useRef)();(0,pe.useEffect)((function(){p&&O.current.focus()}),[p]);var z=Ke(El,Dl[E],k&&Al,f&&Tl,v&&Hl,$l[S],A&&Wl),F={top:Nl,center:Ml,bottom:Il},P=Ke(Ol,c&&F[c.align]),R=Ke(Pl,u&&F[u.align],Vl),L=d&&function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kl(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d),N={as:"p",type:m?"strong":"regular",className:Rl,clampAtLine:r},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&fe().createElement(ra,ge({as:"p",className:Ll},t?{clampAtLine:o}:{},{"data-ppui":"true"}),e)},M=function(e){return e&&fe().createElement("div",{className:Fl,"data-ppui":"true"},e)};return fe().createElement(b,ge({className:z,role:w},A?null:{tabIndex:-1},{ref:O,"aria-describedby":x},d?null:{"aria-selected":void 0!==m&&m},L,T,{"data-ppui":"true"}),(null==c?void 0:c.thumbnail)&&fe().createElement("div",{className:P,"data-ppui":"true"},c.thumbnail),(!!t||!!l||!!s||!!n||!!a||!!i)&&fe().createElement("div",{className:zl,"data-ppui":"true"},n&&fe().createElement("div",{"data-ppui":"true"},n),I(a,!1),t&&function(){if(g&&"string"==typeof t){var e=nt(t,h);return fe().createElement(ea,ge({},N,{dangerouslySetInnerHTML:{__html:e},"data-ppui":"true"}))}return fe().createElement(ea,ge({},N,{"data-ppui":"true"}),t)}(),I(i,!0),l,M(s)),fe().createElement("div",{className:R,"data-ppui":"true"},(u||m)&&fe().createElement(fe().Fragment,null,m?fe().createElement(Ei,{"aria-label":"Selected",size:"sm",color:"SelectedMain","data-ppui":"true"}):null,(null==u?void 0:u.status)&&fe().createElement("div",{"data-ppui":"true"},u.status),I(null==u?void 0:u.labelContext,!1),(null==u?void 0:u.label)&&fe().createElement(ea,{as:"p",className:Rl,"data-ppui":"true"},u.label),I(null==u?void 0:u.labelDescription,!1),M(null==u?void 0:u.action),M(null==u?void 0:u.icon))))},Xl=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]},Ql=["options","focusActive","activeIndex","focusedIndex","className","onKeyDown","onClick","onFocus","onBlur","hasSections","highlightText","isTextHighlighted","itemAs","gutterStyle","verticalSpace"];function Zl(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 Jl=fe().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,m=e.highlightText,h=e.isTextHighlighted,g=e.itemAs,y=void 0===g?Yl:g,b=e.gutterStyle,v=void 0===b?"regular":b,k=e.verticalSpace,x=void 0===k?"regular":k,w=ye(e,Ql),_=(0,pe.useRef)(),S=t||_,C=el((0,pe.useState)(l),2),E=C[0],$=C[1];(0,pe.useEffect)((function(){$(l)}),[l]);var A,T,O=function(e,t,r){(null==r?void 0:r.unselectable)||($(t),u&&u(e,t))},z=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:m,isTextHighlighted:h,isFocused:n&&E===d,isHighlighted:i===d,isItemNavigational:c,isItemFocusable:null!=n?n:c,as:e.navigationOptions?"a":"div",ariaDescribedby:f?r:null,gutterStyle:Ul.includes(v)?v:"regular",disabled:e.unselectable,verticalSpace:Gl.includes(x)?x:"regular"},g=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.wrapperProps);return delete e.wrapperProps,fe().createElement("li",ge({className:e.className,role:"menuitem","aria-selected":void 0!==e.isSelected&&e.isSelected,onClick:function(t){return O(t,d,e)},key:d,"data-value":e.value},g,{"data-ppui":"true"}),fe().createElement(t,ge({},p,e,{"data-ppui":"true"})))}))};return fe().createElement("menu",ge({className:Ke(Cl,s),ref:S,tabIndex:n&&-1===E?0:-1},w,{onFocus:function(e){var t=n&&e.target===S.current&&e.currentTarget===S.current;!c&&t&&$(0),d&&d(e)},onBlur:function(e){var t=!S.current.contains(e.target)||!e.relatedTarget;!c&&n&&t&&$(-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,Jo(t.sectionItems)),e}),[]):r,n=new Je(e.key);n.IS_ARROW_UP&&E>0?(e.preventDefault(),$(Xl(t,E,"previous"))):n.IS_ARROW_DOWN&&E<t.length-1?(e.preventDefault(),$(Xl(t,E,"next"))):(n.IS_ENTER||n.IS_SPACEBAR)&&u&&(e.preventDefault(),O(e,E))}},"data-ppui":"true"}),f?(A=y,T=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:Ze("list_section_id");e.push(fe().createElement("li",{role:"presentation",key:n,"data-ppui":"true"},t.title&&fe().createElement("div",{className:Ke(Bl,Dl[x]),id:t.id,"aria-hidden":"true","data-ppui":"true"},fe().createElement(ra,{"data-ppui":"true"},t.title)),fe().createElement("menu",ge({"aria-labelledby":t.id,className:jl},w,{"data-ppui":"true"}),z(t.sectionItems,A,t.id,T)))),T+=t.sectionItems.length}return e}),[])):z(r,y))}));me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-menu");const es="8rem",ts=(0,he.style)([ml,{borderRadius:be.border.radius.lg,minWidth:es,maxHeight:"30rem",overflowY:"auto",overflowX:"hidden",position:"absolute",marginTop:be.space[50],backgroundColor:be.color.background.surface,outline:`${be.border.thickness.normal} solid transparent`,zIndex:Ve}],"menu_container"),rs=(0,he.style)({selectors:{[`${Cl}&`]:{padding:`${be.space[100]} 0`,"@media":{[`screen and (max-width: ${Se})`]:{paddingBottom:be.space[400],paddingTop:0}}}}},"menu_list"),ns=(0,he.style)({display:"flex",height:"100%",alignItems:"center",justifyContent:"center"},"menu_loading_container");me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-loading-spinner");const{ppuiEaseLoopStandard:as}=oa,is=(0,he.keyframes)({to:{transform:"rotate(360deg)"}},"border_spinner"),os="1rem",ls=(0,he.style)({color:be.color.primary.main,animation:`${is} ${be.motion.duration.loop.standard} ${as} infinite`,border:`${be.border.thickness.emphasis} solid currentColor`,borderRadius:"50%",clipPath:"polygon(50% 0%, 50% 50%, 100% 50%, 100% 100%, 0 100%, 0 0)"},"loading_spinner_base"),ss=(0,he.style)({minWidth:os,minHeight:os},"loading_spinner_size_xs"),cs=(0,he.style)({width:be.size.circle.xs,height:be.size.circle.xs},"loading_spinner_size_sm"),us=(0,he.style)({width:be.size.circle.sm,height:be.size.circle.sm},"loading_spinner_size_md"),ds=(0,he.style)({width:be.size.circle.md,height:be.size.circle.md},"loading_spinner_size_lg"),ps=(0,he.style)({width:be.size.circle.xl,height:be.size.circle.xl},"loading_spinner_size_xl"),fs=(0,he.style)({color:be.color.primary.contrast},"loading_spinner_inverse");me.endFileScope();var ms=["as","className","inverse","size","screenReaderText"],hs=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=ye(e,ms),c={xs:ss,sm:cs,md:us,lg:ds,xl:ps};Object.keys(c).includes(o)||(o="sm");var u=Ke(ls,a&&fs,c[o],n);return fe().createElement(r,ge({className:u,"data-ppui-info":"loading-spinner_4.1.2__8.12.0"},s,{role:"alert"}),fe().createElement("span",{className:it,"data-ppui":"true"},l))};me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-sheet");const{variables:gs}=n,{ppuiEaseInOut:ys}=gs,bs=`calc(${be.size.media.xl} * 0.75)`,vs=be.size.icon.lg,ks=`calc(${be.size.icon.xl} + (${be.space[100]}))`,xs="100vw",ws=`screen and (max-width: ${Ce})`,_s=`screen and (max-width: ${Se})`,Ss=`screen and (max-width: ${_e})`,Cs=`screen and (min-width: ${Se})`,Es={transform:"translateZ(0) translateX(0)"},$s={transform:"translateZ(0) translateX(100%)"},As={transform:"translateZ(0) translateX(-100%)"},Ts={borderTopLeftRadius:be.border.radius.jumbo,borderTopRightRadius:be.border.radius.jumbo},Os=(e="center")=>(0,he.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`sheet-container_center_${e}`),zs=e=>(0,he.style)({"@media":{[_s]:{height:`${e}dvh`,...Ts}}},`sheet_height_${e}`),Fs=e=>{const t="right"===e?$s:As;return(0,he.style)([ec,{"@media":{[Cs]:t},selectors:{"&[aria-hidden='false']":Es}}],`sheet-container_${e}`)},Ps=(0,he.style)([Os("flex-end"),{width:be.size.media.md,"@media":{[ws]:{width:be.size.media.sm},[Ss]:{width:xs}}}],"sheet-container_bottom"),Rs=(0,he.style)({width:"75%",maxWidth:bs},"sheet_no_container"),Ls=(0,he.style)({height:"100dvh",width:"auto",willChange:"transform",transition:`transform ${be.motion.duration.depart} ${ys},\n height ${be.motion.duration.depart} ${ys}`,transform:"translateZ(0) translateY(100%)","@media":{[_s]:{width:xs,height:"auto",minHeight:"3rem",maxHeight:"90dvh",...Ts}}},"sheet"),Ns=(0,he.style)({transform:"translateZ(0) translateY(0)"},"sheet_show"),Is=(0,he.style)([Os("center"),{position:"fixed",inset:0,zIndex:We,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${be.motion.duration.depart} ease-in-out,\n visibility ${be.motion.duration.depart} ${be.motion.duration.depart}`,backgroundColor:be.color.overlay.mainHover,boxShadow:"none"}],"sheet_backdrop");(0,he.globalStyle)(`${Is} [aria-hidden="false"], ${Is} [aria-hidden="true"]`,{transitionDuration:be.motion.duration.arrive});const Ms=(0,he.style)([{position:"fixed",inset:0,zIndex:We,transform:`visibiliy ${be.motion.duration.depart} ${be.motion.duration.depart}`,selectors:{"&::before":{content:" ",position:"absolute",inset:0,opacity:0,willChange:"opacity",transition:`opacity ${be.motion.duration.depart} ease-in-out`,backgroundColor:be.color.overlay.mainHover}}},Os("flex-end")],"sheet-scrim"),Hs=(0,he.style)({visibility:"visible",transition:"none",selectors:{"&::before":{opacity:1,transitionDuration:be.motion.duration.arrive}}},"sheet-scrim_show"),js=(0,he.style)({selectors:{"&::before":{content:" ",position:"absolute",top:be.space[100],left:0,right:0,margin:"auto",width:be.size.tapTarget.default,height:be.size.indicator.sm,backgroundColor:be.color.background.mediumContrast,borderRadius:be.border.radius.md,display:"none","@media":{[_s]:{display:"block"}}}}},"sheet-show_gripper"),Bs=(0,he.style)({"@media":{[_s]:{borderRadius:0}}},"sheet-content_with_header"),Ds=(0,he.style)({padding:"0 8.5rem","@media":{[ws]:{padding:"0 5rem"},[_s]:{padding:`0 ${be.space[200]} ${be.space[200]}`}}},"sheet-content"),Vs=(0,he.style)({minHeight:ks,"@media":{[_s]:{minHeight:vs}}},"sheet-header"),Ws=(0,he.style)({minHeight:ks,padding:be.space[150],margin:0,"@media":{[_s]:{minHeight:vs,margin:0}}},"sheet-header_action"),Us=(0,he.style)({"@media":{[_s]:{padding:`0 ${be.space[100]}`}}},"sheet-header_action-spacing"),Gs=(0,he.style)({"@media":{[_s]:{padding:`calc(${be.space[75]} + ${be.space[50]}) ${be.space[75]} 0`}}},"sheet-header_action-gripper-spacing"),qs=(0,he.style)({flex:"0 0 100%",padding:`${be.space[100]} ${be.space[200]}`},"sheet-header_work_area"),Ks=(0,he.style)({position:"absolute",right:be.space[50],top:be.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:be.space[50],right:"auto","@media":{[Cs]:{left:be.size.indicator.md}}}}},"sheet-content_close");(0,he.globalStyle)(`${Ks}`,{"@media":{[Cs]:{right:be.size.indicator.md,top:be.space[150]}}});const Ys=(0,he.style)({"@media":{[_s]:{height:"100dvh",maxHeight:"100dvh",borderTopLeftRadius:0,borderTopRightRadius:0}}},"sheet_height_100"),Xs=zs("90"),Qs=zs("50"),Zs=(0,he.style)({"@media":{[Cs]:{justifyContent:"flex-end"}}},"sheet_right_side"),Js=(0,he.style)({"@media":{[Cs]:{width:"35.5rem"}}},"sheet-right_width"),ec=(0,he.style)({"@media":{[Cs]:{willChange:"transform",transition:`transform ${be.motion.duration.depart}`,bottom:"inherit"}}},"sheet-container"),tc=Fs("right"),rc=Fs("left"),nc=(0,he.style)({"@media":{[Cs]:{paddingLeft:be.space[600],paddingRight:be.space[600]}}},"sheet-drawer_container");me.endFileScope();var ac=r(448),ic=r.n(ac);function oc(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 lc=function(e){var t=e.id,r=void 0===t?Ze("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=el((0,pe.useState)("initial"),2),d=u[0],p=u[1],f=(0,pe.useRef)({event:null,closeMethod:""}),m=(0,pe.useRef)(r),h=(0,pe.useRef)(null),g=function(){h.current&&(clearTimeout(h.current),h.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,pe.useLayoutEffect)((function(){a||"initial"!==d||p("showing"),a&&"initial"!==d&&(f.current.closeMethod="caller",p("hiding"))}),[a]);var y=function(e){e.target.dataset.animatee===m.current&&("hiding"===d?g():"function"==typeof i&&i(e),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation())};if(a&&"initial"===d)return null;var b=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(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"),h.current=setTimeout((function(){g()}),1e3)},"data-animatee":m.current},s[d]);return fe().createElement("div",{"data-testid":"animator",onTransitionEnd:y,onAnimationEnd:y},c(b))},sc=function(){return sc=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},sc.apply(this,arguments)};function cc(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 uc=r(718),dc=r(214),pc=r.n(dc),fc="right-scroll-bar-position",mc="width-before-scroll-bar";function hc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gc="undefined"!=typeof window?dc.useLayoutEffect:dc.useEffect,yc=new WeakMap;function bc(e,t){var r,n,a,i=(r=t||null,n=function(t){return e.forEach((function(e){return hc(e,t)}))},(a=(0,dc.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 gc((function(){var t=yc.get(i);if(t){var r=new Set(t),n=new Set(e),a=i.current;r.forEach((function(e){n.has(e)||hc(e,null)})),n.forEach((function(e){r.has(e)||hc(e,a)}))}yc.set(i,e)}),[e]),i}function vc(e){return e}function kc(e,t){void 0===t&&(t=vc);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 xc(e,t){return void 0===t&&(t=vc),kc(e,t)}function wc(e){void 0===e&&(e={});var t=kc(null);return t.options=sc({async:!0,ssr:!1},e),t}var _c=wc(),Sc=function(){},Cc=dc.forwardRef((function(e,t){var r=dc.useRef(null),n=dc.useState({onScrollCapture:Sc,onWheelCapture:Sc,onTouchMoveCapture:Sc}),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,m=e.inert,h=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,v=cc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,x=bc([r,t]),w=sc(sc({},v),a);return dc.createElement(dc.Fragment,null,u&&dc.createElement(k,{sideCar:_c,removeScrollBar:c,shards:d,noIsolation:f,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:r,gapMode:b}),o?dc.cloneElement(dc.Children.only(l),sc(sc({},w),{ref:x})):dc.createElement(y,sc({},w,{className:s,ref:x}),l))}));Cc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Cc.classNames={fullWidth:mc,zeroRight:fc};var Ec="data-focus-lock",$c="data-focus-lock-disabled",Ac={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Tc=xc({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Oc=xc(),zc=xc(),Fc=wc({async:!0,ssr:"undefined"!=typeof document}),Pc=(0,dc.createContext)(void 0),Rc=[],Lc=(0,dc.forwardRef)((function(e,t){var r,n=(0,dc.useState)(),a=n[0],i=n[1],o=(0,dc.useRef)(),l=(0,dc.useRef)(!1),s=(0,dc.useRef)(null),c=(0,dc.useState)({})[1],u=e.children,d=e.disabled,p=void 0!==d&&d,f=e.noFocusGuards,m=void 0!==f&&f,h=e.persistentFocus,g=void 0!==h&&h,y=e.crossFrame,b=void 0===y||y,v=e.autoFocus,k=void 0===v||v,x=(e.allowTextSelection,e.group),w=e.className,_=e.whiteList,S=e.hasPositiveIndices,C=e.shards,E=void 0===C?Rc:C,$=e.as,A=void 0===$?"div":$,T=e.lockProps,O=void 0===T?{}:T,z=e.sideCar,F=e.returnFocus,P=void 0!==F&&F,R=e.focusOptions,L=e.onActivation,N=e.onDeactivation,I=(0,dc.useState)({})[0],M=(0,dc.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&&L&&L(o.current),l.current=!0,c()}),[L]),H=(0,dc.useCallback)((function(){l.current=!1,N&&N(o.current),c()}),[N]),j=(0,dc.useCallback)((function(e){var t=s.current;if(t){var r=("function"==typeof t?t():t)||document.body,n="function"==typeof P?P(r):P;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)}}}),[P]),B=(0,dc.useCallback)((function(e){l.current&&Tc.useMedium(e)}),[]),D=Oc.useMedium,V=(0,dc.useCallback)((function(e){o.current!==e&&(o.current=e,i(e))}),[]),W=ge(((r={})[$c]=p&&"disabled",r[Ec]=x,r),O),U=!0!==m,G=U&&"tail"!==m,q=bc([t,V]),K=(0,dc.useMemo)((function(){return{observed:o,shards:E,enabled:!p,active:l.current}}),[p,l.current,E,a]);return pc().createElement(dc.Fragment,null,U&&[pc().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:p?-1:0,style:Ac}),S?pc().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:Ac}):null],!p&&pc().createElement(z,{id:I,sideCar:Fc,observed:a,disabled:p,persistentFocus:g,crossFrame:b,autoFocus:k,whiteList:_,shards:E,onActivation:M,onDeactivation:H,returnFocus:j,focusOptions:R,noFocusGuards:m}),pc().createElement(A,ge({ref:q},W,{className:w,onBlur:D,onFocus:B}),pc().createElement(Pc.Provider,{value:K},u)),G&&pc().createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:Ac}))}));Lc.propTypes={};const Nc=Lc;var Ic=wc(),Mc="data-focus-on-hidden",Hc={preventScroll:!0},jc=uc.forwardRef((function(e,t){var r=uc.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,m=void 0===f||f,h=e.returnFocus,g=void 0===h||h,y=e.inert,b=e.allowPinchZoom,v=e.sideCar,k=e.className,x=e.shouldIgnore,w=e.preventScrollOnFocus,_=e.style,S=e.as,C=e.gapMode,E=cc(e,["children","autoFocus","shards","crossFrame","enabled","scrollLock","focusLock","returnFocus","inert","allowPinchZoom","sideCar","className","shouldIgnore","preventScrollOnFocus","style","as","gapMode"]),$=v,A=n.onActivation,T=n.onDeactivation,O=cc(n,["onActivation","onDeactivation"]),z=sc(sc({},O),{as:S,style:_,sideCar:v,shards:l,allowPinchZoom:b,gapMode:C,inert:y,enabled:u&&p});return uc.createElement(uc.Fragment,null,uc.createElement(Nc,{ref:t,sideCar:v,disabled:!(n&&u&&m),returnFocus:g,autoFocus:o,shards:l,crossFrame:s,onActivation:A,onDeactivation:T,className:k,whiteList:x,lockProps:z,focusOptions:w?Hc:void 0,as:Cc},i),u&&uc.createElement($,sc({},E,{sideCar:Ic,setLockProps:a,shards:l})))})),Bc=function(e){var t=e.sideCar,r=cc(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 dc.createElement(n,sc({},r))};function Dc(e,t){return e.useMedium(t),Bc}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vc(e,t)}Bc.isSideCarExport=!0;var Wc=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},Uc=function(e){return Array.isArray(e)?e:[e]},Gc=function(e){return Array.isArray(e)?e[0]:e},qc=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Kc=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Yc=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!e||Kc(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(qc(e))}(t,Yc.bind(void 0,e));return e.set(t,n),n},Xc=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!(e&&!Kc(e))||!!eu(e)&&t(qc(e))}(t,Xc.bind(void 0,e));return e.set(t,n),n},Qc=function(e){return e.dataset},Zc=function(e){return"INPUT"===e.tagName},Jc=function(e){return Zc(e)&&"radio"===e.type},eu=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},tu=function(e){var t;return Boolean(e&&(null===(t=Qc(e))||void 0===t?void 0:t.focusGuard))},ru=function(e){return!tu(e)},nu=function(e){return Boolean(e)},au=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},iu=function(e,t,r){return Wc(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(au)},ou=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),lu="".concat(ou,", [data-focus-guard]"),su=function(e,t){return Wc((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?lu:ou)?[r]:[],su(r))}),[])},cu=function(e,t){return e.reduce((function(e,r){var n,a=su(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)?cu([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,r.parentNode?Wc(r.parentNode.querySelectorAll(ou)).filter((function(e){return e===r})):[])}),[])},uu=function(e,t){return Wc(e).filter((function(e){return Yc(t,e)})).filter((function(e){return function(e){return!((Zc(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},du=function(e,t){return void 0===t&&(t=new Map),Wc(e).filter((function(e){return Xc(t,e)}))},pu=function(e,t,r){return iu(uu(cu(e,r),t),!0,r)},fu=function(e,t){return iu(uu(cu(e),t),!1)},mu=function(e,t){return e.shadowRoot?mu(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Wc(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&&mu(n,t)}return mu(e,t)}))},hu=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?hu(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?hu(t.contentWindow.document):t}},gu=function(e){return e.parentNode?gu(e.parentNode):e},yu=function(e){return Uc(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(Ec);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)}))}(Wc(gu(t).querySelectorAll("[".concat(Ec,'="').concat(r,'"]:not([').concat($c,'="disabled"])')))):[t]),e}),[])},bu=function(e,t){return void 0===t&&(t=hu(Gc(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&yu(e).some((function(e){return mu(e,t)||function(e,t){return Boolean(Wc(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},vu=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},ku=function(e,t){return Jc(e)&&e.name?function(e,t){return t.filter(Jc).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},xu=function(e){return e[0]&&e.length>1?ku(e[0],e):e[0]},wu=function(e,t){return e.indexOf(ku(t,e))},_u="NEW_FOCUS",Su=function(e,t,r){var n,a=e.map((function(e){return e.node})),i=du(a.filter((n=r,function(e){var t,r=null===(t=Qc(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return i&&i.length?xu(i):xu(du(t))},Cu=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Cu(e.parentNode.host||e.parentNode,t),t},Eu=function(e,t){for(var r=Cu(e),n=Cu(t),a=0;a<r.length;a+=1){var i=r[a];if(n.indexOf(i)>=0)return i}return!1},$u=function(e,t,r){var n=Uc(e),a=Uc(t),i=n[0],o=!1;return a.filter(Boolean).forEach((function(e){o=Eu(o||e,e)||o,r.filter(Boolean).forEach((function(e){var t=Eu(i,e);t&&(o=!o||mu(t,o)?t:Eu(t,o))}))})),o},Au=function(e,t){return e.reduce((function(e,r){return e.concat(function(e,t){return uu((r=e.querySelectorAll("[".concat("data-autofocus-inside","]")),Wc(r).map((function(e){return cu([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var r}(r,t))}),[])},Tu=function(e,t){var r=hu(Uc(e).length>0?document:Gc(e).ownerDocument),n=yu(e).filter(ru),a=$u(r||e,e,n),i=new Map,o=fu(n,i),l=o.filter((function(e){var t=e.node;return ru(t)}));if(l[0]){var s,c,u,d=fu([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(nu)),f=p.map((function(e){return e.node})),m=p.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),h=function(e,t,r,n,a){var i=e.length,o=e[0],l=e[i-1],s=tu(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:_u;if(-1===d)return _u;var p,f,m=c-u,h=r.indexOf(o),g=r.indexOf(l),y=(p=r,f=new Set,p.forEach((function(e){return f.add(ku(e,p))})),p.filter((function(e){return f.has(e)}))),b=void 0!==n?y.indexOf(n):-1,v=a?y.indexOf(a):b,k=y.filter((function(e){return e.tabIndex>=0})),x=void 0!==n?k.indexOf(n):-1,w=a?k.indexOf(a):x,_=x>=0&&w>=0?w-x:v-b;if(!m&&d>=0)return d;if(0===t.length)return d;var S=wu(e,t[0]),C=wu(e,t[t.length-1]);return c<=h&&s&&Math.abs(m)>1?C:c>=g&&s&&Math.abs(m)>1?S:m&&Math.abs(_)>1?d:c<=h?C:c>g?S:m?Math.abs(m)>1?d:(i+d+m)%i:void 0}}(f,m,d,r,t);if(h===_u){var g=Su(o,m,Au(n,i))||Su(o,f,Au(n,i));return g?{node:g}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===h?h:p[h]}},Ou=0,zu=!1,Fu=function(e,t,r){void 0===r&&(r={});var n=Tu(e,t);if(!zu&&n){if(Ou>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"),zu=!0,void setTimeout((function(){zu=!1}),1);Ou++,vu(n.node,r.focusOptions),Ou--}};function Pu(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 Ru=function(e){var t=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:Pu(r),parent:Pu(r.parentElement),left:Pu(r.previousElementSibling),right:Pu(r.nextElementSibling)}),r=r.parentElement;return{element:Pu(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),m=d.current(),h=p.contains(m)?m:void 0,g=null===(n=d.right)||void 0===n?void 0:n.call(d),y=pu([p],s),b=null!==(i=null!==(a=null!=h?h:null==f?void 0:f.nextElementSibling)&&void 0!==a?a:g)&&void 0!==i?i:f;b;){for(var v=0,k=y;v<k.length;v++){var x=k[v];if(null==b?void 0:b.contains(x.node))return x.node}b=b.nextElementSibling}if(y.length)return y[0].node}}}(t)}},Lu=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=Uc(t);if(n.every((function(t){return!mu(t,e)})))return console.error("Active element is not contained in the scope"),{};var a=r?pu(n,new Map):fu(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&&vu(i.node,n.focusOptions)}},Nu=function(e,t,r){var n,a,i,o,l=(a=e,i=null===(n=t.onlyTabbable)||void 0===n||n,{first:(o=i?pu(Uc(a),new Map):fu(Uc(a),new Map))[0],last:o[o.length-1]})[r];l&&vu(l.node,t.focusOptions)};function Iu(e){setTimeout(e,1)}var Mu=function(e){return e&&"current"in e?e.current:e},Hu=function(){return document&&document.activeElement===document.body},ju=null,Bu=null,Du=function(){return null},Vu=null,Wu=!1,Uu=!1,Gu=function(){return!0};function qu(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 Ku=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Yu=function(e){return fu(e,new Map)},Xu=function(){var e,t,r,n,a,i,o,l=!1;if(ju){var s=ju,c=s.observed,u=s.persistentFocus,d=s.autoFocus,p=s.shards,f=s.crossFrame,m=s.focusOptions,h=s.noFocusGuards,g=c||Vu&&Vu.portaledElement;if(Hu()&&Bu&&Bu!==document.body&&(!document.body.contains(Bu)||!Yu([(o=Bu).parentNode]).some((function(e){return e.node===o})))){var y=Du();y&&y.focus()}var b=document&&document.activeElement;if(g){var v=[g].concat(p.map(Mu).filter(Boolean));if(b&&!function(e){return(ju.whiteList||Gu)(e)}(b)||(u||function(){if(!(f?Boolean(Wu):"meanwhile"===Wu)||!h||!Bu||Uu)return!1;var e=Yu(v),t=e.findIndex((function(e){return e.node===Bu}));return 0===t||t===e.length-1}()||!(Hu()||function(e){void 0===e&&(e=document);var t=hu(e);return!!t&&Wc(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return mu(e,t)}))}())||!Bu&&d)&&(g&&!(bu(v)||b&&function(e,t){return t.some((function(t){return Ku(e,t,t)}))}(b,v)||(i=b,Vu&&Vu.portaledElement===i))&&(document&&!Bu&&b&&!d?(b.blur&&b.blur(),document.body.focus()):(l=Fu(v,Bu,{focusOptions:m}),Vu={})),(Bu=document&&document.activeElement)!==document.body&&(Du=Ru(Bu)),Wu=!1),document&&b!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var k=document&&document.activeElement,x=(t=yu(e=v).filter(ru),r=$u(e,e,t),n=iu(cu([r],!0),!0,!0),a=cu(t,!1),n.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:tu(t)}}))),w=x.map((function(e){return e.node})).indexOf(k);w>-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")})),qu(w,x.length,1,x),qu(w,-1,-1,x))}}}return l},Qu=function(e){Xu()&&e&&(e.stopPropagation(),e.preventDefault())},Zu=function(){return Iu(Xu)},Ju=function(){Uu=!0},ed=function(){Uu=!1,Wu="just",Iu((function(){Wu="meanwhile"}))},td={moveFocusInside:Fu,focusInside:bu,focusNextElement:function(e,t){void 0===t&&(t={}),Lu(e,t,(function(e,t){var r=e.next,n=e.first;return r||t&&n}))},focusPrevElement:function(e,t){void 0===t&&(t={}),Lu(e,t,(function(e,t){var r=e.prev,n=e.last;return r||t&&n}))},focusFirstElement:function(e,t){void 0===t&&(t={}),Nu(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),Nu(e,t,"last")},captureFocusRestore:Ru};Tc.assignSyncMedium((function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(Vu={observerNode:r,portaledElement:t})})),Oc.assignMedium(Zu),zc.assignMedium((function(e){return e(td)}));const rd=(nd=function(e){return e.filter((function(e){return!e.disabled}))},ad=function(e){var t=e.slice(-1)[0];t&&!ju&&(document.addEventListener("focusin",Qu),document.addEventListener("focusout",Zu),window.addEventListener("focus",Ju),window.addEventListener("blur",ed));var r=ju,n=r&&t&&t.id===r.id;ju=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(Bu=null,n&&r.observed===t.observed||t.onActivation(td),Xu(),Iu(Xu)):(document.removeEventListener("focusin",Qu),document.removeEventListener("focusout",Zu),window.removeEventListener("focus",Ju),window.removeEventListener("blur",ed),Bu=null)},function(e){var t,r=[];function n(){t=nd(r.map((function(e){return e.props}))),ad(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,Vc(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 pc().createElement(e,this.props)},l}(dc.PureComponent);return Pe(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(e)+")"),a})((function(){return null}));var nd,ad;Dc(Fc,rd);var id=r(118);var od=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)}}},ld=function(){var e=function(){var e=od();return function(t,r){dc.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}},sd={left:0,top:0,right:0,gap:0},cd=function(e){return parseInt(e||"",10)||0},ud=ld(),dd="data-scroll-locked",pd=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(dd,"] {\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(fc," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(mc," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(fc," .").concat(fc," {\n right: 0 ").concat(n,";\n }\n \n .").concat(mc," .").concat(mc," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(dd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},fd=function(){var e=parseInt(document.body.getAttribute(dd)||"0",10);return isFinite(e)?e:0},md=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;id.useEffect((function(){return document.body.setAttribute(dd,(fd()+1).toString()),function(){var e=fd()-1;e<=0?document.body.removeAttribute(dd):document.body.setAttribute(dd,e.toString())}}),[]);var i=id.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return sd;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[cd(r),cd(n),cd(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 id.createElement(ud,{styles:pd(i,!t,a,r?"":"!important")})},hd=!1;if("undefined"!=typeof window)try{var gd=Object.defineProperty({},"passive",{get:function(){return hd=!0,!0}});window.addEventListener("test",gd,gd),window.removeEventListener("test",gd,gd)}catch(e){hd=!1}var yd=!!hd&&{passive:!1},bd=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])},vd=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),kd(e,n)){var a=xd(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},kd=function(e,t){return"v"===e?function(e){return bd(e,"overflowY")}(t):function(e){return bd(e,"overflowX")}(t)},xd=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},wd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_d=function(e){return[e.deltaX,e.deltaY]},Sd=function(e){return e&&"current"in e?e.current:e},Cd=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ed=0,$d=[];function Ad(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}Dc(_c,(function(e){var t=dc.useRef([]),r=dc.useRef([0,0]),n=dc.useRef(),a=dc.useState(Ed++)[0],i=dc.useState(ld)[0],o=dc.useRef(e);dc.useEffect((function(){o.current=e}),[e]),dc.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(Sd),!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=dc.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var a,i=wd(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=vd(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=vd(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=xd(e,o),f=p[0],m=p[1]-p[2]-a*f;(f||m)&&kd(e,o)&&(u+=m,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=dc.useCallback((function(e){var r=e;if($d.length&&$d[$d.length-1]===i){var n="deltaY"in r?_d(r):wd(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(Sd).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=dc.useCallback((function(e,r,n,a){var i={name:e,delta:r,target:n,should:a,shadowParent:Ad(n)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=dc.useCallback((function(e){r.current=wd(e),n.current=void 0}),[]),d=dc.useCallback((function(t){c(t.type,_d(t),t.target,l(t,e.lockRef.current))}),[]),p=dc.useCallback((function(t){c(t.type,wd(t),t.target,l(t,e.lockRef.current))}),[]);dc.useEffect((function(){return $d.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,yd),document.addEventListener("touchmove",s,yd),document.addEventListener("touchstart",u,yd),function(){$d=$d.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,yd),document.removeEventListener("touchmove",s,yd),document.removeEventListener("touchstart",u,yd)}}),[]);var f=e.removeScrollBar,m=e.inert;return dc.createElement(dc.Fragment,null,m?dc.createElement(i,{styles:Cd(a)}):null,f?dc.createElement(md,{gapMode:e.gapMode}):null)}));var Td=new WeakMap,Od=new WeakMap,zd={},Fd=0,Pd=function(e){return e&&(e.host||Pd(e.parentNode))},Rd=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=Pd(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]);zd[r]||(zd[r]=new WeakMap);var i=zd[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=(Td.get(e)||0)+1,c=(i.get(e)||0)+1;Td.set(e,s),i.set(e,c),o.push(e),1===s&&a&&Od.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(),Fd++,function(){o.forEach((function(e){var t=Td.get(e)-1,a=i.get(e)-1;Td.set(e,t),i.set(e,a),t||(Od.has(e)||e.removeAttribute(n),Od.delete(e)),a||e.removeAttribute(r)})),--Fd||(Td=new WeakMap,Td=new WeakMap,Od=new WeakMap,zd={})}}(n,a,r,"aria-hidden")):function(){return null}},Ld=ld(),Nd="\n ["+Mc+"] {\n pointer-events: none !important;\n }\n",Id=function(){return uc.createElement(Ld,{styles:Nd})},Md=function(e){return"current"in e?e.current:e};const Hd=Dc(Ic,(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,uc.useState)(void 0),c=s[0],u=s[1],d=(0,uc.useRef)(null),p=(0,uc.useRef)(0);return uc.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(Md).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,uc.useEffect)((function(){if(c)return i&&i(c),function(){o&&o()}}),[!!c]),(0,uc.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=Rd(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(Md)),document.body,Mc)),u((function(){return t}))},onDeactivation:function(){e(),r||u(null)}}),function(){r=!0,t(!1)}}),[]),uc.createElement(Id,null)}));var jd=function(e){return uc.createElement(Hd,sc({},e))},Bd=uc.forwardRef((function(e,t){return uc.createElement(jc,sc({},e,{ref:t,sideCar:jd}))}));me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-icon-button");const{YQ:Dd}=a,Vd=`calc(${be.space[100]} - 0.0625rem)`,Wd=`calc(${be.size.icon.sm} + 2 * ${be.space[150]})`,Ud=e=>({cursor:e}),Gd=(0,he.style)({...Bt,color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast)},"icon-button_font"),qd={WebkitTextStrokeWidth:"0.0421875rem",color:(0,he.fallbackVar)(Oe.main,be.color.background.highContrast)},Kd=(0,he.style)([Gd,{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",padding:`${be.space[150]} 0`,width:"6rem",wordWrap:"break-word",border:"none",backgroundColor:"transparent",":focus":{...Ud("pointer"),outline:"none"},":hover":{...Ud("pointer")}}],"icon-button_container");(0,he.globalStyle)(`${Kd}:focus > div:first-of-type`,Dd),(0,he.globalStyle)(`${Kd}:focus > span:last-of-type`,qd),(0,he.globalStyle)(`${Kd}:hover > span:last-of-type`,qd),(0,he.globalStyle)(`${Kd}:active > span:last-of-type`,qd),(0,he.globalStyle)(`${Kd}:hover > div:first-of-type`,{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.tertiary.contrastHover)}),(0,he.globalStyle)(`${Kd}:active > div:first-of-type`,{background:(0,he.fallbackVar)(Oe.activeBack,be.color.tertiary.contrastActive)});const Yd=(0,he.style)({":hover":{...Ud("default")}},"icon-button_processing_container"),Xd=(0,he.style)({":hover":{...Ud("default")}},"icon-button_success_container");(0,he.globalStyle)(`${Xd}:hover > div:first-of-type`,{backgroundColor:(0,he.fallbackVar)(be.color.success.main)});const Qd=(0,he.style)({display:"flex",justifyContent:"center",alignItems:"center"},"icon-button_size"),Zd=(0,he.style)([Qd,{padding:Vd,width:be.size.circle.sm,height:be.size.circle.sm}],"icon-button_size_sm"),Jd=(0,he.style)([Qd,{padding:be.space[200],width:be.size.tapTarget.lg,height:be.size.tapTarget.lg}],"icon-button_size_xl"),ep=(0,he.style)([Qd,{padding:be.space[150],width:be.size.tapTarget.default,height:be.size.tapTarget.default}],"icon-button_size_lg"),tp=(0,he.style)({position:"relative",...Ud("pointer"),borderRadius:be.border.radius.interactive,border:"none",backgroundColor:"transparent",display:"inline-flex",":focus":Dd},"icon-button_base"),rp=(0,he.style)({color:(0,he.fallbackVar)(Oe.main,be.color.primary.contrast),background:(0,he.fallbackVar)(Oe.background,be.color.primary.main),":hover":{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.primary.mainHover)},":active":{background:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.mainActive)}},"icon-button_primary"),np=(0,he.style)({color:(0,he.fallbackVar)(Oe.main,be.color.primary.contrast)},"icon-button_inverse"),ap=(0,he.style)({color:(0,he.fallbackVar)(Oe.main,be.color.tertiary.main),background:(0,he.fallbackVar)(Oe.background,be.color.tertiary.contrast),":hover":{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.tertiary.contrastHover)},":active":{background:(0,he.fallbackVar)(Oe.activeBack,be.color.tertiary.contrastActive)}},"icon-button_secondary"),ip=(0,he.style)({background:(0,he.fallbackVar)(Oe.background,be.color.primary.contrast),color:(0,he.fallbackVar)(Oe.main,be.color.primary.main),":hover":{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.primary.contrastHover)},":active":{background:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.contrastActive)}},"icon-button_secondary_inverse"),op=(0,he.style)({color:(0,he.fallbackVar)(Oe.main,be.color.background.mediumContrast),background:(0,he.fallbackVar)(Oe.background),":hover":{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.background.surfaceHover)},":active":{background:(0,he.fallbackVar)(Oe.activeBack,be.color.background.surfaceActive)}},"icon-button_tertiary"),lp=(0,he.style)({color:(0,he.fallbackVar)(Oe.main,be.color.overlay.contrast),background:(0,he.fallbackVar)(Oe.background,be.color.overlay.main),":hover":{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.overlay.mainHover)},":active":{background:(0,he.fallbackVar)(Oe.activeBack,be.color.overlay.mainActive)}},"icon-button_tertiary_inverse"),sp=(0,he.style)({pointerEvents:"none"},"icon-button_icon");(0,he.globalStyle)(`${tp}:hover > ${sp}`,{color:(0,he.fallbackVar)(Oe.hoverMain)}),(0,he.globalStyle)(`${tp}:active > ${sp}`,{color:(0,he.fallbackVar)(Oe.activeMain)});const cp=(0,he.style)({...bt,borderRadius:be.border.radius.interactive,width:Wd,height:Wd},"icon-button_shimmer"),up=(0,he.style)({width:be.size.circle.sm,height:be.size.circle.sm},"icon-button_shimmer_size_sm"),dp=(0,he.style)({width:be.size.circle.lg,height:be.size.circle.lg},"icon-button_shimmer_size_xl"),pp=(0,he.style)({width:be.size.circle.md,height:be.size.circle.md},"icon-button_shimmer_size_lg"),fp=(0,he.style)({margin:0},"icon-button_loading_spinner"),mp=(0,he.style)({pointerEvents:"none"},"icon-button_processing_state"),hp=(0,he.style)({pointerEvents:"none",backgroundColor:(0,he.fallbackVar)(Oe.background,be.color.success.main),color:(0,he.fallbackVar)(Oe.main,be.color.success.contrast),":hover":{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.success.main),...Ud("default")},":active":{background:(0,he.fallbackVar)(Oe.activeBack,be.color.success.main)}},"icon-button_success_state"),gp=(0,he.style)({display:"-webkit-box",textAlign:"center",padding:`${be.space[100]} ${be.space[100]} 0 ${be.space[100]}`,width:"inherit",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},"icon-button_label"),yp=(0,he.style)({width:be.size.tapTarget.default,height:be.size.tapTarget.default,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",...Ud("pointer"),":focus":{outline:"none"}},"icon-button_small_tap_container");(0,he.globalStyle)(`${yp}:focus > div:first-of-type:not(${hp}):not(${mp})`,Dd),(0,he.globalStyle)(`${yp}:hover > ${rp}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.primary.mainHover)}),(0,he.globalStyle)(`${yp}:active > ${rp}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.mainActive)}),(0,he.globalStyle)(`${yp}:hover > ${ap}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.tertiary.contrastHover)}),(0,he.globalStyle)(`${yp}:active > ${ap}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.activeBack,be.color.tertiary.contrastActive)}),(0,he.globalStyle)(`${yp}:hover > ${op}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.background.surfaceHover)}),(0,he.globalStyle)(`${yp}:active > ${op}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.activeBack,be.color.background.surfaceActive)}),(0,he.globalStyle)(`${yp}:hover > ${ip}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.primary.contrastHover)}),(0,he.globalStyle)(`${yp}:active > ${ip}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.contrastActive)}),(0,he.globalStyle)(`${yp}:hover > ${lp}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.hoverBack,be.color.overlay.mainHover)}),(0,he.globalStyle)(`${yp}:active > ${lp}:not(${hp}):not(${mp})`,{background:(0,he.fallbackVar)(Oe.activeBack,be.color.overlay.mainActive)}),me.endFileScope();var bp=["as","iconName","svgIconComponent","className","label","iconClassName","children","buttonType","btnState","screenReaderText","inverse","size","isLoading"];function vp(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 kp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vp(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xp=(0,pe.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,m=e.inverse,h=e.size,g=void 0===h?"lg":h,y=e.isLoading,b=ye(e,bp),v="sm"!==g&&i;if(y){var k=Ke(cp,{sm:up,xl:dp,lg:pp}[g],v),x="sm"!==g?kp({},b):{},w=fe().createElement(kt,ge({className:k,isInverse:m,hasStyleDefaults:!1},x,{"data-ppui":"true"}),s);return"sm"===g?fe().createElement(r||"button",ge({className:Ke(yp,i)},b,{"data-ppui":"true"}),w):w}var _={sm:"xs",xl:"md",lg:"sm"}[g],S={sm:Zd,xl:Jd,lg:ep},C=o||"sm"===g,E=Ke(tp,S[g],"primary"===u&&rp,"secondary"===u&&ap,"tertiary"===u&&op,m&&np,"secondary"===u&&m&&ip,"tertiary"===u&&m&&lp,"success"===p&&hp,"processing"===p&&mp,!C&&v),$=Ke(tp,"sm"===g?"":S[g],ap,"success"===p&&hp,"processing"===p&&mp),A=r||"button";(o||"sm"===g)&&(A="div");var T,O,z="button"===A?"button":null,F=a?fe().createElement(a,{className:Ke(sp,l),name:n,size:_,"aria-hidden":"true","data-ppui":"true"}):null,P=C?{}:kp({},b),R=kp({className:o?$:E,ref:t,type:z,disabled:p&&"initial"!==p},P),L=fe().createElement(A,ge({"data-ppui-info":"icon-button_4.2.2__8.12.0"},R),"initial"!==p?function(){var e=fe().createElement(Ei,{size:_,className:sp,"data-ppui":"true"});if("processing"===p){var t={className:Ke(sp,fp),inverse:!o&&("primary"===u||"tertiary"===u&&m),size:_};e=fe().createElement(hs,ge({},t,{"data-ppui":"true"}))}return fe().createElement(fe().Fragment,null,e,fe().createElement("span",{className:it,role:"status","data-ppui":"true"},f||p))}():fe().createElement(fe().Fragment,null,F,!o&&fe().createElement("span",{className:it,"data-ppui":"true"},s)));return o?fe().createElement(fe().Fragment,null,(T=null!=r?r:"button",O=Ke(Kd,"success"===p&&Xd,"processing"===p&&Yd,i),fe().createElement(T,ge({className:O,tabIndex:0},b,{"data-ppui":"true"}),L,fe().createElement("span",{className:gp,"data-ppui":"true"},o)))):"sm"===g?fe().createElement(r||"button",ge({className:Ke(yp,i)},b,{"data-ppui":"true"}),L):fe().createElement(fe().Fragment,null,L)}));me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-modal");const wp=be.space[800],_p=be.size.icon.lg,Sp=`calc(${be.size.icon.sm} + ${be.space[300]})`,Cp=`screen and (max-width: ${Ce})`,Ep=`screen and (max-width: ${Se})`,$p=`screen and (min-width: ${Se})`,Ap={textAlign:"center"},Tp={borderTopLeftRadius:be.border.radius.jumbo,borderTopRightRadius:be.border.radius.jumbo},Op=(0,he.style)([fl,{backgroundColor:be.color.background.surface,display:"grid",gridTemplateRows:"auto 1fr auto",position:"relative",flexBasis:"100%"}],"modal-base"),zp=(0,he.style)([((e="center")=>(0,he.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`modal-container_center_${e}`))("center"),{position:"fixed",inset:0,zIndex:We,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${be.motion.duration.depart} ease-in-out,\n visibility ${be.motion.duration.depart} ${be.motion.duration.depart}`,backgroundColor:be.color.overlay.mainHover,boxShadow:"none"}],"modal_backdrop");(0,he.globalStyle)(`${zp} [aria-hidden="false"], ${zp} [aria-hidden="true"]`,{transitionDuration:be.motion.duration.arrive});const Fp=(0,he.style)([Ct,{flex:"1 1 auto",overflow:"auto",position:"relative",borderRadius:"inherit","@media":{[Ep]:{padding:`0 ${be.space[300]} ${be.space[300]}`}}}],"modal-contents"),Pp=(0,he.style)({selectors:{[`${Fp}&`]:{padding:0,"@media":{[Cp]:{padding:"0"},[Ep]:{padding:0}}}}},"modal-content_no_padding"),Rp=(0,he.style)(Ap,"modal-content_center"),Lp=(0,he.style)({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",position:"relative",flex:"0 0 auto",zIndex:1,minHeight:wp,padding:be.space[150],"@media":{[Ep]:Tp}},"modal-header"),Np=(0,he.style)([fl,{"@media":{[Ep]:Tp}}],"modal-header_scrolled"),Ip=(0,he.style)({flex:`0 0 ${_p}`,flexBasis:Sp},"modal-header_action"),Mp=(0,he.style)([St,{flex:"1 1 3rem",margin:be.space[100],...Ap}],"modal-header_title"),Hp=(0,he.style)({flex:`0 0 ${_p}`,flexBasis:Sp,textAlign:"right"},"modal-header_close"),jp=(0,he.style)({display:"flex",flex:"1 1 3rem",justifyContent:"center",marginTop:be.space[100]},"modal-header_logo"),Bp=(0,he.style)({width:be.size.icon.md,height:be.size.icon.md},"modal-header_logo_image"),Dp=(0,he.style)({position:"absolute",right:be.space[50],top:be.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:be.space[50],right:"auto","@media":{[$p]:{left:be.size.indicator.md}}}}},"modal-content_close");(0,he.globalStyle)(`${Dp}`,{"@media":{[$p]:{right:be.size.indicator.md,top:be.space[150]}}});const Vp=(0,he.style)({minHeight:wp,padding:be.space[200],position:"relative",flex:"1 0 auto"},"modal-footer"),Wp=(0,he.style)([fl,{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}],"modal-footer_scrolled"),Up=(0,he.style)({display:"flex",justifyContent:"center"},"modal-footer_align_center"),Gp=(0,he.style)({display:"flex",justifyContent:"end"},"modal-footer_align_right");me.endFileScope();var qp=["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"],Kp=function(){return!0},Yp=function(e){var t,r,n,a,i=e.requestClose,o=e.onBeforeClose,l=void 0===o?Kp:o,s=e.className,c=e.isHidden,u=e.center,d=e.noPadding,p=e.closeButtonLabel,f=void 0===p?"close sheet":p,m=e.noCloseButton,h=e.closeButtonProps,g=void 0===h?{}:h,y=e.hideTitle,b=e.showLogo,v=e.mobileFixedHeight,k=e.showGripper,x=void 0!==k&&k,w=e.title,_=e.id,S=e.action,C=e.headerContents,E=e.footerContents,$=e.footerAlign,A=e.children,T=e.returnFocusToTrigger,O=void 0===T||T,z=e.headerClassName,F=e.containerClassName,P=e.contentContainerRef,R=e.wrapperClassName,L=e.footerClassName,N=e.skipFormFocus,I=e.contentScrollTop,M=void 0===I?0:I,H=e.onContentScroll,j=e.showDrawer,B=void 0!==j&&j,D=ye(e,qp),V=el((0,pe.useState)(!1),2),W=V[0],U=V[1],G=el((0,pe.useState)(!1),2),q=G[0],K=G[1],Y=el((0,pe.useState)(.5),2),X=Y[0],Q=Y[1],Z=(0,pe.useRef)(),J=(0,pe.useRef)(),ee=(0,pe.useRef)(),te=(0,pe.useRef)(),re=P||te,ne=(0,pe.useRef)(),ae=!!Ie()&&"rtl"===getComputedStyle(document.body).direction,ie="dynamic"===v||x,oe=parseInt(Se,10),le=!!Ie()&&(null===(t=window)||void 0===t?void 0:t.innerWidth)<oe,se=b&&!le,ce=null!=_?_:Ze(),ue=!!S||!m||!y||!!C||se,de=function(){if(re&&re.current){var e=re.current,t=0!==e.scrollTop;if(t!==W&&U(t),E){var r=e.scrollTop+e.offsetHeight!==e.scrollHeight;r!==q&&K(r)}}},me=function(){var e=Z.current;if(e){var t=.9*window.innerHeight;"100"===v?e.style.height="".concat(window.innerHeight):"90"===v?e.style.height="".concat(t,"px"):"50"===v?e.style.height="".concat(.5*window.innerHeight,"px"):e.style.maxHeight="".concat(t,"px")}};(0,pe.useEffect)((function(){var e,t,r;return c||(de(),null===(e=window)||void 0===e||e.setTimeout((function(){var e=!1;if(ne&&ne.current){var t=ne.current.querySelector("input");t&&(t.focus(),e=!0)}if(!e&&!N&&re&&re.current){var r=re.current.querySelectorAll("a, button, textarea, input, select");r.length&&(r[0].focus(),e=!0)}if(!e&&ue)if(S&&ee&&ee.current){var n=ee.current.querySelectorAll("a, button, select");n.length&&n[0].focus()}else{var a=J.current;a&&a.focus()}}),500),(Ie()&&"ontouchstart"in window||"undefined"!=typeof navigator&&(null!==(r=navigator.maxTouchPoints)&&void 0!==r?r:navigator.msMaxTouchPoints))&&window.innerHeight&&(window.addEventListener("resize",me,!1),ie?((t=Z.current)&&(t.style.height="".concat(window.innerHeight*X,"px"),t.style.maxHeight="fit-content"),function(){var e=re&&re.current;.5===X&&(e.style.overflow="hidden"),.9===X&&(e.style.overflow="scroll")}()):me())),function(){window.removeEventListener("resize",me,!1)}}),[c,X]),(0,pe.useEffect)((function(){!c&&re.current&&(re.current.scrollTop=M)}),[M,c]);var he=Ke(Ms,!c&&Hs,B&&Zs),be=Ke(Op,Rs,Ls,"100"===v&&Ys,"90"===v&&Xs,"50"===v&&Qs,ie&&Qs,!c&&Ns,B&&!ae&&tc,B&&ae&&rc),ve=Ke(Fp,Ds,u&&Rp,ue&&Bs,d&&Pp,B&&nc),ke=c?"true":"false",xe=function(e,t){l(t)&&(i(e,t),n=null,a=null)},we=m?null:fe().createElement(xp,ge({svgIconComponent:Oi,onClick:function(e){xe(e,"closeButton")},ref:J,buttonType:"tertiary"},g,{"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)&&(ie?(Q(.5),(s<-150||.5===X)&&xe(e,"swipeDown")):xe(e,"swipeDown")),s>0&&ie&&Q(.9)),n=null,a=null},Ce=function(e){e.preventDefault()},Ee=function(e){if(!a&&!n){var t=e.changedTouches[0];a=t.pageY,n=t.pageX}},$e="header_".concat(ce),Ae={role:"dialog",className:R,"aria-modal":"true","aria-hidden":ke};se||y?Ae["aria-label"]=w:Ae["aria-labelledby"]=$e;var Te=S?fe().createElement("div",{className:Hp,"data-ppui":"true"}):null,Oe=we?fe().createElement("div",{className:Ip,"data-ppui":"true"}):null,ze=we?fe().createElement("div",{className:Hp,"data-ppui":"true"},we):Te,Fe=S?fe().createElement("div",{className:Ip,ref:ee,"data-ppui":"true"},S):Oe,Pe=se?jp:Mp,Re=fe().createElement("div",{className:Pe,id:$e,"aria-live":"assertive","data-ppui":"true"},se?fe().createElement("img",{src:"https://www.paypalobjects.com/paypal-ui/logos/svg/paypal-mark-color.svg",alt:"paypal-logo",className:Bp,"data-ppui":"true"}):y?null:w),Le=C?fe().createElement("div",{className:qs,ref:ne,"data-ppui":"true"},C):null,Ne=ue?fe().createElement("header",{className:Ke(Lp,Vs,Fe&&Ws,x&&js,x?Gs:Us,W&&Np,z),onTouchStart:Ee,onTouchMove:Ce,onTouchEnd:function(e){_e(e,null)},"data-ppui":"true"},Fe,Re,ze,Le):null,Me=E?fe().createElement("footer",{className:Ke(Vp,q&&Wp,"center"===$&&Up,"right"===$&&Gp,L),"data-ppui":"true"},E):null,He=null===(r=document.getElementsByClassName("ppui-theme")[0])||void 0===r?void 0:r.classList[1];return fe().createElement("div",ge({},Ae,{className:Ke(He,he),"data-ppui-info":"sheet_2.2.4__8.12.0"}),fe().createElement(Bd,{enabled:!c,onEscapeKey:function(e){e.preventDefault(),xe(e,"ESC")},onClickOutside:function(e){xe(e,"backdropClick")},returnFocus:O,className:Ke(Ps,B&&Js),"data-ppui":"true"},fe().createElement("article",ge({className:Ke(be,F)},D,{ref:Z,"aria-hidden":ke,"data-ppui":"true"}),Ne,fe().createElement("section",{className:Ke(ve,s),onScroll:function(){if(re&&re.current){var e=re.current;H&&H(e.scrollTop)}de()},ref:re,onTouchStart:Ee,onTouchMove:Ce,onTouchEnd:function(e){var t=re&&re.current;ie&&_e(e,t)},"data-ppui":"true"},A),Me)))},Xp=["isOpen","onOpen","onCloseComplete","containerRef"],Qp=function(e){var t=e.isOpen,r=e.onOpen,n=e.onCloseComplete,a=e.containerRef,i=ye(e,Xp),o=el((0,pe.useState)(!1),2),l=o[0],s=o[1];(0,pe.useEffect)((function(){s(!0)}),[]);var c=fe().createElement(lc,{shouldHide:!t,onOpen:r,onCloseComplete:n,"data-ppui":"true"},(function(e){return fe().createElement(Yp,ge({},e,i,{"data-ppui":"true"}))})),u=a&&a.current;return l&&(u?ic().createPortal(c,u):c)},Zp=["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 Jp(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 ef(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jp(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var tf=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?Ze("selectionMenu_"):c,d=e.initialItemFocus,p=void 0===d||d,f=e.isOpen,m=e.ignoreKeyboard,h=e.mobileTitle,g=e.mobileHeaderContents,y=e.outsideClickCheck,b=e.onOpen,v=e.onClose,k=e.onSelection,x=e.options,w=e.returnFocusToTrigger,_=void 0===w||w,S=e.selectedIndex,C=void 0===S?0:S,E=e.activeItem,$=void 0===E?-1:E,A=e.triggerElementId,T=e.triggerElementRef,O=e.rtl,z=void 0!==O&&O,F=e.isLoadingOptions,P=void 0!==F&&F,R=e.searchEnabled,L=void 0!==R&&R,N=e.mobileFixedHeight,I=e.hasSections,M=void 0!==I&&I,H=e.highlightText,j=void 0===H?null:H,B=e.isTextHighlighted,D=void 0!==B&&B,V=ye(e,Zp),W=(0,pe.useRef)(),U=(0,pe.useRef)(),G=(0,pe.useRef)(),q=(0,pe.useRef)(""),K=x&&x.length>0,Y=function(e){var t=el(fe().useState(e),2),r=t[0],n=t[1],a=fe().useRef(r);return[a,function(e){a.current=e,n(e)}]}(p?C:-1),X=el(Y,2),Q=X[0],Z=X[1],J=el((0,pe.useState)(!0),2),ee=J[0],te=J[1],re=qe(es),ne=qe("67.5rem"),ae=qe(Se),ie=!!Ie()&&window.innerWidth<ae,oe=function(e){return e&&e.current?e.current:null},le=oe(T)||(A&&Me()?document.getElementById(A):null),se=function(e){return e.reduce((function(e,t){return(null==t?void 0:t.suggestions)&&e.push.apply(e,Jo(t.suggestions)),e}),[])},ce=function(e){var t=oe(W),r=null==le?void 0:le.contains(e.target);y&&!y(e)||r||t&&!t.contains(e.target)&&v(e,"backdropClick")},ue=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}))}(M?se(x):x,r.dataset.value);Z(n),k(n,e)},de=function(e){!function(e){e.preventDefault();var r=Q.current,n=new Je(e.key||e.keyCode),a=M?se(x):x;if(n.IS_ARROW_UP)te(!0),r>0&&Z(Xl(a,r,"previous"));else if(n.IS_ARROW_DOWN)te(!0),r<a.length-1&&Z(Xl(a,r,"next"));else if(n.IS_ENTER)k(r,e);else if(n.IS_TAB||n.IS_ESC){var i=n.IS_TAB?Je.NAME_TAB:Je.NAME_ESC;"function"!=typeof v||ie||v(e,i),null==le||le.focus()}else if(L&&1===e.key.length){clearTimeout(t),q.current=q.current+e.key,t=setTimeout((function(){q.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())}))}(x,q.current);o>=0&&(te(!0),Z(o))}}(e)},me=function(e){if(void 0!==e)return e;if(void 0!==C&&C>=0)if(M){var t=se(x);if(t&&t[C]&&void 0!==t[C].value)return t[C].value}else if(x&&x[C]&&void 0!==x[C].value)return x[C].value}(r),he=m?-1:Q.current,be=function(){return f&&K?(arguments.length>0&&void 0!==arguments[0]?arguments[0]:x).map((function(e,t){var r=e.hasOwnProperty("value")?e.value:e.label,n=!e.unselectable&&(void 0===me?C===t:r===me);return ef(ef({},e),{},Pe(Pe({decoration:e.decoration?{thumbnail:e.decoration,align:"center"}:null,trailingContent:{align:"center"},className:i,onClick:ue,role:"option",isSelected:n},"data-value",r),"value",r))})):[]},ve=f&&K?x.map((function(e){return{title:e.title,id:e.id,sectionItems:be(e.suggestions)}})):[];(0,pe.useLayoutEffect)((function(){return f&&!ie&&function(){var e=null==le?void 0:le.getBoundingClientRect().width;if(P)oe(G).style.width="".concat(e||ne,"px");else{var t=oe(U);if(!t)return;var r=t.getBoundingClientRect().width;e>re&&e>r&&(t.style.width="".concat(e,"px"))}}(),f&&K&&(document.addEventListener("click",ce),m||document.body.addEventListener("keydown",de),ie?te(!1):(te(p),he<0&&Z(0)),"function"==typeof b&&b(ie)),function(){document.removeEventListener("click",ce),m||document.body.removeEventListener("keydown",de),te(!1)}}),[f,P]);var ke=z?"rtl":null,xe=M?ve:be(x),we=xe&&fe().createElement(Jl,ge({className:Ke(rs,n),id:u,tabIndex:0,"aria-hidden":!f,hasSections:!!M,ref:U,dir:ke,options:xe,activeIndex:$,focusedIndex:he,focusActive:!ie&&ee,highlightText:j,isTextHighlighted:D},V,{"data-ppui":"true"})),_e=P?fe().createElement("div",{ref:G,className:ns,"data-ppui":"true"},fe().createElement(hs,{screenReaderText:"loading",size:"md","data-ppui":"true"})):we;return function(){if(ie){var e=g?"90":void 0;return fe().createElement(Qp,{isOpen:f,onCloseComplete:v,title:h,headerClassName:o,headerContents:g,noPadding:!0,noCloseButton:!1,mobileFixedHeight:N||e,className:l,wrapperClassName:s,returnFocusToTrigger:_,"data-ppui":"true"},_e)}return f&&fe().createElement("div",{ref:W,className:Ke(ts,a),"data-ppui-info":"selection-menu_4.1.4__8.12.0"},_e)}()};me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-combobox");const rf=(0,he.style)({position:"relative"},"combobox_base"),nf=(0,he.style)({top:be.size.field.lg},"combobox_menu"),af=(0,he.style)({cursor:"pointer"},"combobox_affordance_trigger"),of=(0,he.style)({opacity:0,position:"absolute",pointerEvents:"none",width:0,height:0},"combobox_hidden_select");me.endFileScope();var lf=["name","options","value","text","id","dir","label","onOpen","onChange","onBlur","onTextChange","onFocus","getMenuOptions","placeholder","isLoadingOptions","emptyMessage","mobileTitle","sheetWrapperClassName","autoComplete","hasSections","isTextHightlighted","isTextHighlighted","sheetInputRef"];function sf(){sf=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:C(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",m="completed",h={};function g(){}function y(){}function b(){}var v={};c(v,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(O([])));x&&x!==r&&n.call(x,o)&&(v=x);var w=b.prototype=g.prototype=Object.create(v);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"==ze(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 C(t,r,n){var a=p;return function(i,o){if(a===f)throw Error("Generator is already running");if(a===m){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=E(l,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,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?m:"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function E(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,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;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,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}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(ze(t)+" is not iterable")}return y.prototype=b,a(w,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,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,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),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()}))},_(w),c(w,s,"Generator"),c(w,o,(function(){return this})),c(w,"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,h):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),h},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),h}},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),h}},t}function cf(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 uf=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},df=function(e){var t;return null!==(t=e.value)&&void 0!==t?t:e.label},pf=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?cf(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cf(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(df(e)))})):n.hasOwnProperty("id")||(n.id="".concat(t,"__").concat(df(r))),e.push(n),e}),[])},ff=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()},function(e){return Object.entries(e).reduce((function(e,t){var r=el(t,2),n=r[0],a=r[1];return e[n]=a,e}),{})}(e))})):[]};(0,pe.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,m=e.onBlur,h=e.onTextChange,g=e.onFocus,y=void 0===g?null:g,b=e.getMenuOptions,v=void 0===b?uf:b,k=e.placeholder,x=e.isLoadingOptions,w=e.emptyMessage,_=void 0===w?"No results. Try something else or check for errors.":w,S=e.mobileTitle,C=void 0===S?d:S,E=e.sheetWrapperClassName,$=e.autoComplete,A=e.hasSections,T=void 0!==A&&A,O=e.isTextHightlighted,z=void 0!==O&&O,F=e.isTextHighlighted,P=void 0!==F&&F,R=e.sheetInputRef,L=ye(e,lf),N=el((0,pe.useState)(!1),2),I=N[0],M=N[1],H=el((0,pe.useState)(-1),2),j=H[0],B=H[1],D=el((0,pe.useState)(""),2),V=D[0],W=D[1],U=el((0,pe.useState)(i),2),G=U[0],q=U[1],K=el((0,pe.useState)(l),2),Y=K[0],X=K[1],Q=el((0,pe.useState)(!1),2),Z=Q[0],J=Q[1],ee=el((0,pe.useState)(!1),2),te=ee[0],re=ee[1],ne=el((0,pe.useState)(x),2),ae=ne[0],ie=ne[1],oe=(0,pe.useRef)(),le=R||oe,se=(0,pe.useRef)(),ce=function(e){return e.reduce((function(e,t){return t.suggestions&&e.push.apply(e,Jo(t.suggestions)),e}),[])},ue=function(e,t){if(!(""===t||e&&i))return t;var r=T?ce(i):i,n=null==r?void 0:r.find((function(t){return e===df(t)}));return n?n.label:e},de=ue(l,s),me=el((0,pe.useState)(de||""),2),he=me[0],be=me[1],ve=el((0,pe.useState)(de||""),2),ke=ve[0],xe=ve[1],we=el((0,pe.useState)(""),2),_e=we[0],Se=we[1],Ce=null!=c?c:Ze("Combobox_"),Ee="combo_txt_".concat(Ce),$e="combo_menu_".concat(Ce),Ae=function(){var e,t=(e=sf().mark((function e(t){var r,n,o,l,s;return sf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=v===uf)||ie(!0),re(!1),!T){e.next=18;break}return n=rt(i),e.t0=pf,e.next=8,v(n,t,T);case 8:e.t1=e.sent,e.t2=a,e.t3=T,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}]}),re(!0),xe("")),q(n),e.next=26;break;case 18:return e.t4=pf,e.next=21,v(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}],re(!0),xe("")),q(s);case 26:B(-1),W(""),r||ie(!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){Xo(i,n,a,o,l,"next",e)}function l(e){Xo(i,n,a,o,l,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}(),Te=function(e){"function"==typeof f&&f({target:{name:a,value:e}})},Oe=function(e){M(e),J(e)},ze=function(){x||(Ae(""),Se("")),Oe(!0),se.current&&se.current.select()},Fe=function(e){"function"==typeof h&&h(e),Se(e.target.value),be(e.target.value),Ae(e.target.value),xe(""),X("")},Pe=function(){Oe(!1),W("")},Re=function(e){r=e;var t=(T?ce(G):G)[e];t&&!t.unselectable&&(xe(t.value||t.label),be(t.label),X(df(t)),Se(t.label),Te(df(t)),Oe(!1))},Le=function(){return!j||j<0?"":(T?ce(G):G)[j].id},Ne=function(e){var t=e.key||e.keyCode,r=new Je(t),n=T?ce(G):G;r.IS_ARROW_UP?B(Xl(n,j,"previous")):r.IS_ARROW_DOWN?I?B(Xl(n,j,"next")):ze():r.IS_ENTER||"Unidentified"===t?(e.preventDefault(),I?Re(j):ze()):(r.IS_TAB||r.IS_ESC)&&Pe()},Ie=V?null:k,Me="sheet_t_".concat(a),He=I?Ti:$i,je=fe().createElement(He,{onClick:function(e){e.stopPropagation(),I?Oe(!1):(J(!0),ze())},size:"sm","aria-hidden":"true","data-testid":"combo-affordance",color:"BackgroundMediumContrast",className:af,"data-ppui":"true"});(0,pe.useEffect)((function(){X(l),be(ue(l,""));var e=T?ce(G):G,t=null==e?void 0:e.find((function(e){return l===df(e)}));t&&(t.hasOwnProperty("value")?xe(t.value):xe(t.label))}),[l]),(0,pe.useEffect)((function(){ie(x)}),[x]),(0,pe.useEffect)((function(){s&&be(s)}),[s]);var Be=function(e){return e&&e.current?e.current:null};(0,pe.useEffect)((function(){if(!x&&I){var e=Be(le);e&&e.focus()}i&&i.length&&(q(i),be(ue(l,he)))}),[x,i]);var De={role:"combobox",autoComplete:null!=$?$:"new-password","aria-expanded":I,"aria-haspopup":!0,"aria-controls":$e,"aria-activedescendant":Le(),value:he,placeholder:V?" ":k,placemat:V,inputRef:se},Ve=!te&&(z||P),We=T?ce(G):G,Ue=!0;return null==We||We.map((function(e){""===(null==e?void 0:e.value)&&(Ue=!1)})),fe().createElement("div",{dir:u,className:rf,"data-ppui-info":"combobox_4.1.4__8.12.0"},fe().createElement("select",{className:of,name:a,"aria-hidden":"true",id:"hiddenSelect_".concat(a),tabIndex:-1,role:"hiddenSelect_".concat(a),onChange:function(e){return Re(e.target.selectedIndex-1)},value:ke,"data-ppui":"true"},Ue&&fe().createElement("option",{role:"hiddenSelect_option",value:"","data-ppui":"true"},d),(null==We?void 0:We.length)&&We.map((function(e,t){return fe().createElement("option",{key:t,value:e.value,role:"hiddenSelect_option","data-ppui":"true"},e.label)}))),fe().createElement(Yo,ge({name:"combo_t_".concat(a),label:d,id:Ee,rightIcon:je,setFocus:Z},L,De,{onChange:function(e){"function"==typeof h&&h(e),be(e.target.value),""===e.target.value&&xe(""),Ae(e.target.value),X(""),I||Oe(!0)},onClick:function(){I||ze()},onKeyDown:Ne,onFocus:function(e){var t=Be(le);y&&!t&&y(e)},onBlur:function(){if(!le.current){var e=Y?ue(Y,""):Y;if(!he&&Y)X(""),Te("");else if(e.toLowerCase()!==he.toLowerCase()){var t=G.find((function(e){var t,r;return(null==e||null===(t=e.label)||void 0===t?void 0:t.toLowerCase())===he.toLowerCase()||(null==e||null===(r=e.value)||void 0===r?void 0:r.toLowerCase())===he.toLowerCase()}));if(t){var r=G.indexOf(t);Re(r),be(t.label)}else X(""),Te(""),be("")}m&&m({target:{name:a,textValue:he,value:Y}})}},"data-reactcombo":!0,ref:t,"data-ppui":"true"})),fe().createElement(tf,{name:"combo_m_".concat(a),value:Y,id:$e,isLoadingOptions:ae,initialItemFocus:!1,ignoreKeyboard:!0,isOpen:I,mobileTitle:C,mobileHeaderContents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ltr";return fe().createElement("div",{dir:e,"data-ppui":"true"},fe().createElement(Yo,{name:Me,ref:le,label:d,value:_e,placeholder:Ie,placemat:V,onChange:Fe,onKeyDown:function(e){return Ne(e)},autoComplete:"off",role:"combobox","aria-controls":$e,"aria-activedescendant":Le(),"data-ppui":"true"}))}(u),outsideClickCheck:function(e){return e.target.id!==Ee},onOpen:p,onClose:Pe,selectedIndex:r,onSelection:Re,activeItem:j,triggerElementRef:se,options:ff(G,T),containerClassName:nf,sheetWrapperClassName:E,hasSections:T,highlightText:he,isTextHighlighted:Ve,"data-ppui":"true"}))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-grid");const mf="0.75rem",hf={xs:`(min-width: ${we})`,sm:`(min-width: ${_e})`,md:`(min-width: ${Se})`,lg:`(min-width: ${Ce})`,xl:`(min-width: ${Ee})`,xxl:`(min-width: ${$e})`},gf=(e,t)=>(0,he.style)({"@media":{[hf[e]]:{msFlex:`0 0 ${t/12*100}%`,flex:`0 0 ${t/12*100}%`,maxWidth:t/12*100+"%"}}},`grid-col-${e}-${t}`),yf=(e,t)=>(0,he.style)({"@media":{[hf[e]]:{marginLeft:t/12*100+"%"}}},`grid-col-offset-${e}-${t}`),bf=(e,t)=>(0,he.style)({"@media":{[hf[e]]:{order:t}}},`grid-col-order-${e}-${-1===t?"first":13===t?"last":t}`),vf=(e,t)=>(0,he.style)({"@media":{[hf[e]]:{display:`${t} !important`}}},`grid-col-display-${e}-${t}`),kf=(e,t,r)=>(0,he.style)({"@media":{[hf[e]]:{justifyContent:r}}},`grid-row-justify-content-${e}-${t}`),xf=(e,t,r)=>(0,he.style)({"@media":{[hf[e]]:{alignSelf:r}}},`grid-row-align-self-${e}-${t}`),wf=(e,t,r)=>(0,he.style)({"@media":{[hf[e]]:{alignContent:r}}},`grid-row-align-content-${e}-${t}`),_f=(e,t,r)=>(0,he.style)({"@media":{[hf[e]]:{alignItems:r}}},`grid-row-align-items-${e}-${t}`),Sf=(e,t)=>(0,he.style)({"@media":{[hf[e]]:{msFlexDirection:t,flexDirection:t}}},`grid-row-flex-${e}-${t}`),Cf=e=>(0,he.style)({msFlex:`0 0 ${e/12*100}%`,flex:`0 0 ${e/12*100}%`,maxWidth:e/12*100+"%"},`grid-col-${e}`),Ef={paddingTop:be.space[100],paddingBottom:be.space[100]},$f={position:"relative",width:"100%",minHeight:"1px",paddingRight:mf,paddingLeft:mf},Af=((0,he.style)({marginLeft:"8.333333333333332%"},"grid-col-offset-1"),(0,he.style)({marginLeft:"16.666666666666664%"},"grid-col-offset-2"),(0,he.style)({marginLeft:"25%"},"grid-col-offset-3"),(0,he.style)({marginLeft:"33.33333333333333%"},"grid-col-offset-4"),(0,he.style)({marginLeft:"41.66666666666667%"},"grid-col-offset-5"),(0,he.style)({marginLeft:"50%"},"grid-col-offset-6"),(0,he.style)({marginLeft:"58.333333333333336%"},"grid-col-offset-7"),(0,he.style)({marginLeft:"66.66666666666666%"},"grid-col-offset-8"),(0,he.style)({marginLeft:"75%"},"grid-col-offset-9"),(0,he.style)({marginLeft:"83.33333333333334%"},"grid-col-offset-10"),(0,he.style)({marginLeft:"91.66666666666666%"},"grid-col-offset-11"),(0,he.style)({marginLeft:"100%"},"grid-col-offset-12"),yf("xs",1),yf("xs",2),yf("xs",3),yf("xs",4),yf("xs",5),yf("xs",6),yf("xs",7),yf("xs",8),yf("xs",9),yf("xs",10),yf("xs",11),yf("xs",12),yf("sm",1),yf("sm",2),yf("sm",3),yf("sm",4),yf("sm",5),yf("sm",6),yf("sm",7),yf("sm",8),yf("sm",9),yf("sm",10),yf("sm",11),yf("sm",12),yf("md",1),yf("md",2),yf("md",3),yf("md",4),yf("md",5),yf("md",6),yf("md",7),yf("md",8),yf("md",9),yf("md",10),yf("md",11),yf("md",12),yf("lg",1),yf("lg",2),yf("lg",3),yf("lg",4),yf("lg",5),yf("lg",6),yf("lg",7),yf("lg",8),yf("lg",9),yf("lg",10),yf("lg",11),yf("lg",12),yf("xl",1),yf("xl",2),yf("xl",3),yf("xl",4),yf("xl",5),yf("xl",6),yf("xl",7),yf("xl",8),yf("xl",9),yf("xl",10),yf("xl",11),yf("xl",12),yf("xxl",1),yf("xxl",2),yf("xxl",3),yf("xxl",4),yf("xxl",5),yf("xxl",6),yf("xxl",7),yf("xxl",8),yf("xxl",9),yf("xxl",10),yf("xxl",11),yf("xxl",12),(0,he.style)({order:1},"grid-col-order-1"),(0,he.style)({order:2},"grid-col-order-2"),(0,he.style)({order:3},"grid-col-order-3"),(0,he.style)({order:4},"grid-col-order-4"),(0,he.style)({order:5},"grid-col-order-5"),(0,he.style)({order:6},"grid-col-order-6"),(0,he.style)({order:7},"grid-col-order-7"),(0,he.style)({order:8},"grid-col-order-8"),(0,he.style)({order:9},"grid-col-order-9"),(0,he.style)({order:10},"grid-col-order-10"),(0,he.style)({order:11},"grid-col-order-11"),(0,he.style)({order:12},"grid-col-order-12"),(0,he.style)({order:13},"grid-col-order-last"),(0,he.style)({order:-1},"grid-col-order-first"),bf("xs",1),bf("xs",2),bf("xs",3),bf("xs",4),bf("xs",5),bf("xs",6),bf("xs",7),bf("xs",8),bf("xs",9),bf("xs",10),bf("xs",11),bf("xs",12),bf("xs",13),bf("xs",-1),bf("sm",1),bf("sm",2),bf("sm",3),bf("sm",4),bf("sm",5),bf("sm",6),bf("sm",7),bf("sm",8),bf("sm",9),bf("sm",10),bf("sm",11),bf("sm",12),bf("sm",13),bf("sm",-1),bf("md",1),bf("md",2),bf("md",3),bf("md",4),bf("md",5),bf("md",6),bf("md",7),bf("md",8),bf("md",9),bf("md",10),bf("md",11),bf("md",12),bf("md",13),bf("md",-1),bf("lg",1),bf("lg",2),bf("lg",3),bf("lg",4),bf("lg",5),bf("lg",6),bf("lg",7),bf("lg",8),bf("lg",9),bf("lg",10),bf("lg",11),bf("lg",12),bf("lg",13),bf("lg",-1),bf("xl",1),bf("xl",2),bf("xl",3),bf("xl",4),bf("xl",5),bf("xl",6),bf("xl",7),bf("xl",8),bf("xl",9),bf("xl",10),bf("xl",11),bf("xl",12),bf("xl",13),bf("xl",-1),bf("xxl",1),bf("xxl",2),bf("xxl",3),bf("xxl",4),bf("xxl",5),bf("xxl",6),bf("xxl",7),bf("xxl",8),bf("xxl",9),bf("xxl",10),bf("xxl",11),bf("xxl",12),bf("xxl",13),bf("xxl",-1),(0,he.style)({justifyContent:"flex-start !important"},"grid-justify-content-start"),(0,he.style)({justifyContent:"flex-end !important"},"grid-justify-content-end"),(0,he.style)({justifyContent:"center !important"},"grid-justify-content-center"),(0,he.style)({justifyContent:"space-between !important"},"grid-justify-content-between"),(0,he.style)({justifyContent:"space-around !important"},"grid-justify-content-around"),kf("xs","start","flex-start"),kf("xs","end","flex-end"),kf("xs","center","center"),kf("xs","between","space-between"),kf("xs","around","space-around"),kf("sm","start","flex-start"),kf("sm","end","flex-end"),kf("sm","center","center"),kf("sm","between","space-between"),kf("sm","around","space-around"),kf("md","start","flex-start"),kf("md","end","flex-end"),kf("md","center","center"),kf("md","between","space-between"),kf("md","around","space-around"),kf("lg","start","flex-start"),kf("lg","end","flex-end"),kf("lg","center","center"),kf("lg","between","space-between"),kf("lg","around","space-around"),kf("xl","start","flex-start"),kf("xl","end","flex-end"),kf("xl","center","center"),kf("xl","between","space-between"),kf("xl","around","space-around"),kf("xxl","start","flex-start"),kf("xxl","end","flex-end"),kf("xxl","center","center"),kf("xxl","between","space-between"),kf("xxl","around","space-around"),(0,he.style)({alignSelf:"auto !important"},"grid-align-self-auto"),(0,he.style)({alignSelf:"flex-start !important"},"grid-align-self-start"),(0,he.style)({alignSelf:"flex-end !important"},"grid-align-self-end"),(0,he.style)({alignSelf:"center !important"},"grid-align-self-center"),(0,he.style)({alignSelf:"baseline !important"},"grid-align-self-baseline"),(0,he.style)({alignSelf:"stretch !important"},"grid-align-self-stretch"),xf("xs","auto","auto"),xf("xs","start","flex-start"),xf("xs","end","flex-end"),xf("xs","center","center"),xf("xs","baseline","baseline"),xf("xs","stretch","stretch"),xf("sm","auto","auto"),xf("sm","start","flex-start"),xf("sm","end","flex-end"),xf("sm","center","center"),xf("sm","baseline","baseline"),xf("sm","stretch","stretch"),xf("md","auto","auto"),xf("md","start","flex-start"),xf("md","end","flex-end"),xf("md","center","center"),xf("md","baseline","baseline"),xf("md","stretch","stretch"),xf("lg","auto","auto"),xf("lg","start","flex-start"),xf("lg","end","flex-end"),xf("lg","center","center"),xf("lg","baseline","baseline"),xf("lg","stretch","stretch"),xf("xl","auto","auto"),xf("xl","start","flex-start"),xf("xl","end","flex-end"),xf("xl","center","center"),xf("xl","baseline","baseline"),xf("xl","stretch","stretch"),xf("xxl","auto","auto"),xf("xxl","start","flex-start"),xf("xxl","end","flex-end"),xf("xxl","center","center"),xf("xxl","baseline","baseline"),xf("xxl","stretch","stretch"),(0,he.style)({alignItems:"flex-start !important"},"grid-align-items-start"),(0,he.style)({alignItems:"flex-end !important"},"grid-align-items-end"),(0,he.style)({alignItems:"center !important"},"grid-align-items-center"),(0,he.style)({alignItems:"baseline !important"},"grid-align-items-baseline"),(0,he.style)({alignItems:"stretch !important"},"grid-align-items-stretch"),_f("xs","start","flex-start"),_f("xs","end","flex-end"),_f("xs","center","center"),_f("xs","baseline","baseline"),_f("xs","stretch","stretch"),_f("sm","start","flex-start"),_f("sm","end","flex-end"),_f("sm","center","center"),_f("sm","baseline","baseline"),_f("sm","stretch","stretch"),_f("md","start","flex-start"),_f("md","end","flex-end"),_f("md","center","center"),_f("md","baseline","baseline"),_f("md","stretch","stretch"),_f("lg","start","flex-start"),_f("lg","end","flex-end"),_f("lg","center","center"),_f("lg","baseline","baseline"),_f("lg","stretch","stretch"),_f("xl","start","flex-start"),_f("xl","end","flex-end"),_f("xl","center","center"),_f("xl","start","baseline"),_f("xl","stretch","stretch"),_f("xxl","start","flex-start"),_f("xxl","end","flex-end"),_f("xxl","center","center"),_f("xxl","baseline","baseline"),_f("xxl","stretch","stretch"),(0,he.style)({alignContent:"flex-start !important"},"grid-align-content-start"),(0,he.style)({alignContent:"flex-end"},"grid-align-content-end"),(0,he.style)({alignContent:"center !important"},"grid-align-content-center"),(0,he.style)({alignContent:"space-between !important"},"grid-align-content-between"),(0,he.style)({alignContent:"space-around !important"},"grid-align-content-around"),(0,he.style)({alignContent:"stretch !important"},"grid-align-content-stretch"),wf("xs","start","flex-start"),wf("xs","end","flex-end"),wf("xs","center","center"),wf("xs","between","space-between"),wf("xs","around","space-around"),wf("xs","stretch","stretch"),wf("sm","start","flex-start"),wf("sm","end","flex-end"),wf("sm","center","center"),wf("sm","between","space-between"),wf("sm","around","space-around"),wf("sm","stretch","stretch"),wf("md","start","flex-start"),wf("md","end","flex-end"),wf("md","center","center"),wf("md","between","space-between"),wf("md","around","space-around"),wf("md","stretch","stretch"),wf("lg","start","flex-start"),wf("lg","end","flex-end"),wf("lg","center","center"),wf("lg","between","space-between"),wf("lg","around","space-around"),wf("lg","stretch","stretch"),wf("xl","start","flex-start"),wf("xl","end","flex-end"),wf("xl","center","center"),wf("xl","between","space-between"),wf("xl","around","space-around"),wf("xl","stretch","stretch"),wf("xxl","start","flex-start"),wf("xxl","end","flex-end"),wf("xxl","center","center"),wf("xxl","between","space-between"),wf("xxl","around","space-around"),wf("xxl","stretch","stretch"),(0,he.style)({display:"none !important"},"grid-display-none"),(0,he.style)({display:"inline !important"},"grid-display-inline"),(0,he.style)({display:"inline-block !important"},"grid-display-inline-block"),(0,he.style)({display:"block !important"},"grid-display-block"),(0,he.style)({display:"table !important"},"grid-display-table"),(0,he.style)({display:"table-row !important"},"grid-display-table-row"),(0,he.style)({display:"table-cell !important"},"grid-display-table-cell"),(0,he.style)({display:"flex !important "},"grid-display-flex"),vf("xs","none"),vf("xs","inline"),vf("xs","inline-block"),vf("xs","block"),vf("xs","table"),vf("xs","table-row"),vf("xs","table-cell"),vf("xs","flex"),vf("sm","none"),vf("sm","inline"),vf("sm","inline-block"),vf("sm","block"),vf("sm","table"),vf("sm","table-row"),vf("sm","table-cell"),vf("sm","flex"),vf("md","none"),vf("md","inline"),vf("md","inline-block"),vf("md","block"),vf("md","table"),vf("md","table-row"),vf("md","table-cell"),vf("md","flex"),vf("lg","none"),vf("lg","inline"),vf("lg","inline-block"),vf("lg","block"),vf("lg","table"),vf("lg","table-row"),vf("lg","table-cell"),vf("lg","flex"),vf("xl","none"),vf("xl","inline"),vf("xl","inline-block"),vf("xl","block"),vf("xl","table"),vf("xl","table-row"),vf("xl","table-cell"),vf("xl","flex"),vf("xxl","none"),vf("xxl","inline"),vf("xxl","inline-block"),vf("xxl","block"),vf("xxl","table"),vf("xxl","table-row"),vf("xxl","table-cell"),vf("xxl","flex"),(0,he.style)({msFlexDirection:"row",flexDirection:"row"},"grid-flex-row"),(0,he.style)({msFlexDirection:"column",flexDirection:"column"},"grid-flex-column"),(0,he.style)({msFlexDirection:"row-reverse",flexDirection:"row-reverse"},"grid-flex-row-reverse"),(0,he.style)({msFlexDirection:"column-reverse",flexDirection:"column-reverse"},"grid-flex-column-reverse"),(0,he.style)({flexWrap:"wrap-reverse"},"grid-flex-wrap-reverse"),(0,he.style)({msFlex:"1 1 auto",flex:"1 1 auto"},"grid-flex-fill"),(0,he.style)({msFlexPositive:"0",flexGrow:"0"},"grid-flex-grow-0"),(0,he.style)({msFlexPositive:"1",flexGrow:"1"},"grid-flex-grow-1"),(0,he.style)({flexShrink:"0"},"grid-flex-shrink-0"),(0,he.style)({flexShrink:"1"},"grid-flex-shrink-1"),Sf("xs","row"),Sf("xs","column"),Sf("xs","row-reverse"),Sf("xs","column-reverse"),Sf("xs","wrap-reverse"),Sf("xs","fill"),Sf("xs","grow-0"),Sf("xs","grow-1"),Sf("xs","shrink-0"),Sf("xs","shrink-1"),Sf("sm","row"),Sf("sm","column"),Sf("sm","row-reverse"),Sf("sm","column-reverse"),Sf("sm","wrap-reverse"),Sf("sm","fill"),Sf("sm","grow-0"),Sf("sm","grow-1"),Sf("sm","shrink-0"),Sf("sm","shrink-1"),Sf("md","row"),Sf("md","column"),Sf("md","row-reverse"),Sf("md","column-reverse"),Sf("md","wrap-reverse"),Sf("md","fill"),Sf("md","grow-0"),Sf("md","grow-1"),Sf("md","shrink-0"),Sf("md","shrink-1"),Sf("lg","row"),Sf("lg","column"),Sf("lg","row-reverse"),Sf("lg","column-reverse"),Sf("lg","wrap-reverse"),Sf("lg","fill"),Sf("lg","grow-0"),Sf("lg","grow-1"),Sf("lg","shrink-0"),Sf("lg","shrink-1"),Sf("xl","row"),Sf("xl","column"),Sf("xl","row-reverse"),Sf("xl","column-reverse"),Sf("xl","wrap-reverse"),Sf("xl","fill"),Sf("xl","grow-0"),Sf("xl","grow-1"),Sf("xl","shrink-0"),Sf("xl","shrink-1"),Sf("xxl","row"),Sf("xxl","column"),Sf("xxl","row-reverse"),Sf("xxl","column-reverse"),Sf("xxl","wrap-reverse"),Sf("xxl","fill"),Sf("xxl","grow-0"),Sf("xxl","grow-1"),Sf("xxl","shrink-0"),Sf("xxl","shrink-1"),(0,he.style)({width:"100%",paddingRight:be.space[200],paddingLeft:be.space[200],marginRight:"auto",marginLeft:"auto"},"grid-container_fluid"),(0,he.style)({width:"100%",paddingRight:0,paddingLeft:0,marginRight:"auto",marginLeft:"auto"},"grid-container_form"),(0,he.style)({width:"100%",paddingRight:be.space[450],paddingLeft:be.space[450],marginRight:"auto",marginLeft:"auto",maxWidth:$e,"@media":{[`(min-width: ${Se})`]:{paddingRight:be.space[400],paddingLeft:be.space[400],maxWidth:$e},[`(min-width: ${$e})`]:{paddingRight:be.space[600],paddingLeft:be.space[600],maxWidth:$e}}},"grid-container_xxl"),(0,he.style)({width:"100%",paddingRight:be.space[150],paddingLeft:be.space[150],marginRight:"auto",marginLeft:"auto","@media":{[`(min-width: ${_e})`]:{paddingRight:be.space[300],paddingLeft:be.space[300],maxWidth:_e},[`(min-width: ${Se})`]:{paddingRight:be.space[450],paddingLeft:be.space[450],maxWidth:Se},[`(min-width: ${Ce})`]:{paddingRight:be.space[450],paddingLeft:be.space[450],maxWidth:Ce},[`(min-width: ${Ee})`]:{paddingRight:be.space[450],paddingLeft:be.space[450],maxWidth:Ee}}},"grid-container"),(0,he.style)({display:"flex",flexWrap:"wrap",marginRight:`calc(${be.space[150]} * -1)`,marginLeft:`calc(${be.space[150]} * -1)`},"grid-row"),(0,he.style)({...$f,flexBasis:0,msFlexPositive:1,flexGrow:1,maxWidth:"100%"},"grid-col")),Tf=((0,he.style)({msFlex:"0 0 auto",flex:"0 0 auto",maxWidth:"none",width:"auto"},"grid-col-auto"),Cf(1),Cf(2),Cf(3),Cf(4),Cf(5),Cf(6),Cf(7),Cf(8),Cf(9),Cf(10),Cf(11),Cf(12),gf("xs",1),gf("xs",2),gf("xs",3),gf("xs",4),gf("xs",5),gf("xs",6),gf("xs",7),gf("xs",8),gf("xs",9),gf("xs",10),gf("xs",11),gf("xs",12),gf("sm",1),gf("sm",2),gf("sm",3),gf("sm",4),gf("sm",5),gf("sm",6),gf("sm",7),gf("sm",8),gf("sm",9),gf("sm",10),gf("sm",11),gf("sm",12),gf("md",1),gf("md",2),gf("md",3),gf("md",4),gf("md",5),gf("md",6),gf("md",7),gf("md",8),gf("md",9),gf("md",10),gf("md",11),gf("md",12),gf("lg",1),gf("lg",2),gf("lg",3),gf("lg",4),gf("lg",5),gf("lg",6),gf("lg",7),gf("lg",8),gf("lg",9),gf("lg",10),gf("lg",11),gf("lg",12),gf("xl",1),gf("xl",2),gf("xl",3),gf("xl",4),gf("xl",5),gf("xl",6),gf("xl",7),gf("xl",8),gf("xl",9),gf("xl",10),gf("xl",11),gf("xl",12),gf("xxl",1),gf("xxl",2),gf("xxl",3),gf("xxl",4),gf("xxl",5),gf("xxl",6),gf("xxl",7),gf("xxl",8),gf("xxl",9),gf("xxl",10),gf("xxl",11),gf("xxl",12),(0,he.style)({...Ef},"grid-col-form-vspace"),(0,he.style)({...$f,...Ef,msFlex:"0 0 100%",flex:"0 0 100%",maxWidth:"100%"},"grid-col-form-full"),(0,he.style)({...$f,...Ef,msFlex:"0 0 50%",flex:"0 0 50%",maxWidth:"50%"},"grid-col-form-half"),(0,he.style)({...$f,...Ef,msFlex:"0 0 75%",flex:"0 0 75%",maxWidth:"75%"},"grid-col-form-3qtr"),(0,he.style)({...$f,...Ef,msFlex:"0 0 25%",flex:"0 0 25%",maxWidth:"25%"},"grid-col-form-1qtr"),(0,he.style)({...$f,...Ef,msFlex:"0 0 auto",flex:"0 0 auto",maxWidth:"auto"},"grid-col-form-auto"),(0,he.style)({marginLeft:0,marginRight:0},"grid-no-gutters"));(0,he.globalStyle)(`${Tf} > ${Af}, ${Tf} > [class*='col-']`,{paddingLeft:0,paddingRight:0}),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-auto-suggest");const Of=`calc((2 * ${be.size.field.lg}))`,zf=(0,he.style)({position:"relative"},"auto-suggest_base"),Ff=(0,he.style)({minWidth:Of,maxWidth:be.size.media.lg,marginTop:be.space[75],padding:`${be.space[100]} 0`,overflowX:"hidden",width:"100%"},"auto-suggest_suggestion_list_container"),Pf=(0,he.style)([Ff,ml,{borderRadius:be.border.radius.lg,backgroundColor:be.color.background.surface,zIndex:Ve,outline:`${be.border.thickness.normal} solid transparent`,top:be.size.field.lg,position:"absolute"}],"auto-suggest_elevated_suggestion_list_container"),Rf=(0,he.style)({padding:`${be.space[150]} ${be.space[200]}`},"auto-suggest_content"),Lf=(0,he.style)({overflowY:"auto",maxHeight:be.size.media.sm,"@media":{[`(max-width: ${Se})`]:{maxHeight:`calc((${be.size.media.sm}))`}}},"auto-suggest_suggestion_list"),Nf=(0,he.style)({display:"flex",justifyContent:"center"},"auto-suggest_centered_content"),If=(0,he.style)({margin:`0 ${be.space[200]}`},"auto-suggest_error_message");me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-contextual-alert");const Mf=(0,he.style)([Ot,{display:"flex"}],"contextual-alert_base"),Hf=(0,he.style)({marginTop:"0.0625rem",marginRight:be.space[50],height:be.size.icon.xs,flexShrink:"0",selectors:{"[dir='rtl'] &":{marginLeft:`${be.space[50]}`,marginRight:0}}},"contextual-alert_status_icon"),jf=(0,he.style)({marginTop:be.space[25]},"contextual-alert_content_wrapper"),Bf=(0,he.style)({padding:0},"contextual-alert_no_padding");me.endFileScope();var Df=["className","type","typeIconAriaLabel","children","noPadding"],Vf=["info","success","error","warning"],Wf={info:function(e){e.svgElementRef;var t=ye(e,hi);return fe().createElement(ei,ge({"aria-label":"information icon"},t,{"data-ppui":"true"}),fe().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"},fe().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:Si,warning:function(e){e.svgElementRef;var t=ye(e,ki);return fe().createElement(ei,ge({"aria-label":"warning icon"},t,{"data-ppui":"true"}),fe().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"},fe().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:zi},Uf=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=ye(e,Df),u=Vf.includes(n)?n:"info",d=Wf[u],p=Ke(Mf,s&&Bf,t);return fe().createElement("div",ge({role:"alert",className:p,"data-ppui-info":"contextual-alert_4.1.3__8.12.0"},c),fe().createElement(d,{className:Hf,size:"xs",color:{info:"sysColorInfoContrast",success:"sysColorSuccessMain",warning:"sysColorWarningAlt",error:"sysColorErrorMain"}[u],role:"img","aria-label":i,"data-ppui":"true"}),fe().createElement("div",{className:jf,"data-ppui":"true"},o))},Gf=["suggestions","renderSuggestion","onHighlight","onSelect","className","listItemClassName","query","enableKeyboardInteraction","hasSections"];function qf(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?qf(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yf=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=ye(e,Gf),f=el((0,pe.useState)(-1),2),m=f[0],h=f[1],g=(0,pe.useRef)(-1),y=(0,pe.useRef)([]),b=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),v=function(e,t){if(h(t),g.current=t,-1!==t){var r=b[t].section?"".concat(b[t].section.id,"_").concat(b[t].value.id):b[t].value.id,n=y.current[r];n&&n.scrollIntoView&&n.scrollIntoView({behavior:"smooth",block:"nearest"})}a&&a(e,b[t].value,b[t].section)},k=function(e,t){i&&i(e,b[t].value,b[t].section)},x=function(e){if(b.length){var t=[];b.map((function(e){return t.push(e.value)}));var r=g.current,n=new Je(e.key||e.keyCode);n.IS_ARROW_UP?(e.preventDefault(),v(e,Xl(t,r,"previous"))):n.IS_ARROW_DOWN?(e.preventDefault(),v(e,Xl(t,r,"next"))):n.IS_ENTER&&(e.preventDefault(),r>=0&&k(e,r))}};(0,pe.useEffect)((function(){return h(-1),g.current=-1,r.length&&u&&document.addEventListener("keydown",x),function(){document.removeEventListener("keydown",x)}}),[r,u]);var w=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=nt(e,t);return fe().createElement(ea,{as:"span",dangerouslySetInnerHTML:{__html:r},"data-ppui":"true"})}(a,s);return Kf(Kf({},e),{},Pe(Pe(Pe(Pe({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){k(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:w(t.suggestions,e)};return e+=t.suggestions.length,r}))}return[]}():w(r);return b.length?fe().createElement(Jl,ge({className:o,tabIndex:0,hasSections:d,ref:y,options:_,activeIndex:m},p,{"data-ppui":"true"})):null},Xf=["id","value","debounceTimeout","fetchSuggestions","suggestionList","isSuggestionListInline","isLoadingSuggestions","onChange","onFocus","onKeyDown","onBlur","onClear","className","triggerComponent","suggestions","defaultSuggestionList","suggestionListFooter","suggestionListContainerClassName","suggestionListFooterClassName","suggestionListChangeMessage","suggestionListLoadingMessage","suggestionListErrorMessage","onSuggestionListClose"],Qf=function(e,t){return t?e.reduce((function(e,t){return t.suggestions&&(e+=t.suggestions.length),e}),0):e.length};(0,pe.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?fe().createElement(Yf,{suggestions:[],"data-ppui":"true"}):c,d=e.isSuggestionListInline,p=e.isLoadingSuggestions,f=e.onChange,m=e.onFocus,h=e.onKeyDown,g=e.onBlur,y=e.onClear,b=e.className,v=e.triggerComponent,k=void 0===v?Yo:v;e.suggestions;var x=e.defaultSuggestionList,w=void 0===x?fe().createElement(Yf,{suggestions:[],"data-ppui":"true"}):x,_=e.suggestionListFooter,S=e.suggestionListContainerClassName,C=e.suggestionListFooterClassName,E=e.suggestionListChangeMessage,$=e.suggestionListLoadingMessage,A=void 0===$?"Loading suggestions":$,T=e.suggestionListErrorMessage,O=e.onSuggestionListClose,z=ye(e,Xf),F=(0,pe.useRef)(),P=(0,pe.useRef)(),R=(0,pe.useRef)(),L=el((0,pe.useState)(!1),2),N=L[0],I=L[1],M=el((0,pe.useState)(""),2),H=M[0],j=M[1],B=el((0,pe.useState)(!1),2),D=B[0],V=B[1],W=t||P,U=Qf(u.props.suggestions||[],u.props.hasSections),G=Qf(w.props.suggestions||[],w.props.hasSections),q=function(e){var t=W.current,r=R.current;e.target===t||r&&r.contains(e.target)||I(!1)};(0,pe.useEffect)((function(){return function(){F.current&&clearTimeout(F.current)}}),[]),(0,pe.useEffect)((function(){return N&&!d&&document.addEventListener("click",q),function(){document.removeEventListener("click",q)}}),[N,d]);var K=function(e){O&&U&&O(e)},Y=function(e,t,r){j(r?"".concat(r.id,"_").concat(t.id):t.id),u.props.onHighlight&&u.props.onHighlight(e,t,r)},X=function(e,t,r){u.props.onSelect&&u.props.onSelect(e,t,r),d||I(!1)},Q="".concat(n,"-suggestionList"),Z=_?fe().createElement("div",{className:Ke(Rf,C),"data-ppui":"true"},_):null,J=!p&&U>0&&fe().createElement(fe().Fragment,null,fe().cloneElement(u,{id:Q,"aria-labelledby":"".concat(n,"-label"),onHighlight:Y,onSelect:X,enableKeyboardInteraction:D,className:Lf}),Z),ee=G>0&&fe().createElement(fe().Fragment,null,fe().cloneElement(w,{id:Q,"aria-labelledby":"".concat(n,"-label"),onHighlight:Y,onSelect:X,enableKeyboardInteraction:D,className:Lf}),Z),te=p?fe().createElement("div",{className:Nf,"data-ppui":"true"},fe().createElement(hs,{screenReaderText:A,size:"md","data-ppui":"true"})):null,re=null;U||p||!T||(re=(0,pe.isValidElement)(T)?T:fe().createElement(Uf,{className:If,type:"warning","data-ppui":"true"},T));var ne=d?Ff:Pf,ae=null;a&&N&&(J||te||re)?ae=fe().createElement("div",{className:Ke(ne,S),ref:R,"data-ppui":"true"},J,te,re):!a&&N&&G>0&&(ae=fe().createElement("div",{className:Ke(ne,S),ref:R,"data-ppui":"true"},ee));var ie=E||"".concat(U," suggestions available"),oe=k!==Yo?{onClear:function(e){K(e),y&&y(e)}}:{};return fe().createElement("div",{className:Ke(zf,b),"data-ppui-info":"auto-suggest_3.2.4__8.12.0"},fe().createElement(k,ge({},z,{id:n,value:a,ref:W,onChange:function(e){var t=e.target.value;F.current&&clearTimeout(F.current),F.current=setTimeout((function(){s(t)}),o),I(!0),f(e)},onFocus:function(e){(U||G)&&I(!0),s(a),V(!0),m&&m(e)},onKeyDown:function(e){var t=new Je(e.key||e.keyCode);(t.IS_ESC||t.IS_TAB)&&(d||I(!1),t.IS_ESC&&y&&y(e)),h&&h(e)},onBlur:function(e){K(e),V(!1),g&&g(e)},"aria-activedescendant":H,"aria-autocomplete":"list",role:"combobox","aria-expanded":U>0&&N,"aria-owns":Q,"aria-haspopup":"listbox"},oe,{"data-ppui":"true"})),ae,fe().createElement(ct,{role:"status","data-ppui":"true"},ie))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-address-input"),(0,he.style)({textAlign:"center"},"address-input-suggestion-list-footer"),(0,he.style)({height:"0.75rem"},"address-input-google-logo"),(0,he.style)({color:be.color.background.mediumContrast,marginTop:be.space[50]},"address-input-google-address-secondary-text"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-alert");const Zf=`calc(${be.space[100]} + ${be.size.field.sm})`,Jf=`calc(${be.space[350]} + ${be.typography.body.size})`,em=`calc(${be.space[200]} - ${be.space[25]})`,tm=`calc(${be.space[100]} - ${be.border.thickness.normal})`,rm=`calc(${be.space[200]} - ${be.border.thickness.emphasis})`,nm=((0,he.style)([St,{boxSizing:"border-box",padding:`${be.space[200]} ${Zf} ${be.space[200]}\n ${Jf}`,borderWidth:be.border.thickness.normal,borderStyle:"solid",borderRadius:be.border.radius.lg,position:"relative",textAlign:"initial",selectors:{"[dir='rtl'] &":{paddingLeft:Zf,paddingRight:Jf}}}],"alert_base"),(0,he.style)({display:"inline-block",position:"absolute",left:em,textAlign:"center",color:be.color.system.mainActive,lineHeight:be.size.icon.sm,fontSize:be.size.icon.sm,top:rm,verticalAlign:"middle",selectors:{"[dir='rtl'] &":{left:"auto",right:em}}},"alert_svg_icon"),(0,he.style)({position:"absolute",top:0,right:tm,selectors:{"[dir='rtl'] &":{left:tm,right:"auto"}}},"alert_close_btn"),(e,t)=>({border:"none",backgroundColor:e,color:t}));(0,he.style)({...nm(be.color.info.main,be.color.info.contrast),vars:De(be,"info")},"alert_info"),(0,he.style)({...nm(be.color.warning.main,be.color.warning.contrast),vars:De(be,"warning")},"alert_warning"),(0,he.style)({...nm(be.color.success.main,be.color.success.contrast),vars:De(be,"success")},"alert_success"),(0,he.style)({...nm(be.color.error.main,be.color.error.contrast),vars:De(be,"error")},"alert_error"),(0,he.style)({color:be.color.info.contrast},"info_icon"),(0,he.style)({color:be.color.warning.contrast},"warning_icon"),(0,he.style)({color:be.color.success.contrast},"success_icon"),(0,he.style)({color:be.color.error.contrast},"error_icon"),(0,he.style)({paddingRight:be.space[200],selectors:{"[dir='rtl'] &":{paddingLeft:be.space[200],paddingRight:Jf}}},"no_close_btn"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-appbadge");const am="2.5rem";(0,he.style)({lineHeight:0},"appbadge_base"),(0,he.style)({height:am,width:"7.5rem",verticalAlign:"bottom"},"appbadge_ios"),(0,he.style)({height:am,width:"8.4375rem",verticalAlign:"bottom"},"appbadge_android"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar");const im=e=>({width:e,height:e}),om=(e,t)=>({backgroundColor:e,color:t});(0,he.style)({...bt,borderRadius:be.border.radius.interactive,...im(be.size.circle.lg)},"shimmer"),(0,he.style)({...im(be.size.circle.md)},"shimmer_size_md"),(0,he.style)({...im(be.size.circle.sm)},"shimmer_size_sm"),(0,he.style)({...im(be.size.circle.xs)},"shimmer_size_xs"),(0,he.style)({...im(be.size.circle.lg),...Jt,lineHeight:be.size.circle.lg},"avatar_size_lg"),(0,he.style)({...im(be.size.circle.md),...Ct,lineHeight:be.size.circle.md},"avatar_size_md"),(0,he.style)({...im(be.size.circle.sm),...zt,lineHeight:be.size.circle.sm},"avatar_size_sm"),(0,he.style)({...im(be.size.circle.xs),...Bt,lineHeight:be.size.circle.xs},"avatar_size_xs"),(0,he.style)({borderRadius:be.border.radius.interactive,textAlign:"center",textTransform:"uppercase",display:"flex",justifyContent:"center",alignItems:"center",border:"none",...om(be.color.accent1.main,be.color.accent1.contrast),position:"relative"},"avatar_base"),(0,he.style)({...om(be.color.accent1.main,be.color.accent1.contrast)},"avatar_colorAccent1Main"),(0,he.style)({...om(be.color.accent2.main,be.color.accent2.contrast)},"avatar_colorAccent2Main"),(0,he.style)({...om(be.color.accent3.main,be.color.accent3.contrast)},"avatar_colorAccent3Main"),(0,he.style)({...om(be.color.accent4.main,be.color.accent4.contrast)},"avatar_colorAccent4Main"),(0,he.style)({...om(be.color.accent3.main,be.color.accent3.contrast)},"generic_bank"),(0,he.style)({...om(be.color.accent4.main,be.color.accent4.contrast)},"generic_causes"),(0,he.style)({...om(be.color.accent4.main,be.color.accent4.contrast)},"generic_biller"),(0,he.style)({...om(be.color.accent1.main,be.color.accent1.contrast)},"generic_merchant"),(0,he.style)({...om(be.color.accent1.main,be.color.accent1.contrast)},"generic_profile"),(0,he.style)({...om(be.color.accent2.main,be.color.accent2.contrast)},"generic_subscription"),(0,he.style)({borderRadius:"inherit",...im("inherit"),background:be.color.accent1.contrast,objectFit:"cover"},"avatar_image"),(0,he.style)({boxSizing:"border-box",position:"absolute",bottom:0,right:`calc(${be.border.thickness.normal} * -1)`},"avatar_badge"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar-button");const lm="0.0421875rem",sm=(0,he.style)({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",padding:`${be.space[150]} 0`,minHeight:"7.25rem",width:"6rem",wordWrap:"break-word",background:"none",border:"none",...zt,color:be.color.background.highContrast,":focus":{cursor:"pointer",outline:"none"},":hover":{cursor:"pointer"}},"avatar_button_base"),cm=(0,he.style)({textAlign:"center",padding:`${be.space[100]} ${be.space[100]} 0 ${be.space[100]}`,width:"inherit",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},"avatar_button_label");(0,he.globalStyle)(`${sm}:focus > span:first-of-type`,{WebkitTextStrokeWidth:lm}),(0,he.globalStyle)(`${sm}:focus > span:last-of-type`,{textDecoration:"underline"}),(0,he.globalStyle)(`${sm}:focus > div:first-of-type`,{...Fa,boxShadow:"inherit",outlineOffset:"inherit"}),(0,he.globalStyle)(`${sm}:hover > span:first-of-type`,{WebkitTextStrokeWidth:lm}),(0,he.globalStyle)(`${sm}:hover > span:last-of-type`,{textDecoration:"underline"}),me.endFileScope();var um=["className","label","children","as"];(0,pe.forwardRef)((function(e,t){var r=e.className,n=e.label,a=void 0===n?"default":n,i=e.children,o=e.as,l=ye(e,um),s=fe().cloneElement(i,{size:"lg","aria-hidden":"true"});return fe().createElement(o||"button",ge({role:"button",className:Ke(sm,r),tabIndex:0,ref:t},l,{"data-ppui":"true"}),s,fe().createElement("span",{className:cm,"data-ppui":"true"},a))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar-stack");const{ellipsisName:dm}=n,pm=((0,he.style)({display:"flex",alignItems:"center"},"avatar_stack_base"),(0,he.style)({borderRadius:be.border.radius.interactive,flexShrink:0,backgroundColor:be.color.background.main,border:`solid ${be.border.thickness.normal} ${be.color.background.surface}`,zIndex:1,selectors:{"[dir=rtl] &":{marginLeft:0}}},"avatar"));(0,he.style)([dm,{...zt,color:be.color.background.mediumContrast,marginLeft:be.space[100],marginRight:0,selectors:{"[dir=rtl] &":{marginLeft:0,marginRight:be.space[100]}}}],"avatar_label"),(0,he.globalStyle)(`${pm}:not(:first-of-type)`,{marginInlineStart:`calc(${be.space[100]} * -1)`}),(0,he.globalStyle)(`${pm} > div`,{overflow:"hidden"}),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-badge");const fm={borderStyle:"solid",borderColor:"transparent"},mm=(e,t=null)=>{const r={color:e};return t&&(r.backgroundColor=t),r},hm=(0,he.style)({maxWidth:"18rem",overflow:"hidden",wordBreak:"break-word",textTransform:"none",WebkitLineClamp:2,display:"-webkit-inline-box",WebkitBoxOrient:"vertical",height:"auto"},"badge-base"),gm=((0,he.style)([Ot,hm,{borderRadius:be.border.radius.md,borderTopWidth:be.space[100],borderBottomWidth:be.space[100],borderRightWidth:be.space[100],borderLeftWidth:be.space[100]},fm],"badge-base_large"),(0,he.style)([jt,hm,{borderRadius:be.border.radius.sm,borderTopWidth:be.space[25],borderBottomWidth:be.space[25],borderRightWidth:be.space[100],borderLeftWidth:be.space[100]},fm],"badge-base_small"),(0,he.style)({position:"relative",paddingInlineStart:`calc(${be.size.icon.xs} + ${be.space[25]})`},"badge-left_icon"),(0,he.style)({position:"absolute",insetInline:"0 auto",insetBlock:`calc(${be.border.thickness.normal} * -1)`},"badge-icon"),(0,he.style)({width:be.size.circle.xs,height:be.size.circle.xs,padding:be.border.thickness.normal,border:`${be.border.thickness.emphasis} solid ${be.color.background.surface}`,borderRadius:"50%"},"badge-icon_badge"));(0,he.style)([gm,mm(be.color.success.main,be.color.background.main)],"badge-authorized"),(0,he.style)([gm,mm(be.color.warning.alt,be.color.background.main)],"badge-inprogress"),(0,he.style)([gm,mm(be.color.error.main,be.color.background.main)],"badge-onhold"),(0,he.style)([gm,mm(be.color.specialty.main,be.color.background.main)],"badge-favorite"),(0,he.style)([Wr,mm(be.color.error.contrast,be.color.error.main),{padding:`0 ${be.space[50]}`,height:be.size.icon.xs,minWidth:be.size.icon.xs,outline:`${be.border.thickness.emphasis} solid ${be.color.background.surface}`,border:"0",borderRadius:`calc(${be.size.circle.xs}/2)`,lineHeight:be.typography.body.lineHeight,textAlign:"center",selectors:{"[dir='rtl'] &":{textAlign:"center"}}}],"badge-numeric"),(0,he.style)([mm(be.color.specialty.contrast,be.color.specialty.main),{vars:De(be,"specialty")}],"badge-high_contrast_feature"),(0,he.style)([mm(be.color.success.contrast,be.color.success.main),{vars:De(be,"success")}],"badge-high_contrast_success"),(0,he.style)([mm(be.color.warning.contrast,be.color.warning.main),{vars:De(be,"warning")}],"badge-high_contrast_warning"),(0,he.style)([mm(be.color.error.contrast,be.color.error.main),{vars:De(be,"error")}],"badge-high_contrast_critical"),(0,he.style)([mm(be.color.info.main,be.color.info.contrast),{vars:De(be,"info")}],"badge-high_contrast_neutral"),(0,he.style)([mm(be.color.overlay.contrast,be.color.overlay.main),{backdropFilter:`blur(calc(${be.blur.interactive} / 2))`,vars:De(be,"overlay")}],"badge-high_contrast_overlay"),(0,he.style)([mm(be.color.secondary.contrast,be.color.secondary.main),{vars:De(be,"secondary")}],"badge-high_contrast_highlight"),(0,he.style)([mm(be.color.specialty.medium.contrast,be.color.specialty.medium.main),{vars:De(be,"specialty")}],"badge-low_contrast_feature"),(0,he.style)([mm(be.color.success.medium.contrast,be.color.success.medium.main),{vars:De(be,"success")}],"badge-low_contrast_success"),(0,he.style)([mm(be.color.warning.medium.contrast,be.color.warning.medium.main),{vars:De(be,"warning")}],"badge-low_contrast_warning"),(0,he.style)([mm(be.color.error.medium.contrast,be.color.error.medium.main),{vars:De(be,"error")}],"badge-low_contrast_critical"),(0,he.style)([mm(be.color.info.contrast,be.color.info.main),{vars:De(be,"info")}],"badge-low_contrast_neutral"),(0,he.style)([mm(be.color.overlayInverse.contrast,be.color.overlayInverse.main),{backdropFilter:`blur(calc(${be.blur.interactive} / 2))`,vars:De(be,"overlay")}],"badge-low_contrast_overlay"),(0,he.style)([mm(be.color.tertiary.main,be.color.tertiary.contrast),{vars:De(be,"tertiary")}],"badge-low_contrast_highlight"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-banner");const ym=(0,he.style)({boxSizing:"border-box",textDecoration:"none",borderWidth:be.border.thickness.normal,padding:`${be.space[150]} ${be.space[200]}`,position:"relative",width:"100%",cursor:"pointer",display:"block",outline:`${be.border.thickness.normal} solid transparent`,":focus":Fa},"banner"),bm=((0,he.style)({selectors:{"&.critical":{backgroundColor:be.color.error.main},"&.warning":{backgroundColor:be.color.warning.main},"&.specialty":{backgroundColor:be.color.specialty.main}}},"banner-color-selector"),(0,he.style)({selectors:{"&:active.critical":{backgroundColor:be.color.error.mainActive},"&:active.warning":{backgroundColor:be.color.warning.mainActive},"&:active.specialty":{backgroundColor:be.color.specialty.mainActive}}},"banner-active-color-selector"),(0,he.style)({position:"relative",":before":{content:"",position:"absolute",margin:"0 -50vw",inset:"0 50%"}},"banner-full-width"),(0,he.style)([Zt,{textAlign:"left",maxWidth:"100%",width:"100%",display:"flex",selectors:{"&.critical":{color:be.color.error.contrast},"&.warning":{color:be.color.warning.contrast},"&.specialty":{color:be.color.specialty.contrast}}}],"banner-title-wrapper"));(0,he.globalStyle)(`${ym}[dir="rtl"] ${bm}`,{textAlign:"right"}),(0,he.style)({marginTop:be.space[50]},"banner-title");const vm=(0,he.style)({marginRight:be.space[100],marginTop:be.space[25],flexShrink:"0"},"banner-left-side-icon");(0,he.globalStyle)(`${ym}[dir="rtl"] ${vm}`,{marginLeft:be.space[100],marginRight:0});const km=(0,he.style)({marginRight:0,marginLeft:"auto",marginTop:be.space.tiny,flexShrink:"0"},"banner-right-side-icon");(0,he.globalStyle)(`${ym}[dir="rtl"] ${km}`,{marginLeft:0,marginRight:"auto",transform:"rotate(180deg)"});const xm=(0,he.style)([St,{display:"flex",padding:`0 ${be.space[400]}`,selectors:{'&[dir="rtl"]':{textAlign:"right"},"&.critical":{color:be.color.error.contrast},"&.warning":{color:be.color.warning.contrast},"&.specialty":{color:be.color.specialty.contrast}}}],"banner-sub-text");(0,he.globalStyle)(`${ym}[dir="rtl"] ${xm}`,{textAlign:"right"}),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-buttons");const{YQ:wm}=a,_m=(0,he.keyframes)({"0%":{opacity:0},"100%":{opacity:1}},"button_fade_in"),Sm={display:"inline-flex",alignItems:"center",justifyContent:"center"},Cm=e=>(0,he.style)({display:"inline-grid",gridTemplateColumns:`repeat(${e}, max-content)`,gap:be.space[200],padding:`${be.space[150]} ${be.space[200]}`},`button_group-${e}`),Em=(0,he.style)({position:"relative",borderRadius:1e3,borderStyle:"solid",borderWidth:`${be.border.thickness.normal}`,cursor:"pointer",textDecoration:"none",...Sm,transition:`color ${be.motion.duration.action} ease,\n background-color ${be.motion.duration.action} ease,\n border-color ${be.motion.duration.action} ease`,":focus":wm},"button_base"),$m=(0,he.style)({...Vr,minWidth:"6rem",padding:`calc(${be.space[150]} - ${be.border.thickness.emphasis}) calc(${be.space[400]} - ${be.border.thickness.emphasis})`,minHeight:be.size.tapTarget.default},"button_size_lg"),Am=(0,he.style)({...Br,minWidth:"3.75rem",minHeight:be.size.tapTarget.tiny,padding:`calc(${be.size.indicator.md} - ${be.border.thickness.emphasis}) calc(${be.space[200]} - ${be.border.thickness.emphasis})`},"button_size_sm"),Tm={primary:(0,he.style)({color:(0,he.fallbackVar)(Oe.background,be.color.primary.contrast),border:`${be.border.thickness.emphasis} solid ${(0,he.fallbackVar)(Oe.main,be.color.primary.main)}`,backgroundColor:(0,he.fallbackVar)(Oe.main,be.color.primary.main),":hover":{color:(0,he.fallbackVar)(Oe.hoverMain,be.color.primary.contrast),textDecoration:"none",backgroundColor:(0,he.fallbackVar)(Oe.hoverBack,be.color.primary.mainHover),borderColor:(0,he.fallbackVar)(Oe.hoverBack,be.color.primary.mainHover)},":active":{color:(0,he.fallbackVar)(Oe.activeMain,be.color.primary.contrast),outline:"none",backgroundColor:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.mainActive),borderColor:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.mainActive)},":visited":{color:(0,he.fallbackVar)(Oe.main,be.color.primary.contrast)}},"button_primary"),primaryInverse:(0,he.style)({backgroundColor:(0,he.fallbackVar)(Oe.background,be.color.primary.contrast),borderColor:(0,he.fallbackVar)(Oe.background,be.color.primary.contrast),color:(0,he.fallbackVar)(Oe.main,be.color.primary.main),":hover":{color:(0,he.fallbackVar)(Oe.hoverMain,be.color.primary.main),backgroundColor:(0,he.fallbackVar)(Oe.hoverBack,be.color.primary.contrastHover),borderColor:(0,he.fallbackVar)(Oe.hoverBack,be.color.primary.contrastHover)},":active":{color:(0,he.fallbackVar)(Oe.activeMain,be.color.primary.main),backgroundColor:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.contrastActive),borderColor:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.contrastActive)},":visited":{color:(0,he.fallbackVar)(Oe.main,be.color.primary.main)}},"button_inverse"),secondary:(0,he.style)({backgroundColor:"transparent",borderColor:(0,he.fallbackVar)(Oe.main,be.color.structure.borderLowContrast),color:(0,he.fallbackVar)(Oe.main,be.color.primary.main),":visited":{color:(0,he.fallbackVar)(Oe.main,be.color.primary.main)},":hover":{backgroundColor:(0,he.fallbackVar)(Oe.hoverBack,"transparent"),color:(0,he.fallbackVar)(Oe.hoverMain,be.color.primary.mainHover),borderColor:(0,he.fallbackVar)(Oe.hoverMain,be.color.primary.mainHover)},":active":{backgroundColor:(0,he.fallbackVar)(Oe.activeBack,"transparent"),color:(0,he.fallbackVar)(Oe.activeMain,be.color.primary.mainActive),borderColor:(0,he.fallbackVar)(Oe.activeMain,be.color.primary.mainActive)}},"button_secondary"),secondaryInverse:(0,he.style)({borderColor:(0,he.fallbackVar)(Oe.background,be.color.primary.contrast),color:(0,he.fallbackVar)(Oe.main,be.color.primary.contrast),backgroundColor:"transparent",":visited":{color:(0,he.fallbackVar)(Oe.main,be.color.primary.contrastActive)},":hover":{backgroundColor:"transparent",color:(0,he.fallbackVar)(Oe.hoverMain,be.color.primary.contrastHover),borderColor:(0,he.fallbackVar)(Oe.hoverMain,be.color.primary.contrastHover)},":active":{backgroundColor:(0,he.fallbackVar)(Oe.activeBack,be.color.primary.mainActive),color:(0,he.fallbackVar)(Oe.activeMain,be.color.primary.contrastActive),borderColor:(0,he.fallbackVar)(Oe.activeMain,be.color.primary.contrastActive)}},"button_secondary_inverse"),tertiary:(0,he.style)({color:(0,he.fallbackVar)(Oe.main,be.color.link.main),padding:0,position:"relative",cursor:"pointer",backgroundColor:"transparent",border:"none",borderRadius:be.border.radius.sm,minHeight:be.size.tapTarget.default,...Sm,":hover":{color:(0,he.fallbackVar)(Oe.hoverMain,be.color.link.mainHover),backgroundColor:(0,he.fallbackVar)(Oe.hoverBack,"transparent")},":focus":{...wm,color:(0,he.fallbackVar)(Oe.main,be.color.link.main)},":active":{color:(0,he.fallbackVar)(Oe.activeMain,be.color.link.mainActive),backgroundColor:(0,he.fallbackVar)(Oe.activeBack,"transparent")}},"button_tertiary"),overlay:(0,he.style)({backgroundColor:(0,he.fallbackVar)(Oe.background,be.color.overlayInverse.main),borderColor:(0,he.fallbackVar)(Oe.main,be.color.structure.borderLowContrast),color:(0,he.fallbackVar)(Oe.main,be.color.overlayInverse.contrast),":visited":{color:(0,he.fallbackVar)(Oe.main,be.color.primary.main)},":hover":{backgroundColor:(0,he.fallbackVar)(Oe.hoverBack,be.color.overlayInverse.mainHover)},":active":{backgroundColor:(0,he.fallbackVar)(Oe.activeBack,be.color.overlayInverse.main),color:(0,he.fallbackVar)(Oe.activeMain,be.color.primary.mainActive),borderColor:(0,he.fallbackVar)(Oe.activeMain,be.color.primary.mainActive)}},"button_overlay")},Om=(0,he.style)({...Br,color:(0,he.fallbackVar)(Oe.main,be.color.link.main)},"button_tertiary-small"),zm=(0,he.style)({marginInlineEnd:be.space[100]},"button_icon"),Fm=(0,he.style)({marginInlineStart:be.space[100],marginInlineEnd:0,verticalAlign:"top",position:"relative",pointerEvents:"none"},"button_affordance"),Pm=(0,he.style)({borderColor:be.color.success.main,backgroundColor:be.color.success.main,pointerEvents:"none"},"button_success_state"),Rm=(0,he.style)({color:"transparent",pointerEvents:"none",":hover":{color:"transparent"},":active":{color:"transparent"},":visited":{color:"transparent"}},"button_processing_state"),Lm=(0,he.style)({position:"absolute",top:0,bottom:0,left:0,right:0,borderRadius:"inherit",textAlign:"center",opacity:0,animation:`${_m} ${be.motion.duration.hover} ease-in forwards`,display:"flex",justifyContent:"center",alignItems:"center",paddingRight:0},"button_state_overlay"),Nm=(0,he.style)({backgroundColor:be.color.success.main},"button_success_state_overlay"),Im=(0,he.style)({color:be.color.primary.contrast},"button_success_state_icon"),Mm=(0,he.style)({},"button_success_state_icon_sm"),Hm=(Cm(1),Cm(2),Cm(3),(0,he.style)({"@media":{[`(max-width: ${Se})`]:{width:"100%"}}},"button_full_width")),jm=((0,he.style)({"@media":{[`(max-width: ${_e})`]:{gridTemplateColumns:"none",width:"100%"}}},"button_btnGroupFullWidth"),(0,he.style)({height:be.size.tapTarget.default,display:"inline-flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:0,":focus":{outline:"none"}},"button_small_tap_container")),Bm=(0,he.style)({cursor:"pointer"},"button-cursor_pointer");(0,he.globalStyle)(`${jm}:focus > div:first-of-type:not(${Pm}):not(${Rm})`,wm),me.endFileScope();var Dm=["isMenu","isOpen","isSmall","className"],Vm=["variant","size","inverse","secondary","tertiary","isMenu","isOpen","btnState","screenReaderText","className","children","as","iconComponent","fullWidthOnMobile"];function Wm(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 Um(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wm(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gm=["primary","secondary","overlay","tertiary"],qm=function(e){var t=e.isMenu,r=e.isOpen,n=e.isSmall,a=e.className,i=ye(e,Dm);if(!t)return null;var o=r?Ti:$i;return fe().createElement(o,ge({className:a},i,{size:n?"xs":"sm","data-ppui":"true"}))},Km=(0,pe.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,m=e.as,h=e.iconComponent,g=e.fullWidthOnMobile,y=void 0===g||g,b=ye(e,Vm),v="sm"===n,k=u&&"initial"===u,x=Um({},b);void 0!==s&&(x["aria-expanded"]=s),x["tab-index"]=0,x.disabled=!k,x.ref=t,x["data-ppui-info"]="";var w=m||"button";v&&(w="div");var _=fe().createElement(w,ge({className:function(){var e,t=v?"":p;if(r){var n=function(e){return!a||"primary"!==e&&"secondary"!==e?Gm.includes(e)?e:"primary":"".concat(e,"Inverse")}(r);e=Ke(Em,v?Am:$m,Tm[n],y&&Hm,"success"===u&&Pm,"processing"===u&&Rm,t)}else if(o)e=Ke(Tm.tertiary,v?Om:$m,t);else{var l=function(e,t){var r=e?"secondary":"primary";return t?"".concat(r,"Inverse"):r}(i,a);e=Ke(Em,v?Am:$m,Tm[l],y&&Hm,"success"===u&&Pm,"processing"===u&&Rm,t)}return e}(),id:Ze("button_")},v?{}:Um({},x),{"data-ppui":"true"}),function(){var e;k||(e=d||u);var t=Ke(Im,v&&Mm),c=fe().createElement(Ei,{className:t,size:v?"sm":"md","data-ppui":"true"}),p=null;h&&(p=fe().createElement(h,{className:zm,size:v?"xs":"sm","data-ppui":"true"}));var m,g=Ke(Lm,"success"===u&&Nm),y=k?null:fe().createElement("span",{className:g,"data-ppui":"true"},"success"===u&&c,"processing"===u&&!o&&fe().createElement(hs,ge({},(m={},"processing"!==u||(m.as="span","sm"===n&&(m.size="xs"),(r&&(a&&"secondary"===r||!a&&"primary"===r)||!r&&(i&&a||!i&&!a))&&(m.inverse=!0)),m),{"data-ppui":"true"}))),b=e?fe().createElement("span",{role:"status",className:it,"data-ppui":"true"},f," ",e):null;return fe().createElement(fe().Fragment,null,p,f,fe().createElement(qm,{isMenu:l,isOpen:s,isSmall:v,className:Fm,"data-ppui":"true"}),y,b)}());return v?fe().createElement(m||"button",ge({className:Ke(jm,"initial"===u&&Bm,p)},x,{"data-ppui":"true"}),_):_}));me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-button-menu"),(0,he.style)({position:"relative"},"button_menu_wrapper"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-card");const Ym={border:"none"},Xm=(0,he.style)({padding:be.space[300],position:"relative",textAlign:"initial",backgroundColor:be.color.background.surface,borderRadius:be.border.radius.lg,appearance:"none",":focus":Fa},"card_base"),Qm=(0,he.style)(Ym,"card_level1"),Zm=(0,he.style)(Ym,"card_level3"),Jm=(0,he.style)({cursor:"pointer",width:"100%",appearance:"none",":hover":ul,":active":{boxShadow:"none"},":focus":Fa},"card_clickable"),eh=(0,he.style)({marginBottom:be.space[300],display:"table"},"card_header"),th=(0,he.style)({width:"100%",display:"table-cell",margin:"initial",padding:`${be.space[50]} 0`,textTransform:"none",verticalAlign:"middle"},"card_title"),rh=(0,he.style)({marginTop:"0.9375rem",marginBottom:"0.9375rem"},"card_content"),nh=(0,he.style)({marginTop:be.space[300]},"card_footer");(0,he.globalStyle)(`${nh} button, a`,{margin:"initial"}),(0,he.globalStyle)(`${nh} button:not(:last-child), ${nh} a:not(:last-child)`,{marginInlineEnd:be.space[300]});const ah=(0,he.style)({minWidth:"6.6875rem",minHeight:"11rem"},"size_xxs"),ih=(0,he.style)({minWidth:"10rem",minHeight:"5rem"},"size_xs"),oh=(0,he.style)({minWidth:"20.75rem",minHeight:"5rem",borderRadius:be.border.radius.lg},"size_xs-long");me.endFileScope();var lh=["onClick","label","as","children","className","isLoading","isInverse","size","level"],sh=["className","children"],ch=["className","children"],uh=["className","children"];function dh(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 ph=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=ye(e,lh);if(l)return fe().createElement(kt,ge({isInverse:s},p,{"data-ppui":"true"}),i);var f={xxs:ah,xs:ih,"xs-long":oh},m={1:Qm,3:Zm},h=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dh(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},p);r&&(h["aria-label"]=r);var g=Ke(Xm,f[c],m[d],t&&Jm,o);return fe().createElement(a,ge({className:g,"data-ppui-info":"card_3.2.3__8.12.0",onClick:t},h),i)};ph.Header=function(e){var t=e.className,r=e.children,n=ye(e,sh),a=Ke(eh,t),i=Ke(th,t);return fe().createElement("header",ge({className:a},n,{"data-ppui":"true"}),fe().createElement(Zn,{size:"sm",className:i,"data-ppui":"true"},r))},ph.Content=function(e){var t=e.className,r=e.children,n=ye(e,ch),a=Ke(rh,t);return fe().createElement("div",ge({className:a},n,{"data-ppui":"true"}),r)},ph.Footer=function(e){var t=e.className,r=e.children,n=ye(e,uh),a=Ke(nh,t);return fe().createElement("footer",ge({className:a},n,{"data-ppui":"true"}),r)},me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-checkbox");const fh=`calc(${be.size.circle.xs} + ${be.space[150]} + ${be.space[25]})`,mh=(0,he.style)({position:"relative",textAlign:"start",marginBottom:0},"checkbox_base"),hh=((0,he.style)({display:"flex",flexDirection:"column",margin:0,padding:0,border:"none",textAlign:"start"},"checkbox_group"),(0,he.style)({padding:`${be.space[150]} 0`},"checkbox-group_base")),gh=(0,he.style)([St,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"block",paddingInlineStart:fh,position:"relative",textAlign:"start",WebkitTapHighlightColor:"transparent"}],"checkbox_label");(0,he.globalStyle)(`${gh} span:first-of-type`,{insetInlineStart:0}),(0,he.style)({...Ct,color:be.color.background.mediumContrast,padding:`0 0 ${be.space[150]} 0`,marginBottom:be.space[50],textAlign:"start"},"checkbox-group_label");const yh=(0,he.style)({position:"relative",top:"0.125rem",marginLeft:be.space[150]},"checkbox_icon_label"),bh=(0,he.style)({borderRadius:be.border.radius.xs,border:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,boxSizing:"border-box",height:be.size.circle.xs,left:0,position:"absolute",width:be.size.circle.xs,lineHeight:1.3,textAlign:"center",backgroundColor:be.color.background.surface,display:"flex",justifyContent:"center",alignItems:"center",top:0},"checkbox_checkmark_container"),vh=(0,he.style)([bh,{top:"auto"}],"checkbox_checkmark_container_decoration"),kh=(0,he.style)({fontSize:be.size.icon.xs},"checkbox_check_icon"),xh=(0,he.style)({height:be.space[25],width:"0.875rem",backgroundColor:be.color.selected.contrast,borderRadius:be.border.radius.xs},"checkbox_partial_icon"),wh=(0,he.style)({cursor:"pointer",opacity:0,position:"absolute"},"checkbox_input");(0,he.globalStyle)(`${wh}:checked + label > span > span:first-of-type`,{borderColor:be.color.selected.main,backgroundColor:be.color.selected.main,color:be.color.selected.contrast,borderRadius:be.border.radius.xs}),(0,he.globalStyle)(`${wh}:checked + label > span > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,he.globalStyle)(`${wh}:not(:checked) + label > span > span:first-of-type > span:first-of-type`,{display:"none"}),(0,he.globalStyle)(`${wh}:focus + label > span > span:first-of-type`,Oa),(0,he.globalStyle)(`${wh}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${be.border.thickness.normal} * -1)`});const _h=(0,he.style)({},"checkbox_error_state");(0,he.globalStyle)(`${_h}:checked + label > span > span:first-of-type`,{borderWidth:be.border.thickness.emphasis,borderColor:be.color.error.main}),(0,he.globalStyle)(`${_h}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${be.border.thickness.emphasis} * -1)`});const Sh=(0,he.style)({borderWidth:be.border.thickness.emphasis,borderColor:be.color.error.main,lineHeight:1.1},"error_checkbox"),Ch=(0,he.style)({...zt,color:be.color.background.mediumContrast},"checkbox-caption_text"),Eh=(0,he.style)([Ch,{display:"flex",alignItems:"center",margin:0}],"error_text"),$h=(0,he.style)({color:be.color.error.main,marginInlineEnd:be.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_error_icon"),Ah=(0,he.style)({color:be.color.success.main,marginInlineEnd:be.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_success_icon"),Th=(0,he.style)({paddingBottom:be.space[150]},"checkbox_label_error"),Oh=(0,he.style)([Ch,{margin:`${be.space[50]} 0 0`}],"checkbox_helper_text"),zh=((0,he.style)({margin:0},"checkbox_group_helper_text"),(0,he.style)({display:"flex",alignItems:"center",minHeight:"1.5rem",margin:0},"checkbox_items")),Fh=(0,he.style)({display:"flex",alignItems:"center",marginInlineEnd:be.space[100],minHeight:"auto",pointerEvents:"none"},"checkbox_thumbnail"),Ph=(0,he.style)({width:be.size.icon.lg,height:be.size.icon.lg},"checkbox_thumbnail_decoration"),Rh=(0,he.style)({margin:0,pointerEvents:"none"},"checkbox_item_text"),Lh=(0,he.style)([Ch,{display:"block",paddingTop:be.space[50],pointerEvents:"none"}],"checkbox_item_secondary_text"),Nh=(0,he.style)({padding:`${be.space[100]} 0`},"checkbox_group_base_with_sec_text");me.endFileScope();var Ih=["id","label","aria-label","decoration","secondaryText","labelIcon","helperText","errorText","errorIconAriaLabel","error","successText","successIconAriaLabel","partial","name","dir","className","onChange","inCheckboxGroup"],Mh=(0,pe.forwardRef)((function(e,t){var r,n,a,i,o,l,s,c,u,d=e.id,p=e.label,f=e["aria-label"],m=e.decoration,h=e.secondaryText,g=e.labelIcon,y=e.helperText,b=e.errorText,v=e.errorIconAriaLabel,k=void 0===v?"Error":v,x=e.error,w=e.successText,_=e.successIconAriaLabel,S=void 0===_?"Success":_,C=e.partial,E=e.name,$=void 0===E?"default":E,A=e.dir,T=e.className,O=e.onChange,z=e.inCheckboxGroup,F=ye(e,Ih),P=Ke(mh,x&&_h,z&&hh,z&&h&&Nh,T),R=null!=d?d:Ze("Checkbox_"),L=fe().createElement(zi,{className:$h,size:"sm",role:"img","aria-label":k,"data-ppui":"true"}),N=fe().createElement(Si,{className:Ah,size:"sm",role:"img","aria-label":S,"data-ppui":"true"});return x&&!w?r=b&&fe().createElement("p",{className:Eh,id:$,"data-ppui":"true"},L,b):w&&!x&&(r=w&&fe().createElement("p",{className:Eh,id:$,"data-ppui":"true"},N,w)),fe().createElement("div",{className:P,"data-id":"checkbox",dir:A,"data-ppui-info":"checkbox_5.1.2__8.12.0"},fe().createElement("input",ge({className:Ke(wh,x&&_h),tabIndex:0,type:"checkbox",id:R,name:$,ref:t,onChange:function(e){O&&(e.stopPropagation(),O(e))}},F,x&&b&&{"aria-describedby":$,"aria-invalid":!0},{"data-ppui":"true"})),(n=g&&fe().createElement("span",{className:yh,"data-ppui":"true"},g),a=fe().createElement(Ci,{className:kh,size:"xs","data-ppui":"true"}),i=fe().createElement("span",{className:xh,"data-ppui":"true"}),o=!x&&!w&&y&&fe().createElement("p",{className:Oh,"data-ppui":"true"},y),l=Ke(!!m&&vh,!m&&bh,x&&Sh),s=Ke(gh,(x||w)&&!z&&Th),c=C?i:a,u=fe().createElement("span",{className:zh,"data-ppui":"true"},fe().createElement("span",{className:l,"data-ppui":"true"},c),function(){var e=m&&fe().createElement("span",{className:Fh,"data-ppui":"true"},fe().cloneElement(m,{className:Ke(m.props.className,Ph)})),t=fe().createElement("span",{className:Rh,"data-ppui":"true"},fe().createElement(ea,{as:"span",className:Ke(!p&&it),"data-ppui":"true"},null!=p?p:f),h&&fe().createElement(ra,{className:Lh,as:"span","data-ppui":"true"},h));return fe().createElement("span",{className:zh,"data-ppui":"true"},e,t)}()),fe().createElement("label",{className:s,htmlFor:R,"data-ppui":"true"},u,n,o)),r)}));me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-circle-progress-meter");const Hh="50%",jh=be.size.indicator.sm,Bh=be.size.circle.lg,Dh=be.size.circle.md,Vh=be.size.indicator.xs,Wh=`calc(${Hh} - ${Vh})`,Uh=`calc(${Vh} * 2)`,Gh=(0,he.style)({position:"relative",borderRadius:be.border.radius.interactive,border:`${jh} solid ${be.color.background.alt}`,width:Bh,height:Bh,backgroundColor:be.color.background.surface,padding:be.space[50],flexShrink:0},"circle_progress_meter-base"),qh=(0,he.style)({borderRadius:be.border.radius.interactive,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},"circle_progress_meter-inner"),Kh=(0,he.style)({color:be.color.accent1.contrast,backgroundColor:be.color.accent1.main},"circle_progress_meter-inner_accent1"),Yh=(0,he.style)({color:be.color.accent2.contrast,backgroundColor:be.color.accent2.main},"circle_progress_meter-inner_accent2"),Xh=(0,he.style)({color:be.color.accent3.contrast,backgroundColor:be.color.accent3.main},"circle_progress_meter-inner_accent3"),Qh=(0,he.style)({color:be.color.accent4.contrast,backgroundColor:be.color.accent4.main},"circle_progress_meter-inner_accent4"),Zh=(0,he.style)({width:"100%",height:"100%",borderRadius:"inherit"},"circle_progress_meter-inner_image"),Jh=(0,he.style)({position:"absolute",top:`calc(${jh} * -1)`,left:`calc(${jh} * -1)`,width:Bh,height:Bh,fill:"none",strokeWidth:Uh,strokeLinecap:"round",transform:"rotate(-90deg)",transformOrigin:"50% 50%",stroke:be.color.accent2.main},"circle_progress_meter-indicator"),eg=(0,he.style)({width:Dh,height:Dh,borderWidth:Vh},"circle_progress_meter-size_sm"),tg=(0,he.style)({top:`calc(${Vh} * -1)`,left:`calc(${Vh} * -1)`,width:Dh,height:Dh,strokeWidth:Uh},"circle_progress_meter-size_sm_progress_indicator"),rg=(0,he.style)({padding:0},"circle_progress_meter-text_base"),ng=(0,he.style)({backgroundColor:be.color.background.surface},"circle_progress_meter-text_inner"),ag=(0,he.style)({overflow:"hidden"},"circle_progress_meter-text_content"),ig=(0,he.style)({width:be.size.icon.sm,height:be.size.icon.sm},"circle_progress_meter-icon_wrap_sm"),og=(0,he.style)({width:be.size.icon.md,height:be.size.icon.md},"circle_progress_meter-icon_wrap_lg"),lg=(0,he.style)({stroke:be.color.accent1.main},"circle_progress-meter_stroke_accent1"),sg=(0,he.style)({stroke:be.color.accent2.main},"circle_progress-meter_stroke_accent2"),cg=(0,he.style)({stroke:be.color.accent3.main},"circle_progress-meter_stroke_accent3"),ug=(0,he.style)({stroke:be.color.accent4.main},"circle_progress-meter_stroke_accent4");me.endFileScope();var dg=["className","max","value","color","label","size","children","innerText","iconComponent","imageSrc"];function pg(e,t){return[(0,he.style)(e,t),e]}(0,pe.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,m=e.size,h=void 0===m?"lg":m,g=e.children,y=e.innerText,b=e.iconComponent,v=e.imageSrc,k=ye(e,dg),x="sm"===h,w=Wh,_="calc(2 * ".concat(Math.PI," * ").concat(w,")"),S="calc(".concat(_," - (calc(").concat(u/s,") * ").concat(_,"))"),C=Ke(Gh,y&&rg,x&&eg,i),E=Ke(Jh,function(e){var t,r=e.charAt(0).toUpperCase()+e.slice(1);return null!==(t=o["strokeColor".concat(r)])&&void 0!==t?t:sg}(p),x&&tg),$=Ke(qh,function(e){var t,r=e.charAt(0).toUpperCase()+e.slice(1);return null!==(t=o["circleInner".concat(r)])&&void 0!==t?t:Yh}(p),y&&ng);return y?(a=ag,r=x?fe().createElement(ra,{className:a,"data-ppui":"true"},y):fe().createElement(ea,{className:a,"data-ppui":"true"},y)):b?(n=x?ig:og,r=fe().createElement("div",{className:n,"data-ppui":"true"},fe().createElement(b,{size:"sm"===h?"sm":"md","data-ppui":"true"}))):r=v?fe().createElement("img",{src:v,className:Zh,"data-ppui":"true"}):g,fe().createElement("div",{className:C,"data-ppui-info":"circle-progress-meter_1.1.2__8.12.0"},fe().createElement("svg",{className:E,style:{strokeDasharray:_,strokeDashoffset:S},"aria-hidden":"true",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","data-ppui":"true"},fe().createElement("circle",{cx:Hh,cy:Hh,style:{r:Wh},"data-ppui":"true"})),fe().createElement("div",{className:$,"aria-hidden":"true","data-ppui":"true"},r),fe().createElement("label",{className:it,"data-ppui":"true"},f,fe().createElement("progress",ge({max:s,value:u},k,{ref:t,"data-ppui":"true"}))))})),me.setFileScope("src/caretStyles.css.ts","@paypalcorp/pp-react-utils");const fg=Te,[mg,hg]=pg({":before":{content:"",position:"absolute",backgroundColor:"inherit",width:fg.caretSize,height:fg.caretSize,transform:"scale(0.72) rotate(45deg)",boxShadow:"inherit",zIndex:0},":after":{content:"",position:"absolute",backgroundColor:"inherit",width:"2.5rem",height:be.space[200]}},"caret_base"),[gg,yg]=pg({":before":{top:"auto",bottom:`calc(-1 * ${fg.caretBottomOffset})`},":after":{top:"auto",bottom:0}},"caret_position_bottom"),[bg,vg]=pg({":before":{bottom:"auto",top:`calc(-1 * ${fg.caretTopOffset})`},":after":{top:0,bottom:"auto"}},"caret_position_top"),[kg,xg]=pg({":before":{left:`calc(50% - ${fg.caretCenterOffset} / 2)`,right:"auto"},":after":{left:"calc(50% - 1.25rem)",right:"auto"}},"caret_position_center"),[wg,_g]=pg({":before":{left:fg.caretSpaceShiftLeft,right:"auto"},":after":{left:be.space[100],right:"auto"}},"caret_position_shift_left"),[Sg,Cg]=pg({":before":{left:"auto",right:fg.caretSpaceShiftRight},":after":{left:"auto",right:be.space[100]}},"caret_position_shift_right"),[Eg,$g]=pg({":before":{top:`calc(50% - ${fg.caretLeftOffset})`,bottom:"auto",left:`calc(-1 * ${fg.caretLeftOffset})`,right:"auto"},":after":{transform:"rotate(90deg)",top:`calc(50% - ${fg.caretLeftOffset})`,bottom:"auto",left:`calc(-1 * ${be.space[150]})`,right:"auto"}},"caret_position_left"),[Ag,Tg]=pg({":before":{top:`calc(50% - ${fg.caretRightOffset})`,bottom:"auto",left:"auto",right:`calc(-1 * ${fg.caretRightOffset})`},":after":{transform:"rotate(90deg)",top:`calc(50% - ${fg.caretRightOffset})`,bottom:"auto",left:"auto",right:`calc(-1 * ${be.space[150]})`}},"caret_position_right");me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-coach-tip");const Og=`calc(calc(${be.size.tapTarget.sm} - ${be.size.icon.xs}/2) + ${be.size.icon.xs}/2)`,zg=`calc(${be.size.pointerWidth.lg}/2)`;(0,he.style)([fl,mg,{display:"none",position:"absolute",backgroundColor:be.color.background.surface,maxWidth:"20rem",padding:be.space[300],borderRadius:be.border.radius.xs,zIndex:1080,":focus":{outline:"none"},vars:{[fg.caretSize]:be.size.pointerWidth.lg,[fg.caretTopOffset]:zg,[fg.caretBottomOffset]:zg,[fg.caretSpaceShiftLeft]:be.space[300],[fg.caretSpaceShiftRight]:be.space[300],[fg.caretCenterOffset]:be.size.pointerWidth.lg,[fg.caretLeftOffset]:zg,[fg.caretRightOffset]:zg}}],"coach_tip-base"),(0,he.style)({display:"flex",width:"100%",justifyContent:"space-between"},"coach_tip-header"),(0,he.style)([Zt,{display:"inline-block",marginBottom:be.space[150],maxWidth:`calc(100% - ${Og})`}],"coach_tip-header_text"),(0,he.style)({display:"inline-block",maxWidth:`calc(100% - ${Og})`},"coach_tip-no_header"),(0,he.style)({display:"flex",alignItems:"center",marginTop:be.space[150]},"coach_tip-footer"),(0,he.style)([Ot,{display:"inline-block",flex:"1 1 auto",flexShrink:"0"}],"coach_tip-footer_label"),(0,he.style)({display:"flex"},"coach_tip-footer_button_container"),(0,he.style)({marginInlineStart:be.space[300]},"coach_tip-footer_button"),(0,he.style)([St],"coach_tip-text"),(0,he.style)({marginTop:`calc(${be.space[200]} * -1)`,marginInlineEnd:`calc(${be.space[200]} * -1)`,padding:be.space[50],zIndex:1},"coach_tip-close_button"),(0,he.style)([bg,wg],"coach_tip-caret_top_left"),(0,he.style)([bg,kg],"coach_tip-caret_top_center"),(0,he.style)([bg,Sg],"coach_tip-caret_top_right"),(0,he.style)([gg,wg],"coach_tip-caret_bottom_left"),(0,he.style)([gg,kg],"coach_tip-caret_bottom_center"),(0,he.style)([gg,Sg],"coach_tip-caret_bottom_right"),(0,he.style)([Eg],"coach_tip-caret_left"),(0,he.style)([Ag],"coach_tip-caret_right"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-code-input");const Fg=(0,he.style)({display:"inline-block"},"code_input_base"),Pg=(0,he.style)({width:be.size.field.sm,marginRight:be.space[100],marginBottom:be.space[100],"@media":{[`(max-width: ${_e})`]:{width:"2.5rem"}}},"code_input_text_input"),Rg=(0,he.style)({padding:0},"code_input_text_input_with_error"),Lg=(0,he.style)({...Qr,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:be.typography.fieldValueLg.lineHeight}}},"code_input_text_input_control"),Ng=(0,he.style)({display:"flex",marginRight:`calc(${be.space[100]} * -1)`,marginBottom:`calc(${be.space[100]} * -1)`,flexWrap:"wrap",selectors:{"[dir='rtl'] & ":{direction:"ltr"}}},"code_input_wrapper"),Ig=(0,he.style)({marginTop:be.space[50],display:"flex",alignItems:"center"},"code_input_error"),Mg=(0,he.style)({...zt,color:be.color.background.mediumContrast,flexGrow:1,width:0},"code_input_error_text"),Hg=(0,he.style)({color:be.color.error.main,marginInlineEnd:be.space[50]},"code_input_error_icon"),jg=(0,he.style)({listStyle:"none",padding:0,margin:0},"code_input_error_text_list");me.endFileScope();var Bg=["alphaCharCapitalize","className","errorText","error","name","id","inputClassName","inputWrapperClassName","onChange","pinLength","value","autoFocus","onBlur","onFocus","numberOnly","wrapperAriaLabel"];fe().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,m=e.onChange,h=void 0===m?void 0:m,g=e.pinLength,y=void 0===g?6:g,b=e.value,v=void 0===b?"":b,k=e.autoFocus,x=e.onBlur,w=void 0===x?null:x,_=e.onFocus,S=void 0===_?null:_,C=e.numberOnly,E=void 0!==C&&C,$=e.wrapperAriaLabel,A=void 0===$?"group":$,T=ye(e,Bg),O=(0,pe.useRef)([]),z=t||O,F=/^[0-9]+$/,P=[Je.NAME_BACKSPACE,Je.NAME_DELETE,Je.NAME_TAB],R=el(fe().useState(!1),2),L=R[0],N=R[1],I=Jo(y<3||y>=6?Array(6).keys():Array(y).keys()),M=v&&v.split("").map((function(e){return" "===e?"":e})),H=function(){var e=z.current.map((function(e){return""===e.value?" ":e.value})).join("");h&&h(e)},j=function(e){z&&z.current[e]&&z.current[e].focus()},B=function(e,t){for(var r=z.current.length,a=Math.min(e&&e.length,r),i=t,o=0;o<a&&(z.current[i].value=n?e[o].toUpperCase():e[o],++i!==r);o++);j(i===r?i-1:i)};(0,pe.useEffect)((function(){k&&j(0)}),[]);var D,V=function(e){w&&!z.current.includes(e.relatedTarget)&&(w(e),N(!1))},W=function(e){e.target.select(),S&&!L&&(N(!0),S(e))},U=Ke(Fg,a),G=Ke(Pg,i&&Ig,f),q=Ke(Lg,i&&Rg,p),K=I.map((function(e){return fe().createElement(Yo,ge({key:e,className:G,inputClassName:q,"aria-label":"".concat(e+1,"-").concat(I.length),name:"".concat(c,"-").concat(e),id:"ci-".concat(d,"-").concat(e),ref:function(t){return function(e,t){e&&(z.current[t]=e,z.current[t].value=M?M[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)&&j(t+1),n&&(e.target.value=e.target.value.toUpperCase()),e.target.value.length>1){var i=e.target.value.replace(/\s/g,"").split("");B(i,t)}H()}(t,e)},onKeyDown:function(t){return function(e,t){var r=e.key||e.keyCode,n=new Je(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?j(t-1):(e.target.value=" ",H()):n.IS_ARROW_LEFT?j(t-1):n.IS_ARROW_RIGHT?j(t+1):n.IS_HOME?j(0):n.IS_END?j(y-1):e.target.select(),(e.ctrlKey||e.metaKey)&&"v"===r||r.match(F)||P.includes(r)||!E||e.preventDefault()}(t,e)},onPaste:function(e){return function(e){var t=e.clipboardData&&e.clipboardData.getData("text");if(e.preventDefault(),!t||t.match(F)||!E){var r=t&&t.replace(/\s/g,"").split("");("number"===e.target.type||E)&&r.some(isNaN)||(B(r,0),H())}}(e)},onFocus:W,onBlur:V,"aria-describedby":l?"message_".concat(c):null,error:l&&!!i,pattern:E?"[0-9]*":""},T,{"data-ppui":"true"}))}));return fe().createElement("div",{className:U,id:d,"data-ppui-info":"code-input_3.1.2__8.12.0"},fe().createElement("div",{className:Ng,role:"group","aria-label":A,"data-ppui":"true"},K),i&&(D=Array.isArray(i)?fe().createElement("ul",{className:jg,"data-ppui":"true"},i.map((function(e,t){return fe().createElement("li",{key:"text$-".concat(t),"data-ppui":"true"},e)}))):i,fe().createElement("div",{className:Ig,id:"message_".concat(c),role:"alert","data-ppui":"true"},fe().createElement(zi,{className:Hg,size:"sm","aria-hidden":"true","data-ppui":"true"}),fe().createElement("span",{className:Mg,"data-ppui":"true"},D))))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-flag");const Dg={"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}},Vg={"1x":be.size.icon.sm,"2x":be.size.icon.md},Wg=e=>`scale(calc(${Vg[e]} / ${Dg[e].width/16}))`,Ug=e=>({width:"100%",height:"100%",background:`transparent url(${Dg[e].url}) no-repeat`,backgroundSize:"cover",backgroundOrigin:"border-box",transformOrigin:"top left",position:"absolute",left:0,border:`${be.border.thickness.normal} solid ${be.color.structure.divider}`,transform:Wg(e),borderRadius:be.border.radius.xs}),Gg=(0,he.style)({display:"inline-block",boxSizing:"border-box",position:"relative"},"flag"),qg=(0,he.style)({width:be.size.icon.sm,height:`calc(${be.size.icon.sm} * 0.75)`},"flag_size_sm"),Kg=(0,he.style)({width:be.size.icon.md,height:`calc(${be.size.icon.md} * 0.75)`},"flag_size_md"),Yg=(0,he.style)({"@media":{"only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)":{backgroundImage:`url(${Dg["2x"].url})`,transform:Wg("2x")}}},"flag_scale_base"),Xg=(0,he.style)(Ug("1x"),"flag_scale_sm"),Qg=(0,he.style)(Ug("2x"),"flag_scale_md"),Zg=(0,he.style)({borderRadius:0},"flag_no_rounded_corners"),Jg=(0,he.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");me.endFileScope();var ey=["countryCode","size","noRoundCorners","className"],ty=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=ye(e,ey);return fe().createElement("div",ge({className:Ke(Gg,"sm"===n&&qg,"md"===n&&Kg,o)},l,{"data-ppui":"true"}),fe().createElement("span",{className:Ke(Yg,Jg,t&&"flag_".concat(t.toLowerCase()),"sm"===n&&Xg,"md"===n&&Qg,i&&Zg),"data-ppui":"true"}))};function ry(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 ny(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new ny.InputMask(e,t)}class ay{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 iy(e){return"string"==typeof e||e instanceof String}ny.ChangeDetails=ay;const oy="NONE",ly="LEFT",sy="FORCE_LEFT",cy="RIGHT",uy="FORCE_RIGHT";function dy(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function py(e){return Array.isArray(e)?e:[e,new ay]}function fy(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(!fy(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(!fy(e[c[r]],t[c[r]]))return!1;return!0}return!(!t||!e||"function"!=typeof t||"function"!=typeof e)&&t.toString()===e.toString()}class my{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?oy:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?ly:cy}}class hy{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 gy{constructor(e){this._value="",this._update(Object.assign({},gy.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 hy(this.extractInput(e,t),e)}appendTail(e){return iy(e)&&(e=new hy(String(e))),e.appendTo(this)}_appendCharRaw(e){return e?(this._value+=e,new ay({inserted:e,rawInserted:e})):new ay}_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]=py(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 ay,this.state=n,r&&e&&(r.state=e))}return a}_appendPlaceholder(){return new ay}_appendEager(){return new ay}append(e,t,r){if(!iy(e))throw new Error("value should be string");const n=new ay,a=iy(r)?new hy(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 ay}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 ly:return sy;case cy:return uy;default:return e}}(n),s=this.extractInput(0,i,{raw:!0}));let c=e;const u=new ay;if(n!==oy&&(c=this.nearestInputPos(e,t>1&&0!==e&&!l?oy:n),u.tailShift=c-e),u.aggregate(this.remove(c)),l&&n!==oy&&s===this.rawInputValue)if(n===sy){let e;for(;s===this.rawInputValue&&(e=this.value.length);)u.aggregate(new ay({tailShift:-1})).aggregate(this.remove(e-1))}else n===uy&&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||gy.EMPTY_VALUES.includes(e)&&gy.EMPTY_VALUES.includes(t)||this.doFormat(e)===this.doFormat(this.typedValue)}}function yy(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?ny.MaskedRegExp:iy(e)?ny.MaskedPattern:e instanceof Date||e===Date?ny.MaskedDate:e instanceof Number||"number"==typeof e||e===Number?ny.MaskedNumber:Array.isArray(e)||e===Array?ny.MaskedDynamic:ny.Masked&&e.prototype instanceof ny.Masked?e:e instanceof ny.Masked?e.constructor:e instanceof Function?ny.MaskedFunction:(console.warn("Mask not found for mask",e),ny.Masked)}function by(e){if(ny.Masked&&e instanceof ny.Masked)return e;const t=(e=Object.assign({},e)).mask;if(ny.Masked&&t instanceof ny.Masked)return t;const r=yy(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)}gy.DEFAULTS={format:String,parse:e=>e,skipInvalid:!0},gy.EMPTY_VALUES=[void 0,null,""],ny.Masked=gy,ny.createMask=by;const vy=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],ky={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 xy{constructor(e){const{parent:t,isOptional:r,placeholderChar:n,displayChar:a,lazy:i,eager:o}=e,l=ry(e,vy);this.masked=by(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 ay}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 ay;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 ay;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new ay}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]:oy;const r=this.value.length,n=Math.min(Math.max(e,0),r);switch(t){case ly:case sy:return this.isComplete?n:0;case cy:case uy: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 wy{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 ay}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oy;const r=this._value.length;switch(t){case ly:case sy: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 ay;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 ay;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new hy("")}appendTail(e){return iy(e)&&(e=new hy(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 _y=["chunks"];class Sy{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;iy(e)&&(e=new hy(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 hy)r?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof Sy){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 ny.MaskedPattern))return new hy(this.toString()).appendTo(e);const t=new ay;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 Sy||e._stops.indexOf(i)>=0){const r=e._appendPlaceholder(i);t.aggregate(r)}o=n instanceof Sy&&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=ry(e,_y);Object.assign(this,r),this.chunks=t.map((e=>{const t="chunks"in e?new Sy:new hy;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 Cy{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,sy),0!==this.offset||void 0}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ly),!0}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ly),!0}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,uy),this.offset!==this.block.value.length||void 0}))}pushRightBeforeInput(){return this._pushRight((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,oy),!0}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,oy),!0}))}}ny.MaskedRegExp=class extends gy{_update(e){e.mask&&(e.validate=t=>t.search(e.mask)>=0),super._update(e)}};const Ey=["_blocks"];class $y extends gy{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},ky,e.definitions),super(Object.assign({},$y.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=by(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===$y.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===l||"}"===l){r=!r;continue}if("["===l||"]"===l){n=!n;continue}if(l===$y.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 ny.Masked?{mask:e[l]}:e[l],u=s?new xy(Object.assign({parent:this,isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},c)):new wy({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=ry(e,Ey);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 ay;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 ay;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 Sy;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 Sy&&(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 ay;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]:oy;if(!this._blocks.length)return 0;const r=new Cy(this,e);if(t===oy)return r.pushRightBeforeInput()?r.pos:(r.popState(),r.pushLeftBeforeInput()?r.pos:this.value.length);if(t===ly||t===sy){if(t===ly){if(r.pushRightBeforeFilled(),r.ok&&r.pos===e)return e;r.popState()}if(r.pushLeftBeforeInput(),r.pushLeftBeforeRequired(),r.pushLeftBeforeFilled(),t===ly){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===sy?0:(r.popState(),r.ok?r.pos:(r.popState(),r.ok?r.pos:0))}return t===cy||t===uy?(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.pushRightBeforeFilled()?r.pos:t===uy?this.value.length:(r.popState(),r.ok?r.pos:(r.popState(),r.ok?r.pos:this.nearestInputPos(e,ly)))):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])):[]}}$y.DEFAULTS={lazy:!0,placeholderChar:"_"},$y.STOP_CHAR="`",$y.ESCAPE_CHAR="\\",$y.InputDefinition=xy,$y.FixedDefinition=wy,ny.MaskedPattern=$y;class Ay extends $y{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]=py(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)}}ny.MaskedRange=Ay;class Ty extends $y{constructor(e){super(Object.assign({},Ty.DEFAULTS,e))}_update(e){e.mask===Date&&delete e.mask,e.pattern&&(e.mask=e.pattern);const t=e.blocks;e.blocks=Object.assign({},Ty.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)}}Ty.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)}},Ty.GET_DEFAULT_BLOCKS=()=>({d:{mask:Ay,from:1,to:31,maxLength:2},m:{mask:Ay,from:1,to:12,maxLength:2},Y:{mask:Ay,from:1900,to:9999}}),ny.MaskedDate=Ty;class Oy{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(){}}ny.MaskElement=Oy;class zy extends Oy{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(zy.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)}}zy.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},ny.HTMLMaskElement=zy;class Fy extends zy{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}}ny.HTMLContenteditableMaskElement=Fy;const Py=["mask"];ny.InputMask=class{constructor(e,t){this.el=e instanceof Oy?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new Fy(e):new zy(e),this.masked=by(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 ny.Masked)&&this.masked.constructor===yy(e))return void this.masked.updateOptions({mask:e});const t=by({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=ry(e,Py),n=!this.maskEquals(t),a=!fy(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,ly))}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 my(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:oy;let i=this.masked.nearestInputPos(t.startChangePos+n,a);a!==oy&&(i=this.masked.nearestInputPos(i,oy)),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 Ry extends gy{constructor(e){super(Object.assign({},Ry.DEFAULTS,e))}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"(".concat(dy(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(dy).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(dy(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]=py(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 ay({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case oy:case ly:case sy:{const r=this._findSeparatorAround(e-1);if(r>=0){const n=r+this.thousandsSeparator.length;if(e<n||this.value.length<=n||t===sy)return r}break}case cy:case uy:{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===Ry.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,Ry.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(e){this.rawInputValue=this.doFormat(e).replace(Ry.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)||Ry.EMPTY_VALUES.includes(e)&&Ry.EMPTY_VALUES.includes(this.typedValue))&&!(0===e&&""===this.value)}}Ry.UNMASKED_RADIX=".",Ry.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[Ry.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},Ry.EMPTY_VALUES=[...gy.EMPTY_VALUES,0],ny.MaskedNumber=Ry;var Ly=["name","isControlled","maskOptions","onAccept","onComplete","value"],Ny={Range:ny.MaskedRange},Iy=(0,pe.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=ye(e,Ly),d=(0,pe.useRef)(),p=t||d,f=(0,pe.useRef)(null),m=null==f?void 0:f.current;return(0,pe.useEffect)((function(){m&&m.updateOptions(o)}),[o]),(0,pe.useEffect)((function(){m&&(m.unmaskedValue=c)}),[c]),(0,pe.useEffect)((function(){var e=p.current;if(e&&!f.current){f.current=ny(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(){m&&(m.off("accept"),m.off("complete"),m.destroy())}}),[]),m&&a&&(m.unmaskedValue="".concat(c)),fe().createElement(Yo,ge({name:r,value:c,ref:p,"data-ppui-info":"masked-text-input_3.2.3__8.12.0"},u))}));me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-tooltip");const{caretSize:My,caretRightOffset:Hy,caretTopOffset:jy,caretBottomOffset:By,caretLeftOffset:Dy,caretCenterOffset:Vy,caretSpaceShiftLeft:Wy,caretSpaceShiftRight:Uy}=fg,{E3:Gy,Fm:qy}=i,Ky="18rem",Yy=`calc(${be.size.pointerWidth.lg} / 2)`,Xy=((0,he.style)([fl,mg,yg,xg,{...Ct,color:be.color.background.highContrast,visibility:"hidden",opacity:0,maxWidth:Ky,wordWrap:"break-word",padding:be.space[200],position:"absolute",borderRadius:be.border.radius.sm,backgroundColor:be.color.background.surface,zIndex:1070,selectors:{"[aria-hidden = 'false']&":{visibility:"visible",opacity:1}},vars:{[Hy]:Yy,[My]:be.size.pointerWidth.lg,[jy]:Yy,[By]:Yy,[Dy]:Yy,[Vy]:be.size.pointerWidth.lg,[Wy]:be.size.pointerWidth.lg,[Uy]:be.size.pointerWidth.lg}}],"tooltip_base"),(0,he.style)(Tg,"tooltip_position_left"),(0,he.style)($g,"tooltip_position_right"),(0,he.style)(vg,"tooltip_position_bottom"),(0,he.style)(_g,"tooltip_tip_position_left"),(0,he.style)(Cg,"tooltip_tip_position_right"),(0,he.style)([Gy,qy,{width:be.size.tapTarget.sm,height:be.size.tapTarget.sm,padding:0,display:"inline-flex",justifyContent:"center",alignItems:"center",color:be.color.secondary.main,cursor:"pointer",border:0,backgroundColor:"transparent",position:"relative",":hover":{color:be.color.secondary.mainActive,outline:"0.938rem"},":active":{color:be.color.secondary.mainActive,outline:"none"},":focus":{outline:"none"}}],"tooltip-icon"));(0,he.globalStyle)(`${Xy}:focus > span:first-of-type`,{borderRadius:be.border.radius.interactive,...Oa});const Qy=(0,he.style)({display:"flex"},"tooltip_image");(0,he.globalStyle)(`${Qy} > img `,{maxWidth:`calc(${Ky}-2*${be.space[200]})`}),(0,he.style)({justifyContent:"flex-start",paddingBottom:be.space[100]},"tooltip_image_top_left"),(0,he.style)({justifyContent:"center",paddingBottom:be.space[100]},"tooltip_image_top_center"),(0,he.style)({justifyContent:"flex-start",paddingTop:be.space[100]},"tooltip_image_bottom_left"),(0,he.style)({justifyContent:"center",paddingTop:be.space[100]},"tooltip_image_bottom_center"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-credit-card-input"),(0,he.style)({height:be.size.icon.md},"credit_card_cvv_image"),(0,he.style)({selectors:{"[dir='rtl'] &":{direction:"ltr",textAlign:"right"}}},"credit_card_number_input_rtl"),me.endFileScope();var Zy=["name","maskOptions","prefix","suffix","currencyType","value"],Jy=(0,pe.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=ye(e,Zy),u=(0,pe.useContext)(ja),d=Va(u,n,l),p=d.currencyMaskOptions,f=d.intlCurrencyPrefix,m=d.intlCurrencySuffix,h="decimal",g=s;if(p&&(0===p.scale&&(h="numeric"),g)){var y=el(g.split("."),2),b=y[0],v=y[1];if(v){var k=v.substring(0,p.scale);g=b+(k?p.radix+k:"")}}return fe().createElement(Iy,ge({name:r,value:g,maskOptions:p,prefix:a||f,suffix:i||m,inputMode:h,ref:t,"data-ppui-info":"currency-input_3.2.7__8.12.0"},c))}));me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-table");const eb=e=>`screen and (${e}-width: ${Se})`,tb=(0,he.style)({},"table-type_data"),rb=(0,he.style)({},"table-type_summary"),nb=(0,he.style)({},"table-fixed_first_column_table"),ab=(0,he.style)({},"table-section_summary_heading"),ib=(0,he.style)({},"table-section_summary_item"),ob=(0,he.style)({},"table-section_summary_adjust"),lb=(0,he.style)({},"table-section_summary_total"),sb=(0,he.style)({},"table-section_utility"),cb=(0,he.style)({display:"inline-block",overflow:"auto",maxHeight:"100%",width:"100%"},"table-scroll_context"),ub=(0,he.style)({border:"none",tableLayout:"fixed",display:"block",overflow:"auto"},"table-scroll_context_table"),db=(0,he.style)({borderSpacing:0,borderCollapse:"separate",border:"none",tableLayout:"fixed",overflow:"auto",width:"100%"},"table-r_table_base"),pb=(0,he.style)({"@media":{[eb("max")]:{border:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,borderEndEndRadius:be.border.radius.lg,borderEndStartRadius:be.border.radius.lg}}},"table-summary_wrap"),fb=(0,he.style)({display:"block"},"table-fixed1st"),mb={position:"sticky",top:0,zIndex:1},hb=(0,he.style)(mb,"table-head_sticky"),gb=(0,he.style)({position:"sticky",bottom:0,zIndex:10},"table-foot_sticky"),yb=(0,he.style)({"@media":{[eb("max")]:{selectors:{[`${db} &`]:{display:"none"}}}},selectors:{[`${ub} &`]:mb}},"table-thead"),bb=(0,he.style)({backgroundColor:be.color.background.surface},"table-tbody"),vb=(0,he.style)({backgroundColor:be.color.background.surface},"table-tfoot"),kb=(0,he.style)({textAlign:"start",padding:be.space[150],selectors:{[`${bb} &:first-of-type`]:{...Tt,backgroundColor:"inherit"},[`${ub} ${yb} &`]:{borderBottom:"none",position:"sticky",top:0,backgroundColor:be.color.background.main},[`${ub} ${bb} &`]:{...wl,clipPath:`polygon(0 0, 0 100%, calc(100% + ${be.elevation.blurBase}) 100%, calc(100% + ${be.elevation.blurBase}) 0)`},[`${nb} &`]:{position:"sticky"},[`${nb} &:first-of-type`]:{left:0},[`${nb} ${yb} &:first-of-type`]:{...wl,borderBottom:"none",clipPath:`polygon(0 0, 0 100%, calc(100% + ${be.elevation.blurBase}) 100%, calc(100% + ${be.elevation.blurBase}) 0)`,zIndex:2},[`[dir='rtl'] ${nb} ${yb} &`]:{clipPath:`polygon(\n calc(-1 * ${be.elevation.blurBase}) 0,\n calc(-1 * ${be.elevation.blurBase}) 100%,\n 100% 100%,\n 100% calc(-1*${be.elevation.blurBase})\n )`,right:0,left:"unset"},[`[dir='rtl'] ${nb} ${bb} &:first-of-type`]:{position:"sticky",left:"unset",right:0,clipPath:`polygon(\n calc(-1*${be.elevation.blurBase}) 0,\n calc(-1*${be.elevation.blurBase}) 100%,\n 100% 100%,\n 100% calc(-1*${be.elevation.blurBase})\n )`},[`${tb} ${yb} &`]:{...Tt,backgroundColor:be.color.background.main},[`${rb} ${yb} &`]:{...nr,backgroundColor:be.color.background.surface},[`${rb} ${vb} &`]:{...nr,backgroundColor:be.color.background.main},[`${db} ${vb} &:first-of-type`]:{...nr,position:"sticky",bottom:0,verticalAlign:"middle"},[`${db} ${bb} &`]:{position:"sticky",left:0},[`${db} &`]:{"@media":{[eb("max")]:{display:"block",height:"auto",padding:`${be.space[50]} ${be.space[100]}`,border:"none !important"}}},[`${db} &:first-of-type`]:{"@media":{[eb("min")]:{paddingLeft:be.space[200]}}},[`${db} &:last-of-type`]:{"@media":{[eb("min")]:{paddingRight:be.space[200]}}}}},"table-th"),xb=(0,he.style)({backgroundColor:be.color.background.surface,borderBottom:`${be.space[50]} solid ${be.color.background.main}`,selectors:{[`${db} &`]:{"@media":{[eb("max")]:{display:"grid",width:"100%",gridTemplateAreas:"'a1 a2 a3' 'b1 b2 b3'",gridTemplateColumns:"auto 1fr auto",gap:`0 ${be.space[100]}`,padding:`${be.space[150]} 0`}}},[`${yb} &`]:{whiteSpace:"nowrap"},[`${vb} &`]:{backgroundColor:be.color.background.main,whiteSpace:"nowrap"},[`${ib} &`]:{borderBottom:"none"},[`${ob} &`]:{borderBottom:"none",borderTop:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`},[`${lb} &`]:{borderTop:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,backgroundColor:be.color.background.main}}},"table-row_base"),wb=(0,he.style)({backgroundColor:be.color.selectedRange.main,color:be.color.selectedRange.contrast},"table-row_selected"),_b=(0,he.style)({...Ct,color:"inherit",padding:be.space[150],height:`calc(${be.size.tapTarget.default} + ${be.space[150]} * 2)`,width:"var(--normalWidth)",verticalAlign:"middle",borderBottom:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,paddingLeft:be.space[200],selectors:{[`${sb} &`]:{borderBottom:"none",backgroundColor:be.color.background.surface},[`${ab} &`]:{textAlign:"start",padding:be.space[150],borderBottom:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`},[`${ib} &`]:{borderBottom:"none"},[`${ib} &:first-of-type`]:{borderLeft:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`},[`${ib} &:last-of-type`]:{borderRight:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`},[`${ob} &`]:{...Tt,borderTop:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,borderBottom:"none"},[`${ob} &:first-of-type`]:{borderLeft:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`},[`${ob} &:last-of-type`]:{borderRight:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`},[`${lb} &`]:{...Tt,backgroundColor:be.color.background.main,borderTop:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`},[`${lb} &:first-of-type`]:{borderEndStartRadius:be.border.radius.lg,borderLeft:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`},[`${lb} &:last-of-type`]:{borderEndEndRadius:be.border.radius.lg,borderRight:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`}}},"table-cell_base"),Sb=(0,he.style)({"@media":{[eb("min")]:{":first-of-type":{paddingLeft:be.space[200]},":last-of-type":{paddingRight:be.space[200]}},[eb("max")]:{display:"block",height:"auto",padding:`${be.space[50]} ${be.space[100]}`,border:"none !important"}}},"table-cell_resp"),Cb=(0,he.style)([St,{borderSpacing:0,borderCollapse:"separate"}],"table-base"),Eb=(0,he.style)({textAlign:"start"},"table-align_start"),$b=(0,he.style)({textAlign:"end"},"table-align_end"),Ab=(0,he.style)({textAlign:"center"},"table-align_center"),Tb=(0,he.style)({"@media":{[eb("max")]:{display:"none"}}},"table-m_hide"),Ob=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a1"}}},"table-m_a1"),zb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a2"}}},"table-m_a2"),Fb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a3",textAlign:"end",width:"100%"}}},"table-m_a3"),Pb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a1 / a1 / a2 / a2"}}},"table-m_a12"),Rb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a2 / a2 / a3 / a3"}}},"table-m_a12"),Lb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a1 / a1 / a3 / a3"}}},"table-m_a123"),Nb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"b1"}}},"table-m_b1"),Ib=(0,he.style)({"@media":{[eb("max")]:{gridArea:"b2"}}},"table-m_b2"),Mb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"b3",textAlign:"end",width:"100%"}}},"table-m_b3"),Hb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"b1 / b1 / b2 / b2"}}},"table-m_b12"),jb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"b2 / b2 / b3 / b3"}}},"table-m_b23"),Bb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"b1 / b1 / b3 / b3",width:"100%"}}},"table-m_b123"),Db=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a1 / a1 / b1 / b1"}}},"table-m_ab1"),Vb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a2 / a2 / b2 / b2"}}},"table-m_ab2"),Wb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a3 / a3 / b3 / b3",width:"100%"}}},"table-m_ab3"),Ub=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a1 / a1 / b2 / b2"}}},"table-m_ab12"),Gb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a2 / a2 / b3 / b3",width:"100%"}}},"table-m_ab23"),qb=(0,he.style)({"@media":{[eb("max")]:{gridArea:"a1 / a1 / b3 / b3",width:"100%"}}},"table-m_ab123"),Kb=(0,he.style)({width:"100%"},"table-w100"),Yb=(0,he.style)({"@media":{[eb("max")]:{width:"var(--mWidth)"}}},"table_cell-mobile_width"),Xb=(0,he.style)({"@media":{[eb("max")]:{textAlign:"start"}}},"table-align_start"),Qb=(0,he.style)({"@media":{[eb("max")]:{textAlign:"end"}}},"table-align_end"),Zb=(0,he.style)({"@media":{[eb("max")]:{textAlign:"center"}}},"table-align_center");me.endFileScope();var Jb=["className","children","sticky","as"],ev=(0,pe.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=ye(e,Jb),u=Ke(l[s],i&&"thead"===s&&hb,i&&"tfoot"===s&&gb,r);return fe().createElement(s,ge({ref:t,className:u},c,{"data-ppui":"true"}),n)})),tv=function(e){return fe().createElement(ev,ge({},e,{as:"tbody","data-ppui":"true"}))},rv=function(e){return fe().createElement(ev,ge({},e,{as:"thead","data-ppui":"true"}))},nv=["isSelected","section","className","children"],av=(0,pe.forwardRef)((function(e,t){var r=e.isSelected,n=e.section,a=e.className,i=e.children,o=ye(e,nv),l=Ke(xb,r&&wb,n&&function(e){switch(e){case"summaryHeading":return ab;case"summaryItem":return ib;case"summaryAdjust":return ob;case"summaryTotal":return lb;case"utility":return sb;default:return""}}(n),a);return fe().createElement("tr",ge({ref:t,className:l},o,{"data-ppui":"true"}),i)})),iv=["className","mobile","claimsRemainingSpace","width","span","isHeader","children","align"];function ov(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 lv=(0,pe.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=ye(e,iv),p={hidden:Tb,a1:Ob,a2:zb,a3:Fb,b1:Nb,b2:Ib,b3:Mb,a12:Pb,a23:Rb,a123:Lb,b12:Hb,b23:jb,b123:Bb,ab1:Db,ab2:Vb,ab3:Wb,ab12:Ub,ab23:Gb,ab123:qb},f=function(e,t){switch(e){case"right":case"end":return t?Qb:$b;case"center":return t?Zb:Ab;default:return t?Xb:Eb}},m=Ke(_b,s&&kb,u&&f(u,!1),(null==n?void 0:n.align)&&f(n.align,!0),(null==n?void 0:n.placement)&&Sb,(null==n?void 0:n.placement)&&p[n.placement],(null==n?void 0:n.width)&&Yb,a&&Kb,r),h={"--normalWidth":i,"--mWidth":null==n?void 0:n.width},g=s?"th":"td",y=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ov(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ov(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d);return l>1&&(y.colSpan=l),fe().createElement(g,ge({ref:t,className:m},y,{style:h,"data-ppui":"true"}),c)})),sv=function(e){return fe().createElement(lv,ge({isHeader:!0},e,{"data-ppui":"true"}))};me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-data-table");const cv=(0,he.style)({display:"flex",alignItems:"center"},"data_table-flex_container"),uv=(0,he.style)({display:"grid",gridTemplateColumns:"1fr auto",gap:be.space[150],alignItems:"center"},"data_table-setting_icon"),dv=(0,he.style)({},"data_table-checkbox");(0,he.globalStyle)(`${dv} label`,{display:"block"});const pv=(0,he.style)({visibility:"hidden"},"data_table-checkbox_disabled"),fv=(0,he.style)({backgroundSize:be.size.circle.lg},"data_table-empty_table_label"),mv=(0,he.style)({marginTop:be.space[150],display:"grid",gridTemplateColumns:"auto",gridTemplateRows:"auto auto",placeItems:"center"},"data_table-info_block"),hv=(0,he.style)({margin:`${be.space[150]} 0`},"data_table-iblock_msg"),gv=(0,he.style)({margin:`${be.space[150]} 0`},"data_table-iblock_action"),yv=(0,he.style)({width:be.size.pictogram.sm},"data_table-iblock_deco"),bv=((0,he.style)({padding:be.space[100],display:"inline-grid",gridTemplateColumns:"auto 1fr",placeItems:"center",gap:be.space[100],height:"auto"},"data_table-icon_message"),(0,he.style)({padding:`${be.space[100]} ${be.space[150]}`},"data_table-see_more"),(0,he.style)({marginLeft:be.space[50],selectors:{"[dir='rtl'] &":{marginRight:be.space[50],marginLeft:0}}},"data_table-header_button")),vv=(0,he.style)({color:be.color.primary.main,border:`${be.border.thickness.normal} solid ${be.color.primary.main}`,borderRadius:be.border.radius.interactive},"data_table-currently_sorted_by_icon"),kv=((0,he.style)({position:"relative",":before":{content:" ",position:"absolute",inset:0,backgroundColor:be.color.structure.scrim,zIndex:1}},"data_table-loading"),(0,he.style)({padding:be.space[150],display:"grid",placeItems:"center"},"data_table-spinner"));(0,he.style)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1},"data_table-spinner"),me.endFileScope(),fe().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,m=e.settings,h=(0,pe.useMemo)((function(){return c.reduce((function(e,t){var r=t.id;return t.isUnselectable||e.push(r),e}),[])}),[c]),g=Ke(cv,0===h.length&&pv);if(a){var y=l.length>0,b=h.length&&l.length===h.length;t=fe().createElement(Mh,{name:"".concat(s,"DataTableToggleAll"),id:"".concat(s,"DataTableToggleAll"),"aria-label":o,className:g,partial:y&&!b,checked:y||b,onChange:function(e){d(e.target.checked?h:[])},"data-ppui":"true"})}var v=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,h=r.width,g=r.claimsRemainingSpace,y=o;if(s){var b="ascending"===s?wi:xi,v=l||"".concat(c?"Currently":""," sorted by ").concat(e," in ").concat(s," order");y=fe().createElement("div",{className:cv,"data-ppui":"true"},o,fe().createElement(xp,{className:bv,iconClassName:c&&vv,svgIconComponent:b,onClick:function(){p&&p(e,"ascending"===s?"descending":"ascending")},buttonType:"tertiary",btnState:f===e?"processing":"initial",size:"sm","data-ppui":"true"},v))}if(0===n&&a&&(y=function(e){return fe().createElement("div",{className:Ke(cv,u),"data-ppui":"true"},t,e)}(y)),i&&"function"==typeof(null==m?void 0:m.onClick)){var k,x=fe().createElement(xp,{svgIconComponent:Ii,buttonType:"tertiary",onClick:function(){m&&m.onClick&&m.onClick()},"data-ppui":"true"},m.screenReaderText);!function(e){return"string"==typeof e&&e.length>0||!!e}(o)?(y=x,d=null!==(k=d)&&void 0!==k?k:"end"):y=fe().createElement("div",{className:uv,"data-ppui":"true"},fe().createElement("div",{"data-ppui":"true"},y),fe().createElement("div",{"data-ppui":"true"},x))}return fe().createElement(sv,{key:e,scope:"col","aria-sort":s,align:d,width:h,claimsRemainingSpace:g,"data-ppui":"true"},y)}(e,r[e],n,n===v)}));return fe().createElement(rv,{sticky:!0,"data-ppui":"true"},fe().createElement(av,{"data-ppui":"true"},k))})),fe().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=fe().createElement(Mh,{name:"".concat(a,"DataTable").concat(r),id:"".concat(a,"DataTable").concat(r),"aria-label":r,className:Ke(dv,e.isUnselectable&&pv),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=fe().createElement(n,ge({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?fe().createElement(sv,{key:r,mobile:c,align:u,width:d,scope:"row","data-ppui":"true"},function(e,t){return fe().createElement("div",{className:Ke(cv,s),"data-ppui":"true"},e,t)}(t,i)):fe().createElement(lv,{key:r,mobile:c,align:u,width:d,"data-ppui":"true"},i)}))}(e,t);return fe().createElement(av,{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?fe().createElement(Km,{onClick:o,secondary:i,tertiary:!i,size:"sm",ref:n,key:"load-btn",btnState:l?"processing":"initial","data-ppui":"true"},r):null;return fe().createElement("div",{className:mv,"data-ppui":"true"},t,fe().createElement("div",{className:hv,"data-ppui":"true"},a),fe().createElement("div",{className:gv,"data-ppui":"true"},s))};return d.length?fe().createElement(tv,{"data-ppui":"true"},d):(t=u.errorMsg?fe().createElement(p,{decoration:fe().createElement(Li,{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?fe().createElement("div",{className:kv,"data-ppui":"true"},fe().createElement(hs,{size:"lg",as:"div",screenReaderText:u.loadingText,"aria-live":u.loadingText,"data-ppui":"true"})):fe().createElement(p,{decoration:fe().createElement("img",{className:yv,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"}),fe().createElement(tv,{"data-ppui":"true"},fe().createElement(av,{"data-ppui":"true"},fe().createElement(lv,{span:l.length,align:"center",className:fv,mobile:{placement:"ab123"},"data-ppui":"true"},t))))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-date-input");const{caretSize:xv,caretTopOffset:wv,caretCenterOffset:_v}=fg,Sv={width:"100%"},Cv=e=>{const t=["end"===e?be.color.selectedRange.main:be.color.background.surface,"end"===e?be.color.background.surface:be.color.selectedRange.main];return(0,he.style)({background:`linear-gradient(to right, ${t[0]} 50%, ${t[1]} 50%)`},`calendar_range_${e}`)},Ev=e=>({width:e,height:e}),$v=()=>(0,he.style)([pl,mg,vg,xg,{backgroundColor:be.color.background.surface,position:"absolute",top:`calc(${be.size.field.lg} + ${be.space[100]})`,padding:be.space[200],border:`${be.border.thickness.normal} solid ${be.color.background.surface}`,borderRadius:be.border.radius.sm,zIndex:Ve,cursor:"initial",vars:{[xv]:be.size.pointerWidth.lg,[wv]:`calc(${be.size.pointerWidth.lg} / 2)`,[_v]:be.size.pointerWidth.lg}}],"calendar_container"),Av=(0,he.style)({cursor:"pointer"},"calendar_trigger"),Tv=(0,he.style)([$v(),{selectors:{"&:after":{top:`calc(${be.border.thickness.normal} * -1)`}}}],"calendar_container"),Ov=(0,he.style)([$v(),{right:`calc(${be.space[100]} * -1)`,selectors:{"&:before":{left:`calc(100% - ((${be.size.icon.lg} / 2) + ${be.space[200]}))`},"&:after":{top:`calc(${be.border.thickness.normal} * -1)`,left:`calc(100% - ${be.space[600]})`}}}],"calendar_container-left"),zv=(0,he.style)([$v(),{left:`calc(${be.space[100]} * -1)`,selectors:{"&:before":{left:`calc(${be.size.icon.lg} / 2)`},"&:after":{top:`calc(${be.border.thickness.normal} * -1)`,left:`calc((${be.size.icon.lg} / 2) - ${be.space[100]})`}}}],"calendar_container-right"),Fv=((0,he.style)({display:"flex",alignItems:"center",justifyContent:"space-between",whiteSpace:"nowrap","@media":{[`screen and (max-width: ${Ce})`]:{marginTop:be.space[50]}}},"calendar_nav"),(0,he.style)({},"nav_prev_btn"),(0,he.style)({},"nav_next_btn"),(0,he.style)({selectors:{"&:after":{display:"none"}}},"calendar_nav-no-focus"),(0,he.style)({visibility:"hidden"},"calendar_nav-hidden"),(0,he.style)({},"full_width"));(0,he.globalStyle)(`${Fv} table`,Sv);const Pv=(0,he.style)({borderSpacing:0,"@media":{[`screen and (max-width: ${Se})`]:Sv}},"calendar_table");(0,he.globalStyle)(`${Pv} th, ${Pv} td`,{textAlign:"center",padding:`${be.space[25]} 0`}),(0,he.style)({borderTop:`${be.border.thickness.normal} solid transparent`,borderBottom:`${be.border.thickness.normal} solid transparent`,backgroundColor:`${be.color.selectedRange.main}`},"cell_in_range"),Cv("start"),Cv("end"),(0,he.style)([Ev(be.size.tapTarget.default),St,{border:"none",padding:0,margin:`0 ${be.space[25]}`,textDecoration:"none",cursor:"pointer",borderRadius:be.border.radius.interactive,backgroundColor:"transparent",selectors:{"&:hover":{border:`${be.border.thickness.emphasis} solid ${be.color.primary.mainHover}`}},"@media":{[`screen and (max-width: ${we})`]:Ev(be.size.tapTarget.sm),[`screen and (min-width: ${we}) and (max-width: ${_e})`]:Ev(be.size.tapTarget.sm)}}],"date"),(0,he.style)({color:be.color.selectedRange.contrast},"date_in_range"),(0,he.style)({color:be.color.background.mediumContrast},"date_not_current"),(0,he.style)({textDecorationLine:"line-through",cursor:"not-allowed",color:be.color.background.mediumContrast,selectors:{"&:hover":{border:"none"}}},"disabled"),(0,he.style)({border:`${be.border.thickness.normal} solid ${be.color.background.highContrast}`},"today"),(0,he.style)({color:be.color.selected.contrast,border:`${be.border.thickness.normal} solid ${be.color.selected.main}`,backgroundColor:be.color.selected.main},"selected"),(0,he.style)({color:be.color.specialty.main,border:`${be.border.thickness.normal} solid ${be.color.specialty.main}`},"due_date"),(0,he.style)({color:be.color.selected.contrast,border:`${be.border.thickness.normal} solid ${be.color.specialty.main}`},"due_date_selected"),(0,he.style)([Ev(be.size.tapTarget.default),{display:"inline-block",position:"relative","@media":{[`screen and (max-width: ${we})`]:Ev(be.size.tapTarget.sm),[`(min-width: ${we}) and (max-width: ${_e})`]:Ev(be.size.tapTarget.sm)}}],"icon_container"),(0,he.style)({position:"absolute",bottom:0,right:0,pointerEvents:"none",backgroundColor:be.color.background.surface,borderRadius:be.border.radius.interactive,color:be.color.specialty.main},"icon"),(0,he.style)({display:"flex",alignItems:"center",marginTop:be.space[100],marginInlineStart:be.space[200]},"legend"),(0,he.style)({display:"flex",alignItems:"center",whiteSpace:"nowrap",marginInlineEnd:be.space[200]},"legend_item"),(0,he.style)({color:be.color.background.mediumContrast},"legend_item_label"),(0,he.style)({width:be.typography.caption.size,height:be.typography.caption.size,display:"inline-block",marginInlineEnd:be.space[50],borderRadius:be.border.radius.interactive},"key"),(0,he.style)({backgroundColor:be.color.background.surface,color:be.color.specialty.main,marginInlineEnd:be.space[50],borderRadius:be.border.radius.interactive},"due_date_legend_key");const Rv=(0,he.style)({},"date_input-wrapper");(0,he.globalStyle)(`${Rv} input`,{color:be.color.background.mediumContrast}),(0,he.globalStyle)(`${Rv} input:focus`,{color:be.color.background.highContrast}),(0,he.globalStyle)(`${Rv} [dir="rtl"] input`,{textAlign:"right",direction:"ltr"}),me.endFileScope();var Lv={mask:"m`/d`/y",lazy:!1,blocks:{d:{mask:Ny.Range,from:1,to:31,maxLength:2,placeholderChar:"D"},m:{mask:Ny.Range,from:1,to:12,maxLength:2,placeholderChar:"M"},y:{mask:Ny.Range,from:1900,to:2999,maxLength:4,placeholderChar:"Y"}}},Nv=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=el((0,pe.useState)(!1),2),u=c[0],d=c[1],p=(0,pe.useRef)(),f=el((0,pe.useState)(Tv),2),m=f[0],h=f[1],g=function(e){new Je(e.key||e.keyCode).IS_ESC&&o(!1)},y=function(e){a.current.contains(e.target)||p.current.contains(e.target)||o(!1)},b=function(){o(!1)};return(0,pe.useLayoutEffect)((function(){h(Tv);var e,r,n=Ie()&&window.innerWidth<752;return function(){var e,t=(e=a)&&e.current?e.current:null,r=t.getBoundingClientRect(),n=Ie()&&window.innerWidth||document.documentElement.clientWidth,o=200+.0625*((Ie()&&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?h(zv):l.right+o>l.width&&h(Ov)}else t&&(r.left<o?h(zv):r.right+o>n&&h(Ov))}(),d(n),!n&&t&&(window.addEventListener("resize",b),document.addEventListener("keydown",g),s||document.addEventListener("click",y),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",b),document.removeEventListener("keydown",g),document.removeEventListener("click",y)}}),[t]),u||s?fe().createElement(Qp,{isOpen:t,onCloseComplete:function(){return o(!1)},noCloseButton:!0,title:r,skipFormFocus:!0,"data-ppui":"true"},s&&!u?fe().createElement("div",{className:Fv,"data-ppui":"true"},n):n):t?fe().createElement("div",{className:m,ref:p,"data-ppui":"true"},n):null};function Iv(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 Mv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Iv(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hv(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 jv(e){return e?new Intl.DateTimeFormat("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}).format(e):""}var Bv=Intl.DateTimeFormat().resolvedOptions().timeZone,Dv=["name","label","className","calendar","isCalendarVisible","wrapperContainerRef","onShowCalendar","maskOptions","selectedDate","onSelection","parseDate","formatDate","formatterSkeleton","sheetContainerRef","onComplete","onAccept","calendarInSheet","isLabelHidden"];(0,pe.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,m=e.formatterSkeleton,h=void 0===m?"yyyyMMdd":m,g=e.sheetContainerRef,y=e.onComplete,b=e.onAccept,v=e.calendarInSheet,k=e.isLabelHidden,x=ye(e,Dv);d||(d=function(){});var w=(0,pe.useContext)(ja),_=(0,pe.useRef)(),S=(0,pe.useRef)(),C=t||S,E=(0,pe.useRef)(),$=(0,pe.useMemo)((function(){return function(e,t,r){if(!e||!e.dateInputMaskFormat)return Mv(Mv({},Lv),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 Mv(Mv(Mv({},Lv),{},{blocks:{d:Mv(Mv({},Lv.blocks.d),{},{placeholderChar:a.day}),m:Mv(Mv({},Lv.blocks.m),{},{placeholderChar:a.month}),y:Mv(Mv({},Lv.blocks.y),{},{placeholderChar:a.year})}},r),{},{mask:i})}(w,h,c)}),[h,c]),A=(0,pe.useMemo)((function(){return function(e,t,r,n){if(!e||!e.dateTimeFormatter)return{_formatDate:r||jv,_parseDate:n||Hv};var a=e.dateTimeFormatter({style:t,timeZone:Bv});return{_formatDate:r||function(e){return e?a.format(e):""},_parseDate:n||function(e){return e&&a.parse(e)}}}(w,h,f,p)}),[f,p]),T=A._formatDate,O=A._parseDate,z=i&&fe().createElement(fe().Fragment,null,fe().createElement(_i,{size:"sm",onMouseDown:function(e){return e.preventDefault()},onClick:function(){C.current.focus(),s(!o)},svgElementRef:_,color:"sysColorBackgroundMediumContrast",className:Av,"aria-hidden":"true","data-ppui":"true"}),fe().createElement(Nv,{isCalendarVisible:o,onShowCalendar:s,label:n,sheetContainerRef:g,wrapperContainerRef:l,calendarTriggerRef:_,calendarInSheet:v,"data-ppui":"true"},i)),F=T(u).replace(/\D/g,"");E.current=F;var P=Ke(Rv,a);return fe().createElement(Iy,ge({name:r,label:n,rightIcon:z,maskOptions:$,className:P,inputMode:"numeric","data-ppui-info":"date-input_4.1.5__8.12.0"},x,{onComplete:function(e,t,r){t!==E.current&&d(O(e)),y&&y(e,t,r)},onAccept:function(e,t,r){t||d(null),b&&b(e,t,r)},value:F,ref:C,isLabelHidden:k}))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-dialog");const{variables:Vv}=n,{ppuiEaseInOut:Wv}=Vv,Uv=be.space[400],Gv=`calc(${be.size.media.xl} * 0.75)`,qv=`screen and (max-width: ${Se})`,Kv=`screen and (max-width: ${_e})`,Yv=`screen and (min-width: ${Se})`,Xv={borderTopLeftRadius:be.border.radius.jumbo,borderTopRightRadius:be.border.radius.jumbo},Qv=(e="center")=>(0,he.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`dialog-container_center_${e}`),Zv=((0,he.style)([Qv(),{width:"75%",maxWidth:Gv,"@media":{[qv]:{width:`calc(100% - ${be.space[600]})`},[Kv]:{width:`calc(100% - ${be.space[400]})`}}}],"dialog-container_middle"),(0,he.style)([{minHeight:"8rem",borderRadius:be.border.radius.jumbo,maxHeight:"75dvh",opacity:0,transition:`opacity ${be.motion.duration.depart} ${Wv}`}],"dialog"),(0,he.style)(Xv,"dialog_header_scrolled"),(0,he.style)([Qv("center"),{position:"fixed",inset:0,zIndex:We,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${be.motion.duration.depart} ease-in-out,\n visibility ${be.motion.duration.depart} ${be.motion.duration.depart}`,backgroundColor:be.color.overlay.mainHover,boxShadow:"none"}],"dialog_backdrop"));(0,he.globalStyle)(`${Zv} [aria-hidden="false"], ${Zv} [aria-hidden="true"]`,{transitionDuration:be.motion.duration.arrive}),(0,he.style)({visibility:"visible",opacity:1,transition:`opacity ${be.motion.duration.depart} ease-in-out`},"dialog_backdrop_show"),(0,he.style)({opacity:1,transition:`opacity ${be.motion.duration.depart} ease-in-out ${be.motion.duration.depart}`},"dialog_backdrop_show_article"),(0,he.style)({maxHeight:"70dvh",padding:`0 ${Uv}`},"dialog-content"),(0,he.style)({"@media":{[Kv]:{padding:`0 ${be.space[200]} ${be.space[300]}`}}},"dialog-content_no_padding");const Jv=(0,he.style)({position:"absolute",right:be.space[50],top:be.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:be.space[50],right:"auto","@media":{[Yv]:{left:be.size.indicator.md}}}}},"dialog-content_close");(0,he.globalStyle)(`${Jv}`,{"@media":{[Yv]:{right:be.size.indicator.md,top:be.space[150]}}}),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-divider"),(0,he.style)({border:"none",borderTop:`${be.border.thickness.normal} solid ${be.color.structure.divider}`,margin:`${be.space[150]} 0`},"divider_base"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-dropdown-menu");const ek=(0,he.style)({position:"relative",textAlign:"start"},"dropdown-base"),tk=(0,he.style)([Gr,da,{pointerEvents:"none",position:"absolute",transition:`font-size ${be.motion.duration.hover} ease-in-out, top ${be.motion.duration.hover} ease-in-out, background-color ${be.motion.duration.hover} linear`,insetInlineStart:be.space[150],top:`calc((${be.size.field.lg} - ${be.typography.fieldLabelLg.lineHeight}) / 2)`,insetInlineEnd:`calc(${be.space[150]} + ${be.size.icon.sm})`}],"dropdown-label"),rk=(0,he.style)([Ta],"dropdown-button_active"),nk=(0,he.style)([Kr,da,{boxSizing:"border-box",height:be.size.field.lg,width:"100%",border:`${be.border.thickness.normal} solid ${be.color.structure.borderLowContrast}`,borderRadius:be.border.radius.sm,backgroundColor:be.color.background.surface,paddingTop:`calc(${be.space[100]} + ${be.space[25]} + ${be.typography.fieldLabelSm.lineHeight} - ${be.border.thickness.normal})`,paddingInlineEnd:`calc(${be.space[150]} + ${be.size.icon.sm} - ${be.border.thickness.normal})`,paddingInlineStart:`calc(${be.space[150]} - ${be.border.thickness.normal})`,paddingBottom:`calc(${be.space[150]} - ${be.border.thickness.normal})`,cursor:"pointer",textAlign:"start",":focus":Oa}],"dropdown-button"),ak=(0,he.style)({border:`${be.border.thickness.emphasis} solid ${be.color.error.main}`,paddingTop:`calc(${be.space[100]} + ${be.space[25]} + ${be.typography.fieldLabelSm.lineHeight} - ${be.border.thickness.emphasis})`,paddingInlineEnd:`calc(${be.space[150]} + ${be.size.icon.sm} - ${be.border.thickness.emphasis})`,paddingInlineStart:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`,paddingBottom:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`},"dropdown-button_error"),ik=(0,he.style)([Wr,{top:be.space[100]}],"dropdown-label_active"),ok=(0,he.style)({pointerEvents:"none",position:"absolute",top:`calc(${be.space[100]} + ${be.space[150]})`,insetInlineEnd:`calc(${be.space[100]} + ${be.space[150]})`,marginInlineStart:be.space[150]},"dropdown-affordance_icon"),lk=(0,he.style)({...zt,color:be.color.background.mediumContrast,display:"flex",marginTop:be.space[50],alignItems:"center"},"dropdown-helper_text"),sk=(0,he.style)({...zt,color:be.color.background.mediumContrast,display:"flex",marginTop:be.space[50],alignItems:"center"},"dropdown-error_text"),ck=(0,he.style)({color:be.color.error.main,marginInlineEnd:be.space[50]},"dropdown-error_icon"),uk=(0,he.style)({opacity:0,position:"absolute",pointerEvents:"none",width:0,height:0},"dropdpown-select_box");me.endFileScope();var dk=["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 pk(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 fk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pk(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mk=function(e){return e&&e.current?e.current:null},hk=(0,pe.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,m=e.label,h=void 0===m?"Label":m,g=e.name,y=e.errorText,b=e.errorIconAriaLabel,v=void 0===b?"Error":b,k=e.helperText,x=e.value,w=e.options,_=void 0===w?[]:w,S=e.ariaLabelledby,C=e.renderButtonContent,E=e.onChange,$=e.onClose,A=e.onClick,T=e.onKeyDown,O=e.isLoadingOptions,z=e.showUnselect,F=ye(e,dk),P="dropdownMenuButton_".concat(f||h.replace(/\s/g,"")),R=(0,pe.useRef)(),L=null!=t?t:R,N="dropdownMenuSelect_".concat(f||h.replace(/\s/g,"")),I=el((0,pe.useState)(!1),2),M=I[0],H=I[1],j=el((0,pe.useState)(!!x),2),B=j[0],D=j[1],V=el((0,pe.useState)(!1),2),W=V[0],U=V[1];(0,pe.useEffect)((function(){var e,t=mk(L),r=t&&(null===(e=window)||void 0===e?void 0:e.getComputedStyle(t));U("rtl"===(null==r?void 0:r.direction))}));var G=function(e){H((function(e){return!e})),D(!e.detail)},q=function(e){H(!1);var t,r=mk(L);if(r&&(u?r.blur():r.focus()),E){var n=_.length>0&&e>=0;t=n?_[e].value||_[e].label:null,z&&(t=n?_[e].value:null),E({target:{selectedIndex:e,value:t}})}},K=k?"dropdown_helperText":y&&"dropdown_errorText",Y="",X="",Q=-1;if(x){for(var Z=0;Z<_.length;Z++)if(_[Z].value===x){Y=C?C():_[Z].label,X=_[Z].value,Q=Z;break}}else!x&&_.length>0&&""===_[0].value&&(Q=0);var J=M?Ti:$i,ee=fe().createElement(J,{size:"sm",className:ok,color:"BackgroundMediumContrast","aria-hidden":"true","data-ppui":"true"}),te=S?"".concat(P,"-label ").concat(S):"".concat(P,"-label");Y&&(te="".concat(te," ").concat(P));var re=fk(fk(fk({},K&&{"aria-describedby":K}),{"aria-labelledby":te}),F),ne=Ke(nk,M&&rk,y&&ak),ae=Ke(tk,(M||Y)&&ik);return fe().createElement("div",{className:Ke(ek,r),id:f,"data-ppui-info":"dropdown-menu_4.2.5__8.12.0"},fe().createElement("select",{className:uk,"aria-hidden":"true",id:N,name:g,tabIndex:-1,onChange:function(e){return q(e.target.selectedIndex-1)},value:X,autoComplete:F.autoComplete,"data-ppui":"true"},fe().createElement("option",{disabled:!0,value:"","data-ppui":"true"},h),_.length>0&&_.map((function(e,t){return fe().createElement("option",{key:t,value:e.value?e.value:e.label,"data-ppui":"true"},e.label)}))),fe().createElement("button",ge({className:Ke(ne,l),type:"button",id:P,ref:L,"aria-haspopup":"listbox","aria-expanded":M,onClick:function(e){((null==_?void 0:_.length)||O)&&(G(e),A&&A(e))},onKeyDown:function(e){var t=new Je(e.key||e.keyCode);!M&&(t.IS_ARROW_UP||t.IS_ARROW_DOWN)&&function(e){return!(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)}(e)&&(e.preventDefault(),G(e)),T&&T(e)}},re,{"data-ppui":"true"}),ee,fe().createElement("span",{"data-ppui":"true"},Y)),fe().createElement("label",{id:"".concat(P,"-label"),htmlFor:P,className:Ke(ae,s),"data-ppui":"true"},fe().createElement("span",{"data-ppui":"true"},h)),fe().createElement(tf,{initialItemFocus:B,isOpen:M,mobileTitle:h,onClose:function(e){H(!1),$&&$(e)},onSelection:q,selectedIndex:Q,triggerElementRef:L,options:_,className:a,containerClassName:n,itemClassName:i,mobileHeaderClassName:o,sheetClassName:d,sheetWrapperClassName:p,rtl:W,returnFocusToTrigger:!u,isLoadingOptions:O,searchEnabled:!0,"data-ppui":"true"}),function(e,t,r,n){if(e){var a={className:ck,role:"img","aria-label":t},i=fe().createElement(zi,ge({size:"sm"},a,{"data-ppui":"true"}));return fe().createElement("div",{className:sk,id:n,role:"alert","data-ppui":"true"},i,fe().createElement("span",{"data-ppui":"true"},e))}return r?fe().createElement("div",{className:lk,id:n,"data-ppui":"true"},fe().createElement("span",{"data-ppui":"true"},r)):null}(y,v,k,K))}));me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-error-view");const gk=(0,he.style)({display:"flex",alignItems:"center",justifyContent:"center",height:be.size.media.sm},"error-view_base"),yk=(0,he.style)({display:"flex",flexDirection:"column"},"error-view_wrapper"),bk=(0,he.style)({position:"fixed",inset:0,backgroundColor:be.color.background.surface,zIndex:We},"error-view_fullscreen-base"),vk=(0,he.style)({display:"flex",flexDirection:"column",alignItems:"center",position:"absolute",top:"33%",width:"100%",padding:`0 ${be.space[400]}`},"error-view_fullscreen-wrapper"),kk=(0,he.style)([rn,{marginBottom:be.space[200],textAlign:"center"}],"error-view_title"),xk=(0,he.style)({textAlign:"center",marginBottom:be.space[200]},"error-view_subtitle"),wk=(0,he.style)({display:"flex",flexDirection:"column",alignItems:"center"},"error-view_button-wrap"),_k=(0,he.style)({margin:`${be.space[100]} 0`},"error-view_primary-button");me.endFileScope();var Sk=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,pe.useLayoutEffect)((function(){return c&&Me()&&(document.body.style.overflow="hidden"),function(){c&&Me()&&(document.body.style.overflow="auto")}}),[]);var u=gk,d=yk;return c&&(u=bk,d=vk),fe().createElement("section",{className:u,"data-ppui-info":"error-view_2.1.3__8.12.0","aria-live":"polite"},fe().createElement("div",{className:d,"data-ppui":"true"},fe().createElement(Zn,{size:"sm",className:kk,"data-ppui":"true"},n),fe().createElement(ea,{clampAtLine:3,className:xk,"data-ppui":"true"},i),fe().createElement("div",{className:wk,"data-ppui":"true"},fe().createElement(Km,{onClick:null==o?void 0:o.onClick,className:Ke(_k,null==o?void 0:o.className),"data-ppui":"true"},null!==(t=null==o?void 0:o.title)&&void 0!==t?t:"title"),l&&fe().createElement(Km,ge({tertiary:!0},l,{"data-ppui":"true"}),l.title))))};me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-facet");const Ck=(0,he.keyframes)({"0%":{opacity:0},"100%":{opacity:1}},"button_fade_in"),Ek=(0,he.style)({position:"relative",textAlign:"center",backgroundColor:be.color.background.surface,borderRadius:be.border.radius.jumbo},"facet_container"),$k=(0,he.style)([{width:"100%",cursor:"pointer",display:"inline-grid",backgroundColor:be.color.background.surface,borderRadius:be.border.radius.jumbo}],"facet_label"),Ak=(0,he.style)([tn,Pt,{justifyContent:"center",alignItems:"center",cursor:"pointer",wordWrap:"break-word",color:be.color.background.highContrast}],"facet_label_inner_span"),Tk=(0,he.style)({color:"transparent",pointerEvents:"none",":hover":{color:"transparent"},":active":{color:"transparent"},":visited":{color:"transparent"}},"facet_processing_state"),Ok={sm:(0,he.style)({minWidth:"2.75rem",maxWidth:"8rem"},"facet_sm_container"),lg:(0,he.style)({minWidth:"4rem",maxWidth:"10rem"},"facet_lg_container")},zk={sm:(0,he.style)({padding:`${be.space[100]} ${be.space[150]}`,height:be.space[400]},"facet_size_sm"),lg:(0,he.style)({padding:`${be.space[150]} ${be.space[300]}`,height:be.space[500]},"facet_size_lg")},Fk=(0,he.style)({opacity:0,position:"absolute"},"facet_control"),Pk=(0,he.style)({position:"absolute",inset:0,borderRadius:"inherit",textAlign:"center",opacity:0,animation:`${Ck} ${be.motion.duration.hover} ease-in forwards`,display:"flex",justifyContent:"center",alignItems:"center",paddingRight:0},"facet_state_overlay"),Rk=(0,he.style)({color:be.color.background.highContrast},"facet_loading_spinner");(0,he.globalStyle)(`${Ek}:has(${Fk}:focus)`,{...Oa}),(0,he.globalStyle)(`${Fk}:hover ~ label`,{outline:`${be.border.thickness.emphasis} solid ${be.color.unselected.mainHover}`,outlineOffset:`calc(${be.border.thickness.emphasis}*-1)`}),(0,he.globalStyle)(`${Fk}:checked ~ label`,{outline:`${be.border.thickness.emphasis} solid ${be.color.selected.main}`,color:be.color.selected.main,outlineOffset:`calc(${be.border.thickness.emphasis}*-1)`}),me.endFileScope();var Lk=["state","selected","screenReaderText","size","className","inputClassName","labelClassName","id","label","onChange","onClick","value"];(0,pe.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,m=e.value,h=ye(e,Lk),g=null!=u?u:Ze("Facets_"),y={};"processing"===n&&(y.as="span","sm"===o&&(y.size="xs"));var b={defaultChecked:!!a};p&&(b.onChange=p),f&&(b.onClick=f),b.disabled=n&&"initial"!==n;var v=b.disabled?fe().createElement("span",{className:Pk,"data-ppui":"true"},"processing"===n&&fe().createElement(hs,ge({},y,{className:Rk,"data-ppui":"true"}))):null,k=i?fe().createElement("span",{role:"status",className:it,"data-ppui":"true"},i):null,x=["sm","lg"].includes(o)?o:"lg",w=Ke($k,zk[x],c),_=Ke(Ek,Ok[x],l),S=Ke(Ak,"processing"===n&&Tk);return fe().createElement("div",{className:_,"data-ppui-info":"facet_1.2.2__8.12.0"},fe().createElement("input",ge({className:Ke(Fk,s),id:g,type:"checkbox","aria-label":d,value:m,ref:t},b,h,{"data-ppui":"true"})),v,fe().createElement("label",{className:w,htmlFor:g,"data-ppui":"true"},fe().createElement("span",{className:S,"data-ppui":"true"},d)),k)})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-focus-flow");const Nk=(e,t="focus_flow")=>`${t}_${e}`,Ik="44rem",Mk=`calc(2 * ${be.space[300]})`;(0,he.style)({position:"fixed",inset:"0",backgroundColor:be.color.background.surface,zIndex:We},Nk("base")),(0,he.style)({height:"100%",margin:"0 auto",display:"flex",flexDirection:"column"},Nk("container")),(0,he.style)([St,{overflow:"auto",position:"relative",borderRadius:"inherit",padding:`${be.space[200]} 0`,margin:"0 auto",width:"36rem",flexBasis:"100%","@media":{[`screen and (max-width: ${Ik})`]:{width:"100%",padding:be.space[200]}}}],Nk("content")),(0,he.style)({width:"100%"},Nk("header")),(0,he.style)({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:be.space[200],position:"relative",flex:"0 0 auto",zIndex:"1",width:Ik,margin:"0 auto",padding:`${be.space[150]} 0`,"@media":{[`screen and (max-width: ${Ik})`]:{width:"100%",padding:`${be.space[100]} ${be.space[200]}`}}},Nk("header_content")),(0,he.style)({flex:`0 0 ${be.size.icon.lg}`},Nk("header_action")),(0,he.style)([St,{flex:`1 1 ${Mk}`,margin:`${be.space[100]} 0`,textAlign:"center"}],Nk("header_title")),(0,he.style)({flex:`0 0 ${be.size.icon.lg}`},Nk("header_close")),(0,he.style)({display:"flex",flex:`1 1 ${Mk}`,justifyContent:"center",marginTop:`${be.space[100]}`,width:`${be.size.icon.md}`,height:`${be.size.icon.md}`},Nk("header_logo")),(0,he.style)([fl],Nk("header_scrolled")),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-hero-currency");const Hk=44/64,jk=1/Hk,Bk={position:"absolute",content:"",top:be.space[50],bottom:be.space[50]},Dk=(0,he.style)({":after":{borderRight:`${be.border.thickness.emphasis} solid`,borderRightColor:"transparent"},selectors:{"[dir='rtl'] &:before":{borderRight:`${be.border.thickness.emphasis} solid`,borderRightColor:"transparent"}}},"hero_currency-border_right_color"),Vk=((0,he.style)(Bk,"hero_currency-cursor_position"),(0,he.keyframes)({"50%":{borderRightColor:"transparent"}},"hero_currency-blinker")),Wk={borderRight:`${be.border.thickness.emphasis} solid`,borderRightColor:be.color.background.highContrast,animation:`${Vk} 1s step-start infinite`},Uk=((0,he.style)(Wk,"hero_currency-animateCursor"),(0,he.style)({borderBottom:`${be.border.thickness.normal} solid transperent`},"hero_currency-base")),Gk=(0,he.style)({textAlign:"center"},"hero_currency-center_aligned"),qk=(0,he.style)({marginBottom:`calc(${be.space[300]} + ${be.space[75]})`},"hero_currency-error_text_spacing"),Kk=(0,he.style)({display:"inline-flex",fontSize:be.space[800],lineHeight:`calc(${be.space[800]} + ${be.space[50]})`,transformOrigin:"left",scale:Hk,pointerEvents:"none",transition:"scale 200ms ease-in-out",selectors:{"[dir='rtl'] &":{transformOrigin:"right"}}},"hero_currency-view"),Yk=(0,he.style)({display:"inline-block"},"hero_currency-currency_part"),Xk=(0,he.style)({selectors:{[`${Uk}:hover &`]:{scale:.75}}},"hero_currency-no_focus"),Qk=(0,he.style)({transformOrigin:"center",selectors:{"[dir='rtl'] &":{transformOrigin:"center"}}},"hero_currency-center_view"),Zk=(0,he.style)({height:0},"hero_currency-text_input");(0,he.globalStyle)(`${Zk} > div:first-of-type`,{opacity:0});const Jk=(0,he.style)({scale:1},"hero_currency-focused_view"),ex=(0,he.style)({":after":Wk,selectors:{"[dir='rtl'] &:before":Wk}},"hero_currency-focus_enter"),tx=(0,he.style)({color:be.color.background.mediumContrast,fontWeight:"normal"},"hero_currency-trailing_zeros_focused"),rx=(0,he.style)({color:be.color.background.highContrast},"hero_currency-trailing_zeros_focused_default"),nx=(0,he.style)({color:be.color.background.highContrast,selectors:{"[dir='rtl'] &":{opacity:1}}},"hero_currency-symbol"),ax=(0,he.style)({color:be.color.background.highContrast,fontWeight:"normal",position:"relative",":after":Bk,selectors:{"[dir='rtl'] &":{order:3,direction:"ltr"},"[dir='rtl'] &:after":{content:"none"},"[dir='rtl'] &:before":Bk}},"hero_currency-entered"),ix=(0,he.style)({color:be.color.background.highContrast,selectors:{"[dir='rtl'] &":{order:2}}},"hero_currency-trailing_zeros_default"),ox=(0,he.style)({marginInlineStart:be.space[100],alignSelf:"center",pointerEvents:"auto",scale:jk,transformOrigin:"left",selectors:{":focus &:after":{boxShadow:"none",border:"none"},"[dir='rtl'] &":{transformOrigin:"right",order:4}}},"hero_currency-edit_icon");me.endFileScope();var lx=["name","id","maskOptions","currencyType","prefix","onAccept","onFocus","onBlur","onKeyDown","value","className","inputClassName","label","showEditIcon","align"];function sx(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 cx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sx(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,pe.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,m=e.onKeyDown,h=void 0===m?null:m,g=e.value,y=void 0===g?"":g;e.className;var b=e.inputClassName,v=e.label,k=void 0===v?"Enter amount":v,x=e.showEditIcon,w=e.align,_=void 0===w?"left":w,S=ye(e,lx);c||(c=function(){});var C=(0,pe.useRef)(),E=el((0,pe.useState)(""),2),$=E[0],A=E[1],T=el((0,pe.useState)(""),2),O=T[0],z=T[1],F=t||C,P=(0,pe.useContext)(ja),R=(0,pe.useMemo)((function(){return Va(P,o,l)}),[P,o,l]),L=R.currencyMaskOptions,N=R.intlCurrencyPrefix,I=R.intlCurrencySuffix;function M(){if(null==F?void 0:F.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:B?"":"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):""}}(F.current.value,L.radix,L.scale);A(e.entered),z(e.trailingZeros)}}(0,pe.useEffect)((function(){M()}),[y]);var H=s||N||I||"$",j=el((0,pe.useState)(!1),2),B=j[0],D=j[1],V=Ke(Uk,"center"===_&&Gk,(S.errorText||S.helperText||S.successText)&&qk),W=Ke(Kk,B&&Jk,!B&&Xk,"center"===_&&Qk),U=Ke(ax,!B&&Dk,B&&ex,Yk),G=Ke(!B&&ix,B&&tx,B&&!y&&rx,Yk),q=cx(cx({},L),{},{normalizeZeros:!1,padFractionalZeros:!1}),K=0===(null==L?void 0:L.scale)?"numeric":"decimal";return fe().createElement("div",{className:V,id:i,"data-ppui-info":"hero-currency_3.2.7__8.12.0"},fe().createElement(Jy,ge({name:n,label:k,inputMode:K,value:y,maskOptions:q,inputClassName:b,className:Zk,onFocus:function(e){D(!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(D(!1),""!==$){var t=$.replaceAll(L.thousandsSeparator,"").replace(L.radix,".");c(null==$?void 0:$.concat(O),null==t?void 0:t.concat(O),null==t?void 0:t.concat(O))}f&&f(e)},onAccept:c,onKeyDown:function(e){new Je(e.key||e.keyCode).IS_SIDE_NAVIGATION&&(e.preventDefault(),e.stopPropagation()),h&&h(e)},onInput:M,prefix:H,autoComplete:"off",ref:F},S,{"data-ppui":"true"})),fe().createElement("div",{className:W,"aria-hidden":"true","data-ppui":"true"},fe().createElement("span",{className:Ke(nx,Yk),"data-ppui":"true"},H),fe().createElement("span",{className:U,"data-ppui":"true"},$),fe().createElement("span",{className:G,"data-ppui":"true"},O),!B&&x&&y&&fe().createElement(xp,{buttonType:"tertiary",svgIconComponent:Pi,className:ox,onClick:function(){(null==F?void 0:F.current)&&F.current.focus()},tabIndex:"-1","data-ppui":"true"})))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-horizontal-scroll");const{ppuiEaseInOut:ux}=n?.variables,dx=(0,he.style)({position:"relative"},"horizontal_scroll_base"),px=(0,he.style)({display:"flex",flexDirection:"row",listStyle:"none",margin:0,overflowY:"-moz-hidden-unscrollable",overflowX:"auto",padding:`${be.space[200]} 0`},"horizontal_scroll_item_list");(0,he.globalStyle)(`${px} > *`,{flex:"0 0 auto"});const fx=(0,he.style)({margin:`0 ${be.space[100]}`,"@media":{[`(max-width:${Se})`]:{margin:`0 ${be.space[75]}`}}},"horizontal_scroll_item"),mx=(0,he.style)({position:"absolute",top:0,display:"flex",alignItems:"center",height:`calc(100% - ${be.size.indicator.lg} - ${be.space[200]})`,opacity:0,transition:`opacity 0.3s ${ux}`,pointerEvents:"none",selectors:{[`${dx}:hover &`]:{opacity:1}}},"horizontal_scroll_button_nav");(0,he.globalStyle)(`${mx} > button`,{pointerEvents:"all",...ul}),(0,he.globalStyle)(`${mx} > button:hover`,{...ml}),(0,he.globalStyle)(`${mx}b> button:focus:after`,{display:"none"}),(0,he.style)([mx,{left:be.space[200],selectors:{"[dir='rtl'] &":{left:"unset",right:be.space[200]}}}],"horizontal_scroll_button_previous"),(0,he.style)([mx,{right:be.space[200],selectors:{"[dir='rtl'] &":{left:be.space[200],right:"unset"}}}],"horizontal_scroll_button_next"),(0,he.style)({overflowX:"visible"},"horizontal_scroll_item_list_desktop"),(0,he.style)({overflowX:"hidden"},"horizontal_scroll_page_container"),(0,he.style)({position:"relative",left:0,transition:`left 1s ${ux}`,selectors:{"[dir='rtl'] &":{right:0,left:"unset",transition:`right 1s ${ux}`}}},"horizontal_scroll_page"),(0,he.style)({paddingBottom:be.space[200],textAlign:"center",lineHeight:be.size.indicator.lg},"horizontal_scroll_dots"),(0,he.style)({margin:`0 ${be.space[100]}`,height:be.size.indicator.lg,width:be.size.indicator.lg,borderRadius:be.border.radius.interactive,backgroundColor:be.color.unselected.main,display:"inline-block"},"horizontal_scroll_dot"),(0,he.style)({backgroundColor:be.color.selected.main},"horizontal_scroll_dot_selected"),me.endFileScope();var hx=be.space[200],gx=be.space[150],yx=be.space[200],bx=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(hx," + ").concat(gx," / 2)"),o=i?"calc(100% - ".concat(i,")"):"100%";return{flexBasis:"calc(".concat(o," / ").concat(r," - ").concat(gx,")")}}return{flexBasis:"calc(100% / ".concat(r," - ").concat(yx,")")}},vx=["items","hasFixedSizeItems","isMobileBreakpoint","itemClassName","numOfVisibleItems","renderItem"];(0,pe.forwardRef)((function(e,t){var r=e.items;e.hasFixedSizeItems,e.isMobileBreakpoint;var n=e.itemClassName;e.numOfVisibleItems;var a=e.renderItem,i=ye(e,vx),o=function(e){e.target.scrollIntoView({block:"nearest"})},l=r.map((function(t,i){var l=null==bx?void 0:bx(e);return fe().createElement("li",{"aria-label":"".concat(i+1,"-").concat(r.length),key:t.id,"data-item-id":t.id,style:l,className:Ke(n,fx),"data-ppui":"true"},a(t,{tabIndex:"0",role:"button",onFocus:o}))}));return fe().createElement("ul",ge({className:px,ref:t},i,{"data-ppui":"true"}),l)})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-legal-consent");const kx=`calc(${be.size.circle.xs} + ${be.space[150]} + ${be.space[25]})`,xx=(0,he.style)({position:"relative",textAlign:"start",marginBottom:0},"checkbox_base"),wx=(0,he.style)([St,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"block",paddingInlineStart:kx,position:"relative",textAlign:"start",WebkitTapHighlightColor:"transparent"}],"checkbox_label");(0,he.globalStyle)(`${wx} span:first-of-type`,{insetInlineStart:0});const _x=(0,he.style)({borderRadius:be.border.radius.xs,border:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,boxSizing:"border-box",height:be.size.circle.xs,left:0,position:"absolute",width:be.size.circle.xs,lineHeight:1.3,textAlign:"center",backgroundColor:be.color.background.surface,display:"flex",justifyContent:"center",alignItems:"center",top:0},"checkbox_checkmark_container"),Sx=((0,he.style)([_x,{top:"auto"}],"checkbox_checkmark_container_decoration"),(0,he.style)({fontSize:be.size.icon.xs,flexShrink:"0"},"checkbox_check_icon")),Cx=(0,he.style)({cursor:"pointer",opacity:0,position:"absolute"},"checkbox_input");(0,he.globalStyle)(`${Cx}:checked + label > span > span:first-of-type`,{borderColor:be.color.selected.main,backgroundColor:be.color.selected.main,color:be.color.selected.contrast,borderRadius:be.border.radius.xs}),(0,he.globalStyle)(`${Cx}:checked + label > span > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,he.globalStyle)(`${Cx}:not(:checked) + label > span > span:first-of-type > span:first-of-type`,{display:"none"}),(0,he.globalStyle)(`${Cx}:focus + label > span > span:first-of-type`,Oa),(0,he.globalStyle)(`${Cx}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${be.border.thickness.normal} * -1)`});const Ex=(0,he.style)({},"checkbox_error_state");(0,he.globalStyle)(`${Ex}:checked + label > span > span:first-of-type`,{borderWidth:be.border.thickness.emphasis,borderColor:be.color.error.main}),(0,he.globalStyle)(`${Ex}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${be.border.thickness.emphasis} * -1)`});const $x=(0,he.style)({borderWidth:be.border.thickness.emphasis,borderColor:be.color.error.main,lineHeight:1.1},"error_checkbox"),Ax=(0,he.style)({...zt,color:be.color.background.mediumContrast},"captionText"),Tx=(0,he.style)([Ax,{display:"flex",alignItems:"center",margin:0}],"error_text"),Ox=(0,he.style)({color:be.color.error.main,marginInlineEnd:be.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_error_icon"),zx=(0,he.style)({paddingBottom:be.space[150]},"checkbox_label_error"),Fx=(0,he.style)({display:"flex",alignItems:"center",minHeight:"1.5rem",margin:0},"checkbox_items"),Px=(0,he.style)({marginBottom:be.space[150]},"checkbox_legal_consent_label");(0,he.globalStyle)(`${Px} > span:first-of-type`,{display:"flex"});const Rx=(0,he.style)([Ax],"checkbox_legal_consent_text"),Lx=(0,he.style)([Ax,{paddingInlineStart:kx,margin:0}],"checkbox_legal_consent_supporting_text_wrapper"),Nx=(0,he.style)({paddingInlineStart:0},"checkbox_legal_consent_supporting_text_wrapper_when_no_label"),Ix=(0,he.style)({padding:`${be.space[150]} 0 0 0`,margin:0,listStyleType:"none"},"checkbox_legal_consent_links_wrapper"),Mx=(0,he.style)({paddingTop:0},"checkbox_legal_consent_links_wrapper_when_no_label"),Hx=(0,he.style)({display:"flex",flexDirection:"column",rowGap:be.space[300],alignItems:"flex-start"},"checkbox_legal_consent_group_spacing");me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-links");const jx=(0,he.style)([Nt,{textDecoration:be.typography.linkLg.underline?"underline":"none"}],"link-lg-text"),Bx=(0,he.style)([Mt,{textDecoration:be.typography.linkSm.underline?"underline":"none"}],"link-sm-text"),Dx=(0,he.style)({borderRadius:be.border.radius.xs},"link_base"),Vx=(0,he.style)({position:"relative",paddingInlineStart:`calc(${be.size.icon.sm} + ${be.space[100]})`},"link_base_icon"),Wx=(0,he.style)({paddingInlineStart:`calc(${be.size.icon.xs} + ${be.space[100]})`},"link_base_icon_sm"),Ux=(0,he.style)({color:(0,he.fallbackVar)(Oe.main,be.color.link.main),":focus":{...Oa,color:(0,he.fallbackVar)(Oe.main,be.color.link.main),cursor:"pointer"},":hover":{cursor:"pointer",textDecoration:"underline",color:(0,he.fallbackVar)(Oe.hoverMain,be.color.link.mainHover),backgroundColor:(0,he.fallbackVar)(Oe.hoverBack,"transparent")},":active":{textDecoration:"underline",color:(0,he.fallbackVar)(Oe.activeMain,be.color.link.mainActive),backgroundColor:(0,he.fallbackVar)(Oe.activeBack,"transparent")}},"link_primary"),Gx=(0,he.style)({textDecoration:"underline",color:(0,he.fallbackVar)(Oe.main,be.color.link.alt),":focus":{color:(0,he.fallbackVar)(Oe.main,be.color.link.altHover)},":hover":{color:(0,he.fallbackVar)(Oe.hoverMain,be.color.link.altHover),backgroundColor:(0,he.fallbackVar)(Oe.hoverBack,"transparent")},":active":{color:(0,he.fallbackVar)(Oe.activeMain,be.color.link.altActive),backgroundColor:(0,he.fallbackVar)(Oe.activeBack,"transparent")}},"link_secondary"),qx=(0,he.style)({color:be.color.link.contrast,textDecoration:"underline",":visited":{color:(0,he.fallbackVar)(Oe.activeMain,be.color.link.contrast)},":focus":{color:(0,he.fallbackVar)(Oe.activeMain,be.color.link.contrast)},":hover":{color:(0,he.fallbackVar)(Oe.hoverMain,be.color.link.contrastHover)},":active":{color:(0,he.fallbackVar)(Oe.activeMain,be.color.link.contrastActive),textDecoration:"underline"}},"link_inverse"),Kx=(0,he.style)([yt,{height:be.space[300]}],"link_shimmer"),Yx=(0,he.style)({position:"absolute",inset:0,display:"flex",alignItems:"center"},"link_left_icon");me.endFileScope();var Xx,Qx,Zx=["inverse","secondary","size","primaryAlt","className","leftIcon","children","as","isLoading"],Jx=new Set(["","paypal.com","paypal.cn","gopay.cn"]),ew=/\bnoreferrer\b/,tw=/\bnoopener\b/,rw=(0,pe.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=ye(e,Zx);if(p)return fe().createElement(kt,ge({className:Ke(Kx,o),hasStyleDefaults:!1,isInverse:r},f,{"data-ppui":"true"}),c);var m,h=f.target,g=f.rel,y=void 0===g?null:g,b=f.href,v=void 0===b?"/":b;"a"===d&&(null==h?void 0:h.trim())&&((null===(m=y)||void 0===m?void 0:m.trim())?function(e,t){ew.test(t)&&tw.test(t)||function(e){try{var t=new URL(e);return Jx.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.')}(v,y):y="noreferrer noopener");var k=fe().createElement("span",{className:Yx,"data-ppui":"true"},l),x=r?"inverse":i||n?"secondary":"primary",w=Ke(Dx,s[x],l&&Vx,l&&"sm"===a&&Wx,"sm"===a?Bx:jx,o);return fe().createElement(d,ge({className:w,ref:t,"data-ppui-info":"links_5.1.2__8.12.0",target:h,rel:y},f),l&&k,c)})),nw=["id","name","label","links","onChange","errorText","errorIconAriaLabel","className","children"];function aw(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 iw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aw(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,pe.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,m=void 0===f?"Error":f,h=e.className,g=e.children,y=ye(e,nw),b=u.map((function(e,t){var r=fe().createElement(rw,iw(iw({},e),{},{size:"sm"}));return fe().createElement("li",{key:t,"data-ppui":"true"},r)})),v=null!=o?o:Ze("LegalConsent_"),k=Ke(xx,p&&Ex,h),x=Ke(Lx,s&&p&&zx,!(null==s?void 0:s.length)&&Nx),w=Ke(Hx,Ix,!(null==s?void 0:s.length)&&Mx),_="p";return b.length?(r=fe().createElement("ul",{className:w,"data-ppui":"true"},b),_="div"):r=g,fe().createElement("div",{className:k,"data-ppui-info":"legal-consent_3.1.2__8.12.0"},s&&fe().createElement(fe().Fragment,null,fe().createElement("input",ge({className:Ke(Cx,p&&Ex),type:"checkbox",id:v,name:l,ref:t,tabIndex:0,onChange:function(e){d&&(e.stopPropagation(),d(e))}},y,p&&{"aria-describedby":l,"aria-invalid":!0},{"data-ppui":"true"})),(n=Ke(_x,p&&$x),a=fe().createElement("span",{"data-ppui":"true"},fe().createElement("span",{className:n,"data-ppui":"true"},fe().createElement(Ci,{className:Sx,size:"xs","data-ppui":"true"})),fe().createElement(ra,{className:Rx,as:"span","data-ppui":"true"},s)),i=Ke(wx,Fx,Px),fe().createElement("label",{className:i,htmlFor:v,"data-ppui":"true"},a))),fe().createElement(_,{className:x,"data-ppui":"true"},r),s&&p&&fe().createElement("p",{className:Tx,id:l,"data-ppui":"true"},fe().createElement(zi,{className:Ox,size:"sm",role:"img","aria-label":m,"data-ppui":"true"}),p))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-linear-progress-meter"),(0,he.style)({padding:`${be.space[50]} ${be.space[300]} ${be.space[300]} ${be.space[300]}`,transition:`value ${be.motion.duration.arrive}`},"progress-meter_base"),(0,he.style)({padding:0},"progress_meter-no_padding"),(0,he.style)({verticalAlign:"bottom",width:"100%",backgroundClip:"content-box",WebkitBackgroundClip:"content-box",border:`${be.border.thickness.normal} solid transparent`,borderRadius:be.border.radius.sm,height:be.size.indicator.lg,marginBottom:be.space[100],appearance:"none",selectors:{"&::-webkit-progress-inner-element":{marginTop:`calc(${be.border.thickness.normal} * -1)`,borderRadius:be.border.radius.sm,padding:0,height:be.size.indicator.lg},"&::-webkit-progress-value":{borderRadius:be.border.radius.sm,height:be.size.indicator.md},"&::-webkit-progress-bar":{borderRadius:be.border.radius.sm,height:be.size.indicator.md,backgroundColor:be.color.background.alt},"&::-moz-progress-bar":{borderRadius:be.border.radius.sm,padding:0,height:be.size.indicator.md}}},"progress_tag"),(0,he.style)({selectors:{"&::-moz-progress-bar":{minWidth:be.border.radius.md},"&::-webkit-progress-value":{minWidth:be.border.radius.md},"&::-webkit-progress-bar":{minWidth:be.border.radius.md}}},"progress_value_min_width"),(0,he.style)([St],"progress_meter-label"),(0,he.style)({letterSpacing:"normal",marginInlineEnd:be.space[50]},"progress_meter-steps"),(0,he.style)({color:be.color.background.mediumContrast},"progress_meter-label_title"),(0,he.style)({},"progress_meter-size_sm"),(0,he.style)([Ot],"progress_meter-size_sm_label"),(0,he.style)([Ot],"progress_meter-size_sm_steps"),(0,he.style)({...zt,color:be.color.background.mediumContrast},"progress_meter-size_sm_title"),(0,he.style)({color:be.color.background.surface},"progress_meter-inverse_label"),(0,he.style)({color:be.color.system.contrast},"progress_meter-size_sm_inverse_label_steps"),(0,he.style)({color:be.color.background.surface},"progress_meter-size_sm_inverse_label_title"),(0,he.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:be.color.secondary.main},"&::-webkit-progress-value":{backgroundColor:be.color.secondary.main}}},"progress-meter_color_accent1"),(0,he.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:be.color.error.main},"&::-webkit-progress-value":{backgroundColor:be.color.error.main}}},"progress-meter_color_accent2"),(0,he.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:be.color.success.main},"&::-webkit-progress-value":{backgroundColor:be.color.success.main}}},"progress-meter_color_accent3"),(0,he.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:be.color.primary.main},"&::-webkit-progress-value":{backgroundColor:be.color.primary.main}}},"progress-meter_color_accent4"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-overflow-menu"),(0,he.style)({position:"relative",display:"inline-block",maxHeight:"16rem"},"overflow_menu_base"),(0,he.style)({selectors:{"[aria-expanded='true']&":{background:`${be.color.background.surfaceActive}`}}},"overflow_menu_btn_active"),(0,he.style)([ul,{right:"0",margin:"0",position:"fixed",zIndex:"1060",listStyle:"none",borderRadius:`${be.border.radius.lg}`,backgroundColor:`${be.color.background.surface}`,display:"none",padding:`${be.space[100]} 0`,overflow:"auto",width:"fit-content",selectors:{"[aria-hidden = 'false']&":{display:"inline-block"},"[dir='rtl'] & ":{right:"auto",left:be.space[150]}}}],"overflow_menu_list"),(0,he.style)([Ct,{whiteSpace:"nowrap",display:"block",textAlign:"justify",textOverflow:"ellipsis",position:"relative",textDecoration:"none",padding:`${be.space[150]} ${be.space[200]}`,":hover":{backgroundColor:`${be.color.background.surfaceHover}`,cursor:"pointer",outline:0},":focus":{boxShadow:"none",outline:0,borderRadius:0}}],"overflow_menu_list_item"),(0,he.style)({":focus":Fa},"overflow_menu_keyboard_active"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-panel-slider"),Xx=be.motion.duration.arrive,(Qx=Ge(Xx,"ms")).unit,Qx.value,oa.ppuiEaseInOut,(0,he.style)({position:"relative",minHeight:"100%",whiteSpace:"nowrap",padding:`0 ${be.space[150]}`,overflowX:"hidden"},"panel-slider-container"),(0,he.style)({display:"inline-block",width:"100%",padding:`${be.space[200]} ${be.space[150]}`,height:"100%",whiteSpace:"normal"},"panel-slider-panel"),me.endFileScope();var ow=["as","isHidden","hideToggleLabel","onToggleHide","value"];(0,pe.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=ye(e,ow),c=(0,pe.useRef)(),u=t||c;(0,pe.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 fe().createElement(r||Yo,ge({ref:u,rightIcon:fe().createElement(xp,{buttonType:"tertiary",svgIconComponent:a?Mi:Ri,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))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-phone-input");const lw="8.813rem",sw=(0,he.style)({flexGrow:1},"phone_input_base"),cw=(0,he.style)({direction:"ltr",textAlign:"right"},"phone_input-rtl"),uw=(0,he.style)({display:"flex",gap:be.space[100],"@media":{[`screen and (max-width:${we})`]:{display:"block"}},selectors:{"[dir='rtl'] &":{direction:"ltr"}}},"phone_input-combined"),dw=(0,he.style)({minWidth:lw,"@media":{[`screen and (max-width:${Se})`]:{marginBottom:be.space[100]},[`screen and (min-width:${we})`]:{maxWidth:lw}}},"phone_input-menu_width"),pw=(0,he.style)({flexGrow:1,selectors:{"[dir='rtl'] &":{direction:"rtl"}}},"phone_input-menu"),fw=(0,he.style)({marginRight:be.space[100],selectors:{"[dir='rtl'] &":{marginRight:0,marginLeft:be.space[100]}}},"phone_input-thumbnail"),mw=(0,he.style)({whiteSpace:"nowrap"},"phone_input-menu_list"),hw=(0,he.style)({flexGrow:1,selectors:{":not(:empty) &":{paddingBottom:be.space[100],paddingRight:be.space[700]},"[dir='rtl'] &":{borderRadius:be.border.radius.sm,marginLeft:0,marginRight:0},"[dir='rtl']:not(:empty) &":{paddingLeft:be.space[700],paddingRight:`calc(${be.space.md} - ${be.border.thickness.normal})`}}},"phone_input-menu_button");(0,he.globalStyle)(`${hw}>span`,{pointerEvents:"none"});const gw=(0,he.style)({display:"flex"},"phone_input-menu_button_content"),yw=((0,he.style)({marginLeft:0,selectors:{"[dir='rtl'] &":{marginRight:0}}},"phone_input-affordance"),(0,he.style)({selectors:{"[dir='rtl'] &":{left:0}}},"phone_input-menu_container"));me.endFileScope();var bw=["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"],vw=["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"],kw="00000000000000000000";function xw(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=kw;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?vw:bw).includes(t)){var m=d.match(/0/g).length,h="0".repeat(20-m);d+="[".concat(h,"]")}}return{countryCode:c,pattern:d}}return{countryCode:a||"",pattern:i||kw}}var ww=["rtl","countryOptions","options","flagId","codeId","value"],_w=function(e){var t=e.rtl,r=e.countryOptions,n=e.options,a=e.flagId,i=e.codeId,o=e.value,l=ye(e,ww);return fe().createElement(hk,ge({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?fe().createElement("span",{className:gw,"data-ppui":"true"},fe().createElement("span",{className:fw,"data-ppui":"true"},fe().createElement(ty,{id:a,countryCode:e.phoneRegion,size:"md","aria-label":e.countryName,role:"img","data-ppui":"true"})),fe().createElement("span",{id:i,"data-ppui":"true"},s)):fe().createElement(fe().Fragment,null,s)},options:n,value:o},l,{"data-ppui":"true"}))},Sw=["name","countryOptions","inputLabel","menuLabel","menuId","className","inputClassName","menuClassName","mobile","onPhoneCodeChange","phoneCode","showUnselect","unselectLabel","formatType"],Cw=((0,pe.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,m=e.mobile,h=void 0!==m&&m,g=e.onPhoneCodeChange,y=e.phoneCode,b=e.showUnselect,v=void 0!==b&&b,k=e.unselectLabel,x=void 0===k?"None":k,w=e.formatType,_=void 0===w?"international":w,S=ye(e,Sw);i.length;var C,E,$,A,T,O,z=el((0,pe.useState)(!1),2),F=z[0],P=z[1],R=(0,pe.useContext)(ja),L=(0,pe.useCallback)((function(e){if(null!==e&&Ie()){var t=window.getComputedStyle(e);P("rtl"===(null==t?void 0:t.direction))}}),[null==R?void 0:R.locale]),N=el((0,pe.useState)(!1),2),I=N[0],M=N[1];i[0]&&""===i[0].phoneRegion&&i.splice(0,1),v&&i.unshift({phoneRegion:"",countryName:x,phoneFormat:kw}),O=(0,pe.useMemo)((function(){return i.map((function(e,t){var r=xw(R,e.phoneRegion,_,h,e.countryPhoneCode,e.phoneFormat,e.isPhoneMetaDataLoaded),n=R&&R.getDisplayNamesObject&&R.getDisplayNamesObject({type:"region"}),a=r.countryCode,o=r.pattern;return A=e.phoneRegion,E=e.countryPhoneCode||a,$=e.phoneFormat||o,T=e.countryName||n&&n.select(e.phoneRegion),i[t].countryPhoneCode=E,i[t].phoneFormat=$,i[t].countryName=T,function(e,t,r,n){C=e,t&&(C+=n?" ".concat(t,"+"):" +".concat(t));var a=r&&t?"".concat(r,"_").concat(t):"";return{label:C,value:a,decoration:r&&fe().createElement(ty,{countryCode:r,size:"md","data-ppui":"true"})}}(T,E,A,F)}))}),[i,_,h]);var H=kw,j=i.filter((function(e){var t=e.phoneRegion&&e.countryPhoneCode?"".concat(e.phoneRegion,"_").concat(e.countryPhoneCode):"";return y===t}));j.length&&(H=j[0].phoneFormat);var B="phone-input-country-flag_",D="phone-input-country-code_",V=u?"".concat(B).concat(u):Ze(B),W=u?"".concat(D).concat(u):Ze(D),U=Ke(pw,dw,f),G=fe().createElement(_w,{id:u,label:c,options:O,countryOptions:i,value:y,onChange:function(e){var t,r;g&&(g(e),0===(null===(t=e.target)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.length)&&v||M(!0))},className:U,menuContainerClassName:yw,menuListClassName:mw,menuButtonClassName:hw,sheetClassName:mw,rtl:F,showUnselect:!0,flagId:V,codeId:W,autoComplete:S.autoComplete,"data-ppui":"true"}),q=fe().createElement(Iy,ge({type:"tel",name:n,label:l,maskOptions:{mask:H},className:pw,inputClassName:Ke(F&&cw,p),setFocus:I,ref:t,onBlur:function(){return M(!1)},"aria-describedby":"".concat(V," ").concat(W)},S,{"data-ppui":"true"}));return fe().createElement("div",{ref:L,className:Ke(d,sw),"data-ppui-info":"phone-input_3.1.6__8.12.0"},fe().createElement("div",{className:uw,"data-ppui":"true"},G,q))})),["name","label","countryOptions","className","inputClassName","formatType","mobile"]);(0,pe.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=ye(e,Cw),m=el((0,pe.useState)(!1),2),h=m[0],g=m[1],y=(0,pe.useContext)(ja),b=(0,pe.useCallback)((function(e){if(e&&Ie()){var t=window.getComputedStyle(e);g("rtl"===(null==t?void 0:t.direction))}}),[null==y?void 0:y.locale]),v=(0,pe.useMemo)((function(){return xw(y,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]),k=v.countryCode,x=v.pattern,w="",_="";return"international"===u&&(w=h?"":"+".concat(k),_=h?"".concat(k,"+"):""),fe().createElement("div",{ref:b,className:Ke(sw,l),"data-ppui-info":"phone-input_3.1.6__8.12.0"},fe().createElement(Iy,ge({type:"tel",name:"phoneInput-".concat(n),label:i,prefix:w,suffix:_,ref:t,maskOptions:{mask:x},inputClassName:Ke(h&&cw,s)},f,{"data-ppui":"true"})))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-physical-card"),(0,he.style)([cl,{borderRadius:be.border.radius.lg,border:`${be.border.thickness.normal} solid transparent`,backgroundColor:be.color.background.surface,backgroundOrigin:"border-box",position:"relative",overflow:"hidden",paddingTop:`calc(100% * ${216/343} - (2 * ${be.border.thickness.normal}))`}],"physical_card-base"),(0,he.style)({position:"absolute",top:0,width:"100%",height:"100%"},"physical_card-content"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-pill"),(0,he.style)({backgroundColor:be.color.selectedRange.main,paddingBlock:be.space[100],paddingInline:`${be.space[150]} ${be.size.tapTarget.sm}`,whiteSpace:"nowrap",borderRadius:"100px",position:"relative",display:"inline-grid",gridTemplateColumns:"1fr auto",placeItems:"center"},"pill-base"),(0,he.style)({paddingInline:be.space[150]},"pill_hide_close_btn"),(0,he.style)({...Bt,color:be.color.selectedRange.contrast,textOverflow:"ellipsis",whiteSpace:"nowrap"},"pill-label"),(0,he.style)({position:"absolute",right:0,selectors:{"[dir=rtl] &":{left:0,right:"auto"}}},"pill-button_space"),(0,he.style)({color:be.color.selectedRange.contrast},"pill-icon_button_color"),(0,he.style)({backgroundColor:be.color.background.surface},"pill-tray"),(0,he.style)({overflowX:"scroll",margin:0,padding:`${be.space[100]} ${be.space[100]} ${be.space[200]}`,display:"flex",columnGap:be.space[100]},"pill-scroll"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-progress-stepper");const Ew="--ps-m_ol_c",$w={paddingLeft:be.space[200],paddingRight:be.space[200]},Aw={display:"block"},Tw={flexDirection:"row",alignItems:"initial"},Ow={margin:`${be.space[200]} 0`,textAlign:"initial"},zw={display:"inline-flex",alignItems:"center"},Fw={display:"none"},Pw={margin:`0 ${be.space[200]} 0 ${be.space[400]}`,padding:`${be.space[200]} 0`},Rw={insetInlineStart:"auto",top:`calc(${be.size.icon.md} + ${be.space[200]})`,width:be.border.thickness.focus,height:"100%"},Lw=((0,he.style)({color:be.color.background.highContrast,listStyle:"none",margin:0,padding:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(0, 1fr))",selectors:{"&[data-stepper-variant='vertical']":Aw}},"progress_stepper-base"),(0,he.style)({margin:0,overflow:"clip",paddingTop:be.space[50],"@media":{[`screen and (max-width: ${Se})`]:$w}},"progress_stepper-compact_wrapper"),{margin:"0 var(--ps-m-od)"}),Nw=((0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:Lw}},"progress_stepper-compact_base"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:Aw}},"progress_stepper-vertical_base"),(0,he.style)({display:"flex",position:"relative",flexDirection:"column",alignItems:"center",zIndex:0,selectors:{"[data-stepper-variant='vertical'] &":Tw}},"progress_stepper-item"));(0,he.globalStyle)(`${Nw}:last-of-type > div:first-of-type:after`,{display:"none"}),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:{height:be.size.icon.xs,width:be.size.icon.xs}}},"progress_stepper-icon_item"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:{fontSize:be.typography.fieldLabelSm.size,display:"grid",lineHeight:"unset",placeItems:"center",textAlign:"center",padding:0}}},"progress_stepper-text_item"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:Tw}},"progress_stepper-vertical_item"),(0,he.style)({textAlign:"center",marginTop:be.space[200],selectors:{"[data-stepper-variant='vertical'] &":Ow}},"progress_stepper-item_content"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:Ow}},"progress_stepper-vertical_item_content"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:Fw}},"progress_stepper-vertical_item_content"),(0,he.style)({selectors:{"[data-stepper-variant='vertical'] &":zw}},"progress_stepper-item_content_without_description"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:zw}},"progress_stepper-vertical_marker"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:Fw}},"progress_stepper-vertical_marker"),(0,he.style)({color:be.color.background.highContrast},"progress_stepper-label"),(0,he.style)({color:be.color.background.mediumContrast,marginTop:be.space[50]},"progress_stepper-description");const Iw={display:"block",paddingTop:`${be.space[100]}`,paddingBottom:`${be.space[100]}`};(0,he.style)({display:"none","@media":{[`screen and (max-width: ${Se})`]:Iw}},"progress_stepper-compact_details"),(0,he.style)({color:be.color.background.alt,display:"flex",justifyContent:"center",margin:0,padding:0,":after":{position:"absolute",content:"",top:be.space[200],insetInlineStart:"50%",width:"100%",height:be.border.thickness.focus,backgroundColor:be.color.structure.divider,zIndex:-1},selectors:{"[data-stepper-variant='vertical'] &":Pw,"[data-stepper-variant='vertical'] &:after":Rw}},"progress_stepper-marker"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:{...Pw,":after":{...Rw,insetInlineStart:"auto",top:`calc(${be.size.icon.md} + ${be.space[200]})`,width:be.border.thickness.focus,height:"100%",zIndex:-1}}}},"progress_stepper-vertical_marker"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:{":after":{top:`calc(${be.space[150]} - (0.5 * ${be.border.thickness.emphasis}))`}}}},"progress_stepper-compact_marker"),(0,he.style)({outlineOffset:be.space[25],outline:`${be.border.thickness.emphasis} solid var(${Ew})`,boxShadow:`0 0 0 ${be.space[25]} ${be.color.background.surface}`,zIndex:0},"progress_stepper-current_marker"),(0,he.style)({":after":{backgroundColor:be.color.success.main}},"progress_stepper-marker_success"),(0,he.style)({":after":{backgroundColor:be.color.structure.divider}},"progress_stepper-marker_default"),(0,he.style)({":after":{backgroundColor:be.color.warning.main}},"progress_stepper-marker_warning"),(0,he.style)({":after":{backgroundColor:be.color.error.main}},"progress_stepper-marker_cancelled"),(0,he.style)({":after":{backgroundColor:be.color.error.main}},"progress_stepper-marker_critical"),(0,he.style)({borderRadius:be.border.radius.interactive,height:be.size.icon.md,width:be.size.icon.md,padding:be.space[50]},"progress_stepper-icon"),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:{height:be.size.icon.sm,width:be.size.icon.sm,display:"grid",placeItems:"center",padding:0}}},"progress_stepper-compact_icon"),(0,he.style)({vars:{[Ew]:be.color.error.main},backgroundColor:be.color.error.main},"progress_stepper-icon_cancelled"),(0,he.style)({vars:{[Ew]:be.color.error.main},backgroundColor:be.color.error.main},"progress_stepper-icon_critical"),(0,he.style)({vars:{[Ew]:be.color.warning.main},backgroundColor:be.color.warning.main},"progress_stepper-icon_warning"),(0,he.style)({vars:{[Ew]:be.color.success.main},backgroundColor:be.color.success.main},"progress_stepper-icon_success"),(0,he.style)({vars:{[Ew]:be.color.structure.divider},backgroundColor:be.color.background.surface,border:`${be.border.thickness.focus} solid ${be.color.structure.divider}`,padding:`${be.space[50]} calc(${be.space[200]} - ${be.border.thickness.focus})`},"progress_stepper-icon_default"),(0,he.style)({textAlign:"center",display:"grid",height:"100%",alignItems:"center"},"progress_stepper-numeric"),(0,he.style)({backgroundColor:be.color.background.alt,padding:0},"progress_stepper-numeric_default"),(0,he.style)({color:be.color.primary.contrast},"progress_stepper-numeric_success"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-radio");const Mw=(0,he.style)({...zt,color:be.color.background.mediumContrast},"radio-caption_text"),Hw=((0,he.style)({display:"flex",flexDirection:"column",margin:0,padding:0,border:"none",textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"radio-group_base"),(0,he.style)({position:"relative",padding:`${be.space[150]} 0`,textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"radio-base")),jw=((0,he.style)({...qr,color:be.color.background.mediumContrast,display:"block",paddingBottom:be.space[150],marginBottom:be.space[50]},"radio-group_label"),(0,he.style)({display:"flex",alignItems:"center",minHeight:be.size.tapTarget.sm,paddingBottom:0},"radio-group_labelwithicon"),(0,he.style)({marginInlineStart:be.space[100]},"radio-group_iconLabel"),(0,he.style)([Kr,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"inline-block",paddingLeft:be.space[450],position:"relative",WebkitTapHighlightColor:"transparent",selectors:{"[dir='rtl'] & ":{paddingRight:be.space[450],paddingLeft:0}}}],"radio-label")),Bw=(0,he.style)({borderRadius:be.border.radius.interactive,border:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,height:be.size.circle.xs,position:"absolute",top:0,left:0,width:be.size.circle.xs,backgroundColor:be.color.background.surface,selectors:{"[dir='rtl'] & ":{right:0}}},"radio-check_icon_container"),Dw=(0,he.style)({border:`${be.border.thickness.emphasis} solid ${be.color.error.main}`},"radio-icon_error_check_icon_container"),Vw=(0,he.style)({display:"none"},"radio-check_icon"),Ww=(0,he.style)({opacity:0,position:"absolute",cursor:"pointer",margin:0},"radio-icon_input");(0,he.globalStyle)(`${Ww}:checked + label > span:first-of-type`,{borderColor:be.color.selected.main,backgroundColor:be.color.selected.main,color:be.color.background.surface}),(0,he.globalStyle)(`${Ww}:checked + label > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,he.globalStyle)(`${Ww}:focus + label > span:first-of-type`,{...Oa}),(0,he.globalStyle)(`${Ww}:active:not(:checked) + label > span:first-of-type`,{background:be.color.background.surfaceActive});const Uw=(0,he.style)({},"radio_input_with_error");(0,he.globalStyle)(`${Uw}:checked + label > span:first-of-type`,{border:`${be.border.thickness.emphasis} solid ${be.color.error.main}`});const Gw=(0,he.style)({top:"50%",transform:"translateY(-50%)"},"radio-centered_label_check_icon_container"),qw=(0,he.style)([Mw,{margin:0,listStyle:"none",marginTop:be.space[50]}],"radio-helper_text");(0,he.style)([Mw,{margin:0,listStyle:"none"}],"radio-group_helper_text"),(0,he.style)([Mw,{display:"flex",margin:0,alignItems:"center"}],"radio-error_text"),(0,he.style)({color:be.color.error.main,marginRight:be.space[50],flexShrink:"0",alignSelf:"flex-start",selectors:{"[dir='rtl'] & ":{marginLeft:be.space[50],marginRight:0}}},"radio-error_icon"),me.endFileScope();var Kw=["label","name","value","id","centeredLabel","helperText","className","labelClassName","onChange","checked","errorText"],Yw=function(e){return fe().createElement("span",{className:e.className,"aria-hidden":"true","data-ppui":"true"},fe().createElement("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","data-ppui":"true"},fe().createElement("circle",{r:"18",cy:"50",cx:"50",strokeWidth:"0",fill:"currentColor","data-ppui":"true"})))};(0,pe.forwardRef)((function(e,t){var r=e.label,n=e.name,a=void 0===n?Ze():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,m=e.onChange,h=e.checked,g=void 0!==h&&h,y=e.errorText,b=ye(e,Kw),v={onChange:m};v[m?"checked":"defaultChecked"]=g;var k=Ke(Ww,!!y&&Uw),x=Ke(Bw,!!y&&Dw,u&&Gw);return fe().createElement("div",{className:Ke(Hw,p),"data-ppui-info":"radio_4.1.2__8.12.0"},fe().createElement("input",ge({className:k,type:"radio",name:a,value:o,id:s,ref:t},v,b,{"data-ppui":"true"})),fe().createElement("label",{className:Ke(jw,f),htmlFor:s,"data-ppui":"true"},fe().createElement("span",{className:x,"data-ppui":"true"},fe().createElement(Yw,{className:Vw,"data-ppui":"true"})),r,function(e,t){return e&&fe().createElement("p",{className:t,"data-ppui":"true"},e)}(d,qw)))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-scroll-box"),(0,he.style)({display:"grid",gridTemplateRows:"auto 1fr auto",height:"100%"},"sb_base"),(0,he.style)({position:"relative",overflow:"hidden",zIndex:"0",selectors:{"&:before":{content:"",position:"absolute",top:"-1rem",left:"0",right:"0",display:"block",height:"1rem",...ml,zIndex:"-1"},"&:after":{content:"",position:"absolute",bottom:"-1rem",left:"0",right:"0",display:"block",height:"1rem",...Sl,zIndex:"-1"}}},"sb_content"),(0,he.style)({padding:`${be.space[100]} ${be.space[150]}`},"sb_head"),(0,he.style)({padding:`${be.space[100]} ${be.space[150]}`},"sb_foot"),(0,he.style)({padding:`0 ${be.space[150]}`,height:"100%",overflow:"scroll",background:`linear-gradient(to bottom,\n ${be.color.background.surface},\n transparent ${be.space[400]},\n transparent calc(100% - ${be.space[400]}),\n ${be.color.background.surface} 100%\n )`,backgroundAttachment:"local"},"sb_scroller"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-search-input");const{ppuiEaseMoveSmall:Xw}=oa,Qw=(0,he.style)({borderRadius:be.size.icon.xl,paddingLeft:`calc(${be.space[500]} + ${be.space[50]})`,paddingRight:be.space[600],"@media":{[`(max-width: ${Se})`]:{paddingTop:be.space[150],paddingBottom:be.space[150],minHeight:be.size.field.sm,selectors:{"[dir='rtl'] &":{paddingTop:be.space[150],paddingBottom:be.space[150]}}}},selectors:{"[dir='rtl'] &":{paddingRight:`calc(${be.space[500]} + ${be.space[50]})`,paddingLeft:be.space[600]}}},"search_input"),Zw=(0,he.style)({borderColor:be.color.structure.borderLowContrast},"search_border_color"),Jw=(0,he.style)({left:be.space[50],position:"absolute",selectors:{"[dir='rtl'] &":{right:be.space[50],position:"absolute"}},"@media":{[`(max-width: ${Se})`]:{top:`calc(-1 * ${be.space[100]})`}}},"left_icon"),e_=(0,he.style)({position:"absolute",right:`calc(-1 * ${be.space[25]})`,"@media":{[`(max-width: ${Se})`]:{top:`calc(-1 * ${be.space[100]})`}},selectors:{"[dir='rtl'] &":{left:`calc(-1 * ${be.space[100]})`,right:be.space[25]}}},"rightIcon"),t_=(0,he.style)({paddingInlineStart:be.space[200],transition:`padding ${be.motion.duration.move.small} ${Xw}`},"remove_extra_padding"),r_=(0,he.style)({backgroundColor:be.color.background.alt},"search_input_level2");me.endFileScope();var n_=["keepClearButton","onClear","className","clearButtonLabel","clearButtonAriaLabel","inputClassName","labelClassName","errorText","label","value","onKeyDown","onFocus","onBlur","pageLevel"];(0,pe.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,m=e.onKeyDown,h=e.onFocus,g=e.onBlur,y=e.pageLevel,b=void 0===y?1:y,v=ye(e,n_),k=el((0,pe.useState)(!1),2),x=k[0],w=k[1],_=el((0,pe.useState)(!0),2),S=_[0],C=_[1],E=el((0,pe.useState)(!1),2),$=E[0],A=E[1],T=x?{"aria-label":s,"aria-atomic":"true","aria-live":"polite",role:"button"}:null,O=f||r?{rightIcon:fe().createElement(xp,ge({buttonType:"tertiary",className:e_,svgIconComponent:Fi,onClick:function(e){n&&n(e),w(!0),A(!0)},onMouseDown:function(e){return e.preventDefault()}},T,{"data-ppui":"true"}),o)}:null,z=S?{leftIcon:fe().createElement(Ni,{className:Jw,size:"sm","aria-hidden":"true","data-ppui":"true"})}:null,F=Ke(Qw,!d&&Zw,!S&&t_,2===b&&r_,c);return fe().createElement(fe().Fragment,null,fe().createElement(Yo,ge({className:a,ref:t},z,O,{inputClassName:F,labelClassName:u,errorText:d,isLabelHidden:!0,placeholder:p,label:p,value:f,onFocus:function(e){C(!1),A(!0),h&&h(e)},onBlur:function(e){C(!f),A(!1),g&&g(e)},"data-ppui-info":"search-input_3.2.2__8.12.0",setFocus:$},v,{onKeyDown:function(e){x&&w(!1),"Escape"===e.key&&n&&n(e),m&&m(e)}})))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-segmented-controller");const a_="64rem",i_=((0,he.style)({backgroundColor:be.color.background.alt,borderRadius:a_,display:"flex",alignItems:"stretch",justifyContent:"flex-start",position:"relative",padding:"0.1875rem",gap:be.space[50]},"segmented_controller_tab_wrapper"),(0,he.style)({borderRadius:"inherit",position:"relative",backgroundColor:"transparent",width:"100%",border:0,minWidth:0,padding:0,cursor:"pointer",...Br,zIndex:1,":focus":Oa},"segmented_controller_tab"));(0,he.globalStyle)(`[data-contrast-variant="high"] ${i_}:hover:not(:focus) span`,{background:be.color.selected.altHover,color:be.color.selected.contrast}),(0,he.globalStyle)(`[data-contrast-variant="low"] ${i_}:hover:not(:focus) span`,{background:be.color.unselected.mainHover,fontWeight:be.typography.buttonSm.weight}),(0,he.globalStyle)(`[data-contrast-variant="high"] ${i_}[aria-selected="true"] span`,{color:be.color.selected.contrast}),(0,he.globalStyle)(`[data-contrast-variant="low"] ${i_}[aria-selected="true"] span`,{color:be.color.selected.main}),(0,he.style)({position:"absolute",top:0,left:0,width:0,height:0,borderRadius:a_,transition:`left ${be.motion.duration.move.small} ${oa.ppuiEaseMoveSmall}`},"segmented_controller_tab_slider"),(0,he.style)({background:be.color.selected.alt},"segmented_controller_tab_slider_default"),(0,he.style)({background:be.color.selected.contrast},"segmented_controller_tab_slider_low_contrast");const o_=(0,he.style)({display:"flex",flexWrap:"wrap",justifyContent:"center",alignItems:"center",height:"100%",wordBreak:"break-word",border:`${be.border.thickness.normal} solid transparent`,padding:be.space.sm,borderRadius:"inherit",color:be.color.background.mediumContrast,pointerEvents:"none"},"segmented_controller_tab_title");(0,he.style)({selectors:{'&[aria-hidden="true"]':{display:"none"}}},"segmented_controller_tab_content"),(0,he.style)({display:"block"},"segmented_controller_tab_content_visible"),(0,he.style)({display:"none"},"segmented_controller_tab_content_hidden"),me.endFileScope();var l_=["id","tabIdx","label","segmentedControllerId","panelId","selected","onClick","className"];fe().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=ye(e,l_),d=l?0:-1,p=r||"".concat(i,"-tab").concat(parseInt(n,10)+1);return fe().createElement("button",ge({"data-tab-index":n,id:p,className:Ke(i_,c),"aria-controls":o,"aria-selected":l,tabIndex:d,type:"button",role:"tab",ref:t},u,{onClick:s,"data-ppui":"true"}),fe().createElement("span",{className:o_,"data-ppui":"true"},a))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-segmented-progress-meter");const s_=(0,he.style)({display:"flex",gap:be.space[75]},"segmented_progress_meter-container"),c_=(0,he.style)({width:"100%"},"segmented_progress_meter-stack");me.endFileScope(),(0,pe.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=el((0,pe.useState)(0),2),f=p[0],m=p[1],h=el((0,pe.useState)([]),2),g=h[0],y=h[1],b=el((0,pe.useState)(!1),2),v=b[0],k=b[1],x=el((0,pe.useState)(!1),2),w=x[0],_=x[1],S=(0,pe.useRef)(null),C=(0,pe.useRef)(null),E=(0,pe.useRef)(0),$=(0,pe.useRef)(null),A=d.length,T=Ke(s_,r);u&&(0,pe.useEffect)((function(){u({index:f})}),[w]);var O=function(){C.current=Date.now(),E.current=0,$.current=Date.now(),clearInterval(S.current),_(!w)};return(0,pe.useImperativeHandle)(t,(function(){return{next:function(){f<A-1&&(y((function(e){var t=Jo(e);return t[f]=1,t})),m(f+1),O())},prev:function(){f>0&&(y((function(e){var t=Jo(e);return t[f]=0,t[f-1]=0,t})),m(f-1),O())},pause:function(){return v||($.current=Date.now()),void k(!0)},resume:function(){return v&&(E.current+=Date.now()-$.current),void k(!1)}}})),s&&(0,pe.useEffect)((function(){return C.current||(C.current=Date.now()),v||(S.current=setInterval((function(){var e=(Date.now()-C.current-E.current)/(1e3*o);if(y((function(t){var r=Jo(t);return r[f]=Math.min(e,1),r})),e>=1){if(f+1>=A)return void clearInterval(S.current);m(f+1),O()}}),10)),function(){return clearInterval(S.current)}}),[o,f,v]),fe().createElement("div",{className:T,"data-ppui-info":"segmented-progress-meter_1.2.3__8.12.0"},function(e,t,r,n){var a=[];return fe().Children.forEach(e,(function(e,i){var o=fe().createElement("div",{key:"linearProgressMeterStacked_".concat(i),className:c_,"data-ppui":"true"},n&&fe().cloneElement(e,{size:t,max:1,value:r[i]||0,noPadding:!0}),!n&&fe().cloneElement(e,{size:t,noPadding:!0}));a.push(o)})),a}(d,a,g,s))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-selection-card-group");const u_="0.1875rem",d_=`calc(${be.size.indicator.lg} * 2)`,p_="selection-card-group",f_={content:"",position:"absolute",borderRadius:be.border.radius.lg,inset:"0"},m_={position:"absolute",top:`calc(${be.space[150]} + ${be.space[25]})`,right:be.space[200],width:d_,height:d_},h_={right:"unset",left:be.space[200]},g_=(e,t)=>({outline:`${e} solid ${t}`,outlineOffset:`calc(${e} * -1)`}),y_=(e,t)=>({...f_,boxShadow:`inset 0 0 0 ${t} ${be.color.error.contrast}`,...g_(e,be.color.error.main)}),b_=e=>({gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`}),v_=((0,he.style)({boxSizing:"border-box",borderStyle:"none",padding:0,margin:0},`${p_}_base`),(0,he.style)({display:"grid",gridGap:be.space[100]},`${p_}_container`),(0,he.style)({...b_(1)},`${p_}_container_grid-vertical`),(0,he.style)({...b_(2)},`${p_}_container_grid-two`),(0,he.style)({...b_(3)},`${p_}_container_grid-three`),(0,he.style)({...b_(4)},`${p_}_container_grid-four`),(0,he.style)({display:"flex",borderRadius:be.border.radius.lg,backgroundColor:be.color.background.surface,position:"relative",padding:`${be.space[150]} ${be.space[200]}`,minHeight:"2.875rem",selectors:{"&:has(input:hover)":{cursor:"pointer"},"&:has(input:focus)":{...Oa,boxShadow:`0 0 0 ${be.border.thickness.normal} ${be.color.structure.borderLowContrast}, \n 0 0 0 ${be.border.thickness.normal} ${be.color.background.surface}`}}},`${p_}_card-label`));(0,he.style)({selectors:{"&:has(input:checked)":{backgroundColor:be.color.selected.alt,color:be.color.selected.contrast}}},`${p_}_card-expressive`),(0,he.style)({selectors:{"&:has(input:checked):before":{...f_,...g_(be.border.thickness.emphasis,be.color.selected.main)}}},`${p_}_card-functional`),(0,he.style)({...m_,top:`calc(${be.space[200]} - ${be.border.thickness.normal})`,border:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,borderRadius:be.border.radius.interactive,backgroundColor:be.color.background.surface,selectors:{[`${v_}:has(input:checked) &`]:{display:"none"},"[dir='rtl'] &":{...h_}}},`${p_}_unselected`),(0,he.style)({display:"none",...m_,selectors:{[`${v_}:has(input:checked) &`]:{display:"block"},"[dir='rtl'] &":{...h_}}},`${p_}_selected-multi`),(0,he.style)({display:"none",...m_,border:`0.3125rem solid ${be.color.background.surface}`,borderRadius:be.border.radius.interactive,selectors:{[`${v_}:has(input:checked) &`]:{display:"block"},"[dir='rtl'] &":{...h_}}},`${p_}_selected-single`),(0,he.style)({borderColor:be.color.selected.main},"selected-functional-single"),(0,he.style)({color:be.color.selected.main},`${p_}_selected-functional-multi`),(0,he.style)({padding:`${be.space[25]} 0`,width:"100%",borderRadius:"inherit"},`${p_}_layout`),(0,he.style)({paddingInlineEnd:be.space[350]},`${p_}_layout-end-padding`),(0,he.style)({display:"grid",gridGap:be.space[200]},`${p_}_layout-decoration`),(0,he.style)({gridTemplateColumns:"auto 1fr",alignItems:"center",gridGap:be.space[100]},`${p_}_decoration-align-leading`),(0,he.style)({opacity:0,position:"absolute"},`${p_}_input`),(0,he.style)({...Pt,color:be.color.background.mediumContrast,display:"flex",alignItems:"center",marginTop:be.space[50],marginBottom:0},`${p_}_error-text`),(0,he.style)({color:be.color.error.main,marginInlineEnd:be.space[50],flexShrink:0,alignSelf:"flex-start"},`${p_}_error-icon`),(0,he.style)({background:be.color.background.alt},`${p_}_expressive-level-3`),(0,he.style)({":before":{...f_,...g_(be.border.thickness.normal,be.color.structure.borderLowContrast)}},`${p_}_functional-level-3`),(0,he.style)({":after":{...y_(be.border.thickness.emphasis,u_)}},`${p_}_error-expressive`),(0,he.style)({":after":{...y_(be.border.thickness.emphasis,u_)},selectors:{"&:has(input:checked):after":{...y_(u_,"0.25rem")}}},`${p_}_error-functional`),(0,he.style)({selectors:{[`${Et}&`]:{color:"inherit"}}},`${p_}_label`),(0,he.style)({selectors:{[`${Ot}&`]:{marginTop:be.space[25],color:be.color.background.mediumContrast},[`${v_}:has(input:checked) &`]:{color:"inherit"}}},`${p_}_label-description`),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-selection-group");const k_=(e,t="selection_group")=>`${t}_${e}`,x_=be.space[100],w_=`calc(${be.space[100]} - ${be.border.thickness.normal})`,__=`calc(${be.space[100]} - ${be.border.thickness.focus})`,S_=`calc(${be.border.thickness.normal} + ${be.border.thickness.normal})`,C_="0.125rem",E_={content:"",position:"absolute",top:`calc(${be.border.thickness.normal} * -1)`,left:`calc(${be.border.thickness.normal} * -1)`,right:0,borderRadius:be.border.radius.md,width:`calc(100% + ${C_})`,height:`calc(100% + ${C_})`,pointerEvents:"none"},$_={backgroundColor:be.color.background.surface,color:be.color.secondary.main,borderColor:be.color.secondary.main,borderWidth:be.border.thickness.normal,padding:x_,zIndex:1,WebkitTextStrokeWidth:"0.0421875rem"},A_={flexDirection:"column",minWidth:"auto"},T_=((0,he.style)({boxSizing:"border-box",borderStyle:"none",padding:0,textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},k_("base")),(0,he.style)({display:"flex",flexWrap:"wrap",position:"relative",minWidth:"18rem",marginTop:`calc(${be.space[150]} * -1)`,marginInlineEnd:`calc(${be.space[150]} * -1)`},k_("buttons")),(0,he.style)({"@media":{[`screen and (max-width: ${we})`]:A_}},k_("buttons_responsive_xs")),(0,he.style)({"@media":{[`screen and (max-width: ${_e})`]:A_}},k_("buttons_responsive_sm")),(0,he.style)({"@media":{[`screen and (max-width: ${Se})`]:A_}},k_("buttons_responsive_md")),(0,he.style)({...A_,marginTop:0,display:"grid",gridAutoRows:"1fr",gap:be.space[150]},k_("buttons_vertical")),(0,he.style)([St,{display:"block",color:be.color.background.highContrast,marginBottom:be.space[150]}],k_("group_label")),(0,he.style)({...Pt,display:"block",listStyle:"none",paddingLeft:0,margin:`${be.space[150]} 0 0 0`},k_("helper_text")),(0,he.style)({...Pt,color:be.color.background.mediumContrast,display:"flex",alignItems:"center",marginTop:be.space[50],marginBottom:0},k_("error_text")),(0,he.style)({color:be.color.error.main,marginInlineEnd:be.space[50],flexShrink:"0",alignSelf:"flex-start"},k_("error_icon")),(0,he.style)({justifyContent:"center"},k_("center")),(0,he.style)({justifyContent:"stretch"},k_("justify")),(0,he.style)({position:"absolute",clip:"rect(0, 0, 0, 0)",pointerEvents:"none",width:"1px",height:"1px"},k_("control")));(0,he.globalStyle)(`${T_}:focus + label`,{outline:"none",...Oa,borderWidth:be.border.thickness.normal,padding:x_}),(0,he.globalStyle)(`${T_}:checked + label div`,{color:be.color.secondary.main}),(0,he.globalStyle)(`${T_}:checked + label span`,{color:be.color.secondary.main});const O_=(0,he.style)({},k_("label_when_focused_and_checked"));(0,he.globalStyle)(`${O_} input:checked + label:after`,{border:`${S_} solid ${be.color.primary.main}`}),(0,he.style)([St,{display:"flex",flexDirection:"column",justifyContent:"center",backgroundColor:be.color.background.surface,padding:x_,marginTop:be.space[150],marginRight:be.space[150],textAlign:"center",cursor:"pointer",userSelect:"none",border:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,borderRadius:be.border.radius.md,position:"relative",transition:`color ${be.motion.duration.action} ease,\n background-color ${be.motion.duration.action} ease,\n border-color ${be.motion.duration.action} ease`,minHeight:"3.75rem",minWidth:"5.125rem",selectors:{"&:hover":{background:be.color.background.surface,borderColor:be.color.secondary.main},"[dir='rtl'] & ":{marginRight:0,marginLeft:be.space[150]}}}],k_("label")),(0,he.style)({textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},k_("secondary_label_vertical")),(0,he.style)({marginRight:0,marginTop:0},k_("label_vertical")),(0,he.style)({flex:"1 0 auto"},k_("label_justify"));const z_=(0,he.style)({},k_("primary"));(0,he.globalStyle)(`${z_} input:checked + label`,$_),(0,he.globalStyle)(`${z_} input:focus + label:after`,{borderColor:be.color.secondary.main}),(0,he.globalStyle)(`${z_} input:checked + label:after`,{...E_,border:`${be.border.thickness.focus} solid ${be.color.secondary.main}`}),(0,he.globalStyle)(`${z_} input:checked + label &:hover`,{border:`${be.border.thickness.normal} solid ${be.color.secondary.main}`}),(0,he.globalStyle)(`${z_} input:checked + label span`,{color:be.color.secondary.main}),(0,he.style)([Pt,{color:be.color.background.mediumContrast}],k_("secondary_label_two")),(0,he.style)({borderWidth:be.border.thickness.emphasis,backgroundColor:be.color.background.surface,borderColor:be.color.error.main,padding:w_},k_("error_label"));const F_=(0,he.style)({},k_("error_label_when_checked"));(0,he.globalStyle)(`${F_} input:checked + label:after`,{padding:__,border:`${be.border.thickness.focus} solid ${be.color.error.main}`,zIndex:1}),(0,he.globalStyle)(`${F_} input:checked + label &:hover`,{border:`${be.border.thickness.focus} solid ${be.color.error.main}`}),(0,he.globalStyle)(`${F_} input:checked + label &:after`,{border:"none"});const P_=(0,he.style)({},k_("error_label_when_focused"));(0,he.globalStyle)(`${P_} input:focus + label &:hover`,{borderColor:be.color.error.main,borderWidth:be.border.thickness.emphasis}),(0,he.globalStyle)(`${P_} input:focus + label &:after`,{border:"none"}),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-switch");const R_="3.5rem",L_=`calc(${R_} - ${be.size.circle.sm})`,N_=`calc(${be.size.circle.sm} / 2)`,{ppuiEaseMoveSmall:I_}=oa,M_=(0,he.style)({position:"relative",textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"switch_base"),H_=(0,he.style)([St,{display:"block",marginBottom:be.space[150],selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:be.space[300]}}}],"switch_label"),j_=(0,he.style)({display:"block",color:be.color.background.mediumContrast},"switch_secondary_label"),B_=(0,he.style)({display:"flex",flexWrap:"wrap",alignItems:"center",width:"100%"},"switch_inline"),D_=(0,he.style)({flex:"1 1 0",textAlign:"start",paddingRight:be.space[300],marginBottom:0,selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:be.space[300]}}},"switch_inline_label"),V_=(0,he.style)({flex:"0 0 100%"},"switch_inline_helperText"),W_=(0,he.style)({width:R_,height:be.size.circle.sm,position:"relative"},"switch_container"),U_=(0,he.style)({display:"inline-block",width:R_,height:be.size.circle.sm,cursor:"pointer",border:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,borderRadius:N_,backgroundColor:be.color.unselected.main},"switch_state");(0,he.globalStyle)(`${U_} > span`,{visibility:"hidden",width:"0.0625rem",height:"0.0625rem",overflow:"hidden",position:"absolute",whiteSpace:"nowrap"});const G_=(0,he.style)({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:0,left:0,width:be.size.circle.sm,height:be.size.circle.sm,backgroundColor:be.color.selected.contrast,borderRadius:be.border.radius.interactive,border:`${be.border.thickness.normal} solid ${be.color.structure.borderHighContrast}`,transition:`${be.motion.duration.move.small} ${I_}`},"switch_handler"),q_=(0,he.style)({display:"none",color:be.color.selected.main},"switch_selectedIcon"),K_=(0,he.style)({opacity:0,position:"absolute"},"switch_control");(0,he.globalStyle)(`${K_}:focus ~ label`,{...Oa}),(0,he.globalStyle)(`${K_}:hover ~ label`,{backgroundColor:be.color.unselected.mainHover}),(0,he.globalStyle)(`${K_}:checked ~ label`,{backgroundColor:be.color.selected.main,border:`${be.border.thickness.normal} solid ${be.color.selected.main}`}),(0,he.globalStyle)(`${K_}:checked ~ span`,{transform:`translateX(${L_})`,border:`${be.border.thickness.normal} solid ${be.color.selected.main}`}),(0,he.globalStyle)(`${K_}:checked + label + span > span:first-of-type`,{display:"inline-block"}),(0,he.globalStyle)(`${K_}:checked:hover ~ label`,{backgroundColor:be.color.selected.mainHover});const Y_=(0,he.style)([Ot,{marginTop:be.space[50],listStyle:"none",paddingLeft:0,color:be.color.background.mediumContrast}],"switch_helperText");me.endFileScope();var X_=["checked","inline","className","inputClassName","labelClassName","helperText","hideLabel","id","label","secondaryLabel","onChange","required","value"];(0,pe.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?Ze("Switch_"):c,d=e.label,p=e.secondaryLabel,f=e.onChange;e.required;var m,h,g=e.value,y=ye(e,X_),b=Ke(M_,n&&B_,a),v=Ke(H_,n&&D_),k=Ke(Y_,n&&V_),x="message_".concat(u),w="label_".concat(u),_=f?{onChange:f,checked:r}:{defaultChecked:r};return fe().createElement("div",{className:b,"data-ppui-info":"switch_4.2.2__8.12.0"},!s&&fe().createElement("span",{id:w,className:v,"data-ppui":"true"},d,fe().createElement(at,{as:"div",className:j_,"data-ppui":"true"},p)),fe().createElement("div",{className:W_,"data-ppui":"true"},fe().createElement("input",ge({},l?{"aria-describedby":x}:null,s?{}:{"aria-labelledby":w},{"aria-label":s?d:null,className:Ke(K_,i),id:u,role:"switch",type:"checkbox",value:g,ref:t},_,y,{"data-ppui":"true"})),fe().createElement("label",{className:Ke(U_,o),htmlFor:u,"data-ppui":"true"},fe().createElement("span",{"data-ppui":"true"},d)),fe().createElement("span",{className:G_,"data-ppui":"true"},fe().createElement(Ci,{size:"xs",className:q_,"aria-hidden":"true","data-ppui":"true"}))),(h=x,(m=l)&&fe().createElement("div",{className:k,id:h,"data-ppui":"true"},m)||null))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-tabs");const{variables:Q_}=n,Z_=`calc(${be.space[400]} + ${be.space[300]})`,J_=`calc(${be.size.tapTarget.default} * 2)`,eS=`calc(${be.space[300]} * 3)`,tS={display:"none"},rS={display:"block"},nS=((0,he.style)({position:"relative"},"tabs_wrapper_base"),(0,he.style)({overflowY:"hidden",whiteSpace:"nowrap",position:"relative",scrollbarWidth:"none",padding:`${be.space[300]} ${be.space[300]} ${be.space[300]} ${Z_}`,selectors:{"&::-webkit-scrollbar":{...tS}}},"tabs_base"),(0,he.style)({display:"flex",float:"left",minHeight:be.size.field.sm,width:"max-content",position:"relative",selectors:{"[dir='rtl'] &":{float:"right"}}},"tabs_wrapper"),(0,he.style)({minWidth:"100%",width:"auto",minHeight:be.size.field.sm,justifyContent:"center","@media":{"(max-width: 120px)":{width:"auto",justifyContent:"flex-start"}}},"tabs_center"),(0,he.style)({...rS,...Vr,padding:`${be.space[150]} ${be.space[50]}`,minHeight:be.size.field.sm,minWidth:"5.25rem",maxWidth:"11.5rem",marginInlineEnd:be.space[200],outline:"none",position:"relative",border:"none",backgroundColor:"transparent",whiteSpace:"normal",wordWrap:"break-word",textDecoration:"none",flexShrink:0,cursor:"pointer",color:be.color.background.mediumContrast,zIndex:1,":last-of-type":{marginInlineEnd:0},"::after":{content:"",position:"absolute",inset:0,border:"none",pointerEvents:"none",top:"auto"},":hover":{backgroundColor:be.color.background.surfaceHover,borderRadius:be.border.radius.xs,textDecoration:"none"},":active":{color:be.color.background.highContrast,textDecoration:"none"},":focus":{...Oa,textDecoration:"none",borderRadius:be.border.radius.xs,outlineOffset:"unset",transform:"none",transition:"none"},":visited":{textDecoration:"none"}},"tabs_btn")),aS=((0,he.style)({position:"absolute",bottom:0,left:0,width:0,height:be.border.thickness.emphasis,borderRadius:be.border.radius.tiny,borderBottom:`${be.border.thickness.emphasis} solid ${be.color.background.highContrast}`,transition:`all ${be.motion.duration.move.small} ${Q_.ppuiEaseMoveSmall}`},"tabs_slider"),(0,he.style)({color:be.color.background.highContrast,":hover":{textDecoration:"none"}},"tabs_selected_btn"));(0,he.globalStyle)(`${aS}:hover::after`,{borderRadius:be.border.radius.tiny,borderBottom:`${be.border.thickness.emphasis} solid ${be.color.background.highContrast}`}),(0,he.style)({backgroundColor:be.color.background.surface,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,visibility:"hidden",width:be.size.tapTarget.default,height:J_,top:0},"tabs_scroll_btn"),(0,he.style)({left:0,background:`linear-gradient(\n 90deg,\n ${be.color.background.surface} 47.45%,\n ${Ye(be.color.background.surface,"0")} 100%\n )`,zIndex:1},"tabs_scroll_btn_left"),(0,he.style)({right:0,background:`linear-gradient(\n 270deg,\n ${be.color.background.surface} 47.45%,\n ${Ye(be.color.background.surface,"0")} 100%\n )`,zIndex:1},"tabs_scroll_btn_right"),(0,he.style)({visibility:"visible",opacity:1,transition:`visibility ${be.motion.duration.move.small},\n opacity ${be.motion.duration.move.small}`},"tabs_scroll_btn_visible"),(0,he.style)([cl,{color:be.color.primary.main,background:be.color.background.surface}],"tabs_arrow_icon"),(0,he.style)({margin:`0 ${be.space[300]} 0 ${eS}`,":focus":{outline:"none"},selectors:{"&[aria-hidden='true']":{...tS}}},"tabs_content"),(0,he.style)({":focus":{boxShadow:`0 0 ${be.border.thickness.emphasis}\n ${be.border.thickness.emphasis} ${be.color.structure.focus}`}},"tabs_content_focus"),(0,he.style)({...tS},"hide_btn"),(0,he.style)({...rS},"tabs_content_visible"),(0,he.style)({...tS},"tabs_content_hidden"),(0,he.style)([fl,{background:be.color.background.surface}],"tabs_nav_background"),me.endFileScope();var iS=["id","tabIdx","label","tabGroupId","panelId","selected","onClick","className"];fe().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=ye(e,iS),d=Ke(nS,l&&aS,c),p=l?0:-1,f=r||"".concat(i,"-tab").concat(parseInt(n,10)+1);return fe().createElement("button",ge({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)})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-area");const oS=(0,he.style)({backgroundColor:be.color.background.surface,outline:"none",boxShadow:"none",resize:"none",display:"block"},"text-area_control");(0,he.globalStyle)(`${oS}:placeholder-shown:not(:focus) ~ label`,{paddingTop:0});const lS=(0,he.style)({backgroundColor:be.color.background.surface,top:be.border.thickness.normal,paddingTop:`calc(${be.space[100]} - ${be.border.thickness.normal})`},"text-area_control_label"),sS=(0,he.style)({top:be.border.thickness.emphasis,paddingTop:`calc(${be.space[100]} - ${be.border.thickness.emphasis})`},"text-area_control_error_label"),cS=(0,he.style)({cursor:"text",position:"relative",padding:be.border.thickness.normal,":after":{content:" ",position:"absolute",height:"100%",width:"100%",top:0,left:0,border:`${be.border.thickness.normal} solid ${be.color.structure.borderLowContrast}`,borderRadius:be.border.radius.sm,pointerEvents:"none"},":focus-within":{borderRadius:be.border.radius.sm,...Oa}},"text-area_wrapper"),uS={border:"none",outline:"none",boxShadow:"none",marginTop:`calc(${be.space[350]} + ${be.space[25]} - ${be.border.thickness.normal})`,paddingTop:0,minHeight:`calc((${be.size.field.sm} / 2) + ${be.space[100]} - ${be.border.thickness.normal})`};(0,he.globalStyle)(`${cS} > textarea:focus, ${cS} > textarea:not(:focus)`,uS);const dS=(0,he.style)([qi,{paddingTop:be.space[100],paddingRight:`calc(${be.space[150]} - ${be.border.thickness.normal})`,paddingBottom:`calc(${be.space[100]} - ${be.border.thickness.normal})`,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.normal})`,textAlign:"right",backgroundColor:be.color.background.surface,selectors:{"[dir='rtl'] & ":{textAlign:"left"}}}],"text-area_counter_text"),pS=(0,he.style)({paddingLeft:be.border.thickness.emphasis,paddingRight:be.border.thickness.emphasis,":after":{border:`${be.border.thickness.emphasis} solid ${be.color.error.main}`}},"text-area_error_counter_wrapper"),fS=(0,he.style)({color:be.color.error.main,paddingLeft:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`,paddingRight:`calc(${be.space[150]} - ${be.border.thickness.emphasis})`},"text-area_error_counter_text");me.endFileScope();var mS=["className","minRows","maxRows","showCharacterCounter","maxCharacters","counterStatusText","onChange","onBlur","onFocus","value","errorText","successText"],hS=["inputClassName","name","id","setFocus","hasError","placeholder","label","labelClassName","inputTag","placemat"];(0,pe.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,m=void 0===f?null:f,h=e.value,g=e.errorText,y=e.successText,b=ye(e,mS),v=function(e){return e*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16)}(1.5),k=a>1?Math.min(a,6):6,x=n>=1?Math.max(n,1):2,w=el((0,pe.useState)(h?h.length:0),2),_=w[0],S=w[1],C=el((0,pe.useState)(!1),2),E=C[0],$=C[1],A=(0,pe.useRef)(),T=t||A,O=(0,pe.useContext)(ja),z=(0,pe.useRef)(0),F=(0,pe.useRef)(v*k),P=(0,pe.useRef)(v*x);(0,pe.useEffect)((function(){if(T.current){var e=T.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)?v:a,s=Number.isNaN(i)?0:i,c=Number.isNaN(o)?0:o;z.current=t-r,F.current=z.current+c+s+l*k,P.current=z.current+c+s+l*x,function(){var e=T.current;e.style.height="".concat(P.current,"px");var t=e.scrollHeight+z.current;t>F.current?e.style.height="".concat(F.current,"px"):t>P.current?e.style.height="".concat(t,"px"):e.style.height="".concat(P.current,"px")}(),$("rtl"===n.direction)}}),[x,k,h]);var R=function(){T.current&&T.current.focus()};return fe().createElement(jo,ge({className:r,value:h,onChange:function(e){var t=e.target;S(t.value.length),u&&u(e)},onFocus:function(e){m&&m(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=ye(e,hS),f=fe().createElement(Wo,ge({inputClassName:Ke(t,oS),inputTag:"textarea",name:r,id:n,setFocus:a,inputRef:T,hasError:i,placeholder:c,label:u,labelClassName:Ke(d,lS,sS)},p,{"data-ppui":"true"})),m=Ke(cS,i&&pS);if(o){var h="";l&&(h=E?"".concat(l,"/"):"/".concat(l));var g=E?"".concat(h).concat(_):"".concat(_).concat(h),y=function(e,t,r,n){return r?e&&e.messageFormatter?e.messageFormatter({id:r}).format(n):r:t}(O,"".concat(_," out of ").concat(l," characters used"),s,{charCount:_,maxCharacters:l}),b=Ke(dS,i&&fS);return fe().createElement("div",{className:m,onClick:R,"data-ppui":"true"},f,fe().createElement("div",{className:b,role:"status","aria-live":"polite","aria-atomic":"true","aria-label":y,"data-ppui":"true"},g))}return fe().createElement("div",{className:m,onClick:R,"data-ppui":"true"},f)},errorText:g,successText:y,"data-ppui-info":"text-area_1.2.2__8.12.0"},b))})),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-display");const gS=`calc(${be.size.tapTarget.default} + ${be.space[150]})`,yS=`calc(${be.typography.caption.lineHeight} + ${be.space[75]})`;(0,he.style)({paddingTop:be.space[150],paddingBottom:be.space[150],paddingLeft:0,selectors:{"[dir='rtl'] & ":{paddingLeft:gS}}},"text-display_no_label_control"),(0,he.style)({border:0,paddingLeft:0,paddingTop:yS,paddingBottom:0,minHeight:"2.875rem",display:"block",backgroundColor:"transparent",overflowWrap:"break-word",selectors:{"[dir='rtl'] & ":{paddingRight:0}}},"text-display_control"),(0,he.style)({top:0,left:0,selectors:{"[dir='rtl'] & ":{left:gS,right:0}}},"text-display_label"),(0,he.style)({top:0},"text-display_icon_right"),(0,he.style)({right:gS},"text-display_label_icon_right"),(0,he.style)({paddingRight:`calc(${gS} - ${be.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${gS} - ${be.border.thickness.normal})`}}},"text-display_control_icon_right"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-toast");const bS=`calc(-2*${be.space[200]})`,{ppuiEaseEnterSmall:vS,ppuiEaseExitSmall:kS}=oa,xS=((0,he.style)([dl,St,{display:"flex",padding:be.space[200],borderRadius:be.border.radius.lg,left:0,right:0,margin:"auto",whiteSpace:"normal",maxWidth:"30rem",pointerEvents:"auto"}],"toast_base"),(0,he.style)({alignItems:"center",display:"flex"},"toast_message"),(0,he.style)({display:"flex",position:"fixed",top:be.space[200],zIndex:1100,left:"50%",transform:"translateX(-50%)",width:`calc(100% - ${be.space[200]} * 2)`,visibility:"hidden",opacity:0,pointerEvents:"none",selectors:{"&[aria-hidden='false']":{visibility:"visible",opacity:1}}},"toast_container"),(0,he.keyframes)({"0%":{transform:`translate(-50%, ${bS})`,opacity:0},"100%":{visibility:"visible",transform:"translate(-50%, 0)",opacity:1}},"toast_fade-in")),wS=(0,he.keyframes)({"0%":{visibility:"visible",transform:"translate(-50%, 0)",opacity:1},"100%":{visibility:"hidden",transform:`translate(-50%, ${bS})`,opacity:0}},"toast_fade-out"),_S=((0,he.style)({animation:`${xS} ${be.motion.duration.enter.small} ${vS}`},"toast_show"),(0,he.style)({animation:`${wS} ${be.motion.duration.exit.small} ${kS}`},"toast_hide"),{background:be.color.success.main,color:be.color.success.contrast});(0,he.style)({marginRight:be.space[100],height:be.size.icon.sm,flexShrink:"0",selectors:{"[dir='rtl'] &":{marginLeft:be.space[100],marginRight:0}}},"toast_icon"),(0,he.style)({background:be.color.system.main,color:be.color.system.contrast},"toast_info"),(0,he.style)(_S,"toast_success"),(0,he.style)(_S,"toast_favorite"),me.endFileScope(),me.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-section");const SS=(0,he.style)({display:"flex",justifyContent:"space-between",marginBottom:be.space[50],height:"1.5rem"},"section_title-container"),CS=(0,he.style)({marginBottom:be.space[150]},"section_header"),ES=(0,he.style)({margin:`${be.space[25]} 0`},"section_title"),$S=(0,he.style)({display:"flex",cursor:"pointer",":focus":{...Oa},border:"none",background:"inherit",borderRadius:be.border.radius.xs,alignItems:"center",paddingLeft:be.space[100],columnGap:be.space[25]},"section_action-container"),AS=(0,he.style)({color:be.color.background.mediumContrast},"section_caption-text"),TS=(0,he.style)({display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-start",rowGap:be.space[150]},"section_content-area"),OS=(0,he.style)([Ot,{margin:`${be.space[150]} 0`,color:be.color.background.mediumContrast}],"section_footer"),zS=(0,he.style)({selectors:{"[dir='rtl'] &":{transform:"rotate(180deg)"}}},"section_action-icon");me.endFileScope();var FS=function(e){var t=e.label,r=e.onClick;return fe().createElement("button",{className:$S,onClick:function(e){return r(e)},onKeyDown:function(e){!function(e,t){"Enter"===e.key&&t(e)}(e,r)},"data-ppui":"true"},t&&fe().createElement(ra,{clampAtLine:2,className:AS,"data-ppui":"true"},t),fe().createElement(Ai,{className:zS,size:"xs",color:"sysColorBackgroundMediumContrast","data-ppui":"true"}))},PS=function(e){var t=e.title,r=e.subTitle,n=e.action;return fe().createElement(fe().Fragment,null,fe().createElement("div",{className:SS,"data-ppui":"true"},t&&fe().createElement(aa,{className:ES,type:"medium","data-ppui":"true"},t),n&&fe().createElement(FS,{label:n.label,onClick:n.onClick,"data-ppui":"true"})),r&&fe().createElement(ra,{clampAtLine:2,className:AS,"data-ppui":"true"},r))},RS=["variant","children","className","id"],LS=["children","className"],NS=["children","className"],IS=["children"],MS=function(e){var t=e.children,r=ye(e,IS);return fe().createElement("section",ge({},r,{"data-ppui":"true"}),t)};MS.Header=function(e){var t=e.variant,r=void 0===t?"default":t,n=e.children,a=e.className,i=e.id,o=ye(e,RS);return fe().createElement("header",{className:Ke(CS,a),id:i,"data-ppui":"true"},function(){switch(r){case"default":return fe().createElement(PS,ge({},o,{"data-ppui":"true"}));case"custom":return fe().createElement(fe().Fragment,null,n);default:return fe().createElement(fe().Fragment,null)}}())},MS.Content=function(e){var t=e.children,r=e.className,n=ye(e,NS);return fe().createElement("article",ge({className:Ke(TS,r)},n,{"data-ppui":"true"}),t)},MS.Footer=function(e){var t=e.children,r=e.className,n=ye(e,LS);return fe().createElement("footer",ge({className:Ke(OS,r)},n,{"data-ppui":"true"}),t)};const HS=function(e){var t=e.isLoading,r=e.children;return m().createElement(m().Fragment,null,t&&m().createElement("div",{id:"loadingWrapper",style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},m().createElement(hs,{size:"lg"})),r)};function jS(e){return jS="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},jS(e)}function BS(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 DS(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 VS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DS(Object(r),!0).forEach((function(t){WS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function WS(e,t,r){return(t=function(e){var t=function(e){if("object"!=jS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=jS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var US={nojs:1,comp:"merchant-onboarding-sdk",sdk_env:window?window.__TARGET__:"production",sdk_ver:"1",domain:"merchant_onboarding",product:"mep",space_key:"SK3YPU"};const GS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e&&e.trim()){var r=new URL("https://t.paypal.com/ts"),n=VS(VS({},US),{},{event_name:e},t);Object.entries(n).forEach((function(e){var t=function(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 BS(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)?BS(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.")}()}(e,2),n=t[0],a=t[1];r.searchParams.set(n,a)})),(new Image).src=r.href}};function qS(e){return qS="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},qS(e)}function KS(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,ZS(n.key),n)}}function YS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YS=function(){return!!e})()}function XS(e){return XS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XS(e)}function QS(e,t){return QS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QS(e,t)}function ZS(e){var t=function(e){if("object"!=qS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=qS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qS(t)?t:t+""}var JS,eC,tC,rC=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=XS(t),function(e,t){if(t&&("object"==qS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,YS()?Reflect.construct(t,r||[],XS(e).constructor):t.apply(e,r))}(this,t,[e])).state={hasError:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QS(e,t)}(t,e),r=t,(n=[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t})}},{key:"render",value:function(){var e=this;if(!this.state.errorInfo)return this.props.children;console.log(JSON.stringify(this.state.errorInfo));var t={title:"Try Again",onClick:function(){window.Paypal.onboard.onSDKError(e.state.error,e.state.errorInfo)}};return GS("onboarding_sdk_error_boundary",{message:String(this.state.error.message)}),m().createElement(Sk,{title:"Something went wrong",subTitle:"Trying again might help fix the problem.",primaryButtonOptions:t})}}])&&KS(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(m().Component);JS=rC,eC="propTypes",tC={customError:g().node,children:g().node.isRequired},(eC=ZS(eC))in JS?Object.defineProperty(JS,eC,{value:tC,enumerable:!0,configurable:!0,writable:!0}):JS[eC]=tC;const nC=rC;var aC=r(867),iC=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,aC.Bx)(t,((e,t)=>{if(null!=e){var a=(0,aC.Jt)(n,t);r[(0,aC.Tm)(a)]=String(e)}}))}else{var a=e;for(var i in a){var o=a[i];null!=o&&(r[(0,aC.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}(be,n):{};return m().createElement(xe,{theme:ve,style:{width:"100%"}},m().createElement("div",{style:a},t))};iC.propTypes={children:g().node,styleOverrides:g().object};const oC=iC,lC={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 sC=function(e){return e?lC[e].paScriptUrl:null!=="https://www.paypalobjects.com/pa/js/min/pa.js"?"https://www.paypalobjects.com/pa/js/min/pa.js":lC.production.paScriptUrl};function cC(e){return cC="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},cC(e)}function uC(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 dC(){dC=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 y?t:y,o=Object.create(i.prototype),l=new O(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="suspendedYield",m="executing",h="completed",g={};function y(){}function b(){}function v(){}var k={};c(k,o,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(z([])));w&&w!==r&&n.call(w,o)&&(k=w);var _=v.prototype=y.prototype=Object.create(k);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(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"==cC(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===m)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=$(l,n);if(s){if(s===g)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=m;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?h:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=h,n.method="throw",n.arg=c.arg)}}}function $(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,$(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;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,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function z(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(cC(t)+" is not iterable")}return b.prototype=v,a(_,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"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(_),e},t.awrap=function(e){return{__await:e}},S(C.prototype),c(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new C(u(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(_),c(_,s,"Generator"),c(_,o,(function(){return this})),c(_,"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=z,O.prototype={constructor:O,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(T),!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,g):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),g},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),T(r),g}},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;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:z(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function pC(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 fC(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){pC(i,n,a,o,l,"next",e)}function l(e){pC(i,n,a,o,l,"throw",e)}o(void 0)}))}}var mC=function(){var e=fC(dC().mark((function e(){var t;return dC().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.e(647).then(r.t.bind(r,647,23));case 3:t=e.sent,e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(0),GS("onboarding_sdk_load_remote_component_error",{message:String(e.t0.message)}),e.t0;case 10:return GS("onboarding_sdk_load_remote_component"),e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),hC=m().lazy(mC),gC=function(e){var t,r=function(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 uC(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)?uC(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.")}()}((0,f.useState)(null),2),n=r[0],a=r[1],i="https://".concat((t=e.env)?lC[t].host:null!=="www.paypal.com"?"www.paypal.com":lC.production.host,"/unifiedonboarding/sdk/entry");return(0,f.useEffect)((function(){e.env&&(window.__TARGET__=e.env);var t=function(){var t=fC(dC().mark((function t(){var r,n,o;return dC().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=fetch,t.t1=i+"?"+new URLSearchParams({referralToken:e.referralToken,reimagineFlow:!0,flowId:e.flowId}).toString(),t.next=4,window.Paypal.onboard._getClientToken();case 4:return t.t2=t.sent,t.t3={Authorization:t.t2},t.t4={method:"GET",headers:t.t3},t.next=9,(0,t.t0)(t.t1,t.t4);case 9:if(200!==(r=t.sent).status){t.next=18;break}return GS("onboarding_sdk_fetch_data"),t.next=14,r.json();case 14:n=t.sent,a(n),t.next=21;break;case 18:throw o="Failed to fetch data: ".concat(r.status," ").concat(r.statusText," for url: ").concat(r.url),GS("onboarding_sdk_fetch_data_error",{message:String(o)}),new Error(o);case 21:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()}),[]),m().createElement(oC,{styleOverrides:e.style},m().createElement(de,null,m().createElement("script",{src:sC(e.env),async:!0})),null!=n&&n.preloadedState?m().createElement(m().Suspense,{fallback:m().createElement(HS,{isLoading:!0})},m().createElement(nC,null,m().createElement("div",{id:"remoteContainer"},m().createElement(hC,{preFetchedData:n,config:{baseName:"/"},styleOverrides:e.style,isSDKFlow:!0})))):m().createElement(HS,{isLoading:!0}))};gC.propTypes={referralToken:g().string.isRequired,style:g().object,flowId:g().string,env:g().string};const yC=gC;var bC=r(36),vC=r.n(bC);function kC(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 xC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kC(Object(r),!0).forEach((function(t){wC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wC(e,t,r){return(t=function(e){var t=function(e){if("object"!=CC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=CC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==CC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _C(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 SC(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)?SC(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 SC(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 CC(e){return CC="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},CC(e)}var EC=function(e){try{return new URL(e),!0}catch(e){return!1}},$C=function(e){return"function"==typeof e||void 0===e},AC=function(e,t){for(var r in e){if(!(r in t))return console.error("Invalid style. Key ".concat(r," doesn't exist in the theme")),!1;if("object"===CC(e[r])){if(!AC(e[r],t[r]))return!1}else if("object"===CC(t[r]))return console.error("Invalid style. Mismatch in types for key: ".concat(r)),!1}return!0},TC={accessToken:{required:!0,validate:function(e){return"string"==typeof e&&""!==e.trim()},message:"accessToken must be a non-empty string"},env:{validate:function(e){return t=e,Object.keys(lC).includes(t);var t},message:"env must be a valid environment string"},actionUrl:{required:!0,validate:function(e){return EC(e)&&function(e){var t=new URL(e).searchParams.get("referralToken");return"string"==typeof t&&""!==t.trim()}(e)},message:"actionUrl must be a valid URL string with a referral Token"},cancelUrl:{validate:function(e){return EC(e)},message:"cancelUrl must be a valid URL"},style:{validate:function(e){return AC(e,be)},message:"Invalid style. Must follow the structure of PAYPAL_THEME."},onProgress:{validate:$C,message:"onProgress must be a function"},onComplete:{validate:$C,message:"onComplete must be a function"},onAccessTokenExpiry:{validate:$C,message:"onAccessTokenExpiry must be a function"},onReferralTokenExpiry:{validate:$C,message:"onReferralTokenExpiry must be a function"},onCancel:{validate:$C,message:"onCancel must be a function"},onError:{validate:$C,message:"onError must be a function"},onSDKError:{validate:$C,message:"onSDKError must be a function"},onContactUs:{validate:$C,message:"onContactUs must be a function"},onLoginRequested:{validate:$C,message:"onLoginRequested must be a function"}},OC=function(e){var t={cancelUrl:e.cancelUrl||window.location.href};return btoa(JSON.stringify(t))},zC=function(e){if(!e)return!0;if(!e.startsWith("eyJ"))return console.warn("merchant-onboarding-sdk::invalid_token_format"),!1;try{var t=e.split(".");if(3!==t.length)return!0;var r=JSON.parse(atob(t[1]));if(!r.exp)return!0;var n=Math.floor(Date.now()/1e3);return r.exp<=n+30}catch(e){throw console.log("merchant-onboarding-sdk::error_checking_token_expiration"),e}};function FC(e){return FC="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},FC(e)}function PC(){PC=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 y?t:y,o=Object.create(i.prototype),l=new O(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="suspendedYield",m="executing",h="completed",g={};function y(){}function b(){}function v(){}var k={};c(k,o,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(z([])));w&&w!==r&&n.call(w,o)&&(k=w);var _=v.prototype=y.prototype=Object.create(k);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(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"==FC(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===m)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=$(l,n);if(s){if(s===g)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=m;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?h:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=h,n.method="throw",n.arg=c.arg)}}}function $(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,$(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;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,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function z(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(FC(t)+" is not iterable")}return b.prototype=v,a(_,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"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(_),e},t.awrap=function(e){return{__await:e}},S(C.prototype),c(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new C(u(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(_),c(_,s,"Generator"),c(_,o,(function(){return this})),c(_,"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=z,O.prototype={constructor:O,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(T),!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,g):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),g},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),T(r),g}},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;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:z(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function RC(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 LC(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){RC(i,n,a,o,l,"next",e)}function l(e){RC(i,n,a,o,l,"throw",e)}o(void 0)}))}}var NC={options:{},initialize:function(e){try{!function(e){for(var t=[],r=0,n=Object.entries(TC);r<n.length;r++){var a=_C(n[r],2),i=a[0],o=a[1];null!=o&&o.required&&!e.hasOwnProperty(i)&&t.push("Missing required property: ".concat(i)),e.hasOwnProperty(i)&&o.validate&&!o.validate(e[i])&&t.push(o.message)}if(t.length>0)throw new Error(t.join("\n"))}(e),this.options=function(e){return xC(xC({},e),{},{referralToken:new URL(e.actionUrl).searchParams.get("referralToken"),flowId:OC(e)})}(e)}catch(e){throw GS("onboarding_sdk_initialize_validation_error",{message:e.message}),e}return GS("onboarding_sdk_initialize"),this},onProgress:function(e){"function"==typeof this.options.onProgress&&(GS("onboarding_sdk_on_progress_callback",{message:e}),this.options.onProgress(e))},onComplete:function(){"function"==typeof this.options.onComplete&&(GS("onboarding_sdk_on_complete_callback"),this.options.onComplete())},onAccessTokenExpiry:function(){var e=this;return LC(PC().mark((function t(){return PC().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.options.onAccessTokenExpiry){t.next=5;break}return GS("onboarding_sdk_on_access_token_expiry_callback"),t.next=4,e.options.onAccessTokenExpiry();case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()},onReferralTokenExpiry:function(){"function"==typeof this.options.onReferralTokenExpiry&&(GS("onboarding_sdk_on_referral_token_expiry_callback"),this.options.onReferralTokenExpiry())},onCancel:function(){"function"==typeof this.options.onCancel&&(GS("onboarding_sdk_on_cancel_callback"),this.options.onCancel())},onError:function(e,t){"function"==typeof this.options.onError&&(GS("onboarding_sdk_on_error_callback",{message:e}),this.options.onError(e,t))},onSDKError:function(e,t){"function"==typeof this.options.onSDKError&&(GS("onboarding_sdk_on_sdk_error_callback",{message:e}),this.options.onSDKError(e,t))},onContactUs:function(){"function"==typeof this.options.onContactUs&&(GS("onboarding_sdk_on_contact_us_callback"),this.options.onContactUs())},onLoginRequested:function(e){var t=this;return LC(PC().mark((function r(){return PC().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("function"!=typeof t.options.onLoginRequested){r.next=5;break}return GS("onboarding_sdk_on_login_requested_callback",{message:e}),r.next=4,t.options.onLoginRequested(e);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},render:function(e){return vC().render(m().createElement(yC,this.options),document.getElementById(e)),this},_getClientToken:function(){var e=this;return LC(PC().mark((function t(){var r,n,a,i,o;return PC().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!zC(e.options.accessToken)){t.next=6;break}return t.next=4,e.options.onAccessTokenExpiry();case 4:r=t.sent,e.options.accessToken=r;case 6:return GS("onboarding_sdk_get_client_token"),t.abrupt("return",e.options.accessToken);case 10:throw t.prev=10,t.t0=t.catch(0),n=t.t0||{},a=n.message,i=n.stack,o=n.name,console.log("merchant-onboarding-sdk::error_getting_client_token",{message:a,stack:i,name:o}),GS("onboarding_sdk_get_client_token_error",{message:t.t0}),t.t0;case 16:case"end":return t.stop()}}),t,null,[[0,10]])})))()}};window.Paypal=window.Paypal||{},window.Paypal.onboard=window.Paypal.onboard||NC;const IC=NC},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++),m=f.charCodeAt(),h=void 0;if(m<32||m>126){if(m>=55296&&m<=56319&&d<p){var g=i.charCodeAt(d++);56320==(64512&g)?m=((1023&m)<<10)+(1023&g)+65536:d--}h="\\"+m.toString(16).toUpperCase()+" "}else h=o.escapeEverything?r.test(f)?"\\"+f:"\\"+m.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?"\\"+m.toString(16).toUpperCase()+" ":"\\"==f||!s&&('"'==f&&l==f||"'"==f&&l==f)||s&&n.test(f)?"\\"+f:f;u+=h}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},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 m=null,h=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,m){if(f.apply(this,arguments),s){if(!s)throw Error(o(198));var h=c;s=!1,c=null,u||(u=!0,d=h)}}(n,t,void 0,e),e.currentTarget=null}var b=null,v={};function k(){if(b)for(var e in v){var t=v[e],r=b.indexOf(e);if(!(-1<r))throw Error(o(96,e));if(!w[r]){if(!t.extractEvents)throw Error(o(97,e));for(var n in w[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,C[e]=t.eventTypes[r].dependencies}var w=[],_={},S={},C={};function E(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!v.hasOwnProperty(t)||v[t]!==n){if(v[t])throw Error(o(102,t));v[t]=n,r=!0}}r&&k()}var $=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),A=null,T=null,O=null;function z(e){if(e=h(e)){if("function"!=typeof A)throw Error(o(280));var t=e.stateNode;t&&(t=m(t),A(e.stateNode,e.type,t))}}function F(e){T?O?O.push(e):O=[e]:T=e}function P(){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 R(e,t){return e(t)}function L(e,t,r,n,a){return e(t,r,n,a)}function N(){}var I=R,M=!1,H=!1;function j(){null===T&&null===O||(N(),P())}function B(e,t,r){if(H)return e(t,r);H=!0;try{return I(e,t,r)}finally{H=!1,j()}}var D=/^[: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]*$/,V=Object.prototype.hasOwnProperty,W={},U={};function G(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 q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new G(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new G(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new G(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new G(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){q[e]=new G(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new G(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new G(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new G(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new G(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);q[t]=new G(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);q[t]=new G(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);q[t]=new G(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new G(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new G(e,1,!1,e.toLowerCase(),null,!0)}));var X=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(e,t,r,n){var a=q.hasOwnProperty(t)?q[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!!V.call(U,e)||!V.call(W,e)&&(D.test(e)?U[e]=!0:(W[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 Z=/^(.*)[\\\/]/,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,me="function"==typeof Symbol&&Symbol.iterator;function he(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=me&&e[me]||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(Z,"")+":"+a.lineNumber+")":r&&(i=" (created by "+r+")"),r="\n in "+(n||"Unknown")+i}t+=r,e=e.return}while(e);return t}function be(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ke(e){e._valueTracker||(e._valueTracker=function(e){var t=ve(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=ve(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function we(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=be(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)&&Q(e,"checked",t,!1)}function Ce(e,t){Se(e,t);var r=be(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,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ee(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=""+be(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:be(r)}}function Fe(e,t){var r=be(t.value),n=be(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 Pe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Re(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 Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ne,Ie,Me=(Ie=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ne=Ne||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ne.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 Ie(e,t)}))}:Ie);function He(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 je(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Be={animationend:je("Animation","AnimationEnd"),animationiteration:je("Animation","AnimationIteration"),animationstart:je("Animation","AnimationStart"),transitionend:je("Transition","TransitionEnd")},De={},Ve={};function We(e){if(De[e])return De[e];if(!Be[e])return e;var t,r=Be[e];for(t in r)if(r.hasOwnProperty(t)&&t in Ve)return De[e]=r[t];return e}$&&(Ve=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=We("animationend"),Ge=We("animationiteration"),qe=We("animationstart"),Ke=We("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 Qe(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ze(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(Ze(e)!==e)throw Error(o(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(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<w.length;s++){var c=w[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":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":st(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ye.indexOf(e)&&Gt(e,t)}r.set(e,null)}}var mt,ht,gt,yt=!1,bt=[],vt=null,kt=null,xt=null,wt=new Map,_t=new Map,St=[],Ct="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(" "),Et="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":vt=null;break;case"dragenter":case"dragleave":kt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":wt.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))&&ht(t),e):(e.eventSystemFlags|=n,e)}function Ot(e){var t=Or(e.target);if(null!==t){var r=Ze(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=Qt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=zr(t);return null!==r&&ht(r),e.blockedOn=t,!1}return!0}function Ft(e,t,r){zt(e)&&r.delete(t)}function Pt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=zr(e.blockedOn))&&mt(e);break}var t=Qt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==vt&&zt(vt)&&(vt=null),null!==kt&&zt(kt)&&(kt=null),null!==xt&&zt(xt)&&(xt=null),wt.forEach(Ft),_t.forEach(Ft)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Pt)))}function Lt(e){function t(t){return Rt(t,e)}if(0<bt.length){Rt(bt[0],e);for(var r=1;r<bt.length;r++){var n=bt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==vt&&Rt(vt,e),null!==kt&&Rt(kt,e),null!==xt&&Rt(xt,e),wt.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 Nt={},It=new Map,Mt=new Map,Ht=["abort","abort",Ue,"animationEnd",Ge,"animationIteration",qe,"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 jt(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),It.set(n,i),Nt[a]=i}}jt("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),jt("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),jt(Ht,2);for(var Bt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Dt=0;Dt<Bt.length;Dt++)Mt.set(Bt[Dt],0);var Vt=i.unstable_UserBlockingPriority,Wt=i.unstable_runWithPriority,Ut=!0;function Gt(e,t){qt(t,e,!1)}function qt(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||N();var a=Xt,i=M;M=!0;try{L(a,e,t,r,n)}finally{(M=i)||j()}}function Yt(e,t,r,n){Wt(Vt,Xt.bind(null,e,t,r,n))}function Xt(e,t,r,n){if(Ut)if(0<bt.length&&-1<Ct.indexOf(e))e=$t(null,e,t,r,n),bt.push(e);else{var a=Qt(e,t,r,n);if(null===a)At(e,n);else if(-1<Ct.indexOf(e))e=$t(a,e,t,r,n),bt.push(e);else if(!function(e,t,r,n,a){switch(t){case"focus":return vt=Tt(vt,e,t,r,n,a),!0;case"dragenter":return kt=Tt(kt,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 wt.set(i,Tt(wt.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 Qt(e,t,r,n){if(null!==(r=Or(r=lt(n)))){var a=Ze(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 Zt={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||Zt.hasOwnProperty(e)&&Zt[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(Zt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[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=Qe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=C[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 mr="$",hr="/$",gr="$?",yr="$!",br=null,vr=null;function kr(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 wr="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 Cr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if(r===mr||r===yr||r===gr){if(0===t)return e;t--}else r===hr&&t++}e=e.previousSibling}return null}var Er=Math.random().toString(36).slice(2),$r="__reactInternalInstance$"+Er,Ar="__reactEventHandlers$"+Er,Tr="__reactContainere$"+Er;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=Cr(e);null!==e;){if(r=e[$r])return r;e=Cr(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 Fr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Pr(e){return e[Ar]||null}function Rr(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(e,t){var r=e.stateNode;if(!r)return null;var n=m(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 Nr(e,t,r){(t=Lr(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function Ir(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=Rr(t);for(t=r.length;0<t--;)Nr(r[t],"captured",e);for(t=0;t<r.length;t++)Nr(r[t],"bubbled",e)}}function Mr(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Lr(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function Hr(e){e&&e.dispatchConfig.registrationName&&Mr(e._targetInst,null,e)}function jr(e){nt(e,Ir)}var Br=null,Dr=null,Vr=null;function Wr(){if(Vr)return Vr;var e,t,r=Dr,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 Vr=a.slice(e,1<t?1-t:void 0)}function Ur(){return!0}function Gr(){return!1}function qr(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:Gr,this.isPropagationStopped=Gr,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(qr.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:Gr,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=Gr,this._dispatchInstances=this._dispatchListeners=null}}),qr.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},qr.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(qr);var Qr=qr.extend({data:null}),Zr=qr.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=Wr()):(Dr="value"in(Br=n)?Br.value:Br.textContent,un=!0)),i=Qr.getPooled(i,t,r,n),(a||null!==(a=cn(r)))&&(i.data=a),jr(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=Wr(),Vr=Dr=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=Zr.getPooled(on.beforeInput,t,r,n)).data=e,jr(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 mn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function hn(e,t,r){return(e=qr.getPooled(mn.change,e,t,r)).type="change",F(r),jr(e),e}var gn=null,yn=null;function bn(e){ot(e)}function vn(e){if(xe(Fr(e)))return e}function kn(e,t){if("change"===e)return t}var xn=!1;function wn(){gn&&(gn.detachEvent("onpropertychange",_n),yn=gn=null)}function _n(e){if("value"===e.propertyName&&vn(yn))if(e=hn(yn,e,lt(e)),M)ot(e);else{M=!0;try{R(bn,e)}finally{M=!1,j()}}}function Sn(e,t,r){"focus"===e?(wn(),yn=r,(gn=t).attachEvent("onpropertychange",_n)):"blur"===e&&wn()}function Cn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vn(yn)}function En(e,t){if("click"===e)return vn(t)}function $n(e,t){if("input"===e||"change"===e)return vn(t)}$&&(xn=st("input")&&(!document.documentMode||9<document.documentMode));var An={eventTypes:mn,_isInputEventSupported:xn,extractEvents:function(e,t,r,n){var a=t?Fr(t):window,i=a.nodeName&&a.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===a.type)var o=kn;else if(fn(a))if(xn)o=$n;else{o=Cn;var l=Sn}else(i=a.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(o=En);if(o&&(o=o(e,t)))return hn(o,r,n);l&&l(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&$e(a,"number",a.value)}},Tn=qr.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 Fn(){return zn}var Pn=0,Rn=0,Ln=!1,Nn=!1,In=Tn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Fn,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=Pn;return Pn=e.screenX,Ln?"mousemove"===e.type?e.screenX-t:0:(Ln=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Rn;return Rn=e.screenY,Nn?"mousemove"===e.type?e.screenY-t:0:(Nn=!0,0)}}),Mn=In.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Hn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},jn={eventTypes:Hn,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!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):o=null,o===t)return null;if("mouseout"===e||"mouseover"===e)var l=In,s=Hn.mouseLeave,c=Hn.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Mn,s=Hn.pointerLeave,c=Hn.pointerEnter,u="pointer");if(e=null==o?i:Fr(o),i=null==t?i:Fr(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=Rr(e))o++;for(e=0,t=c;t;t=Rr(t))e++;for(;0<o-e;)l=Rr(l),o--;for(;0<e-o;)c=Rr(c),e--;for(;o--;){if(l===c||l===c.alternate)break e;l=Rr(l),c=Rr(c)}l=null}else l=null;for(c=l,l=[];n&&n!==c&&(null===(o=n.alternate)||o!==c);)l.push(n),n=Rr(n);for(n=[];u&&u!==c&&(null===(o=u.alternate)||o!==c);)n.push(u),u=Rr(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},Dn=Object.prototype.hasOwnProperty;function Vn(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(!Dn.call(t,r[n])||!Bn(e[r[n]],t[r[n]]))return!1;return!0}var Wn=$&&"documentMode"in document&&11>=document.documentMode,Un={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Gn=null,qn=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==Gn||Gn!==sr(r)?null:(r="selectionStart"in(r=Gn)&&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&&Vn(Kn,r)?null:(Kn=r,(e=qr.getPooled(Un.select,qn,e,t)).type="select",e.target=Gn,jr(e),e))}var Qn={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=Qe(a),i=C.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?Fr(t):window,e){case"focus":(fn(a)||"true"===a.contentEditable)&&(Gn=a,qn=t,Kn=null);break;case"blur":Kn=qn=Gn=null;break;case"mousedown":Yn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yn=!1,Xn(r,n);case"selectionchange":if(Wn)break;case"keydown":case"keyup":return Xn(r,n)}return null}},Zn=qr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jn=qr.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:Fn,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=In.extend({dataTransfer:null}),oa=Tn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Fn}),la=qr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),sa=In.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:Nt,extractEvents:function(e,t,r,n){var a=It.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=In;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 Ge:case qe:e=Zn;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=qr}return jr(t=e.getPooled(a,t,r,n)),t}};if(b)throw Error(o(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k(),m=Pr,h=zr,g=Fr,E({SimpleEventPlugin:ca,EnterLeaveEventPlugin:jn,ChangeEventPlugin:An,SelectEventPlugin:Qn,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 ma={},ha={current:ma},ga={current:!1},ya=ma;function ba(e,t){var r=e.type.contextTypes;if(!r)return ma;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 va(e){return null!=e.childContextTypes}function ka(){pa(ga),pa(ha)}function xa(e,t,r){if(ha.current!==ma)throw Error(o(168));fa(ha,t),fa(ga,r)}function wa(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||ma,ya=ha.current,fa(ha,e),fa(ga,ga.current),!0}function Sa(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=wa(e,t,ya),n.__reactInternalMemoizedMergedChildContext=e,pa(ga),pa(ha),fa(ha,e)):pa(ga),fa(ga,r)}var Ca=i.unstable_runWithPriority,Ea=i.unstable_scheduleCallback,$a=i.unstable_cancelCallback,Aa=i.unstable_requestPaint,Ta=i.unstable_now,Oa=i.unstable_getCurrentPriorityLevel,za=i.unstable_ImmediatePriority,Fa=i.unstable_UserBlockingPriority,Pa=i.unstable_NormalPriority,Ra=i.unstable_LowPriority,La=i.unstable_IdlePriority,Na={},Ia=i.unstable_shouldYield,Ma=void 0!==Aa?Aa:function(){},Ha=null,ja=null,Ba=!1,Da=Ta(),Va=1e4>Da?Ta:function(){return Ta()-Da};function Wa(){switch(Oa()){case za:return 99;case Fa:return 98;case Pa:return 97;case Ra:return 96;case La:return 95;default:throw Error(o(332))}}function Ua(e){switch(e){case 99:return za;case 98:return Fa;case 97:return Pa;case 96:return Ra;case 95:return La;default:throw Error(o(332))}}function Ga(e,t){return e=Ua(e),Ca(e,t)}function qa(e,t,r){return e=Ua(e),Ea(e,t,r)}function Ka(e){return null===Ha?(Ha=[e],ja=Ea(za,Xa)):Ha.push(e),Na}function Ya(){if(null!==ja){var e=ja;ja=null,$a(e)}Xa()}function Xa(){if(!Ba&&null!==Ha){Ba=!0;var e=0;try{var t=Ha;Ga(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Ha=null}catch(t){throw null!==Ha&&(Ha=Ha.slice(e+1)),Ea(za,Ya),t}finally{Ba=!1}}}function Qa(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function Za(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&&(Ro=!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 mi(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 m=s;;){if((l=m.expirationTime)<n){var h={expirationTime:m.expirationTime,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null};null===f?(p=f=h,d=c):f=f.next=h,l>u&&(u=l)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),ks(l,m.suspenseConfig);e:{var g=e,y=m;switch(l=t,h=r,y.tag){case 1:if("function"==typeof(g=y.payload)){c=g.call(h,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(h,c,l):g))break e;c=a({},c,l);break e;case 2:si=!0}}null!==m.callback&&(e.effectTag|=32,null===(l=i.effects)?i.effects=[m]:l.push(m))}if(null===(m=m.next)||m===s){if(null===(l=i.shared.pending))break;m=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 hi(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 bi(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 vi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(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 ki(e,t,r,n,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,o):!(t.prototype&&t.prototype.isPureReactComponent&&Vn(r,n)&&Vn(a,i))}function xi(e,t,r){var n=!1,a=ma,i=t.contextType;return"object"==typeof i&&null!==i?i=li(i):(a=va(t)?ya:ha.current,i=(n=null!=(n=t.contextTypes))?ba(e,a):ma),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(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&&vi.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=va(t)?ya:ha.current,a.context=ba(e,i)),mi(e,r,a,n),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(bi(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&&vi.enqueueReplaceState(a,a.state,null),mi(e,r,a,n),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Si=Array.isArray;function Ci(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 Ei(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=Ws(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=Ci(e,t,r),n.return=e,n):((n=Ds(r.type,r.key,r.props,null,e.mode,n)).ref=Ci(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=Vs(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=Ws(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=Ds(t.type,t.key,t.props,null,e.mode,r)).ref=Ci(e,null,t),r.return=e,r;case te:return(t=Us(t,e.mode,r)).return=e,t}if(Si(t)||he(t))return(t=Vs(t,e.mode,r,null)).return=e,t;Ei(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)||he(r))return null!==a?null:d(e,t,r,n,null);Ei(e,r)}return null}function m(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)||he(n))return d(t,e=e.get(r)||null,n,a,null);Ei(t,n)}return null}function h(a,o,l,s){for(var c=null,u=null,d=o,h=o=0,g=null;null!==d&&h<l.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=f(a,d,l[h],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=i(y,o,h),null===u?c=y:u.sibling=y,u=y,d=g}if(h===l.length)return r(a,d),c;if(null===d){for(;h<l.length;h++)null!==(d=p(a,l[h],s))&&(o=i(d,o,h),null===u?c=d:u.sibling=d,u=d);return c}for(d=n(a,d);h<l.length;h++)null!==(g=m(d,a,h,l[h],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),o=i(g,o,h),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=he(s);if("function"!=typeof u)throw Error(o(150));if(null==(s=u.call(s)))throw Error(o(151));for(var d=u=null,h=l,g=l=0,y=null,b=s.next();null!==h&&!b.done;g++,b=s.next()){h.index>g?(y=h,h=null):y=h.sibling;var v=f(a,h,b.value,c);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(a,h),l=i(v,l,g),null===d?u=v:d.sibling=v,d=v,h=y}if(b.done)return r(a,h),u;if(null===h){for(;!b.done;g++,b=s.next())null!==(b=p(a,b.value,c))&&(l=i(b,l,g),null===d?u=b:d.sibling=b,d=b);return u}for(h=n(a,h);!b.done;g++,b=s.next())null!==(b=m(h,a,g,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),l=i(b,l,g),null===d?u=b:d.sibling=b,d=b);return e&&h.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=Ci(e,c,i),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}i.type===re?((n=Vs(i.props.children,e.mode,s,i.key)).return=e,e=n):((s=Ds(i.type,i.key,i.props,null,e.mode,s)).ref=Ci(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=Ws(i,e.mode,s)).return=e,e=n),l(e);if(Si(i))return h(e,n,i,s);if(he(i))return g(e,n,i,s);if(u&&Ei(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},Fi={current:Oi},Pi={current:Oi};function Ri(e){if(e===Oi)throw Error(o(174));return e}function Li(e,t){switch(fa(Pi,t),fa(Fi,e),fa(zi,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pa(zi),fa(zi,t)}function Ni(){pa(zi),pa(Fi),pa(Pi)}function Ii(e){Ri(Pi.current);var t=Ri(zi.current),r=Le(t,e.type);t!==r&&(fa(Fi,e),fa(zi,r))}function Mi(e){Fi.current===e&&(pa(zi),pa(Fi))}var Hi={current:0};function ji(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 Di=X.ReactCurrentDispatcher,Vi=X.ReactCurrentBatchConfig,Wi=0,Ui=null,Gi=null,qi=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 Qi(e,t,r,n,a,i){if(Wi=i,Ui=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Di.current=null===e||null===e.memoizedState?xo:wo,e=r(n,a),t.expirationTime===Wi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(o(301));i+=1,qi=Gi=null,t.updateQueue=null,Di.current=_o,e=r(n,a)}while(t.expirationTime===Wi)}if(Di.current=ko,t=null!==Gi&&null!==Gi.next,Wi=0,qi=Gi=Ui=null,Ki=!1,t)throw Error(o(300));return e}function Zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qi?Ui.memoizedState=qi=e:qi=qi.next=e,qi}function Ji(){if(null===Gi){var e=Ui.alternate;e=null!==e?e.memoizedState:null}else e=Gi.next;var t=null===qi?Ui.memoizedState:qi.next;if(null!==t)qi=t,Gi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Gi=e).memoizedState,baseState:Gi.baseState,baseQueue:Gi.baseQueue,queue:Gi.queue,next:null},null===qi?Ui.memoizedState=qi=e:qi=qi.next=e}return qi}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=Gi,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<Wi){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}),ks(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)||(Ro=!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)||(Ro=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function no(e){var t=Zi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e}).dispatch=vo.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=Zi();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!==Gi){var o=Gi.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 mo(){}function ho(e,t){return Zi().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 bo(e,t,r){var n=Wa();Ga(98>n?98:n,(function(){e(!0)})),Ga(97<n?97:n,(function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{e(!1),r()}finally{Vi.suspense=n}}))}function vo(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=Wi,Ui.expirationTime=Wi;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 ko={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:ho,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=Zi();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Zi();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=vo.bind(null,Ui,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Zi().memoizedState=e},useState:no,useDebugValue:mo,useResponder:Bi,useDeferredValue:function(e,t){var r=no(e),n=r[0],a=r[1];return so((function(){var r=Vi.suspense;Vi.suspense=void 0===t?null:t;try{a(e)}finally{Vi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=no(!1),r=t[0];return t=t[1],[ho(bo.bind(null,t,e),[t,e]),r]}},wo={readContext:li,useCallback:go,useContext:li,useEffect:co,useImperativeHandle:fo,useLayoutEffect:uo,useMemo:yo,useReducer:to,useRef:io,useState:function(){return to(eo)},useDebugValue:mo,useResponder:Bi,useDeferredValue:function(e,t){var r=to(eo),n=r[0],a=r[1];return co((function(){var r=Vi.suspense;Vi.suspense=void 0===t?null:t;try{a(e)}finally{Vi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=to(eo),r=t[0];return t=t[1],[go(bo.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:mo,useResponder:Bi,useDeferredValue:function(e,t){var r=ro(eo),n=r[0],a=r[1];return co((function(){var r=Vi.suspense;Vi.suspense=void 0===t?null:t;try{a(e)}finally{Vi.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ro(eo),r=t[0];return t=t[1],[go(bo.bind(null,t,e),[t,e]),r]}},So=null,Co=null,Eo=!1;function $o(e,t){var r=Hs(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(Eo){var t=Co;if(t){var r=t;if(!Ao(e,t)){if(!(t=Sr(r.nextSibling))||!Ao(e,t))return e.effectTag=-1025&e.effectTag|2,Eo=!1,void(So=e);$o(So,r)}So=e,Co=Sr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Eo=!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(!Eo)return Oo(e),Eo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xr(t,e.memoizedProps))for(t=Co;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===hr){if(0===t){Co=Sr(e.nextSibling);break e}t--}else r!==mr&&r!==yr&&r!==gr||t++}e=e.nextSibling}Co=null}}else Co=So?Sr(e.stateNode.nextSibling):null;return!0}function Fo(){Co=So=null,Eo=!1}var Po=X.ReactCurrentOwner,Ro=!1;function Lo(e,t,r,n){t.child=null===e?Ti(t,null,r,n):Ai(t,e.child,r,n)}function No(e,t,r,n,a){r=r.render;var i=t.ref;return oi(t,a),n=Qi(e,t,r,n,i,a),null===e||Ro?(t.effectTag|=1,Lo(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Jo(e,t,a))}function Io(e,t,r,n,a,i){if(null===e){var o=r.type;return"function"!=typeof o||js(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ds(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:Vn)(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&&Vn(e.memoizedProps,n)&&e.ref===t.ref&&(Ro=!1,a<i)?(t.expirationTime=e.expirationTime,Jo(e,t,i)):jo(e,t,r,n,i)}function Ho(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function jo(e,t,r,n,a){var i=va(r)?ya:ha.current;return i=ba(t,i),oi(t,a),r=Qi(e,t,r,n,i,a),null===e||Ro?(t.effectTag|=1,Lo(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(va(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):ba(t,c=va(r)?ya:ha.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)&&wi(t,o,n,c),si=!1;var p=t.memoizedState;o.state=p,mi(t,n,o,a),s=t.memoizedState,l!==n||p!==s||ga.current||si?("function"==typeof u&&(bi(t,r,u,n),s=t.memoizedState),(l=si||ki(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:Za(t.type,l),s=o.context,c="object"==typeof(c=r.contextType)&&null!==c?li(c):ba(t,c=va(r)?ya:ha.current),(d="function"==typeof(u=r.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==n||s!==c)&&wi(t,o,n,c),si=!1,s=t.memoizedState,o.state=s,mi(t,n,o,a),p=t.memoizedState,l!==n||s!==p||ga.current||si?("function"==typeof u&&(bi(t,r,u,n),p=t.memoizedState),(u=si||ki(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 Do(e,t,r,n,i,a)}function Do(e,t,r,n,a,i){Ho(e,t);var o=!!(64&t.effectTag);if(!n&&!o)return a&&Sa(t,r,!1),Jo(e,t,i);n=t.stateNode,Po.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)):Lo(e,t,l,i),t.memoizedState=n.state,a&&Sa(t,r,!0),t.child}function Vo(e){var t=e.stateNode;t.pendingContext?xa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xa(0,t.context,!1),Li(e,t.containerInfo)}var Wo,Uo,Go,qo,Ko={dehydrated:null,retryTime:0};function Yo(e,t,r){var n,a=t.mode,i=t.pendingProps,o=Hi.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(Hi,1&o),null===e){if(void 0!==i.fallback&&To(t),l){if(l=i.fallback,(i=Vs(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=Vs(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=Vs(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=Vs(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 Qo(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 Zo(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(Lo(e,t,n.children,r),2&(n=Hi.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(Hi,n),2&t.mode)switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(e=r.alternate)&&null===ji(e)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Qo(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===ji(e)){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Qo(t,!0,r,null,i,t.lastEffect);break;case"together":Qo(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 va(t.type)&&ka(),null;case 3:return Ni(),pa(ga),pa(ha),(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=Ri(Pi.current);var i=t.type;if(null!==e&&null!=t.stateNode)Go(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=Ri(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":Gt("load",n);break;case"video":case"audio":for(e=0;e<Ye.length;e++)Gt(Ye[e],n);break;case"source":Gt("error",n);break;case"img":case"image":case"link":Gt("error",n),Gt("load",n);break;case"form":Gt("reset",n),Gt("submit",n);break;case"details":Gt("toggle",n);break;case"input":_e(n,l),Gt("invalid",n),or(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!l.multiple},Gt("invalid",n),or(r,"onChange");break;case"textarea":ze(n,l),Gt("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":ke(n),Ee(n,l,!0);break;case"textarea":ke(n),Pe(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=Re(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,Wo(e,t,!1,!1),t.stateNode=e,s=ar(i,n),i){case"iframe":case"object":case"embed":Gt("load",e),c=n;break;case"video":case"audio":for(c=0;c<Ye.length;c++)Gt(Ye[c],e);c=n;break;case"source":Gt("error",e),c=n;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),c=n;break;case"form":Gt("reset",e),Gt("submit",e),c=n;break;case"details":Gt("toggle",e),c=n;break;case"input":_e(e,n),c=we(e,n),Gt("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}),Gt("invalid",e),or(r,"onChange");break;case"textarea":ze(e,n),c=Oe(e,n),Gt("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)&&He(e,d):"number"==typeof d&&He(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(S.hasOwnProperty(l)?null!=d&&or(r,l):null!=d&&Q(e,l,d,s))}switch(i){case"input":ke(e),Ee(e,n,!1);break;case"textarea":ke(e),Pe(e);break;case"option":null!=n.value&&e.setAttribute("value",""+be(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)}kr(i,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qo(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(o(166));r=Ri(Pi.current),Ri(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(Hi),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&Hi.current?Bl===zl&&(Bl=Rl):(Bl!==zl&&Bl!==Rl||(Bl=Ll),0!==Gl&&null!==Ml&&(Ks(Ml,jl),Ys(Ml,Gl)))),(r||n)&&(t.effectTag|=4),null);case 4:return Ni(),Uo(t),null;case 10:return ai(t),null;case 19:if(pa(Hi),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=ji(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(Hi,1&Hi.current|2),t.child}l=l.sibling}}else{if(!i)if(null!==(e=ji(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*Va()-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=Va()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Va(),r.sibling=null,t=Hi.current,fa(Hi,i?1&t|2:1&t),r):null}throw Error(o(156,t.tag))}function rl(e){switch(e.tag){case 1:va(e.type)&&ka();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ni(),pa(ga),pa(ha),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(Hi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return pa(Hi),null;case 4:return Ni(),null;case 10:return ai(e),null;default:return null}}function nl(e,t){return{value:e,source:t,stack:ye(t)}}Wo=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(){},Go=function(e,t,r,n,i){var o=e.memoizedProps;if(o!==n){var l,s,c=t.stateNode;switch(Ri(zi.current),e=null,r){case"input":o=we(c,o),n=we(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)}},qo=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){Ps(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:Za(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:Za(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&hi(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}hi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&kr(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&&Lt(r)))))}throw Error(o(163))}function dl(e,t,r){switch("function"==typeof Is&&Is(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;Ga(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var a=t;try{r()}catch(e){Ps(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){Ps(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 ml(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&&(He(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?hl(e,r,t):gl(e,r,t)}function hl(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(hl(e,t,r),e=e.sibling;null!==e;)hl(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 bl(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?He(r,s):Q(r,l,s,t)}switch(e){case"input":Ce(r,n);break;case"textarea":Fe(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,Lt(t.containerInfo)));case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Kl=Va()),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 vl(t);case 19:return void vl(t)}throw Error(o(163))}function vl(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=Ls.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var kl="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(){Ql||(Ql=!0,Zl=n),il(e,t)},r}function wl(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,Cl=X.ReactCurrentDispatcher,El=X.ReactCurrentOwner,$l=0,Al=8,Tl=16,Ol=32,zl=0,Fl=1,Pl=2,Rl=3,Ll=4,Nl=5,Il=$l,Ml=null,Hl=null,jl=0,Bl=zl,Dl=null,Vl=1073741823,Wl=1073741823,Ul=null,Gl=0,ql=!1,Kl=0,Yl=500,Xl=null,Ql=!1,Zl=null,Jl=null,es=!1,ts=null,rs=90,ns=null,as=0,is=null,os=0;function ls(){return(Il&(Tl|Ol))!==$l?1073741821-(Va()/10|0):0!==os?os:os=1073741821-(Va()/10|0)}function ss(e,t,r){if(!(2&(t=t.mode)))return 1073741823;var n=Wa();if(!(4&t))return 99===n?1073741823:1073741822;if((Il&Tl)!==$l)return jl;if(null!==r)e=Qa(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Qa(e,150,100);break;case 97:case 96:e=Qa(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==Ml&&e===jl&&--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=Wa();1073741823===t?(Il&Al)!==$l&&(Il&(Tl|Ol))===$l?ms(e):(ps(e),Il===$l&&Ya()):ps(e),(4&Il)===$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===Ll&&Ks(a,jl)),Ys(a,t)),a}function ds(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!qs(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(ms.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!==Na&&$a(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?Ka(ms.bind(null,e)):qa(n,fs.bind(null,e),{timeout:10*(1073741821-t)-Va()}),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,(Il&(Tl|Ol))!==$l)throw Error(o(327));if(Os(),e===Ml&&r===jl||ys(e,r),null!==Hl){var n=Il;Il|=Tl;for(var a=vs();;)try{_s();break}catch(t){bs(e,t)}if(ni(),Il=n,Cl.current=a,Bl===Fl)throw t=Dl,ys(e,r),Ks(e,r),ps(e),t;if(null===Hl)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Bl,Ml=null,n){case zl:case Fl:throw Error(o(345));case Pl:Xs(e,2<r?2:r);break;case Rl:if(Ks(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Es(a)),1073741823===Vl&&10<(a=Kl+Yl-Va())){if(ql){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=wr($s.bind(null,e),a);break}$s(e);break;case Ll:if(Ks(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Es(a)),ql&&(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!==Wl?n=10*(1073741821-Wl)-Va():1073741823===Vl?n=0:(n=10*(1073741821-Vl)-5e3,0>(n=(a=Va())-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=wr($s.bind(null,e),n);break}$s(e);break;case Nl:if(1073741823!==Vl&&null!==Ul){i=Vl;var l=Ul;if(0>=(n=0|l.busyMinDurationMs)?n=0:(a=0|l.busyDelayMs,n=(i=Va()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=a?0:a+n-i),10<n){Ks(e,r),e.timeoutHandle=wr($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 ms(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Il&(Tl|Ol))!==$l)throw Error(o(327));if(Os(),e===Ml&&t===jl||ys(e,t),null!==Hl){var r=Il;Il|=Tl;for(var n=vs();;)try{ws();break}catch(t){bs(e,t)}if(ni(),Il=r,Cl.current=n,Bl===Fl)throw r=Dl,ys(e,t),Ks(e,t),ps(e),r;if(null!==Hl)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ml=null,$s(e),ps(e)}return null}function hs(e,t){var r=Il;Il|=1;try{return e(t)}finally{(Il=r)===$l&&Ya()}}function gs(e,t){var r=Il;Il&=-2,Il|=Al;try{return e(t)}finally{(Il=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!==Hl)for(r=Hl.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&ka();break;case 3:Ni(),pa(ga),pa(ha);break;case 5:Mi(n);break;case 4:Ni();break;case 13:case 19:pa(Hi);break;case 10:ai(n)}r=r.return}Ml=e,Hl=Bs(e.current,null),jl=t,Bl=zl,Dl=null,Wl=Vl=1073741823,Ul=null,Gl=0,ql=!1}function bs(e,t){for(;;){try{if(ni(),Di.current=ko,Ki)for(var r=Ui.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Wi=0,qi=Gi=Ui=null,Ki=!1,null===Hl||null===Hl.return)return Bl=Fl,Dl=t,Hl=null;e:{var a=e,i=Hl.return,o=Hl,l=t;if(t=jl,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&Hi.current),d=i;do{var p;if(p=13===d.tag){var f=d.memoizedState;if(null!==f)p=null!==f.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!u)}}if(p){var h=d.updateQueue;if(null===h){var g=new Set;g.add(s),d.updateQueue=g}else h.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 b=a.pingCache;if(null===b?(b=a.pingCache=new kl,l=new Set,b.set(s,l)):void 0===(l=b.get(s))&&(l=new Set,b.set(s,l)),!l.has(o)){l.add(o);var v=Rs.bind(null,a,s,o);s.then(v,v)}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!==Nl&&(Bl=Pl),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 k=d.type,x=d.stateNode;if(!(64&d.effectTag||"function"!=typeof k.getDerivedStateFromError&&(null===x||"function"!=typeof x.componentDidCatch||null!==Jl&&Jl.has(x)))){d.effectTag|=4096,d.expirationTime=t,fi(d,wl(d,s,t));break e}}d=d.return}while(null!==d)}Hl=Cs(Hl)}catch(e){t=e;continue}break}}function vs(){var e=Cl.current;return Cl.current=ko,null===e?ko:e}function ks(e,t){e<Vl&&2<e&&(Vl=e),null!==t&&e<Wl&&2<e&&(Wl=e,Ul=t)}function xs(e){e>Gl&&(Gl=e)}function ws(){for(;null!==Hl;)Hl=Ss(Hl)}function _s(){for(;null!==Hl&&!Ia();)Hl=Ss(Hl)}function Ss(e){var t=_l(e.alternate,e,jl);return e.memoizedProps=e.pendingProps,null===t&&(t=Cs(e)),El.current=null,t}function Cs(e){Hl=e;do{var t=Hl.alternate;if(e=Hl.return,2048&Hl.effectTag){if(null!==(t=rl(Hl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=tl(t,Hl,jl),1===jl||1!==Hl.childExpirationTime){for(var r=0,n=Hl.child;null!==n;){var a=n.expirationTime,i=n.childExpirationTime;a>r&&(r=a),i>r&&(r=i),n=n.sibling}Hl.childExpirationTime=r}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Hl.firstEffect),null!==Hl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Hl.firstEffect),e.lastEffect=Hl.lastEffect),1<Hl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Hl:e.firstEffect=Hl,e.lastEffect=Hl))}if(null!==(t=Hl.sibling))return t;Hl=e}while(null!==Hl);return Bl===zl&&(Bl=Nl),null}function Es(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function $s(e){var t=Wa();return Ga(99,As.bind(null,e,t)),null}function As(e,t){do{Os()}while(null!==ts);if((Il&(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=Es(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&&(Hl=Ml=null,jl=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,a=r.firstEffect):a=r:a=r.firstEffect,null!==a){var i=Il;Il|=Ol,El.current=null,br=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,m=-1,h=0,g=0,y=l,b=null;t:for(;;){for(var v;y!==s||0!==u&&3!==y.nodeType||(f=p+u),y!==d||0!==c&&3!==y.nodeType||(m=p+c),3===y.nodeType&&(p+=y.nodeValue.length),null!==(v=y.firstChild);)b=y,y=v;for(;;){if(y===l)break t;if(b===s&&++h===u&&(f=p),b===d&&++g===c&&(m=p),null!==(v=y.nextSibling))break;b=(y=b).parentNode}y=v}s=-1===f||-1===m?null:{start:f,end:m}}else s=null}s=s||{start:0,end:0}}else s=null;vr={activeElementDetached:null,focusedElem:l,selectionRange:s},Ut=!1,Xl=a;do{try{Ts()}catch(e){if(null===Xl)throw Error(o(330));Ps(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);Xl=a;do{try{for(l=e,s=t;null!==Xl;){var k=Xl.effectTag;if(16&k&&He(Xl.stateNode,""),128&k){var x=Xl.alternate;if(null!==x){var w=x.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&k){case 2:ml(Xl),Xl.effectTag&=-3;break;case 6:ml(Xl),Xl.effectTag&=-3,bl(Xl.alternate,Xl);break;case 1024:Xl.effectTag&=-1025;break;case 1028:Xl.effectTag&=-1025,bl(Xl.alternate,Xl);break;case 4:bl(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));Ps(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);if(w=vr,x=pr(),k=w.focusedElem,s=w.selectionRange,x!==k&&k&&k.ownerDocument&&dr(k.ownerDocument.documentElement,k)){null!==s&&fr(k)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in k?(k.selectionStart=x,k.selectionEnd=Math.min(w,k.value.length)):(w=(x=k.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),u=k.textContent.length,l=Math.min(s.start,u),s=void 0===s.end?l:Math.min(s.end,u),!w.extend&&l>s&&(u=s,s=l,l=u),u=ur(k,l),d=ur(k,s),u&&d&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==d.node||w.focusOffset!==d.offset)&&((x=x.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),l>s?(w.addRange(x),w.extend(d.node,d.offset)):(x.setEnd(d.node,d.offset),w.addRange(x))))),x=[];for(w=k;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<x.length;k++)(w=x[k]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Ut=!!br,vr=br=null,e.current=r,Xl=a;do{try{for(k=e;null!==Xl;){var _=Xl.effectTag;if(36&_&&ul(k,Xl.alternate,Xl),128&_){x=void 0;var S=Xl.ref;if(null!==S){var C=Xl.stateNode;Xl.tag,x=C,"function"==typeof S?S(x):S.current=x}}Xl=Xl.nextEffect}}catch(e){if(null===Xl)throw Error(o(330));Ps(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);Xl=null,Ma(),Il=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 Ns&&Ns(r.stateNode,n),ps(e),Ql)throw Ql=!1,e=Zl,Zl=null,e;return(Il&Al)!==$l||Ya(),null}function Ts(){for(;null!==Xl;){var e=Xl.effectTag;256&e&&ll(Xl.alternate,Xl),!(512&e)||es||(es=!0,qa(97,(function(){return Os(),null}))),Xl=Xl.nextEffect}}function Os(){if(90!==rs){var e=97<rs?97:rs;return rs=90,Ga(e,zs)}}function zs(){if(null===ts)return!1;var e=ts;if(ts=null,(Il&(Tl|Ol))!==$l)throw Error(o(331));var t=Il;for(Il|=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));Ps(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return Il=t,Ya(),!0}function Fs(e,t,r){pi(e,t=xl(e,t=nl(r,t),1073741823)),null!==(e=us(e,1073741823))&&ps(e)}function Ps(e,t){if(3===e.tag)Fs(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Fs(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=wl(r,e=nl(t,e),1073741823)),null!==(r=us(r,1073741823))&&ps(r);break}}r=r.return}}function Rs(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),Ml===e&&jl===r?Bl===Ll||Bl===Rl&&1073741823===Vl&&Va()-Kl<Yl?ys(e,jl):ql=!0:qs(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,ps(e)))}function Ls(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)Ro=!0;else{if(n<r){switch(Ro=!1,t.tag){case 3:Vo(t),Fo();break;case 5:if(Ii(t),4&t.mode&&1!==r&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:va(t.type)&&_a(t);break;case 4:Li(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(Hi,1&Hi.current),null!==(t=Jo(e,t,r))?t.sibling:null);fa(Hi,1&Hi.current);break;case 19:if(n=t.childExpirationTime>=r,64&e.effectTag){if(n)return Zo(e,t,r);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),fa(Hi,Hi.current),!n)return null}return Jo(e,t,r)}Ro=!1}}else Ro=!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=ba(t,ha.current),oi(t,r),a=Qi(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,va(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&&bi(t,n,l,e),a.updater=vi,t.stateNode=a,a._reactInternalFiber=t,_i(t,n,e,r),t=Do(null,t,n,!0,i,r)}else t.tag=0,Lo(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 js(e)?1:0;if(null!=e){if((e=e.$$typeof)===se)return 11;if(e===de)return 14}return 2}(a),e=Za(a,e),i){case 0:t=jo(null,t,a,e,r);break e;case 1:t=Bo(null,t,a,e,r);break e;case 11:t=No(null,t,a,e,r);break e;case 14:t=Io(null,t,a,Za(a.type,e),n,r);break e}throw Error(o(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,jo(e,t,n,a=t.elementType===n?a:Za(n,a),r);case 1:return n=t.type,a=t.pendingProps,Bo(e,t,n,a=t.elementType===n?a:Za(n,a),r);case 3:if(Vo(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),mi(t,n,null,r),(n=t.memoizedState.element)===a)Fo(),t=Jo(e,t,r);else{if((a=t.stateNode.hydrate)&&(Co=Sr(t.stateNode.containerInfo.firstChild),So=t,a=Eo=!0),a)for(r=Ti(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Lo(e,t,n,r),Fo();t=t.child}return t;case 5:return Ii(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),Ho(e,t),4&t.mode&&1!==r&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Lo(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 Li(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ai(t,null,n,r):Lo(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,No(e,t,n,a=t.elementType===n?a:Za(n,a),r);case 7:return Lo(e,t,t.pendingProps,r),t.child;case 8:case 12:return Lo(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}Lo(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,Lo(e,t,n,r),t.child;case 14:return i=Za(a=t.type,t.pendingProps),Io(e,t,a,i=Za(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:Za(n,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,va(n)?(e=!0,_a(t)):e=!1,oi(t,r),xi(t,n,a),_i(t,n,a,r),Do(null,t,n,!0,e,r);case 19:return Zo(e,t,r)}throw Error(o(156,t.tag))};var Ns=null,Is=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 Hs(e,t,r,n){return new Ms(e,t,r,n)}function js(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bs(e,t){var r=e.alternate;return null===r?((r=Hs(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 Ds(e,t,r,n,a,i){var l=2;if(n=e,"function"==typeof e)js(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case re:return Vs(r.children,a,i,t);case le:l=8,a|=7;break;case ne:l=8,a|=1;break;case ae:return(e=Hs(12,r,t,8|a)).elementType=ae,e.type=ae,e.expirationTime=i,e;case ce:return(e=Hs(13,r,t,a)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=Hs(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=Hs(l,r,t,a)).elementType=e,t.type=n,t.expirationTime=i,t}function Vs(e,t,r,n){return(e=Hs(7,e,n,t)).expirationTime=r,e}function Ws(e,t,r){return(e=Hs(6,e,null,t)).expirationTime=r,e}function Us(e,t,r){return(t=Hs(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gs(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 qs(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 Qs(e,t,r,n){var a=t.current,i=ls(),l=gi.suspense;i=ss(i,a,l);e:if(r){t:{if(Ze(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(va(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(va(c)){r=wa(r,c,s);break e}}r=s}else r=ma;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 Zs(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 Gs(e,t,r=null!=r&&!0===r.hydrate),a=Hs(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=Qe(t);Ct.forEach((function(e){ft(e,t,r)})),Et.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=Zs(o);l.call(e)}}Qs(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=Zs(o);s.call(e)}}gs((function(){Qs(t,o,e,a)}))}return Zs(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){Qs(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Tr]=null}))},mt=function(e){if(13===e.tag){var t=Qa(ls(),150,100);cs(e,t),ec(e,t)}},ht=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(Ce(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=Pr(n);if(!a)throw Error(o(90));xe(n),Ce(n,a)}}}break;case"textarea":Fe(e,r);break;case"select":null!=(t=r.value)&&Te(e,!!r.multiple,t,!1)}},R=hs,L=function(e,t,r,n,a){var i=Il;Il|=4;try{return Ga(98,e.bind(null,t,r,n,a))}finally{(Il=i)===$l&&Ya()}},N=function(){(Il&(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())},I=function(e,t){var r=Il;Il|=2;try{return e(t)}finally{(Il=r)===$l&&Ya()}};var ic={Events:[zr,Fr,Pr,E,_,jr,function(e){nt(e,Hr)},F,P,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);Ns=function(e){try{t.onCommitFiberRoot(r,e,void 0,!(64&~e.current.effectTag))}catch(e){}},Is=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((Il&(Tl|Ol))!==$l)throw Error(o(187));var r=Il;Il|=1;try{return Ga(99,e.bind(null,t))}finally{Il=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=hs,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)},115:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var l,s,c,u;if(Array.isArray(e)){if((l=e.length)!=o.length)return!1;for(s=l;0!=s--;)if(!i(e[s],o[s]))return!1;return!0}if(r&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!o.has(s.value[0]))return!1;for(u=e.entries();!(s=u.next()).done;)if(!i(s.value[1],o.get(s.value[0])))return!1;return!0}if(n&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!o.has(s.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((l=e.length)!=o.length)return!1;for(s=l;0!=s--;)if(e[s]!==o[s])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof o.toString)return e.toString()===o.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(s=l;0!=s--;)if(!Object.prototype.hasOwnProperty.call(o,c[s]))return!1;if(t&&e instanceof Element)return!1;for(s=l;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!i(e[c[s]],o[c[s]]))return!1;return!0}return e!=e&&o!=o}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},98:(e,t,r)=>{"use strict";var n,a=r(957),i=(n=a)&&"object"==typeof n&&"default"in n?n.default:n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var s,c=[];function u(){s=e(c.map((function(e){return e.props}))),d.canUseDOM?t(s):r&&(s=r(s))}var d=function(e){var t,r;function a(){return e.apply(this,arguments)||this}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,a.peek=function(){return s},a.rewind=function(){if(a.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=s;return s=void 0,c=[],e};var o=a.prototype;return o.UNSAFE_componentWillMount=function(){c.push(this),u()},o.componentDidUpdate=function(){u()},o.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},o.render=function(){return i.createElement(n,this.props)},a}(a.PureComponent);return o(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),o(d,"canUseDOM",l),d}}},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,m=a?Symbol.for("react.memo"):60115,h=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 b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function k(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||b}function x(){}function w(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||b}k.prototype.isReactComponent={},k.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")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=k.prototype;var _=w.prototype=new x;_.constructor=w,n(_,k.prototype),_.isPureReactComponent=!0;var S={current:null},C=Object.prototype.hasOwnProperty,E={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)C.call(t,n)&&!E.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 F(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function P(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?"."+L(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=t+L(a=e[s],s);l+=P(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+=P(a=a.value,c=t+L(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 R(e,t,r){return null==e?0:P(e,"",t,r)}function L(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 N(e,t){e.func.call(e.context,t,e.count++)}function I(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,"$&/")+"/"),R(e,I,t=z(t,i,n,a)),F(t)}var H={current:null};function j(){var e=H.current;if(null===e)throw Error(y(321));return e}var B={ReactCurrentDispatcher:H,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;R(e,N,t=z(null,null,t,r)),F(t)},count:function(e){return R(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=k,t.Fragment=l,t.Profiler=c,t.PureComponent=w,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)C.call(t,u)&&!E.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:h,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return j().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,r){return j().useReducer(e,t,r)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().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,m=window.clearTimeout;if("undefined"!=typeof console){var h=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 h&&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,b=null,v=-1,k=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"):k=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,_=w.port2;w.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+k;try{b(!0,e)?_.postMessage(null):(y=!1,b=null)}catch(e){throw _.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,_.postMessage(null))},n=function(e,r){v=f((function(){e(t.unstable_now())}),r)},a=function(){m(v),v=-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 C(e){return void 0===(e=e[0])?null:e}function E(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,F=3,P=!1,R=!1,L=!1;function N(e){for(var t=C(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))break;E(T),t.sortIndex=t.expirationTime,S(A,t)}t=C(T)}}function I(e){if(L=!1,N(e),!R)if(null!==C(A))R=!0,r(M);else{var t=C(T);null!==t&&n(I,t.startTime-e)}}function M(e,r){R=!1,L&&(L=!1,a()),P=!0;var o=F;try{for(N(r),z=C(A);null!==z&&(!(z.expirationTime>r)||e&&!i());){var l=z.callback;if(null!==l){z.callback=null,F=z.priorityLevel;var s=l(z.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?z.callback=s:z===C(A)&&E(A),N(r)}else E(A);z=C(A)}if(null!==z)var c=!0;else{var u=C(T);null!==u&&n(I,u.startTime-r),c=!1}return c}finally{z=null,F=o,P=!1}}function H(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var j=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(){R||P||(R=!0,r(M))},t.unstable_getCurrentPriorityLevel=function(){return F},t.unstable_getFirstCallbackNode=function(){return C(A)},t.unstable_next=function(e){switch(F){case 1:case 2:case 3:var t=3;break;default:t=F}var r=F;F=t;try{return e()}finally{F=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=F;F=e;try{return t()}finally{F=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:H(e)}else o=H(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===C(A)&&e===C(T)&&(L?a():L=!0,n(I,s-l))):(e.sortIndex=o,S(A,e),R||P||(R=!0,r(M))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();N(e);var r=C(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=F;return function(){var r=F;F=t;try{return e.apply(this,arguments)}finally{F=r}}}},982:(e,t,r)=>{"use strict";e.exports=r(463)},168:(e,t,r)=>{"use strict";var n=new Error;e.exports=new Promise(((e,t)=>{if("undefined"!=typeof unifiedonboard)return e();r.l("https://www.paypal.com/unifiedonboarding/js/client/unifiedonboarding/remoteDeltaDataCollection.js",(r=>{if("undefined"!=typeof unifiedonboard)return e();var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;n.message="Loading script failed.\n("+a+": "+i+")",n.name="ScriptExternalLoadError",n.type=a,n.request=i,t(n)}),"unifiedonboard")})).then((()=>unifiedonboard))},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}}({})}},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return o[e](r,r.exports,s),r.exports}return s.m=o,s.c=l,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);s.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var o=2&n&&r;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,s.d(a,i),a},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="MerchantOnboarding:",s.l=(e,t,a,i)=>{if(r[e])r[e].push(t);else{var o,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+a){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",n+a),o.src=e),r[e]=[t];var p=(t,n)=>{o.onerror=o.onload=null,clearTimeout(f);var a=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),l&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a={647:[647]},i={647:["default","./DeltaDataCollection",168]},s.f.remotes=(e,t)=>{s.o(a,e)&&a[e].forEach((e=>{var r=s.R;r||(r=[]);var n=i[e];if(!(r.indexOf(n)>=0)){if(r.push(n),n.p)return t.push(n.p);var a=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+='\nwhile loading "'+n[1]+'" from '+n[2]),s.m[e]=()=>{throw t},n.p=0},o=(e,r,i,o,l,s)=>{try{var c=e(r,i);if(!c||!c.then)return l(c,o,s);var u=c.then((e=>l(e,o)),a);if(!s)return u;t.push(n.p=u)}catch(e){a(e)}},l=(e,t,a)=>o(t.get,n[1],r,0,c,a),c=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};o(s,n[2],0,0,((e,t,r)=>e?o(s.I,n[0],0,e,l,r):a()),1)}}))},(()=>{s.S={};var e={},t={};s.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];s.o(s.S,r)||(s.S[r]={});var i=s.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})},c=[];return"default"===r&&(l("react-dom","16.14.0",(()=>()=>s(961)),1),l("react","16.14.0",(()=>()=>s(540)),1),(()=>{var e=e=>{return t="Initialization of sharing external failed: "+e,void("undefined"!=typeof console&&console.warn&&console.warn(t));var t};try{var t=s(168);if(!t)return;var a=e=>e&&e.init&&e.init(s.S[r],n);if(t.then)return c.push(t.then(a,e));var i=a(t);if(i&&i.then)return c.push(i.catch(e))}catch(t){e(t)}})()),c.length?e[r]=Promise.all(c).then((()=>e[r]=1)):e[r]=1}}})(),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e+"../../"})(),(()=>{var 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 m=t[o];p.push(1==m?f()|f():2==m?f()&f():m?r(m,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=s.I(t);return o&&o.then&&!n?o.then(e.bind(e,t,s.S[t],r,!1,a,i)):e(t,s.S[t],r,n,a,i)})(((e,i,o,l,c,u)=>{if(!((e,t)=>e&&s.o(e,t))(i,o))return a(e,o,u);var d,p,f=n(i,o,l);return r(c,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,c),"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],(()=>()=>s(540))),957:()=>i("default","react",!0,[,[1,18,0,0],[1,17,0,0],[1,16,3,0],1,1],(()=>()=>s(540))),831:()=>i("default","react",!0,[0,16,3,0],(()=>()=>s(540))),660:()=>i("default","react",!0,[0,16],(()=>()=>s(540))),448:()=>i("default","react-dom",!0,[0,16],(()=>()=>s(961))),718:()=>i("default","react",!0,[,[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1],(()=>()=>s(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],(()=>()=>s(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],(()=>()=>s(540))),36:()=>i("default","react-dom",!0,[1,16,14,0],(()=>()=>s(961)))};[664,957,831,660,448,718,214,118,36].forEach((e=>{s.m[e]=t=>{o[e]=0,delete s.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()}}));var c={459:[664,957,831,660,448,718,214,118,36]},u={};s.f.consumes=(e,t)=>{s.o(c,e)&&c[e].forEach((e=>{if(s.o(o,e))return t.push(o[e]);if(!u[e]){var r=t=>{o[e]=0,s.m[e]=r=>{delete s.c[e],r.exports=t()}};u[e]=!0;var n=t=>{delete o[e],s.m[e]=r=>{throw delete s.c[e],t}};try{var a=l[e]();a.then?t.push(o[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))}})(),(()=>{var e={459:0};s.f.j=(t,r)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(459==t){var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var i=s.p+s.u(t),o=new Error;s.l(i,(r=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",o.name="ChunkLoadError",o.type=a,o.request=i,n[1](o)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var n,a,[i,o,l]=r,c=0;if(i.some((t=>0!==e[t]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);l&&l(s)}for(t&&t(r);c<i.length;c++)a=i[c],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=this.webpackChunkMerchantOnboarding=this.webpackChunkMerchantOnboarding||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),s.nc=void 0,s(972)})()));
|
|
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,o,i={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=i(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=o?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)),o=r(436);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}a.setFileScope("src/themeContract.cjs.css.ts","@paypalcorp/pp-react-theme");t.L=(0,o.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=i(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=o?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)),o=r(436);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}a.setFileScope("src/cssVariables.cjs.css.ts","@paypalcorp/pp-react-utils"),t._s={main:(0,o.createVar)("contextColors_main"),background:(0,o.createVar)("contextColors_background"),hoverMain:(0,o.createVar)("contextColors_hoverMain"),hoverBack:(0,o.createVar)("contextColors_hoverBack"),activeMain:(0,o.createVar)("contextColors_activeMain"),activeBack:(0,o.createVar)("contextColors_activeBack")},t.Tr={caretSize:(0,o.createVar)("caretVariables_caretSize"),caretLeftOffset:(0,o.createVar)("caretVariables_caretLeftOffset"),caretRightOffset:(0,o.createVar)("caretVariables_caretRightOffset"),caretBottomOffset:(0,o.createVar)("caretVariables_caretBottomOffset"),caretTopOffset:(0,o.createVar)("caretVariables_caretTopOffset"),caretCenterOffset:(0,o.createVar)("caretVariables_caretCenterOffset"),caretSpaceShiftLeft:(0,o.createVar)("caretVariables_caretSpaceShiftLeft"),caretSpaceShiftRight:(0,o.createVar)("caretVariables_caretSpaceShiftRight")},a.endFileScope()},619:(e,t,r)=>{"use strict";r.d(t,{CN:()=>h,EC:()=>u,GX:()=>i,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]},o=!1,i=e=>{o||l(e)},l=e=>{if(!e)throw new Error('No adapter provided when calling "setAdapter"');o=!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),o=0;o<r;o++)n[o]=arguments[o];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:()=>it,createGlobalVar:()=>tt,createTheme:()=>ut,createThemeContract:()=>ot,createVar:()=>et,createViewTransition:()=>xt,fallbackVar:()=>nt,fontFace:()=>mt,generateIdentifier:()=>Ye,globalFontFace:()=>gt,globalKeyframes:()=>vt,globalLayer:()=>Et,globalStyle:()=>ht,keyframes:()=>yt,layer:()=>_t,style:()=>pt,styleVariants:()=>bt});var n,a,o={},i=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 o of a)t[e]&&o in t[e]?e=t[e][o]:(n++,t[e][o]=n,t[n]={},e=n,r[n]=[]);r[e].push(a)}const a={},o=[];for(const e in t[0]){const r=t[0][e];a[r]=0,o.push(r)}for(;o.length>0;){const e=o.shift();if(void 0!==e)for(const n in t[e]){const i=t[e][n];o.push(i);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[i]=e,r[i]=[...r[i],...r[e]]}else a[i]=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 o=[];function i(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(o.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}}(o[o.length-1]))throw new Error("Did not expect successive traversals.")}function d(e){o.length>0&&o[o.length-1].type===n.Descendant?o[o.length-1].type=e:(u(),o.push({type:e}))}function f(e,t){o.push({type:n.Attribute,name:e,action:t,value:i(1),namespace:null,ignoreCase:"quirks"})}function y(){if(o.length&&o[o.length-1].type===n.Descendant&&o.pop(),0===o.length)throw new Error("Empty sub-selector");e.push(o)}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!==o.length&&o[0].type===n.Descendant||(u(),o.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=i(1):t.startsWith("*|",r)?(s="*",e=i(2)):(e=i(0),124===t.charCodeAt(r)&&61!==t.charCodeAt(r+1)&&(s=e,e=i(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};o.push(m);break}case 58:{if(58===t.charCodeAt(r+1)){o.push({type:n.PseudoElement,name:i(2).toLowerCase(),data:40===t.charCodeAt(r)?s():null});continue}const e=i(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)}o.push({type:n.Pseudo,name:e,data:a});break}case 44:y(),o=[],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===o.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=i(0)}124===t.charCodeAt(r)&&124!==t.charCodeAt(r+1)&&(s=a,42===t.charCodeAt(r+1)?(a="*",r+=2):a=i(1)),o.push("*"===a?{type:n.Universal,namespace:s}:{type:n.Tag,name:a,namespace:s})}}}return y(),r}var S=r(828),_=function(){return _=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},_.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,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}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 o=e.charCodeAt(a);if(o===r)return[a,String.fromCharCode.apply(null,n)];if(92===o){var i=R(e,a);if(null===i)return null;var l=C(i,2),s=l[0],c=l[1];n.push(c),a=s}else{if(10===o)return null;n.push(o)}}return null},F=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))},R=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),o=t+2;o<a;o+=1){var i=e.charCodeAt(o);if(!(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))break;n.push(i)}if(o<e.length){var l=e.charCodeAt(o);9!==l&&32!==l&&10!==l||(o+=1)}return[o-1,parseInt(String.fromCharCode.apply(null,n),16)]}return[t+1,r]},z=function(e,t){var r=L(e,t);if(null===r)return null;var n=C(r,3),a=n[0],o=n[1],i=n[2],l=I(e,a+1);if(null!==l){var s=C(l,2);return[s[0],["<dimension-token>",o,s[1]]]}return a+1<e.length&&37===e.charCodeAt(a+1)?[a+1,["<percentage-token>",o]]:[a,["<number-token>",o,i]]},L=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 o=e.charCodeAt(t),i=e.charCodeAt(t+1);if(46===o&&i>=48&&i<=57)for(n.push(o,i),r="number",t+=2;t<e.length&&((c=e.charCodeAt(t))>=48&&c<=57);)n.push(c),t+=1}if(t+1<e.length){o=e.charCodeAt(t),i=e.charCodeAt(t+1);var l=e.charCodeAt(t+2);if(69===o||101===o){var s=i>=48&&i<=57;if(s||(43===i||45===i)&&l>=48&&l<=57)for(r="number",s?(n.push(69,i),t+=2):45===i?(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]},N=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=R(e,t);if(null===a)break;var o=C(a,2),i=o[0],l=o[1];r.push(l),t=i}return 0===t?null:[t-1,String.fromCharCode.apply(null,r)]},I=function(e,t){if(e.length<=t||!F(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=R(e,t);if(null===a)break;var o=C(a,2),i=o[0],l=o[1];r.push(l),t=i}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 o=R(e,t);if(null===o||a)return null;var i=C(o,2),l=i[0],s=i[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=I(e,t);if(null===r)return null;var n=C(r,2),a=n[0],o=n[1];if("url"===o.toLowerCase()){if(e.length>a+1&&40===e.charCodeAt(a+1)){for(var i=2;a+i<e.length;i+=1){var l=e.charCodeAt(a+i);if(34===l||39===l)return[a+1,o.toLowerCase(),"<function-token>"];if(9!==l&&32!==l&&10!==l){var s=M(e,a+i);if(null===s)return null;var c=C(s,2);return[c[0],c[1],"<url-token>"]}}return[a+1,o.toLowerCase(),"<function-token>"]}}else if(e.length>a+1&&40===e.charCodeAt(a+1))return[a+1,o.toLowerCase(),"<function-token>"];return[a,o.toLowerCase(),"<ident-token>"]},j=function(e){if(null===e.mediaCondition)return e;var t=H(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}},H=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 o=[r,1],i=0;i<a.children.length;i++)o.push(a.children[i]);t.children.splice.apply(t.children,o)}}}return t},B=function(e,t){return t instanceof Error?new Error("".concat(t.message.trim(),"\n").concat(e.trim())):new Error(e.trim())},V=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 o=C(E,2),i=o[0],l=o[1];r.push({type:"<string-token>",value:l}),t=i}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=F(e,t+1)?"id":"unrestricted";if(null!==(E=N(e,t+1))){var c=C(E,2);i=c[0],l=c[1],r.push({type:"<hash-token>",value:l.toLowerCase(),flag:s}),t=i;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);i=u[0],l=u[1],r.push({type:"<string-token>",value:l}),t=i}else if(40===n)r.push({type:"<(-token>"});else if(41===n)r.push({type:"<)-token>"});else if(43===n){var d=z(e,t);if(null===d)r.push({type:"<delim-token>",value:n});else{var p=C(d,2);i=p[0],"<dimension-token>"===(S=p[1])[0]?r.push({type:"<dimension-token>",value:S[1],unit:S[2].toLowerCase(),flag:"number"}):"<number-token>"===S[0]?r.push({type:S[0],value:S[1],flag:S[2]}):r.push({type:S[0],value:S[1],flag:"number"}),t=i}}else if(44===n)r.push({type:"<comma-token>"});else if(45===n){if(null!==(v=z(e,t))){var f=C(v,2);i=f[0],"<dimension-token>"===(S=f[1])[0]?r.push({type:"<dimension-token>",value:S[1],unit:S[2].toLowerCase(),flag:"number"}):"<number-token>"===S[0]?r.push({type:S[0],value:S[1],flag:S[2]}):r.push({type:S[0],value:S[1],flag:"number"}),t=i;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=(i=g[0],l=g[1],g[2]);r.push({type:y,value:l}),t=i;continue}r.push({type:"<delim-token>",value:n})}else if(46===n){var v;if(null!==(v=z(e,t))){var b=C(v,2);i=b[0],"<dimension-token>"===(S=b[1])[0]?r.push({type:"<dimension-token>",value:S[1],unit:S[2].toLowerCase(),flag:"number"}):"<number-token>"===S[0]?r.push({type:S[0],value:S[1],flag:S[2]}):r.push({type:S[0],value:S[1],flag:"number"}),t=i;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=I(e,t+1))){var x=C(E,2);i=x[0],l=x[1],r.push({type:"<at-keyword-token>",value:l.toLowerCase()}),t=i;continue}r.push({type:"<delim-token>",value:n})}else if(91===n)r.push({type:"<[-token>"});else if(92===n){if(null===(E=R(e,t)))return null;var k=C(E,2);i=k[0],l=k[1],e=e.slice(0,t)+l+e.slice(i+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=z(e,t),2);i=_[0],"<dimension-token>"===(S=_[1])[0]?r.push({type:"<dimension-token>",value:S[1],unit:S[2].toLowerCase(),flag:"number"}):"<number-token>"===S[0]?r.push({type:S[0],value:S[1],flag:S[2]}):r.push({type:S[0],value:S[1],flag:"number"}),t=i}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);i=$[0],l=$[1],y=$[2],r.push({type:y,value:l}),t=i}else r.push({type:"<delim-token>",value:n})}return r.push({type:"<EOF-token>"}),r}(e.trim());if(null===t)throw B("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 B("Expected whitespace after media");r=2;for(var a=2;a<t.length-1;a++){var o=t[a];if("<{-token>"===o.type){n=a;break}if("<semicolon-token>"===o.type)throw B("Expected '{' in media query but found ';'")}}return t=t.slice(r,n),U(t)},W=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(_(_({},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 o=e[a];"<comma-token>"===o.type?n.push([]):n[n.length-1].push(o)}var i=n.map(W);if(1===i.length&&0===i[0].length)return[{mediaCondition:null,mediaPrefix:null,mediaType:"all"}];var l=i.map((function(e){return 0===e.length?null:G(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 B("No valid media queries");return s},G=function(e){var t=e[0];if("<(-token>"===t.type)try{return{mediaPrefix:null,mediaType:"all",mediaCondition:q(e,!0)}}catch(e){throw B("Expected media condition after '('",e)}else{if("<ident-token>"!==t.type)throw B("Expected media condition or media prefix");var r=null,n=void 0,a=t.value;"only"!==a&&"not"!==a||(r=a);var o=null===r?0:1;if(e.length<=o)throw B("Expected extra token in media query");var i=e[o];if("<ident-token>"===i.type){var l=i.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 B("Unknown ident '".concat(l,"' in media query"));r="not"===r?null:"not",n="all"}}else{if("not"!==r||"<(-token>"!==i.type)throw B("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:q(s,!0)}}catch(e){throw B("Expected media condition after '('",e)}}if(o+1===e.length)return{mediaPrefix:r,mediaType:n,mediaCondition:null};if(!(o+4<e.length))throw B("Expected media condition after media prefix");var c=e[o+1];if("<ident-token>"!==c.type||"and"!==c.value)throw B("Expected 'and' after media prefix");try{return{mediaPrefix:r,mediaType:n,mediaCondition:q(e.slice(o+2),!1)}}catch(e){throw B("Expected media condition after 'and'",e)}}},q=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,o=t.length-1,i=0,l=0,s=0;s<t.length;s++){var c=t[s];if("<(-token>"===c.type?(l+=1,i=Math.max(i,l)):"<)-token>"===c.type&&(l-=1),0===l){o=s;break}}if(0!==l)throw new Error("Mismatched parens\nInvalid media condition");var u=t.slice(0,o+1);if(a=1===i?K(u):"<ident-token>"===u[1].type&&"not"===u[1].value?e(u.slice(2,-1),!0,"not"):e(u.slice(1,-1),!0),o===t.length-1)return{operator:n,children:[a]};var d=t[o+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(o+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],o=e[r+2];if("<number-token>"===n.type&&n.value>0&&"<delim-token>"===a.type&&47===a.value&&"<number-token>"===o.type&&o.value>0){t.push({type:"<ratio-token>",numerator:n.value,denominator:o.value,wsBefore:n.wsBefore,wsAfter:o.wsAfter}),r+=2;continue}}t.push(e[r])}var i=t[1];if("<ident-token>"===i.type&&3===t.length)return{context:"boolean",feature:i.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 B("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 o={leftToken:null,leftOp:null,featureName:"",rightOp:null,rightToken:null},i="<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?o[i?"leftOp":"rightOp"]="<":o[i?"leftOp":"rightOp"]="<=";else if(62===e[2].value)"<delim-token>"!==e[3].type||61!==e[3].value||e[3].wsBefore?o[i?"leftOp":"rightOp"]=">":o[i?"leftOp":"rightOp"]=">=";else{if(61!==e[2].value)throw new Error("Invalid range");o[i?"leftOp":"rightOp"]="="}if(i)o.leftToken=e[1];else{if("<ident-token>"!==e[1].type)throw new Error("Invalid range");o.featureName=e[1].value}var l=2+(null!==(r=null===(t=o[i?"leftOp":"rightOp"])||void 0===t?void 0:t.length)&&void 0!==r?r:0),s=e[l];if(i){if("<ident-token>"!==s.type)throw new Error("Invalid range");if(o.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?o.rightOp="<":o.rightOp="<=";else{if(62!==d)throw new Error("Invalid range");"<delim-token>"!==u.type||61!==u.value||u.wsBefore?o.rightOp=">":o.rightOp=">="}var p=e[l+1+(null!==(a=null===(n=o.rightOp)||void 0===n?void 0:n.length)&&void 0!==a?a:0)];o.rightToken=p}else if(l+2!==e.length)throw new Error("Invalid range")}else o.rightToken=s;var f=null,h=o.leftToken,m=o.leftOp,g=o.featureName,y=o.rightOp,v=o.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 Q(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 Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){var n,a,o;n=e,a=t,o=r[t],(a=X(a))in n?Object.defineProperty(n,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[a]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(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={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[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,o=t[n],i=null!==(a=r.precedenceLookup.get(o))&&void 0!==a?a:new Set;for(var l of t.slice(n+1))i.add(l);r.precedenceLookup.set(o,i)}}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:o,children:i}of e.ruleset.values()){var l=this.ruleset.get(o);if(l&&!l.children.isCompatible(i))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[o,i]of e.precedenceLookup.entries()){var l,s=null!==(l=this.precedenceLookup.get(o))&&void 0!==l?l:new Set;this.precedenceLookup.set(o,new Set([...s,...i]))}}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 o=t.findIndex((e=>r.has(e.query)));o>-1?t.splice(o,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 o of r)a[o.selector]=Z(Z({},a[o.selector]),o.rule);Object.assign(a,...n.renderToArray()),e.push({[t]:a})}return e}}var oe,ie={":-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(ie),se=ie,ce=(e,t)=>new Error((0,S.A)(oe||(oe=(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]=j(e[t])})(V(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),o=e.slice(r);return"".concat(a).concat(n).concat(o)}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],o=t.slice(0,t.length-1);this.currConditionalRuleset.addRule({selector:n,rule:r},a,o)}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?Z(Z({},function(e){var t,r={};for(var n in e)r[(e[n],t=n,(0,i.Tm)(t))]=e[n];return r}(t)),r):r}transformContent(e){var{content:t}=e,r=J(e,pe);return void 0===t?r:Z({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 o=this.localClassNamesSearch.search(t),i=t.length,l=o.length-1;l>=0;l--){var[s,[c]]=o[l],d=s-c.length+1;i<=s||(i=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,S.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 o={selector:a,rule:te(t,ge)};r?this.addConditionalRule(o,r):this.addRule(o);var i={type:"selector",selector:a,rule:t};this.transformLayer(i,t["@layer"],r),this.transformSupports(i,t["@supports"],r),this.transformMedia(i,t["@media"],r),this.transformContainer(i,t["@container"],r)}))}transformMedia(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t)for(var[a,o]of(null===(r=this.currConditionalRuleset)||void 0===r||r.addConditionPrecedence(n,Object.keys(t).map((e=>"@media ".concat(e)))),Object.entries(t))){var i="@media ".concat(a);ue(i);var l=[...n,i];this.addConditionalRule({selector:e.selector,rule:te(o,ge)},l),"local"===e.type&&(this.transformSimplePseudos(e,o,l),this.transformSelectors(e,o,l)),this.transformLayer(e,o["@layer"],l),this.transformSupports(e,o["@supports"],l),this.transformContainer(e,o["@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),o=[...n,a];this.addConditionalRule({selector:e.selector,rule:te(t,ge)},o),"local"===e.type&&(this.transformSimplePseudos(e,t,o),this.transformSelectors(e,t,o)),this.transformLayer(e,t["@layer"],o),this.transformSupports(e,t["@supports"],o),this.transformMedia(e,t["@media"],o)})))}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[o,...i]=a.reverse(),l={[o]:fe};for(var s of i)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,o=e[n];o&&Array.isArray(o)?r.push(...o.map((e=>ve({[n]:e},t)))):o&&"object"==typeof o?0===Object.keys(o).length||r.push("".concat(t).concat(n," {\n").concat(ve(o,t+" "),"\n").concat(t,"}")):o===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(o,";"))};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:{},Se=(e,t,r,n)=>{"function"==typeof ke.emitWarning?ke.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let _e=globalThis.AbortController,Ee=globalThis.AbortSignal;if(void 0===_e){Ee=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},_e=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,Se("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;#o;#i;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;#S;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.#_(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.#o}get memoMethod(){return this.#i}get dispose(){return this.#n}get disposeAfter(){return this.#a}constructor(e){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:a,updateAgeOnGet:o,updateAgeOnHas:i,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.#i=g,void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=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.#S=!!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=!!o,this.updateAgeOnHas=!!i,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),Se("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.#F=(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.#R(this.#u[r],"expire")}),n+1);e.unref&&e.unref()}},this.#z=r=>{t[r]=0!==e[r]?we.now():0},this.#L=(a,o)=>{if(e[o]){const i=e[o],l=t[o];if(!i||!l)return;a.ttl=i,a.start=l,a.now=r||n();const s=a.now-l;a.remainingTTL=i-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 o=this.#c.get(a);if(void 0===o)return 0;const i=e[o],l=t[o];return i&&l?i-((r||n())-l):1/0},this.#T=a=>{const o=t[a],i=e[a];return!!i&&!!o&&(r||n())-o>i}}#z=()=>{};#L=()=>{};#F=()=>{};#T=()=>!1;#O(){const e=new Ae(this.#t);this.#s=0,this.#v=e,this.#N=t=>{this.#s-=e[t],e[t]=0},this.#I=(e,t,r,n)=>{if(this.#_(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)}}#N=e=>{};#M=(e,t,r)=>{};#I=(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.#j(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.#j(t)&&(!e&&this.#T(t)||(yield t),t!==this.#m);)t=this.#p[t]}#j(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.#_(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.#_(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.#_(this.#d[e])||(yield t)}}*rkeys(){for(const e of this.#A()){const t=this.#u[e];void 0===t||this.#_(this.#d[e])||(yield t)}}*values(){for(const e of this.#$())void 0===this.#d[e]||this.#_(this.#d[e])||(yield this.#d[e])}*rvalues(){for(const e of this.#A())void 0===this.#d[e]||this.#_(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.#_(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.#_(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.#_(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.#R(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.#_(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.#_(n)?n.__staleWhileFetching:n;if(void 0===a||void 0===r)continue;const o={value:a};if(this.#w&&this.#b){o.ttl=this.#w[t];const e=we.now()-this.#b[t];o.start=Math.floor(Date.now()-e)}this.#v&&(o.size=this.#v[t]),e.unshift([r,o])}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:o=this.noDisposeOnSet,sizeCalculation:i=this.sizeCalculation,status:l}=r;let{noUpdateTTL:s=this.noUpdateTTL}=r;const c=this.#I(e,t,r.size||0,i);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#R(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.#_(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;void 0===t||o||(this.#x&&this.#n?.(t,e,"set"),this.#S&&this.#y?.push([t,e,"set"]))}else o||(this.#x&&this.#n?.(r,e,"set"),this.#S&&this.#y?.push([r,e,"set"]));if(this.#N(u),this.#M(u,c,l),this.#d[u]=t,l){l.set="replace";const e=r&&this.#_(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.#F(u,n,a),l&&this.#L(l,u)),!o&&this.#S&&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.#_(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#S&&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.#_(n)?n.__abortController.abort(new Error("evicted")):(this.#x||this.#S)&&(this.#x&&this.#n?.(n,r,"evict"),this.#S&&this.#y?.push([n,r,"evict"])),this.#N(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.#_(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#T(a))return r&&this.#z(a),n&&(n.has="hit",this.#L(n,a)),!0;n&&(n.has="stale",this.#L(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.#_(a)?a.__staleWhileFetching:a}#E(e,t,r,n){const a=void 0===t?void 0:this.#d[t];if(this.#_(a))return a;const o=new _e,{signal:i}=r;i?.addEventListener("abort",(()=>o.abort(i.reason)),{signal:o.signal});const l={signal:o.signal,options:r,context:n},s=(n,a=!1)=>{const{aborted:i}=o.signal,s=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(i&&!a?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,s&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),i&&!s&&!a)return c(o.signal.reason);const d=u;return this.#d[t]===u&&(void 0===n?d.__staleWhileFetching?this.#d[t]=d.__staleWhileFetching:this.#R(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,l.options))),n},c=n=>{const{aborted:a}=o.signal,i=a&&r.allowStaleOnFetchAbort,l=i||r.allowStaleOnFetchRejection,s=l||r.noDeleteOnFetchRejection,c=u;if(this.#d[t]===u&&(s&&void 0!==c.__staleWhileFetching?i||(this.#d[t]=c.__staleWhileFetching):this.#R(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 i=this.#o?.(e,a,l);i&&i instanceof Promise&&i.then((e=>t(void 0===e?void 0:e)),n),o.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:o,__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}#_(e){if(!this.#k)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof _e}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:i=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:o,noDisposeOnSet:i,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.#_(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.#z(b),g&&this.#L(g,b),t;const o=this.#E(e,b,v,h),i=void 0!==o.__staleWhileFetching&&r;return g&&(g.fetch=a?"stale":"refresh",i&&a&&(g.returnedStale=!0)),i?o.__staleWhileFetching:o.__returned=o}}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.#i;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:a,...o}=t,i=this.get(e,o);if(!a&&void 0!==i)return i;const l=r(e,i,{options:o,context:n});return this.set(e,l,o),l}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:o}=t,i=this.#c.get(e);if(void 0!==i){const t=this.#d[i],l=this.#_(t);return o&&this.#L(o,i),this.#T(i)?(o&&(o.get="stale"),l?(o&&r&&void 0!==t.__staleWhileFetching&&(o.returnedStale=!0),r?t.__staleWhileFetching:void 0):(a||this.#R(e,"expire"),o&&r&&(o.returnedStale=!0),r?t:void 0)):(o&&(o.get="hit"),l?t.__staleWhileFetching:(this.#C(i),n&&this.#z(i),t))}o&&(o.get="miss")}#H(e,t){this.#f[t]=e,this.#p[e]=t}#C(e){e!==this.#m&&(e===this.#h?this.#h=this.#p[e]:this.#H(this.#f[e],this.#p[e]),this.#H(this.#m,e),this.#m=e)}delete(e){return this.#R(e,"delete")}#R(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.#B(t);else{this.#N(n);const r=this.#d[n];if(this.#_(r)?r.__abortController.abort(new Error("deleted")):(this.#x||this.#S)&&(this.#x&&this.#n?.(r,e,t),this.#S&&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.#S&&this.#y?.length){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}return r}clear(){return this.#B("delete")}#B(e){for(const t of this.#A({allowStale:!0})){const r=this.#d[t];if(this.#_(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#u[t];this.#x&&this.#n?.(r,n,e),this.#S&&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.#S&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#a?.(...t)}}}const Pe=e=>e instanceof Date,Fe=e=>null!=e&&"object"==typeof e,Re=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),ze=e=>Fe(e)&&(e=>0===Object.keys(e).length)(e),Le=(e,t)=>{if(e===t)return{};if(!Fe(e)||!Fe(t))return t;const r=Object.keys(e).reduce(((e,r)=>(Re(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(!Re(e,n))return r[n]=t[n],r;const a=Le(e[n],t[n]);return!ze(a)||Pe(a)||!ze(e[n])&&ze(t[n])?(r[n]=a,r):r}),r)},Ne=Le;var Ie=r(633),Me=r.n(Ie),De=r(744),je=r.n(De),He=new Set,Be=[],Ve=[],We={appendCss:e=>{Ve.push(e)},registerClassName:e=>{He.add(e)},registerComposition:e=>{Be.push(e)},markCompositionUsed:()=>{},onEndFileScope:e=>{var t=function(e){var{localClassNames:t,cssObjs:r,composedClassLists:n}=e,a=new ye(t,n);for(var o of r)a.processCssObj(o);return a.toCss()}({localClassNames:Array.from(He),composedClassLists:Be,cssObjs:Ve}).join("\n");(e=>{var{fileScope:t,css:r}=e,n=t.packageName?[t.packageName,t.filePath].join("/"):t.filePath,a=o[n];if(!a){var i=document.createElement("style");t.packageName&&i.setAttribute("data-package",t.packageName),i.setAttribute("data-file",t.filePath),i.setAttribute("type","text/css"),a=o[n]=i,document.head.appendChild(i)}a.innerHTML=r})({fileScope:e,css:t}),Ve=[]},getIdentOption:()=>"short"};(0,u.GX)(We);var Ue,Ge=(e,t)=>{for(var r=t-1;r>=0;){if("/"===e[r])return r;r--}return-1},qe=(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=Ge(e,r);if(t=e.slice(n+1,r),-1===n)return t;var a=Ge(e,n-1),o=e.slice(a+1,n);return"index"!==t?t:o})(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}=Z(Z({},"string"==typeof e?{debugId:e}:null),"object"==typeof e?e:null),a=(0,be.getAndIncrementRefCounter)().toString(36),{filePath:o,packageName:i}=(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)}(i?"".concat(i).concat(o):o),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)(),o=qe(a);o&&n.unshift(o)}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:o,packageName:i})).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,i.Bx)(e,(()=>""));function Qe(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 Ze(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[];0===r&&n.push(Qe("{",0));var a=r+1,o=Object.keys(t).sort();for(var i of o){var l=t[i];i in e?"object"==typeof l?(n.push(Qe("".concat(i,": {"),a)),n.push(Ze(e[i],t[i],a)),n.push(Qe("}",a))):n.push(Qe("".concat(i,": ...,"),a,"-")):n.push(Qe("".concat(i,": ...,"),a,"+"))}return 0===r&&n.push(Qe("}",0)),n.join("\n")}var Je=e=>{var{syntax:t,inherits:r,initialValue:n}=e;return Z({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=Ne(Xe(e),Xe(t)),n=0===Object.keys(r).length;return{valid:n,diffString:n?"":Ze(e,r)}}(e,t);if(!n)throw new Error("Tokens don't match contract.\n".concat(a));return(0,i.Bx)(t,((t,n)=>{r[(0,i.Jt)(e,n)]=String(t)})),r}function ot(e){return(0,i.Bx)(e,((e,t)=>et(t.join("-"))))}function it(e,t){return(0,i.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:o,tokens:i}=function(e){if("@layer"in e){var{"@layer":t}=e;return{layerName:t,tokens:J(e,st)}}return{tokens:e}}(a),l=n?t:ot(i),s={vars:at(l,i)};if(o&&(s={"@layer":{[o]: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 o of e)"string"==typeof o?n.push(o):a.push(o);var i=r;if(n.length>0&&(i="".concat(r," ").concat(ne(n)),(0,u.EC)({identifier:r,classList:i},(0,be.getFileScope)()),a.length>0&&(0,u.VF)(r)),a.length>0){var l=je().all(a,{arrayMerge:(e,t)=>t});(0,u.i2)({type:"local",selector:r,rule:l},(0,be.getFileScope)())}return i}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,S.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:Z(Z({},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:Z(Z({},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 o=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],l={};for(var s in o)l[s]=pt(o[s],i?"".concat(i,"_").concat(s):s);return l}var wt=e=>Ye(e),xt=e=>Ye(e),kt={},St=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=Z(Z({},kt),e),r=arguments.length<=1?void 0:arguments[1]),[t,r]};function _t(){var[e,t]=St(...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]=St(...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),o=r(828),i=r(619),l=0,s=[];function c(e,t){l=0;var r={filePath:e,packageName:t};s.unshift(r),(0,i.bx)(r)}function u(){(0,i.Ri)(p()),l=0,s.splice(0,1)}function d(){return s.length>0}function p(){if(0===s.length)throw new Error((0,o.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 o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n={};for(var a in e){var i=e[a],l=[...r,a];"string"==typeof i||"number"==typeof i||null==i?n[a]=t(i,l):"object"!=typeof i||Array.isArray(i)?console.warn('Skipping invalid key "'.concat(l.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"')):n[a]=o(i,t,l)}return n}r.d(t,{Bx:()=>o,Jt:()=>a,Tm:()=>n})},972:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>DE});var n={};r.r(n),r.d(n,{animationTimingName:()=>la,animationTimingStyle:()=>sa,ellipsisName:()=>da,ellipsisStyles:()=>pa,slideLeft:()=>ha,slideRight:()=>fa,transitionTimingName:()=>ca,transitionTimingStyle:()=>ua,variables:()=>ia});var a={};r.r(a),r.d(a,{aU:()=>Fa,OG:()=>Ta,YQ:()=>Oa});var o={};r.r(o),r.d(o,{rq:()=>Ua,E3:()=>Ga,eF:()=>Wa,jr:()=>Xa,H1:()=>Ya,g3:()=>Ka,_6:()=>Qa,Fm:()=>qa,JW:()=>Za});var i={};r.r(i),r.d(i,{circleBase:()=>Gm,circleInner:()=>qm,circleInnerAccent1:()=>Km,circleInnerAccent2:()=>Ym,circleInnerAccent3:()=>Xm,circleInnerAccent4:()=>Qm,circleInnerImage:()=>Zm,circleProgressIndicator:()=>Jm,circleRadiusSvg:()=>Dm,circleSm:()=>eg,circleSmProgressIndicator:()=>tg,iconWrapLg:()=>ig,iconWrapSm:()=>og,progressIndicatorCircleRadius:()=>Wm,strokeColorAccent1:()=>lg,strokeColorAccent2:()=>sg,strokeColorAccent3:()=>cg,strokeColorAccent4:()=>ug,textContent:()=>ag,textProgressMeterBase:()=>rg,textProgressMeterInnerText:()=>ng});var l={};r.r(l),r.d(l,{cellBase:()=>Sv,cellHeading:()=>wv,cellResponsive:()=>_v,columnCenter:()=>Av,columnEnd:()=>$v,columnRemaining:()=>Kv,columnStart:()=>Cv,fixedFirstColumn:()=>fv,fixedFirstColumnTable:()=>nv,mobileColumnCenter:()=>Zv,mobileColumnEnd:()=>Qv,mobileColumnStart:()=>Xv,mobileGridZoneA1:()=>Ov,mobileGridZoneA12:()=>Rv,mobileGridZoneA123:()=>Lv,mobileGridZoneA2:()=>Pv,mobileGridZoneA23:()=>zv,mobileGridZoneA3:()=>Fv,mobileGridZoneAB1:()=>Bv,mobileGridZoneAB12:()=>Uv,mobileGridZoneAB123:()=>qv,mobileGridZoneAB2:()=>Vv,mobileGridZoneAB23:()=>Gv,mobileGridZoneAB3:()=>Wv,mobileGridZoneB1:()=>Nv,mobileGridZoneB12:()=>Dv,mobileGridZoneB123:()=>Hv,mobileGridZoneB2:()=>Iv,mobileGridZoneB23:()=>jv,mobileGridZoneB3:()=>Mv,mobileGridZoneHidden:()=>Tv,mobileWidth:()=>Yv,responsiveTableBase:()=>dv,rowBase:()=>xv,rowSelected:()=>kv,scrollContext:()=>cv,scrollContextTable:()=>uv,stickyColFoot:()=>gv,stickyColHead:()=>mv,summaryAdjust:()=>iv,summaryHeading:()=>av,summaryItem:()=>ov,summaryTotal:()=>lv,summaryWrapper:()=>pv,tableBase:()=>Ev,tbody:()=>vv,tfoot:()=>bv,thead:()=>yv,typeData:()=>tv,typeSummary:()=>rv,utility:()=>sv});var s={};r.r(s),r.d(s,{base:()=>Bx,baseIcon:()=>Vx,baseSmIcon:()=>Wx,inverse:()=>qx,leftIcon:()=>Yx,linkLg:()=>jx,linkSm:()=>Hx,primary:()=>Ux,secondary:()=>Gx,shimmer:()=>Kx});var c,u,d,p,f=r(664),h=r.n(f),m=r(556),g=r.n(m),y=r(98),v=r.n(y),b=r(115),w=r.n(b),x=r(831),k=r.n(x),S=r(228),_=r.n(S),E="bodyAttributes",C="htmlAttributes",$={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},A=(Object.keys($).map((function(e){return $[e]})),"charset"),T="cssText",O="href",P="innerHTML",F="itemprop",R="rel",z={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},L=Object.keys(z).reduce((function(e,t){return e[z[t]]=t,e}),{}),N=[$.NOSCRIPT,$.SCRIPT,$.STYLE],I="data-react-helmet",M="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},D=function(){function e(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,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},B=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(e){var t=K(e,$.TITLE),r=K(e,"titleTemplate");if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=K(e,"defaultTitle");return t||n||void 0},W=function(e){return K(e,"onChangeClientState")||function(){}},U=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return j({},e,t)}),{})},G=function(e,t){return t.filter((function(e){return void 0!==e[$.BASE]})).map((function(e){return e[$.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),a=0;a<n.length;a++){var o=n[a].toLowerCase();if(-1!==e.indexOf(o)&&r[o])return t.concat(r)}return t}),[])},q=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&J("Helmet: "+e+' should be of type "Array". Instead found type "'+M(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var a={};r.filter((function(e){for(var r=void 0,o=Object.keys(e),i=0;i<o.length;i++){var l=o[i],s=l.toLowerCase();-1===t.indexOf(s)||r===R&&"canonical"===e[r].toLowerCase()||s===R&&"stylesheet"===e[s].toLowerCase()||(r=s),-1===t.indexOf(l)||l!==P&&l!==T&&l!==F||(r=l)}if(!r||!e[r])return!1;var c=e[r].toLowerCase();return n[r]||(n[r]={}),a[r]||(a[r]={}),!n[r][c]&&(a[r][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),i=0;i<o.length;i++){var l=o[i],s=_()({},n[l],a[l]);n[l]=s}return e}),[]).reverse()},K=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},Y=(c=Date.now(),function(e){var t=Date.now();t-c>16?(c=t,e(t)):setTimeout((function(){Y(e)}),0)}),X=function(e){return clearTimeout(e)},Q="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Y:r.g.requestAnimationFrame||Y,Z="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||X:r.g.cancelAnimationFrame||X,J=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ee=null,te=function(e,t){var r=e.baseTag,n=e.bodyAttributes,a=e.htmlAttributes,o=e.linkTags,i=e.metaTags,l=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,p=e.titleAttributes;ae($.BODY,n),ae($.HTML,a),ne(d,p);var f={baseTag:oe($.BASE,r),linkTags:oe($.LINK,o),metaTags:oe($.META,i),noscriptTags:oe($.NOSCRIPT,l),scriptTags:oe($.SCRIPT,c),styleTags:oe($.STYLE,u)},h={},m={};Object.keys(f).forEach((function(e){var t=f[e],r=t.newTags,n=t.oldTags;r.length&&(h[e]=r),n.length&&(m[e]=f[e].oldTags)})),t&&t(),s(e,h,m)},re=function(e){return Array.isArray(e)?e.join(""):e},ne=function(e,t){void 0!==e&&document.title!==e&&(document.title=re(e)),ae($.TITLE,t)},ae=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(I),a=n?n.split(","):[],o=[].concat(a),i=Object.keys(t),l=0;l<i.length;l++){var s=i[l],c=t[s]||"";r.getAttribute(s)!==c&&r.setAttribute(s,c),-1===a.indexOf(s)&&a.push(s);var u=o.indexOf(s);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d--)r.removeAttribute(o[d]);a.length===o.length?r.removeAttribute(I):r.getAttribute(I)!==i.join(",")&&r.setAttribute(I,i.join(","))}},oe=function(e,t){var r=document.head||document.querySelector($.HEAD),n=r.querySelectorAll(e+"["+I+"]"),a=Array.prototype.slice.call(n),o=[],i=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===P)r.innerHTML=t.innerHTML;else if(n===T)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[n]?"":t[n];r.setAttribute(n,l)}r.setAttribute(I,"true"),a.some((function(e,t){return i=t,r.isEqualNode(e)}))?a.splice(i,1):o.push(r)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return r.appendChild(e)})),{oldTags:a,newTags:o}},ie=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[z[r]||r]=e[r],t}),t)},se=function(e,t,r){switch(e){case $.TITLE:return{toComponent:function(){return function(e,t,r){var n,a=((n={key:t})[I]=!0,n),o=le(r,a);return[k().createElement($.TITLE,o,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,r,n){var a=ie(r),o=re(t);return a?"<"+e+" "+I+'="true" '+a+">"+B(o,n)+"</"+e+">":"<"+e+" "+I+'="true">'+B(o,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case E:case C:return{toComponent:function(){return le(t)},toString:function(){return ie(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,a=((n={key:r})[I]=!0,n);return Object.keys(t).forEach((function(e){var r=z[e]||e;if(r===P||r===T){var n=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:n}}else a[r]=t[e]})),k().createElement(e,a)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var a=Object.keys(n).filter((function(e){return!(e===P||e===T)})).reduce((function(e,t){var a=void 0===n[t]?t:t+'="'+B(n[t],r)+'"';return e?e+" "+a:a}),""),o=n.innerHTML||n.cssText||"",i=-1===N.indexOf(e);return t+"<"+e+" "+I+'="true" '+a+(i?"/>":">"+o+"</"+e+">")}),"")}(e,t,r)}}}},ce=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,a=e.htmlAttributes,o=e.linkTags,i=e.metaTags,l=e.noscriptTags,s=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,p=e.titleAttributes;return{base:se($.BASE,t,n),bodyAttributes:se(E,r,n),htmlAttributes:se(C,a,n),link:se($.LINK,o,n),meta:se($.META,i,n),noscript:se($.NOSCRIPT,l,n),script:se($.SCRIPT,s,n),style:se($.STYLE,c,n),title:se($.TITLE,{title:d,titleAttributes:p},n)}},ue=v()((function(e){return{baseTag:G([O,"target"],e),bodyAttributes:U(E,e),defer:K(e,"defer"),encode:K(e,"encodeSpecialCharacters"),htmlAttributes:U(C,e),linkTags:q($.LINK,[R,O],e),metaTags:q($.META,["name",A,"http-equiv","property",F],e),noscriptTags:q($.NOSCRIPT,[P],e),onChangeClientState:W(e),scriptTags:q($.SCRIPT,["src",P],e),styleTags:q($.STYLE,[T],e),title:V(e),titleAttributes:U("titleAttributes",e)}}),(function(e){ee&&Z(ee),e.defer?ee=Q((function(){te(e,(function(){ee=null}))})):(te(e),ee=null)}),ce)((function(){return null})),de=(u=ue,p=d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!w()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case $.SCRIPT:case $.NOSCRIPT:return{innerHTML:t};case $.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,a=e.newChildProps,o=e.nestedChildren;return j({},n,((t={})[r.type]=[].concat(n[r.type]||[],[j({},a,this.mapNestedChildrenToProps(r,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(n.type){case $.TITLE:return j({},a,((t={})[n.type]=i,t.titleAttributes=j({},o),t));case $.BODY:return j({},a,{bodyAttributes:j({},o)});case $.HTML:return j({},a,{htmlAttributes:j({},o)})}return j({},a,((r={})[n.type]=j({},o),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=j({},t);return Object.keys(e).forEach((function(t){var n;r=j({},r,((n={})[t]=e[t],n))})),r},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return k().Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,o=a.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[L[r]||r]=e[r],t}),t)}(H(a,["children"]));switch(r.warnOnInvalidChildren(e,o),e.type){case $.LINK:case $.META:case $.NOSCRIPT:case $.SCRIPT:case $.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:i,nestedChildren:o});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=H(e,["children"]),n=j({},r);return t&&(n=this.mapChildrenToProps(t,n)),k().createElement(u,n)},D(t,null,[{key:"canUseDOM",set:function(e){u.canUseDOM=e}}]),t}(k().Component),d.propTypes={base:g().object,bodyAttributes:g().object,children:g().oneOfType([g().arrayOf(g().node),g().node]),defaultTitle:g().string,defer:g().bool,encodeSpecialCharacters:g().bool,htmlAttributes:g().object,link:g().arrayOf(g().object),meta:g().arrayOf(g().object),noscript:g().arrayOf(g().object),onChangeClientState:g().func,script:g().arrayOf(g().object),style:g().arrayOf(g().object),title:g().string,titleAttributes:g().object,titleTemplate:g().string},d.defaultProps={defer:!0,encodeSpecialCharacters:!0},d.peek=u.peek,d.rewind=function(){var e=u.rewind();return e||(e=ce({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},p);de.renderStatic=de.rewind;var pe=r(660),fe=r.n(pe),he=r(313),me=r(436);function ge(){return ge=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},ge.apply(null,arguments)}function ye(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 o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const ve=r(626).L;he.setFileScope("src/theme.css.ts","@paypalcorp/pp-react-theme");const be=(0,me.createTheme)(ve,{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");he.endFileScope(),he.setFileScope("src/darkTheme.css.ts","@paypalcorp/pp-react-theme"),(0,me.createTheme)(ve,{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"),he.endFileScope();var we=["theme","className","children"],xe=function(e){var t=e.theme,r=void 0===t?be:t,n=e.className,a=e.children,o=ye(e,we);return fe().createElement("div",ge({className:"ppui-theme ".concat(r," ").concat(n||"")},o),a)},ke="22rem",Se="36rem",_e="47rem",Ee="64rem",Ce="72rem",$e="90rem",Ae=r(699);const Te=Ae.Tr,Oe=Ae._s;function Pe(e){return Pe="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},Pe(e)}function Fe(e){var t=function(e){if("object"!=Pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pe(t)?t:t+""}function Re(e,t,r){return(t=Fe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ze(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,Fe(n.key),n)}}var Le,Ne,Ie=function(){return"undefined"!=typeof window},Me=function(){return"undefined"!=typeof document},De=(Le=function(e,t,r,n){var a,o;return null!==(a=null!==(o=r[t])&&void 0!==o?o:r["".concat(e).concat(t)])&&void 0!==a?a:"function"==typeof n?n(e,t,r):n},Ne="sysColor",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Le.apply(void 0,[Ne].concat(t))}),je={fore:"contrast",back:"main",hover:"mainHover",active:"mainActive"},He={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:je,primaryInverse:{familyName:"primary",fore:"main",back:"contrast",hover:"contrastHover",active:"contrastActive"},secondary:je,tertiary:je,featured:je,unselected:je,selected:je,linkMain:je,linkAlt:je,overlay:je,accent1:je,accent2:je,accent3:je,accent4:je,error:je,warning:je,success:je,system:je,info:je,specialty:je},Be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=He[t],n=r.familyName,a=void 0===n?t:n,o=r.fore,i=r.back,l=r.hover,s=r.active,c=e.color[a];return Re(Re(Re(Re(Re(Re({},Oe.main,c[o]),Oe.background,c[i]),Oe.hoverMain,c[o]),Oe.hoverBack,c[l]),Oe.activeMain,c[o]),Oe.activeBack,c[s])},Ve=1060,We=1090,Ue=/([+-]?\d*\.?\d*)([a-z%]*)?/,Ge=function(e,t){var r;if("number"==typeof e)return{unit:t,value:e};var n=e.match(Ue);return{value:parseFloat(e),unit:null!==(r=n&&n[2])&&void 0!==r?r:t}},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r=Ge(e,"px"),n=r.unit,a=r.value;return"rem"===n?a*t:a},Ke=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},Ye=function(e,t){return"color-mix(in srgb, ".concat(e," ").concat(t,", transparent)")},Xe="ppui",Qe={};function Ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe;Qe[e]||(Qe[e]=0);var t=++Qe[e];return e===Xe?"".concat(t):"".concat(e).concat(t)}var Je=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Re(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}}])&&ze(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();Re(Je,"CODE_ARROW_UP",38),Re(Je,"CODE_ARROW_DOWN",40),Re(Je,"CODE_ARROW_LEFT",37),Re(Je,"CODE_ARROW_RIGHT",39),Re(Je,"CODE_ENTER",13),Re(Je,"CODE_SPACE",32),Re(Je,"CODE_ESC",27),Re(Je,"CODE_TAB",9),Re(Je,"CODE_CAPS_LOCK",20),Re(Je,"CODE_HOME",36),Re(Je,"CODE_END",35),Re(Je,"CODE_BACKSPACE",8),Re(Je,"CODE_DELETE",46),Re(Je,"NAME_ARROW_UP","Up"),Re(Je,"NAME_ARROW_DOWN","Down"),Re(Je,"NAME_ARROW_LEFT","Left"),Re(Je,"NAME_ARROW_RIGHT","Right"),Re(Je,"NAME_ENTER","Enter"),Re(Je,"NAME_SPACE"," "),Re(Je,"NAME_ESC","Esc"),Re(Je,"NAME_TAB","Tab"),Re(Je,"NAME_HOME","Home"),Re(Je,"NAME_END","End"),Re(Je,"NAME_BACKSPACE","Backspace"),Re(Je,"NAME_DELETE","Delete");var et=["as","children","className"];function tt(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 rt=function(e){if(null===e||"object"!==Pe(e))return e;var t=new e.constructor;for(var r in e)e.hasOwnProperty(r)&&(t[r]=rt(e[r]));return t},nt=function(e,t){if(t){var r=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(r,"ig");return e.replace(n,"<strong>$&</strong>")}return e},at=function(e){var t=e.as,r=void 0===t?"span":t,n=e.children,a=e.className,o=ye(e,et);return n?fe().createElement(r,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:a},o),n):null};he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-screen-reader");const[ot,it]=(lt={position:"absolute",clip:"rect(1px, 1px, 1px, 1px)",padding:0,border:0,width:"1px",height:"1px",overflow:"hidden"},[(0,me.style)(lt,"screenreader"),lt]);var lt;he.endFileScope();var st=["as","className","children"],ct=function(e){var t=e.as,r=void 0===t?"div":t,n=e.className,a=e.children,o=ye(e,st);return fe().createElement(r,ge({className:Ke(ot,n)},o,{"data-ppui":"true"}),a)};function ut(e,t){return[(0,me.style)(e,t),e]}he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-shimmer");const dt=`cubic-bezier(${ve.motion.easing.loop.standard})`,pt=(0,me.keyframes)({"0%":{backgroundPosition:"100% 0"},"100%":{backgroundPosition:"-100% 0"}},"shimmer_animation"),[ft,ht]=ut({backgroundColor:ve.color.structure.shimmer,border:`${ve.border.thickness.normal} solid transparent`,backgroundImage:`linear-gradient(\n to right,\n ${ve.color.structure.shimmer} 0%,\n ${ve.color.structure.sheen} 50%,\n ${ve.color.structure.shimmer} 100%\n )`,backgroundPosition:"100% 0",backgroundSize:"200%",animation:`${pt} ${ve.motion.duration.loop.standard}\n ${dt} infinite`},"shimmer_base"),[mt,gt]=ut({backgroundColor:ve.color.structure.shimmerInverse,backgroundImage:`linear-gradient(\n to right,\n ${ve.color.structure.shimmerInverse} 0%,\n ${ve.color.structure.sheen} 50%,\n ${ve.color.structure.shimmerInverse} 100%\n )`},"shimmer_inverse"),[yt,vt]=ut({borderRadius:ve.border.radius.lg,width:"100%",height:"100%"},"shimmer_default");he.endFileScope();var bt=["as","isInverse","className","hasStyleDefaults","children"],wt=function(e){var t=e.as,r=void 0===t?"div":t,n=e.isInverse,a=e.className,o=e.hasStyleDefaults,i=void 0===o||o,l=e.children,s=ye(e,bt),c=Ke(ft,n&&mt,i&&yt,a);return fe().createElement(r,ge({className:c},s,{"data-ppui":"true"}),fe().createElement(ct,{as:"span","data-ppui":"true"},l))};function xt(e,t){return[(0,me.style)(e,t),e]}he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text");const kt=e=>`${e}, "Helvetica Neue", Arial, sans-serif`,St=(0,me.style)({margin:0,padding:0},"text_override_default"),[_t,Et]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.body.family),fontSize:ve.typography.body.size,lineHeight:ve.typography.body.lineHeight,fontWeight:ve.typography.body.weight,letterSpacing:ve.typography.body.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.body.size}, calc(${ve.typography.body.size}*${ve.typography.body.maxScaleFactor}))`,lineHeight:`min(${ve.typography.body.lineHeight}, calc(${ve.typography.body.lineHeight}*${ve.typography.body.maxScaleFactor}))`}}},"text-body"),[Ct,$t]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.bodyMedium.family),fontSize:ve.typography.bodyMedium.size,lineHeight:ve.typography.bodyMedium.lineHeight,fontWeight:ve.typography.bodyMedium.weight,letterSpacing:ve.typography.bodyMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.bodyMedium.size}, calc(${ve.typography.bodyMedium.size}*${ve.typography.bodyMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.bodyMedium.lineHeight}, calc(${ve.typography.bodyMedium.lineHeight}*${ve.typography.bodyMedium.maxScaleFactor}))`}}},"text-body_medium"),[At,Tt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.bodyStrong.family),fontSize:ve.typography.bodyStrong.size,lineHeight:ve.typography.bodyStrong.lineHeight,fontWeight:ve.typography.bodyStrong.weight,letterSpacing:ve.typography.bodyStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.bodyStrong.size}, calc(${ve.typography.bodyStrong.size}*${ve.typography.bodyStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.bodyStrong.lineHeight}, calc(${ve.typography.bodyStrong.lineHeight}*${ve.typography.bodyStrong.maxScaleFactor}))`}}},"text-body_strong"),[Ot,Pt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.caption.family),fontSize:ve.typography.caption.size,lineHeight:ve.typography.caption.lineHeight,fontWeight:ve.typography.caption.weight,letterSpacing:ve.typography.caption.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.caption.size}, calc(${ve.typography.caption.size}*${ve.typography.caption.maxScaleFactor}))`,lineHeight:`min(${ve.typography.caption.lineHeight}, calc(${ve.typography.caption.lineHeight}*${ve.typography.caption.maxScaleFactor}))`}}},"text-caption"),[Ft,Rt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.captionMedium.family),fontSize:ve.typography.captionMedium.size,lineHeight:ve.typography.captionMedium.lineHeight,fontWeight:ve.typography.captionMedium.weight,letterSpacing:ve.typography.captionMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.captionMedium.size}, calc(${ve.typography.captionMedium.size}*${ve.typography.captionMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.captionMedium.lineHeight}, calc(${ve.typography.captionMedium.lineHeight}*${ve.typography.captionMedium.maxScaleFactor}))`}}},"text-caption_medium"),[zt,Lt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.captionStrong.family),fontSize:ve.typography.captionStrong.size,lineHeight:ve.typography.captionStrong.lineHeight,fontWeight:ve.typography.captionStrong.weight,letterSpacing:ve.typography.captionStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.captionStrong.size}, calc(${ve.typography.captionStrong.size}*${ve.typography.captionStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.captionStrong.lineHeight}, calc(${ve.typography.captionStrong.lineHeight}*${ve.typography.captionStrong.maxScaleFactor}))`}}},"text-caption_strong"),[Nt,It]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.linkLg.family),fontSize:ve.typography.linkLg.size,lineHeight:ve.typography.linkLg.lineHeight,fontWeight:ve.typography.linkLg.weight,letterSpacing:ve.typography.linkLg.letterSpacing,textDecoration:ve.typography.linkLg.underline?"underline":"none","@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.linkLg.size}, calc(${ve.typography.linkLg.size}*${ve.typography.linkLg.maxScaleFactor}))`,lineHeight:`min(${ve.typography.linkLg.lineHeight}, calc(${ve.typography.linkLg.lineHeight}*${ve.typography.linkLg.maxScaleFactor}))`}}},"text-link_lg"),[Mt,Dt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.linkSm.family),fontSize:ve.typography.linkSm.size,lineHeight:ve.typography.linkSm.lineHeight,fontWeight:ve.typography.linkSm.weight,letterSpacing:ve.typography.linkSm.letterSpacing,textDecoration:ve.typography.linkSm.underline?"underline":"none","@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.linkSm.size}, calc(${ve.typography.linkSm.size}*${ve.typography.linkSm.maxScaleFactor}))`,lineHeight:`min(${ve.typography.linkSm.lineHeight}, calc(${ve.typography.linkSm.lineHeight}*${ve.typography.linkSm.maxScaleFactor}))`}}},"text-link_sm"),[jt,Ht]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.tag.family),fontSize:ve.typography.tag.size,lineHeight:ve.typography.tag.lineHeight,fontWeight:ve.typography.tag.weight,letterSpacing:ve.typography.tag.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.tag.size}, calc(${ve.typography.tag.size}*${ve.typography.tag.maxScaleFactor}))`,lineHeight:`min(${ve.typography.tag.lineHeight}, calc(${ve.typography.tag.lineHeight}*${ve.typography.tag.maxScaleFactor}))`}}},"text-tag"),[Bt,Vt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.tagMedium.family),fontSize:ve.typography.tagMedium.size,lineHeight:ve.typography.tagMedium.lineHeight,fontWeight:ve.typography.tagMedium.weight,letterSpacing:ve.typography.tagMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.tagMedium.size}, calc(${ve.typography.tagMedium.size}*${ve.typography.tagMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.tagMedium.lineHeight}, calc(${ve.typography.tagMedium.lineHeight}*${ve.typography.tagMedium.maxScaleFactor}))`}}},"text-tag_medium"),[Wt,Ut]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.tagStrong.family),fontSize:ve.typography.tagStrong.size,lineHeight:ve.typography.tagStrong.lineHeight,fontWeight:ve.typography.tagStrong.weight,letterSpacing:ve.typography.tagStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.tagStrong.size}, calc(${ve.typography.tagStrong.size}*${ve.typography.tagStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.tagStrong.lineHeight}, calc(${ve.typography.tagStrong.lineHeight}*${ve.typography.tagStrong.maxScaleFactor}))`}}},"text-tag_strong"),[Gt,qt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.dataViz.family),fontSize:ve.typography.dataViz.size,lineHeight:ve.typography.dataViz.lineHeight,fontWeight:ve.typography.dataViz.weight,letterSpacing:ve.typography.dataViz.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.dataViz.size}, calc(${ve.typography.dataViz.size}*${ve.typography.dataViz.maxScaleFactor}))`,lineHeight:`min(${ve.typography.dataViz.lineHeight}, calc(${ve.typography.dataViz.lineHeight}*${ve.typography.dataViz.maxScaleFactor}))`}}},"text-data_viz"),[Kt,Yt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.dataVizMedium.family),fontSize:ve.typography.dataVizMedium.size,lineHeight:ve.typography.dataVizMedium.lineHeight,fontWeight:ve.typography.dataVizMedium.weight,letterSpacing:ve.typography.dataVizMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.dataVizMedium.size}, calc(${ve.typography.dataVizMedium.size}*${ve.typography.dataVizMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.dataVizMedium.lineHeight}, calc(${ve.typography.dataVizMedium.lineHeight}*${ve.typography.dataVizMedium.maxScaleFactor}))`}}},"text-data_viz_medium"),[Xt,Qt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.dataVizStrong.family),fontSize:ve.typography.dataVizStrong.size,lineHeight:ve.typography.dataVizStrong.lineHeight,fontWeight:ve.typography.dataVizStrong.weight,letterSpacing:ve.typography.dataVizStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.dataVizStrong.size}, calc(${ve.typography.dataVizStrong.size}*${ve.typography.dataVizStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.dataVizStrong.lineHeight}, calc(${ve.typography.dataVizStrong.lineHeight}*${ve.typography.dataVizStrong.maxScaleFactor}))`}}},"text-data_viz_strong"),[Zt,Jt]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.title.family),fontSize:ve.typography.title.size,lineHeight:ve.typography.title.lineHeight,fontWeight:ve.typography.title.weight,letterSpacing:ve.typography.title.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.title.size}, calc(${ve.typography.title.size}*${ve.typography.title.maxScaleFactor}))`,lineHeight:`min(${ve.typography.title.lineHeight}, calc(${ve.typography.title.lineHeight}*${ve.typography.title.maxScaleFactor}))`}}},"text-title"),[er,tr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.titleMedium.family),fontSize:ve.typography.titleMedium.size,lineHeight:ve.typography.titleMedium.lineHeight,fontWeight:ve.typography.titleMedium.weight,letterSpacing:ve.typography.titleMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.titleMedium.size}, calc(${ve.typography.titleMedium.size}*${ve.typography.titleMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.titleMedium.lineHeight}, calc(${ve.typography.titleMedium.lineHeight}*${ve.typography.titleMedium.maxScaleFactor}))`}}},"text-title_medium"),[rr,nr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.titleStrong.family),fontSize:ve.typography.titleStrong.size,lineHeight:ve.typography.titleStrong.lineHeight,fontWeight:ve.typography.titleStrong.weight,letterSpacing:ve.typography.titleStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.titleStrong.size}, calc(${ve.typography.titleStrong.size}*${ve.typography.titleStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.titleStrong.lineHeight}, calc(${ve.typography.titleStrong.lineHeight}*${ve.typography.titleStrong.maxScaleFactor}))`}}},"text-title_strong"),[ar,or]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.headingSm.family),fontSize:ve.typography.headingSm.size,lineHeight:ve.typography.headingSm.lineHeight,fontWeight:ve.typography.headingSm.weight,letterSpacing:ve.typography.headingSm.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.headingSm.size}, calc(${ve.typography.headingSm.size}*${ve.typography.headingSm.maxScaleFactor}))`,lineHeight:`min(${ve.typography.headingSm.lineHeight}, calc(${ve.typography.headingSm.lineHeight}*${ve.typography.headingSm.maxScaleFactor}))`}}},"text-heading_sm"),[ir,lr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.headingSmMedium.family),fontSize:ve.typography.headingSmMedium.size,lineHeight:ve.typography.headingSmMedium.lineHeight,fontWeight:ve.typography.headingSmMedium.weight,letterSpacing:ve.typography.headingSmMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.headingSmMedium.size}, calc(${ve.typography.headingSmMedium.size}*${ve.typography.headingSmMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.headingSmMedium.lineHeight}, calc(${ve.typography.headingSmMedium.lineHeight}*${ve.typography.headingSmMedium.maxScaleFactor}))`}}},"text-heading_sm_medium"),[sr,cr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.headingSmStrong.family),fontSize:ve.typography.headingSmStrong.size,lineHeight:ve.typography.headingSmStrong.lineHeight,fontWeight:ve.typography.headingSmStrong.weight,letterSpacing:ve.typography.headingSmStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.headingSmStrong.size}, calc(${ve.typography.headingSmStrong.size}*${ve.typography.headingSmStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.headingSmStrong.lineHeight}, calc(${ve.typography.headingSmStrong.lineHeight}*${ve.typography.headingSmStrong.maxScaleFactor}))`}}},"text-heading_sm_strong"),[ur,dr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.headingLgStrong.family),fontSize:ve.typography.headingLgStrong.size,lineHeight:ve.typography.headingLgStrong.lineHeight,fontWeight:ve.typography.headingLgStrong.weight,letterSpacing:ve.typography.headingLgStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.headingLgStrong.size}, calc(${ve.typography.headingLgStrong.size}*${ve.typography.headingLgStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.headingLgStrong.lineHeight}, calc(${ve.typography.headingLgStrong.lineHeight}*${ve.typography.headingLgStrong.maxScaleFactor}))`}}},"text-heading_lg_strong"),[pr,fr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.headingLgMedium.family),fontSize:ve.typography.headingLgMedium.size,lineHeight:ve.typography.headingLgMedium.lineHeight,fontWeight:ve.typography.headingLgMedium.weight,letterSpacing:ve.typography.headingLgMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.headingLgMedium.size}, calc(${ve.typography.headingLgMedium.size}*${ve.typography.headingLgMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.headingLgMedium.lineHeight}, calc(${ve.typography.headingLgMedium.lineHeight}*${ve.typography.headingLgMedium.maxScaleFactor}))`}}},"text-heading_lg_medium"),[hr,mr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.headingLg.family),fontSize:ve.typography.headingLg.size,lineHeight:ve.typography.headingLg.lineHeight,fontWeight:ve.typography.headingLg.weight,letterSpacing:ve.typography.headingLg.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.headingLg.size}, calc(${ve.typography.headingLg.size}*${ve.typography.headingLg.maxScaleFactor}))`,lineHeight:`min(${ve.typography.headingLg.lineHeight}, calc(${ve.typography.headingLg.lineHeight}*${ve.typography.headingLg.maxScaleFactor}))`}}},"text-heading_lg"),[gr,yr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.display.family),fontSize:ve.typography.display.size,lineHeight:ve.typography.display.lineHeight,fontWeight:ve.typography.display.weight,letterSpacing:ve.typography.display.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.display.size}, calc(${ve.typography.display.size}*${ve.typography.display.maxScaleFactor}))`,lineHeight:`min(${ve.typography.display.lineHeight}, calc(${ve.typography.display.lineHeight}*${ve.typography.display.maxScaleFactor}))`}}},"text-display"),[vr,br]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.displayMedium.family),fontSize:ve.typography.displayMedium.size,lineHeight:ve.typography.displayMedium.lineHeight,fontWeight:ve.typography.displayMedium.weight,letterSpacing:ve.typography.displayMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.displayMedium.size}, calc(${ve.typography.displayMedium.size}*${ve.typography.displayMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.displayMedium.lineHeight}, calc(${ve.typography.displayMedium.lineHeight}*${ve.typography.displayMedium.maxScaleFactor}))`}}},"text-display_medium"),[wr,xr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.displayStrong.family),fontSize:ve.typography.displayStrong.size,lineHeight:ve.typography.displayStrong.lineHeight,fontWeight:ve.typography.displayStrong.weight,letterSpacing:ve.typography.displayStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.displayStrong.size}, calc(${ve.typography.displayStrong.size}*${ve.typography.displayStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.displayStrong.lineHeight}, calc(${ve.typography.displayStrong.lineHeight}*${ve.typography.displayStrong.maxScaleFactor}))`}}},"text-display_strong"),[kr,Sr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.displaySm.family),fontSize:ve.typography.displaySm.size,lineHeight:ve.typography.displaySm.lineHeight,fontWeight:ve.typography.displaySm.weight,letterSpacing:ve.typography.displaySm.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.displaySm.size}, calc(${ve.typography.displaySm.size}*${ve.typography.displaySm.maxScaleFactor}))`,lineHeight:`min(${ve.typography.displaySm.lineHeight}, calc(${ve.typography.displaySm.lineHeight}*${ve.typography.displaySm.maxScaleFactor}))`}}},"text-display_sm"),[_r,Er]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.displaySmMedium.family),fontSize:ve.typography.displaySmMedium.size,lineHeight:ve.typography.displaySmMedium.lineHeight,fontWeight:ve.typography.displaySmMedium.weight,letterSpacing:ve.typography.displaySmMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.displaySmMedium.size}, calc(${ve.typography.displaySmMedium.size}*${ve.typography.displaySmMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.displaySmMedium.lineHeight}, calc(${ve.typography.displaySmMedium.lineHeight}*${ve.typography.displaySmMedium.maxScaleFactor}))`}}},"text-display_sm_medium"),[Cr,$r]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.displaySmStrong.family),fontSize:ve.typography.displaySmStrong.size,lineHeight:ve.typography.displaySmStrong.lineHeight,fontWeight:ve.typography.displaySmStrong.weight,letterSpacing:ve.typography.displaySmStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.displaySmStrong.size}, calc(${ve.typography.displaySmStrong.size}*${ve.typography.displaySmStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.displaySmStrong.lineHeight}, calc(${ve.typography.displaySmStrong.lineHeight}*${ve.typography.displaySmStrong.maxScaleFactor}))`}}},"text-display_sm_strong"),[Ar,Tr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.legal.family),fontSize:ve.typography.legal.size,lineHeight:ve.typography.legal.lineHeight,fontWeight:ve.typography.legal.weight,letterSpacing:ve.typography.legal.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.legal.size}, calc(${ve.typography.legal.size}*${ve.typography.legal.maxScaleFactor}))`,lineHeight:`min(${ve.typography.legal.lineHeight}, calc(${ve.typography.legal.lineHeight}*${ve.typography.legal.maxScaleFactor}))`}}},"text-legal"),[Or,Pr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.legalMedium.family),fontSize:ve.typography.legalMedium.size,lineHeight:ve.typography.legalMedium.lineHeight,fontWeight:ve.typography.legalMedium.weight,letterSpacing:ve.typography.legalMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.legalMedium.size}, calc(${ve.typography.legalMedium.size}*${ve.typography.legalMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.legalMedium.lineHeight}, calc(${ve.typography.legalMedium.lineHeight}*${ve.typography.legalMedium.maxScaleFactor}))`}}},"text-legal_medium"),[Fr,Rr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.legalStrong.family),fontSize:ve.typography.legalStrong.size,lineHeight:ve.typography.legalStrong.lineHeight,fontWeight:ve.typography.legalStrong.weight,letterSpacing:ve.typography.legalStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.legalStrong.size}, calc(${ve.typography.legalStrong.size}*${ve.typography.legalStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.legalStrong.lineHeight}, calc(${ve.typography.legalStrong.lineHeight}*${ve.typography.legalStrong.maxScaleFactor}))`}}},"text-legal_strong"),[zr,Lr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.navigationBar.family),fontSize:ve.typography.navigationBar.size,lineHeight:ve.typography.navigationBar.lineHeight,fontWeight:ve.typography.navigationBar.weight,letterSpacing:ve.typography.navigationBar.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.navigationBar.size}, calc(${ve.typography.navigationBar.size}*${ve.typography.navigationBar.maxScaleFactor}))`,lineHeight:`min(${ve.typography.navigationBar.lineHeight}, calc(${ve.typography.navigationBar.lineHeight}*${ve.typography.navigationBar.maxScaleFactor}))`}}},"text-navigation_bar"),[Nr,Ir]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.navigationBarMedium.family),fontSize:ve.typography.navigationBarMedium.size,lineHeight:ve.typography.navigationBarMedium.lineHeight,fontWeight:ve.typography.navigationBarMedium.weight,letterSpacing:ve.typography.navigationBarMedium.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.navigationBarMedium.size}, calc(${ve.typography.navigationBarMedium.size}*${ve.typography.navigationBarMedium.maxScaleFactor}))`,lineHeight:`min(${ve.typography.navigationBarMedium.lineHeight}, calc(${ve.typography.navigationBarMedium.lineHeight}*${ve.typography.navigationBarMedium.maxScaleFactor}))`}}},"text-navigation_bar_medium"),[Mr,Dr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.navigationBarStrong.family),fontSize:ve.typography.navigationBarStrong.size,lineHeight:ve.typography.navigationBarStrong.lineHeight,fontWeight:ve.typography.navigationBarStrong.weight,letterSpacing:ve.typography.navigationBarStrong.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.navigationBarStrong.size}, calc(${ve.typography.navigationBarStrong.size}*${ve.typography.navigationBarStrong.maxScaleFactor}))`,lineHeight:`min(${ve.typography.navigationBarStrong.lineHeight}, calc(${ve.typography.navigationBarStrong.lineHeight}*${ve.typography.navigationBarStrong.maxScaleFactor}))`}}},"text-navigation_bar_strong"),[jr,Hr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.buttonSm.family),fontSize:ve.typography.buttonSm.size,lineHeight:ve.typography.buttonSm.lineHeight,fontWeight:ve.typography.buttonSm.weight,letterSpacing:ve.typography.buttonSm.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.buttonSm.size}, calc(${ve.typography.buttonSm.size}*${ve.typography.buttonSm.maxScaleFactor}))`,lineHeight:`min(${ve.typography.buttonSm.lineHeight}, calc(${ve.typography.buttonSm.lineHeight}*${ve.typography.buttonSm.maxScaleFactor}))`}}},"text-button_sm"),[Br,Vr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.buttonLg.family),fontSize:ve.typography.buttonLg.size,lineHeight:ve.typography.buttonLg.lineHeight,fontWeight:ve.typography.buttonLg.weight,letterSpacing:ve.typography.buttonLg.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.buttonLg.size}, calc(${ve.typography.buttonLg.size}*${ve.typography.buttonLg.maxScaleFactor}))`,lineHeight:`min(${ve.typography.buttonLg.lineHeight}, calc(${ve.typography.buttonLg.lineHeight}*${ve.typography.buttonLg.maxScaleFactor}))`}}},"text-button_lg"),[Wr,Ur]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.mediumContrast),fontFamily:kt(ve.typography.fieldLabelSm.family),fontSize:ve.typography.fieldLabelSm.size,lineHeight:ve.typography.fieldLabelSm.lineHeight,fontWeight:ve.typography.fieldLabelSm.weight,letterSpacing:ve.typography.fieldLabelSm.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.fieldLabelSm.size}, calc(${ve.typography.fieldLabelSm.size}*${ve.typography.fieldLabelSm.maxScaleFactor}))`,lineHeight:`min(${ve.typography.fieldLabelSm.lineHeight}, calc(${ve.typography.fieldLabelSm.lineHeight}*${ve.typography.fieldLabelSm.maxScaleFactor}))`}}},"text-fieldLabel_sm"),[Gr,qr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.mediumContrast),fontFamily:kt(ve.typography.fieldLabelLg.family),fontSize:ve.typography.fieldLabelLg.size,lineHeight:ve.typography.fieldLabelLg.lineHeight,fontWeight:ve.typography.fieldLabelLg.weight,letterSpacing:ve.typography.fieldLabelLg.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.fieldLabelLg.size}, calc(${ve.typography.fieldLabelLg.size}*${ve.typography.fieldLabelLg.maxScaleFactor}))`,lineHeight:`min(${ve.typography.fieldLabelLg.lineHeight}, calc(${ve.typography.fieldLabelLg.lineHeight}*${ve.typography.fieldLabelLg.maxScaleFactor}))`}}},"text-fieldLabel_lg"),[Kr,Yr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.fieldValueSm.family),fontSize:ve.typography.fieldValueSm.size,lineHeight:ve.typography.fieldValueSm.lineHeight,fontWeight:ve.typography.fieldValueSm.weight,letterSpacing:ve.typography.fieldValueSm.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.fieldValueSm.size}, calc(${ve.typography.fieldValueSm.size}*${ve.typography.fieldValueSm.maxScaleFactor}))`,lineHeight:`min(${ve.typography.fieldValueSm.lineHeight}, calc(${ve.typography.fieldValueSm.lineHeight}*${ve.typography.fieldValueSm.maxScaleFactor}))`}}},"text-fieldValue_sm"),[Xr,Qr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.fieldValueLg.family),fontSize:ve.typography.fieldValueLg.size,lineHeight:ve.typography.fieldValueLg.lineHeight,fontWeight:ve.typography.fieldValueLg.weight,letterSpacing:ve.typography.fieldValueLg.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.fieldValueLg.size}, calc(${ve.typography.fieldValueLg.size}*${ve.typography.fieldValueLg.maxScaleFactor}))`,lineHeight:`min(${ve.typography.fieldValueLg.lineHeight}, calc(${ve.typography.fieldValueLg.lineHeight}*${ve.typography.fieldValueLg.maxScaleFactor}))`}}},"text-fieldValue_lg"),[Zr,Jr]=xt({color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast),fontFamily:kt(ve.typography.fieldValueXl.family),fontSize:ve.typography.fieldValueXl.size,lineHeight:ve.typography.fieldValueXl.lineHeight,fontWeight:ve.typography.fieldValueXl.weight,letterSpacing:ve.typography.fieldValueXl.letterSpacing,"@media":{[`screen and (max-width: ${_e})`]:{fontSize:`min(${ve.typography.fieldValueXl.size}, calc(${ve.typography.fieldValueXl.size}*${ve.typography.fieldValueXl.maxScaleFactor}))`,lineHeight:`min(${ve.typography.fieldValueXl.lineHeight}, calc(${ve.typography.fieldValueXl.lineHeight}*${ve.typography.fieldValueXl.maxScaleFactor}))`}}},"text-fieldValue_xl"),[en,tn]=xt({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:1},"text-clamp_line_1"),[rn,nn]=xt({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:2},"text-clamp_line_2"),[an,on]=xt({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:3},"text-clamp_line_3"),[ln,sn]=xt({display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:4},"text-clamp_line_4"),[cn,un]=xt({...vt,height:ve.typography.display.lineHeight},"text-shimmer_display_lg"),[dn,pn]=xt({...vt,height:ve.typography.displayStrong.lineHeight},"text-shimmer_display_lg_strong"),[fn,hn]=xt({...vt,height:ve.typography.displayMedium.lineHeight},"text-shimmer_display_lg_medium"),[mn,gn]=xt({...vt,height:ve.typography.displaySm.lineHeight},"text-shimmer_display_sm"),[yn,vn]=xt({...vt,height:ve.typography.displaySmStrong.lineHeight},"text-shimmer_display_sm_strong"),[bn,wn]=xt({...vt,height:ve.typography.displaySmMedium.lineHeight},"text-shimmer_display_sm_medium"),[xn,kn]=xt({...vt,height:ve.typography.headingLg.lineHeight},"text-shimer_heading_lg"),[Sn,_n]=xt({...vt,height:ve.typography.headingLgStrong.lineHeight},"text-shimer_heading_lg_strong"),[En,Cn]=xt({...vt,height:ve.typography.headingLgMedium.lineHeight},"text-shimer_heading_lg_medium"),[$n,An]=xt({...vt,height:ve.typography.headingSm.lineHeight},"text-shimmer_heading_sm"),[Tn,On]=xt({...vt,height:ve.typography.headingSmStrong.lineHeight},"text-shimmer_heading_sm_strong"),[Pn,Fn]=xt({...vt,height:ve.typography.headingSmMedium.lineHeight},"text-shimmer_heading_sm_medium"),[Rn,zn]=xt({...vt,height:ve.typography.body.lineHeight},"text-shimmer_body"),[Ln,Nn]=xt({...vt,height:ve.typography.bodyStrong.lineHeight},"text-shimmer_body_strong"),[In,Mn]=xt({...vt,height:ve.typography.bodyMedium.lineHeight},"text-shimmer_body_medium"),[Dn,jn]=xt({...vt,height:ve.typography.caption.lineHeight},"text-shimmer_caption"),[Hn,Bn]=xt({...vt,height:ve.typography.captionStrong.lineHeight},"text-shimmer_caption_strong"),[Vn,Wn]=xt({...vt,height:ve.typography.captionMedium.lineHeight},"text-shimmer_caption_medium"),[Un,Gn]=xt({...vt,height:ve.typography.title.lineHeight},"text-shimmer_title"),[qn,Kn]=xt({...vt,height:ve.typography.titleStrong.lineHeight},"text-shimmer_title_strong"),[Yn,Xn]=xt({...vt,height:ve.typography.titleMedium.lineHeight},"text-shimmer_title_medium");he.endFileScope();var Qn=["size","as","type","className","isLoading","isInverse","children"],Zn=function(e){var t=e.size,r=void 0===t?"lg":t,n=e.as,a=e.type,o=void 0===a?"regular":a,i=e.className,l=e.isLoading,s=e.isInverse,c=e.children,u=ye(e,Qn),d={sm:{strong:sr,medium:ir,regular:ar},lg:{strong:ur,medium:pr,regular:hr}},p={sm:{strong:Tn,medium:Pn,regular:$n},lg:{strong:Sn,medium:En,regular:xn}};if(l)return fe().createElement(wt,ge({className:Ke(p[r][o],!n&&St,i),hasStyleDefaults:!1,isInverse:s},u,{"data-ppui":"true"}),c);var f=Ke(d[r][o],!n&&St,i),h="lg"===r?"h2":"h3";return fe().createElement(n||h,ge({className:f,"data-ppui-info":"heading-text_7.2.2__8.12.0"},u),c)},Jn=["as","type","className","isLoading","isInverse","clampAtLine","children"],ea=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.className,o=e.isLoading,i=e.isInverse,l=e.clampAtLine,s=e.children,c=ye(e,Jn);if(o){var u=Ke({strong:Ln,medium:In,regular:Rn}[n],!t&&St,a);return fe().createElement(wt,ge({className:u,hasStyleDefaults:!1,isInverse:i},c,{"data-ppui":"true"}),s)}var d=Ke({strong:At,medium:Ct,regular:_t}[n],!t&&St,1===l&&en,2===l&&rn,3===l&&an,4===l&&ln,a);return fe().createElement(t||"p",ge({className:d,"data-ppui-info":"body-text_7.2.2__8.12.0"},c),s)},ta=["as","type","clampAtLine","className","isLoading","isInverse","children"],ra=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.clampAtLine,o=e.className,i=e.isLoading,l=e.isInverse,s=e.children,c=ye(e,ta),u={strong:Hn,medium:Vn,regular:Dn};if(i)return fe().createElement(wt,ge({className:Ke(u[n],!t&&St,o),hasStyleDefaults:!1,isInverse:l},c,{"data-ppui":"true"}),s);var d=Ke({strong:zt,medium:Ft,regular:Ot}[n],!t&&St,1===a&&en,2===a&&rn,3===a&&an,4===a&&ln,o);return fe().createElement(t||"p",ge({className:d,"data-ppui-info":"caption-text_7.2.2__8.12.0"},c),s)},na=["as","type","className","isLoading","isInverse","children"],aa=function(e){var t=e.as,r=e.type,n=void 0===r?"regular":r,a=e.className,o=e.isLoading,i=e.isInverse,l=e.children,s=ye(e,na),c={strong:qn,medium:Yn,regular:Un};if(o)return fe().createElement(wt,ge({className:Ke(c[n],!t&&St,a),hasStyleDefaults:!1,isInverse:i},s,{"data-ppui":"true"}),l);var u=Ke({strong:rr,medium:er,regular:Zt}[n],!t&&St,a);return fe().createElement(t||"h4",ge({className:u,"data-ppui-info":"title-text_7.2.2__8.12.0"},s),l)};function oa(e,t){return[(0,me.style)(e,t),e]}he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-utils");const ia={ppuiEaseInOut:`cubic-bezier(${ve.motion.timing.x1},${ve.motion.timing.y1}, ${ve.motion.timing.x2},${ve.motion.timing.y2})`,ppuiEaseLoopStandard:`cubic-bezier(${ve.motion.easing.loop.standard})`,ppuiEaseEnterSmall:`cubic-bezier(${ve.motion.easing.enter.small})`,ppuiEaseExitSmall:`cubic-bezier(${ve.motion.easing.exit.small})`,ppuiEaseMoveSmall:`cubic-bezier(${ve.motion.easing.move.small})`},[la,sa]=oa({animationTimingFunction:ia.ppuiEaseInOut},"motion_animation"),[ca,ua]=oa({transitionTimingFunction:ia.ppuiEaseInOut},"motion_transition"),[da,pa]=oa({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"ellipsis"),fa=(0,me.keyframes)({"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide_right"),ha=(0,me.keyframes)({"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},"slide_left");function ma(e,t){return[(0,me.style)(e,t),e]}he.endFileScope(),he.setFileScope("src/focusStyles.css.ts","@paypalcorp/pp-react-utils");const ga=`calc(${ve.border.thickness.normal} + ${ve.border.thickness.emphasis})`,ya=`calc(2*${ga})`,va=ve.color.structure.focusOutline,ba=`calc(${ve.border.thickness.normal} * 2)`,wa=`calc(${ve.border.thickness.normal} * 2)`,xa=`calc(${ga} + ${ga})`,ka=`calc(${ve.border.thickness.emphasis} + ${ve.border.thickness.normal})`,[Sa,_a]=ma({content:"",position:"absolute",top:0,left:0,right:0,border:"none",boxShadow:`0 0 0 ${ya} ${va}`,borderRadius:"inherit",width:"100%",height:"100%",pointerEvents:"none"},"focus_after"),[Ea,Ca]=ma({content:"",position:"absolute",top:ve.border.thickness.normal,left:ve.border.thickness.normal,border:`${ga} solid ${ve.color.structure.focus}`,boxShadow:`0 0 0 ${ya} ${va}`,borderRadius:"inherit",textIndent:ve.border.thickness.normal,width:`calc(100% - ${ba})`,height:`calc(100% - ${wa})`,pointerEvents:"none"},"offset_focus_after"),[$a,Aa]=ma({boxShadow:`0 0 0 ${ga} ${ve.color.structure.focus},\n 0 0 0 ${xa} ${ve.color.structure.focusOutline}`,outline:`${ga} solid transparent`,borderRadius:"inherit"},"focus_inline"),[Ta,Oa]=ma({outline:`${ve.border.thickness.emphasis} solid ${ve.color.structure.focus}`,boxShadow:`0 0 0 ${ve.border.thickness.emphasis} ${ve.color.background.surface}`,outlineOffset:ve.border.thickness.emphasis},"focus_offset_element"),[Pa,Fa]=ma({boxShadow:`0 0 0 ${ka} inset ${ve.color.structure.focus}`},"focus_inline_element");he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-accordion");const{ppuiEaseMoveSmall:Ra}=ia,za=(0,me.style)({...Et,color:ve.color.background.highContrast},"accordion_bodyText"),La=(0,me.style)({...Pt,color:ve.color.background.highContrast},"accordion_captionText"),Na=(0,me.style)({...Jt,color:ve.color.background.highContrast},"accordion_headingText"),Ia=(0,me.style)({...Tt,color:ve.color.background.highContrast},"accordion_titleText"),Ma=((0,me.style)({width:"100%",borderCollapse:"collapse",backgroundColor:ve.color.background.surface,borderRadius:ve.border.radius.xl},"accordion_base"),(0,me.style)({border:"none"},"accordion_row"),(0,me.style)([za,{textAlign:"start",maxHeight:0,overflowY:"hidden",transition:`max-height ${ve.motion.duration.move.small} ${Ra}`}],"accordion_body"));(0,me.style)([La],"accordion_body_small"),(0,me.style)({maxHeight:"125rem"},"body_open"),(0,me.globalStyle)(`${Ma} p`,{margin:0}),(0,me.style)({padding:`${ve.space[50]} ${ve.space[200]} ${ve.space[200]}`},"accordion_inner_body");const Da=(0,me.style)({cursor:"pointer",minHeight:"4rem",wordBreak:"break-word",padding:ve.space[200],paddingInlineEnd:ve.space[600],position:"relative",background:"none",border:"none",width:"100%",display:"flex",justifyContent:"center",flexDirection:"column",textAlign:"start",":focus":Fa},"accordion_header");(0,me.style)([Da,Ia],"accordion_header_small"),(0,me.style)([Da,Na],"accordion_header_large"),(0,me.style)({color:ve.color.background.mediumContrast,paddingTop:ve.space[50]},"accordion_subheader"),(0,me.style)({color:ve.color.background.mediumContrast,position:"absolute",right:ve.space[200],transition:`transform ${ve.motion.duration.move.small} ${Ra}`,selectors:{"[dir=rtl] &":{left:ve.space[200],right:"auto"}}},"accordion_svg_icon"),(0,me.style)({transform:"rotate(180deg)"},"accordion_icon_rotate"),he.endFileScope();var ja=fe().createContext(null);function Ha(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 Ba(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ha(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Va=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 o=e.type,i=e.value;switch(o){case"currencySymbol":case"currency":0===a?r=i:n=i;break;case"group":t.thousandsSeparator=i;break;case"fraction":t.scale=i.length;break;case"decimal":t.radix=i}})),{intlMaskOptions:t,intlCurrencyPrefix:r,intlCurrencySuffix:n}}(n.formatToParts(1e3)),o=a.intlMaskOptions,i=a.intlCurrencyPrefix,l=a.intlCurrencySuffix;return 0===n.resolvedOptions().maximumFractionDigits&&(o.padFractionalZeros=!1,o.scale=0),{currencyMaskOptions:Ba(Ba({padFractionalZeros:!0},o),t),intlCurrencyPrefix:i,intlCurrencySuffix:l}}return{currencyMaskOptions:t}};he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-icons");const Wa={sysColorBackgroundMain:ve.color.background.main,sysColorBackgroundAlt:ve.color.background.alt,sysColorBackgroundSurface:ve.color.background.surface,sysColorBackgroundSurfaceHover:ve.color.background.surfaceHover,sysColorBackgroundSurfaceActive:ve.color.background.surfaceActive,sysColorBackgroundHighContrast:ve.color.background.highContrast,sysColorBackgroundMediumContrast:ve.color.background.mediumContrast,sysColorPrimaryMain:ve.color.primary.main,sysColorPrimaryMainHover:ve.color.primary.mainHover,sysColorPrimaryMainActive:ve.color.primary.mainActive,sysColorPrimaryContrast:ve.color.primary.contrast,sysColorPrimaryContrastHover:ve.color.primary.contrastHover,sysColorPrimaryContrastActive:ve.color.primary.contrastActive,sysColorSecondaryMain:ve.color.secondary.main,sysColorSecondaryMainHover:ve.color.secondary.mainHover,sysColorSecondaryMainActive:ve.color.secondary.mainActive,sysColorSecondaryContrast:ve.color.secondary.contrast,sysColorTertiaryMain:ve.color.tertiary.main,sysColorTertiaryMainHover:ve.color.tertiary.mainHover,sysColorTertiaryMainActive:ve.color.tertiary.mainActive,sysColorTertiaryContrast:ve.color.tertiary.contrast,sysColorFeaturedMain:ve.color.featured.main,sysColorFeaturedMainHover:ve.color.featured.mainHover,sysColorFeaturedMainActive:ve.color.featured.mainActive,sysColorFeaturedContrast:ve.color.featured.contrast,sysColorUnselectedMain:ve.color.unselected.main,sysColorUnselectedMainHover:ve.color.unselected.mainHover,sysColorUnselectedMainActive:ve.color.unselected.mainActive,sysColorUnselectedContrast:ve.color.unselected.contrast,sysColorSelectedMain:ve.color.selected.main,sysColorSelectedMainHover:ve.color.selected.mainHover,sysColorSelectedMainActive:ve.color.selected.mainActive,sysColorSelectedContrast:ve.color.selected.contrast,sysColorSelectedRangeMain:ve.color.selectedRange.main,sysColorSelectedRangeMainHover:ve.color.selectedRange.mainHover,sysColorSelectedRangeMainActive:ve.color.selectedRange.mainActive,sysColorSelectedRangeContrast:ve.color.selectedRange.contrast,sysColorLinkMain:ve.color.link.main,sysColorLinkMainHover:ve.color.link.mainHover,sysColorLinkMainActive:ve.color.link.mainActive,sysColorLinkAlt:ve.color.link.alt,sysColorLinkAltHover:ve.color.link.altHover,sysColorLinkAltActive:ve.color.link.altActive,sysColorLinkContrast:ve.color.link.contrast,sysColorLinkContrastHover:ve.color.link.contrastHover,sysColorLinkContrastActive:ve.color.link.contrastActive,sysColorAccent1Main:ve.color.accent1.main,sysColorAccent1Contrast:ve.color.accent1.contrast,sysColorAccent2Main:ve.color.accent2.main,sysColorAccent2Contrast:ve.color.accent2.contrast,sysColorAccent3Main:ve.color.accent3.main,sysColorAccent3Contrast:ve.color.accent3.contrast,sysColorAccent4Main:ve.color.accent4.main,sysColorAccent4Contrast:ve.color.accent4.contrast,sysColorErrorMain:ve.color.error.main,sysColorErrorMainHover:ve.color.error.mainHover,sysColorErrorMainActive:ve.color.error.mainActive,sysColorErrorContrast:ve.color.error.contrast,sysColorWarningMain:ve.color.warning.main,sysColorWarningMainHover:ve.color.warning.mainHover,sysColorWarningMainActive:ve.color.warning.mainActive,sysColorWarningAlt:ve.color.warning.alt,sysColorWarningContrast:ve.color.warning.contrast,sysColorSuccessMain:ve.color.success.main,sysColorSuccessMainHover:ve.color.success.mainHover,sysColorSuccessMainActive:ve.color.success.mainActive,sysColorSuccessContrast:ve.color.success.contrast,sysColorSystemMain:ve.color.system.main,sysColorSystemMainHover:ve.color.system.mainHover,sysColorSystemMainActive:ve.color.system.mainActive,sysColorSystemContrast:ve.color.system.contrast,sysColorInfoMain:ve.color.info.main,sysColorInfoMainHover:ve.color.info.mainHover,sysColorInfoMainActive:ve.color.info.mainActive,sysColorInfoContrast:ve.color.info.contrast,sysColorSpecialtyMain:ve.color.specialty.main,sysColorSpecialtyMainHover:ve.color.specialty.mainHover,sysColorSpecialtyMainActive:ve.color.specialty.mainActive,sysColorSpecialtyContrast:ve.color.specialty.contrast},Ua=Wa.sysColorBackgroundHighContrast,Ga=(0,me.style)({speak:"none",aspectRatio:"1"},"icon_base"),qa=((0,me.style)({display:"inline-block",width:ve.size.icon.lg,height:ve.size.icon.lg},"icon_background_base"),(0,me.style)({width:ve.size.icon.xs,height:ve.size.icon.xs},"icon_size_xs")),Ka=(0,me.style)({width:ve.size.icon.sm,height:ve.size.icon.sm},"icon_size_sm"),Ya=(0,me.style)({width:ve.size.icon.md,height:ve.size.icon.md},"icon_size_md"),Xa=(0,me.style)({width:ve.size.icon.lg,height:ve.size.icon.lg},"icon_size_lg"),Qa=(0,me.style)({width:ve.size.icon.xl,height:ve.size.icon.xl},"icon_size_xl"),Za=(0,me.style)({speak:"none",display:"inline-block",aspectRatio:"1"},"icon_svg");(0,me.globalStyle)(`${Za} img, ${Za} svg`,{width:"100%",height:"100%",display:"block"}),he.endFileScope();var Ja=["as","size","color","className","children"],eo=function(e){var t=e.as,r=void 0===t?"span":t,n=e.size,a=void 0===n?"md":n,o=e.color,i=e.className,l=e.children,s=ye(e,Ja),c=Ke(Za,"xs"===a&&qa,"sm"===a&&Ka,"md"===a&&Ya,"lg"===a&&Xa,"xl"===a&&Qa,i);return fe().createElement(r,ge({role:"img",style:o?function(e){var t=De(e,Wa,Ua);return{color:(0,me.fallbackVar)(Oe.main,t)}}(o):null,className:c,"data-ppui-info":"icons_9.8.2__8.12.0"},s),l)},to=["svgElementRef"],ro=["svgElementRef"],no=["svgElementRef"],ao=["svgElementRef"],oo=["svgElementRef"],io=["svgElementRef"],lo=["svgElementRef"],so=["svgElementRef"],co=["svgElementRef"],uo=["svgElementRef"],po=["svgElementRef"],fo=["svgElementRef"],ho=["svgElementRef"],mo=["svgElementRef"],go=["svgElementRef"],yo=["svgElementRef"],vo=["svgElementRef"],bo=["svgElementRef"],wo=["svgElementRef"],xo=["svgElementRef"],ko=function(e){e.svgElementRef;var t=ye(e,to);return fe().createElement(eo,ge({"aria-label":"arrow down sm icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},So=function(e){e.svgElementRef;var t=ye(e,ro);return fe().createElement(eo,ge({"aria-label":"arrow up sm icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},_o=function(e){e.svgElementRef;var t=ye(e,no);return fe().createElement(eo,ge({"aria-label":"calendar icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Eo=function(e){e.svgElementRef;var t=ye(e,ao);return fe().createElement(eo,ge({"aria-label":"checkmark background icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Co=function(e){e.svgElementRef;var t=ye(e,oo);return fe().createElement(eo,ge({"aria-label":"checkmark sm icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},$o=function(e){e.svgElementRef;var t=ye(e,io);return fe().createElement(eo,ge({"aria-label":"checkmark icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ao=function(e){e.svgElementRef;var t=ye(e,lo);return fe().createElement(eo,ge({"aria-label":"chevron down icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},To=function(e){e.svgElementRef;var t=ye(e,so);return fe().createElement(eo,ge({"aria-label":"chevron right icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Oo=function(e){e.svgElementRef;var t=ye(e,co);return fe().createElement(eo,ge({"aria-label":"chevron up icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Po=function(e){e.svgElementRef;var t=ye(e,uo);return fe().createElement(eo,ge({"aria-label":"close icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Fo=function(e){e.svgElementRef;var t=ye(e,po);return fe().createElement(eo,ge({"aria-label":"critical icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Ro=function(e){e.svgElementRef;var t=ye(e,fo);return fe().createElement(eo,ge({"aria-label":"decline icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},zo=function(e){e.svgElementRef;var t=ye(e,ho);return fe().createElement(eo,ge({"aria-label":"edit icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Lo=function(e){e.svgElementRef;var t=ye(e,mo);return fe().createElement(eo,ge({"aria-label":"hide icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},No=function(e){e.svgElementRef;var t=ye(e,yo);return fe().createElement(eo,ge({"aria-label":"refresh icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Io=function(e){e.svgElementRef;var t=ye(e,vo);return fe().createElement(eo,ge({"aria-label":"search icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Mo=function(e){e.svgElementRef;var t=ye(e,bo);return fe().createElement(eo,ge({"aria-label":"settings icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)},Do=function(e){e.svgElementRef;var t=ye(e,wo);return fe().createElement(eo,ge({"aria-label":"view icon"},t,{"data-ppui":"true"}),fe().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"},fe().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)};he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-input");const{ellipsisName:jo,variables:Ho}=n,{ppuiEaseMoveSmall:Bo}=Ho,Vo=`calc((${ve.size.field.lg} - ${ve.typography.fieldValueSm.lineHeight}) / 2)`,Wo=`calc((${ve.size.field.lg} - ${ve.typography.fieldValueSm.lineHeight}) / 2)`,Uo=`calc(${ve.size.field.lg} - ${ve.space[100]} - ${ve.typography.caption.lineHeight} - ${ve.space[25]} - ${ve.typography.fieldValueSm.lineHeight})`,Go=`calc(${ve.size.field.lg} - ${ve.border.thickness.emphasis})`,qo=(0,me.style)({...Ur,color:ve.color.background.mediumContrast},"text-input_label"),Ko=(0,me.style)({...Pt,color:ve.color.background.mediumContrast},"text-input_caption"),Yo={...Yr,color:ve.color.background.mediumContrast},Xo=(0,me.style)([Ko,{display:"flex",margin:`${ve.space[50]} 0 0`}],"text-input_info"),Qo=(0,me.style)({textDecoration:"none",position:"absolute"},"text-input_field_icon"),Zo=(0,me.style)([jo,qo,{pointerEvents:"none",position:"absolute",top:ve.space[100],transition:`font-size ${ve.motion.duration.move.small} ${Bo},\n top ${ve.motion.duration.move.small} ${Bo},\n backgroundColor ${ve.motion.duration.move.small} ${Bo}`,right:ve.space[150],left:ve.space[150],backgroundClip:"padding-box"}],"text-input_label"),Jo=(0,me.style)({},"text-input_label_placeholder_shown_and_not_focused");(0,me.globalStyle)(`${Jo}:placeholder-shown:not(:focus) ~ label`,{...Yo,top:Vo,backgroundColor:"transparent",marginBottom:0});const ei=(0,me.style)([Xo,{display:"block",listStyle:"none",padding:`${ve.space[25]} 0`,overflowWrap:"break-word"}],"text-input_helper_text"),ti=(0,me.style)([Yr,{padding:0,position:"relative",textAlign:"left",selectors:{"[dir='rtl'] &":{textAlign:"right"}}}],"text-input_base"),ri=(0,me.style)([Qo,{width:ve.size.tapTarget.default,height:ve.size.tapTarget.default,display:"flex",justifyContent:"center",alignItems:"center",top:ve.space[100],right:ve.space[100],left:"auto",selectors:{"[dir='rtl'] &":{left:ve.space[100],right:"auto"}}}],"text-input_icon_right"),ni=(0,me.style)([Qo,{pointerEvents:"none",zIndex:1,inset:`${Vo} auto ${Vo} ${ve.space[150]}`,color:ve.color.background.mediumContrast,selectors:{"[dir='rtl'] &":{inset:`${Vo} ${ve.space[150]} ${Vo} auto`}}}],"text-input_icon_left"),ai=(0,me.style)([Yr,{padding:`calc(${ve.space[350]} + ${ve.space[25]} - ${ve.border.thickness.normal}) calc(${ve.space[150]} - ${ve.border.thickness.normal}) calc(${ve.space[100]} + ${ve.space[25]} - ${ve.border.thickness.normal}) calc(${ve.space[150]} - ${ve.border.thickness.normal})`,textOverflow:"ellipsis",boxSizing:"border-box",width:"100%",border:`${ve.color.structure.borderLowContrast} solid ${ve.border.thickness.normal}`,borderRadius:ve.border.radius.sm,backgroundColor:ve.color.background.surface,margin:0,outline:"none",position:"relative",WebkitAppearance:"none",MozAppearance:"none",minHeight:ve.size.field.lg,selectors:{"&::placeholder":{color:ve.color.background.mediumContrast},"&:placeholder-shown:not(:focus)::-webkit-input-placeholder":{opacity:0,transition:`opacity ${ve.motion.duration.move.small} ${Bo}`},"&:placeholder-shown:not(:focus)::-moz-placeholder":{opacity:0,transition:`opacity ${ve.motion.duration.move.small} ${Bo}`},"&:first-line":{lineHeight:ve.typography.fieldValueSm.lineHeight},"&::-ms-reveal, &::-ms-clear":{display:"none"},"&::-webkit-input-placeholder":{color:ve.color.background.mediumContrast,opacity:1},"&:-moz-placeholder":{color:ve.color.background.mediumContrast,opacity:1,transition:`opacity ${ve.motion.duration.move.small} ${Bo}`},"&:focus":Oa}}],"text-input_control"),oi=(0,me.style)({padding:`calc(${ve.space[250]} - ${ve.border.thickness.normal}) calc(${ve.space[150]} - ${ve.border.thickness.normal}) calc(${ve.space[250]} - ${ve.border.thickness.normal}) calc(${ve.space[150]} - ${ve.border.thickness.normal})`,selectors:{"&:placeholder-shown:not(:focus)::placeholder":{opacity:1}}},"text-input_no_label_control"),ii=(0,me.style)({border:`${ve.border.thickness.emphasis} solid ${ve.color.error.main}`,paddingTop:`calc(${ve.space[350]} + ${ve.space[25]} - ${ve.border.thickness.emphasis})`,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`,paddingBottom:`calc(${ve.space[100]} + ${ve.space[25]} - ${ve.border.thickness.emphasis})`,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`},"text-input_error_control"),li=(0,me.style)({paddingRight:`calc(${ve.size.tapTarget.default} - ${ve.border.thickness.emphasis})`,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`,selectors:{"[dir='rtl'] &":{paddingLeft:`calc(${ve.space[150]} + ${ve.size.tapTarget.default} - ${ve.border.thickness.emphasis})`,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_right"),si=(0,me.style)({paddingLeft:`calc(${ve.space[600]} - ${ve.border.thickness.emphasis})`,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${ve.space[600]} - ${ve.border.thickness.emphasis})`,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_left"),ci=(0,me.style)({paddingRight:`calc(${ve.space[150]} + ${ve.size.tapTarget.default} - ${ve.border.thickness.emphasis})`,paddingLeft:`calc(${ve.space[600]} - ${ve.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${ve.space[600]} - ${ve.border.thickness.emphasis})`,paddingLeft:`calc(${ve.space[150]} + ${ve.size.tapTarget.default} - ${ve.border.thickness.emphasis})`}}},"text-input_control_error_with_icon_left_and_right"),ui=(0,me.style)({paddingTop:`calc(${Vo} - ${ve.border.thickness.emphasis})`,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`,paddingBottom:`calc(${Wo} - ${ve.border.thickness.emphasis})`,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`},"text-input_no_label_error"),di=(0,me.style)({paddingRight:`calc(${ve.space[250]} + ${ve.size.tapTarget.default} - ${ve.border.thickness.normal})`,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${ve.space[250]} + ${ve.size.tapTarget.default} - ${ve.border.thickness.normal})`,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`}}},"text-input_control_with_icon_right"),pi=(0,me.style)({paddingLeft:`calc(${ve.space[600]} - ${ve.border.thickness.normal})`,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${ve.space[600]} - ${ve.border.thickness.normal})`,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`}}},"text-input_control_with_icon_left"),fi=(0,me.style)({paddingLeft:`calc(${ve.space[600]} - ${ve.border.thickness.normal})`,paddingRight:`calc(${ve.space[150]} + ${ve.size.tapTarget.default} - ${ve.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${ve.space[600]} - ${ve.border.thickness.normal})`,paddingLeft:`calc(${ve.space[150]} + ${ve.size.tapTarget.default} - ${ve.border.thickness.normal})`}}},"text-input_control_with_icon_left_and_right"),hi=(0,me.style)({left:ve.space[150],right:`calc(${ve.space[150]} + ${ve.size.tapTarget.default})`,selectors:{"[dir='rtl'] & ":{left:`calc(${ve.space[150]} + ${ve.size.tapTarget.default})`,right:ve.space[150]}}},"text-input_label_with_icon_right"),mi=(0,me.style)({left:ve.space[600],right:ve.space[150],selectors:{"[dir='rtl'] & ":{right:ve.space[600],left:ve.space[150]}}},"text-input_label_with_icon_left"),gi=(0,me.style)([Xo,{alignItems:"center"}],"text-input_error_text"),yi=(0,me.style)({marginRight:ve.space[50],alignSelf:"flex-start",flexShrink:"0",selectors:{"[dir='rtl'] & ":{marginLeft:ve.space[50],marginRight:0}}},"text-input_error_icon"),vi=(0,me.style)([{color:ve.color.error.main,marginLeft:0},yi],"text-input_error_icon"),bi=(0,me.style)([{color:ve.color.success.main,marginLeft:"initial"},yi],"text-input_success_icon"),wi=(0,me.style)({listStyle:"none",padding:0,margin:0},"text-input_multi_line_error"),xi=(0,me.style)({position:"relative",display:"flex",backgroundColor:ve.color.background.surface,padding:ve.border.thickness.normal,":after":{content:" ",position:"absolute",height:"100%",width:"100%",top:0,left:0,border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderLowContrast}`,borderRadius:ve.border.radius.sm,pointerEvents:"none"},":focus-within":{borderRadius:ve.border.radius.sm,...Oa}},"text-input_prefix_wrapper"),ki=(0,me.style)({padding:`${ve.border.thickness.normal} ${ve.border.thickness.emphasis}`,":after":{border:`${ve.border.thickness.emphasis} solid ${ve.color.error.main}`}},"text-input_prefix_wrapper_error"),Si={whiteSpace:"nowrap",color:ve.color.background.highContrast,padding:`calc(${ve.space[350]} + ${ve.space[25]} - ${ve.border.thickness.normal}) ${ve.space[25]} calc(${ve.space[100]} - ${ve.border.thickness.normal}) calc(${ve.space[150]} - ${ve.border.thickness.normal})`},_i=(0,me.style)({border:"none",minHeight:Go,":focus":{boxShadow:"none",outline:"none"}},"text-input_prefix_wrapper_control");(0,me.globalStyle)(`${_i}:placeholder-shown:not(:focus) ~ div`,{opacity:0});const Ei=(0,me.style)({order:-1,...Si,selectors:{"[dir='rtl'] & ":{...Si,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,paddingLeft:ve.space[25]}}},"text-input_prefix"),Ci=(0,me.style)({...Si,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,paddingLeft:ve.space[25],selectors:{"[dir='rtl'] & ":{...Si,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,paddingRight:ve.space[25]}}},"text-input_suffix"),$i=(0,me.style)({paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`}}},"text-input_error_prefix"),Ai=(0,me.style)({paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`}}},"text-input_error_suffix"),Ti=(0,me.style)({paddingTop:`calc(${Vo} - ${ve.border.thickness.normal})`,paddingBottom:`calc(${Wo} - ${ve.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingTop:`calc(${Vo} - ${ve.border.thickness.normal})`,paddingBottom:`calc(${Wo} - ${ve.border.thickness.normal})`}}},"text-input_no_label_suffix_or_prefix"),Oi=(0,me.style)({paddingLeft:0,selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:ve.space[150]}}},"text-input_prefix_wrapper_control_with_prefix"),Pi=(0,me.style)({paddingRight:0,selectors:{"[dir='rtl'] & ":{paddingLeft:0,paddingRight:ve.space[150]}}},"text-input_prefix_wrapper_control_with_suffix"),Fi=(0,me.style)({paddingLeft:0,paddingRight:0,selectors:{"[dir='rtl'] & ":{paddingLeft:0,paddingRight:0}}},"text-input_prefix_wrapper_control_with_prefix_suffix"),Ri=(0,me.style)([Yo,{position:"absolute",top:0,right:0,left:0,paddingTop:`calc(${Vo} + ${ve.space[100]} + ${ve.border.thickness.normal})`,paddingRight:ve.space[150],paddingLeft:ve.space[150],paddingBottom:`calc(${Uo} + ${ve.border.thickness.normal})`,backgroundColor:ve.color.background.surface,whiteSpace:"nowrap",selectors:{"[dir='rtl'] & ":{transform:`translateX(calc(${ve.border.thickness.normal} * -1))`}}}],"text-display_placemat");(0,me.globalStyle)(`${Ri}& + input:focus`,{backgroundColor:"transparent"});const zi=(0,me.style)({paddingTop:Vo},"text-display_no_label_placemat");he.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 Ni(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 Ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Mi=function(e){var t=e.messageId,r=e.helperText,n=e.errorText,a=e.errorIconAriaLabel,o=e.successText,i=e.successIconAriaLabel;if(n||o){var l,s,c,u=n||o,d=Array.isArray(u)?fe().createElement("ul",{className:wi,"data-ppui":"true"},u.map((function(e,r){return fe().createElement("li",{key:"msg".concat(t,"-").concat(r),"data-ppui":"true"},e)}))):u;if(n){var p={className:vi,role:"img","aria-label":a};s=fe().createElement(Fo,ge({size:"sm"},p,{"data-ppui":"true"}))}if(!n){var f={className:bi,role:"img","aria-label":i};c=fe().createElement(Eo,ge({size:"sm"},f,{"data-ppui":"true"}))}return fe().createElement("div",{className:gi,id:t,role:"alert","data-ppui":"true"},null!==(l=s)&&void 0!==l?l:c,d)}return r?Array.isArray(r)?fe().createElement("ul",{className:ei,id:t,"data-ppui":"true"},r.map((function(e,r){return fe().createElement("li",{key:"msg".concat(t,"-").concat(r),"data-ppui":"true"},e)}))):fe().createElement("div",{className:ei,id:t,"data-ppui":"true"},r):null},Di=function(e,t,r){return e?fe().createElement("div",{className:Ke("left"===t&&ni,"right"===t&&ri,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,o=e.successText,i=e.successIconAriaLabel,l=void 0===i?"Success":i,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,g=e.id,y=void 0===g?"text-input-".concat(m):g,v=e.label,b=e.isLabelHidden,w=e.placeholder,x=void 0===w?" ":w,k=e.placemat,S=e.leftIcon,_=void 0===S?null:S,E=e.rightIcon,C=void 0===E?null:E,$=e.onChange;e.children;var A=e.renderContent;e.removeBorderRadiusLeft,e.removeBorderRadiusRight,e.removeBorderRadiusBoth;var T=e.dir,O=ye(e,Li),P="message_".concat(y),F=$?{onChange:$,value:h}:{defaultValue:h},R=Ii(Ii(Ii({},f||s?{"aria-describedby":P}:{}),F),O);return fe().createElement("div",{className:Ke(ti,r),dir:T,"data-ppui-info":"text-input_6.2.2__8.12.0"},Di(_,"left"),A(Ii({inputClassName:n,name:m,id:y,setFocus:t,hasError:u,placeholder:x,placemat:k,label:v,labelClassName:a,isLabelHidden:b,inputTag:"input",leftIcon:_,rightIcon:C},R)),fe().createElement(Mi,{errorText:s,errorIconAriaLabel:p,successText:o,successIconAriaLabel:l,helperText:f,messageId:P,"data-ppui":"true"}),Di(C,"right"))},Hi=["inputClassName","inputTag","name","id","setFocus","inputRef","hasError","placeholder","placemat","label","labelClassName","isLabelHidden","rightIcon","leftIcon","prefix","suffix"],Bi=function(e){var t=e.placeholder,r=e.value,n=void 0===r?"":r,a=e.isLabelHidden,o=void 0!==a&&a,i=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=Ke(Ri,o&&zi);return fe().createElement("div",{className:l,"data-ppui":"true"},i)},Vi=function(e){var t=null!=e?e:" ";return""===t?" ":t},Wi=function(e){var t=e.inputClassName,r=e.inputTag,n=e.name,a=e.id,o=e.setFocus,i=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,m=e.prefix,g=e.suffix,y=ye(e,Hi),v=!u||""===u||p,b=Ke(ai,v&&oi,!l&&f&&di,!l&&h&&pi,!l&&f&&h&&fi,Jo,l&&ii,l&&v&&ui,l&&f&&li,l&&h&&si,l&&h&&f&&ci,m||g?_i:null,l&&v&&(m||g)?ui:null,m&&Oi,g&&Pi,m&&g&&Fi,t),w=Ke(Zo,f&&hi,h&&mi,v&&ot,d),x=y.value;return(0,pe.useEffect)((function(){var e=i.current;o&&e&&e.focus()}),[o]),fe().createElement(fe().Fragment,null,!!c&&fe().createElement(Bi,{placeholder:c,value:x,isLabelHidden:v,"data-ppui":"true"}),fe().createElement(r,ge({className:b,name:n,id:a,ref:i,"aria-invalid":l,placeholder:Vi(s)},y,{"data-ppui":"true"})),u&&fe().createElement("label",{htmlFor:a,id:"".concat(a,"-label"),className:w,"data-ppui":"true"},u))},Ui=["label","id","prefix","suffix","prefixClassName","suffixClassName","inputClassName","inputRef","onBlur","onFocus","hasError","isLabelHidden"],Gi=function(e){var t=e.label,r=e.id,n=e.prefix,a=e.suffix,o=e.prefixClassName,i=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,m=ye(e,Ui),g=s,y=!t||""===t||h,v=Ke(Ei,y&&Ti,f&&$i,o),b=Ke(Ci,y&&Ti,f&&Ai,i),w=Ke(xi,f&&ki),x=t?"".concat(r,"-label "):"",k=n?"".concat(r,"-prefix "):"",S=a?"".concat(r,"-suffix"):"",_="".concat(x).concat(k).concat(S);return fe().createElement("div",{className:w,onClick:function(){g.current&&g.current.focus()},"data-ppui":"true"},fe().createElement(Wi,ge({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:y},m,{"data-ppui":"true"})),n&&fe().createElement("div",{id:k.trim(),className:v,"data-ppui":"true"},n),a&&fe().createElement("div",{id:S.trim(),className:b,"data-ppui":"true"},a))},qi=["prefix","suffix","prefixClassName","suffixClassName"],Ki=["inputClassName","name","id","setFocus","hasError","placeholder","placemat","label","labelClassName","inputTag"],Yi=(0,pe.forwardRef)((function(e,t){var r=e.prefix,n=e.suffix,a=e.prefixClassName,o=e.suffixClassName,i=ye(e,qi),l=(0,pe.useRef)(),s=t||l;return fe().createElement(ji,ge({renderContent:function(e){var t=e.inputClassName,i=e.name,l=e.id,c=e.setFocus,u=e.hasError,d=e.placeholder,p=e.placemat,f=e.label,h=e.labelClassName,m=e.inputTag,g=ye(e,Ki);return r||n?fe().createElement(Gi,ge({inputClassName:t,inputTag:m,name:i,id:l,setFocus:c,inputRef:s,hasError:u,placeholder:d,label:f,labelClassName:h,prefix:r,suffix:n,prefixClassName:a,suffixClassName:o},g,{"data-ppui":"true"})):fe().createElement(Wi,ge({inputClassName:t,inputTag:m,name:i,id:l,setFocus:c,inputRef:s,hasError:u,placeholder:d,placemat:p,label:f,labelClassName:h},g,{"data-ppui":"true"}))}},i,{"data-ppui":"true"}))}));function Xi(e,t,r,n,a,o,i){try{var l=e[o](i),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,a)}function Qi(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 Zi(e,t){if(e){if("string"==typeof e)return Qi(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)?Qi(e,t):void 0}}function Ji(e){return function(e){if(Array.isArray(e))return Qi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zi(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 el(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,o,i,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.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&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||Zi(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 tl(e,t){return[(0,me.style)(e,t),e]}he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-elevation");const rl=e=>`calc(((${ve.elevation.horizontalOffsetRatio} * ${e})/16) * 1rem)`,nl=e=>`calc(calc(((${e} * ${e} * ${ve.elevation.blurCurve} + ${e} * ${ve.elevation.blurSlope})/16) * 1rem) + ${ve.elevation.blurBase})`,al=(e=1)=>`calc(${e} * ${ve.elevation.opacity}*100%)`,ol=Ye(ve.color.structure.shadow,al()),il=e=>Ye(ve.color.background.surface,al(e)),ll=e=>`${rl(e)} ${(e=>`calc(((${ve.elevation.verticalOffsetRatio} * ${e-1})/16) * 1rem)`)(e)} ${nl(e)} ${ol}`,sl=e=>`linear-gradient(${il(e)}, ${il(e)})`,[cl,ul]=tl({boxShadow:ll(1),backgroundImage:sl(1)},"elevation_level1"),[dl,pl]=tl({boxShadow:ll(2),backgroundImage:sl(2)},"elevation_level2"),[fl,hl]=tl({boxShadow:ll(3),backgroundImage:sl(3)},"elevation_level3"),[ml,gl]=tl({filter:`drop-shadow(${ll(1)})`},"drop_shadow1"),[yl,vl]=tl({filter:`drop-shadow(${ll(2)})`},"drop_shadow2"),[bl,wl]=tl({filter:`drop-shadow(${ll(3)})`},"drop_shadow3"),[xl,kl]=tl({boxShadow:`0 0 ${nl(.33)} ${ol}`},"fixed_elevation"),[Sl,_l]=tl({boxShadow:`${rl(3)} ${`calc(((${ve.elevation.verticalOffsetRatio} * -2)/16) * 1rem)`} ${nl(3)} ${ol}`,backgroundImage:sl(3),transform:"translateZ(0)"},"elevation_level3_above");he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-list");const El=(0,me.style)({listStyle:"none",padding:"0",margin:"0",backgroundColor:"transparent"},"list_base"),Cl=(0,me.style)({display:"flex",textDecoration:"none",backgroundColor:"transparent",outline:"none"},"list_item-wrapper"),$l={regular:(0,me.style)({paddingLeft:ve.space[200],paddingRight:ve.space[200]},"list_item-wrapper-gutter-regular"),none:(0,me.style)({paddingLeft:0,paddingRight:0},"list_item-wrapper-gutter-none")};(0,me.globalStyle)(`${Cl} > div:not(:last-child)`,{marginInlineEnd:ve.space[100]});const Al=(0,me.style)({cursor:"pointer",position:"relative",":hover":{backgroundColor:ve.color.background.surfaceHover},":active":{backgroundColor:ve.color.background.surfaceActive}},"list_hover_active"),Tl=(0,me.style)({backgroundColor:ve.color.background.surfaceActive},"list_highlight"),Ol=(0,me.style)({display:"inherit",color:ve.color.secondary.main,pointerEvents:"none",flexGrow:0},"list_decoration"),Pl=(0,me.style)({alignSelf:"center",display:"inline-flex",flexDirection:"column",gap:ve.space[50],pointerEvents:"none",flexGrow:1},"list_content"),Fl=(0,me.style)({pointerEvents:"auto"},"list_action"),Rl=(0,me.style)({alignSelf:"center",textAlign:"right",display:"flex",flexDirection:"column",gap:ve.space[50],pointerEvents:"none",flexGrow:0,selectors:{"[dir='rtl'] &":{textAlign:"left",justifySelf:"end"}}},"list_trailing-content"),zl=(0,me.style)({margin:0},"list_text"),Ll=(0,me.style)([zl,{color:ve.color.background.mediumContrast}],"list_secondary_text"),Nl=(0,me.style)({alignSelf:"start"},"list_align-top"),Il=(0,me.style)({alignSelf:"end"},"list_align-top"),Ml=(0,me.style)({alignSelf:"center"},"list_align-center"),Dl=(0,me.style)({position:"relative",":focus":{...Fa,borderRadius:ve.border.radius.xs}},"list_keyboard_active"),jl=(0,me.style)({listStyleType:"none",margin:0,padding:0},"list_section-list"),Hl=(0,me.style)({padding:`${ve.space[150]} ${ve.space[200]}`},"list_section-title"),Bl={regular:(0,me.style)({paddingTop:ve.space[150],paddingBottom:ve.space[150]},"list_item-vertical-space-regular"),condensed:(0,me.style)({paddingTop:ve.space[75],paddingBottom:ve.space[75]},"list_item-vertical-space-condensed")},Vl=(0,me.style)({"@media":{[`(max-width: ${_e})`]:{minWidth:ve.size.icon.lg,alignItems:"flex-end"}}},"checkmark-icon"),Wl=(0,me.style)({pointerEvents:"none"},"unselectable");he.endFileScope();var Ul=["regular","none"],Gl=["regular","condensed"],ql=["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 Kl(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 Yl=function(e){var t=e.label,r=e.labelLineClamp,n=e.status,a=e.labelContext,o=e.labelDescription,i=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,m=e.highlightText,g=e.isTextHighlighted,y=e.as,v=void 0===y?"div":y,b=e.isItemFocusable,w=e.isItemNavigational,x=e.ariaDescribedby,k=e.role,S=e.gutterStyle,_=void 0===S?"regular":S,E=e.verticalSpace,C=void 0===E?"regular":E,$=e.unselectable,A=void 0!==$&&$,T=ye(e,ql),O=(0,pe.useRef)();(0,pe.useEffect)((function(){p&&O.current.focus()}),[p]);var P=Ke(Cl,Bl[C],w&&Al,f&&Tl,b&&Dl,$l[_],A&&Wl),F={top:Nl,center:Ml,bottom:Il},R=Ke(Ol,c&&F[c.align]),z=Ke(Rl,u&&F[u.align],Vl),L=d&&function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kl(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d),N={as:"p",type:h?"strong":"regular",className:zl,clampAtLine:r},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&fe().createElement(ra,ge({as:"p",className:Ll},t?{clampAtLine:i}:{},{"data-ppui":"true"}),e)},M=function(e){return e&&fe().createElement("div",{className:Fl,"data-ppui":"true"},e)};return fe().createElement(v,ge({className:P,role:k},A?null:{tabIndex:-1},{ref:O,"aria-describedby":x},d?null:{"aria-selected":void 0!==h&&h},L,T,{"data-ppui":"true"}),(null==c?void 0:c.thumbnail)&&fe().createElement("div",{className:R,"data-ppui":"true"},c.thumbnail),(!!t||!!l||!!s||!!n||!!a||!!o)&&fe().createElement("div",{className:Pl,"data-ppui":"true"},n&&fe().createElement("div",{"data-ppui":"true"},n),I(a,!1),t&&function(){if(g&&"string"==typeof t){var e=nt(t,m);return fe().createElement(ea,ge({},N,{dangerouslySetInnerHTML:{__html:e},"data-ppui":"true"}))}return fe().createElement(ea,ge({},N,{"data-ppui":"true"}),t)}(),I(o,!0),l,M(s)),fe().createElement("div",{className:z,"data-ppui":"true"},(u||h)&&fe().createElement(fe().Fragment,null,h?fe().createElement($o,{"aria-label":"Selected",size:"sm",color:"SelectedMain","data-ppui":"true"}):null,(null==u?void 0:u.status)&&fe().createElement("div",{"data-ppui":"true"},u.status),I(null==u?void 0:u.labelContext,!1),(null==u?void 0:u.label)&&fe().createElement(ea,{as:"p",className:zl,"data-ppui":"true"},u.label),I(null==u?void 0:u.labelDescription,!1),M(null==u?void 0:u.action),M(null==u?void 0:u.icon))))},Xl=function(e,t,r){for(var n=[],a="previous"===r?-1:1,o=0;o<e.length;o++){var i;(null===(i=e[o])||void 0===i?void 0:i.unselectable)||n.push(o)}return t===n[0]&&"previous"===r?n[n.length-1]:t===n[n.length-1]&&"next"===r?n[0]:n[n.indexOf(t)+a]},Ql=["options","focusActive","activeIndex","focusedIndex","className","onKeyDown","onClick","onFocus","onBlur","hasSections","highlightText","isTextHighlighted","itemAs","gutterStyle","verticalSpace"];function Zl(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 Jl=fe().forwardRef((function(e,t){var r=e.options,n=e.focusActive,a=e.activeIndex,o=void 0===a?-1:a,i=e.focusedIndex,l=void 0===i?-1:i,s=e.className,c=e.onKeyDown,u=e.onClick,d=e.onFocus,p=e.onBlur,f=e.hasSections,h=e.highlightText,m=e.isTextHighlighted,g=e.itemAs,y=void 0===g?Yl:g,v=e.gutterStyle,b=void 0===v?"regular":v,w=e.verticalSpace,x=void 0===w?"regular":w,k=ye(e,Ql),S=(0,pe.useRef)(),_=t||S,E=el((0,pe.useState)(l),2),C=E[0],$=E[1];(0,pe.useEffect)((function(){$(l)}),[l]);var A,T,O=function(e,t,r){(null==r?void 0:r.unselectable)||($(t),u&&u(e,t))},P=function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.map((function(e,i){var l;"string"==typeof e.label||e.value;var s=u||e.onClick,c=!!s||!!e.navigationOptions,d=f?i+a:i,p={value:null!==(l=e.value)&&void 0!==l?l:e.label,role:s?"option":null,focusActive:n,highlightText:h,isTextHighlighted:m,isFocused:n&&C===d,isHighlighted:o===d,isItemNavigational:c,isItemFocusable:null!=n?n:c,as:e.navigationOptions?"a":"div",ariaDescribedby:f?r:null,gutterStyle:Ul.includes(b)?b:"regular",disabled:e.unselectable,verticalSpace:Gl.includes(x)?x:"regular"},g=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.wrapperProps);return delete e.wrapperProps,fe().createElement("li",ge({className:e.className,role:"menuitem","aria-selected":void 0!==e.isSelected&&e.isSelected,onClick:function(t){return O(t,d,e)},key:d,"data-value":e.value},g,{"data-ppui":"true"}),fe().createElement(t,ge({},p,e,{"data-ppui":"true"})))}))};return fe().createElement("menu",ge({className:Ke(El,s),ref:_,tabIndex:n&&-1===C?0:-1},k,{onFocus:function(e){var t=n&&e.target===_.current&&e.currentTarget===_.current;!c&&t&&$(0),d&&d(e)},onBlur:function(e){var t=!_.current.contains(e.target)||!e.relatedTarget;!c&&n&&t&&$(-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,Ji(t.sectionItems)),e}),[]):r,n=new Je(e.key);n.IS_ARROW_UP&&C>0?(e.preventDefault(),$(Xl(t,C,"previous"))):n.IS_ARROW_DOWN&&C<t.length-1?(e.preventDefault(),$(Xl(t,C,"next"))):(n.IS_ENTER||n.IS_SPACEBAR)&&u&&(e.preventDefault(),O(e,C))}},"data-ppui":"true"}),f?(A=y,T=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:Ze("list_section_id");e.push(fe().createElement("li",{role:"presentation",key:n,"data-ppui":"true"},t.title&&fe().createElement("div",{className:Ke(Hl,Bl[x]),id:t.id,"aria-hidden":"true","data-ppui":"true"},fe().createElement(ra,{"data-ppui":"true"},t.title)),fe().createElement("menu",ge({"aria-labelledby":t.id,className:jl},k,{"data-ppui":"true"}),P(t.sectionItems,A,t.id,T)))),T+=t.sectionItems.length}return e}),[])):P(r,y))}));he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-menu");const es="8rem",ts=(0,me.style)([hl,{borderRadius:ve.border.radius.lg,minWidth:es,maxHeight:"30rem",overflowY:"auto",overflowX:"hidden",position:"absolute",marginTop:ve.space[50],backgroundColor:ve.color.background.surface,outline:`${ve.border.thickness.normal} solid transparent`,zIndex:Ve}],"menu_container"),rs=(0,me.style)({selectors:{[`${El}&`]:{padding:`${ve.space[100]} 0`,"@media":{[`screen and (max-width: ${_e})`]:{paddingBottom:ve.space[400],paddingTop:0}}}}},"menu_list"),ns=(0,me.style)({display:"flex",height:"100%",alignItems:"center",justifyContent:"center"},"menu_loading_container");he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-loading-spinner");const{ppuiEaseLoopStandard:as}=ia,os=(0,me.keyframes)({to:{transform:"rotate(360deg)"}},"border_spinner"),is="1rem",ls=(0,me.style)({color:ve.color.primary.main,animation:`${os} ${ve.motion.duration.loop.standard} ${as} infinite`,border:`${ve.border.thickness.emphasis} solid currentColor`,borderRadius:"50%",clipPath:"polygon(50% 0%, 50% 50%, 100% 50%, 100% 100%, 0 100%, 0 0)"},"loading_spinner_base"),ss=(0,me.style)({minWidth:is,minHeight:is},"loading_spinner_size_xs"),cs=(0,me.style)({width:ve.size.circle.xs,height:ve.size.circle.xs},"loading_spinner_size_sm"),us=(0,me.style)({width:ve.size.circle.sm,height:ve.size.circle.sm},"loading_spinner_size_md"),ds=(0,me.style)({width:ve.size.circle.md,height:ve.size.circle.md},"loading_spinner_size_lg"),ps=(0,me.style)({width:ve.size.circle.xl,height:ve.size.circle.xl},"loading_spinner_size_xl"),fs=(0,me.style)({color:ve.color.primary.contrast},"loading_spinner_inverse");he.endFileScope();var hs=["as","className","inverse","size","screenReaderText"],ms=function(e){var t=e.as,r=void 0===t?"p":t,n=e.className,a=e.inverse,o=e.size,i=void 0===o?"sm":o,l=e.screenReaderText,s=ye(e,hs),c={xs:ss,sm:cs,md:us,lg:ds,xl:ps};Object.keys(c).includes(i)||(i="sm");var u=Ke(ls,a&&fs,c[i],n);return fe().createElement(r,ge({className:u,"data-ppui-info":"loading-spinner_4.1.2__8.12.0"},s,{role:"alert"}),fe().createElement("span",{className:ot,"data-ppui":"true"},l))};he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-sheet");const{variables:gs}=n,{ppuiEaseInOut:ys}=gs,vs=`calc(${ve.size.media.xl} * 0.75)`,bs=ve.size.icon.lg,ws=`calc(${ve.size.icon.xl} + (${ve.space[100]}))`,xs="100vw",ks=`screen and (max-width: ${Ee})`,Ss=`screen and (max-width: ${_e})`,_s=`screen and (max-width: ${Se})`,Es=`screen and (min-width: ${_e})`,Cs={transform:"translateZ(0) translateX(0)"},$s={transform:"translateZ(0) translateX(100%)"},As={transform:"translateZ(0) translateX(-100%)"},Ts={borderTopLeftRadius:ve.border.radius.jumbo,borderTopRightRadius:ve.border.radius.jumbo},Os=(e="center")=>(0,me.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`sheet-container_center_${e}`),Ps=e=>(0,me.style)({"@media":{[Ss]:{height:`${e}dvh`,...Ts}}},`sheet_height_${e}`),Fs=e=>{const t="right"===e?$s:As;return(0,me.style)([ec,{"@media":{[Es]:t},selectors:{"&[aria-hidden='false']":Cs}}],`sheet-container_${e}`)},Rs=(0,me.style)([Os("flex-end"),{width:ve.size.media.md,"@media":{[ks]:{width:ve.size.media.sm},[_s]:{width:xs}}}],"sheet-container_bottom"),zs=(0,me.style)({width:"75%",maxWidth:vs},"sheet_no_container"),Ls=(0,me.style)({height:"100dvh",width:"auto",willChange:"transform",transition:`transform ${ve.motion.duration.depart} ${ys},\n height ${ve.motion.duration.depart} ${ys}`,transform:"translateZ(0) translateY(100%)","@media":{[Ss]:{width:xs,height:"auto",minHeight:"3rem",maxHeight:"90dvh",...Ts}}},"sheet"),Ns=(0,me.style)({transform:"translateZ(0) translateY(0)"},"sheet_show"),Is=(0,me.style)([Os("center"),{position:"fixed",inset:0,zIndex:We,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${ve.motion.duration.depart} ease-in-out,\n visibility ${ve.motion.duration.depart} ${ve.motion.duration.depart}`,backgroundColor:ve.color.overlay.mainHover,boxShadow:"none"}],"sheet_backdrop");(0,me.globalStyle)(`${Is} [aria-hidden="false"], ${Is} [aria-hidden="true"]`,{transitionDuration:ve.motion.duration.arrive});const Ms=(0,me.style)([{position:"fixed",inset:0,zIndex:We,transform:`visibiliy ${ve.motion.duration.depart} ${ve.motion.duration.depart}`,selectors:{"&::before":{content:" ",position:"absolute",inset:0,opacity:0,willChange:"opacity",transition:`opacity ${ve.motion.duration.depart} ease-in-out`,backgroundColor:ve.color.overlay.mainHover}}},Os("flex-end")],"sheet-scrim"),Ds=(0,me.style)({visibility:"visible",transition:"none",selectors:{"&::before":{opacity:1,transitionDuration:ve.motion.duration.arrive}}},"sheet-scrim_show"),js=(0,me.style)({selectors:{"&::before":{content:" ",position:"absolute",top:ve.space[100],left:0,right:0,margin:"auto",width:ve.size.tapTarget.default,height:ve.size.indicator.sm,backgroundColor:ve.color.background.mediumContrast,borderRadius:ve.border.radius.md,display:"none","@media":{[Ss]:{display:"block"}}}}},"sheet-show_gripper"),Hs=(0,me.style)({"@media":{[Ss]:{borderRadius:0}}},"sheet-content_with_header"),Bs=(0,me.style)({padding:"0 8.5rem","@media":{[ks]:{padding:"0 5rem"},[Ss]:{padding:`0 ${ve.space[200]} ${ve.space[200]}`}}},"sheet-content"),Vs=(0,me.style)({minHeight:ws,"@media":{[Ss]:{minHeight:bs}}},"sheet-header"),Ws=(0,me.style)({minHeight:ws,padding:ve.space[150],margin:0,"@media":{[Ss]:{minHeight:bs,margin:0}}},"sheet-header_action"),Us=(0,me.style)({"@media":{[Ss]:{padding:`0 ${ve.space[100]}`}}},"sheet-header_action-spacing"),Gs=(0,me.style)({"@media":{[Ss]:{padding:`calc(${ve.space[75]} + ${ve.space[50]}) ${ve.space[75]} 0`}}},"sheet-header_action-gripper-spacing"),qs=(0,me.style)({flex:"0 0 100%",padding:`${ve.space[100]} ${ve.space[200]}`},"sheet-header_work_area"),Ks=(0,me.style)({position:"absolute",right:ve.space[50],top:ve.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:ve.space[50],right:"auto","@media":{[Es]:{left:ve.size.indicator.md}}}}},"sheet-content_close");(0,me.globalStyle)(`${Ks}`,{"@media":{[Es]:{right:ve.size.indicator.md,top:ve.space[150]}}});const Ys=(0,me.style)({"@media":{[Ss]:{height:"100dvh",maxHeight:"100dvh",borderTopLeftRadius:0,borderTopRightRadius:0}}},"sheet_height_100"),Xs=Ps("90"),Qs=Ps("50"),Zs=(0,me.style)({"@media":{[Es]:{justifyContent:"flex-end"}}},"sheet_right_side"),Js=(0,me.style)({"@media":{[Es]:{width:"35.5rem"}}},"sheet-right_width"),ec=(0,me.style)({"@media":{[Es]:{willChange:"transform",transition:`transform ${ve.motion.duration.depart}`,bottom:"inherit"}}},"sheet-container"),tc=Fs("right"),rc=Fs("left"),nc=(0,me.style)({"@media":{[Es]:{paddingLeft:ve.space[600],paddingRight:ve.space[600]}}},"sheet-drawer_container");he.endFileScope();var ac=r(448),oc=r.n(ac);function ic(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 lc=function(e){var t=e.id,r=void 0===t?Ze("animatee#"):t,n=e.shouldHide,a=void 0!==n&&n,o=e.onOpen,i=e.onCloseComplete,l=e.phaseProps,s=void 0===l?{initial:{isHidden:!0},showing:{isHidden:!1},hiding:{isHidden:!0}}:l,c=e.children,u=el((0,pe.useState)("initial"),2),d=u[0],p=u[1],f=(0,pe.useRef)({event:null,closeMethod:""}),h=(0,pe.useRef)(r),m=(0,pe.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 i&&i(t,r),"initial"):e}))};(0,pe.useLayoutEffect)((function(){a||"initial"!==d||p("showing"),a&&"initial"!==d&&(f.current.closeMethod="caller",p("hiding"))}),[a]);var y=function(e){e.target.dataset.animatee===h.current&&("hiding"===d?g():"function"==typeof o&&o(e),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation())};if(a&&"initial"===d)return null;var v=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ic(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 fe().createElement("div",{"data-testid":"animator",onTransitionEnd:y,onAnimationEnd:y},c(v))},sc=function(){return sc=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},sc.apply(this,arguments)};function cc(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 uc=r(718),dc=r(214),pc=r.n(dc),fc="right-scroll-bar-position",hc="width-before-scroll-bar";function mc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gc="undefined"!=typeof window?dc.useLayoutEffect:dc.useEffect,yc=new WeakMap;function vc(e,t){var r,n,a,o=(r=t||null,n=function(t){return e.forEach((function(e){return mc(e,t)}))},(a=(0,dc.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 gc((function(){var t=yc.get(o);if(t){var r=new Set(t),n=new Set(e),a=o.current;r.forEach((function(e){n.has(e)||mc(e,null)})),n.forEach((function(e){r.has(e)||mc(e,a)}))}yc.set(o,e)}),[e]),o}function bc(e){return e}function wc(e,t){void 0===t&&(t=bc);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 o=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}};return a}function xc(e,t){return void 0===t&&(t=bc),wc(e,t)}function kc(e){void 0===e&&(e={});var t=wc(null);return t.options=sc({async:!0,ssr:!1},e),t}var Sc=kc(),_c=function(){},Ec=dc.forwardRef((function(e,t){var r=dc.useRef(null),n=dc.useState({onScrollCapture:_c,onWheelCapture:_c,onTouchMoveCapture:_c}),a=n[0],o=n[1],i=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=cc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=vc([r,t]),k=sc(sc({},b),a);return dc.createElement(dc.Fragment,null,u&&dc.createElement(w,{sideCar:Sc,removeScrollBar:c,shards:d,noIsolation:f,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:r,gapMode:v}),i?dc.cloneElement(dc.Children.only(l),sc(sc({},k),{ref:x})):dc.createElement(y,sc({},k,{className:s,ref:x}),l))}));Ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ec.classNames={fullWidth:hc,zeroRight:fc};var Cc="data-focus-lock",$c="data-focus-lock-disabled",Ac={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Tc=xc({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Oc=xc(),Pc=xc(),Fc=kc({async:!0,ssr:"undefined"!=typeof document}),Rc=(0,dc.createContext)(void 0),zc=[],Lc=(0,dc.forwardRef)((function(e,t){var r,n=(0,dc.useState)(),a=n[0],o=n[1],i=(0,dc.useRef)(),l=(0,dc.useRef)(!1),s=(0,dc.useRef)(null),c=(0,dc.useState)({})[1],u=e.children,d=e.disabled,p=void 0!==d&&d,f=e.noFocusGuards,h=void 0!==f&&f,m=e.persistentFocus,g=void 0!==m&&m,y=e.crossFrame,v=void 0===y||y,b=e.autoFocus,w=void 0===b||b,x=(e.allowTextSelection,e.group),k=e.className,S=e.whiteList,_=e.hasPositiveIndices,E=e.shards,C=void 0===E?zc:E,$=e.as,A=void 0===$?"div":$,T=e.lockProps,O=void 0===T?{}:T,P=e.sideCar,F=e.returnFocus,R=void 0!==F&&F,z=e.focusOptions,L=e.onActivation,N=e.onDeactivation,I=(0,dc.useState)({})[0],M=(0,dc.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))}i.current&&L&&L(i.current),l.current=!0,c()}),[L]),D=(0,dc.useCallback)((function(){l.current=!1,N&&N(i.current),c()}),[N]),j=(0,dc.useCallback)((function(e){var t=s.current;if(t){var r=("function"==typeof t?t():t)||document.body,n="function"==typeof R?R(r):R;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)}}}),[R]),H=(0,dc.useCallback)((function(e){l.current&&Tc.useMedium(e)}),[]),B=Oc.useMedium,V=(0,dc.useCallback)((function(e){i.current!==e&&(i.current=e,o(e))}),[]),W=ge(((r={})[$c]=p&&"disabled",r[Cc]=x,r),O),U=!0!==h,G=U&&"tail"!==h,q=vc([t,V]),K=(0,dc.useMemo)((function(){return{observed:i,shards:C,enabled:!p,active:l.current}}),[p,l.current,C,a]);return pc().createElement(dc.Fragment,null,U&&[pc().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:p?-1:0,style:Ac}),_?pc().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:Ac}):null],!p&&pc().createElement(P,{id:I,sideCar:Fc,observed:a,disabled:p,persistentFocus:g,crossFrame:v,autoFocus:w,whiteList:S,shards:C,onActivation:M,onDeactivation:D,returnFocus:j,focusOptions:z,noFocusGuards:h}),pc().createElement(A,ge({ref:q},W,{className:k,onBlur:B,onFocus:H}),pc().createElement(Rc.Provider,{value:K},u)),G&&pc().createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:Ac}))}));Lc.propTypes={};const Nc=Lc;var Ic=kc(),Mc="data-focus-on-hidden",Dc={preventScroll:!0},jc=uc.forwardRef((function(e,t){var r=uc.useState(!1),n=r[0],a=r[1],o=e.children,i=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,S=e.style,_=e.as,E=e.gapMode,C=cc(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=cc(n,["onActivation","onDeactivation"]),P=sc(sc({},O),{as:_,style:S,sideCar:b,shards:l,allowPinchZoom:v,gapMode:E,inert:y,enabled:u&&p});return uc.createElement(uc.Fragment,null,uc.createElement(Nc,{ref:t,sideCar:b,disabled:!(n&&u&&h),returnFocus:g,autoFocus:i,shards:l,crossFrame:s,onActivation:A,onDeactivation:T,className:w,whiteList:x,lockProps:P,focusOptions:k?Dc:void 0,as:Ec},o),u&&uc.createElement($,sc({},C,{sideCar:Ic,setLockProps:a,shards:l})))})),Hc=function(e){var t=e.sideCar,r=cc(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 dc.createElement(n,sc({},r))};function Bc(e,t){return e.useMedium(t),Hc}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vc(e,t)}Hc.isSideCarExport=!0;var Wc=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},Uc=function(e){return Array.isArray(e)?e:[e]},Gc=function(e){return Array.isArray(e)?e[0]:e},qc=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Kc=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Yc=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!e||Kc(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(qc(e))}(t,Yc.bind(void 0,e));return e.set(t,n),n},Xc=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!(e&&!Kc(e))||!!eu(e)&&t(qc(e))}(t,Xc.bind(void 0,e));return e.set(t,n),n},Qc=function(e){return e.dataset},Zc=function(e){return"INPUT"===e.tagName},Jc=function(e){return Zc(e)&&"radio"===e.type},eu=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},tu=function(e){var t;return Boolean(e&&(null===(t=Qc(e))||void 0===t?void 0:t.focusGuard))},ru=function(e){return!tu(e)},nu=function(e){return Boolean(e)},au=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),a=r-n,o=e.index-t.index;if(a){if(!r)return 1;if(!n)return-1}return a||o},ou=function(e,t,r){return Wc(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(au)},iu=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),lu="".concat(iu,", [data-focus-guard]"),su=function(e,t){return Wc((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?lu:iu)?[r]:[],su(r))}),[])},cu=function(e,t){return e.reduce((function(e,r){var n,a=su(r,t),o=(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)?cu([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(o,r.parentNode?Wc(r.parentNode.querySelectorAll(iu)).filter((function(e){return e===r})):[])}),[])},uu=function(e,t){return Wc(e).filter((function(e){return Yc(t,e)})).filter((function(e){return function(e){return!((Zc(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},du=function(e,t){return void 0===t&&(t=new Map),Wc(e).filter((function(e){return Xc(t,e)}))},pu=function(e,t,r){return ou(uu(cu(e,r),t),!0,r)},fu=function(e,t){return ou(uu(cu(e),t),!1)},hu=function(e,t){return e.shadowRoot?hu(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Wc(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&&hu(n,t)}return hu(e,t)}))},mu=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?mu(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?mu(t.contentWindow.document):t}},gu=function(e){return e.parentNode?gu(e.parentNode):e},yu=function(e){return Uc(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(Cc);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 o=e[n].compareDocumentPosition(e[a]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(a),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}(Wc(gu(t).querySelectorAll("[".concat(Cc,'="').concat(r,'"]:not([').concat($c,'="disabled"])')))):[t]),e}),[])},vu=function(e,t){return void 0===t&&(t=mu(Gc(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&yu(e).some((function(e){return hu(e,t)||function(e,t){return Boolean(Wc(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},bu=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},wu=function(e,t){return Jc(e)&&e.name?function(e,t){return t.filter(Jc).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},xu=function(e){return e[0]&&e.length>1?wu(e[0],e):e[0]},ku=function(e,t){return e.indexOf(wu(t,e))},Su="NEW_FOCUS",_u=function(e,t,r){var n,a=e.map((function(e){return e.node})),o=du(a.filter((n=r,function(e){var t,r=null===(t=Qc(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return o&&o.length?xu(o):xu(du(t))},Eu=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Eu(e.parentNode.host||e.parentNode,t),t},Cu=function(e,t){for(var r=Eu(e),n=Eu(t),a=0;a<r.length;a+=1){var o=r[a];if(n.indexOf(o)>=0)return o}return!1},$u=function(e,t,r){var n=Uc(e),a=Uc(t),o=n[0],i=!1;return a.filter(Boolean).forEach((function(e){i=Cu(i||e,e)||i,r.filter(Boolean).forEach((function(e){var t=Cu(o,e);t&&(i=!i||hu(t,i)?t:Cu(t,i))}))})),i},Au=function(e,t){return e.reduce((function(e,r){return e.concat(function(e,t){return uu((r=e.querySelectorAll("[".concat("data-autofocus-inside","]")),Wc(r).map((function(e){return cu([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var r}(r,t))}),[])},Tu=function(e,t){var r=mu(Uc(e).length>0?document:Gc(e).ownerDocument),n=yu(e).filter(ru),a=$u(r||e,e,n),o=new Map,i=fu(n,o),l=i.filter((function(e){var t=e.node;return ru(t)}));if(l[0]){var s,c,u,d=fu([a],o).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(nu)),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 o=e.length,i=e[0],l=e[o-1],s=tu(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:Su;if(-1===d)return Su;var p,f,h=c-u,m=r.indexOf(i),g=r.indexOf(l),y=(p=r,f=new Set,p.forEach((function(e){return f.add(wu(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,S=x>=0&&k>=0?k-x:b-v;if(!h&&d>=0)return d;if(0===t.length)return d;var _=ku(e,t[0]),E=ku(e,t[t.length-1]);return c<=m&&s&&Math.abs(h)>1?E:c>=g&&s&&Math.abs(h)>1?_:h&&Math.abs(S)>1?d:c<=m?E:c>g?_:h?Math.abs(h)>1?d:(o+d+h)%o:void 0}}(f,h,d,r,t);if(m===Su){var g=_u(i,h,Au(n,o))||_u(i,f,Au(n,o));return g?{node:g}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:p[m]}},Ou=0,Pu=!1,Fu=function(e,t,r){void 0===r&&(r={});var n=Tu(e,t);if(!Pu&&n){if(Ou>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"),Pu=!0,void setTimeout((function(){Pu=!1}),1);Ou++,bu(n.node,r.focusOptions),Ou--}};function Ru(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 zu=function(e){var t=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:Ru(r),parent:Ru(r.parentElement),left:Ru(r.previousElementSibling),right:Ru(r.nextElementSibling)}),r=r.parentElement;return{element:Ru(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,r,n,a,o;if(e)for(var i=e.stack,l=e.ownerDocument,s=new Map,c=0,u=i;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=pu([p],s),v=null!==(o=null!==(a=null!=m?m:null==f?void 0:f.nextElementSibling)&&void 0!==a?a:g)&&void 0!==o?o: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)}},Lu=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=Uc(t);if(n.every((function(t){return!hu(t,e)})))return console.error("Active element is not contained in the scope"),{};var a=r?pu(n,new Map):fu(n,new Map),o=a.findIndex((function(t){return t.node===e}));return-1!==o?{prev:a[o-1],next:a[o+1],first:a[0],last:a[a.length-1]}:void 0}(e,n.scope,n.onlyTabbable);if(a){var o=r(a,n.cycle);o&&bu(o.node,n.focusOptions)}},Nu=function(e,t,r){var n,a,o,i,l=(a=e,o=null===(n=t.onlyTabbable)||void 0===n||n,{first:(i=o?pu(Uc(a),new Map):fu(Uc(a),new Map))[0],last:i[i.length-1]})[r];l&&bu(l.node,t.focusOptions)};function Iu(e){setTimeout(e,1)}var Mu=function(e){return e&&"current"in e?e.current:e},Du=function(){return document&&document.activeElement===document.body},ju=null,Hu=null,Bu=function(){return null},Vu=null,Wu=!1,Uu=!1,Gu=function(){return!0};function qu(e,t,r,n){var a=null,o=e;do{var i=n[o];if(i.guard)i.node.dataset.focusAutoGuard&&(a=i);else{if(!i.lockItem)break;if(o!==e)return;a=null}}while((o+=r)!==t);a&&(a.node.tabIndex=0)}var Ku=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Yu=function(e){return fu(e,new Map)},Xu=function(){var e,t,r,n,a,o,i,l=!1;if(ju){var s=ju,c=s.observed,u=s.persistentFocus,d=s.autoFocus,p=s.shards,f=s.crossFrame,h=s.focusOptions,m=s.noFocusGuards,g=c||Vu&&Vu.portaledElement;if(Du()&&Hu&&Hu!==document.body&&(!document.body.contains(Hu)||!Yu([(i=Hu).parentNode]).some((function(e){return e.node===i})))){var y=Bu();y&&y.focus()}var v=document&&document.activeElement;if(g){var b=[g].concat(p.map(Mu).filter(Boolean));if(v&&!function(e){return(ju.whiteList||Gu)(e)}(v)||(u||function(){if(!(f?Boolean(Wu):"meanwhile"===Wu)||!m||!Hu||Uu)return!1;var e=Yu(b),t=e.findIndex((function(e){return e.node===Hu}));return 0===t||t===e.length-1}()||!(Du()||function(e){void 0===e&&(e=document);var t=mu(e);return!!t&&Wc(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return hu(e,t)}))}())||!Hu&&d)&&(g&&!(vu(b)||v&&function(e,t){return t.some((function(t){return Ku(e,t,t)}))}(v,b)||(o=v,Vu&&Vu.portaledElement===o))&&(document&&!Hu&&v&&!d?(v.blur&&v.blur(),document.body.focus()):(l=Fu(b,Hu,{focusOptions:h}),Vu={})),(Hu=document&&document.activeElement)!==document.body&&(Bu=zu(Hu)),Wu=!1),document&&v!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var w=document&&document.activeElement,x=(t=yu(e=b).filter(ru),r=$u(e,e,t),n=ou(cu([r],!0),!0,!0),a=cu(t,!1),n.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:tu(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")})),qu(k,x.length,1,x),qu(k,-1,-1,x))}}}return l},Qu=function(e){Xu()&&e&&(e.stopPropagation(),e.preventDefault())},Zu=function(){return Iu(Xu)},Ju=function(){Uu=!0},ed=function(){Uu=!1,Wu="just",Iu((function(){Wu="meanwhile"}))},td={moveFocusInside:Fu,focusInside:vu,focusNextElement:function(e,t){void 0===t&&(t={}),Lu(e,t,(function(e,t){var r=e.next,n=e.first;return r||t&&n}))},focusPrevElement:function(e,t){void 0===t&&(t={}),Lu(e,t,(function(e,t){var r=e.prev,n=e.last;return r||t&&n}))},focusFirstElement:function(e,t){void 0===t&&(t={}),Nu(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),Nu(e,t,"last")},captureFocusRestore:zu};Tc.assignSyncMedium((function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(Vu={observerNode:r,portaledElement:t})})),Oc.assignMedium(Zu),Pc.assignMedium((function(e){return e(td)}));const rd=(nd=function(e){return e.filter((function(e){return!e.disabled}))},ad=function(e){var t=e.slice(-1)[0];t&&!ju&&(document.addEventListener("focusin",Qu),document.addEventListener("focusout",Zu),window.addEventListener("focus",Ju),window.addEventListener("blur",ed));var r=ju,n=r&&t&&t.id===r.id;ju=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(Hu=null,n&&r.observed===t.observed||t.onActivation(td),Xu(),Iu(Xu)):(document.removeEventListener("focusin",Qu),document.removeEventListener("focusout",Zu),window.removeEventListener("focus",Ju),window.removeEventListener("blur",ed),Hu=null)},function(e){var t,r=[];function n(){t=nd(r.map((function(e){return e.props}))),ad(t)}var a=function(a){var o,i;function l(){return a.apply(this,arguments)||this}i=a,(o=l).prototype=Object.create(i.prototype),o.prototype.constructor=o,Vc(o,i),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 pc().createElement(e,this.props)},l}(dc.PureComponent);return Re(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(e)+")"),a})((function(){return null}));var nd,ad;Bc(Fc,rd);var od=r(118);var id=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)}}},ld=function(){var e=function(){var e=id();return function(t,r){dc.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}},sd={left:0,top:0,right:0,gap:0},cd=function(e){return parseInt(e||"",10)||0},ud=ld(),dd="data-scroll-locked",pd=function(e,t,r,n){var a=e.left,o=e.top,i=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(dd,"] {\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(o,"px;\n padding-right: ").concat(i,"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(fc," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(hc," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(fc," .").concat(fc," {\n right: 0 ").concat(n,";\n }\n \n .").concat(hc," .").concat(hc," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(dd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},fd=function(){var e=parseInt(document.body.getAttribute(dd)||"0",10);return isFinite(e)?e:0},hd=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;od.useEffect((function(){return document.body.setAttribute(dd,(fd()+1).toString()),function(){var e=fd()-1;e<=0?document.body.removeAttribute(dd):document.body.setAttribute(dd,e.toString())}}),[]);var o=od.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return sd;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[cd(r),cd(n),cd(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 od.createElement(ud,{styles:pd(o,!t,a,r?"":"!important")})},md=!1;if("undefined"!=typeof window)try{var gd=Object.defineProperty({},"passive",{get:function(){return md=!0,!0}});window.addEventListener("test",gd,gd),window.removeEventListener("test",gd,gd)}catch(e){md=!1}var yd=!!md&&{passive:!1},vd=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])},bd=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),wd(e,n)){var a=xd(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},wd=function(e,t){return"v"===e?function(e){return vd(e,"overflowY")}(t):function(e){return vd(e,"overflowX")}(t)},xd=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},kd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sd=function(e){return[e.deltaX,e.deltaY]},_d=function(e){return e&&"current"in e?e.current:e},Ed=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Cd=0,$d=[];function Ad(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}Bc(Sc,(function(e){var t=dc.useRef([]),r=dc.useRef([0,0]),n=dc.useRef(),a=dc.useState(Cd++)[0],o=dc.useState(ld)[0],i=dc.useRef(e);dc.useEffect((function(){i.current=e}),[e]),dc.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,o=t.length;a<o;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(_d),!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=dc.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=kd(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-o[0],c="deltaY"in e?e.deltaY:l[1]-o[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=bd(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=bd(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),o=a*n,i=r.target,l=t.contains(i),s=!1,c=o>0,u=0,d=0;do{var p=xd(e,i),f=p[0],h=p[1]-p[2]-a*f;(f||h)&&wd(e,i)&&(u+=h,d+=f),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(c&&(Math.abs(u)<1||!1)||!c&&(Math.abs(d)<1||!1))&&(s=!0),s}(f,t,e,"h"===f?s:c)}),[]),s=dc.useCallback((function(e){var r=e;if($d.length&&$d[$d.length-1]===o){var n="deltaY"in r?Sd(r):kd(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=(i.current.shards||[]).map(_d).filter(Boolean).filter((function(e){return e.contains(r.target)}));(s.length>0?l(r,s[0]):!i.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),c=dc.useCallback((function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:Ad(n)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=dc.useCallback((function(e){r.current=kd(e),n.current=void 0}),[]),d=dc.useCallback((function(t){c(t.type,Sd(t),t.target,l(t,e.lockRef.current))}),[]),p=dc.useCallback((function(t){c(t.type,kd(t),t.target,l(t,e.lockRef.current))}),[]);dc.useEffect((function(){return $d.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,yd),document.addEventListener("touchmove",s,yd),document.addEventListener("touchstart",u,yd),function(){$d=$d.filter((function(e){return e!==o})),document.removeEventListener("wheel",s,yd),document.removeEventListener("touchmove",s,yd),document.removeEventListener("touchstart",u,yd)}}),[]);var f=e.removeScrollBar,h=e.inert;return dc.createElement(dc.Fragment,null,h?dc.createElement(o,{styles:Ed(a)}):null,f?dc.createElement(hd,{gapMode:e.gapMode}):null)}));var Td=new WeakMap,Od=new WeakMap,Pd={},Fd=0,Rd=function(e){return e&&(e.host||Rd(e.parentNode))},zd=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=Rd(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]);Pd[r]||(Pd[r]=new WeakMap);var o=Pd[r],i=[],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=(Td.get(e)||0)+1,c=(o.get(e)||0)+1;Td.set(e,s),o.set(e,c),i.push(e),1===s&&a&&Od.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(),Fd++,function(){i.forEach((function(e){var t=Td.get(e)-1,a=o.get(e)-1;Td.set(e,t),o.set(e,a),t||(Od.has(e)||e.removeAttribute(n),Od.delete(e)),a||e.removeAttribute(r)})),--Fd||(Td=new WeakMap,Td=new WeakMap,Od=new WeakMap,Pd={})}}(n,a,r,"aria-hidden")):function(){return null}},Ld=ld(),Nd="\n ["+Mc+"] {\n pointer-events: none !important;\n }\n",Id=function(){return uc.createElement(Ld,{styles:Nd})},Md=function(e){return"current"in e?e.current:e};const Dd=Bc(Ic,(function(e){var t=e.setLockProps,r=e.onEscapeKey,n=e.onClickOutside,a=e.shards,o=e.onActivation,i=e.onDeactivation,l=e.noIsolation,s=(0,uc.useState)(void 0),c=s[0],u=s[1],d=(0,uc.useRef)(null),p=(0,uc.useRef)(0);return uc.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(Md).some((function(t){return t&&t.contains(e.target)||t===e.target}))||n&&n(e)},o=function(e){t(e),p.current=e.touches.length},i=function(e){p.current=e.touches.length};if(c)return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.addEventListener("touchstart",o),document.addEventListener("touchend",i),function(){document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",o),document.removeEventListener("touchend",i)}}),[c,n,r]),(0,uc.useEffect)((function(){if(c)return o&&o(c),function(){i&&i()}}),[!!c]),(0,uc.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=zd(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 o=arguments[t],i=0,l=o.length;i<l;i++,a++)n[a]=o[i];return n}([t],(a||[]).map(Md)),document.body,Mc)),u((function(){return t}))},onDeactivation:function(){e(),r||u(null)}}),function(){r=!0,t(!1)}}),[]),uc.createElement(Id,null)}));var jd=function(e){return uc.createElement(Dd,sc({},e))},Hd=uc.forwardRef((function(e,t){return uc.createElement(jc,sc({},e,{ref:t,sideCar:jd}))}));he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-icon-button");const{YQ:Bd}=a,Vd=`calc(${ve.space[100]} - 0.0625rem)`,Wd=`calc(${ve.size.icon.sm} + 2 * ${ve.space[150]})`,Ud=e=>({cursor:e}),Gd=(0,me.style)({...Ht,color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast)},"icon-button_font"),qd={WebkitTextStrokeWidth:"0.0421875rem",color:(0,me.fallbackVar)(Oe.main,ve.color.background.highContrast)},Kd=(0,me.style)([Gd,{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",padding:`${ve.space[150]} 0`,width:"6rem",wordWrap:"break-word",border:"none",backgroundColor:"transparent",":focus":{...Ud("pointer"),outline:"none"},":hover":{...Ud("pointer")}}],"icon-button_container");(0,me.globalStyle)(`${Kd}:focus > div:first-of-type`,Bd),(0,me.globalStyle)(`${Kd}:focus > span:last-of-type`,qd),(0,me.globalStyle)(`${Kd}:hover > span:last-of-type`,qd),(0,me.globalStyle)(`${Kd}:active > span:last-of-type`,qd),(0,me.globalStyle)(`${Kd}:hover > div:first-of-type`,{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.tertiary.contrastHover)}),(0,me.globalStyle)(`${Kd}:active > div:first-of-type`,{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.tertiary.contrastActive)});const Yd=(0,me.style)({":hover":{...Ud("default")}},"icon-button_processing_container"),Xd=(0,me.style)({":hover":{...Ud("default")}},"icon-button_success_container");(0,me.globalStyle)(`${Xd}:hover > div:first-of-type`,{backgroundColor:(0,me.fallbackVar)(ve.color.success.main)});const Qd=(0,me.style)({display:"flex",justifyContent:"center",alignItems:"center"},"icon-button_size"),Zd=(0,me.style)([Qd,{padding:Vd,width:ve.size.circle.sm,height:ve.size.circle.sm}],"icon-button_size_sm"),Jd=(0,me.style)([Qd,{padding:ve.space[200],width:ve.size.tapTarget.lg,height:ve.size.tapTarget.lg}],"icon-button_size_xl"),ep=(0,me.style)([Qd,{padding:ve.space[150],width:ve.size.tapTarget.default,height:ve.size.tapTarget.default}],"icon-button_size_lg"),tp=(0,me.style)({position:"relative",...Ud("pointer"),borderRadius:ve.border.radius.interactive,border:"none",backgroundColor:"transparent",display:"inline-flex",":focus":Bd},"icon-button_base"),rp=(0,me.style)({color:(0,me.fallbackVar)(Oe.main,ve.color.primary.contrast),background:(0,me.fallbackVar)(Oe.background,ve.color.primary.main),":hover":{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.primary.mainHover)},":active":{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.mainActive)}},"icon-button_primary"),np=(0,me.style)({color:(0,me.fallbackVar)(Oe.main,ve.color.primary.contrast)},"icon-button_inverse"),ap=(0,me.style)({color:(0,me.fallbackVar)(Oe.main,ve.color.tertiary.main),background:(0,me.fallbackVar)(Oe.background,ve.color.tertiary.contrast),":hover":{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.tertiary.contrastHover)},":active":{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.tertiary.contrastActive)}},"icon-button_secondary"),op=(0,me.style)({background:(0,me.fallbackVar)(Oe.background,ve.color.primary.contrast),color:(0,me.fallbackVar)(Oe.main,ve.color.primary.main),":hover":{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.primary.contrastHover)},":active":{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.contrastActive)}},"icon-button_secondary_inverse"),ip=(0,me.style)({color:(0,me.fallbackVar)(Oe.main,ve.color.background.mediumContrast),background:(0,me.fallbackVar)(Oe.background),":hover":{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.background.surfaceHover)},":active":{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.background.surfaceActive)}},"icon-button_tertiary"),lp=(0,me.style)({color:(0,me.fallbackVar)(Oe.main,ve.color.overlay.contrast),background:(0,me.fallbackVar)(Oe.background,ve.color.overlay.main),":hover":{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.overlay.mainHover)},":active":{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.overlay.mainActive)}},"icon-button_tertiary_inverse"),sp=(0,me.style)({pointerEvents:"none"},"icon-button_icon");(0,me.globalStyle)(`${tp}:hover > ${sp}`,{color:(0,me.fallbackVar)(Oe.hoverMain)}),(0,me.globalStyle)(`${tp}:active > ${sp}`,{color:(0,me.fallbackVar)(Oe.activeMain)});const cp=(0,me.style)({...vt,borderRadius:ve.border.radius.interactive,width:Wd,height:Wd},"icon-button_shimmer"),up=(0,me.style)({width:ve.size.circle.sm,height:ve.size.circle.sm},"icon-button_shimmer_size_sm"),dp=(0,me.style)({width:ve.size.circle.lg,height:ve.size.circle.lg},"icon-button_shimmer_size_xl"),pp=(0,me.style)({width:ve.size.circle.md,height:ve.size.circle.md},"icon-button_shimmer_size_lg"),fp=(0,me.style)({margin:0},"icon-button_loading_spinner"),hp=(0,me.style)({pointerEvents:"none"},"icon-button_processing_state"),mp=(0,me.style)({pointerEvents:"none",backgroundColor:(0,me.fallbackVar)(Oe.background,ve.color.success.main),color:(0,me.fallbackVar)(Oe.main,ve.color.success.contrast),":hover":{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.success.main),...Ud("default")},":active":{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.success.main)}},"icon-button_success_state"),gp=(0,me.style)({display:"-webkit-box",textAlign:"center",padding:`${ve.space[100]} ${ve.space[100]} 0 ${ve.space[100]}`,width:"inherit",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},"icon-button_label"),yp=(0,me.style)({width:ve.size.tapTarget.default,height:ve.size.tapTarget.default,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",...Ud("pointer"),":focus":{outline:"none"}},"icon-button_small_tap_container");(0,me.globalStyle)(`${yp}:focus > div:first-of-type:not(${mp}):not(${hp})`,Bd),(0,me.globalStyle)(`${yp}:hover > ${rp}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.primary.mainHover)}),(0,me.globalStyle)(`${yp}:active > ${rp}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.mainActive)}),(0,me.globalStyle)(`${yp}:hover > ${ap}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.tertiary.contrastHover)}),(0,me.globalStyle)(`${yp}:active > ${ap}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.tertiary.contrastActive)}),(0,me.globalStyle)(`${yp}:hover > ${ip}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.background.surfaceHover)}),(0,me.globalStyle)(`${yp}:active > ${ip}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.background.surfaceActive)}),(0,me.globalStyle)(`${yp}:hover > ${op}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.primary.contrastHover)}),(0,me.globalStyle)(`${yp}:active > ${op}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.contrastActive)}),(0,me.globalStyle)(`${yp}:hover > ${lp}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.hoverBack,ve.color.overlay.mainHover)}),(0,me.globalStyle)(`${yp}:active > ${lp}:not(${mp}):not(${hp})`,{background:(0,me.fallbackVar)(Oe.activeBack,ve.color.overlay.mainActive)}),he.endFileScope();var vp=["as","iconName","svgIconComponent","className","label","iconClassName","children","buttonType","btnState","screenReaderText","inverse","size","isLoading"];function bp(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 wp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xp=(0,pe.forwardRef)((function(e,t){var r=e.as,n=e.iconName,a=e.svgIconComponent,o=e.className,i=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,m=e.size,g=void 0===m?"lg":m,y=e.isLoading,v=ye(e,vp),b="sm"!==g&&o;if(y){var w=Ke(cp,{sm:up,xl:dp,lg:pp}[g],b),x="sm"!==g?wp({},v):{},k=fe().createElement(wt,ge({className:w,isInverse:h,hasStyleDefaults:!1},x,{"data-ppui":"true"}),s);return"sm"===g?fe().createElement(r||"button",ge({className:Ke(yp,o)},v,{"data-ppui":"true"}),k):k}var S={sm:"xs",xl:"md",lg:"sm"}[g],_={sm:Zd,xl:Jd,lg:ep},E=i||"sm"===g,C=Ke(tp,_[g],"primary"===u&&rp,"secondary"===u&&ap,"tertiary"===u&&ip,h&&np,"secondary"===u&&h&&op,"tertiary"===u&&h&&lp,"success"===p&&mp,"processing"===p&&hp,!E&&b),$=Ke(tp,"sm"===g?"":_[g],ap,"success"===p&&mp,"processing"===p&&hp),A=r||"button";(i||"sm"===g)&&(A="div");var T,O,P="button"===A?"button":null,F=a?fe().createElement(a,{className:Ke(sp,l),name:n,size:S,"aria-hidden":"true","data-ppui":"true"}):null,R=E?{}:wp({},v),z=wp({className:i?$:C,ref:t,type:P,disabled:p&&"initial"!==p},R),L=fe().createElement(A,ge({"data-ppui-info":"icon-button_4.2.2__8.12.0"},z),"initial"!==p?function(){var e=fe().createElement($o,{size:S,className:sp,"data-ppui":"true"});if("processing"===p){var t={className:Ke(sp,fp),inverse:!i&&("primary"===u||"tertiary"===u&&h),size:S};e=fe().createElement(ms,ge({},t,{"data-ppui":"true"}))}return fe().createElement(fe().Fragment,null,e,fe().createElement("span",{className:ot,role:"status","data-ppui":"true"},f||p))}():fe().createElement(fe().Fragment,null,F,!i&&fe().createElement("span",{className:ot,"data-ppui":"true"},s)));return i?fe().createElement(fe().Fragment,null,(T=null!=r?r:"button",O=Ke(Kd,"success"===p&&Xd,"processing"===p&&Yd,o),fe().createElement(T,ge({className:O,tabIndex:0},v,{"data-ppui":"true"}),L,fe().createElement("span",{className:gp,"data-ppui":"true"},i)))):"sm"===g?fe().createElement(r||"button",ge({className:Ke(yp,o)},v,{"data-ppui":"true"}),L):fe().createElement(fe().Fragment,null,L)}));he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-modal");const kp=ve.space[800],Sp=ve.size.icon.lg,_p=`calc(${ve.size.icon.sm} + ${ve.space[300]})`,Ep=`screen and (max-width: ${Ee})`,Cp=`screen and (max-width: ${_e})`,$p=`screen and (min-width: ${_e})`,Ap={textAlign:"center"},Tp={borderTopLeftRadius:ve.border.radius.jumbo,borderTopRightRadius:ve.border.radius.jumbo},Op=(0,me.style)([fl,{backgroundColor:ve.color.background.surface,display:"grid",gridTemplateRows:"auto 1fr auto",position:"relative",flexBasis:"100%"}],"modal-base"),Pp=(0,me.style)([((e="center")=>(0,me.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`modal-container_center_${e}`))("center"),{position:"fixed",inset:0,zIndex:We,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${ve.motion.duration.depart} ease-in-out,\n visibility ${ve.motion.duration.depart} ${ve.motion.duration.depart}`,backgroundColor:ve.color.overlay.mainHover,boxShadow:"none"}],"modal_backdrop");(0,me.globalStyle)(`${Pp} [aria-hidden="false"], ${Pp} [aria-hidden="true"]`,{transitionDuration:ve.motion.duration.arrive});const Fp=(0,me.style)([Et,{flex:"1 1 auto",overflow:"auto",position:"relative",borderRadius:"inherit","@media":{[Cp]:{padding:`0 ${ve.space[300]} ${ve.space[300]}`}}}],"modal-contents"),Rp=(0,me.style)({selectors:{[`${Fp}&`]:{padding:0,"@media":{[Ep]:{padding:"0"},[Cp]:{padding:0}}}}},"modal-content_no_padding"),zp=(0,me.style)(Ap,"modal-content_center"),Lp=(0,me.style)({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",position:"relative",flex:"0 0 auto",zIndex:1,minHeight:kp,padding:ve.space[150],"@media":{[Cp]:Tp}},"modal-header"),Np=(0,me.style)([fl,{"@media":{[Cp]:Tp}}],"modal-header_scrolled"),Ip=(0,me.style)({flex:`0 0 ${Sp}`,flexBasis:_p},"modal-header_action"),Mp=(0,me.style)([_t,{flex:"1 1 3rem",margin:ve.space[100],...Ap}],"modal-header_title"),Dp=(0,me.style)({flex:`0 0 ${Sp}`,flexBasis:_p,textAlign:"right"},"modal-header_close"),jp=(0,me.style)({display:"flex",flex:"1 1 3rem",justifyContent:"center",marginTop:ve.space[100]},"modal-header_logo"),Hp=(0,me.style)({width:ve.size.icon.md,height:ve.size.icon.md},"modal-header_logo_image"),Bp=(0,me.style)({position:"absolute",right:ve.space[50],top:ve.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:ve.space[50],right:"auto","@media":{[$p]:{left:ve.size.indicator.md}}}}},"modal-content_close");(0,me.globalStyle)(`${Bp}`,{"@media":{[$p]:{right:ve.size.indicator.md,top:ve.space[150]}}});const Vp=(0,me.style)({minHeight:kp,padding:ve.space[200],position:"relative",flex:"1 0 auto"},"modal-footer"),Wp=(0,me.style)([fl,{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}],"modal-footer_scrolled"),Up=(0,me.style)({display:"flex",justifyContent:"center"},"modal-footer_align_center"),Gp=(0,me.style)({display:"flex",justifyContent:"end"},"modal-footer_align_right");he.endFileScope();var qp=["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"],Kp=function(){return!0},Yp=function(e){var t,r,n,a,o=e.requestClose,i=e.onBeforeClose,l=void 0===i?Kp:i,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,m=e.closeButtonProps,g=void 0===m?{}:m,y=e.hideTitle,v=e.showLogo,b=e.mobileFixedHeight,w=e.showGripper,x=void 0!==w&&w,k=e.title,S=e.id,_=e.action,E=e.headerContents,C=e.footerContents,$=e.footerAlign,A=e.children,T=e.returnFocusToTrigger,O=void 0===T||T,P=e.headerClassName,F=e.containerClassName,R=e.contentContainerRef,z=e.wrapperClassName,L=e.footerClassName,N=e.skipFormFocus,I=e.contentScrollTop,M=void 0===I?0:I,D=e.onContentScroll,j=e.showDrawer,H=void 0!==j&&j,B=ye(e,qp),V=el((0,pe.useState)(!1),2),W=V[0],U=V[1],G=el((0,pe.useState)(!1),2),q=G[0],K=G[1],Y=el((0,pe.useState)(.5),2),X=Y[0],Q=Y[1],Z=(0,pe.useRef)(),J=(0,pe.useRef)(),ee=(0,pe.useRef)(),te=(0,pe.useRef)(),re=R||te,ne=(0,pe.useRef)(),ae=!!Ie()&&"rtl"===getComputedStyle(document.body).direction,oe="dynamic"===b||x,ie=parseInt(_e,10),le=!!Ie()&&(null===(t=window)||void 0===t?void 0:t.innerWidth)<ie,se=v&&!le,ce=null!=S?S:Ze(),ue=!!_||!h||!y||!!E||se,de=function(){if(re&&re.current){var e=re.current,t=0!==e.scrollTop;if(t!==W&&U(t),C){var r=e.scrollTop+e.offsetHeight!==e.scrollHeight;r!==q&&K(r)}}},he=function(){var e=Z.current;if(e){var t=.9*window.innerHeight;"100"===b?e.style.height="".concat(window.innerHeight):"90"===b?e.style.height="".concat(t,"px"):"50"===b?e.style.height="".concat(.5*window.innerHeight,"px"):e.style.maxHeight="".concat(t,"px")}};(0,pe.useEffect)((function(){var e,t,r;return c||(de(),null===(e=window)||void 0===e||e.setTimeout((function(){var e=!1;if(ne&&ne.current){var t=ne.current.querySelector("input");t&&(t.focus(),e=!0)}if(!e&&!N&&re&&re.current){var r=re.current.querySelectorAll("a, button, textarea, input, select");r.length&&(r[0].focus(),e=!0)}if(!e&&ue)if(_&&ee&&ee.current){var n=ee.current.querySelectorAll("a, button, select");n.length&&n[0].focus()}else{var a=J.current;a&&a.focus()}}),500),(Ie()&&"ontouchstart"in window||"undefined"!=typeof navigator&&(null!==(r=navigator.maxTouchPoints)&&void 0!==r?r:navigator.msMaxTouchPoints))&&window.innerHeight&&(window.addEventListener("resize",he,!1),oe?((t=Z.current)&&(t.style.height="".concat(window.innerHeight*X,"px"),t.style.maxHeight="fit-content"),function(){var e=re&&re.current;.5===X&&(e.style.overflow="hidden"),.9===X&&(e.style.overflow="scroll")}()):he())),function(){window.removeEventListener("resize",he,!1)}}),[c,X]),(0,pe.useEffect)((function(){!c&&re.current&&(re.current.scrollTop=M)}),[M,c]);var me=Ke(Ms,!c&&Ds,H&&Zs),ve=Ke(Op,zs,Ls,"100"===b&&Ys,"90"===b&&Xs,"50"===b&&Qs,oe&&Qs,!c&&Ns,H&&!ae&&tc,H&&ae&&rc),be=Ke(Fp,Bs,u&&zp,ue&&Hs,d&&Rp,H&&nc),we=c?"true":"false",xe=function(e,t){l(t)&&(o(e,t),n=null,a=null)},ke=h?null:fe().createElement(xp,ge({svgIconComponent:Po,onClick:function(e){xe(e,"closeButton")},ref:J,buttonType:"tertiary"},g,{"data-ppui":"true"}),f),Se=function(e,t){var r=e.changedTouches[0],o=r.pageX,i=r.pageY,l=n-o,s=a-i;Math.abs(s)>Math.abs(l)&&(s<0&&(!t||0===t.scrollTop)&&(oe?(Q(.5),(s<-150||.5===X)&&xe(e,"swipeDown")):xe(e,"swipeDown")),s>0&&oe&&Q(.9)),n=null,a=null},Ee=function(e){e.preventDefault()},Ce=function(e){if(!a&&!n){var t=e.changedTouches[0];a=t.pageY,n=t.pageX}},$e="header_".concat(ce),Ae={role:"dialog",className:z,"aria-modal":"true","aria-hidden":we};se||y?Ae["aria-label"]=k:Ae["aria-labelledby"]=$e;var Te=_?fe().createElement("div",{className:Dp,"data-ppui":"true"}):null,Oe=ke?fe().createElement("div",{className:Ip,"data-ppui":"true"}):null,Pe=ke?fe().createElement("div",{className:Dp,"data-ppui":"true"},ke):Te,Fe=_?fe().createElement("div",{className:Ip,ref:ee,"data-ppui":"true"},_):Oe,Re=se?jp:Mp,ze=fe().createElement("div",{className:Re,id:$e,"aria-live":"assertive","data-ppui":"true"},se?fe().createElement("img",{src:"https://www.paypalobjects.com/paypal-ui/logos/svg/paypal-mark-color.svg",alt:"paypal-logo",className:Hp,"data-ppui":"true"}):y?null:k),Le=E?fe().createElement("div",{className:qs,ref:ne,"data-ppui":"true"},E):null,Ne=ue?fe().createElement("header",{className:Ke(Lp,Vs,Fe&&Ws,x&&js,x?Gs:Us,W&&Np,P),onTouchStart:Ce,onTouchMove:Ee,onTouchEnd:function(e){Se(e,null)},"data-ppui":"true"},Fe,ze,Pe,Le):null,Me=C?fe().createElement("footer",{className:Ke(Vp,q&&Wp,"center"===$&&Up,"right"===$&&Gp,L),"data-ppui":"true"},C):null,De=null===(r=document.getElementsByClassName("ppui-theme")[0])||void 0===r?void 0:r.classList[1];return fe().createElement("div",ge({},Ae,{className:Ke(De,me),"data-ppui-info":"sheet_2.2.4__8.12.0"}),fe().createElement(Hd,{enabled:!c,onEscapeKey:function(e){e.preventDefault(),xe(e,"ESC")},onClickOutside:function(e){xe(e,"backdropClick")},returnFocus:O,className:Ke(Rs,H&&Js),"data-ppui":"true"},fe().createElement("article",ge({className:Ke(ve,F)},B,{ref:Z,"aria-hidden":we,"data-ppui":"true"}),Ne,fe().createElement("section",{className:Ke(be,s),onScroll:function(){if(re&&re.current){var e=re.current;D&&D(e.scrollTop)}de()},ref:re,onTouchStart:Ce,onTouchMove:Ee,onTouchEnd:function(e){var t=re&&re.current;oe&&Se(e,t)},"data-ppui":"true"},A),Me)))},Xp=["isOpen","onOpen","onCloseComplete","containerRef"],Qp=function(e){var t=e.isOpen,r=e.onOpen,n=e.onCloseComplete,a=e.containerRef,o=ye(e,Xp),i=el((0,pe.useState)(!1),2),l=i[0],s=i[1];(0,pe.useEffect)((function(){s(!0)}),[]);var c=fe().createElement(lc,{shouldHide:!t,onOpen:r,onCloseComplete:n,"data-ppui":"true"},(function(e){return fe().createElement(Yp,ge({},e,o,{"data-ppui":"true"}))})),u=a&&a.current;return l&&(u?oc().createPortal(c,u):c)},Zp=["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 Jp(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 ef(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jp(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var tf=function(e){e.name;var t,r=e.value,n=e.className,a=e.containerClassName,o=e.itemClassName,i=e.mobileHeaderClassName,l=e.sheetClassName,s=e.sheetWrapperClassName,c=e.id,u=void 0===c?Ze("selectionMenu_"):c,d=e.initialItemFocus,p=void 0===d||d,f=e.isOpen,h=e.ignoreKeyboard,m=e.mobileTitle,g=e.mobileHeaderContents,y=e.outsideClickCheck,v=e.onOpen,b=e.onClose,w=e.onSelection,x=e.options,k=e.returnFocusToTrigger,S=void 0===k||k,_=e.selectedIndex,E=void 0===_?0:_,C=e.activeItem,$=void 0===C?-1:C,A=e.triggerElementId,T=e.triggerElementRef,O=e.rtl,P=void 0!==O&&O,F=e.isLoadingOptions,R=void 0!==F&&F,z=e.searchEnabled,L=void 0!==z&&z,N=e.mobileFixedHeight,I=e.hasSections,M=void 0!==I&&I,D=e.highlightText,j=void 0===D?null:D,H=e.isTextHighlighted,B=void 0!==H&&H,V=ye(e,Zp),W=(0,pe.useRef)(),U=(0,pe.useRef)(),G=(0,pe.useRef)(),q=(0,pe.useRef)(""),K=x&&x.length>0,Y=function(e){var t=el(fe().useState(e),2),r=t[0],n=t[1],a=fe().useRef(r);return[a,function(e){a.current=e,n(e)}]}(p?E:-1),X=el(Y,2),Q=X[0],Z=X[1],J=el((0,pe.useState)(!0),2),ee=J[0],te=J[1],re=qe(es),ne=qe("67.5rem"),ae=qe(_e),oe=!!Ie()&&window.innerWidth<ae,ie=function(e){return e&&e.current?e.current:null},le=ie(T)||(A&&Me()?document.getElementById(A):null),se=function(e){return e.reduce((function(e,t){return(null==t?void 0:t.suggestions)&&e.push.apply(e,Ji(t.suggestions)),e}),[])},ce=function(e){var t=ie(W),r=null==le?void 0:le.contains(e.target);y&&!y(e)||r||t&&!t.contains(e.target)&&b(e,"backdropClick")},ue=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}))}(M?se(x):x,r.dataset.value);Z(n),w(n,e)},de=function(e){!function(e){e.preventDefault();var r=Q.current,n=new Je(e.key||e.keyCode),a=M?se(x):x;if(n.IS_ARROW_UP)te(!0),r>0&&Z(Xl(a,r,"previous"));else if(n.IS_ARROW_DOWN)te(!0),r<a.length-1&&Z(Xl(a,r,"next"));else if(n.IS_ENTER)w(r,e);else if(n.IS_TAB||n.IS_ESC){var o=n.IS_TAB?Je.NAME_TAB:Je.NAME_ESC;"function"!=typeof b||oe||b(e,o),null==le||le.focus()}else if(L&&1===e.key.length){clearTimeout(t),q.current=q.current+e.key,t=setTimeout((function(){q.current=""}),700);var i=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())}))}(x,q.current);i>=0&&(te(!0),Z(i))}}(e)},he=function(e){if(void 0!==e)return e;if(void 0!==E&&E>=0)if(M){var t=se(x);if(t&&t[E]&&void 0!==t[E].value)return t[E].value}else if(x&&x[E]&&void 0!==x[E].value)return x[E].value}(r),me=h?-1:Q.current,ve=function(){return f&&K?(arguments.length>0&&void 0!==arguments[0]?arguments[0]:x).map((function(e,t){var r=e.hasOwnProperty("value")?e.value:e.label,n=!e.unselectable&&(void 0===he?E===t:r===he);return ef(ef({},e),{},Re(Re({decoration:e.decoration?{thumbnail:e.decoration,align:"center"}:null,trailingContent:{align:"center"},className:o,onClick:ue,role:"option",isSelected:n},"data-value",r),"value",r))})):[]},be=f&&K?x.map((function(e){return{title:e.title,id:e.id,sectionItems:ve(e.suggestions)}})):[];(0,pe.useLayoutEffect)((function(){return f&&!oe&&function(){var e=null==le?void 0:le.getBoundingClientRect().width;if(R)ie(G).style.width="".concat(e||ne,"px");else{var t=ie(U);if(!t)return;var r=t.getBoundingClientRect().width;e>re&&e>r&&(t.style.width="".concat(e,"px"))}}(),f&&K&&(document.addEventListener("click",ce),h||document.body.addEventListener("keydown",de),oe?te(!1):(te(p),me<0&&Z(0)),"function"==typeof v&&v(oe)),function(){document.removeEventListener("click",ce),h||document.body.removeEventListener("keydown",de),te(!1)}}),[f,R]);var we=P?"rtl":null,xe=M?be:ve(x),ke=xe&&fe().createElement(Jl,ge({className:Ke(rs,n),id:u,tabIndex:0,"aria-hidden":!f,hasSections:!!M,ref:U,dir:we,options:xe,activeIndex:$,focusedIndex:me,focusActive:!oe&&ee,highlightText:j,isTextHighlighted:B},V,{"data-ppui":"true"})),Se=R?fe().createElement("div",{ref:G,className:ns,"data-ppui":"true"},fe().createElement(ms,{screenReaderText:"loading",size:"md","data-ppui":"true"})):ke;return function(){if(oe){var e=g?"90":void 0;return fe().createElement(Qp,{isOpen:f,onCloseComplete:b,title:m,headerClassName:i,headerContents:g,noPadding:!0,noCloseButton:!1,mobileFixedHeight:N||e,className:l,wrapperClassName:s,returnFocusToTrigger:S,"data-ppui":"true"},Se)}return f&&fe().createElement("div",{ref:W,className:Ke(ts,a),"data-ppui-info":"selection-menu_4.1.4__8.12.0"},Se)}()};he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-combobox");const rf=(0,me.style)({position:"relative"},"combobox_base"),nf=(0,me.style)({top:ve.size.field.lg},"combobox_menu"),af=(0,me.style)({cursor:"pointer"},"combobox_affordance_trigger"),of=(0,me.style)({opacity:0,position:"absolute",pointerEvents:"none",width:0,height:0},"combobox_hidden_select");he.endFileScope();var lf=["name","options","value","text","id","dir","label","onOpen","onChange","onBlur","onTextChange","onFocus","getMenuOptions","placeholder","isLoadingOptions","emptyMessage","mobileTitle","sheetWrapperClassName","autoComplete","hasSections","isTextHightlighted","isTextHighlighted","sheetInputRef"];function sf(){sf=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.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 o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new T(n||[]);return a(i,"_invoke",{value:E(e,r,l)}),i}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,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=v.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(a,o,i,l){var s=d(e[a],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Pe(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,l)}))}l(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function E(t,r,n){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){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 o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(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[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=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 o.next=o}}throw new TypeError(Pe(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(_.prototype,l,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new _(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(k),c(k,s,"Generator"),c(k,i,(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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.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 o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},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 cf(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 uf=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},df=function(e){var t;return null!==(t=e.value)&&void 0!==t?t:e.label},pf=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?cf(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cf(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(df(e)))})):n.hasOwnProperty("id")||(n.id="".concat(t,"__").concat(df(r))),e.push(n),e}),[])},ff=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()},function(e){return Object.entries(e).reduce((function(e,t){var r=el(t,2),n=r[0],a=r[1];return e[n]=a,e}),{})}(e))})):[]};(0,pe.forwardRef)((function(e,t){var r,n=e.name,a=void 0===n?"NO_NAME":n,o=e.options,i=e.value,l=void 0===i?"":i,s=e.text,c=e.id,u=e.dir,d=e.label,p=e.onOpen,f=e.onChange,h=e.onBlur,m=e.onTextChange,g=e.onFocus,y=void 0===g?null:g,v=e.getMenuOptions,b=void 0===v?uf:v,w=e.placeholder,x=e.isLoadingOptions,k=e.emptyMessage,S=void 0===k?"No results. Try something else or check for errors.":k,_=e.mobileTitle,E=void 0===_?d:_,C=e.sheetWrapperClassName,$=e.autoComplete,A=e.hasSections,T=void 0!==A&&A,O=e.isTextHightlighted,P=void 0!==O&&O,F=e.isTextHighlighted,R=void 0!==F&&F,z=e.sheetInputRef,L=ye(e,lf),N=el((0,pe.useState)(!1),2),I=N[0],M=N[1],D=el((0,pe.useState)(-1),2),j=D[0],H=D[1],B=el((0,pe.useState)(""),2),V=B[0],W=B[1],U=el((0,pe.useState)(o),2),G=U[0],q=U[1],K=el((0,pe.useState)(l),2),Y=K[0],X=K[1],Q=el((0,pe.useState)(!1),2),Z=Q[0],J=Q[1],ee=el((0,pe.useState)(!1),2),te=ee[0],re=ee[1],ne=el((0,pe.useState)(x),2),ae=ne[0],oe=ne[1],ie=(0,pe.useRef)(),le=z||ie,se=(0,pe.useRef)(),ce=function(e){return e.reduce((function(e,t){return t.suggestions&&e.push.apply(e,Ji(t.suggestions)),e}),[])},ue=function(e,t){if(!(""===t||e&&o))return t;var r=T?ce(o):o,n=null==r?void 0:r.find((function(t){return e===df(t)}));return n?n.label:e},de=ue(l,s),he=el((0,pe.useState)(de||""),2),me=he[0],ve=he[1],be=el((0,pe.useState)(de||""),2),we=be[0],xe=be[1],ke=el((0,pe.useState)(""),2),Se=ke[0],_e=ke[1],Ee=null!=c?c:Ze("Combobox_"),Ce="combo_txt_".concat(Ee),$e="combo_menu_".concat(Ee),Ae=function(){var e,t=(e=sf().mark((function e(t){var r,n,i,l,s;return sf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=b===uf)||oe(!0),re(!1),!T){e.next=18;break}return n=rt(o),e.t0=pf,e.next=8,b(n,t,T);case 8:e.t1=e.sent,e.t2=a,e.t3=T,i=(0,e.t0)(e.t1,e.t2,e.t3),l=!0,i.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:S,unselectable:!0}]}),re(!0),xe("")),q(n),e.next=26;break;case 18:return e.t4=pf,e.next=21,b(o,t);case 21:e.t5=e.sent,e.t6=a,(s=(0,e.t4)(e.t5,e.t6))&&0!==s.length||(s=[{label:S,unselectable:!0}],re(!0),xe("")),q(s);case 26:H(-1),W(""),r||oe(!1);case 28:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Xi(o,n,a,i,l,"next",e)}function l(e){Xi(o,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}(),Te=function(e){"function"==typeof f&&f({target:{name:a,value:e}})},Oe=function(e){M(e),J(e)},Pe=function(){x||(Ae(""),_e("")),Oe(!0),se.current&&se.current.select()},Fe=function(e){"function"==typeof m&&m(e),_e(e.target.value),ve(e.target.value),Ae(e.target.value),xe(""),X("")},Re=function(){Oe(!1),W("")},ze=function(e){r=e;var t=(T?ce(G):G)[e];t&&!t.unselectable&&(xe(t.value||t.label),ve(t.label),X(df(t)),_e(t.label),Te(df(t)),Oe(!1))},Le=function(){return!j||j<0?"":(T?ce(G):G)[j].id},Ne=function(e){var t=e.key||e.keyCode,r=new Je(t),n=T?ce(G):G;r.IS_ARROW_UP?H(Xl(n,j,"previous")):r.IS_ARROW_DOWN?I?H(Xl(n,j,"next")):Pe():r.IS_ENTER||"Unidentified"===t?(e.preventDefault(),I?ze(j):Pe()):(r.IS_TAB||r.IS_ESC)&&Re()},Ie=V?null:w,Me="sheet_t_".concat(a),De=I?Oo:Ao,je=fe().createElement(De,{onClick:function(e){e.stopPropagation(),I?Oe(!1):(J(!0),Pe())},size:"sm","aria-hidden":"true","data-testid":"combo-affordance",color:"BackgroundMediumContrast",className:af,"data-ppui":"true"});(0,pe.useEffect)((function(){X(l),ve(ue(l,""));var e=T?ce(G):G,t=null==e?void 0:e.find((function(e){return l===df(e)}));t&&(t.hasOwnProperty("value")?xe(t.value):xe(t.label))}),[l]),(0,pe.useEffect)((function(){oe(x)}),[x]),(0,pe.useEffect)((function(){s&&ve(s)}),[s]);var He=function(e){return e&&e.current?e.current:null};(0,pe.useEffect)((function(){if(!x&&I){var e=He(le);e&&e.focus()}o&&o.length&&(q(o),ve(ue(l,me)))}),[x,o]);var Be={role:"combobox",autoComplete:null!=$?$:"new-password","aria-expanded":I,"aria-haspopup":!0,"aria-controls":$e,"aria-activedescendant":Le(),value:me,placeholder:V?" ":w,placemat:V,inputRef:se},Ve=!te&&(P||R),We=T?ce(G):G,Ue=!0;return null==We||We.map((function(e){""===(null==e?void 0:e.value)&&(Ue=!1)})),fe().createElement("div",{dir:u,className:rf,"data-ppui-info":"combobox_4.1.4__8.12.0"},fe().createElement("select",{className:of,name:a,"aria-hidden":"true",id:"hiddenSelect_".concat(a),tabIndex:-1,role:"hiddenSelect_".concat(a),onChange:function(e){return ze(e.target.selectedIndex-1)},value:we,"data-ppui":"true"},Ue&&fe().createElement("option",{role:"hiddenSelect_option",value:"","data-ppui":"true"},d),(null==We?void 0:We.length)&&We.map((function(e,t){return fe().createElement("option",{key:t,value:e.value,role:"hiddenSelect_option","data-ppui":"true"},e.label)}))),fe().createElement(Yi,ge({name:"combo_t_".concat(a),label:d,id:Ce,rightIcon:je,setFocus:Z},L,Be,{onChange:function(e){"function"==typeof m&&m(e),ve(e.target.value),""===e.target.value&&xe(""),Ae(e.target.value),X(""),I||Oe(!0)},onClick:function(){I||Pe()},onKeyDown:Ne,onFocus:function(e){var t=He(le);y&&!t&&y(e)},onBlur:function(){if(!le.current){var e=Y?ue(Y,""):Y;if(!me&&Y)X(""),Te("");else if(e.toLowerCase()!==me.toLowerCase()){var t=G.find((function(e){var t,r;return(null==e||null===(t=e.label)||void 0===t?void 0:t.toLowerCase())===me.toLowerCase()||(null==e||null===(r=e.value)||void 0===r?void 0:r.toLowerCase())===me.toLowerCase()}));if(t){var r=G.indexOf(t);ze(r),ve(t.label)}else X(""),Te(""),ve("")}h&&h({target:{name:a,textValue:me,value:Y}})}},"data-reactcombo":!0,ref:t,"data-ppui":"true"})),fe().createElement(tf,{name:"combo_m_".concat(a),value:Y,id:$e,isLoadingOptions:ae,initialItemFocus:!1,ignoreKeyboard:!0,isOpen:I,mobileTitle:E,mobileHeaderContents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ltr";return fe().createElement("div",{dir:e,"data-ppui":"true"},fe().createElement(Yi,{name:Me,ref:le,label:d,value:Se,placeholder:Ie,placemat:V,onChange:Fe,onKeyDown:function(e){return Ne(e)},autoComplete:"off",role:"combobox","aria-controls":$e,"aria-activedescendant":Le(),"data-ppui":"true"}))}(u),outsideClickCheck:function(e){return e.target.id!==Ce},onOpen:p,onClose:Re,selectedIndex:r,onSelection:ze,activeItem:j,triggerElementRef:se,options:ff(G,T),containerClassName:nf,sheetWrapperClassName:C,hasSections:T,highlightText:me,isTextHighlighted:Ve,"data-ppui":"true"}))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-grid");const hf="0.75rem",mf={xs:`(min-width: ${ke})`,sm:`(min-width: ${Se})`,md:`(min-width: ${_e})`,lg:`(min-width: ${Ee})`,xl:`(min-width: ${Ce})`,xxl:`(min-width: ${$e})`},gf=(e,t)=>(0,me.style)({"@media":{[mf[e]]:{msFlex:`0 0 ${t/12*100}%`,flex:`0 0 ${t/12*100}%`,maxWidth:t/12*100+"%"}}},`grid-col-${e}-${t}`),yf=(e,t)=>(0,me.style)({"@media":{[mf[e]]:{marginLeft:t/12*100+"%"}}},`grid-col-offset-${e}-${t}`),vf=(e,t)=>(0,me.style)({"@media":{[mf[e]]:{order:t}}},`grid-col-order-${e}-${-1===t?"first":13===t?"last":t}`),bf=(e,t)=>(0,me.style)({"@media":{[mf[e]]:{display:`${t} !important`}}},`grid-col-display-${e}-${t}`),wf=(e,t,r)=>(0,me.style)({"@media":{[mf[e]]:{justifyContent:r}}},`grid-row-justify-content-${e}-${t}`),xf=(e,t,r)=>(0,me.style)({"@media":{[mf[e]]:{alignSelf:r}}},`grid-row-align-self-${e}-${t}`),kf=(e,t,r)=>(0,me.style)({"@media":{[mf[e]]:{alignContent:r}}},`grid-row-align-content-${e}-${t}`),Sf=(e,t,r)=>(0,me.style)({"@media":{[mf[e]]:{alignItems:r}}},`grid-row-align-items-${e}-${t}`),_f=(e,t)=>(0,me.style)({"@media":{[mf[e]]:{msFlexDirection:t,flexDirection:t}}},`grid-row-flex-${e}-${t}`),Ef=e=>(0,me.style)({msFlex:`0 0 ${e/12*100}%`,flex:`0 0 ${e/12*100}%`,maxWidth:e/12*100+"%"},`grid-col-${e}`),Cf={paddingTop:ve.space[100],paddingBottom:ve.space[100]},$f={position:"relative",width:"100%",minHeight:"1px",paddingRight:hf,paddingLeft:hf},Af=((0,me.style)({marginLeft:"8.333333333333332%"},"grid-col-offset-1"),(0,me.style)({marginLeft:"16.666666666666664%"},"grid-col-offset-2"),(0,me.style)({marginLeft:"25%"},"grid-col-offset-3"),(0,me.style)({marginLeft:"33.33333333333333%"},"grid-col-offset-4"),(0,me.style)({marginLeft:"41.66666666666667%"},"grid-col-offset-5"),(0,me.style)({marginLeft:"50%"},"grid-col-offset-6"),(0,me.style)({marginLeft:"58.333333333333336%"},"grid-col-offset-7"),(0,me.style)({marginLeft:"66.66666666666666%"},"grid-col-offset-8"),(0,me.style)({marginLeft:"75%"},"grid-col-offset-9"),(0,me.style)({marginLeft:"83.33333333333334%"},"grid-col-offset-10"),(0,me.style)({marginLeft:"91.66666666666666%"},"grid-col-offset-11"),(0,me.style)({marginLeft:"100%"},"grid-col-offset-12"),yf("xs",1),yf("xs",2),yf("xs",3),yf("xs",4),yf("xs",5),yf("xs",6),yf("xs",7),yf("xs",8),yf("xs",9),yf("xs",10),yf("xs",11),yf("xs",12),yf("sm",1),yf("sm",2),yf("sm",3),yf("sm",4),yf("sm",5),yf("sm",6),yf("sm",7),yf("sm",8),yf("sm",9),yf("sm",10),yf("sm",11),yf("sm",12),yf("md",1),yf("md",2),yf("md",3),yf("md",4),yf("md",5),yf("md",6),yf("md",7),yf("md",8),yf("md",9),yf("md",10),yf("md",11),yf("md",12),yf("lg",1),yf("lg",2),yf("lg",3),yf("lg",4),yf("lg",5),yf("lg",6),yf("lg",7),yf("lg",8),yf("lg",9),yf("lg",10),yf("lg",11),yf("lg",12),yf("xl",1),yf("xl",2),yf("xl",3),yf("xl",4),yf("xl",5),yf("xl",6),yf("xl",7),yf("xl",8),yf("xl",9),yf("xl",10),yf("xl",11),yf("xl",12),yf("xxl",1),yf("xxl",2),yf("xxl",3),yf("xxl",4),yf("xxl",5),yf("xxl",6),yf("xxl",7),yf("xxl",8),yf("xxl",9),yf("xxl",10),yf("xxl",11),yf("xxl",12),(0,me.style)({order:1},"grid-col-order-1"),(0,me.style)({order:2},"grid-col-order-2"),(0,me.style)({order:3},"grid-col-order-3"),(0,me.style)({order:4},"grid-col-order-4"),(0,me.style)({order:5},"grid-col-order-5"),(0,me.style)({order:6},"grid-col-order-6"),(0,me.style)({order:7},"grid-col-order-7"),(0,me.style)({order:8},"grid-col-order-8"),(0,me.style)({order:9},"grid-col-order-9"),(0,me.style)({order:10},"grid-col-order-10"),(0,me.style)({order:11},"grid-col-order-11"),(0,me.style)({order:12},"grid-col-order-12"),(0,me.style)({order:13},"grid-col-order-last"),(0,me.style)({order:-1},"grid-col-order-first"),vf("xs",1),vf("xs",2),vf("xs",3),vf("xs",4),vf("xs",5),vf("xs",6),vf("xs",7),vf("xs",8),vf("xs",9),vf("xs",10),vf("xs",11),vf("xs",12),vf("xs",13),vf("xs",-1),vf("sm",1),vf("sm",2),vf("sm",3),vf("sm",4),vf("sm",5),vf("sm",6),vf("sm",7),vf("sm",8),vf("sm",9),vf("sm",10),vf("sm",11),vf("sm",12),vf("sm",13),vf("sm",-1),vf("md",1),vf("md",2),vf("md",3),vf("md",4),vf("md",5),vf("md",6),vf("md",7),vf("md",8),vf("md",9),vf("md",10),vf("md",11),vf("md",12),vf("md",13),vf("md",-1),vf("lg",1),vf("lg",2),vf("lg",3),vf("lg",4),vf("lg",5),vf("lg",6),vf("lg",7),vf("lg",8),vf("lg",9),vf("lg",10),vf("lg",11),vf("lg",12),vf("lg",13),vf("lg",-1),vf("xl",1),vf("xl",2),vf("xl",3),vf("xl",4),vf("xl",5),vf("xl",6),vf("xl",7),vf("xl",8),vf("xl",9),vf("xl",10),vf("xl",11),vf("xl",12),vf("xl",13),vf("xl",-1),vf("xxl",1),vf("xxl",2),vf("xxl",3),vf("xxl",4),vf("xxl",5),vf("xxl",6),vf("xxl",7),vf("xxl",8),vf("xxl",9),vf("xxl",10),vf("xxl",11),vf("xxl",12),vf("xxl",13),vf("xxl",-1),(0,me.style)({justifyContent:"flex-start !important"},"grid-justify-content-start"),(0,me.style)({justifyContent:"flex-end !important"},"grid-justify-content-end"),(0,me.style)({justifyContent:"center !important"},"grid-justify-content-center"),(0,me.style)({justifyContent:"space-between !important"},"grid-justify-content-between"),(0,me.style)({justifyContent:"space-around !important"},"grid-justify-content-around"),wf("xs","start","flex-start"),wf("xs","end","flex-end"),wf("xs","center","center"),wf("xs","between","space-between"),wf("xs","around","space-around"),wf("sm","start","flex-start"),wf("sm","end","flex-end"),wf("sm","center","center"),wf("sm","between","space-between"),wf("sm","around","space-around"),wf("md","start","flex-start"),wf("md","end","flex-end"),wf("md","center","center"),wf("md","between","space-between"),wf("md","around","space-around"),wf("lg","start","flex-start"),wf("lg","end","flex-end"),wf("lg","center","center"),wf("lg","between","space-between"),wf("lg","around","space-around"),wf("xl","start","flex-start"),wf("xl","end","flex-end"),wf("xl","center","center"),wf("xl","between","space-between"),wf("xl","around","space-around"),wf("xxl","start","flex-start"),wf("xxl","end","flex-end"),wf("xxl","center","center"),wf("xxl","between","space-between"),wf("xxl","around","space-around"),(0,me.style)({alignSelf:"auto !important"},"grid-align-self-auto"),(0,me.style)({alignSelf:"flex-start !important"},"grid-align-self-start"),(0,me.style)({alignSelf:"flex-end !important"},"grid-align-self-end"),(0,me.style)({alignSelf:"center !important"},"grid-align-self-center"),(0,me.style)({alignSelf:"baseline !important"},"grid-align-self-baseline"),(0,me.style)({alignSelf:"stretch !important"},"grid-align-self-stretch"),xf("xs","auto","auto"),xf("xs","start","flex-start"),xf("xs","end","flex-end"),xf("xs","center","center"),xf("xs","baseline","baseline"),xf("xs","stretch","stretch"),xf("sm","auto","auto"),xf("sm","start","flex-start"),xf("sm","end","flex-end"),xf("sm","center","center"),xf("sm","baseline","baseline"),xf("sm","stretch","stretch"),xf("md","auto","auto"),xf("md","start","flex-start"),xf("md","end","flex-end"),xf("md","center","center"),xf("md","baseline","baseline"),xf("md","stretch","stretch"),xf("lg","auto","auto"),xf("lg","start","flex-start"),xf("lg","end","flex-end"),xf("lg","center","center"),xf("lg","baseline","baseline"),xf("lg","stretch","stretch"),xf("xl","auto","auto"),xf("xl","start","flex-start"),xf("xl","end","flex-end"),xf("xl","center","center"),xf("xl","baseline","baseline"),xf("xl","stretch","stretch"),xf("xxl","auto","auto"),xf("xxl","start","flex-start"),xf("xxl","end","flex-end"),xf("xxl","center","center"),xf("xxl","baseline","baseline"),xf("xxl","stretch","stretch"),(0,me.style)({alignItems:"flex-start !important"},"grid-align-items-start"),(0,me.style)({alignItems:"flex-end !important"},"grid-align-items-end"),(0,me.style)({alignItems:"center !important"},"grid-align-items-center"),(0,me.style)({alignItems:"baseline !important"},"grid-align-items-baseline"),(0,me.style)({alignItems:"stretch !important"},"grid-align-items-stretch"),Sf("xs","start","flex-start"),Sf("xs","end","flex-end"),Sf("xs","center","center"),Sf("xs","baseline","baseline"),Sf("xs","stretch","stretch"),Sf("sm","start","flex-start"),Sf("sm","end","flex-end"),Sf("sm","center","center"),Sf("sm","baseline","baseline"),Sf("sm","stretch","stretch"),Sf("md","start","flex-start"),Sf("md","end","flex-end"),Sf("md","center","center"),Sf("md","baseline","baseline"),Sf("md","stretch","stretch"),Sf("lg","start","flex-start"),Sf("lg","end","flex-end"),Sf("lg","center","center"),Sf("lg","baseline","baseline"),Sf("lg","stretch","stretch"),Sf("xl","start","flex-start"),Sf("xl","end","flex-end"),Sf("xl","center","center"),Sf("xl","start","baseline"),Sf("xl","stretch","stretch"),Sf("xxl","start","flex-start"),Sf("xxl","end","flex-end"),Sf("xxl","center","center"),Sf("xxl","baseline","baseline"),Sf("xxl","stretch","stretch"),(0,me.style)({alignContent:"flex-start !important"},"grid-align-content-start"),(0,me.style)({alignContent:"flex-end"},"grid-align-content-end"),(0,me.style)({alignContent:"center !important"},"grid-align-content-center"),(0,me.style)({alignContent:"space-between !important"},"grid-align-content-between"),(0,me.style)({alignContent:"space-around !important"},"grid-align-content-around"),(0,me.style)({alignContent:"stretch !important"},"grid-align-content-stretch"),kf("xs","start","flex-start"),kf("xs","end","flex-end"),kf("xs","center","center"),kf("xs","between","space-between"),kf("xs","around","space-around"),kf("xs","stretch","stretch"),kf("sm","start","flex-start"),kf("sm","end","flex-end"),kf("sm","center","center"),kf("sm","between","space-between"),kf("sm","around","space-around"),kf("sm","stretch","stretch"),kf("md","start","flex-start"),kf("md","end","flex-end"),kf("md","center","center"),kf("md","between","space-between"),kf("md","around","space-around"),kf("md","stretch","stretch"),kf("lg","start","flex-start"),kf("lg","end","flex-end"),kf("lg","center","center"),kf("lg","between","space-between"),kf("lg","around","space-around"),kf("lg","stretch","stretch"),kf("xl","start","flex-start"),kf("xl","end","flex-end"),kf("xl","center","center"),kf("xl","between","space-between"),kf("xl","around","space-around"),kf("xl","stretch","stretch"),kf("xxl","start","flex-start"),kf("xxl","end","flex-end"),kf("xxl","center","center"),kf("xxl","between","space-between"),kf("xxl","around","space-around"),kf("xxl","stretch","stretch"),(0,me.style)({display:"none !important"},"grid-display-none"),(0,me.style)({display:"inline !important"},"grid-display-inline"),(0,me.style)({display:"inline-block !important"},"grid-display-inline-block"),(0,me.style)({display:"block !important"},"grid-display-block"),(0,me.style)({display:"table !important"},"grid-display-table"),(0,me.style)({display:"table-row !important"},"grid-display-table-row"),(0,me.style)({display:"table-cell !important"},"grid-display-table-cell"),(0,me.style)({display:"flex !important "},"grid-display-flex"),bf("xs","none"),bf("xs","inline"),bf("xs","inline-block"),bf("xs","block"),bf("xs","table"),bf("xs","table-row"),bf("xs","table-cell"),bf("xs","flex"),bf("sm","none"),bf("sm","inline"),bf("sm","inline-block"),bf("sm","block"),bf("sm","table"),bf("sm","table-row"),bf("sm","table-cell"),bf("sm","flex"),bf("md","none"),bf("md","inline"),bf("md","inline-block"),bf("md","block"),bf("md","table"),bf("md","table-row"),bf("md","table-cell"),bf("md","flex"),bf("lg","none"),bf("lg","inline"),bf("lg","inline-block"),bf("lg","block"),bf("lg","table"),bf("lg","table-row"),bf("lg","table-cell"),bf("lg","flex"),bf("xl","none"),bf("xl","inline"),bf("xl","inline-block"),bf("xl","block"),bf("xl","table"),bf("xl","table-row"),bf("xl","table-cell"),bf("xl","flex"),bf("xxl","none"),bf("xxl","inline"),bf("xxl","inline-block"),bf("xxl","block"),bf("xxl","table"),bf("xxl","table-row"),bf("xxl","table-cell"),bf("xxl","flex"),(0,me.style)({msFlexDirection:"row",flexDirection:"row"},"grid-flex-row"),(0,me.style)({msFlexDirection:"column",flexDirection:"column"},"grid-flex-column"),(0,me.style)({msFlexDirection:"row-reverse",flexDirection:"row-reverse"},"grid-flex-row-reverse"),(0,me.style)({msFlexDirection:"column-reverse",flexDirection:"column-reverse"},"grid-flex-column-reverse"),(0,me.style)({flexWrap:"wrap-reverse"},"grid-flex-wrap-reverse"),(0,me.style)({msFlex:"1 1 auto",flex:"1 1 auto"},"grid-flex-fill"),(0,me.style)({msFlexPositive:"0",flexGrow:"0"},"grid-flex-grow-0"),(0,me.style)({msFlexPositive:"1",flexGrow:"1"},"grid-flex-grow-1"),(0,me.style)({flexShrink:"0"},"grid-flex-shrink-0"),(0,me.style)({flexShrink:"1"},"grid-flex-shrink-1"),_f("xs","row"),_f("xs","column"),_f("xs","row-reverse"),_f("xs","column-reverse"),_f("xs","wrap-reverse"),_f("xs","fill"),_f("xs","grow-0"),_f("xs","grow-1"),_f("xs","shrink-0"),_f("xs","shrink-1"),_f("sm","row"),_f("sm","column"),_f("sm","row-reverse"),_f("sm","column-reverse"),_f("sm","wrap-reverse"),_f("sm","fill"),_f("sm","grow-0"),_f("sm","grow-1"),_f("sm","shrink-0"),_f("sm","shrink-1"),_f("md","row"),_f("md","column"),_f("md","row-reverse"),_f("md","column-reverse"),_f("md","wrap-reverse"),_f("md","fill"),_f("md","grow-0"),_f("md","grow-1"),_f("md","shrink-0"),_f("md","shrink-1"),_f("lg","row"),_f("lg","column"),_f("lg","row-reverse"),_f("lg","column-reverse"),_f("lg","wrap-reverse"),_f("lg","fill"),_f("lg","grow-0"),_f("lg","grow-1"),_f("lg","shrink-0"),_f("lg","shrink-1"),_f("xl","row"),_f("xl","column"),_f("xl","row-reverse"),_f("xl","column-reverse"),_f("xl","wrap-reverse"),_f("xl","fill"),_f("xl","grow-0"),_f("xl","grow-1"),_f("xl","shrink-0"),_f("xl","shrink-1"),_f("xxl","row"),_f("xxl","column"),_f("xxl","row-reverse"),_f("xxl","column-reverse"),_f("xxl","wrap-reverse"),_f("xxl","fill"),_f("xxl","grow-0"),_f("xxl","grow-1"),_f("xxl","shrink-0"),_f("xxl","shrink-1"),(0,me.style)({width:"100%",paddingRight:ve.space[200],paddingLeft:ve.space[200],marginRight:"auto",marginLeft:"auto"},"grid-container_fluid"),(0,me.style)({width:"100%",paddingRight:0,paddingLeft:0,marginRight:"auto",marginLeft:"auto"},"grid-container_form"),(0,me.style)({width:"100%",paddingRight:ve.space[450],paddingLeft:ve.space[450],marginRight:"auto",marginLeft:"auto",maxWidth:$e,"@media":{[`(min-width: ${_e})`]:{paddingRight:ve.space[400],paddingLeft:ve.space[400],maxWidth:$e},[`(min-width: ${$e})`]:{paddingRight:ve.space[600],paddingLeft:ve.space[600],maxWidth:$e}}},"grid-container_xxl"),(0,me.style)({width:"100%",paddingRight:ve.space[150],paddingLeft:ve.space[150],marginRight:"auto",marginLeft:"auto","@media":{[`(min-width: ${Se})`]:{paddingRight:ve.space[300],paddingLeft:ve.space[300],maxWidth:Se},[`(min-width: ${_e})`]:{paddingRight:ve.space[450],paddingLeft:ve.space[450],maxWidth:_e},[`(min-width: ${Ee})`]:{paddingRight:ve.space[450],paddingLeft:ve.space[450],maxWidth:Ee},[`(min-width: ${Ce})`]:{paddingRight:ve.space[450],paddingLeft:ve.space[450],maxWidth:Ce}}},"grid-container"),(0,me.style)({display:"flex",flexWrap:"wrap",marginRight:`calc(${ve.space[150]} * -1)`,marginLeft:`calc(${ve.space[150]} * -1)`},"grid-row"),(0,me.style)({...$f,flexBasis:0,msFlexPositive:1,flexGrow:1,maxWidth:"100%"},"grid-col")),Tf=((0,me.style)({msFlex:"0 0 auto",flex:"0 0 auto",maxWidth:"none",width:"auto"},"grid-col-auto"),Ef(1),Ef(2),Ef(3),Ef(4),Ef(5),Ef(6),Ef(7),Ef(8),Ef(9),Ef(10),Ef(11),Ef(12),gf("xs",1),gf("xs",2),gf("xs",3),gf("xs",4),gf("xs",5),gf("xs",6),gf("xs",7),gf("xs",8),gf("xs",9),gf("xs",10),gf("xs",11),gf("xs",12),gf("sm",1),gf("sm",2),gf("sm",3),gf("sm",4),gf("sm",5),gf("sm",6),gf("sm",7),gf("sm",8),gf("sm",9),gf("sm",10),gf("sm",11),gf("sm",12),gf("md",1),gf("md",2),gf("md",3),gf("md",4),gf("md",5),gf("md",6),gf("md",7),gf("md",8),gf("md",9),gf("md",10),gf("md",11),gf("md",12),gf("lg",1),gf("lg",2),gf("lg",3),gf("lg",4),gf("lg",5),gf("lg",6),gf("lg",7),gf("lg",8),gf("lg",9),gf("lg",10),gf("lg",11),gf("lg",12),gf("xl",1),gf("xl",2),gf("xl",3),gf("xl",4),gf("xl",5),gf("xl",6),gf("xl",7),gf("xl",8),gf("xl",9),gf("xl",10),gf("xl",11),gf("xl",12),gf("xxl",1),gf("xxl",2),gf("xxl",3),gf("xxl",4),gf("xxl",5),gf("xxl",6),gf("xxl",7),gf("xxl",8),gf("xxl",9),gf("xxl",10),gf("xxl",11),gf("xxl",12),(0,me.style)({...Cf},"grid-col-form-vspace"),(0,me.style)({...$f,...Cf,msFlex:"0 0 100%",flex:"0 0 100%",maxWidth:"100%"},"grid-col-form-full"),(0,me.style)({...$f,...Cf,msFlex:"0 0 50%",flex:"0 0 50%",maxWidth:"50%"},"grid-col-form-half"),(0,me.style)({...$f,...Cf,msFlex:"0 0 75%",flex:"0 0 75%",maxWidth:"75%"},"grid-col-form-3qtr"),(0,me.style)({...$f,...Cf,msFlex:"0 0 25%",flex:"0 0 25%",maxWidth:"25%"},"grid-col-form-1qtr"),(0,me.style)({...$f,...Cf,msFlex:"0 0 auto",flex:"0 0 auto",maxWidth:"auto"},"grid-col-form-auto"),(0,me.style)({marginLeft:0,marginRight:0},"grid-no-gutters"));(0,me.globalStyle)(`${Tf} > ${Af}, ${Tf} > [class*='col-']`,{paddingLeft:0,paddingRight:0}),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-auto-suggest");const Of=`calc((2 * ${ve.size.field.lg}))`,Pf=(0,me.style)({position:"relative"},"auto-suggest_base"),Ff=(0,me.style)({minWidth:Of,maxWidth:ve.size.media.lg,marginTop:ve.space[75],padding:`${ve.space[100]} 0`,overflowX:"hidden",width:"100%"},"auto-suggest_suggestion_list_container"),Rf=(0,me.style)([Ff,hl,{borderRadius:ve.border.radius.lg,backgroundColor:ve.color.background.surface,zIndex:Ve,outline:`${ve.border.thickness.normal} solid transparent`,top:ve.size.field.lg,position:"absolute"}],"auto-suggest_elevated_suggestion_list_container"),zf=(0,me.style)({padding:`${ve.space[150]} ${ve.space[200]}`},"auto-suggest_content"),Lf=(0,me.style)({overflowY:"auto",maxHeight:ve.size.media.sm,"@media":{[`(max-width: ${_e})`]:{maxHeight:`calc((${ve.size.media.sm}))`}}},"auto-suggest_suggestion_list"),Nf=(0,me.style)({display:"flex",justifyContent:"center"},"auto-suggest_centered_content"),If=(0,me.style)({margin:`0 ${ve.space[200]}`},"auto-suggest_error_message");he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-contextual-alert");const Mf=(0,me.style)([Ot,{display:"flex"}],"contextual-alert_base"),Df=(0,me.style)({marginTop:"0.0625rem",marginRight:ve.space[50],height:ve.size.icon.xs,flexShrink:"0",selectors:{"[dir='rtl'] &":{marginLeft:`${ve.space[50]}`,marginRight:0}}},"contextual-alert_status_icon"),jf=(0,me.style)({marginTop:ve.space[25]},"contextual-alert_content_wrapper"),Hf=(0,me.style)({padding:0},"contextual-alert_no_padding");he.endFileScope();var Bf=["className","type","typeIconAriaLabel","children","noPadding"],Vf=["info","success","error","warning"],Wf={info:function(e){e.svgElementRef;var t=ye(e,go);return fe().createElement(eo,ge({"aria-label":"information icon"},t,{"data-ppui":"true"}),fe().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"},fe().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:Eo,warning:function(e){e.svgElementRef;var t=ye(e,xo);return fe().createElement(eo,ge({"aria-label":"warning icon"},t,{"data-ppui":"true"}),fe().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"},fe().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:Fo},Uf=function(e){var t=e.className,r=e.type,n=void 0===r?"info":r,a=e.typeIconAriaLabel,o=void 0===a?n:a,i=e.children,l=e.noPadding,s=void 0!==l&&l,c=ye(e,Bf),u=Vf.includes(n)?n:"info",d=Wf[u],p=Ke(Mf,s&&Hf,t);return fe().createElement("div",ge({role:"alert",className:p,"data-ppui-info":"contextual-alert_4.1.3__8.12.0"},c),fe().createElement(d,{className:Df,size:"xs",color:{info:"sysColorInfoContrast",success:"sysColorSuccessMain",warning:"sysColorWarningAlt",error:"sysColorErrorMain"}[u],role:"img","aria-label":o,"data-ppui":"true"}),fe().createElement("div",{className:jf,"data-ppui":"true"},i))},Gf=["suggestions","renderSuggestion","onHighlight","onSelect","className","listItemClassName","query","enableKeyboardInteraction","hasSections"];function qf(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?qf(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yf=function(e){var t=e.suggestions,r=void 0===t?[]:t,n=e.renderSuggestion,a=e.onHighlight,o=e.onSelect,i=e.className,l=e.listItemClassName,s=e.query,c=e.enableKeyboardInteraction,u=void 0===c||c,d=e.hasSections,p=ye(e,Gf),f=el((0,pe.useState)(-1),2),h=f[0],m=f[1],g=(0,pe.useRef)(-1),y=(0,pe.useRef)([]),v=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),b=function(e,t){if(m(t),g.current=t,-1!==t){var r=v[t].section?"".concat(v[t].section.id,"_").concat(v[t].value.id):v[t].value.id,n=y.current[r];n&&n.scrollIntoView&&n.scrollIntoView({behavior:"smooth",block:"nearest"})}a&&a(e,v[t].value,v[t].section)},w=function(e,t){o&&o(e,v[t].value,v[t].section)},x=function(e){if(v.length){var t=[];v.map((function(e){return t.push(e.value)}));var r=g.current,n=new Je(e.key||e.keyCode);n.IS_ARROW_UP?(e.preventDefault(),b(e,Xl(t,r,"previous"))):n.IS_ARROW_DOWN?(e.preventDefault(),b(e,Xl(t,r,"next"))):n.IS_ENTER&&(e.preventDefault(),r>=0&&w(e,r))}};(0,pe.useEffect)((function(){return m(-1),g.current=-1,r.length&&u&&document.addEventListener("keydown",x),function(){document.removeEventListener("keydown",x)}}),[r,u]);var k=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,o=n?n(e,s):function(e,t){var r=nt(e,t);return fe().createElement(ea,{as:"span",dangerouslySetInnerHTML:{__html:r},"data-ppui":"true"})}(a,s);return Kf(Kf({},e),{},Re(Re(Re(Re({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){w(e,t+r)},role:"option"},"data-value",a),"label",o),"labelDescription",e.labelDescription),"className",l))})):[]},S=d?function(){if(r.length>0){var e=0;return r.map((function(t){var r={title:t.title,sectionItems:k(t.suggestions,e)};return e+=t.suggestions.length,r}))}return[]}():k(r);return v.length?fe().createElement(Jl,ge({className:i,tabIndex:0,hasSections:d,ref:y,options:S,activeIndex:h},p,{"data-ppui":"true"})):null},Xf=["id","value","debounceTimeout","fetchSuggestions","suggestionList","isSuggestionListInline","isLoadingSuggestions","onChange","onFocus","onKeyDown","onBlur","onClear","className","triggerComponent","suggestions","defaultSuggestionList","suggestionListFooter","suggestionListContainerClassName","suggestionListFooterClassName","suggestionListChangeMessage","suggestionListLoadingMessage","suggestionListErrorMessage","onSuggestionListClose"],Qf=function(e,t){return t?e.reduce((function(e,t){return t.suggestions&&(e+=t.suggestions.length),e}),0):e.length};(0,pe.forwardRef)((function(e,t){var r=e.id,n=void 0===r?"default":r,a=e.value,o=e.debounceTimeout,i=void 0===o?500:o,l=e.fetchSuggestions,s=void 0===l?function(){}:l,c=e.suggestionList,u=void 0===c?fe().createElement(Yf,{suggestions:[],"data-ppui":"true"}):c,d=e.isSuggestionListInline,p=e.isLoadingSuggestions,f=e.onChange,h=e.onFocus,m=e.onKeyDown,g=e.onBlur,y=e.onClear,v=e.className,b=e.triggerComponent,w=void 0===b?Yi:b;e.suggestions;var x=e.defaultSuggestionList,k=void 0===x?fe().createElement(Yf,{suggestions:[],"data-ppui":"true"}):x,S=e.suggestionListFooter,_=e.suggestionListContainerClassName,E=e.suggestionListFooterClassName,C=e.suggestionListChangeMessage,$=e.suggestionListLoadingMessage,A=void 0===$?"Loading suggestions":$,T=e.suggestionListErrorMessage,O=e.onSuggestionListClose,P=ye(e,Xf),F=(0,pe.useRef)(),R=(0,pe.useRef)(),z=(0,pe.useRef)(),L=el((0,pe.useState)(!1),2),N=L[0],I=L[1],M=el((0,pe.useState)(""),2),D=M[0],j=M[1],H=el((0,pe.useState)(!1),2),B=H[0],V=H[1],W=t||R,U=Qf(u.props.suggestions||[],u.props.hasSections),G=Qf(k.props.suggestions||[],k.props.hasSections),q=function(e){var t=W.current,r=z.current;e.target===t||r&&r.contains(e.target)||I(!1)};(0,pe.useEffect)((function(){return function(){F.current&&clearTimeout(F.current)}}),[]),(0,pe.useEffect)((function(){return N&&!d&&document.addEventListener("click",q),function(){document.removeEventListener("click",q)}}),[N,d]);var K=function(e){O&&U&&O(e)},Y=function(e,t,r){j(r?"".concat(r.id,"_").concat(t.id):t.id),u.props.onHighlight&&u.props.onHighlight(e,t,r)},X=function(e,t,r){u.props.onSelect&&u.props.onSelect(e,t,r),d||I(!1)},Q="".concat(n,"-suggestionList"),Z=S?fe().createElement("div",{className:Ke(zf,E),"data-ppui":"true"},S):null,J=!p&&U>0&&fe().createElement(fe().Fragment,null,fe().cloneElement(u,{id:Q,"aria-labelledby":"".concat(n,"-label"),onHighlight:Y,onSelect:X,enableKeyboardInteraction:B,className:Lf}),Z),ee=G>0&&fe().createElement(fe().Fragment,null,fe().cloneElement(k,{id:Q,"aria-labelledby":"".concat(n,"-label"),onHighlight:Y,onSelect:X,enableKeyboardInteraction:B,className:Lf}),Z),te=p?fe().createElement("div",{className:Nf,"data-ppui":"true"},fe().createElement(ms,{screenReaderText:A,size:"md","data-ppui":"true"})):null,re=null;U||p||!T||(re=(0,pe.isValidElement)(T)?T:fe().createElement(Uf,{className:If,type:"warning","data-ppui":"true"},T));var ne=d?Ff:Rf,ae=null;a&&N&&(J||te||re)?ae=fe().createElement("div",{className:Ke(ne,_),ref:z,"data-ppui":"true"},J,te,re):!a&&N&&G>0&&(ae=fe().createElement("div",{className:Ke(ne,_),ref:z,"data-ppui":"true"},ee));var oe=C||"".concat(U," suggestions available"),ie=w!==Yi?{onClear:function(e){K(e),y&&y(e)}}:{};return fe().createElement("div",{className:Ke(Pf,v),"data-ppui-info":"auto-suggest_3.2.4__8.12.0"},fe().createElement(w,ge({},P,{id:n,value:a,ref:W,onChange:function(e){var t=e.target.value;F.current&&clearTimeout(F.current),F.current=setTimeout((function(){s(t)}),i),I(!0),f(e)},onFocus:function(e){(U||G)&&I(!0),s(a),V(!0),h&&h(e)},onKeyDown:function(e){var t=new Je(e.key||e.keyCode);(t.IS_ESC||t.IS_TAB)&&(d||I(!1),t.IS_ESC&&y&&y(e)),m&&m(e)},onBlur:function(e){K(e),V(!1),g&&g(e)},"aria-activedescendant":D,"aria-autocomplete":"list",role:"combobox","aria-expanded":U>0&&N,"aria-owns":Q,"aria-haspopup":"listbox"},ie,{"data-ppui":"true"})),ae,fe().createElement(ct,{role:"status","data-ppui":"true"},oe))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-address-input"),(0,me.style)({textAlign:"center"},"address-input-suggestion-list-footer"),(0,me.style)({height:"0.75rem"},"address-input-google-logo"),(0,me.style)({color:ve.color.background.mediumContrast,marginTop:ve.space[50]},"address-input-google-address-secondary-text"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-alert");const Zf=`calc(${ve.space[100]} + ${ve.size.field.sm})`,Jf=`calc(${ve.space[350]} + ${ve.typography.body.size})`,eh=`calc(${ve.space[200]} - ${ve.space[25]})`,th=`calc(${ve.space[100]} - ${ve.border.thickness.normal})`,rh=`calc(${ve.space[200]} - ${ve.border.thickness.emphasis})`,nh=((0,me.style)([_t,{boxSizing:"border-box",padding:`${ve.space[200]} ${Zf} ${ve.space[200]}\n ${Jf}`,borderWidth:ve.border.thickness.normal,borderStyle:"solid",borderRadius:ve.border.radius.lg,position:"relative",textAlign:"initial",selectors:{"[dir='rtl'] &":{paddingLeft:Zf,paddingRight:Jf}}}],"alert_base"),(0,me.style)({display:"inline-block",position:"absolute",left:eh,textAlign:"center",color:ve.color.system.mainActive,lineHeight:ve.size.icon.sm,fontSize:ve.size.icon.sm,top:rh,verticalAlign:"middle",selectors:{"[dir='rtl'] &":{left:"auto",right:eh}}},"alert_svg_icon"),(0,me.style)({position:"absolute",top:0,right:th,selectors:{"[dir='rtl'] &":{left:th,right:"auto"}}},"alert_close_btn"),(e,t)=>({border:"none",backgroundColor:e,color:t}));(0,me.style)({...nh(ve.color.info.main,ve.color.info.contrast),vars:Be(ve,"info")},"alert_info"),(0,me.style)({...nh(ve.color.warning.main,ve.color.warning.contrast),vars:Be(ve,"warning")},"alert_warning"),(0,me.style)({...nh(ve.color.success.main,ve.color.success.contrast),vars:Be(ve,"success")},"alert_success"),(0,me.style)({...nh(ve.color.error.main,ve.color.error.contrast),vars:Be(ve,"error")},"alert_error"),(0,me.style)({color:ve.color.info.contrast},"info_icon"),(0,me.style)({color:ve.color.warning.contrast},"warning_icon"),(0,me.style)({color:ve.color.success.contrast},"success_icon"),(0,me.style)({color:ve.color.error.contrast},"error_icon"),(0,me.style)({paddingRight:ve.space[200],selectors:{"[dir='rtl'] &":{paddingLeft:ve.space[200],paddingRight:Jf}}},"no_close_btn"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-appbadge");const ah="2.5rem";(0,me.style)({lineHeight:0},"appbadge_base"),(0,me.style)({height:ah,width:"7.5rem",verticalAlign:"bottom"},"appbadge_ios"),(0,me.style)({height:ah,width:"8.4375rem",verticalAlign:"bottom"},"appbadge_android"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar");const oh=e=>({width:e,height:e}),ih=(e,t)=>({backgroundColor:e,color:t});(0,me.style)({...vt,borderRadius:ve.border.radius.interactive,...oh(ve.size.circle.lg)},"shimmer"),(0,me.style)({...oh(ve.size.circle.md)},"shimmer_size_md"),(0,me.style)({...oh(ve.size.circle.sm)},"shimmer_size_sm"),(0,me.style)({...oh(ve.size.circle.xs)},"shimmer_size_xs"),(0,me.style)({...oh(ve.size.circle.lg),...Jt,lineHeight:ve.size.circle.lg},"avatar_size_lg"),(0,me.style)({...oh(ve.size.circle.md),...Et,lineHeight:ve.size.circle.md},"avatar_size_md"),(0,me.style)({...oh(ve.size.circle.sm),...Pt,lineHeight:ve.size.circle.sm},"avatar_size_sm"),(0,me.style)({...oh(ve.size.circle.xs),...Ht,lineHeight:ve.size.circle.xs},"avatar_size_xs"),(0,me.style)({borderRadius:ve.border.radius.interactive,textAlign:"center",textTransform:"uppercase",display:"flex",justifyContent:"center",alignItems:"center",border:"none",...ih(ve.color.accent1.main,ve.color.accent1.contrast),position:"relative"},"avatar_base"),(0,me.style)({...ih(ve.color.accent1.main,ve.color.accent1.contrast)},"avatar_colorAccent1Main"),(0,me.style)({...ih(ve.color.accent2.main,ve.color.accent2.contrast)},"avatar_colorAccent2Main"),(0,me.style)({...ih(ve.color.accent3.main,ve.color.accent3.contrast)},"avatar_colorAccent3Main"),(0,me.style)({...ih(ve.color.accent4.main,ve.color.accent4.contrast)},"avatar_colorAccent4Main"),(0,me.style)({...ih(ve.color.accent3.main,ve.color.accent3.contrast)},"generic_bank"),(0,me.style)({...ih(ve.color.accent4.main,ve.color.accent4.contrast)},"generic_causes"),(0,me.style)({...ih(ve.color.accent4.main,ve.color.accent4.contrast)},"generic_biller"),(0,me.style)({...ih(ve.color.accent1.main,ve.color.accent1.contrast)},"generic_merchant"),(0,me.style)({...ih(ve.color.accent1.main,ve.color.accent1.contrast)},"generic_profile"),(0,me.style)({...ih(ve.color.accent2.main,ve.color.accent2.contrast)},"generic_subscription"),(0,me.style)({borderRadius:"inherit",...oh("inherit"),background:ve.color.accent1.contrast,objectFit:"cover"},"avatar_image"),(0,me.style)({boxSizing:"border-box",position:"absolute",bottom:0,right:`calc(${ve.border.thickness.normal} * -1)`},"avatar_badge"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar-button");const lh="0.0421875rem",sh=(0,me.style)({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",padding:`${ve.space[150]} 0`,minHeight:"7.25rem",width:"6rem",wordWrap:"break-word",background:"none",border:"none",...Pt,color:ve.color.background.highContrast,":focus":{cursor:"pointer",outline:"none"},":hover":{cursor:"pointer"}},"avatar_button_base"),ch=(0,me.style)({textAlign:"center",padding:`${ve.space[100]} ${ve.space[100]} 0 ${ve.space[100]}`,width:"inherit",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},"avatar_button_label");(0,me.globalStyle)(`${sh}:focus > span:first-of-type`,{WebkitTextStrokeWidth:lh}),(0,me.globalStyle)(`${sh}:focus > span:last-of-type`,{textDecoration:"underline"}),(0,me.globalStyle)(`${sh}:focus > div:first-of-type`,{...Fa,boxShadow:"inherit",outlineOffset:"inherit"}),(0,me.globalStyle)(`${sh}:hover > span:first-of-type`,{WebkitTextStrokeWidth:lh}),(0,me.globalStyle)(`${sh}:hover > span:last-of-type`,{textDecoration:"underline"}),he.endFileScope();var uh=["className","label","children","as"];(0,pe.forwardRef)((function(e,t){var r=e.className,n=e.label,a=void 0===n?"default":n,o=e.children,i=e.as,l=ye(e,uh),s=fe().cloneElement(o,{size:"lg","aria-hidden":"true"});return fe().createElement(i||"button",ge({role:"button",className:Ke(sh,r),tabIndex:0,ref:t},l,{"data-ppui":"true"}),s,fe().createElement("span",{className:ch,"data-ppui":"true"},a))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-avatar-stack");const{ellipsisName:dh}=n,ph=((0,me.style)({display:"flex",alignItems:"center"},"avatar_stack_base"),(0,me.style)({borderRadius:ve.border.radius.interactive,flexShrink:0,backgroundColor:ve.color.background.main,border:`solid ${ve.border.thickness.normal} ${ve.color.background.surface}`,zIndex:1,selectors:{"[dir=rtl] &":{marginLeft:0}}},"avatar"));(0,me.style)([dh,{...Pt,color:ve.color.background.mediumContrast,marginLeft:ve.space[100],marginRight:0,selectors:{"[dir=rtl] &":{marginLeft:0,marginRight:ve.space[100]}}}],"avatar_label"),(0,me.globalStyle)(`${ph}:not(:first-of-type)`,{marginInlineStart:`calc(${ve.space[100]} * -1)`}),(0,me.globalStyle)(`${ph} > div`,{overflow:"hidden"}),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-badge");const fh={borderStyle:"solid",borderColor:"transparent"},hh=(e,t=null)=>{const r={color:e};return t&&(r.backgroundColor=t),r},mh=(0,me.style)({maxWidth:"18rem",overflow:"hidden",wordBreak:"break-word",textTransform:"none",WebkitLineClamp:2,display:"-webkit-inline-box",WebkitBoxOrient:"vertical",height:"auto"},"badge-base"),gh=((0,me.style)([Ot,mh,{borderRadius:ve.border.radius.md,borderTopWidth:ve.space[100],borderBottomWidth:ve.space[100],borderRightWidth:ve.space[100],borderLeftWidth:ve.space[100]},fh],"badge-base_large"),(0,me.style)([jt,mh,{borderRadius:ve.border.radius.sm,borderTopWidth:ve.space[25],borderBottomWidth:ve.space[25],borderRightWidth:ve.space[100],borderLeftWidth:ve.space[100]},fh],"badge-base_small"),(0,me.style)({position:"relative",paddingInlineStart:`calc(${ve.size.icon.xs} + ${ve.space[25]})`},"badge-left_icon"),(0,me.style)({position:"absolute",insetInline:"0 auto",insetBlock:`calc(${ve.border.thickness.normal} * -1)`},"badge-icon"),(0,me.style)({width:ve.size.circle.xs,height:ve.size.circle.xs,padding:ve.border.thickness.normal,border:`${ve.border.thickness.emphasis} solid ${ve.color.background.surface}`,borderRadius:"50%"},"badge-icon_badge"));(0,me.style)([gh,hh(ve.color.success.main,ve.color.background.main)],"badge-authorized"),(0,me.style)([gh,hh(ve.color.warning.alt,ve.color.background.main)],"badge-inprogress"),(0,me.style)([gh,hh(ve.color.error.main,ve.color.background.main)],"badge-onhold"),(0,me.style)([gh,hh(ve.color.specialty.main,ve.color.background.main)],"badge-favorite"),(0,me.style)([Wr,hh(ve.color.error.contrast,ve.color.error.main),{padding:`0 ${ve.space[50]}`,height:ve.size.icon.xs,minWidth:ve.size.icon.xs,outline:`${ve.border.thickness.emphasis} solid ${ve.color.background.surface}`,border:"0",borderRadius:`calc(${ve.size.circle.xs}/2)`,lineHeight:ve.typography.body.lineHeight,textAlign:"center",selectors:{"[dir='rtl'] &":{textAlign:"center"}}}],"badge-numeric"),(0,me.style)([hh(ve.color.specialty.contrast,ve.color.specialty.main),{vars:Be(ve,"specialty")}],"badge-high_contrast_feature"),(0,me.style)([hh(ve.color.success.contrast,ve.color.success.main),{vars:Be(ve,"success")}],"badge-high_contrast_success"),(0,me.style)([hh(ve.color.warning.contrast,ve.color.warning.main),{vars:Be(ve,"warning")}],"badge-high_contrast_warning"),(0,me.style)([hh(ve.color.error.contrast,ve.color.error.main),{vars:Be(ve,"error")}],"badge-high_contrast_critical"),(0,me.style)([hh(ve.color.info.main,ve.color.info.contrast),{vars:Be(ve,"info")}],"badge-high_contrast_neutral"),(0,me.style)([hh(ve.color.overlay.contrast,ve.color.overlay.main),{backdropFilter:`blur(calc(${ve.blur.interactive} / 2))`,vars:Be(ve,"overlay")}],"badge-high_contrast_overlay"),(0,me.style)([hh(ve.color.secondary.contrast,ve.color.secondary.main),{vars:Be(ve,"secondary")}],"badge-high_contrast_highlight"),(0,me.style)([hh(ve.color.specialty.medium.contrast,ve.color.specialty.medium.main),{vars:Be(ve,"specialty")}],"badge-low_contrast_feature"),(0,me.style)([hh(ve.color.success.medium.contrast,ve.color.success.medium.main),{vars:Be(ve,"success")}],"badge-low_contrast_success"),(0,me.style)([hh(ve.color.warning.medium.contrast,ve.color.warning.medium.main),{vars:Be(ve,"warning")}],"badge-low_contrast_warning"),(0,me.style)([hh(ve.color.error.medium.contrast,ve.color.error.medium.main),{vars:Be(ve,"error")}],"badge-low_contrast_critical"),(0,me.style)([hh(ve.color.info.contrast,ve.color.info.main),{vars:Be(ve,"info")}],"badge-low_contrast_neutral"),(0,me.style)([hh(ve.color.overlayInverse.contrast,ve.color.overlayInverse.main),{backdropFilter:`blur(calc(${ve.blur.interactive} / 2))`,vars:Be(ve,"overlay")}],"badge-low_contrast_overlay"),(0,me.style)([hh(ve.color.tertiary.main,ve.color.tertiary.contrast),{vars:Be(ve,"tertiary")}],"badge-low_contrast_highlight"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-banner");const yh=(0,me.style)({boxSizing:"border-box",textDecoration:"none",borderWidth:ve.border.thickness.normal,padding:`${ve.space[150]} ${ve.space[200]}`,position:"relative",width:"100%",cursor:"pointer",display:"block",outline:`${ve.border.thickness.normal} solid transparent`,":focus":Fa},"banner"),vh=((0,me.style)({selectors:{"&.critical":{backgroundColor:ve.color.error.main},"&.warning":{backgroundColor:ve.color.warning.main},"&.specialty":{backgroundColor:ve.color.specialty.main}}},"banner-color-selector"),(0,me.style)({selectors:{"&:active.critical":{backgroundColor:ve.color.error.mainActive},"&:active.warning":{backgroundColor:ve.color.warning.mainActive},"&:active.specialty":{backgroundColor:ve.color.specialty.mainActive}}},"banner-active-color-selector"),(0,me.style)({position:"relative",":before":{content:"",position:"absolute",margin:"0 -50vw",inset:"0 50%"}},"banner-full-width"),(0,me.style)([Zt,{textAlign:"left",maxWidth:"100%",width:"100%",display:"flex",selectors:{"&.critical":{color:ve.color.error.contrast},"&.warning":{color:ve.color.warning.contrast},"&.specialty":{color:ve.color.specialty.contrast}}}],"banner-title-wrapper"));(0,me.globalStyle)(`${yh}[dir="rtl"] ${vh}`,{textAlign:"right"}),(0,me.style)({marginTop:ve.space[50]},"banner-title");const bh=(0,me.style)({marginRight:ve.space[100],marginTop:ve.space[25],flexShrink:"0"},"banner-left-side-icon");(0,me.globalStyle)(`${yh}[dir="rtl"] ${bh}`,{marginLeft:ve.space[100],marginRight:0});const wh=(0,me.style)({marginRight:0,marginLeft:"auto",marginTop:ve.space.tiny,flexShrink:"0"},"banner-right-side-icon");(0,me.globalStyle)(`${yh}[dir="rtl"] ${wh}`,{marginLeft:0,marginRight:"auto",transform:"rotate(180deg)"});const xh=(0,me.style)([_t,{display:"flex",padding:`0 ${ve.space[400]}`,selectors:{'&[dir="rtl"]':{textAlign:"right"},"&.critical":{color:ve.color.error.contrast},"&.warning":{color:ve.color.warning.contrast},"&.specialty":{color:ve.color.specialty.contrast}}}],"banner-sub-text");(0,me.globalStyle)(`${yh}[dir="rtl"] ${xh}`,{textAlign:"right"}),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-buttons");const{YQ:kh}=a,Sh=(0,me.keyframes)({"0%":{opacity:0},"100%":{opacity:1}},"button_fade_in"),_h={display:"inline-flex",alignItems:"center",justifyContent:"center"},Eh=e=>(0,me.style)({display:"inline-grid",gridTemplateColumns:`repeat(${e}, max-content)`,gap:ve.space[200],padding:`${ve.space[150]} ${ve.space[200]}`},`button_group-${e}`),Ch=(0,me.style)({position:"relative",borderRadius:1e3,borderStyle:"solid",borderWidth:`${ve.border.thickness.normal}`,cursor:"pointer",textDecoration:"none",..._h,transition:`color ${ve.motion.duration.action} ease,\n background-color ${ve.motion.duration.action} ease,\n border-color ${ve.motion.duration.action} ease`,":focus":kh},"button_base"),$h=(0,me.style)({...Vr,minWidth:"6rem",padding:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis}) calc(${ve.space[400]} - ${ve.border.thickness.emphasis})`,minHeight:ve.size.tapTarget.default},"button_size_lg"),Ah=(0,me.style)({...Hr,minWidth:"3.75rem",minHeight:ve.size.tapTarget.tiny,padding:`calc(${ve.size.indicator.md} - ${ve.border.thickness.emphasis}) calc(${ve.space[200]} - ${ve.border.thickness.emphasis})`},"button_size_sm"),Th={primary:(0,me.style)({color:(0,me.fallbackVar)(Oe.background,ve.color.primary.contrast),border:`${ve.border.thickness.emphasis} solid ${(0,me.fallbackVar)(Oe.main,ve.color.primary.main)}`,backgroundColor:(0,me.fallbackVar)(Oe.main,ve.color.primary.main),":hover":{color:(0,me.fallbackVar)(Oe.hoverMain,ve.color.primary.contrast),textDecoration:"none",backgroundColor:(0,me.fallbackVar)(Oe.hoverBack,ve.color.primary.mainHover),borderColor:(0,me.fallbackVar)(Oe.hoverBack,ve.color.primary.mainHover)},":active":{color:(0,me.fallbackVar)(Oe.activeMain,ve.color.primary.contrast),outline:"none",backgroundColor:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.mainActive),borderColor:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.mainActive)},":visited":{color:(0,me.fallbackVar)(Oe.main,ve.color.primary.contrast)}},"button_primary"),primaryInverse:(0,me.style)({backgroundColor:(0,me.fallbackVar)(Oe.background,ve.color.primary.contrast),borderColor:(0,me.fallbackVar)(Oe.background,ve.color.primary.contrast),color:(0,me.fallbackVar)(Oe.main,ve.color.primary.main),":hover":{color:(0,me.fallbackVar)(Oe.hoverMain,ve.color.primary.main),backgroundColor:(0,me.fallbackVar)(Oe.hoverBack,ve.color.primary.contrastHover),borderColor:(0,me.fallbackVar)(Oe.hoverBack,ve.color.primary.contrastHover)},":active":{color:(0,me.fallbackVar)(Oe.activeMain,ve.color.primary.main),backgroundColor:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.contrastActive),borderColor:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.contrastActive)},":visited":{color:(0,me.fallbackVar)(Oe.main,ve.color.primary.main)}},"button_inverse"),secondary:(0,me.style)({backgroundColor:"transparent",borderColor:(0,me.fallbackVar)(Oe.main,ve.color.structure.borderLowContrast),color:(0,me.fallbackVar)(Oe.main,ve.color.primary.main),":visited":{color:(0,me.fallbackVar)(Oe.main,ve.color.primary.main)},":hover":{backgroundColor:(0,me.fallbackVar)(Oe.hoverBack,"transparent"),color:(0,me.fallbackVar)(Oe.hoverMain,ve.color.primary.mainHover),borderColor:(0,me.fallbackVar)(Oe.hoverMain,ve.color.primary.mainHover)},":active":{backgroundColor:(0,me.fallbackVar)(Oe.activeBack,"transparent"),color:(0,me.fallbackVar)(Oe.activeMain,ve.color.primary.mainActive),borderColor:(0,me.fallbackVar)(Oe.activeMain,ve.color.primary.mainActive)}},"button_secondary"),secondaryInverse:(0,me.style)({borderColor:(0,me.fallbackVar)(Oe.background,ve.color.primary.contrast),color:(0,me.fallbackVar)(Oe.main,ve.color.primary.contrast),backgroundColor:"transparent",":visited":{color:(0,me.fallbackVar)(Oe.main,ve.color.primary.contrastActive)},":hover":{backgroundColor:"transparent",color:(0,me.fallbackVar)(Oe.hoverMain,ve.color.primary.contrastHover),borderColor:(0,me.fallbackVar)(Oe.hoverMain,ve.color.primary.contrastHover)},":active":{backgroundColor:(0,me.fallbackVar)(Oe.activeBack,ve.color.primary.mainActive),color:(0,me.fallbackVar)(Oe.activeMain,ve.color.primary.contrastActive),borderColor:(0,me.fallbackVar)(Oe.activeMain,ve.color.primary.contrastActive)}},"button_secondary_inverse"),tertiary:(0,me.style)({color:(0,me.fallbackVar)(Oe.main,ve.color.link.main),padding:0,position:"relative",cursor:"pointer",backgroundColor:"transparent",border:"none",borderRadius:ve.border.radius.sm,minHeight:ve.size.tapTarget.default,..._h,":hover":{color:(0,me.fallbackVar)(Oe.hoverMain,ve.color.link.mainHover),backgroundColor:(0,me.fallbackVar)(Oe.hoverBack,"transparent")},":focus":{...kh,color:(0,me.fallbackVar)(Oe.main,ve.color.link.main)},":active":{color:(0,me.fallbackVar)(Oe.activeMain,ve.color.link.mainActive),backgroundColor:(0,me.fallbackVar)(Oe.activeBack,"transparent")}},"button_tertiary"),overlay:(0,me.style)({backgroundColor:(0,me.fallbackVar)(Oe.background,ve.color.overlayInverse.main),borderColor:(0,me.fallbackVar)(Oe.main,ve.color.structure.borderLowContrast),color:(0,me.fallbackVar)(Oe.main,ve.color.overlayInverse.contrast),":visited":{color:(0,me.fallbackVar)(Oe.main,ve.color.primary.main)},":hover":{backgroundColor:(0,me.fallbackVar)(Oe.hoverBack,ve.color.overlayInverse.mainHover)},":active":{backgroundColor:(0,me.fallbackVar)(Oe.activeBack,ve.color.overlayInverse.main),color:(0,me.fallbackVar)(Oe.activeMain,ve.color.primary.mainActive),borderColor:(0,me.fallbackVar)(Oe.activeMain,ve.color.primary.mainActive)}},"button_overlay")},Oh=(0,me.style)({...Hr,color:(0,me.fallbackVar)(Oe.main,ve.color.link.main)},"button_tertiary-small"),Ph=(0,me.style)({marginInlineEnd:ve.space[100]},"button_icon"),Fh=(0,me.style)({marginInlineStart:ve.space[100],marginInlineEnd:0,verticalAlign:"top",position:"relative",pointerEvents:"none"},"button_affordance"),Rh=(0,me.style)({borderColor:ve.color.success.main,backgroundColor:ve.color.success.main,pointerEvents:"none"},"button_success_state"),zh=(0,me.style)({color:"transparent",pointerEvents:"none",":hover":{color:"transparent"},":active":{color:"transparent"},":visited":{color:"transparent"}},"button_processing_state"),Lh=(0,me.style)({position:"absolute",top:0,bottom:0,left:0,right:0,borderRadius:"inherit",textAlign:"center",opacity:0,animation:`${Sh} ${ve.motion.duration.hover} ease-in forwards`,display:"flex",justifyContent:"center",alignItems:"center",paddingRight:0},"button_state_overlay"),Nh=(0,me.style)({backgroundColor:ve.color.success.main},"button_success_state_overlay"),Ih=(0,me.style)({color:ve.color.primary.contrast},"button_success_state_icon"),Mh=(0,me.style)({},"button_success_state_icon_sm"),Dh=(Eh(1),Eh(2),Eh(3),(0,me.style)({"@media":{[`(max-width: ${_e})`]:{width:"100%"}}},"button_full_width")),jh=((0,me.style)({"@media":{[`(max-width: ${Se})`]:{gridTemplateColumns:"none",width:"100%"}}},"button_btnGroupFullWidth"),(0,me.style)({height:ve.size.tapTarget.default,display:"inline-flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:0,":focus":{outline:"none"}},"button_small_tap_container")),Hh=(0,me.style)({cursor:"pointer"},"button-cursor_pointer");(0,me.globalStyle)(`${jh}:focus > div:first-of-type:not(${Rh}):not(${zh})`,kh),he.endFileScope();var Bh=["isMenu","isOpen","isSmall","className"],Vh=["variant","size","inverse","secondary","tertiary","isMenu","isOpen","btnState","screenReaderText","className","children","as","iconComponent","fullWidthOnMobile"];function Wh(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 Uh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gh=["primary","secondary","overlay","tertiary"],qh=function(e){var t=e.isMenu,r=e.isOpen,n=e.isSmall,a=e.className,o=ye(e,Bh);if(!t)return null;var i=r?Oo:Ao;return fe().createElement(i,ge({className:a},o,{size:n?"xs":"sm","data-ppui":"true"}))},Kh=(0,pe.forwardRef)((function(e,t){var r=e.variant,n=e.size,a=e.inverse,o=e.secondary,i=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,m=e.iconComponent,g=e.fullWidthOnMobile,y=void 0===g||g,v=ye(e,Vh),b="sm"===n,w=u&&"initial"===u,x=Uh({},v);void 0!==s&&(x["aria-expanded"]=s),x["tab-index"]=0,x.disabled=!w,x.ref=t,x["data-ppui-info"]="";var k=h||"button";b&&(k="div");var S=fe().createElement(k,ge({className:function(){var e,t=b?"":p;if(r){var n=function(e){return!a||"primary"!==e&&"secondary"!==e?Gh.includes(e)?e:"primary":"".concat(e,"Inverse")}(r);e=Ke(Ch,b?Ah:$h,Th[n],y&&Dh,"success"===u&&Rh,"processing"===u&&zh,t)}else if(i)e=Ke(Th.tertiary,b?Oh:$h,t);else{var l=function(e,t){var r=e?"secondary":"primary";return t?"".concat(r,"Inverse"):r}(o,a);e=Ke(Ch,b?Ah:$h,Th[l],y&&Dh,"success"===u&&Rh,"processing"===u&&zh,t)}return e}(),id:Ze("button_")},b?{}:Uh({},x),{"data-ppui":"true"}),function(){var e;w||(e=d||u);var t=Ke(Ih,b&&Mh),c=fe().createElement($o,{className:t,size:b?"sm":"md","data-ppui":"true"}),p=null;m&&(p=fe().createElement(m,{className:Ph,size:b?"xs":"sm","data-ppui":"true"}));var h,g=Ke(Lh,"success"===u&&Nh),y=w?null:fe().createElement("span",{className:g,"data-ppui":"true"},"success"===u&&c,"processing"===u&&!i&&fe().createElement(ms,ge({},(h={},"processing"!==u||(h.as="span","sm"===n&&(h.size="xs"),(r&&(a&&"secondary"===r||!a&&"primary"===r)||!r&&(o&&a||!o&&!a))&&(h.inverse=!0)),h),{"data-ppui":"true"}))),v=e?fe().createElement("span",{role:"status",className:ot,"data-ppui":"true"},f," ",e):null;return fe().createElement(fe().Fragment,null,p,f,fe().createElement(qh,{isMenu:l,isOpen:s,isSmall:b,className:Fh,"data-ppui":"true"}),y,v)}());return b?fe().createElement(h||"button",ge({className:Ke(jh,"initial"===u&&Hh,p)},x,{"data-ppui":"true"}),S):S}));he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-button-menu"),(0,me.style)({position:"relative"},"button_menu_wrapper"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-card");const Yh={border:"none"},Xh=(0,me.style)({padding:ve.space[300],position:"relative",textAlign:"initial",backgroundColor:ve.color.background.surface,borderRadius:ve.border.radius.lg,appearance:"none",":focus":Fa},"card_base"),Qh=(0,me.style)(Yh,"card_level1"),Zh=(0,me.style)(Yh,"card_level3"),Jh=(0,me.style)({cursor:"pointer",width:"100%",appearance:"none",":hover":ul,":active":{boxShadow:"none"},":focus":Fa},"card_clickable"),em=(0,me.style)({marginBottom:ve.space[300],display:"table"},"card_header"),tm=(0,me.style)({width:"100%",display:"table-cell",margin:"initial",padding:`${ve.space[50]} 0`,textTransform:"none",verticalAlign:"middle"},"card_title"),rm=(0,me.style)({marginTop:"0.9375rem",marginBottom:"0.9375rem"},"card_content"),nm=(0,me.style)({marginTop:ve.space[300]},"card_footer");(0,me.globalStyle)(`${nm} button, a`,{margin:"initial"}),(0,me.globalStyle)(`${nm} button:not(:last-child), ${nm} a:not(:last-child)`,{marginInlineEnd:ve.space[300]});const am=(0,me.style)({minWidth:"6.6875rem",minHeight:"11rem"},"size_xxs"),om=(0,me.style)({minWidth:"10rem",minHeight:"5rem"},"size_xs"),im=(0,me.style)({minWidth:"20.75rem",minHeight:"5rem",borderRadius:ve.border.radius.lg},"size_xs-long");he.endFileScope();var lm=["onClick","label","as","children","className","isLoading","isInverse","size","level"],sm=["className","children"],cm=["className","children"],um=["className","children"];function dm(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 pm=function(e){var t=e.onClick,r=e.label,n=e.as,a=void 0===n?"function"==typeof t?"button":"div":n,o=e.children,i=e.className,l=e.isLoading,s=e.isInverse,c=e.size,u=e.level,d=void 0===u?"1":u,p=ye(e,lm);if(l)return fe().createElement(wt,ge({isInverse:s},p,{"data-ppui":"true"}),o);var f={xxs:am,xs:om,"xs-long":im},h={1:Qh,3:Zh},m=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dm(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},p);r&&(m["aria-label"]=r);var g=Ke(Xh,f[c],h[d],t&&Jh,i);return fe().createElement(a,ge({className:g,"data-ppui-info":"card_3.2.3__8.12.0",onClick:t},m),o)};pm.Header=function(e){var t=e.className,r=e.children,n=ye(e,sm),a=Ke(em,t),o=Ke(tm,t);return fe().createElement("header",ge({className:a},n,{"data-ppui":"true"}),fe().createElement(Zn,{size:"sm",className:o,"data-ppui":"true"},r))},pm.Content=function(e){var t=e.className,r=e.children,n=ye(e,cm),a=Ke(rm,t);return fe().createElement("div",ge({className:a},n,{"data-ppui":"true"}),r)},pm.Footer=function(e){var t=e.className,r=e.children,n=ye(e,um),a=Ke(nm,t);return fe().createElement("footer",ge({className:a},n,{"data-ppui":"true"}),r)},he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-checkbox");const fm=`calc(${ve.size.circle.xs} + ${ve.space[150]} + ${ve.space[25]})`,hm=(0,me.style)({position:"relative",textAlign:"start",marginBottom:0},"checkbox_base"),mm=((0,me.style)({display:"flex",flexDirection:"column",margin:0,padding:0,border:"none",textAlign:"start"},"checkbox_group"),(0,me.style)({padding:`${ve.space[150]} 0`},"checkbox-group_base")),gm=(0,me.style)([_t,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"block",paddingInlineStart:fm,position:"relative",textAlign:"start",WebkitTapHighlightColor:"transparent"}],"checkbox_label");(0,me.globalStyle)(`${gm} span:first-of-type`,{insetInlineStart:0}),(0,me.style)({...Et,color:ve.color.background.mediumContrast,padding:`0 0 ${ve.space[150]} 0`,marginBottom:ve.space[50],textAlign:"start"},"checkbox-group_label");const ym=(0,me.style)({position:"relative",top:"0.125rem",marginLeft:ve.space[150]},"checkbox_icon_label"),vm=(0,me.style)({borderRadius:ve.border.radius.xs,border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,boxSizing:"border-box",height:ve.size.circle.xs,left:0,position:"absolute",width:ve.size.circle.xs,lineHeight:1.3,textAlign:"center",backgroundColor:ve.color.background.surface,display:"flex",justifyContent:"center",alignItems:"center",top:0},"checkbox_checkmark_container"),bm=(0,me.style)([vm,{top:"auto"}],"checkbox_checkmark_container_decoration"),wm=(0,me.style)({fontSize:ve.size.icon.xs},"checkbox_check_icon"),xm=(0,me.style)({height:ve.space[25],width:"0.875rem",backgroundColor:ve.color.selected.contrast,borderRadius:ve.border.radius.xs},"checkbox_partial_icon"),km=(0,me.style)({cursor:"pointer",opacity:0,position:"absolute"},"checkbox_input");(0,me.globalStyle)(`${km}:checked + label > span > span:first-of-type`,{borderColor:ve.color.selected.main,backgroundColor:ve.color.selected.main,color:ve.color.selected.contrast,borderRadius:ve.border.radius.xs}),(0,me.globalStyle)(`${km}:checked + label > span > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,me.globalStyle)(`${km}:not(:checked) + label > span > span:first-of-type > span:first-of-type`,{display:"none"}),(0,me.globalStyle)(`${km}:focus + label > span > span:first-of-type`,Oa),(0,me.globalStyle)(`${km}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${ve.border.thickness.normal} * -1)`});const Sm=(0,me.style)({},"checkbox_error_state");(0,me.globalStyle)(`${Sm}:checked + label > span > span:first-of-type`,{borderWidth:ve.border.thickness.emphasis,borderColor:ve.color.error.main}),(0,me.globalStyle)(`${Sm}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${ve.border.thickness.emphasis} * -1)`});const _m=(0,me.style)({borderWidth:ve.border.thickness.emphasis,borderColor:ve.color.error.main,lineHeight:1.1},"error_checkbox"),Em=(0,me.style)({...Pt,color:ve.color.background.mediumContrast},"checkbox-caption_text"),Cm=(0,me.style)([Em,{display:"flex",alignItems:"center",margin:0}],"error_text"),$m=(0,me.style)({color:ve.color.error.main,marginInlineEnd:ve.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_error_icon"),Am=(0,me.style)({color:ve.color.success.main,marginInlineEnd:ve.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_success_icon"),Tm=(0,me.style)({paddingBottom:ve.space[150]},"checkbox_label_error"),Om=(0,me.style)([Em,{margin:`${ve.space[50]} 0 0`}],"checkbox_helper_text"),Pm=((0,me.style)({margin:0},"checkbox_group_helper_text"),(0,me.style)({display:"flex",alignItems:"center",minHeight:"1.5rem",margin:0},"checkbox_items")),Fm=(0,me.style)({display:"flex",alignItems:"center",marginInlineEnd:ve.space[100],minHeight:"auto",pointerEvents:"none"},"checkbox_thumbnail"),Rm=(0,me.style)({width:ve.size.icon.lg,height:ve.size.icon.lg},"checkbox_thumbnail_decoration"),zm=(0,me.style)({margin:0,pointerEvents:"none"},"checkbox_item_text"),Lm=(0,me.style)([Em,{display:"block",paddingTop:ve.space[50],pointerEvents:"none"}],"checkbox_item_secondary_text"),Nm=(0,me.style)({padding:`${ve.space[100]} 0`},"checkbox_group_base_with_sec_text");he.endFileScope();var Im=["id","label","aria-label","decoration","secondaryText","labelIcon","helperText","errorText","errorIconAriaLabel","error","successText","successIconAriaLabel","partial","name","dir","className","onChange","inCheckboxGroup"],Mm=(0,pe.forwardRef)((function(e,t){var r,n,a,o,i,l,s,c,u,d=e.id,p=e.label,f=e["aria-label"],h=e.decoration,m=e.secondaryText,g=e.labelIcon,y=e.helperText,v=e.errorText,b=e.errorIconAriaLabel,w=void 0===b?"Error":b,x=e.error,k=e.successText,S=e.successIconAriaLabel,_=void 0===S?"Success":S,E=e.partial,C=e.name,$=void 0===C?"default":C,A=e.dir,T=e.className,O=e.onChange,P=e.inCheckboxGroup,F=ye(e,Im),R=Ke(hm,x&&Sm,P&&mm,P&&m&&Nm,T),z=null!=d?d:Ze("Checkbox_"),L=fe().createElement(Fo,{className:$m,size:"sm",role:"img","aria-label":w,"data-ppui":"true"}),N=fe().createElement(Eo,{className:Am,size:"sm",role:"img","aria-label":_,"data-ppui":"true"});return x&&!k?r=v&&fe().createElement("p",{className:Cm,id:$,"data-ppui":"true"},L,v):k&&!x&&(r=k&&fe().createElement("p",{className:Cm,id:$,"data-ppui":"true"},N,k)),fe().createElement("div",{className:R,"data-id":"checkbox",dir:A,"data-ppui-info":"checkbox_5.1.2__8.12.0"},fe().createElement("input",ge({className:Ke(km,x&&Sm),tabIndex:0,type:"checkbox",id:z,name:$,ref:t,onChange:function(e){O&&(e.stopPropagation(),O(e))}},F,x&&v&&{"aria-describedby":$,"aria-invalid":!0},{"data-ppui":"true"})),(n=g&&fe().createElement("span",{className:ym,"data-ppui":"true"},g),a=fe().createElement(Co,{className:wm,size:"xs","data-ppui":"true"}),o=fe().createElement("span",{className:xm,"data-ppui":"true"}),i=!x&&!k&&y&&fe().createElement("p",{className:Om,"data-ppui":"true"},y),l=Ke(!!h&&bm,!h&&vm,x&&_m),s=Ke(gm,(x||k)&&!P&&Tm),c=E?o:a,u=fe().createElement("span",{className:Pm,"data-ppui":"true"},fe().createElement("span",{className:l,"data-ppui":"true"},c),function(){var e=h&&fe().createElement("span",{className:Fm,"data-ppui":"true"},fe().cloneElement(h,{className:Ke(h.props.className,Rm)})),t=fe().createElement("span",{className:zm,"data-ppui":"true"},fe().createElement(ea,{as:"span",className:Ke(!p&&ot),"data-ppui":"true"},null!=p?p:f),m&&fe().createElement(ra,{className:Lm,as:"span","data-ppui":"true"},m));return fe().createElement("span",{className:Pm,"data-ppui":"true"},e,t)}()),fe().createElement("label",{className:s,htmlFor:z,"data-ppui":"true"},u,n,i)),r)}));he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-circle-progress-meter");const Dm="50%",jm=ve.size.indicator.sm,Hm=ve.size.circle.lg,Bm=ve.size.circle.md,Vm=ve.size.indicator.xs,Wm=`calc(${Dm} - ${Vm})`,Um=`calc(${Vm} * 2)`,Gm=(0,me.style)({position:"relative",borderRadius:ve.border.radius.interactive,border:`${jm} solid ${ve.color.background.alt}`,width:Hm,height:Hm,backgroundColor:ve.color.background.surface,padding:ve.space[50],flexShrink:0},"circle_progress_meter-base"),qm=(0,me.style)({borderRadius:ve.border.radius.interactive,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},"circle_progress_meter-inner"),Km=(0,me.style)({color:ve.color.accent1.contrast,backgroundColor:ve.color.accent1.main},"circle_progress_meter-inner_accent1"),Ym=(0,me.style)({color:ve.color.accent2.contrast,backgroundColor:ve.color.accent2.main},"circle_progress_meter-inner_accent2"),Xm=(0,me.style)({color:ve.color.accent3.contrast,backgroundColor:ve.color.accent3.main},"circle_progress_meter-inner_accent3"),Qm=(0,me.style)({color:ve.color.accent4.contrast,backgroundColor:ve.color.accent4.main},"circle_progress_meter-inner_accent4"),Zm=(0,me.style)({width:"100%",height:"100%",borderRadius:"inherit"},"circle_progress_meter-inner_image"),Jm=(0,me.style)({position:"absolute",top:`calc(${jm} * -1)`,left:`calc(${jm} * -1)`,width:Hm,height:Hm,fill:"none",strokeWidth:Um,strokeLinecap:"round",transform:"rotate(-90deg)",transformOrigin:"50% 50%",stroke:ve.color.accent2.main},"circle_progress_meter-indicator"),eg=(0,me.style)({width:Bm,height:Bm,borderWidth:Vm},"circle_progress_meter-size_sm"),tg=(0,me.style)({top:`calc(${Vm} * -1)`,left:`calc(${Vm} * -1)`,width:Bm,height:Bm,strokeWidth:Um},"circle_progress_meter-size_sm_progress_indicator"),rg=(0,me.style)({padding:0},"circle_progress_meter-text_base"),ng=(0,me.style)({backgroundColor:ve.color.background.surface},"circle_progress_meter-text_inner"),ag=(0,me.style)({overflow:"hidden"},"circle_progress_meter-text_content"),og=(0,me.style)({width:ve.size.icon.sm,height:ve.size.icon.sm},"circle_progress_meter-icon_wrap_sm"),ig=(0,me.style)({width:ve.size.icon.md,height:ve.size.icon.md},"circle_progress_meter-icon_wrap_lg"),lg=(0,me.style)({stroke:ve.color.accent1.main},"circle_progress-meter_stroke_accent1"),sg=(0,me.style)({stroke:ve.color.accent2.main},"circle_progress-meter_stroke_accent2"),cg=(0,me.style)({stroke:ve.color.accent3.main},"circle_progress-meter_stroke_accent3"),ug=(0,me.style)({stroke:ve.color.accent4.main},"circle_progress-meter_stroke_accent4");he.endFileScope();var dg=["className","max","value","color","label","size","children","innerText","iconComponent","imageSrc"];function pg(e,t){return[(0,me.style)(e,t),e]}(0,pe.forwardRef)((function(e,t){var r,n,a,o=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,m=void 0===h?"lg":h,g=e.children,y=e.innerText,v=e.iconComponent,b=e.imageSrc,w=ye(e,dg),x="sm"===m,k=Wm,S="calc(2 * ".concat(Math.PI," * ").concat(k,")"),_="calc(".concat(S," - (calc(").concat(u/s,") * ").concat(S,"))"),E=Ke(Gm,y&&rg,x&&eg,o),C=Ke(Jm,function(e){var t,r=e.charAt(0).toUpperCase()+e.slice(1);return null!==(t=i["strokeColor".concat(r)])&&void 0!==t?t:sg}(p),x&&tg),$=Ke(qm,function(e){var t,r=e.charAt(0).toUpperCase()+e.slice(1);return null!==(t=i["circleInner".concat(r)])&&void 0!==t?t:Ym}(p),y&&ng);return y?(a=ag,r=x?fe().createElement(ra,{className:a,"data-ppui":"true"},y):fe().createElement(ea,{className:a,"data-ppui":"true"},y)):v?(n=x?og:ig,r=fe().createElement("div",{className:n,"data-ppui":"true"},fe().createElement(v,{size:"sm"===m?"sm":"md","data-ppui":"true"}))):r=b?fe().createElement("img",{src:b,className:Zm,"data-ppui":"true"}):g,fe().createElement("div",{className:E,"data-ppui-info":"circle-progress-meter_1.1.2__8.12.0"},fe().createElement("svg",{className:C,style:{strokeDasharray:S,strokeDashoffset:_},"aria-hidden":"true",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","data-ppui":"true"},fe().createElement("circle",{cx:Dm,cy:Dm,style:{r:Wm},"data-ppui":"true"})),fe().createElement("div",{className:$,"aria-hidden":"true","data-ppui":"true"},r),fe().createElement("label",{className:ot,"data-ppui":"true"},f,fe().createElement("progress",ge({max:s,value:u},w,{ref:t,"data-ppui":"true"}))))})),he.setFileScope("src/caretStyles.css.ts","@paypalcorp/pp-react-utils");const fg=Te,[hg,mg]=pg({":before":{content:"",position:"absolute",backgroundColor:"inherit",width:fg.caretSize,height:fg.caretSize,transform:"scale(0.72) rotate(45deg)",boxShadow:"inherit",zIndex:0},":after":{content:"",position:"absolute",backgroundColor:"inherit",width:"2.5rem",height:ve.space[200]}},"caret_base"),[gg,yg]=pg({":before":{top:"auto",bottom:`calc(-1 * ${fg.caretBottomOffset})`},":after":{top:"auto",bottom:0}},"caret_position_bottom"),[vg,bg]=pg({":before":{bottom:"auto",top:`calc(-1 * ${fg.caretTopOffset})`},":after":{top:0,bottom:"auto"}},"caret_position_top"),[wg,xg]=pg({":before":{left:`calc(50% - ${fg.caretCenterOffset} / 2)`,right:"auto"},":after":{left:"calc(50% - 1.25rem)",right:"auto"}},"caret_position_center"),[kg,Sg]=pg({":before":{left:fg.caretSpaceShiftLeft,right:"auto"},":after":{left:ve.space[100],right:"auto"}},"caret_position_shift_left"),[_g,Eg]=pg({":before":{left:"auto",right:fg.caretSpaceShiftRight},":after":{left:"auto",right:ve.space[100]}},"caret_position_shift_right"),[Cg,$g]=pg({":before":{top:`calc(50% - ${fg.caretLeftOffset})`,bottom:"auto",left:`calc(-1 * ${fg.caretLeftOffset})`,right:"auto"},":after":{transform:"rotate(90deg)",top:`calc(50% - ${fg.caretLeftOffset})`,bottom:"auto",left:`calc(-1 * ${ve.space[150]})`,right:"auto"}},"caret_position_left"),[Ag,Tg]=pg({":before":{top:`calc(50% - ${fg.caretRightOffset})`,bottom:"auto",left:"auto",right:`calc(-1 * ${fg.caretRightOffset})`},":after":{transform:"rotate(90deg)",top:`calc(50% - ${fg.caretRightOffset})`,bottom:"auto",left:"auto",right:`calc(-1 * ${ve.space[150]})`}},"caret_position_right");he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-coach-tip");const Og=`calc(calc(${ve.size.tapTarget.sm} - ${ve.size.icon.xs}/2) + ${ve.size.icon.xs}/2)`,Pg=`calc(${ve.size.pointerWidth.lg}/2)`;(0,me.style)([fl,hg,{display:"none",position:"absolute",backgroundColor:ve.color.background.surface,maxWidth:"20rem",padding:ve.space[300],borderRadius:ve.border.radius.xs,zIndex:1080,":focus":{outline:"none"},vars:{[fg.caretSize]:ve.size.pointerWidth.lg,[fg.caretTopOffset]:Pg,[fg.caretBottomOffset]:Pg,[fg.caretSpaceShiftLeft]:ve.space[300],[fg.caretSpaceShiftRight]:ve.space[300],[fg.caretCenterOffset]:ve.size.pointerWidth.lg,[fg.caretLeftOffset]:Pg,[fg.caretRightOffset]:Pg}}],"coach_tip-base"),(0,me.style)({display:"flex",width:"100%",justifyContent:"space-between"},"coach_tip-header"),(0,me.style)([Zt,{display:"inline-block",marginBottom:ve.space[150],maxWidth:`calc(100% - ${Og})`}],"coach_tip-header_text"),(0,me.style)({display:"inline-block",maxWidth:`calc(100% - ${Og})`},"coach_tip-no_header"),(0,me.style)({display:"flex",alignItems:"center",marginTop:ve.space[150]},"coach_tip-footer"),(0,me.style)([Ot,{display:"inline-block",flex:"1 1 auto",flexShrink:"0"}],"coach_tip-footer_label"),(0,me.style)({display:"flex"},"coach_tip-footer_button_container"),(0,me.style)({marginInlineStart:ve.space[300]},"coach_tip-footer_button"),(0,me.style)([_t],"coach_tip-text"),(0,me.style)({marginTop:`calc(${ve.space[200]} * -1)`,marginInlineEnd:`calc(${ve.space[200]} * -1)`,padding:ve.space[50],zIndex:1},"coach_tip-close_button"),(0,me.style)([vg,kg],"coach_tip-caret_top_left"),(0,me.style)([vg,wg],"coach_tip-caret_top_center"),(0,me.style)([vg,_g],"coach_tip-caret_top_right"),(0,me.style)([gg,kg],"coach_tip-caret_bottom_left"),(0,me.style)([gg,wg],"coach_tip-caret_bottom_center"),(0,me.style)([gg,_g],"coach_tip-caret_bottom_right"),(0,me.style)([Cg],"coach_tip-caret_left"),(0,me.style)([Ag],"coach_tip-caret_right"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-code-input");const Fg=(0,me.style)({display:"inline-block"},"code_input_base"),Rg=(0,me.style)({width:ve.size.field.sm,marginRight:ve.space[100],marginBottom:ve.space[100],"@media":{[`(max-width: ${Se})`]:{width:"2.5rem"}}},"code_input_text_input"),zg=(0,me.style)({padding:0},"code_input_text_input_with_error"),Lg=(0,me.style)({...Qr,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:ve.typography.fieldValueLg.lineHeight}}},"code_input_text_input_control"),Ng=(0,me.style)({display:"flex",marginRight:`calc(${ve.space[100]} * -1)`,marginBottom:`calc(${ve.space[100]} * -1)`,flexWrap:"wrap",selectors:{"[dir='rtl'] & ":{direction:"ltr"}}},"code_input_wrapper"),Ig=(0,me.style)({marginTop:ve.space[50],display:"flex",alignItems:"center"},"code_input_error"),Mg=(0,me.style)({...Pt,color:ve.color.background.mediumContrast,flexGrow:1,width:0},"code_input_error_text"),Dg=(0,me.style)({color:ve.color.error.main,marginInlineEnd:ve.space[50]},"code_input_error_icon"),jg=(0,me.style)({listStyle:"none",padding:0,margin:0},"code_input_error_text_list");he.endFileScope();var Hg=["alphaCharCapitalize","className","errorText","error","name","id","inputClassName","inputWrapperClassName","onChange","pinLength","value","autoFocus","onBlur","onFocus","numberOnly","wrapperAriaLabel"];fe().forwardRef((function(e,t){var r=e.alphaCharCapitalize,n=void 0!==r&&r,a=e.className,o=e.errorText,i=e.error,l=void 0===i?!!o:i,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,m=void 0===h?void 0:h,g=e.pinLength,y=void 0===g?6:g,v=e.value,b=void 0===v?"":v,w=e.autoFocus,x=e.onBlur,k=void 0===x?null:x,S=e.onFocus,_=void 0===S?null:S,E=e.numberOnly,C=void 0!==E&&E,$=e.wrapperAriaLabel,A=void 0===$?"group":$,T=ye(e,Hg),O=(0,pe.useRef)([]),P=t||O,F=/^[0-9]+$/,R=[Je.NAME_BACKSPACE,Je.NAME_DELETE,Je.NAME_TAB],z=el(fe().useState(!1),2),L=z[0],N=z[1],I=Ji(y<3||y>=6?Array(6).keys():Array(y).keys()),M=b&&b.split("").map((function(e){return" "===e?"":e})),D=function(){var e=P.current.map((function(e){return""===e.value?" ":e.value})).join("");m&&m(e)},j=function(e){P&&P.current[e]&&P.current[e].focus()},H=function(e,t){for(var r=P.current.length,a=Math.min(e&&e.length,r),o=t,i=0;i<a&&(P.current[o].value=n?e[i].toUpperCase():e[i],++o!==r);i++);j(o===r?o-1:o)};(0,pe.useEffect)((function(){w&&j(0)}),[]);var B,V=function(e){k&&!P.current.includes(e.relatedTarget)&&(k(e),N(!1))},W=function(e){e.target.select(),_&&!L&&(N(!0),_(e))},U=Ke(Fg,a),G=Ke(Rg,o&&Ig,f),q=Ke(Lg,o&&zg,p),K=I.map((function(e){return fe().createElement(Yi,ge({key:e,className:G,inputClassName:q,"aria-label":"".concat(e+1,"-").concat(I.length),name:"".concat(c,"-").concat(e),id:"ci-".concat(d,"-").concat(e),ref:function(t){return function(e,t){e&&(P.current[t]=e,P.current[t].value=M?M[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)&&j(t+1),n&&(e.target.value=e.target.value.toUpperCase()),e.target.value.length>1){var o=e.target.value.replace(/\s/g,"").split("");H(o,t)}D()}(t,e)},onKeyDown:function(t){return function(e,t){var r=e.key||e.keyCode,n=new Je(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?j(t-1):(e.target.value=" ",D()):n.IS_ARROW_LEFT?j(t-1):n.IS_ARROW_RIGHT?j(t+1):n.IS_HOME?j(0):n.IS_END?j(y-1):e.target.select(),(e.ctrlKey||e.metaKey)&&"v"===r||r.match(F)||R.includes(r)||!C||e.preventDefault()}(t,e)},onPaste:function(e){return function(e){var t=e.clipboardData&&e.clipboardData.getData("text");if(e.preventDefault(),!t||t.match(F)||!C){var r=t&&t.replace(/\s/g,"").split("");("number"===e.target.type||C)&&r.some(isNaN)||(H(r,0),D())}}(e)},onFocus:W,onBlur:V,"aria-describedby":l?"message_".concat(c):null,error:l&&!!o,pattern:C?"[0-9]*":""},T,{"data-ppui":"true"}))}));return fe().createElement("div",{className:U,id:d,"data-ppui-info":"code-input_3.1.2__8.12.0"},fe().createElement("div",{className:Ng,role:"group","aria-label":A,"data-ppui":"true"},K),o&&(B=Array.isArray(o)?fe().createElement("ul",{className:jg,"data-ppui":"true"},o.map((function(e,t){return fe().createElement("li",{key:"text$-".concat(t),"data-ppui":"true"},e)}))):o,fe().createElement("div",{className:Ig,id:"message_".concat(c),role:"alert","data-ppui":"true"},fe().createElement(Fo,{className:Dg,size:"sm","aria-hidden":"true","data-ppui":"true"}),fe().createElement("span",{className:Mg,"data-ppui":"true"},B))))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-flag");const Bg={"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}},Vg={"1x":ve.size.icon.sm,"2x":ve.size.icon.md},Wg=e=>`scale(calc(${Vg[e]} / ${Bg[e].width/16}))`,Ug=e=>({width:"100%",height:"100%",background:`transparent url(${Bg[e].url}) no-repeat`,backgroundSize:"cover",backgroundOrigin:"border-box",transformOrigin:"top left",position:"absolute",left:0,border:`${ve.border.thickness.normal} solid ${ve.color.structure.divider}`,transform:Wg(e),borderRadius:ve.border.radius.xs}),Gg=(0,me.style)({display:"inline-block",boxSizing:"border-box",position:"relative"},"flag"),qg=(0,me.style)({width:ve.size.icon.sm,height:`calc(${ve.size.icon.sm} * 0.75)`},"flag_size_sm"),Kg=(0,me.style)({width:ve.size.icon.md,height:`calc(${ve.size.icon.md} * 0.75)`},"flag_size_md"),Yg=(0,me.style)({"@media":{"only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)":{backgroundImage:`url(${Bg["2x"].url})`,transform:Wg("2x")}}},"flag_scale_base"),Xg=(0,me.style)(Ug("1x"),"flag_scale_sm"),Qg=(0,me.style)(Ug("2x"),"flag_scale_md"),Zg=(0,me.style)({borderRadius:0},"flag_no_rounded_corners"),Jg=(0,me.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");he.endFileScope();var ey=["countryCode","size","noRoundCorners","className"],ty=function(e){var t=e.countryCode,r=e.size,n=void 0===r?"sm":r,a=e.noRoundCorners,o=void 0!==a&&a,i=e.className,l=ye(e,ey);return fe().createElement("div",ge({className:Ke(Gg,"sm"===n&&qg,"md"===n&&Kg,i)},l,{"data-ppui":"true"}),fe().createElement("span",{className:Ke(Yg,Jg,t&&"flag_".concat(t.toLowerCase()),"sm"===n&&Xg,"md"===n&&Qg,o&&Zg),"data-ppui":"true"}))};function ry(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function ny(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new ny.InputMask(e,t)}class ay{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 oy(e){return"string"==typeof e||e instanceof String}ny.ChangeDetails=ay;const iy="NONE",ly="LEFT",sy="FORCE_LEFT",cy="RIGHT",uy="FORCE_RIGHT";function dy(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function py(e){return Array.isArray(e)?e:[e,new ay]}function fy(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(!fy(t[r],e[r]))return!1;return!0}if(n!=a)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){var o=t instanceof Date,i=e instanceof Date;if(o&&i)return t.getTime()==e.getTime();if(o!=i)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(!fy(e[c[r]],t[c[r]]))return!1;return!0}return!(!t||!e||"function"!=typeof t||"function"!=typeof e)&&t.toString()===e.toString()}class hy{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?iy:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?ly:cy}}class my{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 gy{constructor(e){this._value="",this._update(Object.assign({},gy.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 my(this.extractInput(e,t),e)}appendTail(e){return oy(e)&&(e=new my(String(e))),e.appendTo(this)}_appendCharRaw(e){return e?(this._value+=e,new ay({inserted:e,rawInserted:e})):new ay}_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]=py(this.doPrepare(e,t)),a=a.aggregate(this._appendCharRaw(e,t)),a.inserted){let e,o=!1!==this.doValidate(t);if(o&&null!=r){const t=this.state;!0===this.overwrite&&(e=r.state,r.unshift(this.value.length-a.tailShift));let n=this.appendTail(r);o=n.rawInserted===r.toString(),o&&n.inserted||"shift"!==this.overwrite||(this.state=t,e=r.state,r.shift(),n=this.appendTail(r),o=n.rawInserted===r.toString()),o&&n.inserted&&(this.state=t)}o||(a=new ay,this.state=n,r&&e&&(r.state=e))}return a}_appendPlaceholder(){return new ay}_appendEager(){return new ay}append(e,t,r){if(!oy(e))throw new Error("value should be string");const n=new ay,a=oy(r)?new my(String(r)):r;null!=t&&t.tail&&(t._beforeTailState=this.state);for(let r=0;r<e.length;++r){const o=this._appendChar(e[r],t,a);if(!o.rawInserted&&!this.doSkipInvalid(e[r],t,a))break;n.aggregate(o)}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 ay}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 o=e+t,i=this.extractTail(o),l=!0===this.eager||"remove"===this.eager;let s;l&&(n=function(e){switch(e){case ly:return sy;case cy:return uy;default:return e}}(n),s=this.extractInput(0,o,{raw:!0}));let c=e;const u=new ay;if(n!==iy&&(c=this.nearestInputPos(e,t>1&&0!==e&&!l?iy:n),u.tailShift=c-e),u.aggregate(this.remove(c)),l&&n!==iy&&s===this.rawInputValue)if(n===sy){let e;for(;s===this.rawInputValue&&(e=this.value.length);)u.aggregate(new ay({tailShift:-1})).aggregate(this.remove(e-1))}else n===uy&&i.unshift();return u.aggregate(this.append(r,a,i))}maskEquals(e){return this.mask===e}typedValueEquals(e){const t=this.typedValue;return e===t||gy.EMPTY_VALUES.includes(e)&&gy.EMPTY_VALUES.includes(t)||this.doFormat(e)===this.doFormat(this.typedValue)}}function yy(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?ny.MaskedRegExp:oy(e)?ny.MaskedPattern:e instanceof Date||e===Date?ny.MaskedDate:e instanceof Number||"number"==typeof e||e===Number?ny.MaskedNumber:Array.isArray(e)||e===Array?ny.MaskedDynamic:ny.Masked&&e.prototype instanceof ny.Masked?e:e instanceof ny.Masked?e.constructor:e instanceof Function?ny.MaskedFunction:(console.warn("Mask not found for mask",e),ny.Masked)}function vy(e){if(ny.Masked&&e instanceof ny.Masked)return e;const t=(e=Object.assign({},e)).mask;if(ny.Masked&&t instanceof ny.Masked)return t;const r=yy(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)}gy.DEFAULTS={format:String,parse:e=>e,skipInvalid:!0},gy.EMPTY_VALUES=[void 0,null,""],ny.Masked=gy,ny.createMask=vy;const by=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],wy={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 xy{constructor(e){const{parent:t,isOptional:r,placeholderChar:n,displayChar:a,lazy:o,eager:i}=e,l=ry(e,by);this.masked=vy(l),Object.assign(this,{parent:t,isOptional:r,placeholderChar:n,displayChar:a,lazy:o,eager:i})}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 ay}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 ay;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 ay;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new ay}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]:iy;const r=this.value.length,n=Math.min(Math.max(e,0),r);switch(t){case ly:case sy:return this.isComplete?n:0;case cy:case uy: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 ky{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 ay}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iy;const r=this._value.length;switch(t){case ly:case sy: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 ay;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 ay;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new my("")}appendTail(e){return oy(e)&&(e=new my(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 Sy=["chunks"];class _y{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;oy(e)&&(e=new my(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 my)r?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof _y){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 ny.MaskedPattern))return new my(this.toString()).appendTo(e);const t=new ay;for(let r=0;r<this.chunks.length&&!t.skip;++r){const n=this.chunks[r],a=e._mapPosToBlock(e.value.length),o=n.stop;let i;if(null!=o&&(!a||a.index<=o)){if(n instanceof _y||e._stops.indexOf(o)>=0){const r=e._appendPlaceholder(o);t.aggregate(r)}i=n instanceof _y&&e._blocks[o]}if(i){const r=i.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=ry(e,Sy);Object.assign(this,r),this.chunks=t.map((e=>{const t="chunks"in e?new _y:new my;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 Ey{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,sy),0!==this.offset||void 0}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ly),!0}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ly),!0}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,uy),this.offset!==this.block.value.length||void 0}))}pushRightBeforeInput(){return this._pushRight((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,iy),!0}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,iy),!0}))}}ny.MaskedRegExp=class extends gy{_update(e){e.mask&&(e.validate=t=>t.search(e.mask)>=0),super._update(e)}};const Cy=["_blocks"];class $y extends gy{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},wy,e.definitions),super(Object.assign({},$y.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 i=0;i<t.length;++i){var a,o;if(this.blocks){const e=t.slice(i),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=vy(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)),i+=n.length-1;continue}}let l=t[i],s=l in e;if(l===$y.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===l||"}"===l){r=!r;continue}if("["===l||"]"===l){n=!n;continue}if(l===$y.ESCAPE_CHAR){if(++i,l=t[i],!l)break;s=!1}const c=null===(a=e[l])||void 0===a||!a.mask||(null===(o=e[l])||void 0===o?void 0:o.mask.prototype)instanceof ny.Masked?{mask:e[l]}:e[l],u=s?new xy(Object.assign({parent:this,isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},c)):new ky({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=ry(e,Cy);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 ay;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 ay;if(!r)return n;for(let i=r.index;;++i){var a,o;const r=this._blocks[i];if(!r)break;const l=r._appendChar(e,Object.assign({},t,{_beforeTailState:null===(a=t._beforeTailState)||void 0===a||null===(o=a._blocks)||void 0===o?void 0:o[i]})),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 _y;return e===t||this._forEachBlocksInRange(e,t,((e,t,n,a)=>{const o=e.extractTail(n,a);o.stop=this._findStopBefore(t),o.from=this._blockStartPos(t),o instanceof _y&&(o.blockIndex=t),r.extend(o)})),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,o)=>{n+=e.extractInput(a,o,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 ay;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,o=n.offset,i=e&&a?e.offset:this._blocks[n.index].value.length;if(r(this._blocks[n.index],n.index,o,i),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]:iy;if(!this._blocks.length)return 0;const r=new Ey(this,e);if(t===iy)return r.pushRightBeforeInput()?r.pos:(r.popState(),r.pushLeftBeforeInput()?r.pos:this.value.length);if(t===ly||t===sy){if(t===ly){if(r.pushRightBeforeFilled(),r.ok&&r.pos===e)return e;r.popState()}if(r.pushLeftBeforeInput(),r.pushLeftBeforeRequired(),r.pushLeftBeforeFilled(),t===ly){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===sy?0:(r.popState(),r.ok?r.pos:(r.popState(),r.ok?r.pos:0))}return t===cy||t===uy?(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.pushRightBeforeFilled()?r.pos:t===uy?this.value.length:(r.popState(),r.ok?r.pos:(r.popState(),r.ok?r.pos:this.nearestInputPos(e,ly)))):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])):[]}}$y.DEFAULTS={lazy:!0,placeholderChar:"_"},$y.STOP_CHAR="`",$y.ESCAPE_CHAR="\\",$y.InputDefinition=xy,$y.FixedDefinition=ky,ny.MaskedPattern=$y;class Ay extends $y{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]=py(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 o=this.value+e;if(o.length>this.maxLength)return"";const[i,l]=this.boundaries(o);return Number(l)<this.from?n[o.length-1]:Number(i)>this.to?"pad"===this.autofix&&o.length<this.maxLength?["",t.aggregate(this.append(n[o.length-1]+e,r))]:a[o.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)}}ny.MaskedRange=Ay;class Ty extends $y{constructor(e){super(Object.assign({},Ty.DEFAULTS,e))}_update(e){e.mask===Date&&delete e.mask,e.pattern&&(e.mask=e.pattern);const t=e.blocks;e.blocks=Object.assign({},Ty.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)}}Ty.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)}},Ty.GET_DEFAULT_BLOCKS=()=>({d:{mask:Ay,from:1,to:31,maxLength:2},m:{mask:Ay,from:1,to:12,maxLength:2},Y:{mask:Ay,from:1900,to:9999}}),ny.MaskedDate=Ty;class Oy{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(){}}ny.MaskElement=Oy;class Py extends Oy{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(Py.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)}}Py.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},ny.HTMLMaskElement=Py;class Fy extends Py{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}}ny.HTMLContenteditableMaskElement=Fy;const Ry=["mask"];ny.InputMask=class{constructor(e,t){this.el=e instanceof Oy?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new Fy(e):new Py(e),this.masked=vy(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 ny.Masked)&&this.masked.constructor===yy(e))return void this.masked.updateOptions({mask:e});const t=vy({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=ry(e,Ry),n=!this.maskEquals(t),a=!fy(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,ly))}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 hy(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:iy;let o=this.masked.nearestInputPos(t.startChangePos+n,a);a!==iy&&(o=this.masked.nearestInputPos(o,iy)),this.updateControl(),this.updateCursor(o),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 zy extends gy{constructor(e){super(Object.assign({},zy.DEFAULTS,e))}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"(".concat(dy(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(dy).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(dy(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]=py(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 o=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(o);return a.tailShift+=(i-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 o=this._separatorsCountFromSlice(r);return new ay({tailShift:(o-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case iy:case ly:case sy:{const r=this._findSeparatorAround(e-1);if(r>=0){const n=r+this.thousandsSeparator.length;if(e<n||this.value.length<=n||t===sy)return r}break}case cy:case uy:{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===zy.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,zy.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(e){this.rawInputValue=this.doFormat(e).replace(zy.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)||zy.EMPTY_VALUES.includes(e)&&zy.EMPTY_VALUES.includes(this.typedValue))&&!(0===e&&""===this.value)}}zy.UNMASKED_RADIX=".",zy.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[zy.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},zy.EMPTY_VALUES=[...gy.EMPTY_VALUES,0],ny.MaskedNumber=zy;var Ly=["name","isControlled","maskOptions","onAccept","onComplete","value"],Ny={Range:ny.MaskedRange},Iy=(0,pe.forwardRef)((function(e,t){var r=e.name,n=e.isControlled,a=void 0!==n&&n,o=e.maskOptions,i=void 0===o?{mask:Number}:o,l=e.onAccept,s=e.onComplete,c=e.value,u=ye(e,Ly),d=(0,pe.useRef)(),p=t||d,f=(0,pe.useRef)(null),h=null==f?void 0:f.current;return(0,pe.useEffect)((function(){h&&h.updateOptions(i)}),[i]),(0,pe.useEffect)((function(){h&&(h.unmaskedValue=c)}),[c]),(0,pe.useEffect)((function(){var e=p.current;if(e&&!f.current){f.current=ny(e,i);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)),fe().createElement(Yi,ge({name:r,value:c,ref:p,"data-ppui-info":"masked-text-input_3.2.3__8.12.0"},u))}));he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-tooltip");const{caretSize:My,caretRightOffset:Dy,caretTopOffset:jy,caretBottomOffset:Hy,caretLeftOffset:By,caretCenterOffset:Vy,caretSpaceShiftLeft:Wy,caretSpaceShiftRight:Uy}=fg,{E3:Gy,Fm:qy}=o,Ky="18rem",Yy=`calc(${ve.size.pointerWidth.lg} / 2)`,Xy=((0,me.style)([fl,hg,yg,xg,{...Et,color:ve.color.background.highContrast,visibility:"hidden",opacity:0,maxWidth:Ky,wordWrap:"break-word",padding:ve.space[200],position:"absolute",borderRadius:ve.border.radius.sm,backgroundColor:ve.color.background.surface,zIndex:1070,selectors:{"[aria-hidden = 'false']&":{visibility:"visible",opacity:1}},vars:{[Dy]:Yy,[My]:ve.size.pointerWidth.lg,[jy]:Yy,[Hy]:Yy,[By]:Yy,[Vy]:ve.size.pointerWidth.lg,[Wy]:ve.size.pointerWidth.lg,[Uy]:ve.size.pointerWidth.lg}}],"tooltip_base"),(0,me.style)(Tg,"tooltip_position_left"),(0,me.style)($g,"tooltip_position_right"),(0,me.style)(bg,"tooltip_position_bottom"),(0,me.style)(Sg,"tooltip_tip_position_left"),(0,me.style)(Eg,"tooltip_tip_position_right"),(0,me.style)([Gy,qy,{width:ve.size.tapTarget.sm,height:ve.size.tapTarget.sm,padding:0,display:"inline-flex",justifyContent:"center",alignItems:"center",color:ve.color.secondary.main,cursor:"pointer",border:0,backgroundColor:"transparent",position:"relative",":hover":{color:ve.color.secondary.mainActive,outline:"0.938rem"},":active":{color:ve.color.secondary.mainActive,outline:"none"},":focus":{outline:"none"}}],"tooltip-icon"));(0,me.globalStyle)(`${Xy}:focus > span:first-of-type`,{borderRadius:ve.border.radius.interactive,...Oa});const Qy=(0,me.style)({display:"flex"},"tooltip_image");(0,me.globalStyle)(`${Qy} > img `,{maxWidth:`calc(${Ky}-2*${ve.space[200]})`}),(0,me.style)({justifyContent:"flex-start",paddingBottom:ve.space[100]},"tooltip_image_top_left"),(0,me.style)({justifyContent:"center",paddingBottom:ve.space[100]},"tooltip_image_top_center"),(0,me.style)({justifyContent:"flex-start",paddingTop:ve.space[100]},"tooltip_image_bottom_left"),(0,me.style)({justifyContent:"center",paddingTop:ve.space[100]},"tooltip_image_bottom_center"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-credit-card-input"),(0,me.style)({height:ve.size.icon.md},"credit_card_cvv_image"),(0,me.style)({selectors:{"[dir='rtl'] &":{direction:"ltr",textAlign:"right"}}},"credit_card_number_input_rtl"),he.endFileScope();var Zy=["name","maskOptions","prefix","suffix","currencyType","value"],Jy=(0,pe.forwardRef)((function(e,t){var r=e.name,n=e.maskOptions,a=e.prefix,o=e.suffix,i=e.currencyType,l=void 0===i?"USD":i,s=e.value,c=ye(e,Zy),u=(0,pe.useContext)(ja),d=Va(u,n,l),p=d.currencyMaskOptions,f=d.intlCurrencyPrefix,h=d.intlCurrencySuffix,m="decimal",g=s;if(p&&(0===p.scale&&(m="numeric"),g)){var y=el(g.split("."),2),v=y[0],b=y[1];if(b){var w=b.substring(0,p.scale);g=v+(w?p.radix+w:"")}}return fe().createElement(Iy,ge({name:r,value:g,maskOptions:p,prefix:a||f,suffix:o||h,inputMode:m,ref:t,"data-ppui-info":"currency-input_3.2.7__8.12.0"},c))}));he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-table");const ev=e=>`screen and (${e}-width: ${_e})`,tv=(0,me.style)({},"table-type_data"),rv=(0,me.style)({},"table-type_summary"),nv=(0,me.style)({},"table-fixed_first_column_table"),av=(0,me.style)({},"table-section_summary_heading"),ov=(0,me.style)({},"table-section_summary_item"),iv=(0,me.style)({},"table-section_summary_adjust"),lv=(0,me.style)({},"table-section_summary_total"),sv=(0,me.style)({},"table-section_utility"),cv=(0,me.style)({display:"inline-block",overflow:"auto",maxHeight:"100%",width:"100%"},"table-scroll_context"),uv=(0,me.style)({border:"none",tableLayout:"fixed",display:"block",overflow:"auto"},"table-scroll_context_table"),dv=(0,me.style)({borderSpacing:0,borderCollapse:"separate",border:"none",tableLayout:"fixed",overflow:"auto",width:"100%"},"table-r_table_base"),pv=(0,me.style)({"@media":{[ev("max")]:{border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,borderEndEndRadius:ve.border.radius.lg,borderEndStartRadius:ve.border.radius.lg}}},"table-summary_wrap"),fv=(0,me.style)({display:"block"},"table-fixed1st"),hv={position:"sticky",top:0,zIndex:1},mv=(0,me.style)(hv,"table-head_sticky"),gv=(0,me.style)({position:"sticky",bottom:0,zIndex:10},"table-foot_sticky"),yv=(0,me.style)({"@media":{[ev("max")]:{selectors:{[`${dv} &`]:{display:"none"}}}},selectors:{[`${uv} &`]:hv}},"table-thead"),vv=(0,me.style)({backgroundColor:ve.color.background.surface},"table-tbody"),bv=(0,me.style)({backgroundColor:ve.color.background.surface},"table-tfoot"),wv=(0,me.style)({textAlign:"start",padding:ve.space[150],selectors:{[`${vv} &:first-of-type`]:{...Tt,backgroundColor:"inherit"},[`${uv} ${yv} &`]:{borderBottom:"none",position:"sticky",top:0,backgroundColor:ve.color.background.main},[`${uv} ${vv} &`]:{...kl,clipPath:`polygon(0 0, 0 100%, calc(100% + ${ve.elevation.blurBase}) 100%, calc(100% + ${ve.elevation.blurBase}) 0)`},[`${nv} &`]:{position:"sticky"},[`${nv} &:first-of-type`]:{left:0},[`${nv} ${yv} &:first-of-type`]:{...kl,borderBottom:"none",clipPath:`polygon(0 0, 0 100%, calc(100% + ${ve.elevation.blurBase}) 100%, calc(100% + ${ve.elevation.blurBase}) 0)`,zIndex:2},[`[dir='rtl'] ${nv} ${yv} &`]:{clipPath:`polygon(\n calc(-1 * ${ve.elevation.blurBase}) 0,\n calc(-1 * ${ve.elevation.blurBase}) 100%,\n 100% 100%,\n 100% calc(-1*${ve.elevation.blurBase})\n )`,right:0,left:"unset"},[`[dir='rtl'] ${nv} ${vv} &:first-of-type`]:{position:"sticky",left:"unset",right:0,clipPath:`polygon(\n calc(-1*${ve.elevation.blurBase}) 0,\n calc(-1*${ve.elevation.blurBase}) 100%,\n 100% 100%,\n 100% calc(-1*${ve.elevation.blurBase})\n )`},[`${tv} ${yv} &`]:{...Tt,backgroundColor:ve.color.background.main},[`${rv} ${yv} &`]:{...nr,backgroundColor:ve.color.background.surface},[`${rv} ${bv} &`]:{...nr,backgroundColor:ve.color.background.main},[`${dv} ${bv} &:first-of-type`]:{...nr,position:"sticky",bottom:0,verticalAlign:"middle"},[`${dv} ${vv} &`]:{position:"sticky",left:0},[`${dv} &`]:{"@media":{[ev("max")]:{display:"block",height:"auto",padding:`${ve.space[50]} ${ve.space[100]}`,border:"none !important"}}},[`${dv} &:first-of-type`]:{"@media":{[ev("min")]:{paddingLeft:ve.space[200]}}},[`${dv} &:last-of-type`]:{"@media":{[ev("min")]:{paddingRight:ve.space[200]}}}}},"table-th"),xv=(0,me.style)({backgroundColor:ve.color.background.surface,borderBottom:`${ve.space[50]} solid ${ve.color.background.main}`,selectors:{[`${dv} &`]:{"@media":{[ev("max")]:{display:"grid",width:"100%",gridTemplateAreas:"'a1 a2 a3' 'b1 b2 b3'",gridTemplateColumns:"auto 1fr auto",gap:`0 ${ve.space[100]}`,padding:`${ve.space[150]} 0`}}},[`${yv} &`]:{whiteSpace:"nowrap"},[`${bv} &`]:{backgroundColor:ve.color.background.main,whiteSpace:"nowrap"},[`${ov} &`]:{borderBottom:"none"},[`${iv} &`]:{borderBottom:"none",borderTop:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`},[`${lv} &`]:{borderTop:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,backgroundColor:ve.color.background.main}}},"table-row_base"),kv=(0,me.style)({backgroundColor:ve.color.selectedRange.main,color:ve.color.selectedRange.contrast},"table-row_selected"),Sv=(0,me.style)({...Et,color:"inherit",padding:ve.space[150],height:`calc(${ve.size.tapTarget.default} + ${ve.space[150]} * 2)`,width:"var(--normalWidth)",verticalAlign:"middle",borderBottom:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,paddingLeft:ve.space[200],selectors:{[`${sv} &`]:{borderBottom:"none",backgroundColor:ve.color.background.surface},[`${av} &`]:{textAlign:"start",padding:ve.space[150],borderBottom:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`},[`${ov} &`]:{borderBottom:"none"},[`${ov} &:first-of-type`]:{borderLeft:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`},[`${ov} &:last-of-type`]:{borderRight:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`},[`${iv} &`]:{...Tt,borderTop:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,borderBottom:"none"},[`${iv} &:first-of-type`]:{borderLeft:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`},[`${iv} &:last-of-type`]:{borderRight:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`},[`${lv} &`]:{...Tt,backgroundColor:ve.color.background.main,borderTop:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`},[`${lv} &:first-of-type`]:{borderEndStartRadius:ve.border.radius.lg,borderLeft:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`},[`${lv} &:last-of-type`]:{borderEndEndRadius:ve.border.radius.lg,borderRight:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`}}},"table-cell_base"),_v=(0,me.style)({"@media":{[ev("min")]:{":first-of-type":{paddingLeft:ve.space[200]},":last-of-type":{paddingRight:ve.space[200]}},[ev("max")]:{display:"block",height:"auto",padding:`${ve.space[50]} ${ve.space[100]}`,border:"none !important"}}},"table-cell_resp"),Ev=(0,me.style)([_t,{borderSpacing:0,borderCollapse:"separate"}],"table-base"),Cv=(0,me.style)({textAlign:"start"},"table-align_start"),$v=(0,me.style)({textAlign:"end"},"table-align_end"),Av=(0,me.style)({textAlign:"center"},"table-align_center"),Tv=(0,me.style)({"@media":{[ev("max")]:{display:"none"}}},"table-m_hide"),Ov=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a1"}}},"table-m_a1"),Pv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a2"}}},"table-m_a2"),Fv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a3",textAlign:"end",width:"100%"}}},"table-m_a3"),Rv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a1 / a1 / a2 / a2"}}},"table-m_a12"),zv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a2 / a2 / a3 / a3"}}},"table-m_a12"),Lv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a1 / a1 / a3 / a3"}}},"table-m_a123"),Nv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"b1"}}},"table-m_b1"),Iv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"b2"}}},"table-m_b2"),Mv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"b3",textAlign:"end",width:"100%"}}},"table-m_b3"),Dv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"b1 / b1 / b2 / b2"}}},"table-m_b12"),jv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"b2 / b2 / b3 / b3"}}},"table-m_b23"),Hv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"b1 / b1 / b3 / b3",width:"100%"}}},"table-m_b123"),Bv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a1 / a1 / b1 / b1"}}},"table-m_ab1"),Vv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a2 / a2 / b2 / b2"}}},"table-m_ab2"),Wv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a3 / a3 / b3 / b3",width:"100%"}}},"table-m_ab3"),Uv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a1 / a1 / b2 / b2"}}},"table-m_ab12"),Gv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a2 / a2 / b3 / b3",width:"100%"}}},"table-m_ab23"),qv=(0,me.style)({"@media":{[ev("max")]:{gridArea:"a1 / a1 / b3 / b3",width:"100%"}}},"table-m_ab123"),Kv=(0,me.style)({width:"100%"},"table-w100"),Yv=(0,me.style)({"@media":{[ev("max")]:{width:"var(--mWidth)"}}},"table_cell-mobile_width"),Xv=(0,me.style)({"@media":{[ev("max")]:{textAlign:"start"}}},"table-align_start"),Qv=(0,me.style)({"@media":{[ev("max")]:{textAlign:"end"}}},"table-align_end"),Zv=(0,me.style)({"@media":{[ev("max")]:{textAlign:"center"}}},"table-align_center");he.endFileScope();var Jv=["className","children","sticky","as"],eb=(0,pe.forwardRef)((function(e,t){var r=e.className,n=e.children,a=e.sticky,o=void 0!==a&&a,i=e.as,s=void 0===i?"tbody":i,c=ye(e,Jv),u=Ke(l[s],o&&"thead"===s&&mv,o&&"tfoot"===s&&gv,r);return fe().createElement(s,ge({ref:t,className:u},c,{"data-ppui":"true"}),n)})),tb=function(e){return fe().createElement(eb,ge({},e,{as:"tbody","data-ppui":"true"}))},rb=function(e){return fe().createElement(eb,ge({},e,{as:"thead","data-ppui":"true"}))},nb=["isSelected","section","className","children"],ab=(0,pe.forwardRef)((function(e,t){var r=e.isSelected,n=e.section,a=e.className,o=e.children,i=ye(e,nb),l=Ke(xv,r&&kv,n&&function(e){switch(e){case"summaryHeading":return av;case"summaryItem":return ov;case"summaryAdjust":return iv;case"summaryTotal":return lv;case"utility":return sv;default:return""}}(n),a);return fe().createElement("tr",ge({ref:t,className:l},i,{"data-ppui":"true"}),o)})),ob=["className","mobile","claimsRemainingSpace","width","span","isHeader","children","align"];function ib(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 lb=(0,pe.forwardRef)((function(e,t){var r=e.className,n=e.mobile,a=e.claimsRemainingSpace,o=e.width,i=e.span,l=void 0===i?1:i,s=e.isHeader,c=e.children,u=e.align,d=ye(e,ob),p={hidden:Tv,a1:Ov,a2:Pv,a3:Fv,b1:Nv,b2:Iv,b3:Mv,a12:Rv,a23:zv,a123:Lv,b12:Dv,b23:jv,b123:Hv,ab1:Bv,ab2:Vv,ab3:Wv,ab12:Uv,ab23:Gv,ab123:qv},f=function(e,t){switch(e){case"right":case"end":return t?Qv:$v;case"center":return t?Zv:Av;default:return t?Xv:Cv}},h=Ke(Sv,s&&wv,u&&f(u,!1),(null==n?void 0:n.align)&&f(n.align,!0),(null==n?void 0:n.placement)&&_v,(null==n?void 0:n.placement)&&p[n.placement],(null==n?void 0:n.width)&&Yv,a&&Kv,r),m={"--normalWidth":o,"--mWidth":null==n?void 0:n.width},g=s?"th":"td",y=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ib(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ib(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d);return l>1&&(y.colSpan=l),fe().createElement(g,ge({ref:t,className:h},y,{style:m,"data-ppui":"true"}),c)})),sb=function(e){return fe().createElement(lb,ge({isHeader:!0},e,{"data-ppui":"true"}))};he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-data-table");const cb=(0,me.style)({display:"flex",alignItems:"center"},"data_table-flex_container"),ub=(0,me.style)({display:"grid",gridTemplateColumns:"1fr auto",gap:ve.space[150],alignItems:"center"},"data_table-setting_icon"),db=(0,me.style)({},"data_table-checkbox");(0,me.globalStyle)(`${db} label`,{display:"block"});const pb=(0,me.style)({visibility:"hidden"},"data_table-checkbox_disabled"),fb=(0,me.style)({backgroundSize:ve.size.circle.lg},"data_table-empty_table_label"),hb=(0,me.style)({marginTop:ve.space[150],display:"grid",gridTemplateColumns:"auto",gridTemplateRows:"auto auto",placeItems:"center"},"data_table-info_block"),mb=(0,me.style)({margin:`${ve.space[150]} 0`},"data_table-iblock_msg"),gb=(0,me.style)({margin:`${ve.space[150]} 0`},"data_table-iblock_action"),yb=(0,me.style)({width:ve.size.pictogram.sm},"data_table-iblock_deco"),vb=((0,me.style)({padding:ve.space[100],display:"inline-grid",gridTemplateColumns:"auto 1fr",placeItems:"center",gap:ve.space[100],height:"auto"},"data_table-icon_message"),(0,me.style)({padding:`${ve.space[100]} ${ve.space[150]}`},"data_table-see_more"),(0,me.style)({marginLeft:ve.space[50],selectors:{"[dir='rtl'] &":{marginRight:ve.space[50],marginLeft:0}}},"data_table-header_button")),bb=(0,me.style)({color:ve.color.primary.main,border:`${ve.border.thickness.normal} solid ${ve.color.primary.main}`,borderRadius:ve.border.radius.interactive},"data_table-currently_sorted_by_icon"),wb=((0,me.style)({position:"relative",":before":{content:" ",position:"absolute",inset:0,backgroundColor:ve.color.structure.scrim,zIndex:1}},"data_table-loading"),(0,me.style)({padding:ve.space[150],display:"grid",placeItems:"center"},"data_table-spinner"));(0,me.style)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1},"data_table-spinner"),he.endFileScope(),fe().memo((function(e){var t,r=e.columns,n=e.columnOrder,a=e.isInteractive,o=e.toggleAllLabel,i=void 0===o?"Toggle all rows":o,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,pe.useMemo)((function(){return c.reduce((function(e,t){var r=t.id;return t.isUnselectable||e.push(r),e}),[])}),[c]),g=Ke(cb,0===m.length&&pb);if(a){var y=l.length>0,v=m.length&&l.length===m.length;t=fe().createElement(Mm,{name:"".concat(s,"DataTableToggleAll"),id:"".concat(s,"DataTableToggleAll"),"aria-label":i,className:g,partial:y&&!v,checked:y||v,onChange:function(e){d(e.target.checked?m:[])},"data-ppui":"true"})}var b=n.length-1,w=n.map((function(e,n){return function(e,r,n,o){var i=r.title,l=r.sortButtonLabel,s=r.sortDirection,c=r.isSortCurrent,d=r.align,m=r.width,g=r.claimsRemainingSpace,y=i;if(s){var v="ascending"===s?So:ko,b=l||"".concat(c?"Currently":""," sorted by ").concat(e," in ").concat(s," order");y=fe().createElement("div",{className:cb,"data-ppui":"true"},i,fe().createElement(xp,{className:vb,iconClassName:c&&bb,svgIconComponent:v,onClick:function(){p&&p(e,"ascending"===s?"descending":"ascending")},buttonType:"tertiary",btnState:f===e?"processing":"initial",size:"sm","data-ppui":"true"},b))}if(0===n&&a&&(y=function(e){return fe().createElement("div",{className:Ke(cb,u),"data-ppui":"true"},t,e)}(y)),o&&"function"==typeof(null==h?void 0:h.onClick)){var w,x=fe().createElement(xp,{svgIconComponent:Mo,buttonType:"tertiary",onClick:function(){h&&h.onClick&&h.onClick()},"data-ppui":"true"},h.screenReaderText);!function(e){return"string"==typeof e&&e.length>0||!!e}(i)?(y=x,d=null!==(w=d)&&void 0!==w?w:"end"):y=fe().createElement("div",{className:ub,"data-ppui":"true"},fe().createElement("div",{"data-ppui":"true"},y),fe().createElement("div",{"data-ppui":"true"},x))}return fe().createElement(sb,{key:e,scope:"col","aria-sort":s,align:d,width:m,claimsRemainingSpace:g,"data-ppui":"true"},y)}(e,r[e],n,n===b)}));return fe().createElement(rb,{sticky:!0,"data-ppui":"true"},fe().createElement(ab,{"data-ppui":"true"},w))})),fe().memo((function(e){var t,r=e.rows,n=e.isInteractive,a=e.idPrefix,o=e.selectedRows,i=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=fe().createElement(Mm,{name:"".concat(a,"DataTable").concat(r),id:"".concat(a,"DataTable").concat(r),"aria-label":r,className:Ke(db,e.isUnselectable&&pb),disabled:!!e.isUnselectable,checked:o.includes(r),onChange:function(e){var t=e.target.checked?o.concat(r):o.filter((function(e){return e!==r}));c(t)},"data-ppui":"true"}));var u=n&&o.includes(r),d=function(e,t){return l.map((function(r,a){var o=function(e,t){var r=e[t]?e[t].value:"";if(i[t].cellAs){var n=i[t].cellAs;r=fe().createElement(n,ge({id:e.id},e[t],{"data-ppui":"true"}))}return r}(e,r),l=i[r],c=l.mobile,u=l.align,d=l.width;return 0===a&&n?fe().createElement(sb,{key:r,mobile:c,align:u,width:d,scope:"row","data-ppui":"true"},function(e,t){return fe().createElement("div",{className:Ke(cb,s),"data-ppui":"true"},e,t)}(t,o)):fe().createElement(lb,{key:r,mobile:c,align:u,width:d,"data-ppui":"true"},o)}))}(e,t);return fe().createElement(ab,{key:r,isSelected:u,"data-ppui":"true"},d)})),p=function(e){var t=e.decoration,r=e.buttonLabel,n=e.buttonRef,a=e.message,o=e.isError,i=e.buttonAction,l=e.processing,s=r&&i?fe().createElement(Kh,{onClick:i,secondary:o,tertiary:!o,size:"sm",ref:n,key:"load-btn",btnState:l?"processing":"initial","data-ppui":"true"},r):null;return fe().createElement("div",{className:hb,"data-ppui":"true"},t,fe().createElement("div",{className:mb,"data-ppui":"true"},a),fe().createElement("div",{className:gb,"data-ppui":"true"},s))};return d.length?fe().createElement(tb,{"data-ppui":"true"},d):(t=u.errorMsg?fe().createElement(p,{decoration:fe().createElement(No,{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?fe().createElement("div",{className:wb,"data-ppui":"true"},fe().createElement(ms,{size:"lg",as:"div",screenReaderText:u.loadingText,"aria-live":u.loadingText,"data-ppui":"true"})):fe().createElement(p,{decoration:fe().createElement("img",{className:yb,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"}),fe().createElement(tb,{"data-ppui":"true"},fe().createElement(ab,{"data-ppui":"true"},fe().createElement(lb,{span:l.length,align:"center",className:fb,mobile:{placement:"ab123"},"data-ppui":"true"},t))))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-date-input");const{caretSize:xb,caretTopOffset:kb,caretCenterOffset:Sb}=fg,_b={width:"100%"},Eb=e=>{const t=["end"===e?ve.color.selectedRange.main:ve.color.background.surface,"end"===e?ve.color.background.surface:ve.color.selectedRange.main];return(0,me.style)({background:`linear-gradient(to right, ${t[0]} 50%, ${t[1]} 50%)`},`calendar_range_${e}`)},Cb=e=>({width:e,height:e}),$b=()=>(0,me.style)([pl,hg,bg,xg,{backgroundColor:ve.color.background.surface,position:"absolute",top:`calc(${ve.size.field.lg} + ${ve.space[100]})`,padding:ve.space[200],border:`${ve.border.thickness.normal} solid ${ve.color.background.surface}`,borderRadius:ve.border.radius.sm,zIndex:Ve,cursor:"initial",vars:{[xb]:ve.size.pointerWidth.lg,[kb]:`calc(${ve.size.pointerWidth.lg} / 2)`,[Sb]:ve.size.pointerWidth.lg}}],"calendar_container"),Ab=(0,me.style)({cursor:"pointer"},"calendar_trigger"),Tb=(0,me.style)([$b(),{selectors:{"&:after":{top:`calc(${ve.border.thickness.normal} * -1)`}}}],"calendar_container"),Ob=(0,me.style)([$b(),{right:`calc(${ve.space[100]} * -1)`,selectors:{"&:before":{left:`calc(100% - ((${ve.size.icon.lg} / 2) + ${ve.space[200]}))`},"&:after":{top:`calc(${ve.border.thickness.normal} * -1)`,left:`calc(100% - ${ve.space[600]})`}}}],"calendar_container-left"),Pb=(0,me.style)([$b(),{left:`calc(${ve.space[100]} * -1)`,selectors:{"&:before":{left:`calc(${ve.size.icon.lg} / 2)`},"&:after":{top:`calc(${ve.border.thickness.normal} * -1)`,left:`calc((${ve.size.icon.lg} / 2) - ${ve.space[100]})`}}}],"calendar_container-right"),Fb=((0,me.style)({display:"flex",alignItems:"center",justifyContent:"space-between",whiteSpace:"nowrap","@media":{[`screen and (max-width: ${Ee})`]:{marginTop:ve.space[50]}}},"calendar_nav"),(0,me.style)({},"nav_prev_btn"),(0,me.style)({},"nav_next_btn"),(0,me.style)({selectors:{"&:after":{display:"none"}}},"calendar_nav-no-focus"),(0,me.style)({visibility:"hidden"},"calendar_nav-hidden"),(0,me.style)({},"full_width"));(0,me.globalStyle)(`${Fb} table`,_b);const Rb=(0,me.style)({borderSpacing:0,"@media":{[`screen and (max-width: ${_e})`]:_b}},"calendar_table");(0,me.globalStyle)(`${Rb} th, ${Rb} td`,{textAlign:"center",padding:`${ve.space[25]} 0`}),(0,me.style)({borderTop:`${ve.border.thickness.normal} solid transparent`,borderBottom:`${ve.border.thickness.normal} solid transparent`,backgroundColor:`${ve.color.selectedRange.main}`},"cell_in_range"),Eb("start"),Eb("end"),(0,me.style)([Cb(ve.size.tapTarget.default),_t,{border:"none",padding:0,margin:`0 ${ve.space[25]}`,textDecoration:"none",cursor:"pointer",borderRadius:ve.border.radius.interactive,backgroundColor:"transparent",selectors:{"&:hover":{border:`${ve.border.thickness.emphasis} solid ${ve.color.primary.mainHover}`}},"@media":{[`screen and (max-width: ${ke})`]:Cb(ve.size.tapTarget.sm),[`screen and (min-width: ${ke}) and (max-width: ${Se})`]:Cb(ve.size.tapTarget.sm)}}],"date"),(0,me.style)({color:ve.color.selectedRange.contrast},"date_in_range"),(0,me.style)({color:ve.color.background.mediumContrast},"date_not_current"),(0,me.style)({textDecorationLine:"line-through",cursor:"not-allowed",color:ve.color.background.mediumContrast,selectors:{"&:hover":{border:"none"}}},"disabled"),(0,me.style)({border:`${ve.border.thickness.normal} solid ${ve.color.background.highContrast}`},"today"),(0,me.style)({color:ve.color.selected.contrast,border:`${ve.border.thickness.normal} solid ${ve.color.selected.main}`,backgroundColor:ve.color.selected.main},"selected"),(0,me.style)({color:ve.color.specialty.main,border:`${ve.border.thickness.normal} solid ${ve.color.specialty.main}`},"due_date"),(0,me.style)({color:ve.color.selected.contrast,border:`${ve.border.thickness.normal} solid ${ve.color.specialty.main}`},"due_date_selected"),(0,me.style)([Cb(ve.size.tapTarget.default),{display:"inline-block",position:"relative","@media":{[`screen and (max-width: ${ke})`]:Cb(ve.size.tapTarget.sm),[`(min-width: ${ke}) and (max-width: ${Se})`]:Cb(ve.size.tapTarget.sm)}}],"icon_container"),(0,me.style)({position:"absolute",bottom:0,right:0,pointerEvents:"none",backgroundColor:ve.color.background.surface,borderRadius:ve.border.radius.interactive,color:ve.color.specialty.main},"icon"),(0,me.style)({display:"flex",alignItems:"center",marginTop:ve.space[100],marginInlineStart:ve.space[200]},"legend"),(0,me.style)({display:"flex",alignItems:"center",whiteSpace:"nowrap",marginInlineEnd:ve.space[200]},"legend_item"),(0,me.style)({color:ve.color.background.mediumContrast},"legend_item_label"),(0,me.style)({width:ve.typography.caption.size,height:ve.typography.caption.size,display:"inline-block",marginInlineEnd:ve.space[50],borderRadius:ve.border.radius.interactive},"key"),(0,me.style)({backgroundColor:ve.color.background.surface,color:ve.color.specialty.main,marginInlineEnd:ve.space[50],borderRadius:ve.border.radius.interactive},"due_date_legend_key");const zb=(0,me.style)({},"date_input-wrapper");(0,me.globalStyle)(`${zb} input`,{color:ve.color.background.mediumContrast}),(0,me.globalStyle)(`${zb} input:focus`,{color:ve.color.background.highContrast}),(0,me.globalStyle)(`${zb} [dir="rtl"] input`,{textAlign:"right",direction:"ltr"}),he.endFileScope();var Lb={mask:"m`/d`/y",lazy:!1,blocks:{d:{mask:Ny.Range,from:1,to:31,maxLength:2,placeholderChar:"D"},m:{mask:Ny.Range,from:1,to:12,maxLength:2,placeholderChar:"M"},y:{mask:Ny.Range,from:1900,to:2999,maxLength:4,placeholderChar:"Y"}}},Nb=function(e){var t=e.isCalendarVisible,r=e.label,n=e.children,a=e.calendarTriggerRef,o=e.wrapperContainerRef,i=e.onShowCalendar,l=e.calendarInSheet,s=void 0!==l&&l,c=el((0,pe.useState)(!1),2),u=c[0],d=c[1],p=(0,pe.useRef)(),f=el((0,pe.useState)(Tb),2),h=f[0],m=f[1],g=function(e){new Je(e.key||e.keyCode).IS_ESC&&i(!1)},y=function(e){a.current.contains(e.target)||p.current.contains(e.target)||i(!1)},v=function(){i(!1)};return(0,pe.useLayoutEffect)((function(){m(Tb);var e,r,n=Ie()&&window.innerWidth<752;return function(){var e,t=(e=a)&&e.current?e.current:null,r=t.getBoundingClientRect(),n=Ie()&&window.innerWidth||document.documentElement.clientWidth,i=200+.0625*((Ie()&&parseFloat(window.getComputedStyle(document.documentElement).fontSize))-16)*200;if(null==o?void 0:o.current){var l=o.current.getBoundingClientRect();r.left-l.left<i?m(Pb):l.right+i>l.width&&m(Ob)}else t&&(r.left<i?m(Pb):r.right+i>n&&m(Ob))}(),d(n),!n&&t&&(window.addEventListener("resize",v),document.addEventListener("keydown",g),s||document.addEventListener("click",y),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",v),document.removeEventListener("keydown",g),document.removeEventListener("click",y)}}),[t]),u||s?fe().createElement(Qp,{isOpen:t,onCloseComplete:function(){return i(!1)},noCloseButton:!0,title:r,skipFormFocus:!0,"data-ppui":"true"},s&&!u?fe().createElement("div",{className:Fb,"data-ppui":"true"},n):n):t?fe().createElement("div",{className:h,ref:p,"data-ppui":"true"},n):null};function Ib(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 Mb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ib(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ib(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Db(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 jb(e){return e?new Intl.DateTimeFormat("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}).format(e):""}var Hb=Intl.DateTimeFormat().resolvedOptions().timeZone,Bb=["name","label","className","calendar","isCalendarVisible","wrapperContainerRef","onShowCalendar","maskOptions","selectedDate","onSelection","parseDate","formatDate","formatterSkeleton","sheetContainerRef","onComplete","onAccept","calendarInSheet","isLabelHidden"];(0,pe.forwardRef)((function(e,t){var r=e.name,n=e.label,a=e.className,o=e.calendar,i=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,m=void 0===h?"yyyyMMdd":h,g=e.sheetContainerRef,y=e.onComplete,v=e.onAccept,b=e.calendarInSheet,w=e.isLabelHidden,x=ye(e,Bb);d||(d=function(){});var k=(0,pe.useContext)(ja),S=(0,pe.useRef)(),_=(0,pe.useRef)(),E=t||_,C=(0,pe.useRef)(),$=(0,pe.useMemo)((function(){return function(e,t,r){if(!e||!e.dateInputMaskFormat)return Mb(Mb({},Lb),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:""}),o=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 Mb(Mb(Mb({},Lb),{},{blocks:{d:Mb(Mb({},Lb.blocks.d),{},{placeholderChar:a.day}),m:Mb(Mb({},Lb.blocks.m),{},{placeholderChar:a.month}),y:Mb(Mb({},Lb.blocks.y),{},{placeholderChar:a.year})}},r),{},{mask:o})}(k,m,c)}),[m,c]),A=(0,pe.useMemo)((function(){return function(e,t,r,n){if(!e||!e.dateTimeFormatter)return{_formatDate:r||jb,_parseDate:n||Db};var a=e.dateTimeFormatter({style:t,timeZone:Hb});return{_formatDate:r||function(e){return e?a.format(e):""},_parseDate:n||function(e){return e&&a.parse(e)}}}(k,m,f,p)}),[f,p]),T=A._formatDate,O=A._parseDate,P=o&&fe().createElement(fe().Fragment,null,fe().createElement(_o,{size:"sm",onMouseDown:function(e){return e.preventDefault()},onClick:function(){E.current.focus(),s(!i)},svgElementRef:S,color:"sysColorBackgroundMediumContrast",className:Ab,"aria-hidden":"true","data-ppui":"true"}),fe().createElement(Nb,{isCalendarVisible:i,onShowCalendar:s,label:n,sheetContainerRef:g,wrapperContainerRef:l,calendarTriggerRef:S,calendarInSheet:b,"data-ppui":"true"},o)),F=T(u).replace(/\D/g,"");C.current=F;var R=Ke(zb,a);return fe().createElement(Iy,ge({name:r,label:n,rightIcon:P,maskOptions:$,className:R,inputMode:"numeric","data-ppui-info":"date-input_4.1.5__8.12.0"},x,{onComplete:function(e,t,r){t!==C.current&&d(O(e)),y&&y(e,t,r)},onAccept:function(e,t,r){t||d(null),v&&v(e,t,r)},value:F,ref:E,isLabelHidden:w}))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-dialog");const{variables:Vb}=n,{ppuiEaseInOut:Wb}=Vb,Ub=ve.space[400],Gb=`calc(${ve.size.media.xl} * 0.75)`,qb=`screen and (max-width: ${_e})`,Kb=`screen and (max-width: ${Se})`,Yb=`screen and (min-width: ${_e})`,Xb={borderTopLeftRadius:ve.border.radius.jumbo,borderTopRightRadius:ve.border.radius.jumbo},Qb=(e="center")=>(0,me.style)({display:"flex",alignItems:e,justifyContent:"space-around"},`dialog-container_center_${e}`),Zb=((0,me.style)([Qb(),{width:"75%",maxWidth:Gb,"@media":{[qb]:{width:`calc(100% - ${ve.space[600]})`},[Kb]:{width:`calc(100% - ${ve.space[400]})`}}}],"dialog-container_middle"),(0,me.style)([{minHeight:"8rem",borderRadius:ve.border.radius.jumbo,maxHeight:"75dvh",opacity:0,transition:`opacity ${ve.motion.duration.depart} ${Wb}`}],"dialog"),(0,me.style)(Xb,"dialog_header_scrolled"),(0,me.style)([Qb("center"),{position:"fixed",inset:0,zIndex:We,visibility:"hidden",opacity:0,willChange:"opacity",transition:`opacity ${ve.motion.duration.depart} ease-in-out,\n visibility ${ve.motion.duration.depart} ${ve.motion.duration.depart}`,backgroundColor:ve.color.overlay.mainHover,boxShadow:"none"}],"dialog_backdrop"));(0,me.globalStyle)(`${Zb} [aria-hidden="false"], ${Zb} [aria-hidden="true"]`,{transitionDuration:ve.motion.duration.arrive}),(0,me.style)({visibility:"visible",opacity:1,transition:`opacity ${ve.motion.duration.depart} ease-in-out`},"dialog_backdrop_show"),(0,me.style)({opacity:1,transition:`opacity ${ve.motion.duration.depart} ease-in-out ${ve.motion.duration.depart}`},"dialog_backdrop_show_article"),(0,me.style)({maxHeight:"70dvh",padding:`0 ${Ub}`},"dialog-content"),(0,me.style)({"@media":{[Kb]:{padding:`0 ${ve.space[200]} ${ve.space[300]}`}}},"dialog-content_no_padding");const Jb=(0,me.style)({position:"absolute",right:ve.space[50],top:ve.space[50],zIndex:2,selectors:{'[dir="rtl"] &':{left:ve.space[50],right:"auto","@media":{[Yb]:{left:ve.size.indicator.md}}}}},"dialog-content_close");(0,me.globalStyle)(`${Jb}`,{"@media":{[Yb]:{right:ve.size.indicator.md,top:ve.space[150]}}}),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-divider"),(0,me.style)({border:"none",borderTop:`${ve.border.thickness.normal} solid ${ve.color.structure.divider}`,margin:`${ve.space[150]} 0`},"divider_base"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-dropdown-menu");const ew=(0,me.style)({position:"relative",textAlign:"start"},"dropdown-base"),tw=(0,me.style)([Gr,da,{pointerEvents:"none",position:"absolute",transition:`font-size ${ve.motion.duration.hover} ease-in-out, top ${ve.motion.duration.hover} ease-in-out, background-color ${ve.motion.duration.hover} linear`,insetInlineStart:ve.space[150],top:`calc((${ve.size.field.lg} - ${ve.typography.fieldLabelLg.lineHeight}) / 2)`,insetInlineEnd:`calc(${ve.space[150]} + ${ve.size.icon.sm})`}],"dropdown-label"),rw=(0,me.style)([Ta],"dropdown-button_active"),nw=(0,me.style)([Kr,da,{boxSizing:"border-box",height:ve.size.field.lg,width:"100%",border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderLowContrast}`,borderRadius:ve.border.radius.sm,backgroundColor:ve.color.background.surface,paddingTop:`calc(${ve.space[100]} + ${ve.space[25]} + ${ve.typography.fieldLabelSm.lineHeight} - ${ve.border.thickness.normal})`,paddingInlineEnd:`calc(${ve.space[150]} + ${ve.size.icon.sm} - ${ve.border.thickness.normal})`,paddingInlineStart:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,paddingBottom:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,cursor:"pointer",textAlign:"start",":focus":Oa}],"dropdown-button"),aw=(0,me.style)({border:`${ve.border.thickness.emphasis} solid ${ve.color.error.main}`,paddingTop:`calc(${ve.space[100]} + ${ve.space[25]} + ${ve.typography.fieldLabelSm.lineHeight} - ${ve.border.thickness.emphasis})`,paddingInlineEnd:`calc(${ve.space[150]} + ${ve.size.icon.sm} - ${ve.border.thickness.emphasis})`,paddingInlineStart:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`,paddingBottom:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`},"dropdown-button_error"),ow=(0,me.style)([Wr,{top:ve.space[100]}],"dropdown-label_active"),iw=(0,me.style)({pointerEvents:"none",position:"absolute",top:`calc(${ve.space[100]} + ${ve.space[150]})`,insetInlineEnd:`calc(${ve.space[100]} + ${ve.space[150]})`,marginInlineStart:ve.space[150]},"dropdown-affordance_icon"),lw=(0,me.style)({...Pt,color:ve.color.background.mediumContrast,display:"flex",marginTop:ve.space[50],alignItems:"center"},"dropdown-helper_text"),sw=(0,me.style)({...Pt,color:ve.color.background.mediumContrast,display:"flex",marginTop:ve.space[50],alignItems:"center"},"dropdown-error_text"),cw=(0,me.style)({color:ve.color.error.main,marginInlineEnd:ve.space[50]},"dropdown-error_icon"),uw=(0,me.style)({opacity:0,position:"absolute",pointerEvents:"none",width:0,height:0},"dropdpown-select_box");he.endFileScope();var dw=["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 pw(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 fw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pw(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hw=function(e){return e&&e.current?e.current:null},mw=(0,pe.forwardRef)((function(e,t){var r=e.className,n=e.menuContainerClassName,a=e.menuListClassName,o=e.menuItemClassName,i=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,m=void 0===h?"Label":h,g=e.name,y=e.errorText,v=e.errorIconAriaLabel,b=void 0===v?"Error":v,w=e.helperText,x=e.value,k=e.options,S=void 0===k?[]:k,_=e.ariaLabelledby,E=e.renderButtonContent,C=e.onChange,$=e.onClose,A=e.onClick,T=e.onKeyDown,O=e.isLoadingOptions,P=e.showUnselect,F=ye(e,dw),R="dropdownMenuButton_".concat(f||m.replace(/\s/g,"")),z=(0,pe.useRef)(),L=null!=t?t:z,N="dropdownMenuSelect_".concat(f||m.replace(/\s/g,"")),I=el((0,pe.useState)(!1),2),M=I[0],D=I[1],j=el((0,pe.useState)(!!x),2),H=j[0],B=j[1],V=el((0,pe.useState)(!1),2),W=V[0],U=V[1];(0,pe.useEffect)((function(){var e,t=hw(L),r=t&&(null===(e=window)||void 0===e?void 0:e.getComputedStyle(t));U("rtl"===(null==r?void 0:r.direction))}));var G=function(e){D((function(e){return!e})),B(!e.detail)},q=function(e){D(!1);var t,r=hw(L);if(r&&(u?r.blur():r.focus()),C){var n=S.length>0&&e>=0;t=n?S[e].value||S[e].label:null,P&&(t=n?S[e].value:null),C({target:{selectedIndex:e,value:t}})}},K=w?"dropdown_helperText":y&&"dropdown_errorText",Y="",X="",Q=-1;if(x){for(var Z=0;Z<S.length;Z++)if(S[Z].value===x){Y=E?E():S[Z].label,X=S[Z].value,Q=Z;break}}else!x&&S.length>0&&""===S[0].value&&(Q=0);var J=M?Oo:Ao,ee=fe().createElement(J,{size:"sm",className:iw,color:"BackgroundMediumContrast","aria-hidden":"true","data-ppui":"true"}),te=_?"".concat(R,"-label ").concat(_):"".concat(R,"-label");Y&&(te="".concat(te," ").concat(R));var re=fw(fw(fw({},K&&{"aria-describedby":K}),{"aria-labelledby":te}),F),ne=Ke(nw,M&&rw,y&&aw),ae=Ke(tw,(M||Y)&&ow);return fe().createElement("div",{className:Ke(ew,r),id:f,"data-ppui-info":"dropdown-menu_4.2.5__8.12.0"},fe().createElement("select",{className:uw,"aria-hidden":"true",id:N,name:g,tabIndex:-1,onChange:function(e){return q(e.target.selectedIndex-1)},value:X,autoComplete:F.autoComplete,"data-ppui":"true"},fe().createElement("option",{disabled:!0,value:"","data-ppui":"true"},m),S.length>0&&S.map((function(e,t){return fe().createElement("option",{key:t,value:e.value?e.value:e.label,"data-ppui":"true"},e.label)}))),fe().createElement("button",ge({className:Ke(ne,l),type:"button",id:R,ref:L,"aria-haspopup":"listbox","aria-expanded":M,onClick:function(e){((null==S?void 0:S.length)||O)&&(G(e),A&&A(e))},onKeyDown:function(e){var t=new Je(e.key||e.keyCode);!M&&(t.IS_ARROW_UP||t.IS_ARROW_DOWN)&&function(e){return!(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)}(e)&&(e.preventDefault(),G(e)),T&&T(e)}},re,{"data-ppui":"true"}),ee,fe().createElement("span",{"data-ppui":"true"},Y)),fe().createElement("label",{id:"".concat(R,"-label"),htmlFor:R,className:Ke(ae,s),"data-ppui":"true"},fe().createElement("span",{"data-ppui":"true"},m)),fe().createElement(tf,{initialItemFocus:H,isOpen:M,mobileTitle:m,onClose:function(e){D(!1),$&&$(e)},onSelection:q,selectedIndex:Q,triggerElementRef:L,options:S,className:a,containerClassName:n,itemClassName:o,mobileHeaderClassName:i,sheetClassName:d,sheetWrapperClassName:p,rtl:W,returnFocusToTrigger:!u,isLoadingOptions:O,searchEnabled:!0,"data-ppui":"true"}),function(e,t,r,n){if(e){var a={className:cw,role:"img","aria-label":t},o=fe().createElement(Fo,ge({size:"sm"},a,{"data-ppui":"true"}));return fe().createElement("div",{className:sw,id:n,role:"alert","data-ppui":"true"},o,fe().createElement("span",{"data-ppui":"true"},e))}return r?fe().createElement("div",{className:lw,id:n,"data-ppui":"true"},fe().createElement("span",{"data-ppui":"true"},r)):null}(y,b,w,K))}));he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-error-view");const gw=(0,me.style)({display:"flex",alignItems:"center",justifyContent:"center",height:ve.size.media.sm},"error-view_base"),yw=(0,me.style)({display:"flex",flexDirection:"column"},"error-view_wrapper"),vw=(0,me.style)({position:"fixed",inset:0,backgroundColor:ve.color.background.surface,zIndex:We},"error-view_fullscreen-base"),bw=(0,me.style)({display:"flex",flexDirection:"column",alignItems:"center",position:"absolute",top:"33%",width:"100%",padding:`0 ${ve.space[400]}`},"error-view_fullscreen-wrapper"),ww=(0,me.style)([rn,{marginBottom:ve.space[200],textAlign:"center"}],"error-view_title"),xw=(0,me.style)({textAlign:"center",marginBottom:ve.space[200]},"error-view_subtitle"),kw=(0,me.style)({display:"flex",flexDirection:"column",alignItems:"center"},"error-view_button-wrap"),Sw=(0,me.style)({margin:`${ve.space[100]} 0`},"error-view_primary-button");he.endFileScope();var _w=function(e){var t,r=e.title,n=void 0===r?"title":r,a=e.subTitle,o=void 0===a?"sub title":a,i=e.primaryButtonOptions,l=e.tertiaryButtonOptions,s=e.fullScreen,c=void 0!==s&&s;(0,pe.useLayoutEffect)((function(){return c&&Me()&&(document.body.style.overflow="hidden"),function(){c&&Me()&&(document.body.style.overflow="auto")}}),[]);var u=gw,d=yw;return c&&(u=vw,d=bw),fe().createElement("section",{className:u,"data-ppui-info":"error-view_2.1.3__8.12.0","aria-live":"polite"},fe().createElement("div",{className:d,"data-ppui":"true"},fe().createElement(Zn,{size:"sm",className:ww,"data-ppui":"true"},n),fe().createElement(ea,{clampAtLine:3,className:xw,"data-ppui":"true"},o),fe().createElement("div",{className:kw,"data-ppui":"true"},fe().createElement(Kh,{onClick:null==i?void 0:i.onClick,className:Ke(Sw,null==i?void 0:i.className),"data-ppui":"true"},null!==(t=null==i?void 0:i.title)&&void 0!==t?t:"title"),l&&fe().createElement(Kh,ge({tertiary:!0},l,{"data-ppui":"true"}),l.title))))};he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-facet");const Ew=(0,me.keyframes)({"0%":{opacity:0},"100%":{opacity:1}},"button_fade_in"),Cw=(0,me.style)({position:"relative",textAlign:"center",backgroundColor:ve.color.background.surface,borderRadius:ve.border.radius.jumbo},"facet_container"),$w=(0,me.style)([{width:"100%",cursor:"pointer",display:"inline-grid",backgroundColor:ve.color.background.surface,borderRadius:ve.border.radius.jumbo}],"facet_label"),Aw=(0,me.style)([tn,Rt,{justifyContent:"center",alignItems:"center",cursor:"pointer",wordWrap:"break-word",color:ve.color.background.highContrast}],"facet_label_inner_span"),Tw=(0,me.style)({color:"transparent",pointerEvents:"none",":hover":{color:"transparent"},":active":{color:"transparent"},":visited":{color:"transparent"}},"facet_processing_state"),Ow={sm:(0,me.style)({minWidth:"2.75rem",maxWidth:"8rem"},"facet_sm_container"),lg:(0,me.style)({minWidth:"4rem",maxWidth:"10rem"},"facet_lg_container")},Pw={sm:(0,me.style)({padding:`${ve.space[100]} ${ve.space[150]}`,height:ve.space[400]},"facet_size_sm"),lg:(0,me.style)({padding:`${ve.space[150]} ${ve.space[300]}`,height:ve.space[500]},"facet_size_lg")},Fw=(0,me.style)({opacity:0,position:"absolute"},"facet_control"),Rw=(0,me.style)({position:"absolute",inset:0,borderRadius:"inherit",textAlign:"center",opacity:0,animation:`${Ew} ${ve.motion.duration.hover} ease-in forwards`,display:"flex",justifyContent:"center",alignItems:"center",paddingRight:0},"facet_state_overlay"),zw=(0,me.style)({color:ve.color.background.highContrast},"facet_loading_spinner");(0,me.globalStyle)(`${Cw}:has(${Fw}:focus)`,{...Oa}),(0,me.globalStyle)(`${Fw}:hover ~ label`,{outline:`${ve.border.thickness.emphasis} solid ${ve.color.unselected.mainHover}`,outlineOffset:`calc(${ve.border.thickness.emphasis}*-1)`}),(0,me.globalStyle)(`${Fw}:checked ~ label`,{outline:`${ve.border.thickness.emphasis} solid ${ve.color.selected.main}`,color:ve.color.selected.main,outlineOffset:`calc(${ve.border.thickness.emphasis}*-1)`}),he.endFileScope();var Lw=["state","selected","screenReaderText","size","className","inputClassName","labelClassName","id","label","onChange","onClick","value"];(0,pe.forwardRef)((function(e,t){var r=e.state,n=void 0===r?"initial":r,a=e.selected,o=e.screenReaderText,i=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,m=ye(e,Lw),g=null!=u?u:Ze("Facets_"),y={};"processing"===n&&(y.as="span","sm"===i&&(y.size="xs"));var v={defaultChecked:!!a};p&&(v.onChange=p),f&&(v.onClick=f),v.disabled=n&&"initial"!==n;var b=v.disabled?fe().createElement("span",{className:Rw,"data-ppui":"true"},"processing"===n&&fe().createElement(ms,ge({},y,{className:zw,"data-ppui":"true"}))):null,w=o?fe().createElement("span",{role:"status",className:ot,"data-ppui":"true"},o):null,x=["sm","lg"].includes(i)?i:"lg",k=Ke($w,Pw[x],c),S=Ke(Cw,Ow[x],l),_=Ke(Aw,"processing"===n&&Tw);return fe().createElement("div",{className:S,"data-ppui-info":"facet_1.2.2__8.12.0"},fe().createElement("input",ge({className:Ke(Fw,s),id:g,type:"checkbox","aria-label":d,value:h,ref:t},v,m,{"data-ppui":"true"})),b,fe().createElement("label",{className:k,htmlFor:g,"data-ppui":"true"},fe().createElement("span",{className:_,"data-ppui":"true"},d)),w)})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-focus-flow");const Nw=(e,t="focus_flow")=>`${t}_${e}`,Iw="44rem",Mw=`calc(2 * ${ve.space[300]})`;(0,me.style)({position:"fixed",inset:"0",backgroundColor:ve.color.background.surface,zIndex:We},Nw("base")),(0,me.style)({height:"100%",margin:"0 auto",display:"flex",flexDirection:"column"},Nw("container")),(0,me.style)([_t,{overflow:"auto",position:"relative",borderRadius:"inherit",padding:`${ve.space[200]} 0`,margin:"0 auto",width:"36rem",flexBasis:"100%","@media":{[`screen and (max-width: ${Iw})`]:{width:"100%",padding:ve.space[200]}}}],Nw("content")),(0,me.style)({width:"100%"},Nw("header")),(0,me.style)({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:ve.space[200],position:"relative",flex:"0 0 auto",zIndex:"1",width:Iw,margin:"0 auto",padding:`${ve.space[150]} 0`,"@media":{[`screen and (max-width: ${Iw})`]:{width:"100%",padding:`${ve.space[100]} ${ve.space[200]}`}}},Nw("header_content")),(0,me.style)({flex:`0 0 ${ve.size.icon.lg}`},Nw("header_action")),(0,me.style)([_t,{flex:`1 1 ${Mw}`,margin:`${ve.space[100]} 0`,textAlign:"center"}],Nw("header_title")),(0,me.style)({flex:`0 0 ${ve.size.icon.lg}`},Nw("header_close")),(0,me.style)({display:"flex",flex:`1 1 ${Mw}`,justifyContent:"center",marginTop:`${ve.space[100]}`,width:`${ve.size.icon.md}`,height:`${ve.size.icon.md}`},Nw("header_logo")),(0,me.style)([fl],Nw("header_scrolled")),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-hero-currency");const Dw=44/64,jw=1/Dw,Hw={position:"absolute",content:"",top:ve.space[50],bottom:ve.space[50]},Bw=(0,me.style)({":after":{borderRight:`${ve.border.thickness.emphasis} solid`,borderRightColor:"transparent"},selectors:{"[dir='rtl'] &:before":{borderRight:`${ve.border.thickness.emphasis} solid`,borderRightColor:"transparent"}}},"hero_currency-border_right_color"),Vw=((0,me.style)(Hw,"hero_currency-cursor_position"),(0,me.keyframes)({"50%":{borderRightColor:"transparent"}},"hero_currency-blinker")),Ww={borderRight:`${ve.border.thickness.emphasis} solid`,borderRightColor:ve.color.background.highContrast,animation:`${Vw} 1s step-start infinite`},Uw=((0,me.style)(Ww,"hero_currency-animateCursor"),(0,me.style)({borderBottom:`${ve.border.thickness.normal} solid transperent`},"hero_currency-base")),Gw=(0,me.style)({textAlign:"center"},"hero_currency-center_aligned"),qw=(0,me.style)({marginBottom:`calc(${ve.space[300]} + ${ve.space[75]})`},"hero_currency-error_text_spacing"),Kw=(0,me.style)({display:"inline-flex",fontSize:ve.space[800],lineHeight:`calc(${ve.space[800]} + ${ve.space[50]})`,transformOrigin:"left",scale:Dw,pointerEvents:"none",transition:"scale 200ms ease-in-out",selectors:{"[dir='rtl'] &":{transformOrigin:"right"}}},"hero_currency-view"),Yw=(0,me.style)({display:"inline-block"},"hero_currency-currency_part"),Xw=(0,me.style)({selectors:{[`${Uw}:hover &`]:{scale:.75}}},"hero_currency-no_focus"),Qw=(0,me.style)({transformOrigin:"center",selectors:{"[dir='rtl'] &":{transformOrigin:"center"}}},"hero_currency-center_view"),Zw=(0,me.style)({height:0},"hero_currency-text_input");(0,me.globalStyle)(`${Zw} > div:first-of-type`,{opacity:0});const Jw=(0,me.style)({scale:1},"hero_currency-focused_view"),ex=(0,me.style)({":after":Ww,selectors:{"[dir='rtl'] &:before":Ww}},"hero_currency-focus_enter"),tx=(0,me.style)({color:ve.color.background.mediumContrast,fontWeight:"normal"},"hero_currency-trailing_zeros_focused"),rx=(0,me.style)({color:ve.color.background.highContrast},"hero_currency-trailing_zeros_focused_default"),nx=(0,me.style)({color:ve.color.background.highContrast,selectors:{"[dir='rtl'] &":{opacity:1}}},"hero_currency-symbol"),ax=(0,me.style)({color:ve.color.background.highContrast,fontWeight:"normal",position:"relative",":after":Hw,selectors:{"[dir='rtl'] &":{order:3,direction:"ltr"},"[dir='rtl'] &:after":{content:"none"},"[dir='rtl'] &:before":Hw}},"hero_currency-entered"),ox=(0,me.style)({color:ve.color.background.highContrast,selectors:{"[dir='rtl'] &":{order:2}}},"hero_currency-trailing_zeros_default"),ix=(0,me.style)({marginInlineStart:ve.space[100],alignSelf:"center",pointerEvents:"auto",scale:jw,transformOrigin:"left",selectors:{":focus &:after":{boxShadow:"none",border:"none"},"[dir='rtl'] &":{transformOrigin:"right",order:4}}},"hero_currency-edit_icon");he.endFileScope();var lx=["name","id","maskOptions","currencyType","prefix","onAccept","onFocus","onBlur","onKeyDown","value","className","inputClassName","label","showEditIcon","align"];function sx(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 cx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sx(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,pe.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"heroCurrency":r,a=e.id,o=void 0===a?n:a,i=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,m=void 0===h?null:h,g=e.value,y=void 0===g?"":g;e.className;var v=e.inputClassName,b=e.label,w=void 0===b?"Enter amount":b,x=e.showEditIcon,k=e.align,S=void 0===k?"left":k,_=ye(e,lx);c||(c=function(){});var E=(0,pe.useRef)(),C=el((0,pe.useState)(""),2),$=C[0],A=C[1],T=el((0,pe.useState)(""),2),O=T[0],P=T[1],F=t||E,R=(0,pe.useContext)(ja),z=(0,pe.useMemo)((function(){return Va(R,i,l)}),[R,i,l]),L=z.currencyMaskOptions,N=z.intlCurrencyPrefix,I=z.intlCurrencySuffix;function M(){if(null==F?void 0:F.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:H?"":"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):""}}(F.current.value,L.radix,L.scale);A(e.entered),P(e.trailingZeros)}}(0,pe.useEffect)((function(){M()}),[y]);var D=s||N||I||"$",j=el((0,pe.useState)(!1),2),H=j[0],B=j[1],V=Ke(Uw,"center"===S&&Gw,(_.errorText||_.helperText||_.successText)&&qw),W=Ke(Kw,H&&Jw,!H&&Xw,"center"===S&&Qw),U=Ke(ax,!H&&Bw,H&&ex,Yw),G=Ke(!H&&ox,H&&tx,H&&!y&&rx,Yw),q=cx(cx({},L),{},{normalizeZeros:!1,padFractionalZeros:!1}),K=0===(null==L?void 0:L.scale)?"numeric":"decimal";return fe().createElement("div",{className:V,id:o,"data-ppui-info":"hero-currency_3.2.7__8.12.0"},fe().createElement(Jy,ge({name:n,label:w,inputMode:K,value:y,maskOptions:q,inputClassName:v,className:Zw,onFocus:function(e){B(!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(B(!1),""!==$){var t=$.replaceAll(L.thousandsSeparator,"").replace(L.radix,".");c(null==$?void 0:$.concat(O),null==t?void 0:t.concat(O),null==t?void 0:t.concat(O))}f&&f(e)},onAccept:c,onKeyDown:function(e){new Je(e.key||e.keyCode).IS_SIDE_NAVIGATION&&(e.preventDefault(),e.stopPropagation()),m&&m(e)},onInput:M,prefix:D,autoComplete:"off",ref:F},_,{"data-ppui":"true"})),fe().createElement("div",{className:W,"aria-hidden":"true","data-ppui":"true"},fe().createElement("span",{className:Ke(nx,Yw),"data-ppui":"true"},D),fe().createElement("span",{className:U,"data-ppui":"true"},$),fe().createElement("span",{className:G,"data-ppui":"true"},O),!H&&x&&y&&fe().createElement(xp,{buttonType:"tertiary",svgIconComponent:zo,className:ix,onClick:function(){(null==F?void 0:F.current)&&F.current.focus()},tabIndex:"-1","data-ppui":"true"})))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-horizontal-scroll");const{ppuiEaseInOut:ux}=n?.variables,dx=(0,me.style)({position:"relative"},"horizontal_scroll_base"),px=(0,me.style)({display:"flex",flexDirection:"row",listStyle:"none",margin:0,overflowY:"-moz-hidden-unscrollable",overflowX:"auto",padding:`${ve.space[200]} 0`},"horizontal_scroll_item_list");(0,me.globalStyle)(`${px} > *`,{flex:"0 0 auto"});const fx=(0,me.style)({margin:`0 ${ve.space[100]}`,"@media":{[`(max-width:${_e})`]:{margin:`0 ${ve.space[75]}`}}},"horizontal_scroll_item"),hx=(0,me.style)({position:"absolute",top:0,display:"flex",alignItems:"center",height:`calc(100% - ${ve.size.indicator.lg} - ${ve.space[200]})`,opacity:0,transition:`opacity 0.3s ${ux}`,pointerEvents:"none",selectors:{[`${dx}:hover &`]:{opacity:1}}},"horizontal_scroll_button_nav");(0,me.globalStyle)(`${hx} > button`,{pointerEvents:"all",...ul}),(0,me.globalStyle)(`${hx} > button:hover`,{...hl}),(0,me.globalStyle)(`${hx}b> button:focus:after`,{display:"none"}),(0,me.style)([hx,{left:ve.space[200],selectors:{"[dir='rtl'] &":{left:"unset",right:ve.space[200]}}}],"horizontal_scroll_button_previous"),(0,me.style)([hx,{right:ve.space[200],selectors:{"[dir='rtl'] &":{left:ve.space[200],right:"unset"}}}],"horizontal_scroll_button_next"),(0,me.style)({overflowX:"visible"},"horizontal_scroll_item_list_desktop"),(0,me.style)({overflowX:"hidden"},"horizontal_scroll_page_container"),(0,me.style)({position:"relative",left:0,transition:`left 1s ${ux}`,selectors:{"[dir='rtl'] &":{right:0,left:"unset",transition:`right 1s ${ux}`}}},"horizontal_scroll_page"),(0,me.style)({paddingBottom:ve.space[200],textAlign:"center",lineHeight:ve.size.indicator.lg},"horizontal_scroll_dots"),(0,me.style)({margin:`0 ${ve.space[100]}`,height:ve.size.indicator.lg,width:ve.size.indicator.lg,borderRadius:ve.border.radius.interactive,backgroundColor:ve.color.unselected.main,display:"inline-block"},"horizontal_scroll_dot"),(0,me.style)({backgroundColor:ve.color.selected.main},"horizontal_scroll_dot_selected"),he.endFileScope();var mx=ve.space[200],gx=ve.space[150],yx=ve.space[200],vx=function(e){var t=e.items,r=e.numOfVisibleItems,n=e.hasFixedSizeItems,a=e.isMobileBreakpoint;if(n)return{flexBasis:"auto"};if(a){var o=t.length===r?null:"calc(".concat(mx," + ").concat(gx," / 2)"),i=o?"calc(100% - ".concat(o,")"):"100%";return{flexBasis:"calc(".concat(i," / ").concat(r," - ").concat(gx,")")}}return{flexBasis:"calc(100% / ".concat(r," - ").concat(yx,")")}},bx=["items","hasFixedSizeItems","isMobileBreakpoint","itemClassName","numOfVisibleItems","renderItem"];(0,pe.forwardRef)((function(e,t){var r=e.items;e.hasFixedSizeItems,e.isMobileBreakpoint;var n=e.itemClassName;e.numOfVisibleItems;var a=e.renderItem,o=ye(e,bx),i=function(e){e.target.scrollIntoView({block:"nearest"})},l=r.map((function(t,o){var l=null==vx?void 0:vx(e);return fe().createElement("li",{"aria-label":"".concat(o+1,"-").concat(r.length),key:t.id,"data-item-id":t.id,style:l,className:Ke(n,fx),"data-ppui":"true"},a(t,{tabIndex:"0",role:"button",onFocus:i}))}));return fe().createElement("ul",ge({className:px,ref:t},o,{"data-ppui":"true"}),l)})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-legal-consent");const wx=`calc(${ve.size.circle.xs} + ${ve.space[150]} + ${ve.space[25]})`,xx=(0,me.style)({position:"relative",textAlign:"start",marginBottom:0},"checkbox_base"),kx=(0,me.style)([_t,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"block",paddingInlineStart:wx,position:"relative",textAlign:"start",WebkitTapHighlightColor:"transparent"}],"checkbox_label");(0,me.globalStyle)(`${kx} span:first-of-type`,{insetInlineStart:0});const Sx=(0,me.style)({borderRadius:ve.border.radius.xs,border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,boxSizing:"border-box",height:ve.size.circle.xs,left:0,position:"absolute",width:ve.size.circle.xs,lineHeight:1.3,textAlign:"center",backgroundColor:ve.color.background.surface,display:"flex",justifyContent:"center",alignItems:"center",top:0},"checkbox_checkmark_container"),_x=((0,me.style)([Sx,{top:"auto"}],"checkbox_checkmark_container_decoration"),(0,me.style)({fontSize:ve.size.icon.xs,flexShrink:"0"},"checkbox_check_icon")),Ex=(0,me.style)({cursor:"pointer",opacity:0,position:"absolute"},"checkbox_input");(0,me.globalStyle)(`${Ex}:checked + label > span > span:first-of-type`,{borderColor:ve.color.selected.main,backgroundColor:ve.color.selected.main,color:ve.color.selected.contrast,borderRadius:ve.border.radius.xs}),(0,me.globalStyle)(`${Ex}:checked + label > span > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,me.globalStyle)(`${Ex}:not(:checked) + label > span > span:first-of-type > span:first-of-type`,{display:"none"}),(0,me.globalStyle)(`${Ex}:focus + label > span > span:first-of-type`,Oa),(0,me.globalStyle)(`${Ex}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${ve.border.thickness.normal} * -1)`});const Cx=(0,me.style)({},"checkbox_error_state");(0,me.globalStyle)(`${Cx}:checked + label > span > span:first-of-type`,{borderWidth:ve.border.thickness.emphasis,borderColor:ve.color.error.main}),(0,me.globalStyle)(`${Cx}:focus + label > span > span:first-of-type [dir='rtl'] &`,{left:0,right:`calc(${ve.border.thickness.emphasis} * -1)`});const $x=(0,me.style)({borderWidth:ve.border.thickness.emphasis,borderColor:ve.color.error.main,lineHeight:1.1},"error_checkbox"),Ax=(0,me.style)({...Pt,color:ve.color.background.mediumContrast},"captionText"),Tx=(0,me.style)([Ax,{display:"flex",alignItems:"center",margin:0}],"error_text"),Ox=(0,me.style)({color:ve.color.error.main,marginInlineEnd:ve.space[50],flexShrink:"0",alignSelf:"flex-start"},"checkbox_error_icon"),Px=(0,me.style)({paddingBottom:ve.space[150]},"checkbox_label_error"),Fx=(0,me.style)({display:"flex",alignItems:"center",minHeight:"1.5rem",margin:0},"checkbox_items"),Rx=(0,me.style)({marginBottom:ve.space[150]},"checkbox_legal_consent_label");(0,me.globalStyle)(`${Rx} > span:first-of-type`,{display:"flex"});const zx=(0,me.style)([Ax],"checkbox_legal_consent_text"),Lx=(0,me.style)([Ax,{paddingInlineStart:wx,margin:0}],"checkbox_legal_consent_supporting_text_wrapper"),Nx=(0,me.style)({paddingInlineStart:0},"checkbox_legal_consent_supporting_text_wrapper_when_no_label"),Ix=(0,me.style)({padding:`${ve.space[150]} 0 0 0`,margin:0,listStyleType:"none"},"checkbox_legal_consent_links_wrapper"),Mx=(0,me.style)({paddingTop:0},"checkbox_legal_consent_links_wrapper_when_no_label"),Dx=(0,me.style)({display:"flex",flexDirection:"column",rowGap:ve.space[300],alignItems:"flex-start"},"checkbox_legal_consent_group_spacing");he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-links");const jx=(0,me.style)([Nt,{textDecoration:ve.typography.linkLg.underline?"underline":"none"}],"link-lg-text"),Hx=(0,me.style)([Mt,{textDecoration:ve.typography.linkSm.underline?"underline":"none"}],"link-sm-text"),Bx=(0,me.style)({borderRadius:ve.border.radius.xs},"link_base"),Vx=(0,me.style)({position:"relative",paddingInlineStart:`calc(${ve.size.icon.sm} + ${ve.space[100]})`},"link_base_icon"),Wx=(0,me.style)({paddingInlineStart:`calc(${ve.size.icon.xs} + ${ve.space[100]})`},"link_base_icon_sm"),Ux=(0,me.style)({color:(0,me.fallbackVar)(Oe.main,ve.color.link.main),":focus":{...Oa,color:(0,me.fallbackVar)(Oe.main,ve.color.link.main),cursor:"pointer"},":hover":{cursor:"pointer",textDecoration:"underline",color:(0,me.fallbackVar)(Oe.hoverMain,ve.color.link.mainHover),backgroundColor:(0,me.fallbackVar)(Oe.hoverBack,"transparent")},":active":{textDecoration:"underline",color:(0,me.fallbackVar)(Oe.activeMain,ve.color.link.mainActive),backgroundColor:(0,me.fallbackVar)(Oe.activeBack,"transparent")}},"link_primary"),Gx=(0,me.style)({textDecoration:"underline",color:(0,me.fallbackVar)(Oe.main,ve.color.link.alt),":focus":{color:(0,me.fallbackVar)(Oe.main,ve.color.link.altHover)},":hover":{color:(0,me.fallbackVar)(Oe.hoverMain,ve.color.link.altHover),backgroundColor:(0,me.fallbackVar)(Oe.hoverBack,"transparent")},":active":{color:(0,me.fallbackVar)(Oe.activeMain,ve.color.link.altActive),backgroundColor:(0,me.fallbackVar)(Oe.activeBack,"transparent")}},"link_secondary"),qx=(0,me.style)({color:ve.color.link.contrast,textDecoration:"underline",":visited":{color:(0,me.fallbackVar)(Oe.activeMain,ve.color.link.contrast)},":focus":{color:(0,me.fallbackVar)(Oe.activeMain,ve.color.link.contrast)},":hover":{color:(0,me.fallbackVar)(Oe.hoverMain,ve.color.link.contrastHover)},":active":{color:(0,me.fallbackVar)(Oe.activeMain,ve.color.link.contrastActive),textDecoration:"underline"}},"link_inverse"),Kx=(0,me.style)([yt,{height:ve.space[300]}],"link_shimmer"),Yx=(0,me.style)({position:"absolute",inset:0,display:"flex",alignItems:"center"},"link_left_icon");he.endFileScope();var Xx,Qx,Zx=["inverse","secondary","size","primaryAlt","className","leftIcon","children","as","isLoading"],Jx=new Set(["","paypal.com","paypal.cn","gopay.cn"]),ek=/\bnoreferrer\b/,tk=/\bnoopener\b/,rk=(0,pe.forwardRef)((function(e,t){var r=e.inverse,n=e.secondary,a=e.size,o=e.primaryAlt,i=e.className,l=e.leftIcon,c=e.children,u=e.as,d=void 0===u?"a":u,p=e.isLoading,f=ye(e,Zx);if(p)return fe().createElement(wt,ge({className:Ke(Kx,i),hasStyleDefaults:!1,isInverse:r},f,{"data-ppui":"true"}),c);var h,m=f.target,g=f.rel,y=void 0===g?null:g,v=f.href,b=void 0===v?"/":v;"a"===d&&(null==m?void 0:m.trim())&&((null===(h=y)||void 0===h?void 0:h.trim())?function(e,t){ek.test(t)&&tk.test(t)||function(e){try{var t=new URL(e);return Jx.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.')}(b,y):y="noreferrer noopener");var w=fe().createElement("span",{className:Yx,"data-ppui":"true"},l),x=r?"inverse":o||n?"secondary":"primary",k=Ke(Bx,s[x],l&&Vx,l&&"sm"===a&&Wx,"sm"===a?Hx:jx,i);return fe().createElement(d,ge({className:k,ref:t,"data-ppui-info":"links_5.1.2__8.12.0",target:m,rel:y},f),l&&w,c)})),nk=["id","name","label","links","onChange","errorText","errorIconAriaLabel","className","children"];function ak(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 ok(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ak(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ak(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,pe.forwardRef)((function(e,t){var r,n,a,o,i=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,m=e.className,g=e.children,y=ye(e,nk),v=u.map((function(e,t){var r=fe().createElement(rk,ok(ok({},e),{},{size:"sm"}));return fe().createElement("li",{key:t,"data-ppui":"true"},r)})),b=null!=i?i:Ze("LegalConsent_"),w=Ke(xx,p&&Cx,m),x=Ke(Lx,s&&p&&Px,!(null==s?void 0:s.length)&&Nx),k=Ke(Dx,Ix,!(null==s?void 0:s.length)&&Mx),S="p";return v.length?(r=fe().createElement("ul",{className:k,"data-ppui":"true"},v),S="div"):r=g,fe().createElement("div",{className:w,"data-ppui-info":"legal-consent_3.1.2__8.12.0"},s&&fe().createElement(fe().Fragment,null,fe().createElement("input",ge({className:Ke(Ex,p&&Cx),type:"checkbox",id:b,name:l,ref:t,tabIndex:0,onChange:function(e){d&&(e.stopPropagation(),d(e))}},y,p&&{"aria-describedby":l,"aria-invalid":!0},{"data-ppui":"true"})),(n=Ke(Sx,p&&$x),a=fe().createElement("span",{"data-ppui":"true"},fe().createElement("span",{className:n,"data-ppui":"true"},fe().createElement(Co,{className:_x,size:"xs","data-ppui":"true"})),fe().createElement(ra,{className:zx,as:"span","data-ppui":"true"},s)),o=Ke(kx,Fx,Rx),fe().createElement("label",{className:o,htmlFor:b,"data-ppui":"true"},a))),fe().createElement(S,{className:x,"data-ppui":"true"},r),s&&p&&fe().createElement("p",{className:Tx,id:l,"data-ppui":"true"},fe().createElement(Fo,{className:Ox,size:"sm",role:"img","aria-label":h,"data-ppui":"true"}),p))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-linear-progress-meter"),(0,me.style)({padding:`${ve.space[50]} ${ve.space[300]} ${ve.space[300]} ${ve.space[300]}`,transition:`value ${ve.motion.duration.arrive}`},"progress-meter_base"),(0,me.style)({padding:0},"progress_meter-no_padding"),(0,me.style)({verticalAlign:"bottom",width:"100%",backgroundClip:"content-box",WebkitBackgroundClip:"content-box",border:`${ve.border.thickness.normal} solid transparent`,borderRadius:ve.border.radius.sm,height:ve.size.indicator.lg,marginBottom:ve.space[100],appearance:"none",selectors:{"&::-webkit-progress-inner-element":{marginTop:`calc(${ve.border.thickness.normal} * -1)`,borderRadius:ve.border.radius.sm,padding:0,height:ve.size.indicator.lg},"&::-webkit-progress-value":{borderRadius:ve.border.radius.sm,height:ve.size.indicator.md},"&::-webkit-progress-bar":{borderRadius:ve.border.radius.sm,height:ve.size.indicator.md,backgroundColor:ve.color.background.alt},"&::-moz-progress-bar":{borderRadius:ve.border.radius.sm,padding:0,height:ve.size.indicator.md}}},"progress_tag"),(0,me.style)({selectors:{"&::-moz-progress-bar":{minWidth:ve.border.radius.md},"&::-webkit-progress-value":{minWidth:ve.border.radius.md},"&::-webkit-progress-bar":{minWidth:ve.border.radius.md}}},"progress_value_min_width"),(0,me.style)([_t],"progress_meter-label"),(0,me.style)({letterSpacing:"normal",marginInlineEnd:ve.space[50]},"progress_meter-steps"),(0,me.style)({color:ve.color.background.mediumContrast},"progress_meter-label_title"),(0,me.style)({},"progress_meter-size_sm"),(0,me.style)([Ot],"progress_meter-size_sm_label"),(0,me.style)([Ot],"progress_meter-size_sm_steps"),(0,me.style)({...Pt,color:ve.color.background.mediumContrast},"progress_meter-size_sm_title"),(0,me.style)({color:ve.color.background.surface},"progress_meter-inverse_label"),(0,me.style)({color:ve.color.system.contrast},"progress_meter-size_sm_inverse_label_steps"),(0,me.style)({color:ve.color.background.surface},"progress_meter-size_sm_inverse_label_title"),(0,me.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:ve.color.secondary.main},"&::-webkit-progress-value":{backgroundColor:ve.color.secondary.main}}},"progress-meter_color_accent1"),(0,me.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:ve.color.error.main},"&::-webkit-progress-value":{backgroundColor:ve.color.error.main}}},"progress-meter_color_accent2"),(0,me.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:ve.color.success.main},"&::-webkit-progress-value":{backgroundColor:ve.color.success.main}}},"progress-meter_color_accent3"),(0,me.style)({selectors:{"&::-moz-progress-bar":{backgroundColor:ve.color.primary.main},"&::-webkit-progress-value":{backgroundColor:ve.color.primary.main}}},"progress-meter_color_accent4"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-overflow-menu"),(0,me.style)({position:"relative",display:"inline-block",maxHeight:"16rem"},"overflow_menu_base"),(0,me.style)({selectors:{"[aria-expanded='true']&":{background:`${ve.color.background.surfaceActive}`}}},"overflow_menu_btn_active"),(0,me.style)([ul,{right:"0",margin:"0",position:"fixed",zIndex:"1060",listStyle:"none",borderRadius:`${ve.border.radius.lg}`,backgroundColor:`${ve.color.background.surface}`,display:"none",padding:`${ve.space[100]} 0`,overflow:"auto",width:"fit-content",selectors:{"[aria-hidden = 'false']&":{display:"inline-block"},"[dir='rtl'] & ":{right:"auto",left:ve.space[150]}}}],"overflow_menu_list"),(0,me.style)([Et,{whiteSpace:"nowrap",display:"block",textAlign:"justify",textOverflow:"ellipsis",position:"relative",textDecoration:"none",padding:`${ve.space[150]} ${ve.space[200]}`,":hover":{backgroundColor:`${ve.color.background.surfaceHover}`,cursor:"pointer",outline:0},":focus":{boxShadow:"none",outline:0,borderRadius:0}}],"overflow_menu_list_item"),(0,me.style)({":focus":Fa},"overflow_menu_keyboard_active"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-panel-slider"),Xx=ve.motion.duration.arrive,(Qx=Ge(Xx,"ms")).unit,Qx.value,ia.ppuiEaseInOut,(0,me.style)({position:"relative",minHeight:"100%",whiteSpace:"nowrap",padding:`0 ${ve.space[150]}`,overflowX:"hidden"},"panel-slider-container"),(0,me.style)({display:"inline-block",width:"100%",padding:`${ve.space[200]} ${ve.space[150]}`,height:"100%",whiteSpace:"normal"},"panel-slider-panel"),he.endFileScope();var ik=["as","isHidden","hideToggleLabel","onToggleHide","value"];(0,pe.forwardRef)((function(e,t){var r=e.as,n=e.isHidden,a=void 0===n||n,o=e.hideToggleLabel,i=e.onToggleHide,l=e.value,s=ye(e,ik),c=(0,pe.useRef)(),u=t||c;(0,pe.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=o||(a?"show":"hide");return fe().createElement(r||Yi,ge({ref:u,rightIcon:fe().createElement(xp,{buttonType:"tertiary",svgIconComponent:a?Do:Lo,onClick:function(){i&&i(!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))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-phone-input");const lk="8.813rem",sk=(0,me.style)({flexGrow:1},"phone_input_base"),ck=(0,me.style)({direction:"ltr",textAlign:"right"},"phone_input-rtl"),uk=(0,me.style)({display:"flex",gap:ve.space[100],"@media":{[`screen and (max-width:${ke})`]:{display:"block"}},selectors:{"[dir='rtl'] &":{direction:"ltr"}}},"phone_input-combined"),dk=(0,me.style)({minWidth:lk,"@media":{[`screen and (max-width:${_e})`]:{marginBottom:ve.space[100]},[`screen and (min-width:${ke})`]:{maxWidth:lk}}},"phone_input-menu_width"),pk=(0,me.style)({flexGrow:1,selectors:{"[dir='rtl'] &":{direction:"rtl"}}},"phone_input-menu"),fk=(0,me.style)({marginRight:ve.space[100],selectors:{"[dir='rtl'] &":{marginRight:0,marginLeft:ve.space[100]}}},"phone_input-thumbnail"),hk=(0,me.style)({whiteSpace:"nowrap"},"phone_input-menu_list"),mk=(0,me.style)({flexGrow:1,selectors:{":not(:empty) &":{paddingBottom:ve.space[100],paddingRight:ve.space[700]},"[dir='rtl'] &":{borderRadius:ve.border.radius.sm,marginLeft:0,marginRight:0},"[dir='rtl']:not(:empty) &":{paddingLeft:ve.space[700],paddingRight:`calc(${ve.space.md} - ${ve.border.thickness.normal})`}}},"phone_input-menu_button");(0,me.globalStyle)(`${mk}>span`,{pointerEvents:"none"});const gk=(0,me.style)({display:"flex"},"phone_input-menu_button_content"),yk=((0,me.style)({marginLeft:0,selectors:{"[dir='rtl'] &":{marginRight:0}}},"phone_input-affordance"),(0,me.style)({selectors:{"[dir='rtl'] &":{left:0}}},"phone_input-menu_container"));he.endFileScope();var vk=["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"],bk=["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"],wk="00000000000000000000";function xk(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",i=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];if(a&&o)return{countryCode:a,pattern:o};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=wk;if(i){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?bk:vk).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:o||wk}}var kk=["rtl","countryOptions","options","flagId","codeId","value"],Sk=function(e){var t=e.rtl,r=e.countryOptions,n=e.options,a=e.flagId,o=e.codeId,i=e.value,l=ye(e,kk);return fe().createElement(mw,ge({renderButtonContent:function(){var e;if(i&&n){var l=n.findIndex((function(e){return e.value===i}));e=r[l]}var s="";return e&&e.countryPhoneCode&&(s=t?"".concat(e.countryPhoneCode,"+"):"+".concat(e.countryPhoneCode)),e&&e.phoneRegion?fe().createElement("span",{className:gk,"data-ppui":"true"},fe().createElement("span",{className:fk,"data-ppui":"true"},fe().createElement(ty,{id:a,countryCode:e.phoneRegion,size:"md","aria-label":e.countryName,role:"img","data-ppui":"true"})),fe().createElement("span",{id:o,"data-ppui":"true"},s)):fe().createElement(fe().Fragment,null,s)},options:n,value:i},l,{"data-ppui":"true"}))},_k=["name","countryOptions","inputLabel","menuLabel","menuId","className","inputClassName","menuClassName","mobile","onPhoneCodeChange","phoneCode","showUnselect","unselectLabel","formatType"],Ek=((0,pe.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"phoneInputMenu":r,a=e.countryOptions,o=void 0===a?[]:a,i=e.inputLabel,l=void 0===i?"Phone Number":i,s=e.menuLabel,c=void 0===s?"Code":s,u=e.menuId,d=e.className,p=e.inputClassName,f=e.menuClassName,h=e.mobile,m=void 0!==h&&h,g=e.onPhoneCodeChange,y=e.phoneCode,v=e.showUnselect,b=void 0!==v&&v,w=e.unselectLabel,x=void 0===w?"None":w,k=e.formatType,S=void 0===k?"international":k,_=ye(e,_k);o.length;var E,C,$,A,T,O,P=el((0,pe.useState)(!1),2),F=P[0],R=P[1],z=(0,pe.useContext)(ja),L=(0,pe.useCallback)((function(e){if(null!==e&&Ie()){var t=window.getComputedStyle(e);R("rtl"===(null==t?void 0:t.direction))}}),[null==z?void 0:z.locale]),N=el((0,pe.useState)(!1),2),I=N[0],M=N[1];o[0]&&""===o[0].phoneRegion&&o.splice(0,1),b&&o.unshift({phoneRegion:"",countryName:x,phoneFormat:wk}),O=(0,pe.useMemo)((function(){return o.map((function(e,t){var r=xk(z,e.phoneRegion,S,m,e.countryPhoneCode,e.phoneFormat,e.isPhoneMetaDataLoaded),n=z&&z.getDisplayNamesObject&&z.getDisplayNamesObject({type:"region"}),a=r.countryCode,i=r.pattern;return A=e.phoneRegion,C=e.countryPhoneCode||a,$=e.phoneFormat||i,T=e.countryName||n&&n.select(e.phoneRegion),o[t].countryPhoneCode=C,o[t].phoneFormat=$,o[t].countryName=T,function(e,t,r,n){E=e,t&&(E+=n?" ".concat(t,"+"):" +".concat(t));var a=r&&t?"".concat(r,"_").concat(t):"";return{label:E,value:a,decoration:r&&fe().createElement(ty,{countryCode:r,size:"md","data-ppui":"true"})}}(T,C,A,F)}))}),[o,S,m]);var D=wk,j=o.filter((function(e){var t=e.phoneRegion&&e.countryPhoneCode?"".concat(e.phoneRegion,"_").concat(e.countryPhoneCode):"";return y===t}));j.length&&(D=j[0].phoneFormat);var H="phone-input-country-flag_",B="phone-input-country-code_",V=u?"".concat(H).concat(u):Ze(H),W=u?"".concat(B).concat(u):Ze(B),U=Ke(pk,dk,f),G=fe().createElement(Sk,{id:u,label:c,options:O,countryOptions:o,value:y,onChange:function(e){var t,r;g&&(g(e),0===(null===(t=e.target)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.length)&&b||M(!0))},className:U,menuContainerClassName:yk,menuListClassName:hk,menuButtonClassName:mk,sheetClassName:hk,rtl:F,showUnselect:!0,flagId:V,codeId:W,autoComplete:_.autoComplete,"data-ppui":"true"}),q=fe().createElement(Iy,ge({type:"tel",name:n,label:l,maskOptions:{mask:D},className:pk,inputClassName:Ke(F&&ck,p),setFocus:I,ref:t,onBlur:function(){return M(!1)},"aria-describedby":"".concat(V," ").concat(W)},_,{"data-ppui":"true"}));return fe().createElement("div",{ref:L,className:Ke(d,sk),"data-ppui-info":"phone-input_3.1.6__8.12.0"},fe().createElement("div",{className:uk,"data-ppui":"true"},G,q))})),["name","label","countryOptions","className","inputClassName","formatType","mobile"]);(0,pe.forwardRef)((function(e,t){var r=e.name,n=void 0===r?"":r,a=e.label,o=void 0===a?"Phone Number":a,i=e.countryOptions,l=e.className,s=e.inputClassName,c=e.formatType,u=void 0===c?(null==i?void 0:i.countryPhoneCode)?"international":"national":c,d=e.mobile,p=void 0!==d&&d,f=ye(e,Ek),h=el((0,pe.useState)(!1),2),m=h[0],g=h[1],y=(0,pe.useContext)(ja),v=(0,pe.useCallback)((function(e){if(e&&Ie()){var t=window.getComputedStyle(e);g("rtl"===(null==t?void 0:t.direction))}}),[null==y?void 0:y.locale]),b=(0,pe.useMemo)((function(){return xk(y,null==i?void 0:i.phoneRegion,u,p,null==i?void 0:i.countryPhoneCode,null==i?void 0:i.phoneFormat,null==i?void 0:i.isPhoneMetaDataLoaded)}),[null==i?void 0:i.phoneRegion,u,p]),w=b.countryCode,x=b.pattern,k="",S="";return"international"===u&&(k=m?"":"+".concat(w),S=m?"".concat(w,"+"):""),fe().createElement("div",{ref:v,className:Ke(sk,l),"data-ppui-info":"phone-input_3.1.6__8.12.0"},fe().createElement(Iy,ge({type:"tel",name:"phoneInput-".concat(n),label:o,prefix:k,suffix:S,ref:t,maskOptions:{mask:x},inputClassName:Ke(m&&ck,s)},f,{"data-ppui":"true"})))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-physical-card"),(0,me.style)([cl,{borderRadius:ve.border.radius.lg,border:`${ve.border.thickness.normal} solid transparent`,backgroundColor:ve.color.background.surface,backgroundOrigin:"border-box",position:"relative",overflow:"hidden",paddingTop:`calc(100% * ${216/343} - (2 * ${ve.border.thickness.normal}))`}],"physical_card-base"),(0,me.style)({position:"absolute",top:0,width:"100%",height:"100%"},"physical_card-content"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-pill"),(0,me.style)({backgroundColor:ve.color.selectedRange.main,paddingBlock:ve.space[100],paddingInline:`${ve.space[150]} ${ve.size.tapTarget.sm}`,whiteSpace:"nowrap",borderRadius:"100px",position:"relative",display:"inline-grid",gridTemplateColumns:"1fr auto",placeItems:"center"},"pill-base"),(0,me.style)({paddingInline:ve.space[150]},"pill_hide_close_btn"),(0,me.style)({...Ht,color:ve.color.selectedRange.contrast,textOverflow:"ellipsis",whiteSpace:"nowrap"},"pill-label"),(0,me.style)({position:"absolute",right:0,selectors:{"[dir=rtl] &":{left:0,right:"auto"}}},"pill-button_space"),(0,me.style)({color:ve.color.selectedRange.contrast},"pill-icon_button_color"),(0,me.style)({backgroundColor:ve.color.background.surface},"pill-tray"),(0,me.style)({overflowX:"scroll",margin:0,padding:`${ve.space[100]} ${ve.space[100]} ${ve.space[200]}`,display:"flex",columnGap:ve.space[100]},"pill-scroll"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-progress-stepper");const Ck="--ps-m_ol_c",$k={paddingLeft:ve.space[200],paddingRight:ve.space[200]},Ak={display:"block"},Tk={flexDirection:"row",alignItems:"initial"},Ok={margin:`${ve.space[200]} 0`,textAlign:"initial"},Pk={display:"inline-flex",alignItems:"center"},Fk={display:"none"},Rk={margin:`0 ${ve.space[200]} 0 ${ve.space[400]}`,padding:`${ve.space[200]} 0`},zk={insetInlineStart:"auto",top:`calc(${ve.size.icon.md} + ${ve.space[200]})`,width:ve.border.thickness.focus,height:"100%"},Lk=((0,me.style)({color:ve.color.background.highContrast,listStyle:"none",margin:0,padding:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(0, 1fr))",selectors:{"&[data-stepper-variant='vertical']":Ak}},"progress_stepper-base"),(0,me.style)({margin:0,overflow:"clip",paddingTop:ve.space[50],"@media":{[`screen and (max-width: ${_e})`]:$k}},"progress_stepper-compact_wrapper"),{margin:"0 var(--ps-m-od)"}),Nk=((0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:Lk}},"progress_stepper-compact_base"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:Ak}},"progress_stepper-vertical_base"),(0,me.style)({display:"flex",position:"relative",flexDirection:"column",alignItems:"center",zIndex:0,selectors:{"[data-stepper-variant='vertical'] &":Tk}},"progress_stepper-item"));(0,me.globalStyle)(`${Nk}:last-of-type > div:first-of-type:after`,{display:"none"}),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:{height:ve.size.icon.xs,width:ve.size.icon.xs}}},"progress_stepper-icon_item"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:{fontSize:ve.typography.fieldLabelSm.size,display:"grid",lineHeight:"unset",placeItems:"center",textAlign:"center",padding:0}}},"progress_stepper-text_item"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:Tk}},"progress_stepper-vertical_item"),(0,me.style)({textAlign:"center",marginTop:ve.space[200],selectors:{"[data-stepper-variant='vertical'] &":Ok}},"progress_stepper-item_content"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:Ok}},"progress_stepper-vertical_item_content"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:Fk}},"progress_stepper-vertical_item_content"),(0,me.style)({selectors:{"[data-stepper-variant='vertical'] &":Pk}},"progress_stepper-item_content_without_description"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:Pk}},"progress_stepper-vertical_marker"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:Fk}},"progress_stepper-vertical_marker"),(0,me.style)({color:ve.color.background.highContrast},"progress_stepper-label"),(0,me.style)({color:ve.color.background.mediumContrast,marginTop:ve.space[50]},"progress_stepper-description");const Ik={display:"block",paddingTop:`${ve.space[100]}`,paddingBottom:`${ve.space[100]}`};(0,me.style)({display:"none","@media":{[`screen and (max-width: ${_e})`]:Ik}},"progress_stepper-compact_details"),(0,me.style)({color:ve.color.background.alt,display:"flex",justifyContent:"center",margin:0,padding:0,":after":{position:"absolute",content:"",top:ve.space[200],insetInlineStart:"50%",width:"100%",height:ve.border.thickness.focus,backgroundColor:ve.color.structure.divider,zIndex:-1},selectors:{"[data-stepper-variant='vertical'] &":Rk,"[data-stepper-variant='vertical'] &:after":zk}},"progress_stepper-marker"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:{...Rk,":after":{...zk,insetInlineStart:"auto",top:`calc(${ve.size.icon.md} + ${ve.space[200]})`,width:ve.border.thickness.focus,height:"100%",zIndex:-1}}}},"progress_stepper-vertical_marker"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:{":after":{top:`calc(${ve.space[150]} - (0.5 * ${ve.border.thickness.emphasis}))`}}}},"progress_stepper-compact_marker"),(0,me.style)({outlineOffset:ve.space[25],outline:`${ve.border.thickness.emphasis} solid var(${Ck})`,boxShadow:`0 0 0 ${ve.space[25]} ${ve.color.background.surface}`,zIndex:0},"progress_stepper-current_marker"),(0,me.style)({":after":{backgroundColor:ve.color.success.main}},"progress_stepper-marker_success"),(0,me.style)({":after":{backgroundColor:ve.color.structure.divider}},"progress_stepper-marker_default"),(0,me.style)({":after":{backgroundColor:ve.color.warning.main}},"progress_stepper-marker_warning"),(0,me.style)({":after":{backgroundColor:ve.color.error.main}},"progress_stepper-marker_cancelled"),(0,me.style)({":after":{backgroundColor:ve.color.error.main}},"progress_stepper-marker_critical"),(0,me.style)({borderRadius:ve.border.radius.interactive,height:ve.size.icon.md,width:ve.size.icon.md,padding:ve.space[50]},"progress_stepper-icon"),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:{height:ve.size.icon.sm,width:ve.size.icon.sm,display:"grid",placeItems:"center",padding:0}}},"progress_stepper-compact_icon"),(0,me.style)({vars:{[Ck]:ve.color.error.main},backgroundColor:ve.color.error.main},"progress_stepper-icon_cancelled"),(0,me.style)({vars:{[Ck]:ve.color.error.main},backgroundColor:ve.color.error.main},"progress_stepper-icon_critical"),(0,me.style)({vars:{[Ck]:ve.color.warning.main},backgroundColor:ve.color.warning.main},"progress_stepper-icon_warning"),(0,me.style)({vars:{[Ck]:ve.color.success.main},backgroundColor:ve.color.success.main},"progress_stepper-icon_success"),(0,me.style)({vars:{[Ck]:ve.color.structure.divider},backgroundColor:ve.color.background.surface,border:`${ve.border.thickness.focus} solid ${ve.color.structure.divider}`,padding:`${ve.space[50]} calc(${ve.space[200]} - ${ve.border.thickness.focus})`},"progress_stepper-icon_default"),(0,me.style)({textAlign:"center",display:"grid",height:"100%",alignItems:"center"},"progress_stepper-numeric"),(0,me.style)({backgroundColor:ve.color.background.alt,padding:0},"progress_stepper-numeric_default"),(0,me.style)({color:ve.color.primary.contrast},"progress_stepper-numeric_success"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-radio");const Mk=(0,me.style)({...Pt,color:ve.color.background.mediumContrast},"radio-caption_text"),Dk=((0,me.style)({display:"flex",flexDirection:"column",margin:0,padding:0,border:"none",textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"radio-group_base"),(0,me.style)({position:"relative",padding:`${ve.space[150]} 0`,textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"radio-base")),jk=((0,me.style)({...qr,color:ve.color.background.mediumContrast,display:"block",paddingBottom:ve.space[150],marginBottom:ve.space[50]},"radio-group_label"),(0,me.style)({display:"flex",alignItems:"center",minHeight:ve.size.tapTarget.sm,paddingBottom:0},"radio-group_labelwithicon"),(0,me.style)({marginInlineStart:ve.space[100]},"radio-group_iconLabel"),(0,me.style)([Kr,{MozOsxFontSmoothing:"grayscale",cursor:"pointer",display:"inline-block",paddingLeft:ve.space[450],position:"relative",WebkitTapHighlightColor:"transparent",selectors:{"[dir='rtl'] & ":{paddingRight:ve.space[450],paddingLeft:0}}}],"radio-label")),Hk=(0,me.style)({borderRadius:ve.border.radius.interactive,border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,height:ve.size.circle.xs,position:"absolute",top:0,left:0,width:ve.size.circle.xs,backgroundColor:ve.color.background.surface,selectors:{"[dir='rtl'] & ":{right:0}}},"radio-check_icon_container"),Bk=(0,me.style)({border:`${ve.border.thickness.emphasis} solid ${ve.color.error.main}`},"radio-icon_error_check_icon_container"),Vk=(0,me.style)({display:"none"},"radio-check_icon"),Wk=(0,me.style)({opacity:0,position:"absolute",cursor:"pointer",margin:0},"radio-icon_input");(0,me.globalStyle)(`${Wk}:checked + label > span:first-of-type`,{borderColor:ve.color.selected.main,backgroundColor:ve.color.selected.main,color:ve.color.background.surface}),(0,me.globalStyle)(`${Wk}:checked + label > span:first-of-type > span:first-of-type`,{display:"inline"}),(0,me.globalStyle)(`${Wk}:focus + label > span:first-of-type`,{...Oa}),(0,me.globalStyle)(`${Wk}:active:not(:checked) + label > span:first-of-type`,{background:ve.color.background.surfaceActive});const Uk=(0,me.style)({},"radio_input_with_error");(0,me.globalStyle)(`${Uk}:checked + label > span:first-of-type`,{border:`${ve.border.thickness.emphasis} solid ${ve.color.error.main}`});const Gk=(0,me.style)({top:"50%",transform:"translateY(-50%)"},"radio-centered_label_check_icon_container"),qk=(0,me.style)([Mk,{margin:0,listStyle:"none",marginTop:ve.space[50]}],"radio-helper_text");(0,me.style)([Mk,{margin:0,listStyle:"none"}],"radio-group_helper_text"),(0,me.style)([Mk,{display:"flex",margin:0,alignItems:"center"}],"radio-error_text"),(0,me.style)({color:ve.color.error.main,marginRight:ve.space[50],flexShrink:"0",alignSelf:"flex-start",selectors:{"[dir='rtl'] & ":{marginLeft:ve.space[50],marginRight:0}}},"radio-error_icon"),he.endFileScope();var Kk=["label","name","value","id","centeredLabel","helperText","className","labelClassName","onChange","checked","errorText"],Yk=function(e){return fe().createElement("span",{className:e.className,"aria-hidden":"true","data-ppui":"true"},fe().createElement("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","data-ppui":"true"},fe().createElement("circle",{r:"18",cy:"50",cx:"50",strokeWidth:"0",fill:"currentColor","data-ppui":"true"})))};(0,pe.forwardRef)((function(e,t){var r=e.label,n=e.name,a=void 0===n?Ze():n,o=e.value,i=void 0===o?function(e){return"string"==typeof e?e:"value_not_set"}(r):o,l=e.id,s=void 0===l?"Radio_".concat(a,"_").concat(i):l,c=e.centeredLabel,u=void 0!==c&&c,d=e.helperText,p=e.className,f=e.labelClassName,h=e.onChange,m=e.checked,g=void 0!==m&&m,y=e.errorText,v=ye(e,Kk),b={onChange:h};b[h?"checked":"defaultChecked"]=g;var w=Ke(Wk,!!y&&Uk),x=Ke(Hk,!!y&&Bk,u&&Gk);return fe().createElement("div",{className:Ke(Dk,p),"data-ppui-info":"radio_4.1.2__8.12.0"},fe().createElement("input",ge({className:w,type:"radio",name:a,value:i,id:s,ref:t},b,v,{"data-ppui":"true"})),fe().createElement("label",{className:Ke(jk,f),htmlFor:s,"data-ppui":"true"},fe().createElement("span",{className:x,"data-ppui":"true"},fe().createElement(Yk,{className:Vk,"data-ppui":"true"})),r,function(e,t){return e&&fe().createElement("p",{className:t,"data-ppui":"true"},e)}(d,qk)))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-scroll-box"),(0,me.style)({display:"grid",gridTemplateRows:"auto 1fr auto",height:"100%"},"sb_base"),(0,me.style)({position:"relative",overflow:"hidden",zIndex:"0",selectors:{"&:before":{content:"",position:"absolute",top:"-1rem",left:"0",right:"0",display:"block",height:"1rem",...hl,zIndex:"-1"},"&:after":{content:"",position:"absolute",bottom:"-1rem",left:"0",right:"0",display:"block",height:"1rem",..._l,zIndex:"-1"}}},"sb_content"),(0,me.style)({padding:`${ve.space[100]} ${ve.space[150]}`},"sb_head"),(0,me.style)({padding:`${ve.space[100]} ${ve.space[150]}`},"sb_foot"),(0,me.style)({padding:`0 ${ve.space[150]}`,height:"100%",overflow:"scroll",background:`linear-gradient(to bottom,\n ${ve.color.background.surface},\n transparent ${ve.space[400]},\n transparent calc(100% - ${ve.space[400]}),\n ${ve.color.background.surface} 100%\n )`,backgroundAttachment:"local"},"sb_scroller"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-search-input");const{ppuiEaseMoveSmall:Xk}=ia,Qk=(0,me.style)({borderRadius:ve.size.icon.xl,paddingLeft:`calc(${ve.space[500]} + ${ve.space[50]})`,paddingRight:ve.space[600],"@media":{[`(max-width: ${_e})`]:{paddingTop:ve.space[150],paddingBottom:ve.space[150],minHeight:ve.size.field.sm,selectors:{"[dir='rtl'] &":{paddingTop:ve.space[150],paddingBottom:ve.space[150]}}}},selectors:{"[dir='rtl'] &":{paddingRight:`calc(${ve.space[500]} + ${ve.space[50]})`,paddingLeft:ve.space[600]}}},"search_input"),Zk=(0,me.style)({borderColor:ve.color.structure.borderLowContrast},"search_border_color"),Jk=(0,me.style)({left:ve.space[50],position:"absolute",selectors:{"[dir='rtl'] &":{right:ve.space[50],position:"absolute"}},"@media":{[`(max-width: ${_e})`]:{top:`calc(-1 * ${ve.space[100]})`}}},"left_icon"),eS=(0,me.style)({position:"absolute",right:`calc(-1 * ${ve.space[25]})`,"@media":{[`(max-width: ${_e})`]:{top:`calc(-1 * ${ve.space[100]})`}},selectors:{"[dir='rtl'] &":{left:`calc(-1 * ${ve.space[100]})`,right:ve.space[25]}}},"rightIcon"),tS=(0,me.style)({paddingInlineStart:ve.space[200],transition:`padding ${ve.motion.duration.move.small} ${Xk}`},"remove_extra_padding"),rS=(0,me.style)({backgroundColor:ve.color.background.alt},"search_input_level2");he.endFileScope();var nS=["keepClearButton","onClear","className","clearButtonLabel","clearButtonAriaLabel","inputClassName","labelClassName","errorText","label","value","onKeyDown","onFocus","onBlur","pageLevel"];(0,pe.forwardRef)((function(e,t){var r=e.keepClearButton,n=e.onClear,a=e.className,o=e.clearButtonLabel,i=void 0===o?"Clear input":o,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,m=e.onFocus,g=e.onBlur,y=e.pageLevel,v=void 0===y?1:y,b=ye(e,nS),w=el((0,pe.useState)(!1),2),x=w[0],k=w[1],S=el((0,pe.useState)(!0),2),_=S[0],E=S[1],C=el((0,pe.useState)(!1),2),$=C[0],A=C[1],T=x?{"aria-label":s,"aria-atomic":"true","aria-live":"polite",role:"button"}:null,O=f||r?{rightIcon:fe().createElement(xp,ge({buttonType:"tertiary",className:eS,svgIconComponent:Ro,onClick:function(e){n&&n(e),k(!0),A(!0)},onMouseDown:function(e){return e.preventDefault()}},T,{"data-ppui":"true"}),i)}:null,P=_?{leftIcon:fe().createElement(Io,{className:Jk,size:"sm","aria-hidden":"true","data-ppui":"true"})}:null,F=Ke(Qk,!d&&Zk,!_&&tS,2===v&&rS,c);return fe().createElement(fe().Fragment,null,fe().createElement(Yi,ge({className:a,ref:t},P,O,{inputClassName:F,labelClassName:u,errorText:d,isLabelHidden:!0,placeholder:p,label:p,value:f,onFocus:function(e){E(!1),A(!0),m&&m(e)},onBlur:function(e){E(!f),A(!1),g&&g(e)},"data-ppui-info":"search-input_3.2.2__8.12.0",setFocus:$},b,{onKeyDown:function(e){x&&k(!1),"Escape"===e.key&&n&&n(e),h&&h(e)}})))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-segmented-controller");const aS="64rem",oS=((0,me.style)({backgroundColor:ve.color.background.alt,borderRadius:aS,display:"flex",alignItems:"stretch",justifyContent:"flex-start",position:"relative",padding:"0.1875rem",gap:ve.space[50]},"segmented_controller_tab_wrapper"),(0,me.style)({borderRadius:"inherit",position:"relative",backgroundColor:"transparent",width:"100%",border:0,minWidth:0,padding:0,cursor:"pointer",...Hr,zIndex:1,":focus":Oa},"segmented_controller_tab"));(0,me.globalStyle)(`[data-contrast-variant="high"] ${oS}:hover:not(:focus) span`,{background:ve.color.selected.altHover,color:ve.color.selected.contrast}),(0,me.globalStyle)(`[data-contrast-variant="low"] ${oS}:hover:not(:focus) span`,{background:ve.color.unselected.mainHover,fontWeight:ve.typography.buttonSm.weight}),(0,me.globalStyle)(`[data-contrast-variant="high"] ${oS}[aria-selected="true"] span`,{color:ve.color.selected.contrast}),(0,me.globalStyle)(`[data-contrast-variant="low"] ${oS}[aria-selected="true"] span`,{color:ve.color.selected.main}),(0,me.style)({position:"absolute",top:0,left:0,width:0,height:0,borderRadius:aS,transition:`left ${ve.motion.duration.move.small} ${ia.ppuiEaseMoveSmall}`},"segmented_controller_tab_slider"),(0,me.style)({background:ve.color.selected.alt},"segmented_controller_tab_slider_default"),(0,me.style)({background:ve.color.selected.contrast},"segmented_controller_tab_slider_low_contrast");const iS=(0,me.style)({display:"flex",flexWrap:"wrap",justifyContent:"center",alignItems:"center",height:"100%",wordBreak:"break-word",border:`${ve.border.thickness.normal} solid transparent`,padding:ve.space.sm,borderRadius:"inherit",color:ve.color.background.mediumContrast,pointerEvents:"none"},"segmented_controller_tab_title");(0,me.style)({selectors:{'&[aria-hidden="true"]':{display:"none"}}},"segmented_controller_tab_content"),(0,me.style)({display:"block"},"segmented_controller_tab_content_visible"),(0,me.style)({display:"none"},"segmented_controller_tab_content_hidden"),he.endFileScope();var lS=["id","tabIdx","label","segmentedControllerId","panelId","selected","onClick","className"];fe().forwardRef((function(e,t){var r=e.id,n=e.tabIdx,a=e.label,o=e.segmentedControllerId,i=e.panelId,l=e.selected,s=e.onClick,c=e.className,u=ye(e,lS),d=l?0:-1,p=r||"".concat(o,"-tab").concat(parseInt(n,10)+1);return fe().createElement("button",ge({"data-tab-index":n,id:p,className:Ke(oS,c),"aria-controls":i,"aria-selected":l,tabIndex:d,type:"button",role:"tab",ref:t},u,{onClick:s,"data-ppui":"true"}),fe().createElement("span",{className:iS,"data-ppui":"true"},a))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-segmented-progress-meter");const sS=(0,me.style)({display:"flex",gap:ve.space[75]},"segmented_progress_meter-container"),cS=(0,me.style)({width:"100%"},"segmented_progress_meter-stack");he.endFileScope(),(0,pe.forwardRef)((function(e,t){var r=e.className,n=e.size,a=void 0===n?"lg":n,o=e.duration,i=void 0===o?7:o,l=e.autoProgress,s=void 0!==l&&l,c=e.onChange,u=void 0===c?null:c,d=e.children,p=el((0,pe.useState)(0),2),f=p[0],h=p[1],m=el((0,pe.useState)([]),2),g=m[0],y=m[1],v=el((0,pe.useState)(!1),2),b=v[0],w=v[1],x=el((0,pe.useState)(!1),2),k=x[0],S=x[1],_=(0,pe.useRef)(null),E=(0,pe.useRef)(null),C=(0,pe.useRef)(0),$=(0,pe.useRef)(null),A=d.length,T=Ke(sS,r);u&&(0,pe.useEffect)((function(){u({index:f})}),[k]);var O=function(){E.current=Date.now(),C.current=0,$.current=Date.now(),clearInterval(_.current),S(!k)};return(0,pe.useImperativeHandle)(t,(function(){return{next:function(){f<A-1&&(y((function(e){var t=Ji(e);return t[f]=1,t})),h(f+1),O())},prev:function(){f>0&&(y((function(e){var t=Ji(e);return t[f]=0,t[f-1]=0,t})),h(f-1),O())},pause:function(){return b||($.current=Date.now()),void w(!0)},resume:function(){return b&&(C.current+=Date.now()-$.current),void w(!1)}}})),s&&(0,pe.useEffect)((function(){return E.current||(E.current=Date.now()),b||(_.current=setInterval((function(){var e=(Date.now()-E.current-C.current)/(1e3*i);if(y((function(t){var r=Ji(t);return r[f]=Math.min(e,1),r})),e>=1){if(f+1>=A)return void clearInterval(_.current);h(f+1),O()}}),10)),function(){return clearInterval(_.current)}}),[i,f,b]),fe().createElement("div",{className:T,"data-ppui-info":"segmented-progress-meter_1.2.3__8.12.0"},function(e,t,r,n){var a=[];return fe().Children.forEach(e,(function(e,o){var i=fe().createElement("div",{key:"linearProgressMeterStacked_".concat(o),className:cS,"data-ppui":"true"},n&&fe().cloneElement(e,{size:t,max:1,value:r[o]||0,noPadding:!0}),!n&&fe().cloneElement(e,{size:t,noPadding:!0}));a.push(i)})),a}(d,a,g,s))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-selection-card-group");const uS="0.1875rem",dS=`calc(${ve.size.indicator.lg} * 2)`,pS="selection-card-group",fS={content:"",position:"absolute",borderRadius:ve.border.radius.lg,inset:"0"},hS={position:"absolute",top:`calc(${ve.space[150]} + ${ve.space[25]})`,right:ve.space[200],width:dS,height:dS},mS={right:"unset",left:ve.space[200]},gS=(e,t)=>({outline:`${e} solid ${t}`,outlineOffset:`calc(${e} * -1)`}),yS=(e,t)=>({...fS,boxShadow:`inset 0 0 0 ${t} ${ve.color.error.contrast}`,...gS(e,ve.color.error.main)}),vS=e=>({gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`}),bS=((0,me.style)({boxSizing:"border-box",borderStyle:"none",padding:0,margin:0},`${pS}_base`),(0,me.style)({display:"grid",gridGap:ve.space[100]},`${pS}_container`),(0,me.style)({...vS(1)},`${pS}_container_grid-vertical`),(0,me.style)({...vS(2)},`${pS}_container_grid-two`),(0,me.style)({...vS(3)},`${pS}_container_grid-three`),(0,me.style)({...vS(4)},`${pS}_container_grid-four`),(0,me.style)({display:"flex",borderRadius:ve.border.radius.lg,backgroundColor:ve.color.background.surface,position:"relative",padding:`${ve.space[150]} ${ve.space[200]}`,minHeight:"2.875rem",selectors:{"&:has(input:hover)":{cursor:"pointer"},"&:has(input:focus)":{...Oa,boxShadow:`0 0 0 ${ve.border.thickness.normal} ${ve.color.structure.borderLowContrast}, \n 0 0 0 ${ve.border.thickness.normal} ${ve.color.background.surface}`}}},`${pS}_card-label`));(0,me.style)({selectors:{"&:has(input:checked)":{backgroundColor:ve.color.selected.alt,color:ve.color.selected.contrast}}},`${pS}_card-expressive`),(0,me.style)({selectors:{"&:has(input:checked):before":{...fS,...gS(ve.border.thickness.emphasis,ve.color.selected.main)}}},`${pS}_card-functional`),(0,me.style)({...hS,top:`calc(${ve.space[200]} - ${ve.border.thickness.normal})`,border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,borderRadius:ve.border.radius.interactive,backgroundColor:ve.color.background.surface,selectors:{[`${bS}:has(input:checked) &`]:{display:"none"},"[dir='rtl'] &":{...mS}}},`${pS}_unselected`),(0,me.style)({display:"none",...hS,selectors:{[`${bS}:has(input:checked) &`]:{display:"block"},"[dir='rtl'] &":{...mS}}},`${pS}_selected-multi`),(0,me.style)({display:"none",...hS,border:`0.3125rem solid ${ve.color.background.surface}`,borderRadius:ve.border.radius.interactive,selectors:{[`${bS}:has(input:checked) &`]:{display:"block"},"[dir='rtl'] &":{...mS}}},`${pS}_selected-single`),(0,me.style)({borderColor:ve.color.selected.main},"selected-functional-single"),(0,me.style)({color:ve.color.selected.main},`${pS}_selected-functional-multi`),(0,me.style)({padding:`${ve.space[25]} 0`,width:"100%",borderRadius:"inherit"},`${pS}_layout`),(0,me.style)({paddingInlineEnd:ve.space[350]},`${pS}_layout-end-padding`),(0,me.style)({display:"grid",gridGap:ve.space[200]},`${pS}_layout-decoration`),(0,me.style)({gridTemplateColumns:"auto 1fr",alignItems:"center",gridGap:ve.space[100]},`${pS}_decoration-align-leading`),(0,me.style)({opacity:0,position:"absolute"},`${pS}_input`),(0,me.style)({...Rt,color:ve.color.background.mediumContrast,display:"flex",alignItems:"center",marginTop:ve.space[50],marginBottom:0},`${pS}_error-text`),(0,me.style)({color:ve.color.error.main,marginInlineEnd:ve.space[50],flexShrink:0,alignSelf:"flex-start"},`${pS}_error-icon`),(0,me.style)({background:ve.color.background.alt},`${pS}_expressive-level-3`),(0,me.style)({":before":{...fS,...gS(ve.border.thickness.normal,ve.color.structure.borderLowContrast)}},`${pS}_functional-level-3`),(0,me.style)({":after":{...yS(ve.border.thickness.emphasis,uS)}},`${pS}_error-expressive`),(0,me.style)({":after":{...yS(ve.border.thickness.emphasis,uS)},selectors:{"&:has(input:checked):after":{...yS(uS,"0.25rem")}}},`${pS}_error-functional`),(0,me.style)({selectors:{[`${Ct}&`]:{color:"inherit"}}},`${pS}_label`),(0,me.style)({selectors:{[`${Ot}&`]:{marginTop:ve.space[25],color:ve.color.background.mediumContrast},[`${bS}:has(input:checked) &`]:{color:"inherit"}}},`${pS}_label-description`),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-selection-group");const wS=(e,t="selection_group")=>`${t}_${e}`,xS=ve.space[100],kS=`calc(${ve.space[100]} - ${ve.border.thickness.normal})`,SS=`calc(${ve.space[100]} - ${ve.border.thickness.focus})`,_S=`calc(${ve.border.thickness.normal} + ${ve.border.thickness.normal})`,ES="0.125rem",CS={content:"",position:"absolute",top:`calc(${ve.border.thickness.normal} * -1)`,left:`calc(${ve.border.thickness.normal} * -1)`,right:0,borderRadius:ve.border.radius.md,width:`calc(100% + ${ES})`,height:`calc(100% + ${ES})`,pointerEvents:"none"},$S={backgroundColor:ve.color.background.surface,color:ve.color.secondary.main,borderColor:ve.color.secondary.main,borderWidth:ve.border.thickness.normal,padding:xS,zIndex:1,WebkitTextStrokeWidth:"0.0421875rem"},AS={flexDirection:"column",minWidth:"auto"},TS=((0,me.style)({boxSizing:"border-box",borderStyle:"none",padding:0,textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},wS("base")),(0,me.style)({display:"flex",flexWrap:"wrap",position:"relative",minWidth:"18rem",marginTop:`calc(${ve.space[150]} * -1)`,marginInlineEnd:`calc(${ve.space[150]} * -1)`},wS("buttons")),(0,me.style)({"@media":{[`screen and (max-width: ${ke})`]:AS}},wS("buttons_responsive_xs")),(0,me.style)({"@media":{[`screen and (max-width: ${Se})`]:AS}},wS("buttons_responsive_sm")),(0,me.style)({"@media":{[`screen and (max-width: ${_e})`]:AS}},wS("buttons_responsive_md")),(0,me.style)({...AS,marginTop:0,display:"grid",gridAutoRows:"1fr",gap:ve.space[150]},wS("buttons_vertical")),(0,me.style)([_t,{display:"block",color:ve.color.background.highContrast,marginBottom:ve.space[150]}],wS("group_label")),(0,me.style)({...Rt,display:"block",listStyle:"none",paddingLeft:0,margin:`${ve.space[150]} 0 0 0`},wS("helper_text")),(0,me.style)({...Rt,color:ve.color.background.mediumContrast,display:"flex",alignItems:"center",marginTop:ve.space[50],marginBottom:0},wS("error_text")),(0,me.style)({color:ve.color.error.main,marginInlineEnd:ve.space[50],flexShrink:"0",alignSelf:"flex-start"},wS("error_icon")),(0,me.style)({justifyContent:"center"},wS("center")),(0,me.style)({justifyContent:"stretch"},wS("justify")),(0,me.style)({position:"absolute",clip:"rect(0, 0, 0, 0)",pointerEvents:"none",width:"1px",height:"1px"},wS("control")));(0,me.globalStyle)(`${TS}:focus + label`,{outline:"none",...Oa,borderWidth:ve.border.thickness.normal,padding:xS}),(0,me.globalStyle)(`${TS}:checked + label div`,{color:ve.color.secondary.main}),(0,me.globalStyle)(`${TS}:checked + label span`,{color:ve.color.secondary.main});const OS=(0,me.style)({},wS("label_when_focused_and_checked"));(0,me.globalStyle)(`${OS} input:checked + label:after`,{border:`${_S} solid ${ve.color.primary.main}`}),(0,me.style)([_t,{display:"flex",flexDirection:"column",justifyContent:"center",backgroundColor:ve.color.background.surface,padding:xS,marginTop:ve.space[150],marginRight:ve.space[150],textAlign:"center",cursor:"pointer",userSelect:"none",border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,borderRadius:ve.border.radius.md,position:"relative",transition:`color ${ve.motion.duration.action} ease,\n background-color ${ve.motion.duration.action} ease,\n border-color ${ve.motion.duration.action} ease`,minHeight:"3.75rem",minWidth:"5.125rem",selectors:{"&:hover":{background:ve.color.background.surface,borderColor:ve.color.secondary.main},"[dir='rtl'] & ":{marginRight:0,marginLeft:ve.space[150]}}}],wS("label")),(0,me.style)({textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},wS("secondary_label_vertical")),(0,me.style)({marginRight:0,marginTop:0},wS("label_vertical")),(0,me.style)({flex:"1 0 auto"},wS("label_justify"));const PS=(0,me.style)({},wS("primary"));(0,me.globalStyle)(`${PS} input:checked + label`,$S),(0,me.globalStyle)(`${PS} input:focus + label:after`,{borderColor:ve.color.secondary.main}),(0,me.globalStyle)(`${PS} input:checked + label:after`,{...CS,border:`${ve.border.thickness.focus} solid ${ve.color.secondary.main}`}),(0,me.globalStyle)(`${PS} input:checked + label &:hover`,{border:`${ve.border.thickness.normal} solid ${ve.color.secondary.main}`}),(0,me.globalStyle)(`${PS} input:checked + label span`,{color:ve.color.secondary.main}),(0,me.style)([Rt,{color:ve.color.background.mediumContrast}],wS("secondary_label_two")),(0,me.style)({borderWidth:ve.border.thickness.emphasis,backgroundColor:ve.color.background.surface,borderColor:ve.color.error.main,padding:kS},wS("error_label"));const FS=(0,me.style)({},wS("error_label_when_checked"));(0,me.globalStyle)(`${FS} input:checked + label:after`,{padding:SS,border:`${ve.border.thickness.focus} solid ${ve.color.error.main}`,zIndex:1}),(0,me.globalStyle)(`${FS} input:checked + label &:hover`,{border:`${ve.border.thickness.focus} solid ${ve.color.error.main}`}),(0,me.globalStyle)(`${FS} input:checked + label &:after`,{border:"none"});const RS=(0,me.style)({},wS("error_label_when_focused"));(0,me.globalStyle)(`${RS} input:focus + label &:hover`,{borderColor:ve.color.error.main,borderWidth:ve.border.thickness.emphasis}),(0,me.globalStyle)(`${RS} input:focus + label &:after`,{border:"none"}),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-switch");const zS="3.5rem",LS=`calc(${zS} - ${ve.size.circle.sm})`,NS=`calc(${ve.size.circle.sm} / 2)`,{ppuiEaseMoveSmall:IS}=ia,MS=(0,me.style)({position:"relative",textAlign:"left",selectors:{"[dir='rtl'] & ":{textAlign:"right"}}},"switch_base"),DS=(0,me.style)([_t,{display:"block",marginBottom:ve.space[150],selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:ve.space[300]}}}],"switch_label"),jS=(0,me.style)({display:"block",color:ve.color.background.mediumContrast},"switch_secondary_label"),HS=(0,me.style)({display:"flex",flexWrap:"wrap",alignItems:"center",width:"100%"},"switch_inline"),BS=(0,me.style)({flex:"1 1 0",textAlign:"start",paddingRight:ve.space[300],marginBottom:0,selectors:{"[dir='rtl'] & ":{paddingRight:0,paddingLeft:ve.space[300]}}},"switch_inline_label"),VS=(0,me.style)({flex:"0 0 100%"},"switch_inline_helperText"),WS=(0,me.style)({width:zS,height:ve.size.circle.sm,position:"relative"},"switch_container"),US=(0,me.style)({display:"inline-block",width:zS,height:ve.size.circle.sm,cursor:"pointer",border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,borderRadius:NS,backgroundColor:ve.color.unselected.main},"switch_state");(0,me.globalStyle)(`${US} > span`,{visibility:"hidden",width:"0.0625rem",height:"0.0625rem",overflow:"hidden",position:"absolute",whiteSpace:"nowrap"});const GS=(0,me.style)({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:0,left:0,width:ve.size.circle.sm,height:ve.size.circle.sm,backgroundColor:ve.color.selected.contrast,borderRadius:ve.border.radius.interactive,border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderHighContrast}`,transition:`${ve.motion.duration.move.small} ${IS}`},"switch_handler"),qS=(0,me.style)({display:"none",color:ve.color.selected.main},"switch_selectedIcon"),KS=(0,me.style)({opacity:0,position:"absolute"},"switch_control");(0,me.globalStyle)(`${KS}:focus ~ label`,{...Oa}),(0,me.globalStyle)(`${KS}:hover ~ label`,{backgroundColor:ve.color.unselected.mainHover}),(0,me.globalStyle)(`${KS}:checked ~ label`,{backgroundColor:ve.color.selected.main,border:`${ve.border.thickness.normal} solid ${ve.color.selected.main}`}),(0,me.globalStyle)(`${KS}:checked ~ span`,{transform:`translateX(${LS})`,border:`${ve.border.thickness.normal} solid ${ve.color.selected.main}`}),(0,me.globalStyle)(`${KS}:checked + label + span > span:first-of-type`,{display:"inline-block"}),(0,me.globalStyle)(`${KS}:checked:hover ~ label`,{backgroundColor:ve.color.selected.mainHover});const YS=(0,me.style)([Ot,{marginTop:ve.space[50],listStyle:"none",paddingLeft:0,color:ve.color.background.mediumContrast}],"switch_helperText");he.endFileScope();var XS=["checked","inline","className","inputClassName","labelClassName","helperText","hideLabel","id","label","secondaryLabel","onChange","required","value"];(0,pe.forwardRef)((function(e,t){var r=e.checked,n=e.inline,a=e.className,o=e.inputClassName,i=e.labelClassName,l=e.helperText,s=e.hideLabel,c=e.id,u=void 0===c?Ze("Switch_"):c,d=e.label,p=e.secondaryLabel,f=e.onChange;e.required;var h,m,g=e.value,y=ye(e,XS),v=Ke(MS,n&&HS,a),b=Ke(DS,n&&BS),w=Ke(YS,n&&VS),x="message_".concat(u),k="label_".concat(u),S=f?{onChange:f,checked:r}:{defaultChecked:r};return fe().createElement("div",{className:v,"data-ppui-info":"switch_4.2.2__8.12.0"},!s&&fe().createElement("span",{id:k,className:b,"data-ppui":"true"},d,fe().createElement(at,{as:"div",className:jS,"data-ppui":"true"},p)),fe().createElement("div",{className:WS,"data-ppui":"true"},fe().createElement("input",ge({},l?{"aria-describedby":x}:null,s?{}:{"aria-labelledby":k},{"aria-label":s?d:null,className:Ke(KS,o),id:u,role:"switch",type:"checkbox",value:g,ref:t},S,y,{"data-ppui":"true"})),fe().createElement("label",{className:Ke(US,i),htmlFor:u,"data-ppui":"true"},fe().createElement("span",{"data-ppui":"true"},d)),fe().createElement("span",{className:GS,"data-ppui":"true"},fe().createElement(Co,{size:"xs",className:qS,"aria-hidden":"true","data-ppui":"true"}))),(m=x,(h=l)&&fe().createElement("div",{className:w,id:m,"data-ppui":"true"},h)||null))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-tabs");const{variables:QS}=n,ZS=`calc(${ve.space[400]} + ${ve.space[300]})`,JS=`calc(${ve.size.tapTarget.default} * 2)`,e_=`calc(${ve.space[300]} * 3)`,t_={display:"none"},r_={display:"block"},n_=((0,me.style)({position:"relative"},"tabs_wrapper_base"),(0,me.style)({overflowY:"hidden",whiteSpace:"nowrap",position:"relative",scrollbarWidth:"none",padding:`${ve.space[300]} ${ve.space[300]} ${ve.space[300]} ${ZS}`,selectors:{"&::-webkit-scrollbar":{...t_}}},"tabs_base"),(0,me.style)({display:"flex",float:"left",minHeight:ve.size.field.sm,width:"max-content",position:"relative",selectors:{"[dir='rtl'] &":{float:"right"}}},"tabs_wrapper"),(0,me.style)({minWidth:"100%",width:"auto",minHeight:ve.size.field.sm,justifyContent:"center","@media":{"(max-width: 120px)":{width:"auto",justifyContent:"flex-start"}}},"tabs_center"),(0,me.style)({...r_,...Vr,padding:`${ve.space[150]} ${ve.space[50]}`,minHeight:ve.size.field.sm,minWidth:"5.25rem",maxWidth:"11.5rem",marginInlineEnd:ve.space[200],outline:"none",position:"relative",border:"none",backgroundColor:"transparent",whiteSpace:"normal",wordWrap:"break-word",textDecoration:"none",flexShrink:0,cursor:"pointer",color:ve.color.background.mediumContrast,zIndex:1,":last-of-type":{marginInlineEnd:0},"::after":{content:"",position:"absolute",inset:0,border:"none",pointerEvents:"none",top:"auto"},":hover":{backgroundColor:ve.color.background.surfaceHover,borderRadius:ve.border.radius.xs,textDecoration:"none"},":active":{color:ve.color.background.highContrast,textDecoration:"none"},":focus":{...Oa,textDecoration:"none",borderRadius:ve.border.radius.xs,outlineOffset:"unset",transform:"none",transition:"none"},":visited":{textDecoration:"none"}},"tabs_btn")),a_=((0,me.style)({position:"absolute",bottom:0,left:0,width:0,height:ve.border.thickness.emphasis,borderRadius:ve.border.radius.tiny,borderBottom:`${ve.border.thickness.emphasis} solid ${ve.color.background.highContrast}`,transition:`all ${ve.motion.duration.move.small} ${QS.ppuiEaseMoveSmall}`},"tabs_slider"),(0,me.style)({color:ve.color.background.highContrast,":hover":{textDecoration:"none"}},"tabs_selected_btn"));(0,me.globalStyle)(`${a_}:hover::after`,{borderRadius:ve.border.radius.tiny,borderBottom:`${ve.border.thickness.emphasis} solid ${ve.color.background.highContrast}`}),(0,me.style)({backgroundColor:ve.color.background.surface,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,visibility:"hidden",width:ve.size.tapTarget.default,height:JS,top:0},"tabs_scroll_btn"),(0,me.style)({left:0,background:`linear-gradient(\n 90deg,\n ${ve.color.background.surface} 47.45%,\n ${Ye(ve.color.background.surface,"0")} 100%\n )`,zIndex:1},"tabs_scroll_btn_left"),(0,me.style)({right:0,background:`linear-gradient(\n 270deg,\n ${ve.color.background.surface} 47.45%,\n ${Ye(ve.color.background.surface,"0")} 100%\n )`,zIndex:1},"tabs_scroll_btn_right"),(0,me.style)({visibility:"visible",opacity:1,transition:`visibility ${ve.motion.duration.move.small},\n opacity ${ve.motion.duration.move.small}`},"tabs_scroll_btn_visible"),(0,me.style)([cl,{color:ve.color.primary.main,background:ve.color.background.surface}],"tabs_arrow_icon"),(0,me.style)({margin:`0 ${ve.space[300]} 0 ${e_}`,":focus":{outline:"none"},selectors:{"&[aria-hidden='true']":{...t_}}},"tabs_content"),(0,me.style)({":focus":{boxShadow:`0 0 ${ve.border.thickness.emphasis}\n ${ve.border.thickness.emphasis} ${ve.color.structure.focus}`}},"tabs_content_focus"),(0,me.style)({...t_},"hide_btn"),(0,me.style)({...r_},"tabs_content_visible"),(0,me.style)({...t_},"tabs_content_hidden"),(0,me.style)([fl,{background:ve.color.background.surface}],"tabs_nav_background"),he.endFileScope();var o_=["id","tabIdx","label","tabGroupId","panelId","selected","onClick","className"];fe().forwardRef((function(e,t){var r=e.id,n=e.tabIdx,a=e.label,o=e.tabGroupId,i=e.panelId,l=e.selected,s=e.onClick,c=e.className,u=ye(e,o_),d=Ke(n_,l&&a_,c),p=l?0:-1,f=r||"".concat(o,"-tab").concat(parseInt(n,10)+1);return fe().createElement("button",ge({ref:t,"data-tab-index":n,id:f,className:d,"aria-controls":i,"aria-selected":l,tabIndex:p,type:"button",role:"tab"},u,{onClick:s,"data-button-text":a,"data-ppui":"true"}),a)})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-area");const i_=(0,me.style)({backgroundColor:ve.color.background.surface,outline:"none",boxShadow:"none",resize:"none",display:"block"},"text-area_control");(0,me.globalStyle)(`${i_}:placeholder-shown:not(:focus) ~ label`,{paddingTop:0});const l_=(0,me.style)({backgroundColor:ve.color.background.surface,top:ve.border.thickness.normal,paddingTop:`calc(${ve.space[100]} - ${ve.border.thickness.normal})`},"text-area_control_label"),s_=(0,me.style)({top:ve.border.thickness.emphasis,paddingTop:`calc(${ve.space[100]} - ${ve.border.thickness.emphasis})`},"text-area_control_error_label"),c_=(0,me.style)({cursor:"text",position:"relative",padding:ve.border.thickness.normal,":after":{content:" ",position:"absolute",height:"100%",width:"100%",top:0,left:0,border:`${ve.border.thickness.normal} solid ${ve.color.structure.borderLowContrast}`,borderRadius:ve.border.radius.sm,pointerEvents:"none"},":focus-within":{borderRadius:ve.border.radius.sm,...Oa}},"text-area_wrapper"),u_={border:"none",outline:"none",boxShadow:"none",marginTop:`calc(${ve.space[350]} + ${ve.space[25]} - ${ve.border.thickness.normal})`,paddingTop:0,minHeight:`calc((${ve.size.field.sm} / 2) + ${ve.space[100]} - ${ve.border.thickness.normal})`};(0,me.globalStyle)(`${c_} > textarea:focus, ${c_} > textarea:not(:focus)`,u_);const d_=(0,me.style)([Ko,{paddingTop:ve.space[100],paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,paddingBottom:`calc(${ve.space[100]} - ${ve.border.thickness.normal})`,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.normal})`,textAlign:"right",backgroundColor:ve.color.background.surface,selectors:{"[dir='rtl'] & ":{textAlign:"left"}}}],"text-area_counter_text"),p_=(0,me.style)({paddingLeft:ve.border.thickness.emphasis,paddingRight:ve.border.thickness.emphasis,":after":{border:`${ve.border.thickness.emphasis} solid ${ve.color.error.main}`}},"text-area_error_counter_wrapper"),f_=(0,me.style)({color:ve.color.error.main,paddingLeft:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`,paddingRight:`calc(${ve.space[150]} - ${ve.border.thickness.emphasis})`},"text-area_error_counter_text");he.endFileScope();var h_=["className","minRows","maxRows","showCharacterCounter","maxCharacters","counterStatusText","onChange","onBlur","onFocus","value","errorText","successText"],m_=["inputClassName","name","id","setFocus","hasError","placeholder","label","labelClassName","inputTag","placemat"];(0,pe.forwardRef)((function(e,t){var r=e.className,n=e.minRows,a=e.maxRows,o=e.showCharacterCounter,i=void 0!==o&&o,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,m=e.value,g=e.errorText,y=e.successText,v=ye(e,h_),b=function(e){return e*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16)}(1.5),w=a>1?Math.min(a,6):6,x=n>=1?Math.max(n,1):2,k=el((0,pe.useState)(m?m.length:0),2),S=k[0],_=k[1],E=el((0,pe.useState)(!1),2),C=E[0],$=E[1],A=(0,pe.useRef)(),T=t||A,O=(0,pe.useContext)(ja),P=(0,pe.useRef)(0),F=(0,pe.useRef)(b*w),R=(0,pe.useRef)(b*x);(0,pe.useEffect)((function(){if(T.current){var e=T.current,t=e.offsetHeight,r=e.clientHeight,n=window.getComputedStyle(e),a=Number(n.getPropertyValue("line-height").split("px")[0]),o=Number(n.getPropertyValue("padding-bottom").split("px")[0]),i=Number(n.getPropertyValue("padding-top").split("px")[0]),l=Number.isNaN(a)?b:a,s=Number.isNaN(o)?0:o,c=Number.isNaN(i)?0:i;P.current=t-r,F.current=P.current+c+s+l*w,R.current=P.current+c+s+l*x,function(){var e=T.current;e.style.height="".concat(R.current,"px");var t=e.scrollHeight+P.current;t>F.current?e.style.height="".concat(F.current,"px"):t>R.current?e.style.height="".concat(t,"px"):e.style.height="".concat(R.current,"px")}(),$("rtl"===n.direction)}}),[x,w,m]);var z=function(){T.current&&T.current.focus()};return fe().createElement(ji,ge({className:r,value:m,onChange:function(e){var t=e.target;_(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,o=e.hasError,c=e.placeholder,u=e.label,d=e.labelClassName;e.inputTag,e.placemat;var p=ye(e,m_),f=fe().createElement(Wi,ge({inputClassName:Ke(t,i_),inputTag:"textarea",name:r,id:n,setFocus:a,inputRef:T,hasError:o,placeholder:c,label:u,labelClassName:Ke(d,l_,s_)},p,{"data-ppui":"true"})),h=Ke(c_,o&&p_);if(i){var m="";l&&(m=C?"".concat(l,"/"):"/".concat(l));var g=C?"".concat(m).concat(S):"".concat(S).concat(m),y=function(e,t,r,n){return r?e&&e.messageFormatter?e.messageFormatter({id:r}).format(n):r:t}(O,"".concat(S," out of ").concat(l," characters used"),s,{charCount:S,maxCharacters:l}),v=Ke(d_,o&&f_);return fe().createElement("div",{className:h,onClick:z,"data-ppui":"true"},f,fe().createElement("div",{className:v,role:"status","aria-live":"polite","aria-atomic":"true","aria-label":y,"data-ppui":"true"},g))}return fe().createElement("div",{className:h,onClick:z,"data-ppui":"true"},f)},errorText:g,successText:y,"data-ppui-info":"text-area_1.2.2__8.12.0"},v))})),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-text-display");const g_=`calc(${ve.size.tapTarget.default} + ${ve.space[150]})`,y_=`calc(${ve.typography.caption.lineHeight} + ${ve.space[75]})`;(0,me.style)({paddingTop:ve.space[150],paddingBottom:ve.space[150],paddingLeft:0,selectors:{"[dir='rtl'] & ":{paddingLeft:g_}}},"text-display_no_label_control"),(0,me.style)({border:0,paddingLeft:0,paddingTop:y_,paddingBottom:0,minHeight:"2.875rem",display:"block",backgroundColor:"transparent",overflowWrap:"break-word",selectors:{"[dir='rtl'] & ":{paddingRight:0}}},"text-display_control"),(0,me.style)({top:0,left:0,selectors:{"[dir='rtl'] & ":{left:g_,right:0}}},"text-display_label"),(0,me.style)({top:0},"text-display_icon_right"),(0,me.style)({right:g_},"text-display_label_icon_right"),(0,me.style)({paddingRight:`calc(${g_} - ${ve.border.thickness.normal})`,selectors:{"[dir='rtl'] & ":{paddingLeft:`calc(${g_} - ${ve.border.thickness.normal})`}}},"text-display_control_icon_right"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-toast");const v_=`calc(-2*${ve.space[200]})`,{ppuiEaseEnterSmall:b_,ppuiEaseExitSmall:w_}=ia,x_=((0,me.style)([dl,_t,{display:"flex",padding:ve.space[200],borderRadius:ve.border.radius.lg,left:0,right:0,margin:"auto",whiteSpace:"normal",maxWidth:"30rem",pointerEvents:"auto"}],"toast_base"),(0,me.style)({alignItems:"center",display:"flex"},"toast_message"),(0,me.style)({display:"flex",position:"fixed",top:ve.space[200],zIndex:1100,left:"50%",transform:"translateX(-50%)",width:`calc(100% - ${ve.space[200]} * 2)`,visibility:"hidden",opacity:0,pointerEvents:"none",selectors:{"&[aria-hidden='false']":{visibility:"visible",opacity:1}}},"toast_container"),(0,me.keyframes)({"0%":{transform:`translate(-50%, ${v_})`,opacity:0},"100%":{visibility:"visible",transform:"translate(-50%, 0)",opacity:1}},"toast_fade-in")),k_=(0,me.keyframes)({"0%":{visibility:"visible",transform:"translate(-50%, 0)",opacity:1},"100%":{visibility:"hidden",transform:`translate(-50%, ${v_})`,opacity:0}},"toast_fade-out"),S_=((0,me.style)({animation:`${x_} ${ve.motion.duration.enter.small} ${b_}`},"toast_show"),(0,me.style)({animation:`${k_} ${ve.motion.duration.exit.small} ${w_}`},"toast_hide"),{background:ve.color.success.main,color:ve.color.success.contrast});(0,me.style)({marginRight:ve.space[100],height:ve.size.icon.sm,flexShrink:"0",selectors:{"[dir='rtl'] &":{marginLeft:ve.space[100],marginRight:0}}},"toast_icon"),(0,me.style)({background:ve.color.system.main,color:ve.color.system.contrast},"toast_info"),(0,me.style)(S_,"toast_success"),(0,me.style)(S_,"toast_favorite"),he.endFileScope(),he.setFileScope("src/styles.css.ts","@paypalcorp/pp-react-section");const __=(0,me.style)({display:"flex",justifyContent:"space-between",marginBottom:ve.space[50],height:"1.5rem"},"section_title-container"),E_=(0,me.style)({marginBottom:ve.space[150]},"section_header"),C_=(0,me.style)({margin:`${ve.space[25]} 0`},"section_title"),$_=(0,me.style)({display:"flex",cursor:"pointer",":focus":{...Oa},border:"none",background:"inherit",borderRadius:ve.border.radius.xs,alignItems:"center",paddingLeft:ve.space[100],columnGap:ve.space[25]},"section_action-container"),A_=(0,me.style)({color:ve.color.background.mediumContrast},"section_caption-text"),T_=(0,me.style)({display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-start",rowGap:ve.space[150]},"section_content-area"),O_=(0,me.style)([Ot,{margin:`${ve.space[150]} 0`,color:ve.color.background.mediumContrast}],"section_footer"),P_=(0,me.style)({selectors:{"[dir='rtl'] &":{transform:"rotate(180deg)"}}},"section_action-icon");he.endFileScope();var F_=function(e){var t=e.label,r=e.onClick;return fe().createElement("button",{className:$_,onClick:function(e){return r(e)},onKeyDown:function(e){!function(e,t){"Enter"===e.key&&t(e)}(e,r)},"data-ppui":"true"},t&&fe().createElement(ra,{clampAtLine:2,className:A_,"data-ppui":"true"},t),fe().createElement(To,{className:P_,size:"xs",color:"sysColorBackgroundMediumContrast","data-ppui":"true"}))},R_=function(e){var t=e.title,r=e.subTitle,n=e.action;return fe().createElement(fe().Fragment,null,fe().createElement("div",{className:__,"data-ppui":"true"},t&&fe().createElement(aa,{className:C_,type:"medium","data-ppui":"true"},t),n&&fe().createElement(F_,{label:n.label,onClick:n.onClick,"data-ppui":"true"})),r&&fe().createElement(ra,{clampAtLine:2,className:A_,"data-ppui":"true"},r))},z_=["variant","children","className","id"],L_=["children","className"],N_=["children","className"],I_=["children"],M_=function(e){var t=e.children,r=ye(e,I_);return fe().createElement("section",ge({},r,{"data-ppui":"true"}),t)};M_.Header=function(e){var t=e.variant,r=void 0===t?"default":t,n=e.children,a=e.className,o=e.id,i=ye(e,z_);return fe().createElement("header",{className:Ke(E_,a),id:o,"data-ppui":"true"},function(){switch(r){case"default":return fe().createElement(R_,ge({},i,{"data-ppui":"true"}));case"custom":return fe().createElement(fe().Fragment,null,n);default:return fe().createElement(fe().Fragment,null)}}())},M_.Content=function(e){var t=e.children,r=e.className,n=ye(e,N_);return fe().createElement("article",ge({className:Ke(T_,r)},n,{"data-ppui":"true"}),t)},M_.Footer=function(e){var t=e.children,r=e.className,n=ye(e,L_);return fe().createElement("footer",ge({className:Ke(O_,r)},n,{"data-ppui":"true"}),t)};const D_=function(e){var t=e.isLoading,r=e.children;return h().createElement(h().Fragment,null,t&&h().createElement("div",{id:"loadingWrapper",style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},h().createElement(ms,{size:"lg"})),r)};function j_(e){return j_="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},j_(e)}function H_(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 B_(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 V_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B_(Object(r),!0).forEach((function(t){W_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function W_(e,t,r){return(t=function(e){var t=function(e){if("object"!=j_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=j_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var U_={nojs:1,comp:"merchant-onboarding-sdk",sdk_env:window?window.__TARGET__:"production",sdk_ver:"1",domain:"merchant_onboarding",product:"mep",space_key:"SK3YPU"};const G_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e&&e.trim()){var r=new URL("https://t.paypal.com/ts"),n=V_(V_({},U_),{},{event_name:e},t);Object.entries(n).forEach((function(e){var t=function(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,o,i,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.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&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H_(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)?H_(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.")}()}(e,2),n=t[0],a=t[1];r.searchParams.set(n,a)})),(new Image).src=r.href}};function q_(e){return q_="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},q_(e)}function K_(){K_=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.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 o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new O(n||[]);return a(i,"_invoke",{value:C(e,r,l)}),i}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="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};c(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==r&&n.call(k,i)&&(w=k);var S=b.prototype=y.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(a,o,i,l){var s=d(e[a],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==q_(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,l)}))}l(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function C(t,r,n){var a=p;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var s=$(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function $(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,$(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=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 o.next=o}}throw new TypeError(q_(t)+" is not iterable")}return v.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new E(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(S),c(S,s,"Generator"),c(S,i,(function(){return this})),c(S,"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=P,O.prototype={constructor:O,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(T),!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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.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 o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},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),g},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),T(r),g}},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;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Y_(e,t,r,n,a,o,i){try{var l=e[o](i),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,a)}function X_(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,eE(n.key),n)}}function Q_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Q_=function(){return!!e})()}function Z_(e){return Z_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z_(e)}function J_(e,t){return J_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J_(e,t)}function eE(e){var t=function(e){if("object"!=q_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=q_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q_(t)?t:t+""}var tE,rE,nE,aE=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Z_(t),function(e,t){if(t&&("object"==q_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Q_()?Reflect.construct(t,r||[],Z_(e).constructor):t.apply(e,r))}(this,t,[e])).state={hasError:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J_(e,t)}(t,e),r=t,n=[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t})}},{key:"render",value:function(){var e=this;if(!this.state.errorInfo)return this.props.children;console.log(JSON.stringify(this.state.errorInfo));var t,r,n={title:"Try Again",onClick:(t=K_().mark((function t(){return K_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.Paypal.onboard.onSDKError(e.state.error,e.state.errorInfo);case 2:case"end":return t.stop()}}),t)})),r=function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function i(e){Y_(o,n,a,i,l,"next",e)}function l(e){Y_(o,n,a,i,l,"throw",e)}i(void 0)}))},function(){return r.apply(this,arguments)})};return G_("onboarding_sdk_error_boundary",{message:String(this.state.error.message)}),h().createElement(_w,{title:"Something went wrong",subTitle:"Trying again might help fix the problem.",primaryButtonOptions:n})}}],n&&X_(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(h().Component);tE=aE,rE="propTypes",nE={customError:g().node,children:g().node.isRequired},(rE=eE(rE))in tE?Object.defineProperty(tE,rE,{value:nE,enumerable:!0,configurable:!0,writable:!0}):tE[rE]=nE;const oE=aE;var iE=r(867),lE=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,iE.Bx)(t,((e,t)=>{if(null!=e){var a=(0,iE.Jt)(n,t);r[(0,iE.Tm)(a)]=String(e)}}))}else{var a=e;for(var o in a){var i=a[o];null!=i&&(r[(0,iE.Tm)(o)]=i)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),r}(ve,n):{};return h().createElement(xe,{theme:be,style:{width:"100%"}},h().createElement("div",{style:a},t))};lE.propTypes={children:g().node,styleOverrides:g().object};const sE=lE,cE={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 uE=function(e){return e?cE[e].paScriptUrl:null!=="https://www.paypalobjects.com/pa/js/min/pa.js"?"https://www.paypalobjects.com/pa/js/min/pa.js":cE.production.paScriptUrl};function dE(e){return dE="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},dE(e)}function pE(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 fE(){fE=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.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 o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new O(n||[]);return a(i,"_invoke",{value:C(e,r,l)}),i}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="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};c(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==r&&n.call(k,i)&&(w=k);var S=b.prototype=y.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(a,o,i,l){var s=d(e[a],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==dE(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,l)}))}l(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function C(t,r,n){var a=p;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var s=$(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function $(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,$(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=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 o.next=o}}throw new TypeError(dE(t)+" is not iterable")}return v.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new E(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(S),c(S,s,"Generator"),c(S,i,(function(){return this})),c(S,"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=P,O.prototype={constructor:O,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(T),!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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.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 o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},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),g},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),T(r),g}},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;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function hE(e,t,r,n,a,o,i){try{var l=e[o](i),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,a)}function mE(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){hE(o,n,a,i,l,"next",e)}function l(e){hE(o,n,a,i,l,"throw",e)}i(void 0)}))}}var gE=function(){var e=mE(fE().mark((function e(){var t;return fE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.e(647).then(r.t.bind(r,647,23));case 3:t=e.sent,e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(0),G_("onboarding_sdk_load_remote_component_error",{message:String(e.t0.message)}),e.t0;case 10:return G_("onboarding_sdk_load_remote_component"),e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),yE=h().lazy(gE),vE=function(e){var t,r=function(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,o,i,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.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&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pE(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)?pE(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.")}()}((0,f.useState)(null),2),n=r[0],a=r[1],o="https://".concat((t=e.env)?cE[t].host:null!=="www.paypal.com"?"www.paypal.com":cE.production.host,"/unifiedonboarding/sdk/entry");return(0,f.useEffect)((function(){e.env&&(window.__TARGET__=e.env);var t=function(){var t=mE(fE().mark((function t(){var r,n,i;return fE().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=fetch,t.t1=o+"?"+new URLSearchParams({referralToken:e.referralToken,reimagineFlow:!0,flowId:e.flowId}).toString(),t.next=4,window.Paypal.onboard._getClientToken();case 4:return t.t2=t.sent,t.t3={Authorization:t.t2},t.t4={method:"GET",headers:t.t3},t.next=9,(0,t.t0)(t.t1,t.t4);case 9:if(200!==(r=t.sent).status){t.next=18;break}return G_("onboarding_sdk_fetch_data"),t.next=14,r.json();case 14:n=t.sent,a(n),t.next=21;break;case 18:throw i="Failed to fetch data: ".concat(r.status," ").concat(r.statusText," for url: ").concat(r.url),G_("onboarding_sdk_fetch_data_error",{message:String(i)}),new Error(i);case 21:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()}),[]),h().createElement(sE,{styleOverrides:e.style},h().createElement(de,null,h().createElement("script",{src:uE(e.env),async:!0})),null!=n&&n.preloadedState?h().createElement(h().Suspense,{fallback:h().createElement(D_,{isLoading:!0})},h().createElement(oE,null,h().createElement("div",{id:"remoteContainer"},h().createElement(yE,{preFetchedData:n,config:{baseName:"/"},styleOverrides:e.style,isSDKFlow:!0})))):h().createElement(D_,{isLoading:!0}))};vE.propTypes={referralToken:g().string.isRequired,style:g().object,flowId:g().string,env:g().string};const bE=vE;var wE=r(36),xE=r.n(wE);function kE(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 SE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kE(Object(r),!0).forEach((function(t){_E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _E(e,t,r){return(t=function(e){var t=function(e){if("object"!=$E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=$E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EE(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,o,i,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.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&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CE(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)?CE(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 CE(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 $E(e){return $E="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},$E(e)}var AE=function(e){try{return new URL(e),!0}catch(e){return!1}},TE=function(e){return"function"==typeof e||void 0===e},OE=function(e,t){for(var r in e){if(!(r in t))return console.error("Invalid style. Key ".concat(r," doesn't exist in the theme")),!1;if("object"===$E(e[r])){if(!OE(e[r],t[r]))return!1}else if("object"===$E(t[r]))return console.error("Invalid style. Mismatch in types for key: ".concat(r)),!1}return!0},PE={accessToken:{required:!0,validate:function(e){return"string"==typeof e&&""!==e.trim()},message:"accessToken must be a non-empty string"},env:{validate:function(e){return t=e,Object.keys(cE).includes(t);var t},message:"env must be a valid environment string"},actionUrl:{required:!0,validate:function(e){return AE(e)&&function(e){var t=new URL(e).searchParams.get("referralToken");return"string"==typeof t&&""!==t.trim()}(e)},message:"actionUrl must be a valid URL string with a referral Token"},cancelUrl:{validate:function(e){return AE(e)},message:"cancelUrl must be a valid URL"},style:{validate:function(e){return OE(e,ve)},message:"Invalid style. Must follow the structure of PAYPAL_THEME."},onProgress:{validate:TE,message:"onProgress must be a function"},onComplete:{validate:TE,message:"onComplete must be a function"},onAccessTokenExpiry:{validate:TE,message:"onAccessTokenExpiry must be a function"},onReferralTokenExpiry:{validate:TE,message:"onReferralTokenExpiry must be a function"},onCancel:{validate:TE,message:"onCancel must be a function"},onError:{validate:TE,message:"onError must be a function"},onSDKError:{validate:TE,message:"onSDKError must be a function"},onContactUs:{validate:TE,message:"onContactUs must be a function"},onLoginRequested:{validate:TE,message:"onLoginRequested must be a function"}},FE=function(e){var t={cancelUrl:e.cancelUrl||window.location.href};return btoa(JSON.stringify(t))},RE=function(e){if(!e)return!0;if(!e.startsWith("eyJ"))return console.warn("merchant-onboarding-sdk::invalid_token_format"),!1;try{var t=e.split(".");if(3!==t.length)return!0;var r=JSON.parse(atob(t[1]));if(!r.exp)return!0;var n=Math.floor(Date.now()/1e3);return r.exp<=n+30}catch(e){throw console.log("merchant-onboarding-sdk::error_checking_token_expiration"),e}};function zE(e){return zE="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},zE(e)}function LE(){LE=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.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 o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new O(n||[]);return a(i,"_invoke",{value:C(e,r,l)}),i}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="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};c(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==r&&n.call(k,i)&&(w=k);var S=b.prototype=y.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(a,o,i,l){var s=d(e[a],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==zE(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,l)}))}l(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function C(t,r,n){var a=p;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var s=$(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?m:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function $(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,$(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=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 o.next=o}}throw new TypeError(zE(t)+" is not iterable")}return v.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new E(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(S),c(S,s,"Generator"),c(S,i,(function(){return this})),c(S,"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=P,O.prototype={constructor:O,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(T),!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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.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 o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},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),g},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),T(r),g}},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;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function NE(e,t,r,n,a,o,i){try{var l=e[o](i),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,a)}function IE(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){NE(o,n,a,i,l,"next",e)}function l(e){NE(o,n,a,i,l,"throw",e)}i(void 0)}))}}var ME={options:{},initialize:function(e){try{!function(e){for(var t=[],r=0,n=Object.entries(PE);r<n.length;r++){var a=EE(n[r],2),o=a[0],i=a[1];null!=i&&i.required&&!e.hasOwnProperty(o)&&t.push("Missing required property: ".concat(o)),e.hasOwnProperty(o)&&i.validate&&!i.validate(e[o])&&t.push(i.message)}if(t.length>0)throw new Error(t.join("\n"))}(e),this.options=function(e){return SE(SE({},e),{},{referralToken:new URL(e.actionUrl).searchParams.get("referralToken"),flowId:FE(e)})}(e)}catch(e){throw G_("onboarding_sdk_initialize_validation_error",{message:e.message}),e}return G_("onboarding_sdk_initialize"),this},onProgress:function(e){var t=this;return IE(LE().mark((function r(){return LE().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("function"!=typeof t.options.onProgress){r.next=4;break}return G_("onboarding_sdk_on_progress_callback",{message:e}),r.next=4,t.options.onProgress(e);case 4:case"end":return r.stop()}}),r)})))()},onComplete:function(){var e=this;return IE(LE().mark((function t(){return LE().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.options.onComplete){t.next=4;break}return G_("onboarding_sdk_on_complete_callback"),t.next=4,e.options.onComplete();case 4:case"end":return t.stop()}}),t)})))()},onAccessTokenExpiry:function(){var e=this;return IE(LE().mark((function t(){return LE().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.options.onAccessTokenExpiry){t.next=5;break}return G_("onboarding_sdk_on_access_token_expiry_callback"),t.next=4,e.options.onAccessTokenExpiry();case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()},onReferralTokenExpiry:function(){var e=this;return IE(LE().mark((function t(){return LE().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.options.onReferralTokenExpiry){t.next=4;break}return G_("onboarding_sdk_on_referral_token_expiry_callback"),t.next=4,e.options.onReferralTokenExpiry();case 4:case"end":return t.stop()}}),t)})))()},onCancel:function(){var e=this;return IE(LE().mark((function t(){return LE().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.options.onCancel){t.next=4;break}return G_("onboarding_sdk_on_cancel_callback"),t.next=4,e.options.onCancel();case 4:case"end":return t.stop()}}),t)})))()},onError:function(e,t){var r=this;return IE(LE().mark((function n(){return LE().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("function"!=typeof r.options.onError){n.next=4;break}return G_("onboarding_sdk_on_error_callback",{message:e}),n.next=4,r.options.onError(e,t);case 4:case"end":return n.stop()}}),n)})))()},onSDKError:function(e,t){var r=this;return IE(LE().mark((function n(){return LE().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("function"!=typeof r.options.onSDKError){n.next=4;break}return G_("onboarding_sdk_on_sdk_error_callback",{message:e}),n.next=4,r.options.onSDKError(e,t);case 4:case"end":return n.stop()}}),n)})))()},onContactUs:function(){var e=this;return IE(LE().mark((function t(){return LE().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.options.onContactUs){t.next=4;break}return G_("onboarding_sdk_on_contact_us_callback"),t.next=4,e.options.onContactUs();case 4:case"end":return t.stop()}}),t)})))()},onLoginRequested:function(e){var t=this;return IE(LE().mark((function r(){return LE().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("function"!=typeof t.options.onLoginRequested){r.next=5;break}return G_("onboarding_sdk_on_login_requested_callback",{message:e}),r.next=4,t.options.onLoginRequested(e);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},render:function(e){return xE().render(h().createElement(bE,this.options),document.getElementById(e)),this},_getClientToken:function(){var e=this;return IE(LE().mark((function t(){var r,n,a,o,i;return LE().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!RE(e.options.accessToken)){t.next=6;break}return t.next=4,e.options.onAccessTokenExpiry();case 4:r=t.sent,e.options.accessToken=r;case 6:return G_("onboarding_sdk_get_client_token"),t.abrupt("return",e.options.accessToken);case 10:throw t.prev=10,t.t0=t.catch(0),n=t.t0||{},a=n.message,o=n.stack,i=n.name,console.log("merchant-onboarding-sdk::error_getting_client_token",{message:a,stack:o,name:i}),G_("onboarding_sdk_get_client_token_error",{message:t.t0}),t.t0;case 16:case"end":return t.stop()}}),t,null,[[0,10]])})))()}};window.Paypal=window.Paypal||{},window.Paypal.onboard=window.Paypal.onboard||ME;const DE=ME},937:e=>{"use strict";var t={}.hasOwnProperty,r=/[ -,\.\/:-@\[-\^`\{-~]/,n=/[ -,\.\/:-@\[\]\^`\{-~]/,a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,o=function e(o,i){"single"!=(i=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}(i,e.options)).quotes&&"double"!=i.quotes&&(i.quotes="single");for(var l="double"==i.quotes?'"':"'",s=i.isIdentifier,c=o.charAt(0),u="",d=0,p=o.length;d<p;){var f=o.charAt(d++),h=f.charCodeAt(),m=void 0;if(h<32||h>126){if(h>=55296&&h<=56319&&d<p){var g=o.charCodeAt(d++);56320==(64512&g)?h=((1023&h)<<10)+(1023&g)+65536:d--}m="\\"+h.toString(16).toUpperCase()+" "}else m=i.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&&i.wrap?l+u+l:u};o.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},o.version="3.0.0",e.exports=o},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 o(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 i(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)&&o(e).forEach((function(t){a[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(o,r)(e[o],t[o],r):a[o]=n(t[o],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},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 o,i,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 o=Object(arguments[s]))r.call(o,c)&&(l[c]=o[c]);if(t){i=t(o);for(var u=0;u<i.length;u++)n.call(o,i[u])&&(l[i[u]]=o[i[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 o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==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:o,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),o=r(982);function i(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(i(227));function l(e,t,r,n,a,o,i,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,o,i,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,o,l,p,h){if(f.apply(this,arguments),s){if(!s)throw Error(i(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(i(96,e));if(!k[r]){if(!t.extractEvents)throw Error(i(97,e));for(var n in k[r]=t,r=t.eventTypes){var a=void 0,o=r[n],l=t,s=n;if(S.hasOwnProperty(s))throw Error(i(99,s));S[s]=o;var c=o.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&x(c[a],l,s);a=!0}else o.registrationName?(x(o.registrationName,l,s),a=!0):a=!1;if(!a)throw Error(i(98,n,e))}}}}function x(e,t,r){if(_[e])throw Error(i(100,e));_[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(i(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(i(280));var t=e.stateNode;t&&(t=h(t),A(e.stateNode,e.type,t))}}function F(e){T?O?O.push(e):O=[e]:T=e}function R(){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 z(e,t){return e(t)}function L(e,t,r,n,a){return e(t,r,n,a)}function N(){}var I=z,M=!1,D=!1;function j(){null===T&&null===O||(N(),R())}function H(e,t,r){if(D)return e(t,r);D=!0;try{return I(e,t,r)}finally{D=!1,j()}}var B=/^[: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]*$/,V=Object.prototype.hasOwnProperty,W={},U={};function G(e,t,r,n,a,o){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=o}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new G(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new G(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new G(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new G(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){q[e]=new G(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new G(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new G(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new G(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new G(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);q[t]=new G(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);q[t]=new G(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);q[t]=new G(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new G(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new G(e,1,!1,e.toLowerCase(),null,!0)}));var X=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(e,t,r,n){var a=q.hasOwnProperty(t)?q[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!!V.call(U,e)||!V.call(W,e)&&(B.test(e)?U[e]=!0:(W[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 Z=/^(.*)[\\\/]/,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,oe=J?Symbol.for("react.provider"):60109,ie=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 ie:return"Context.Consumer";case oe: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,o=ge(e.type);r=null,n&&(r=ge(n.type)),n=o,o="",a?o=" (at "+a.fileName.replace(Z,"")+":"+a.lineNumber+")":r&&(o=" (created by "+r+")"),r="\n in "+(n||"Unknown")+o}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,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,o.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 Se(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 _e(e,t){null!=(t=t.checked)&&Q(e,"checked",t,!1)}function Ee(e,t){_e(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(i(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(i(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:ve(r)}}function Fe(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 Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ze(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 Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ze(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ne,Ie,Me=(Ie=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ne=Ne||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ne.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 Ie(e,t)}))}:Ie);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 je(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var He={animationend:je("Animation","AnimationEnd"),animationiteration:je("Animation","AnimationIteration"),animationstart:je("Animation","AnimationStart"),transitionend:je("Transition","TransitionEnd")},Be={},Ve={};function We(e){if(Be[e])return Be[e];if(!He[e])return e;var t,r=He[e];for(t in r)if(r.hasOwnProperty(t)&&t in Ve)return Be[e]=r[t];return e}$&&(Ve=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Ue=We("animationend"),Ge=We("animationiteration"),qe=We("animationstart"),Ke=We("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 Qe(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ze(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(Ze(e)!==e)throw Error(i(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(n=a.return)){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return et(a),e;if(o===n)return et(a),t;o=o.sibling}throw Error(i(188))}if(r.return!==n.return)r=a,n=o;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,n=o;break}if(s===n){l=!0,n=a,r=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===r){l=!0,r=o,n=a;break}if(s===n){l=!0,n=o,r=a;break}s=s.sibling}if(!l)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(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(i(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 ot(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 it(e){if(null!==e&&(at=rt(at,e)),e=at,at=null,e){if(nt(e,ot),at)throw Error(i(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 o=e.nativeEvent,i=e.eventSystemFlags;0===r&&(i|=64);for(var l=null,s=0;s<k.length;s++){var c=k[s];c&&(c=c.extractEvents(n,t,o,a,i))&&(l=rt(l,c))}it(l)}}function ft(e,t,r){if(!r.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":st(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ye.indexOf(e)&&Gt(e,t)}r.set(e,null)}}var ht,mt,gt,yt=!1,vt=[],bt=null,wt=null,xt=null,kt=new Map,St=new Map,_t=[],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":St.delete(t.pointerId)}}function Tt(e,t,r,n,a,o){return null===e||e.nativeEvent!==o?(e=$t(t,r,n,a,o),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=Ze(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Je(r)))return e.blockedOn=t,void o.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=Qt(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 Ft(e,t,r){Pt(e)&&r.delete(t)}function Rt(){for(yt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=Pr(e.blockedOn))&&ht(e);break}var t=Qt(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(Ft),St.forEach(Ft)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Rt)))}function Lt(e){function t(t){return zt(t,e)}if(0<vt.length){zt(vt[0],e);for(var r=1;r<vt.length;r++){var n=vt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==bt&&zt(bt,e),null!==wt&&zt(wt,e),null!==xt&&zt(xt,e),kt.forEach(t),St.forEach(t),r=0;r<_t.length;r++)(n=_t[r]).blockedOn===e&&(n.blockedOn=null);for(;0<_t.length&&null===(r=_t[0]).blockedOn;)Ot(r),null===r.blockedOn&&_t.shift()}var Nt={},It=new Map,Mt=new Map,Dt=["abort","abort",Ue,"animationEnd",Ge,"animationIteration",qe,"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 jt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],a=e[r+1],o="on"+(a[0].toUpperCase()+a.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],eventPriority:t},Mt.set(n,t),It.set(n,o),Nt[a]=o}}jt("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),jt("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),jt(Dt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Bt=0;Bt<Ht.length;Bt++)Mt.set(Ht[Bt],0);var Vt=o.unstable_UserBlockingPriority,Wt=o.unstable_runWithPriority,Ut=!0;function Gt(e,t){qt(t,e,!1)}function qt(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||N();var a=Xt,o=M;M=!0;try{L(a,e,t,r,n)}finally{(M=o)||j()}}function Yt(e,t,r,n){Wt(Vt,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=Qt(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 o=a.pointerId;return kt.set(o,Tt(kt.get(o)||null,e,t,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,St.set(o,Tt(St.get(o)||null,e,t,r,n,a)),!0}return!1}(a,e,t,r,n)){At(e,n),e=dt(e,n,null,t);try{H(pt,e)}finally{ut(e)}}}}function Qt(e,t,r,n){if(null!==(r=Or(r=lt(n)))){var a=Ze(r);if(null===a)r=null;else{var o=a.tag;if(13===o){if(null!==(r=Je(a)))return r;r=null}else if(3===o){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{H(pt,e)}finally{ut(e)}return null}var Zt={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||Zt.hasOwnProperty(e)&&Zt[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(Zt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[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(i(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(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 or="http://www.w3.org/1999/xhtml";function ir(e,t){var r=Qe(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,Sr="function"==typeof clearTimeout?clearTimeout:void 0;function _r(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 Fr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Rr(e){return e[Ar]||null}function zr(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(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(i(231,t,typeof r));return r}function Nr(e,t,r){(t=Lr(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function Ir(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=zr(t);for(t=r.length;0<t--;)Nr(r[t],"captured",e);for(t=0;t<r.length;t++)Nr(r[t],"bubbled",e)}}function Mr(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Lr(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 jr(e){nt(e,Ir)}var Hr=null,Br=null,Vr=null;function Wr(){if(Vr)return Vr;var e,t,r=Br,n=r.length,a="value"in Hr?Hr.value:Hr.textContent,o=a.length;for(e=0;e<n&&r[e]===a[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===a[o-t];t++);return Vr=a.slice(e,1<t?1-t:void 0)}function Ur(){return!0}function Gr(){return!1}function qr(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:Gr,this.isPropagationStopped=Gr,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(i(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Xr(e){e.eventPool=[],e.getPooled=Kr,e.release=Yr}a(qr.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:Gr,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=Gr,this._dispatchInstances=this._dispatchListeners=null}}),qr.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},qr.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return a(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=a({},n.Interface,e),r.extend=n.extend,Xr(r),r},Xr(qr);var Qr=qr.extend({data:null}),Zr=qr.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 o=on.compositionStart;break e;case"compositionend":o=on.compositionEnd;break e;case"compositionupdate":o=on.compositionUpdate;break e}o=void 0}else un?sn(e,r)&&(o=on.compositionEnd):"keydown"===e&&229===r.keyCode&&(o=on.compositionStart);return o?(nn&&"ko"!==r.locale&&(un||o!==on.compositionStart?o===on.compositionEnd&&un&&(a=Wr()):(Br="value"in(Hr=n)?Hr.value:Hr.textContent,un=!0)),o=Qr.getPooled(o,t,r,n),(a||null!==(a=cn(r)))&&(o.data=a),jr(o),a=o):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=Wr(),Vr=Br=Hr=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=Zr.getPooled(on.beforeInput,t,r,n)).data=e,jr(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=qr.getPooled(hn.change,e,t,r)).type="change",F(r),jr(e),e}var gn=null,yn=null;function vn(e){it(e)}function bn(e){if(xe(Fr(e)))return e}function wn(e,t){if("change"===e)return t}var xn=!1;function kn(){gn&&(gn.detachEvent("onpropertychange",Sn),yn=gn=null)}function Sn(e){if("value"===e.propertyName&&bn(yn))if(e=mn(yn,e,lt(e)),M)it(e);else{M=!0;try{z(vn,e)}finally{M=!1,j()}}}function _n(e,t,r){"focus"===e?(kn(),yn=r,(gn=t).attachEvent("onpropertychange",Sn)):"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?Fr(t):window,o=a.nodeName&&a.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===a.type)var i=wn;else if(fn(a))if(xn)i=$n;else{i=En;var l=_n}else(o=a.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(i=Cn);if(i&&(i=i(e,t)))return mn(i,r,n);l&&l(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&$e(a,"number",a.value)}},Tn=qr.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 Fn(){return Pn}var Rn=0,zn=0,Ln=!1,Nn=!1,In=Tn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Fn,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=Rn;return Rn=e.screenX,Ln?"mousemove"===e.type?e.screenX-t:0:(Ln=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=zn;return zn=e.screenY,Nn?"mousemove"===e.type?e.screenY-t:0:(Nn=!0,0)}}),Mn=In.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"]}},jn={eventTypes:Dn,extractEvents:function(e,t,r,n,a){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&!(32&a)&&(r.relatedTarget||r.fromElement)||!i&&!o)return null;if(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,null!==(t=(t=r.relatedTarget||r.toElement)?Or(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):i=null,i===t)return null;if("mouseout"===e||"mouseover"===e)var l=In,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==i?o:Fr(i),o=null==t?o:Fr(t),(s=l.getPooled(s,i,r,n)).type=u+"leave",s.target=e,s.relatedTarget=o,(r=l.getPooled(c,t,r,n)).type=u+"enter",r.target=o,r.relatedTarget=e,u=t,(n=i)&&u)e:{for(c=u,i=0,e=l=n;e;e=zr(e))i++;for(e=0,t=c;t;t=zr(t))e++;for(;0<i-e;)l=zr(l),i--;for(;0<e-i;)c=zr(c),e--;for(;i--;){if(l===c||l===c.alternate)break e;l=zr(l),c=zr(c)}l=null}else l=null;for(c=l,l=[];n&&n!==c&&(null===(i=n.alternate)||i!==c);)l.push(n),n=zr(n);for(n=[];u&&u!==c&&(null===(i=u.alternate)||i!==c);)n.push(u),u=zr(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]}},Hn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Bn=Object.prototype.hasOwnProperty;function Vn(e,t){if(Hn(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(!Bn.call(t,r[n])||!Hn(e[r[n]],t[r[n]]))return!1;return!0}var Wn=$&&"documentMode"in document&&11>=document.documentMode,Un={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Gn=null,qn=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==Gn||Gn!==sr(r)?null:(r="selectionStart"in(r=Gn)&&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&&Vn(Kn,r)?null:(Kn=r,(e=qr.getPooled(Un.select,qn,e,t)).type="select",e.target=Gn,jr(e),e))}var Qn={eventTypes:Un,extractEvents:function(e,t,r,n,a,o){if(!(o=!(a=o||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{a=Qe(a),o=E.onSelect;for(var i=0;i<o.length;i++)if(!a.has(o[i])){a=!1;break e}a=!0}o=!a}if(o)return null;switch(a=t?Fr(t):window,e){case"focus":(fn(a)||"true"===a.contentEditable)&&(Gn=a,qn=t,Kn=null);break;case"blur":Kn=qn=Gn=null;break;case"mousedown":Yn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yn=!1,Xn(r,n);case"selectionchange":if(Wn)break;case"keydown":case"keyup":return Xn(r,n)}return null}},Zn=qr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jn=qr.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:Fn,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}}),oa=In.extend({dataTransfer:null}),ia=Tn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Fn}),la=qr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),sa=In.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:Nt,extractEvents:function(e,t,r,n){var a=It.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=In;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=oa;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ia;break;case Ue:case Ge:case qe:e=Zn;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=qr}return jr(t=e.getPooled(a,t,r,n)),t}};if(v)throw Error(i(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Rr,m=Pr,g=Fr,C({SimpleEventPlugin:ca,EnterLeaveEventPlugin:jn,ChangeEventPlugin:An,SelectEventPlugin:Qn,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,o={};for(a in r)o[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ba(e){return null!=e.childContextTypes}function wa(){pa(ga),pa(ma)}function xa(e,t,r){if(ma.current!==ha)throw Error(i(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 o in n=n.getChildContext())if(!(o in e))throw Error(i(108,ge(t)||"Unknown",o));return a({},r,{},n)}function Sa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ha,ya=ma.current,fa(ma,e),fa(ga,ga.current),!0}function _a(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=ka(e,t,ya),n.__reactInternalMemoizedMergedChildContext=e,pa(ga),pa(ma),fa(ma,e)):pa(ga),fa(ga,r)}var Ea=o.unstable_runWithPriority,Ca=o.unstable_scheduleCallback,$a=o.unstable_cancelCallback,Aa=o.unstable_requestPaint,Ta=o.unstable_now,Oa=o.unstable_getCurrentPriorityLevel,Pa=o.unstable_ImmediatePriority,Fa=o.unstable_UserBlockingPriority,Ra=o.unstable_NormalPriority,za=o.unstable_LowPriority,La=o.unstable_IdlePriority,Na={},Ia=o.unstable_shouldYield,Ma=void 0!==Aa?Aa:function(){},Da=null,ja=null,Ha=!1,Ba=Ta(),Va=1e4>Ba?Ta:function(){return Ta()-Ba};function Wa(){switch(Oa()){case Pa:return 99;case Fa:return 98;case Ra:return 97;case za:return 96;case La:return 95;default:throw Error(i(332))}}function Ua(e){switch(e){case 99:return Pa;case 98:return Fa;case 97:return Ra;case 96:return za;case 95:return La;default:throw Error(i(332))}}function Ga(e,t){return e=Ua(e),Ea(e,t)}function qa(e,t,r){return e=Ua(e),Ca(e,t,r)}function Ka(e){return null===Da?(Da=[e],ja=Ca(Pa,Xa)):Da.push(e),Na}function Ya(){if(null!==ja){var e=ja;ja=null,$a(e)}Xa()}function Xa(){if(!Ha&&null!==Da){Ha=!0;var e=0;try{var t=Da;Ga(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{Ha=!1}}}function Qa(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function Za(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},eo=null,to=null,ro=null;function no(){ro=to=eo=null}function ao(e){var t=Ja.current;pa(Ja),e.type._context._currentValue=t}function oo(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 io(e,t){eo=e,ro=to=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(zi=!0),e.firstContext=null)}function lo(e,t){if(ro!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ro=e,t=1073741823),t={context:e,observedBits:t,next:null},null===to){if(null===eo)throw Error(i(308));to=t,eo.dependencies={expirationTime:0,firstContext:t,responders:null}}else to=to.next=t;return e._currentValue}var so=!1;function co(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function po(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function fo(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 ho(e,t){var r=e.alternate;null!==r&&uo(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function mo(e,t,r,n){var o=e.updateQueue;so=!1;var i=o.baseQueue,l=o.shared.pending;if(null!==l){if(null!==i){var s=i.next;i.next=l.next,l.next=s}i=l,o.shared.pending=null,null!==(s=e.alternate)&&null!==(s=s.updateQueue)&&(s.baseQueue=l)}if(null!==i){s=i.next;var c=o.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:so=!0}}null!==h.callback&&(e.effectTag|=32,null===(l=o.effects)?o.effects=[h]:l.push(h))}if(null===(h=h.next)||h===s){if(null===(l=o.shared.pending))break;h=i.next=l.next,l.next=s,o.baseQueue=i=l,o.shared.pending=null}}null===f?d=c:f.next=p,o.baseState=d,o.baseQueue=f,xs(u),e.expirationTime=u,e.memoizedState=c}}function go(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(i(191,n));n.call(a)}}}var yo=X.ReactCurrentBatchConfig,vo=(new n.Component).refs;function bo(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 wo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=ls(),a=yo.suspense;(a=po(n=ss(n,e,a),a)).payload=t,null!=r&&(a.callback=r),fo(e,a),cs(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=ls(),a=yo.suspense;(a=po(n=ss(n,e,a),a)).tag=1,a.payload=t,null!=r&&(a.callback=r),fo(e,a),cs(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=ls(),n=yo.suspense;(n=po(r=ss(r,e,n),n)).tag=2,null!=t&&(n.callback=t),fo(e,n),cs(e,r)}};function xo(e,t,r,n,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,i):!(t.prototype&&t.prototype.isPureReactComponent&&Vn(r,n)&&Vn(a,o))}function ko(e,t,r){var n=!1,a=ha,o=t.contextType;return"object"==typeof o&&null!==o?o=lo(o):(a=ba(t)?ya:ma.current,o=(n=null!=(n=t.contextTypes))?va(e,a):ha),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=wo,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function So(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&&wo.enqueueReplaceState(t,t.state,null)}function _o(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=vo,co(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=lo(o):(o=ba(t)?ya:ma.current,a.context=va(e,o)),mo(e,r,a,n),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(bo(e,t,o,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&&wo.enqueueReplaceState(a,a.state,null),mo(e,r,a,n),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Eo=Array.isArray;function Co(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(i(309));var n=r.stateNode}if(!n)throw Error(i(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===vo&&(t=n.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function $o(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ao(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=Hs(e,t)).index=0,e.sibling=null,e}function o(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=Ws(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=Co(e,t,r),n.return=e,n):((n=Bs(r.type,r.key,r.props,null,e.mode,n)).ref=Co(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,o){return null===t||7!==t.tag?((t=Vs(r,e.mode,n,o)).return=e,t):((t=a(t,r)).return=e,t)}function p(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Ws(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=Bs(t.type,t.key,t.props,null,e.mode,r)).ref=Co(e,null,t),r.return=e,r;case te:return(t=Us(t,e.mode,r)).return=e,t}if(Eo(t)||me(t))return(t=Vs(t,e.mode,r,null)).return=e,t;$o(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(Eo(r)||me(r))return null!==a?null:d(e,t,r,n,null);$o(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(Eo(n)||me(n))return d(t,e=e.get(r)||null,n,a,null);$o(t,n)}return null}function m(a,i,l,s){for(var c=null,u=null,d=i,m=i=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),i=o(y,i,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))&&(i=o(d,i,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),i=o(g,i,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(i(150));if(null==(s=u.call(s)))throw Error(i(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=o(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=o(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=o(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,o,s){var c="object"==typeof o&&null!==o&&o.type===re&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,c=n;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===re){r(e,c.sibling),(n=a(c,o.props.children)).return=e,e=n;break e}}else if(c.elementType===o.type){r(e,c.sibling),(n=a(c,o.props)).ref=Co(e,c,o),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}o.type===re?((n=Vs(o.props.children,e.mode,s,o.key)).return=e,e=n):((s=Bs(o.type,o.key,o.props,null,e.mode,s)).ref=Co(e,n,o),s.return=e,e=s)}return l(e);case te:e:{for(c=o.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(e,n.sibling),(n=a(n,o.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Us(o,e.mode,s)).return=e,e=n}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(r(e,n.sibling),(n=a(n,o)).return=e,e=n):(r(e,n),(n=Ws(o,e.mode,s)).return=e,e=n),l(e);if(Eo(o))return m(e,n,o,s);if(me(o))return g(e,n,o,s);if(u&&$o(e,o),void 0===o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(i(152,e.displayName||e.name||"Component"))}return r(e,n)}}var To=Ao(!0),Oo=Ao(!1),Po={},Fo={current:Po},Ro={current:Po},zo={current:Po};function Lo(e){if(e===Po)throw Error(i(174));return e}function No(e,t){switch(fa(zo,t),fa(Ro,e),fa(Fo,Po),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pa(Fo),fa(Fo,t)}function Io(){pa(Fo),pa(Ro),pa(zo)}function Mo(e){Lo(zo.current);var t=Lo(Fo.current),r=Le(t,e.type);t!==r&&(fa(Ro,e),fa(Fo,r))}function Do(e){Ro.current===e&&(pa(Fo),pa(Ro))}var jo={current:0};function Ho(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 Bo(e,t){return{responder:e,props:t}}var Vo=X.ReactCurrentDispatcher,Wo=X.ReactCurrentBatchConfig,Uo=0,Go=null,qo=null,Ko=null,Yo=!1;function Xo(){throw Error(i(321))}function Qo(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Hn(e[r],t[r]))return!1;return!0}function Zo(e,t,r,n,a,o){if(Uo=o,Go=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Vo.current=null===e||null===e.memoizedState?xi:ki,e=r(n,a),t.expirationTime===Uo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(i(301));o+=1,Ko=qo=null,t.updateQueue=null,Vo.current=Si,e=r(n,a)}while(t.expirationTime===Uo)}if(Vo.current=wi,t=null!==qo&&null!==qo.next,Uo=0,Ko=qo=Go=null,Yo=!1,t)throw Error(i(300));return e}function Jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ko?Go.memoizedState=Ko=e:Ko=Ko.next=e,Ko}function ei(){if(null===qo){var e=Go.alternate;e=null!==e?e.memoizedState:null}else e=qo.next;var t=null===Ko?Go.memoizedState:Ko.next;if(null!==t)Ko=t,qo=e;else{if(null===e)throw Error(i(310));e={memoizedState:(qo=e).memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},null===Ko?Go.memoizedState=Ko=e:Ko=Ko.next=e}return Ko}function ti(e,t){return"function"==typeof t?t(e):t}function ri(e){var t=ei(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=qo,a=n.baseQueue,o=r.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}n.baseQueue=a=o,r.pending=null}if(null!==a){a=a.next,n=n.baseState;var s=l=o=null,c=a;do{var u=c.expirationTime;if(u<Uo){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(l=s=d,o=n):s=s.next=d,u>Go.expirationTime&&(Go.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?o=n:s.next=l,Hn(n,t.memoizedState)||(zi=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ni(e){var t=ei(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);Hn(o,t.memoizedState)||(zi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function ai(e){var t=Jo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e}).dispatch=bi.bind(null,Go,e),[t.memoizedState,e]}function oi(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Go.updateQueue)?(t={lastEffect:null},Go.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 ii(){return ei().memoizedState}function li(e,t,r,n){var a=Jo();Go.effectTag|=e,a.memoizedState=oi(1|t,r,void 0,void 0===n?null:n)}function si(e,t,r,n){var a=ei();n=void 0===n?null:n;var o=void 0;if(null!==qo){var i=qo.memoizedState;if(o=i.destroy,null!==n&&Qo(n,i.deps))return void oi(t,r,o,n)}Go.effectTag|=e,a.memoizedState=oi(1|t,r,o,n)}function ci(e,t){return li(516,4,e,t)}function ui(e,t){return si(516,4,e,t)}function di(e,t){return si(4,2,e,t)}function pi(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 fi(e,t,r){return r=null!=r?r.concat([e]):null,si(4,2,pi.bind(null,t,e),r)}function hi(){}function mi(e,t){return Jo().memoizedState=[e,void 0===t?null:t],e}function gi(e,t){var r=ei();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Qo(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function yi(e,t){var r=ei();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Qo(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function vi(e,t,r){var n=Wa();Ga(98>n?98:n,(function(){e(!0)})),Ga(97<n?97:n,(function(){var n=Wo.suspense;Wo.suspense=void 0===t?null:t;try{e(!1),r()}finally{Wo.suspense=n}}))}function bi(e,t,r){var n=ls(),a=yo.suspense;a={expirationTime:n=ss(n,e,a),suspenseConfig:a,action:r,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Go||null!==o&&o===Go)Yo=!0,a.expirationTime=Uo,Go.expirationTime=Uo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,r);if(a.eagerReducer=o,a.eagerState=l,Hn(l,i))return}catch(e){}cs(e,n)}}var wi={readContext:lo,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useResponder:Xo,useDeferredValue:Xo,useTransition:Xo},xi={readContext:lo,useCallback:mi,useContext:lo,useEffect:ci,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,li(4,2,pi.bind(null,t,e),r)},useLayoutEffect:function(e,t){return li(4,2,e,t)},useMemo:function(e,t){var r=Jo();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Jo();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=bi.bind(null,Go,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Jo().memoizedState=e},useState:ai,useDebugValue:hi,useResponder:Bo,useDeferredValue:function(e,t){var r=ai(e),n=r[0],a=r[1];return ci((function(){var r=Wo.suspense;Wo.suspense=void 0===t?null:t;try{a(e)}finally{Wo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ai(!1),r=t[0];return t=t[1],[mi(vi.bind(null,t,e),[t,e]),r]}},ki={readContext:lo,useCallback:gi,useContext:lo,useEffect:ui,useImperativeHandle:fi,useLayoutEffect:di,useMemo:yi,useReducer:ri,useRef:ii,useState:function(){return ri(ti)},useDebugValue:hi,useResponder:Bo,useDeferredValue:function(e,t){var r=ri(ti),n=r[0],a=r[1];return ui((function(){var r=Wo.suspense;Wo.suspense=void 0===t?null:t;try{a(e)}finally{Wo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ri(ti),r=t[0];return t=t[1],[gi(vi.bind(null,t,e),[t,e]),r]}},Si={readContext:lo,useCallback:gi,useContext:lo,useEffect:ui,useImperativeHandle:fi,useLayoutEffect:di,useMemo:yi,useReducer:ni,useRef:ii,useState:function(){return ni(ti)},useDebugValue:hi,useResponder:Bo,useDeferredValue:function(e,t){var r=ni(ti),n=r[0],a=r[1];return ui((function(){var r=Wo.suspense;Wo.suspense=void 0===t?null:t;try{a(e)}finally{Wo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ni(ti),r=t[0];return t=t[1],[gi(vi.bind(null,t,e),[t,e]),r]}},_i=null,Ei=null,Ci=!1;function $i(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 Ai(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 Ti(e){if(Ci){var t=Ei;if(t){var r=t;if(!Ai(e,t)){if(!(t=_r(r.nextSibling))||!Ai(e,t))return e.effectTag=-1025&e.effectTag|2,Ci=!1,void(_i=e);$i(_i,r)}_i=e,Ei=_r(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ci=!1,_i=e}}function Oi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;_i=e}function Pi(e){if(e!==_i)return!1;if(!Ci)return Oi(e),Ci=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xr(t,e.memoizedProps))for(t=Ei;t;)$i(e,t),t=_r(t.nextSibling);if(Oi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if(r===mr){if(0===t){Ei=_r(e.nextSibling);break e}t--}else r!==hr&&r!==yr&&r!==gr||t++}e=e.nextSibling}Ei=null}}else Ei=_i?_r(e.stateNode.nextSibling):null;return!0}function Fi(){Ei=_i=null,Ci=!1}var Ri=X.ReactCurrentOwner,zi=!1;function Li(e,t,r,n){t.child=null===e?Oo(t,null,r,n):To(t,e.child,r,n)}function Ni(e,t,r,n,a){r=r.render;var o=t.ref;return io(t,a),n=Zo(e,t,r,n,o,a),null===e||zi?(t.effectTag|=1,Li(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ji(e,t,a))}function Ii(e,t,r,n,a,o){if(null===e){var i=r.type;return"function"!=typeof i||js(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Bs(r.type,null,n,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Mi(e,t,i,n,a,o))}return i=e.child,a<o&&(a=i.memoizedProps,(r=null!==(r=r.compare)?r:Vn)(a,n)&&e.ref===t.ref)?Ji(e,t,o):(t.effectTag|=1,(e=Hs(i,n)).ref=t.ref,e.return=t,t.child=e)}function Mi(e,t,r,n,a,o){return null!==e&&Vn(e.memoizedProps,n)&&e.ref===t.ref&&(zi=!1,a<o)?(t.expirationTime=e.expirationTime,Ji(e,t,o)):ji(e,t,r,n,o)}function Di(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function ji(e,t,r,n,a){var o=ba(r)?ya:ma.current;return o=va(t,o),io(t,a),r=Zo(e,t,r,n,o,a),null===e||zi?(t.effectTag|=1,Li(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ji(e,t,a))}function Hi(e,t,r,n,a){if(ba(r)){var o=!0;Sa(t)}else o=!1;if(io(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ko(t,r,n),_o(t,r,n,a),n=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=r.contextType;c="object"==typeof c&&null!==c?lo(c):va(t,c=ba(r)?ya:ma.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==n||s!==c)&&So(t,i,n,c),so=!1;var p=t.memoizedState;i.state=p,mo(t,n,i,a),s=t.memoizedState,l!==n||p!==s||ga.current||so?("function"==typeof u&&(bo(t,r,u,n),s=t.memoizedState),(l=so||xo(t,r,l,n,p,s,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=s),i.props=n,i.state=s,i.context=c,n=l):("function"==typeof i.componentDidMount&&(t.effectTag|=4),n=!1)}else i=t.stateNode,uo(e,t),l=t.memoizedProps,i.props=t.type===t.elementType?l:Za(t.type,l),s=i.context,c="object"==typeof(c=r.contextType)&&null!==c?lo(c):va(t,c=ba(r)?ya:ma.current),(d="function"==typeof(u=r.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==n||s!==c)&&So(t,i,n,c),so=!1,s=t.memoizedState,i.state=s,mo(t,n,i,a),p=t.memoizedState,l!==n||s!==p||ga.current||so?("function"==typeof u&&(bo(t,r,u,n),p=t.memoizedState),(u=so||xo(t,r,l,n,s,p,c))?(d||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,p,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,p,c)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=p),i.props=n,i.state=p,i.context=c,n=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),n=!1);return Bi(e,t,r,n,o,a)}function Bi(e,t,r,n,a,o){Di(e,t);var i=!!(64&t.effectTag);if(!n&&!i)return a&&_a(t,r,!1),Ji(e,t,o);n=t.stateNode,Ri.current=t;var l=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&i?(t.child=To(t,e.child,null,o),t.child=To(t,null,l,o)):Li(e,t,l,o),t.memoizedState=n.state,a&&_a(t,r,!0),t.child}function Vi(e){var t=e.stateNode;t.pendingContext?xa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xa(0,t.context,!1),No(e,t.containerInfo)}var Wi,Ui,Gi,qi,Ki={dehydrated:null,retryTime:0};function Yi(e,t,r){var n,a=t.mode,o=t.pendingProps,i=jo.current,l=!1;if((n=!!(64&t.effectTag))||(n=!!(2&i)&&(null===e||null!==e.memoizedState)),n?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),fa(jo,1&i),null===e){if(void 0!==o.fallback&&Ti(t),l){if(l=o.fallback,(o=Vs(null,a,0,null)).return=t,!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Vs(l,a,r,null)).return=t,o.sibling=r,t.memoizedState=Ki,t.child=o,r}return a=o.children,t.memoizedState=null,t.child=Oo(t,null,a,r)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,l){if(o=o.fallback,(r=Hs(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=Hs(a,o)).return=t,r.sibling=a,r.childExpirationTime=0,t.memoizedState=Ki,t.child=r,a}return r=To(t,e.child,o.children,r),t.memoizedState=null,t.child=r}if(e=e.child,l){if(l=o.fallback,(o=Vs(null,a,0,null)).return=t,o.child=e,null!==e&&(e.return=o),!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Vs(l,a,r,null)).return=t,o.sibling=r,r.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ki,t.child=o,r}return t.memoizedState=null,t.child=To(t,e,o.children,r)}function Xi(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),oo(e.return,t)}function Qi(e,t,r,n,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailExpiration=0,i.tailMode=a,i.lastEffect=o)}function Zi(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(Li(e,t,n.children,r),2&(n=jo.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&&Xi(e,r);else if(19===e.tag)Xi(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(jo,n),2&t.mode)switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(e=r.alternate)&&null===Ho(e)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Qi(t,!1,a,r,o,t.lastEffect);break;case"backwards":for(r=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Ho(e)){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Qi(t,!0,r,null,o,t.lastEffect);break;case"together":Qi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ji(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(i(153));if(null!==t.child){for(r=Hs(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Hs(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 Io(),pa(ga),pa(ma),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!Pi(t)||(t.effectTag|=4),Ui(t),null;case 5:Do(t),r=Lo(zo.current);var o=t.type;if(null!==e&&null!=t.stateNode)Gi(e,t,o,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(i(166));return null}if(e=Lo(Fo.current),Pi(t)){n=t.stateNode,o=t.type;var l=t.memoizedProps;switch(n[$r]=t,n[Ar]=l,o){case"iframe":case"object":case"embed":Gt("load",n);break;case"video":case"audio":for(e=0;e<Ye.length;e++)Gt(Ye[e],n);break;case"source":Gt("error",n);break;case"img":case"image":case"link":Gt("error",n),Gt("load",n);break;case"form":Gt("reset",n),Gt("submit",n);break;case"details":Gt("toggle",n);break;case"input":Se(n,l),Gt("invalid",n),ir(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!l.multiple},Gt("invalid",n),ir(r,"onChange");break;case"textarea":Pe(n,l),Gt("invalid",n),ir(r,"onChange")}for(var s in nr(o,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]):_.hasOwnProperty(s)&&null!=c&&ir(r,s)}switch(o){case"input":we(n),Ce(n,l,!0);break;case"textarea":we(n),Re(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===or&&(e=ze(o)),e===or?"script"===o?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=s.createElement(o,{is:n.is}):(e=s.createElement(o),"select"===o&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,o),e[$r]=t,e[Ar]=n,Wi(e,t,!1,!1),t.stateNode=e,s=ar(o,n),o){case"iframe":case"object":case"embed":Gt("load",e),c=n;break;case"video":case"audio":for(c=0;c<Ye.length;c++)Gt(Ye[c],e);c=n;break;case"source":Gt("error",e),c=n;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),c=n;break;case"form":Gt("reset",e),Gt("submit",e),c=n;break;case"details":Gt("toggle",e),c=n;break;case"input":Se(e,n),c=ke(e,n),Gt("invalid",e),ir(r,"onChange");break;case"option":c=Ae(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},c=a({},n,{value:void 0}),Gt("invalid",e),ir(r,"onChange");break;case"textarea":Pe(e,n),c=Oe(e,n),Gt("invalid",e),ir(r,"onChange");break;default:c=n}nr(o,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"!==o||""!==d)&&De(e,d):"number"==typeof d&&De(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(_.hasOwnProperty(l)?null!=d&&ir(r,l):null!=d&&Q(e,l,d,s))}switch(o){case"input":we(e),Ce(e,n,!1);break;case"textarea":we(e),Re(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(o,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qi(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(i(166));r=Lo(zo.current),Lo(Fo.current),Pi(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(jo),n=t.memoizedState,64&t.effectTag?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Pi(t):(n=null!==(o=e.memoizedState),r||null===o||null!==(o=e.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=o,o.nextEffect=l):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),r&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&jo.current?Hl===Pl&&(Hl=zl):(Hl!==Pl&&Hl!==zl||(Hl=Ll),0!==Gl&&null!==Ml&&(Ks(Ml,jl),Ys(Ml,Gl)))),(r||n)&&(t.effectTag|=4),null);case 4:return Io(),Ui(t),null;case 10:return ao(t),null;case 19:if(pa(jo),null===(n=t.memoizedState))return null;if(o=!!(64&t.effectTag),null===(l=n.rendering)){if(o)el(n,!1);else if(Hl!==Pl||null!==e&&64&e.effectTag)for(l=t.child;null!==l;){if(null!==(e=Ho(l))){for(t.effectTag|=64,el(n,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)l=r,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=l,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,l=e.dependencies,o.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),n=n.sibling;return fa(jo,1&jo.current|2),t.child}l=l.sibling}}else{if(!o)if(null!==(e=Ho(l))){if(t.effectTag|=64,o=!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*Va()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,o=!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=Va()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Va(),r.sibling=null,t=jo.current,fa(jo,o?1&t|2:1&t),r):null}throw Error(i(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(Io(),pa(ga),pa(ma),64&(t=e.effectTag))throw Error(i(285));return e.effectTag=-4097&t|64,e;case 5:return Do(e),null;case 13:return pa(jo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return pa(jo),null;case 4:return Io(),null;case 10:return ao(e),null;default:return null}}function nl(e,t){return{value:e,source:t,stack:ye(t)}}Wi=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}},Ui=function(){},Gi=function(e,t,r,n,o){var i=e.memoizedProps;if(i!==n){var l,s,c=t.stateNode;switch(Lo(Fo.current),e=null,r){case"input":i=ke(c,i),n=ke(c,n),e=[];break;case"option":i=Ae(c,i),n=Ae(c,n),e=[];break;case"select":i=a({},i,{value:void 0}),n=a({},n,{value:void 0}),e=[];break;case"textarea":i=Oe(c,i),n=Oe(c,n),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(c.onclick=lr)}for(l in nr(r,n),r=null,i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l)for(s in c=i[l])c.hasOwnProperty(s)&&(r||(r={}),r[s]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(_.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in n){var u=n[l];if(c=null!=i?i[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&&(_.hasOwnProperty(l)?(null!=u&&ir(o,l),e||c===u||(e=[])):(e=e||[]).push(l,u))}r&&(e=e||[]).push("style",r),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},qi=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var al="function"==typeof WeakSet?WeakSet:Set;function ol(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 il(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Rs(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:Za(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(i(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:Za(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&go(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}go(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&&Lt(r)))))}throw Error(i(163))}function dl(e,t,r){switch("function"==typeof Is&&Is(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;Ga(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var a=t;try{r()}catch(e){Rs(a,e)}}e=e.next}while(e!==n)}))}break;case 1:il(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Rs(e,t)}}(t,r);break;case 5:il(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(i(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(i(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,o=t,l=!1;;){if(!l){l=o.return;e:for(;;){if(null===l)throw Error(i(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===o.tag||6===o.tag){e:for(var s=e,c=o,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=o.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,a=!0,o.child.return=o,o=o.child;continue}}else if(dl(e,o,r),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(l=!1)}o.sibling.return=o.return,o=o.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 o=t.updateQueue;if(t.updateQueue=null,null!==o){for(r[Ar]=n,"input"===e&&"radio"===n.type&&null!=n.name&&_e(r,n),ar(e,a),t=ar(e,n),a=0;a<o.length;a+=2){var l=o[a],s=o[a+1];"style"===l?tr(r,s):"dangerouslySetInnerHTML"===l?Me(r,s):"children"===l?De(r,s):Q(r,l,s,t)}switch(e){case"input":Ee(r,n);break;case"textarea":Fe(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(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lt(t.containerInfo)));case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Kl=Va()),null!==r)e:for(e=r;;){if(5===e.tag)o=e.stateNode,n?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,o.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){(o=e.child.sibling).return=e,e=o;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(i(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=Ls.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=po(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ql||(Ql=!0,Zl=n),ol(e,t)},r}function kl(e,t,r){(r=po(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var a=t.value;r.payload=function(){return ol(e,t),n(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Jl?Jl=new Set([this]):Jl.add(this),ol(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var Sl,_l=Math.ceil,El=X.ReactCurrentDispatcher,Cl=X.ReactCurrentOwner,$l=0,Al=8,Tl=16,Ol=32,Pl=0,Fl=1,Rl=2,zl=3,Ll=4,Nl=5,Il=$l,Ml=null,Dl=null,jl=0,Hl=Pl,Bl=null,Vl=1073741823,Wl=1073741823,Ul=null,Gl=0,ql=!1,Kl=0,Yl=500,Xl=null,Ql=!1,Zl=null,Jl=null,es=!1,ts=null,rs=90,ns=null,as=0,os=null,is=0;function ls(){return(Il&(Tl|Ol))!==$l?1073741821-(Va()/10|0):0!==is?is:is=1073741821-(Va()/10|0)}function ss(e,t,r){if(!(2&(t=t.mode)))return 1073741823;var n=Wa();if(!(4&t))return 99===n?1073741823:1073741822;if((Il&Tl)!==$l)return jl;if(null!==r)e=Qa(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Qa(e,150,100);break;case 97:case 96:e=Qa(e,5e3,250);break;case 95:e=2;break;default:throw Error(i(326))}return null!==Ml&&e===jl&&--e,e}function cs(e,t){if(50<as)throw as=0,os=null,Error(i(185));if(null!==(e=us(e,t))){var r=Wa();1073741823===t?(Il&Al)!==$l&&(Il&(Tl|Ol))===$l?hs(e):(ps(e),Il===$l&&Ya()):ps(e),(4&Il)===$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),Hl===Ll&&Ks(a,jl)),Ys(a,t)),a}function ds(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!qs(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!==Na&&$a(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?Ka(hs.bind(null,e)):qa(n,fs.bind(null,e),{timeout:10*(1073741821-t)-Va()}),e.callbackNode=t}}}function fs(e,t){if(is=0,t)return Xs(e,t=ls()),ps(e),null;var r=ds(e);if(0!==r){if(t=e.callbackNode,(Il&(Tl|Ol))!==$l)throw Error(i(327));if(Os(),e===Ml&&r===jl||ys(e,r),null!==Dl){var n=Il;Il|=Tl;for(var a=bs();;)try{Ss();break}catch(t){vs(e,t)}if(no(),Il=n,El.current=a,Hl===Fl)throw t=Bl,ys(e,r),Ks(e,r),ps(e),t;if(null===Dl)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Hl,Ml=null,n){case Pl:case Fl:throw Error(i(345));case Rl:Xs(e,2<r?2:r);break;case zl:if(Ks(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Cs(a)),1073741823===Vl&&10<(a=Kl+Yl-Va())){if(ql){var o=e.lastPingedTime;if(0===o||o>=r){e.lastPingedTime=r,ys(e,r);break}}if(0!==(o=ds(e))&&o!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=kr($s.bind(null,e),a);break}$s(e);break;case Ll:if(Ks(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Cs(a)),ql&&(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!==Wl?n=10*(1073741821-Wl)-Va():1073741823===Vl?n=0:(n=10*(1073741821-Vl)-5e3,0>(n=(a=Va())-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*_l(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=kr($s.bind(null,e),n);break}$s(e);break;case Nl:if(1073741823!==Vl&&null!==Ul){o=Vl;var l=Ul;if(0>=(n=0|l.busyMinDurationMs)?n=0:(a=0|l.busyDelayMs,n=(o=Va()-(10*(1073741821-o)-(0|l.timeoutMs||5e3)))<=a?0:a+n-o),10<n){Ks(e,r),e.timeoutHandle=kr($s.bind(null,e),n);break}}$s(e);break;default:throw Error(i(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,(Il&(Tl|Ol))!==$l)throw Error(i(327));if(Os(),e===Ml&&t===jl||ys(e,t),null!==Dl){var r=Il;Il|=Tl;for(var n=bs();;)try{ks();break}catch(t){vs(e,t)}if(no(),Il=r,El.current=n,Hl===Fl)throw r=Bl,ys(e,t),Ks(e,t),ps(e),r;if(null!==Dl)throw Error(i(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ml=null,$s(e),ps(e)}return null}function ms(e,t){var r=Il;Il|=1;try{return e(t)}finally{(Il=r)===$l&&Ya()}}function gs(e,t){var r=Il;Il&=-2,Il|=Al;try{return e(t)}finally{(Il=r)===$l&&Ya()}}function ys(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Sr(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:Io(),pa(ga),pa(ma);break;case 5:Do(n);break;case 4:Io();break;case 13:case 19:pa(jo);break;case 10:ao(n)}r=r.return}Ml=e,Dl=Hs(e.current,null),jl=t,Hl=Pl,Bl=null,Wl=Vl=1073741823,Ul=null,Gl=0,ql=!1}function vs(e,t){for(;;){try{if(no(),Vo.current=wi,Yo)for(var r=Go.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Uo=0,Ko=qo=Go=null,Yo=!1,null===Dl||null===Dl.return)return Hl=Fl,Bl=t,Dl=null;e:{var a=e,o=Dl.return,i=Dl,l=t;if(t=jl,i.effectTag|=2048,i.firstEffect=i.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var s=l;if(!(2&i.mode)){var c=i.alternate;c?(i.updateQueue=c.updateQueue,i.memoizedState=c.memoizedState,i.expirationTime=c.expirationTime):(i.updateQueue=null,i.memoizedState=null)}var u=!!(1&jo.current),d=o;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,i.effectTag&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var y=po(1073741823,null);y.tag=2,fo(i,y)}i.expirationTime=1073741823;break e}l=void 0,i=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(i)){l.add(i);var b=zs.bind(null,a,s,i);s.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);l=Error((ge(i.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(i))}Hl!==Nl&&(Hl=Rl),l=nl(l,i),d=o;do{switch(d.tag){case 3:s=l,d.effectTag|=4096,d.expirationTime=t,ho(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,ho(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=wi,null===e?wi:e}function ws(e,t){e<Vl&&2<e&&(Vl=e),null!==t&&e<Wl&&2<e&&(Wl=e,Ul=t)}function xs(e){e>Gl&&(Gl=e)}function ks(){for(;null!==Dl;)Dl=_s(Dl)}function Ss(){for(;null!==Dl&&!Ia();)Dl=_s(Dl)}function _s(e){var t=Sl(e.alternate,e,jl);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,jl),1===jl||1!==Dl.childExpirationTime){for(var r=0,n=Dl.child;null!==n;){var a=n.expirationTime,o=n.childExpirationTime;a>r&&(r=a),o>r&&(r=o),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 Hl===Pl&&(Hl=Nl),null}function Cs(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function $s(e){var t=Wa();return Ga(99,As.bind(null,e,t)),null}function As(e,t){do{Os()}while(null!==ts);if((Il&(Tl|Ol))!==$l)throw Error(i(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(i(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,jl=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,a=r.firstEffect):a=r:a=r.firstEffect,null!==a){var o=Il;Il|=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(i(330));Rs(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(i(330));Rs(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 S=Xl.effectTag;if(36&S&&ul(w,Xl.alternate,Xl),128&S){x=void 0;var _=Xl.ref;if(null!==_){var E=Xl.stateNode;Xl.tag,x=E,"function"==typeof _?_(x):_.current=x}}Xl=Xl.nextEffect}}catch(e){if(null===Xl)throw Error(i(330));Rs(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);Xl=null,Ma(),Il=o}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===os?as++:(as=0,os=e):as=0,"function"==typeof Ns&&Ns(r.stateNode,n),ps(e),Ql)throw Ql=!1,e=Zl,Zl=null,e;return(Il&Al)!==$l||Ya(),null}function Ts(){for(;null!==Xl;){var e=Xl.effectTag;256&e&&ll(Xl.alternate,Xl),!(512&e)||es||(es=!0,qa(97,(function(){return Os(),null}))),Xl=Xl.nextEffect}}function Os(){if(90!==rs){var e=97<rs?97:rs;return rs=90,Ga(e,Ps)}}function Ps(){if(null===ts)return!1;var e=ts;if(ts=null,(Il&(Tl|Ol))!==$l)throw Error(i(331));var t=Il;for(Il|=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(i(330));Rs(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return Il=t,Ya(),!0}function Fs(e,t,r){fo(e,t=xl(e,t=nl(r,t),1073741823)),null!==(e=us(e,1073741823))&&ps(e)}function Rs(e,t){if(3===e.tag)Fs(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Fs(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))){fo(r,e=kl(r,e=nl(t,e),1073741823)),null!==(r=us(r,1073741823))&&ps(r);break}}r=r.return}}function zs(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),Ml===e&&jl===r?Hl===Ll||Hl===zl&&1073741823===Vl&&Va()-Kl<Yl?ys(e,jl):ql=!0:qs(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,ps(e)))}function Ls(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)}Sl=function(e,t,r){var n=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||ga.current)zi=!0;else{if(n<r){switch(zi=!1,t.tag){case 3:Vi(t),Fi();break;case 5:if(Mo(t),4&t.mode&&1!==r&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ba(t.type)&&Sa(t);break;case 4:No(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?Yi(e,t,r):(fa(jo,1&jo.current),null!==(t=Ji(e,t,r))?t.sibling:null);fa(jo,1&jo.current);break;case 19:if(n=t.childExpirationTime>=r,64&e.effectTag){if(n)return Zi(e,t,r);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),fa(jo,jo.current),!n)return null}return Ji(e,t,r)}zi=!1}}else zi=!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),io(t,r),a=Zo(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 o=!0;Sa(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,co(t);var l=n.getDerivedStateFromProps;"function"==typeof l&&bo(t,n,l,e),a.updater=wo,t.stateNode=a,a._reactInternalFiber=t,_o(t,n,e,r),t=Bi(null,t,n,!0,o,r)}else t.tag=0,Li(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,o=t.tag=function(e){if("function"==typeof e)return js(e)?1:0;if(null!=e){if((e=e.$$typeof)===se)return 11;if(e===de)return 14}return 2}(a),e=Za(a,e),o){case 0:t=ji(null,t,a,e,r);break e;case 1:t=Hi(null,t,a,e,r);break e;case 11:t=Ni(null,t,a,e,r);break e;case 14:t=Ii(null,t,a,Za(a.type,e),n,r);break e}throw Error(i(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,ji(e,t,n,a=t.elementType===n?a:Za(n,a),r);case 1:return n=t.type,a=t.pendingProps,Hi(e,t,n,a=t.elementType===n?a:Za(n,a),r);case 3:if(Vi(t),n=t.updateQueue,null===e||null===n)throw Error(i(282));if(n=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,uo(e,t),mo(t,n,null,r),(n=t.memoizedState.element)===a)Fi(),t=Ji(e,t,r);else{if((a=t.stateNode.hydrate)&&(Ei=_r(t.stateNode.containerInfo.firstChild),_i=t,a=Ci=!0),a)for(r=Oo(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Li(e,t,n,r),Fi();t=t.child}return t;case 5:return Mo(t),null===e&&Ti(t),n=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,xr(n,a)?l=null:null!==o&&xr(n,o)&&(t.effectTag|=16),Di(e,t),4&t.mode&&1!==r&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Li(e,t,l,r),t=t.child),t;case 6:return null===e&&Ti(t),null;case 13:return Yi(e,t,r);case 4:return No(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=To(t,null,n,r):Li(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,Ni(e,t,n,a=t.elementType===n?a:Za(n,a),r);case 7:return Li(e,t,t.pendingProps,r),t.child;case 8:case 12:return Li(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,a=t.pendingProps,l=t.memoizedProps,o=a.value;var s=t.type._context;if(fa(Ja,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0==(o=Hn(s,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(s,o):1073741823))){if(l.children===a.children&&!ga.current){t=Ji(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&o){1===s.tag&&((u=po(r,null)).tag=2,fo(s,u)),s.expirationTime<r&&(s.expirationTime=r),null!==(u=s.alternate)&&u.expirationTime<r&&(u.expirationTime=r),oo(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}Li(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=(o=t.pendingProps).children,io(t,r),n=n(a=lo(a,o.unstable_observedBits)),t.effectTag|=1,Li(e,t,n,r),t.child;case 14:return o=Za(a=t.type,t.pendingProps),Ii(e,t,a,o=Za(a.type,o),n,r);case 15:return Mi(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Za(n,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ba(n)?(e=!0,Sa(t)):e=!1,io(t,r),ko(t,n,a),_o(t,n,a,r),Bi(null,t,n,!0,e,r);case 19:return Zi(e,t,r)}throw Error(i(156,t.tag))};var Ns=null,Is=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 js(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hs(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 Bs(e,t,r,n,a,o){var l=2;if(n=e,"function"==typeof e)js(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case re:return Vs(r.children,a,o,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=o,e;case ce:return(e=Ds(13,r,t,a)).type=ce,e.elementType=ce,e.expirationTime=o,e;case ue:return(e=Ds(19,r,t,a)).elementType=ue,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:l=10;break e;case ie: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(i(130,null==e?e:typeof e,""))}return(t=Ds(l,r,t,a)).elementType=e,t.type=n,t.expirationTime=o,t}function Vs(e,t,r,n){return(e=Ds(7,e,n,t)).expirationTime=r,e}function Ws(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 Gs(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 qs(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 Qs(e,t,r,n){var a=t.current,o=ls(),l=yo.suspense;o=ss(o,a,l);e:if(r){t:{if(Ze(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(i(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(i(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=po(o,l)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),fo(a,t),cs(a,o),o}function Zs(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 Gs(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,co(a),e[Tr]=n.current,r&&0!==t&&function(e,t){var r=Qe(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 o=r._reactRootContainer;if(o){var i=o._internalRoot;if("function"==typeof a){var l=a;a=function(){var e=Zs(i);l.call(e)}}Qs(t,i,e,a)}else{if(o=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),i=o._internalRoot,"function"==typeof a){var s=a;a=function(){var e=Zs(i);s.call(e)}}gs((function(){Qs(t,i,e,a)}))}return Zs(i)}function ac(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!rc(t))throw Error(i(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){Qs(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Tr]=null}))},ht=function(e){if(13===e.tag){var t=Qa(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=Rr(n);if(!a)throw Error(i(90));xe(n),Ee(n,a)}}}break;case"textarea":Fe(e,r);break;case"select":null!=(t=r.value)&&Te(e,!!r.multiple,t,!1)}},z=ms,L=function(e,t,r,n,a){var o=Il;Il|=4;try{return Ga(98,e.bind(null,t,r,n,a))}finally{(Il=o)===$l&&Ya()}},N=function(){(Il&(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())},I=function(e,t){var r=Il;Il|=2;try{return e(t)}finally{(Il=r)===$l&&Ya()}};var oc={Events:[Pr,Fr,Rr,C,S,jr,function(e){nt(e,Dr)},F,R,Xt,it,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);Ns=function(e){try{t.onCommitFiberRoot(r,e,void 0,!(64&~e.current.effectTag))}catch(e){}},Is=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=oc,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(i(188));throw Error(i(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if((Il&(Tl|Ol))!==$l)throw Error(i(187));var r=Il;Il|=1;try{return Ga(99,e.bind(null,t))}finally{Il=r,Ya()}},t.hydrate=function(e,t,r){if(!rc(t))throw Error(i(200));return nc(null,e,t,!0,r)},t.render=function(e,t,r){if(!rc(t))throw Error(i(200));return nc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!rc(e))throw Error(i(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(i(200));if(null==e||void 0===e._reactInternalFiber)throw Error(i(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)},115:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var l,s,c,u;if(Array.isArray(e)){if((l=e.length)!=i.length)return!1;for(s=l;0!=s--;)if(!o(e[s],i[s]))return!1;return!0}if(r&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!i.has(s.value[0]))return!1;for(u=e.entries();!(s=u.next()).done;)if(!o(s.value[1],i.get(s.value[0])))return!1;return!0}if(n&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!i.has(s.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((l=e.length)!=i.length)return!1;for(s=l;0!=s--;)if(e[s]!==i[s])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(s=l;0!=s--;)if(!Object.prototype.hasOwnProperty.call(i,c[s]))return!1;if(t&&e instanceof Element)return!1;for(s=l;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!o(e[c[s]],i[c[s]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},648:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbortedDeferredError:()=>Y,Await:()=>ar,BrowserRouter:()=>Dr,Form:()=>Gr,HashRouter:()=>jr,Link:()=>Wr,MemoryRouter:()=>Zt,NavLink:()=>Ur,Navigate:()=>Jt,NavigationType:()=>n,Outlet:()=>er,Route:()=>tr,Router:()=>rr,RouterProvider:()=>Nr,Routes:()=>nr,ScrollRestoration:()=>qr,UNSAFE_DataRouterContext:()=>at,UNSAFE_DataRouterStateContext:()=>ot,UNSAFE_ErrorResponseImpl:()=>re,UNSAFE_FetchersContext:()=>Or,UNSAFE_LocationContext:()=>st,UNSAFE_NavigationContext:()=>lt,UNSAFE_RouteContext:()=>ct,UNSAFE_ViewTransitionContext:()=>Tr,UNSAFE_useRouteId:()=>Lt,UNSAFE_useScrollRestoration:()=>cn,createBrowserRouter:()=>Er,createHashRouter:()=>Cr,createMemoryRouter:()=>pr,createPath:()=>m,createRoutesFromChildren:()=>cr,createRoutesFromElements:()=>cr,createSearchParams:()=>vr,defer:()=>Z,generatePath:()=>L,isRouteErrorResponse:()=>ne,json:()=>K,matchPath:()=>N,matchRoutes:()=>x,parsePath:()=>g,redirect:()=>J,redirectDocument:()=>ee,renderMatches:()=>ur,replace:()=>te,resolvePath:()=>D,unstable_HistoryRouter:()=>Hr,unstable_usePrompt:()=>dn,useActionData:()=>Ht,useAsyncError:()=>Wt,useAsyncValue:()=>Vt,useBeforeUnload:()=>un,useBlocker:()=>Gt,useFetcher:()=>an,useFetchers:()=>on,useFormAction:()=>nn,useHref:()=>dt,useInRouterContext:()=>pt,useLinkClickHandler:()=>Zr,useLoaderData:()=>Dt,useLocation:()=>ft,useMatch:()=>mt,useMatches:()=>Mt,useNavigate:()=>yt,useNavigation:()=>Nt,useNavigationType:()=>ht,useOutlet:()=>wt,useOutletContext:()=>bt,useParams:()=>xt,useResolvedPath:()=>kt,useRevalidator:()=>It,useRouteError:()=>Bt,useRouteLoaderData:()=>jt,useRoutes:()=>St,useSearchParams:()=>Jr,useSubmit:()=>rn,useViewTransitionState:()=>pn});var n,a=r(730),o=r(342);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));const l="popstate";function s(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map(((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let i=c(null==a?t.length-1:a),l=n.Pop,s=null;function c(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[i]}function d(e,r,n){void 0===r&&(r=null);let a=h(t?u().pathname:"/",e,r,n);return p("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function f(e){return"string"==typeof e?e:m(e)}return{get index(){return i},get action(){return l},get location(){return u()},createHref:f,createURL:e=>new URL(f(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){l=n.Push;let a=d(e,r);i+=1,t.splice(i,t.length,a),o&&s&&s({action:l,location:a,delta:1})},replace(e,r){l=n.Replace;let a=d(e,r);t[i]=a,o&&s&&s({action:l,location:a,delta:0})},go(e){l=n.Pop;let r=c(i+e),a=t[r];i=r,s&&s({action:l,location:a,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),y((function(e,t){let{pathname:r,search:n,hash:a}=e.location;return h("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:m(t)}),null,e)}function u(e){return void 0===e&&(e={}),y((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=g(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),h("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:m(t))}),(function(e,t){p("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,r,n){return void 0===r&&(r=null),i({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?g(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function g(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function y(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:s=!1}=a,c=o.history,u=n.Pop,p=null,g=y();function y(){return(c.state||{idx:null}).idx}function v(){u=n.Pop;let e=y(),t=null==e?null:e-g;g=e,p&&p({action:u,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:m(e);return r=r.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==g&&(g=0,c.replaceState(i({},c.state,{idx:g}),""));let w={get action(){return u},get location(){return e(o,c)},listen(e){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(l,v),p=e,()=>{o.removeEventListener(l,v),p=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u=n.Push;let a=h(w.location,e,t);r&&r(a,e),g=y()+1;let i=f(a,g),l=w.createHref(a);try{c.pushState(i,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(l)}s&&p&&p({action:u,location:w.location,delta:1})},replace:function(e,t){u=n.Replace;let a=h(w.location,e,t);r&&r(a,e),g=y();let o=f(a,g),i=w.createHref(a);c.replaceState(o,"",i),s&&p&&p({action:u,location:w.location,delta:0})},go:e=>c.go(e)};return w}var v;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={}));const b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map(((e,a)=>{let o=[...r,String(a)],l="string"==typeof e.id?e.id:o.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!n[l],'Found a route id collision on id "'+l+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=i({},e,t(e),{id:l});return n[l]=r,r}{let r=i({},e,t(e),{id:l,children:void 0});return n[l]=r,e.children&&(r.children=w(e.children,t,o,n)),r}}))}function x(e,t,r){return void 0===r&&(r="/"),k(e,t,r,!1)}function k(e,t,r,n){let a=M(("string"==typeof t?g(t):t).pathname||"/",r);if(null==a)return null;let o=_(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=I(a);i=z(o[e],t,n)}return i}function S(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function _(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(d(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let l=W([n,i.relativePath]),s=r.concat(i);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),_(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:R(l,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of E(e.path))a(e,t,r);else a(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=E(n.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const C=/^:[\w-]+$/,$=3,A=2,T=1,O=10,P=-2,F=e=>"*"===e;function R(e,t){let r=e.split("/"),n=r.length;return r.some(F)&&(n+=P),t&&(n+=A),r.filter((e=>!F(e))).reduce(((e,t)=>e+(C.test(t)?$:""===t?T:O)),n)}function z(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,c="/"===o?t:t.slice(o.length)||"/",u=N({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},c),d=l.route;if(!u&&s&&r&&!n[n.length-1].route.index&&(u=N({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!u)return null;Object.assign(a,u.params),i.push({params:a,pathname:W([o,u.pathname]),pathnameBase:U(W([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=W([o,u.pathnameBase]))}return i}function L(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(p(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map(((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];return d("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),p("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[r];return e[n]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function D(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?g(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:G(n),hash:q(a)}}function j(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function H(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function B(e,t){let r=H(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function V(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=g(e):(a=i({},e),d(!a.pathname||!a.pathname.includes("?"),j("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),j("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),j("#","search","hash",a)));let o,l=""===e||""===a.pathname,s=l?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=D(a,o),u=s&&"/"!==s&&s.endsWith("/"),p=(l||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!u&&!p||(c.pathname+="/"),c}const W=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),G=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",K=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),i({},r,{headers:n}))};class Y extends Error{}class X{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],d(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,t)=>r=t)),this.controller=new AbortController;let n=()=>r(new Y("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})}),{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(r,e,void 0,t)),(t=>this.onSettle(r,e,t)));return r.catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof Y)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach((r=>r(e,t)))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t))),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise((t=>{this.subscribe((n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return d(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:Q(n)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Q(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const Z=function(e,t){return void 0===t&&(t={}),new X(e,"number"==typeof t?{status:t}:t)},J=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,i({},r,{headers:n}))},ee=(e,t)=>{let r=J(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},te=(e,t)=>{let r=J(e,t);return r.headers.set("X-Remix-Replace","true"),r};class re{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ne(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const ae=["post","put","patch","delete"],oe=new Set(ae),ie=["get",...ae],le=new Set(ie),se=new Set([301,302,303,307,308]),ce=new Set([307,308]),ue={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},de={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},fe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,he=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),me="remix-router-transitions";function ge(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,a=!r;let o;if(d(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=he;let l,s,c,u={},f=w(e.routes,o,void 0,u),m=e.basename||"/",g=e.dataStrategy||Ce,y=e.patchRoutesOnNavigation,_=i({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),E=null,C=new Set,$=null,A=null,T=null,O=null!=e.hydrationData,P=x(f,e.history.location,m),F=null;if(null==P&&!y){let t=Me(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Ie(f);P=r,F={[n.id]:t}}if(P&&!e.hydrationData&&ct(P,f,e.history.location.pathname).active&&(P=null),P)if(P.some((e=>e.route.lazy)))s=!1;else if(P.some((e=>e.route.loader)))if(_.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=P.findIndex((e=>void 0!==r[e.route.id]));s=P.slice(0,e+1).every((e=>!xe(e.route,t,r)))}else s=P.every((e=>!xe(e.route,t,r)))}else s=null!=e.hydrationData;else s=!0;else if(s=!1,P=[],_.v7_partialHydration){let t=ct(null,f,e.history.location.pathname);t.active&&t.matches&&(P=t.matches)}let R,z,L={historyAction:e.history.action,location:e.history.location,matches:P,initialized:s,navigation:ue,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||F,fetchers:new Map,blockers:new Map},N=n.Pop,I=!1,D=!1,j=new Map,H=null,B=!1,V=!1,W=[],U=new Set,G=new Map,q=0,K=-1,Y=new Map,X=new Set,Q=new Map,Z=new Map,J=new Set,ee=new Map,te=new Map;function re(e,t){void 0===t&&(t={}),L=i({},L,e);let r=[],n=[];_.v7_fetcherPersist&&L.fetchers.forEach(((e,t)=>{"idle"===e.state&&(J.has(t)?n.push(t):r.push(t))})),[...C].forEach((e=>e(L,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),_.v7_fetcherPersist&&(r.forEach((e=>L.fetchers.delete(e))),n.forEach((e=>Pe(e))))}function ae(t,r,a){var o,s;let c,{flushSync:u}=void 0===a?{}:a,d=null!=L.actionData&&null!=L.navigation.formMethod&&qe(L.navigation.formMethod)&&"loading"===L.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);c=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?L.actionData:null;let p=r.loaderData?ze(L.loaderData,r.loaderData,r.matches||[],r.errors):L.loaderData,h=L.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,pe))));let m,g=!0===I||null!=L.navigation.formMethod&&qe(L.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(l&&(f=l,l=void 0),B||N===n.Pop||(N===n.Push?e.history.push(t,t.state):N===n.Replace&&e.history.replace(t,t.state)),N===n.Pop){let e=j.get(L.location.pathname);e&&e.has(t.pathname)?m={currentLocation:L.location,nextLocation:t}:j.has(t.pathname)&&(m={currentLocation:t,nextLocation:L.location})}else if(D){let e=j.get(L.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),j.set(L.location.pathname,e)),m={currentLocation:L.location,nextLocation:t}}re(i({},r,{actionData:c,loaderData:p,historyAction:N,location:t,initialized:!0,navigation:ue,revalidation:"idle",restoreScrollPosition:st(t,r.matches||L.matches),preventScrollReset:g,blockers:h}),{viewTransitionOpts:m,flushSync:!0===u}),N=n.Pop,I=!1,D=!1,B=!1,V=!1,W=[]}async function oe(t,r,a){R&&R.abort(),R=null,N=t,B=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if($&&T){let r=lt(e,t);$[r]=T()}}(L.location,L.matches),I=!0===(a&&a.preventScrollReset),D=!0===(a&&a.enableViewTransition);let o=l||f,s=a&&a.overrideNavigation,c=x(o,r,m),u=!0===(a&&a.flushSync),d=ct(c,o,r.pathname);if(d.active&&d.matches&&(c=d.matches),!c){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return void ae(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:u})}if(L.initialized&&!V&&(p=L.location,h=r,p.pathname===h.pathname&&p.search===h.search&&(""===p.hash?""!==h.hash:p.hash===h.hash||""!==h.hash))&&!(a&&a.submission&&qe(a.submission.formMethod)))return void ae(r,{matches:c},{flushSync:u});var p,h;R=new AbortController;let g,y=Oe(e.history,r,R.signal,a&&a.submission);if(a&&a.pendingError)g=[Ne(c).route.id,{type:v.error,error:a.pendingError}];else if(a&&a.submission&&qe(a.submission.formMethod)){let t=await async function(e,t,r,a,o,i){void 0===i&&(i={}),be();let l,s=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,r);if(re({navigation:s},{flushSync:!0===i.flushSync}),o){let r=await ut(a,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=Ne(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:v.error,error:r.error}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=ot(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:v.error,error:r}]}}a=r.matches}let c=Ze(a,t);if(c.route.action||c.route.lazy){if(l=(await se("action",L,e,[c],a,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:v.error,error:Me(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(We(l)){let t;return t=i&&null!=i.replace?i.replace:Te(l.response.headers.get("Location"),new URL(e.url),m)===L.location.pathname+L.location.search,await le(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(Be(l))throw Me(400,{type:"defer-action"});if(Ve(l)){let e=Ne(a,c.route.id);return!0!==(i&&i.replace)&&(N=n.Push),{matches:a,pendingActionResult:[e.route.id,l]}}return{matches:a,pendingActionResult:[c.route.id,l]}}(y,r,a.submission,c,d.active,{replace:a.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(Ve(n)&&ne(n.error)&&404===n.error.status)return R=null,void ae(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}c=t.matches||c,g=t.pendingActionResult,s=et(r,a.submission),u=!1,d.active=!1,y=Oe(e.history,y.url,y.signal)}let{shortCircuited:b,matches:w,loaderData:k,errors:S}=await async function(t,r,n,a,o,s,c,u,d,p,h){let g=o||et(r,s),y=s||c||Je(g),v=!(B||_.v7_partialHydration&&d);if(a){if(v){let e=ie(h);re(i({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await ut(n,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ne(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}n=e.matches}let b=l||f,[w,x]=we(e.history,L,n,y,r,_.v7_partialHydration&&!0===d,_.v7_skipActionErrorRevalidation,V,W,U,J,Q,X,b,m,h);if(it((e=>!(n&&n.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),K=++q,0===w.length&&0===x.length){let e=Ue();return ae(r,i({matches:n,loaderData:{},errors:h&&Ve(h[1])?{[h[0]]:h[1].error}:null},Le(h),e?{fetchers:new Map(L.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(v){let e={};if(!a){e.navigation=g;let t=ie(h);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=L.fetchers.get(e.key),r=tt(void 0,t?t.data:void 0);L.fetchers.set(e.key,r)})),new Map(L.fetchers)}(x)),re(e,{flushSync:p})}x.forEach((e=>{Fe(e.key),e.controller&&G.set(e.key,e.controller)}));let k=()=>x.forEach((e=>Fe(e.key)));R&&R.signal.addEventListener("abort",k);let{loaderResults:S,fetcherResults:E}=await ge(L,n,w,x,t);if(t.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",k),x.forEach((e=>G.delete(e.key)));let C=De(S);if(C)return await le(t,C.result,!0,{replace:u}),{shortCircuited:!0};if(C=De(E),C)return X.add(C.key),await le(t,C.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:$,errors:A}=Re(L,n,S,h,x,E,ee);ee.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&ee.delete(t)}))})),_.v7_partialHydration&&d&&L.errors&&(A=i({},L.errors,A));let T=Ue(),O=Ge(K),P=T||O||x.length>0;return i({matches:n,loaderData:$,errors:A},P?{fetchers:new Map(L.fetchers)}:{})}(y,r,c,d.active,s,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,u,g);b||(R=null,ae(r,i({matches:w||c},Le(g),{loaderData:k,errors:S})))}function ie(e){return e&&!Ve(e[1])?{[e[0]]:e[1].data}:L.actionData?0===Object.keys(L.actionData).length?null:L.actionData:void 0}async function le(a,o,l,s){let{submission:c,fetcherSubmission:u,preventScrollReset:p,replace:f}=void 0===s?{}:s;o.response.headers.has("X-Remix-Revalidate")&&(V=!0);let g=o.response.headers.get("Location");d(g,"Expected a Location header on the redirect Response"),g=Te(g,new URL(a.url),m);let y=h(L.location,g,{_isRedirect:!0});if(r){let r=!1;if(o.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(fe.test(g)){const n=e.history.createURL(g);r=n.origin!==t.location.origin||null==M(n.pathname,m)}if(r)return void(f?t.location.replace(g):t.location.assign(g))}R=null;let v=!0===f||o.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:b,formAction:w,formEncType:x}=L.navigation;!c&&!u&&b&&w&&x&&(c=Je(L.navigation));let k=c||u;if(ce.has(o.response.status)&&k&&qe(k.formMethod))await oe(v,y,{submission:i({},k,{formAction:g}),preventScrollReset:p||I,enableViewTransition:l?D:void 0});else{let e=et(y,c);await oe(v,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:p||I,enableViewTransition:l?D:void 0})}}async function se(e,t,r,n,a,l){let s,c={};try{s=await async function(e,t,r,n,a,o,l,s,c,u){let f=o.map((e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];d(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;p(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||b.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,i({},t(a),{lazy:void 0}))}(e.route,c,s):void 0)),h=o.map(((e,r)=>{let o=f[r],l=a.some((t=>t.route.id===e.route.id));return i({},e,{shouldLoad:l,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(l=!0),l?async function(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise(((e,t)=>i=t));l=()=>i(),t.signal.addEventListener("abort",l);let c=a=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]),u=(async()=>{try{return{type:"data",result:await(a?a((e=>c(e))):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch((t=>{e=t})),n]);if(void 0!==e)throw e;i=t}else{if(await n,a=r.route[e],!a){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Me(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:v.data,result:void 0}}i=await s(a)}else{if(!a){let e=new URL(t.url);throw Me(404,{pathname:e.pathname+e.search})}i=await s(a)}d(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:v.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}(t,n,e,o,r,u):Promise.resolve({type:v.data,result:void 0}))})})),m=await e({matches:h,request:n,params:o[0].params,fetcherKey:l,context:u});try{await Promise.all(f)}catch(e){}return m}(g,e,0,r,n,a,l,u,o)}catch(e){return n.forEach((t=>{c[t.route.id]={type:v.error,error:e}})),c}for(let[e,t]of Object.entries(s))if(He(t)){let n=t.result;c[e]={type:v.redirect,response:Ae(n,r,e,a,m,_.v7_relativeSplatPath)}}else c[e]=await $e(t);return c}async function ge(t,r,n,a,o){let i=t.matches,l=se("loader",0,o,n,r,null),s=Promise.all(a.map((async t=>{if(t.matches&&t.match&&t.controller){let r=(await se("loader",0,Oe(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:r}}return Promise.resolve({[t.key]:{type:v.error,error:Me(404,{pathname:t.path})}})}))),c=await l,u=(await s).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([Ke(r,c,o.signal,i,t.loaderData),Ye(r,u,a)]),{loaderResults:c,fetcherResults:u}}function be(){V=!0,W.push(...it()),Q.forEach(((e,t)=>{G.has(t)&&U.add(t),Fe(t)}))}function ke(e,t,r){void 0===r&&(r={}),L.fetchers.set(e,t),re({fetchers:new Map(L.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Se(e,t,r,n){void 0===n&&(n={});let a=Ne(L.matches,t);Pe(e),re({errors:{[a.route.id]:r},fetchers:new Map(L.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ee(e){return _.v7_fetcherPersist&&(Z.set(e,(Z.get(e)||0)+1),J.has(e)&&J.delete(e)),L.fetchers.get(e)||de}function Pe(e){let t=L.fetchers.get(e);!G.has(e)||t&&"loading"===t.state&&Y.has(e)||Fe(e),Q.delete(e),Y.delete(e),X.delete(e),J.delete(e),U.delete(e),L.fetchers.delete(e)}function Fe(e){let t=G.get(e);t&&(t.abort(),G.delete(e))}function je(e){for(let t of e){let e=rt(Ee(t).data);L.fetchers.set(t,e)}}function Ue(){let e=[],t=!1;for(let r of X){let n=L.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return je(e),t}function Ge(e){let t=[];for(let[r,n]of Y)if(n<e){let e=L.fetchers.get(r);d(e,"Expected fetcher: "+r),"loading"===e.state&&(Fe(r),Y.delete(r),t.push(r))}return je(t),t.length>0}function Qe(e){L.blockers.delete(e),te.delete(e)}function nt(e,t){let r=L.blockers.get(e)||pe;d("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(L.blockers);n.set(e,t),re({blockers:n})}function at(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===te.size)return;te.size>1&&p(!1,"A router only supports one blocker at a time");let a=Array.from(te.entries()),[o,i]=a[a.length-1],l=L.blockers.get(o);return l&&"proceeding"===l.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function ot(e){let t=Me(404,{pathname:e}),r=l||f,{matches:n,route:a}=Ie(r);return it(),{notFoundMatches:n,route:a,error:t}}function it(e){let t=[];return ee.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),ee.delete(n))})),t}function lt(e,t){return A&&A(e,t.map((e=>S(e,L.loaderData))))||e.key}function st(e,t){if($){let r=lt(e,t),n=$[r];if("number"==typeof n)return n}return null}function ct(e,t,r){if(y){if(!e)return{active:!0,matches:k(t,r,m,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:k(t,r,m,!0)}}return{active:!1,matches:null}}async function ut(e,t,r){if(!y)return{type:"success",matches:e};let n=e;for(;;){let e=null==l,a=l||f,i=u;try{await y({path:t,matches:n,patch:(e,t)=>{r.aborted||_e(e,t,a,i,o)}})}catch(e){return{type:"error",error:e,partialMatches:n}}finally{e&&!r.aborted&&(f=[...f])}if(r.aborted)return{type:"aborted"};let s=x(a,t,m);if(s)return{type:"success",matches:s};let c=k(a,t,m,!0);if(!c||n.length===c.length&&n.every(((e,t)=>e.route.id===c[t].route.id)))return{type:"success",matches:null};n=c}}return c={get basename(){return m},get future(){return _},get state(){return L},get routes(){return f},get window(){return t},initialize:function(){if(E=e.history.listen((t=>{let{action:r,location:n,delta:a}=t;if(z)return z(),void(z=void 0);p(0===te.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=at({currentLocation:L.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise((e=>{z=e}));return e.history.go(-1*a),void nt(o,{state:"blocked",location:n,proceed(){nt(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(a)))},reset(){let e=new Map(L.blockers);e.set(o,pe),re({blockers:e})}})}return oe(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(me);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,j);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(me,JSON.stringify(r))}catch(e){p(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,j);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return L.initialized||oe(n.Pop,L.location,{initialHydration:!0}),c},subscribe:function(e){return C.add(e),()=>C.delete(e)},enableScrollRestoration:function(e,t,r){if($=e,T=t,A=r||null,!O&&L.navigation===ue){O=!0;let e=st(L.location,L.matches);null!=e&&re({restoreScrollPosition:e})}return()=>{$=null,T=null,A=null}},navigate:async function t(r,a){if("number"==typeof r)return void e.history.go(r);let o=ye(L.location,L.matches,m,_.v7_prependBasename,r,_.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:l,submission:s,error:c}=ve(_.v7_normalizeFormMethod,!1,o,a),u=L.location,d=h(L.location,l,a&&a.state);d=i({},d,e.history.encodeLocation(d));let p=a&&null!=a.replace?a.replace:void 0,f=n.Push;!0===p?f=n.Replace:!1===p||null!=s&&qe(s.formMethod)&&s.formAction===L.location.pathname+L.location.search&&(f=n.Replace);let g=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,y=!0===(a&&a.flushSync),v=at({currentLocation:u,nextLocation:d,historyAction:f});if(!v)return await oe(f,d,{submission:s,pendingError:c,preventScrollReset:g,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:y});nt(v,{state:"blocked",location:d,proceed(){nt(v,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,a)},reset(){let e=new Map(L.blockers);e.set(v,pe),re({blockers:e})}})},fetch:function(t,r,n,o){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Fe(t);let i=!0===(o&&o.flushSync),s=l||f,c=ye(L.location,L.matches,m,_.v7_prependBasename,n,_.v7_relativeSplatPath,r,null==o?void 0:o.relative),u=x(s,c,m),p=ct(u,s,c);if(p.active&&p.matches&&(u=p.matches),!u)return void Se(t,r,Me(404,{pathname:c}),{flushSync:i});let{path:h,submission:g,error:y}=ve(_.v7_normalizeFormMethod,!0,c,o);if(y)return void Se(t,r,y,{flushSync:i});let v=Ze(u,h),b=!0===(o&&o.preventScrollReset);g&&qe(g.formMethod)?async function(t,r,n,a,o,i,s,c,u){function p(e){if(!e.route.action&&!e.route.lazy){let e=Me(405,{method:u.formMethod,pathname:n,routeId:r});return Se(t,r,e,{flushSync:s}),!0}return!1}if(be(),Q.delete(t),!i&&p(a))return;let h=L.fetchers.get(t);ke(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,h),{flushSync:s});let g=new AbortController,y=Oe(e.history,n,g.signal,u);if(i){let e=await ut(o,n,y.signal);if("aborted"===e.type)return;if("error"===e.type)return void Se(t,r,e.error,{flushSync:s});if(!e.matches)return void Se(t,r,Me(404,{pathname:n}),{flushSync:s});if(p(a=Ze(o=e.matches,n)))return}G.set(t,g);let v=q,b=(await se("action",0,y,[a],o,t))[a.route.id];if(y.signal.aborted)return void(G.get(t)===g&&G.delete(t));if(_.v7_fetcherPersist&&J.has(t)){if(We(b)||Ve(b))return void ke(t,rt(void 0))}else{if(We(b))return G.delete(t),K>v?void ke(t,rt(void 0)):(X.add(t),ke(t,tt(u)),le(y,b,!1,{fetcherSubmission:u,preventScrollReset:c}));if(Ve(b))return void Se(t,r,b.error)}if(Be(b))throw Me(400,{type:"defer-action"});let w=L.navigation.location||L.location,k=Oe(e.history,w,g.signal),S=l||f,E="idle"!==L.navigation.state?x(S,L.navigation.location,m):L.matches;d(E,"Didn't find any matches after fetcher action");let C=++q;Y.set(t,C);let $=tt(u,b.data);L.fetchers.set(t,$);let[A,T]=we(e.history,L,E,u,w,!1,_.v7_skipActionErrorRevalidation,V,W,U,J,Q,X,S,m,[a.route.id,b]);T.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=L.fetchers.get(t),n=tt(void 0,r?r.data:void 0);L.fetchers.set(t,n),Fe(t),e.controller&&G.set(t,e.controller)})),re({fetchers:new Map(L.fetchers)});let O=()=>T.forEach((e=>Fe(e.key)));g.signal.addEventListener("abort",O);let{loaderResults:P,fetcherResults:F}=await ge(L,E,A,T,k);if(g.signal.aborted)return;g.signal.removeEventListener("abort",O),Y.delete(t),G.delete(t),T.forEach((e=>G.delete(e.key)));let z=De(P);if(z)return le(k,z.result,!1,{preventScrollReset:c});if(z=De(F),z)return X.add(z.key),le(k,z.result,!1,{preventScrollReset:c});let{loaderData:I,errors:M}=Re(L,E,P,void 0,T,F,ee);if(L.fetchers.has(t)){let e=rt(b.data);L.fetchers.set(t,e)}Ge(C),"loading"===L.navigation.state&&C>K?(d(N,"Expected pending action"),R&&R.abort(),ae(L.navigation.location,{matches:E,loaderData:I,errors:M,fetchers:new Map(L.fetchers)})):(re({errors:M,loaderData:ze(L.loaderData,I,E,M),fetchers:new Map(L.fetchers)}),V=!1)}(t,r,h,v,u,p.active,i,b,g):(Q.set(t,{routeId:r,path:h}),async function(t,r,n,a,o,i,l,s,c){let u=L.fetchers.get(t);ke(t,tt(c,u?u.data:void 0),{flushSync:l});let p=new AbortController,f=Oe(e.history,n,p.signal);if(i){let e=await ut(o,n,f.signal);if("aborted"===e.type)return;if("error"===e.type)return void Se(t,r,e.error,{flushSync:l});if(!e.matches)return void Se(t,r,Me(404,{pathname:n}),{flushSync:l});a=Ze(o=e.matches,n)}G.set(t,p);let h=q,m=(await se("loader",0,f,[a],o,t))[a.route.id];if(Be(m)&&(m=await Xe(m,f.signal,!0)||m),G.get(t)===p&&G.delete(t),!f.signal.aborted){if(!J.has(t))return We(m)?K>h?void ke(t,rt(void 0)):(X.add(t),void await le(f,m,!1,{preventScrollReset:s})):void(Ve(m)?Se(t,r,m.error):(d(!Be(m),"Unhandled fetcher deferred data"),ke(t,rt(m.data))));ke(t,rt(void 0))}}(t,r,h,v,u,p.active,i,b,g))},revalidate:function(){be(),re({revalidation:"loading"}),"submitting"!==L.navigation.state&&("idle"!==L.navigation.state?oe(N||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation,enableViewTransition:!0===D}):oe(L.historyAction,L.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ee,deleteFetcher:function(e){if(_.v7_fetcherPersist){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),J.add(e)):Z.set(e,t)}else Pe(e);re({fetchers:new Map(L.fetchers)})},dispose:function(){E&&E(),H&&H(),C.clear(),R&&R.abort(),L.fetchers.forEach(((e,t)=>Pe(t))),L.blockers.forEach(((e,t)=>Qe(t)))},getBlocker:function(e,t){let r=L.blockers.get(e)||pe;return te.get(e)!==t&&te.set(e,t),r},deleteBlocker:Qe,patchRoutes:function(e,t){let r=null==l;_e(e,t,l||f,u,o),r&&(f=[...f],re({}))},_internalFetchControllers:G,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){u={},l=w(e,o,void 0,u)}},c}function ye(e,t,r,n,a,o,i,l){let s,c;if(i){s=[];for(let e of t)if(s.push(e),e.route.id===i){c=e;break}}else s=t,c=t[t.length-1];let u=V(a||".",B(s,o),M(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(u.search=e.search,u.hash=e.hash),(null==a||""===a||"."===a)&&c){let e=Qe(u.search);if(c.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let r=e.toString();u.search=r?"?"+r:""}}return n&&"/"!==r&&(u.pathname="/"===u.pathname?r:W([r,u.pathname])),m(u)}function ve(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!le.has(a.toLowerCase())))return{path:r,error:Me(405,{method:n.formMethod})};var a;let o,i,l=()=>({path:r,error:Me(400,{type:"invalid-body"})}),s=n.formMethod||"get",c=e?s.toUpperCase():s.toLowerCase(),u=je(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!qe(c))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:c,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!qe(c))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:c,formAction:u,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=Pe(n.formData),i=n.formData;else if(n.body instanceof FormData)o=Pe(n.body),i=n.body;else if(n.body instanceof URLSearchParams)o=n.body,i=Fe(o);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=Fe(o)}catch(e){return l()}let p={formMethod:c,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(qe(p.formMethod))return{path:r,submission:p};let f=g(r);return t&&f.search&&Qe(f.search)&&o.append("index",""),f.search="?"+o,{path:m(f),submission:p}}function be(e,t,r){void 0===r&&(r=!1);let n=e.findIndex((e=>e.route.id===t));return n>=0?e.slice(0,r?n+1:n):e}function we(e,t,r,n,a,o,l,s,c,u,d,p,f,h,m,g){let y=g?Ve(g[1])?g[1].error:g[1].data:void 0,v=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=be(r,Object.keys(t.errors)[0],!0):g&&Ve(g[1])&&(w=be(r,g[0]));let k=g?g[1].statusCode:void 0,S=l&&k&&k>=400,_=w.filter(((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return xe(a,t.loaderData,t.errors);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||c.some((t=>t===e.route.id)))return!0;let l=t.matches[r],u=e;return Se(e,i({currentUrl:v,currentParams:l.params,nextUrl:b,nextParams:u.params},n,{actionResult:y,actionStatus:k,defaultShouldRevalidate:!S&&(s||v.pathname+v.search===b.pathname+b.search||v.search!==b.search||ke(l,u))}))})),E=[];return p.forEach(((e,a)=>{if(o||!r.some((t=>t.route.id===e.routeId))||d.has(a))return;let l=x(h,e.path,m);if(!l)return void E.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(a),p=Ze(l,e.path),g=!1;f.has(a)?g=!1:u.has(a)?(u.delete(a),g=!0):g=c&&"idle"!==c.state&&void 0===c.data?s:Se(p,i({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:k,defaultShouldRevalidate:!S&&s})),g&&E.push({key:a,routeId:e.routeId,path:e.path,matches:l,match:p,controller:new AbortController})})),[_,E]}function xe(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return!(!n&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ke(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Se(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function _e(e,t,r,n,a){var o;let i;if(e){let t=n[e];d(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=w(t.filter((e=>!i.some((t=>Ee(e,t))))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}function Ee(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,r)=>{var n;return null==(n=t.children)?void 0:n.some((t=>Ee(e,t)))})))}async function Ce(e){let{matches:t}=e,r=t.filter((e=>e.shouldLoad));return(await Promise.all(r.map((e=>e.resolve())))).reduce(((e,t,n)=>Object.assign(e,{[r[n].route.id]:t})),{})}async function $e(e){let{result:t,type:r}=e;if(Ge(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:v.error,error:e}}return r===v.error?{type:v.error,error:new re(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:v.data,data:e,statusCode:t.status,headers:t.headers}}if(r===v.error){if(Ue(t)){var n,a;if(t.data instanceof Error)return{type:v.error,error:t.data,statusCode:null==(a=t.init)?void 0:a.status};t=new re((null==(n=t.init)?void 0:n.status)||500,void 0,t.data)}return{type:v.error,error:t,statusCode:ne(t)?t.status:void 0}}var o,i,l,s;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:v.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(i=t.init)?void 0:i.headers)&&new Headers(t.init.headers)}:Ue(t)?{type:v.data,data:t.data,statusCode:null==(l=t.init)?void 0:l.status,headers:null!=(s=t.init)&&s.headers?new Headers(t.init.headers):void 0}:{type:v.data,data:t}}function Ae(e,t,r,n,a,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!fe.test(i)){let l=n.slice(0,n.findIndex((e=>e.route.id===r))+1);i=ye(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}function Te(e,t,r){if(fe.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=M(a.pathname,r);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Oe(e,t,r,n){let a=e.createURL(je(t)).toString(),o={signal:r};if(n&&qe(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=Pe(n.formData):o.body=n.formData}return new Request(a,o)}function Pe(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Fe(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Re(e,t,r,n,a,o,l){let{loaderData:s,errors:c}=function(e,t,r,n,a){let o,i={},l=null,s=!1,c={},u=r&&Ve(r[1])?r[1].error:void 0;return e.forEach((r=>{if(!(r.route.id in t))return;let p=r.route.id,f=t[p];if(d(!We(f),"Cannot handle redirect results in processLoaderData"),Ve(f)){let t=f.error;if(void 0!==u&&(t=u,u=void 0),l=l||{},a)l[p]=t;else{let r=Ne(e,p);null==l[r.route.id]&&(l[r.route.id]=t)}i[p]=void 0,s||(s=!0,o=ne(f.error)?f.error.status:500),f.headers&&(c[p]=f.headers)}else Be(f)?(n.set(p,f.deferredData),i[p]=f.deferredData.data,null==f.statusCode||200===f.statusCode||s||(o=f.statusCode),f.headers&&(c[p]=f.headers)):(i[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(o=f.statusCode),f.headers&&(c[p]=f.headers))})),void 0!==u&&r&&(l={[r[0]]:u},i[r[0]]=void 0),{loaderData:i,errors:l,statusCode:o||200,loaderHeaders:c}}(t,r,n,l,!1);return a.forEach((t=>{let{key:r,match:n,controller:a}=t,l=o[r];if(d(l,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(Ve(l)){let t=Ne(e.matches,null==n?void 0:n.route.id);c&&c[t.route.id]||(c=i({},c,{[t.route.id]:l.error})),e.fetchers.delete(r)}else if(We(l))d(!1,"Unhandled fetcher revalidation redirect");else if(Be(l))d(!1,"Unhandled fetcher deferred data");else{let t=rt(l.data);e.fetchers.set(r,t)}})),{loaderData:s,errors:c}}function ze(e,t,r,n){let a=i({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function Le(e){return e?Ve(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ne(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Ie(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Me(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new re(e||500,l,new Error(s),!0)}function De(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(We(n))return{key:r,result:n}}}function je(e){return m(i({},"string"==typeof e?g(e):e,{hash:""}))}function He(e){return Ge(e.result)&&se.has(e.result.status)}function Be(e){return e.type===v.deferred}function Ve(e){return e.type===v.error}function We(e){return(e&&e.type)===v.redirect}function Ue(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ge(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function qe(e){return oe.has(e.toLowerCase())}async function Ke(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],c=e.find((e=>(null==e?void 0:e.route.id)===l));if(!c)continue;let u=n.find((e=>e.route.id===c.route.id)),d=null!=u&&!ke(u,c)&&void 0!==(a&&a[c.route.id]);Be(s)&&d&&await Xe(s,r,!1).then((e=>{e&&(t[l]=e)}))}}async function Ye(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find((e=>(null==e?void 0:e.route.id)===o))&&Be(l)&&(d(i,"Expected an AbortController for revalidating fetcher deferred result"),await Xe(l,i.signal,!0).then((e=>{e&&(t[a]=e)})))}}async function Xe(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:v.data,data:e.deferredData.unwrappedData}}catch(e){return{type:v.error,error:e}}return{type:v.data,data:e.deferredData.data}}}function Qe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ze(e,t){let r="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&Qe(r||""))return e[e.length-1];let n=H(e);return n[n.length-1]}function Je(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function et(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tt(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function rt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nt.apply(this,arguments)}Symbol("deferred");const at=a.createContext(null),ot=a.createContext(null),it=a.createContext(null),lt=a.createContext(null),st=a.createContext(null),ct=a.createContext({outlet:null,matches:[],isDataRoute:!1}),ut=a.createContext(null);function dt(e,t){let{relative:r}=void 0===t?{}:t;pt()||d(!1);let{basename:n,navigator:o}=a.useContext(lt),{hash:i,pathname:l,search:s}=kt(e,{relative:r}),c=l;return"/"!==n&&(c="/"===l?n:W([n,l])),o.createHref({pathname:c,search:s,hash:i})}function pt(){return null!=a.useContext(st)}function ft(){return pt()||d(!1),a.useContext(st).location}function ht(){return a.useContext(st).navigationType}function mt(e){pt()||d(!1);let{pathname:t}=ft();return a.useMemo((()=>N(e,I(t))),[t,e])}function gt(e){a.useContext(lt).static||a.useLayoutEffect(e)}function yt(){let{isDataRoute:e}=a.useContext(ct);return e?function(){let{router:e}=Ft(Ot.UseNavigateStable),t=zt(Pt.UseNavigateStable),r=a.useRef(!1);return gt((()=>{r.current=!0})),a.useCallback((function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,nt({fromRouteId:t},a)))}),[e,t])}():function(){pt()||d(!1);let e=a.useContext(at),{basename:t,future:r,navigator:n}=a.useContext(lt),{matches:o}=a.useContext(ct),{pathname:i}=ft(),l=JSON.stringify(B(o,r.v7_relativeSplatPath)),s=a.useRef(!1);return gt((()=>{s.current=!0})),a.useCallback((function(r,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof r)return void n.go(r);let o=V(r,JSON.parse(l),i,"path"===a.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:W([t,o.pathname])),(a.replace?n.replace:n.push)(o,a.state,a)}),[t,n,l,i,e])}()}const vt=a.createContext(null);function bt(){return a.useContext(vt)}function wt(e){let t=a.useContext(ct).outlet;return t?a.createElement(vt.Provider,{value:e},t):t}function xt(){let{matches:e}=a.useContext(ct),t=e[e.length-1];return t?t.params:{}}function kt(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=a.useContext(lt),{matches:o}=a.useContext(ct),{pathname:i}=ft(),l=JSON.stringify(B(o,n.v7_relativeSplatPath));return a.useMemo((()=>V(e,JSON.parse(l),i,"path"===r)),[e,l,i,r])}function St(e,t){return _t(e,t)}function _t(e,t,r,o){pt()||d(!1);let{navigator:i}=a.useContext(lt),{matches:l}=a.useContext(ct),s=l[l.length-1],c=s?s.params:{},u=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let p,f=ft();if(t){var h;let e="string"==typeof t?g(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||d(!1),p=e}else p=f;let m=p.pathname||"/",y=m;if("/"!==u){let e=u.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=x(e,{pathname:y}),b=Tt(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:W([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:W([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,r,o);return t&&b?a.createElement(st.Provider,{value:{location:nt({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:n.Pop}},b):b}function Et(){let e=Bt(),t=ne(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:n},r):null,null)}const Ct=a.createElement(Et,null);class $t extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(ct.Provider,{value:this.props.routeContext},a.createElement(ut.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function At(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(at);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(ct.Provider,{value:t},n)}function Tt(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var i;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(i=n)&&i.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let l=e,s=null==(o=r)?void 0:o.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||d(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,l=u>=0?l.slice(0,u+1):[l[0]];break}}}return l.reduceRight(((e,n,o)=>{let i,d=!1,p=null,f=null;var h;r&&(i=s&&n.route.id?s[n.route.id]:void 0,p=n.route.errorElement||Ct,c&&(u<0&&0===o?(qt[h="route-fallback"]||(qt[h]=!0),d=!0,f=null):u===o&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,o+1)),g=()=>{let t;return t=i?p:d?f:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(At,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement($t,{location:r.location,revalidation:r.revalidation,component:p,error:i,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var Ot=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ot||{}),Pt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Pt||{});function Ft(e){let t=a.useContext(at);return t||d(!1),t}function Rt(e){let t=a.useContext(ot);return t||d(!1),t}function zt(e){let t=function(){let e=a.useContext(ct);return e||d(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||d(!1),r.route.id}function Lt(){return zt(Pt.UseRouteId)}function Nt(){return Rt(Pt.UseNavigation).navigation}function It(){let e=Ft(Ot.UseRevalidator),t=Rt(Pt.UseRevalidator);return a.useMemo((()=>({revalidate:e.router.revalidate,state:t.revalidation})),[e.router.revalidate,t.revalidation])}function Mt(){let{matches:e,loaderData:t}=Rt(Pt.UseMatches);return a.useMemo((()=>e.map((e=>S(e,t)))),[e,t])}function Dt(){let e=Rt(Pt.UseLoaderData),t=zt(Pt.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function jt(e){return Rt(Pt.UseRouteLoaderData).loaderData[e]}function Ht(){let e=Rt(Pt.UseActionData),t=zt(Pt.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function Bt(){var e;let t=a.useContext(ut),r=Rt(Pt.UseRouteError),n=zt(Pt.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function Vt(){let e=a.useContext(it);return null==e?void 0:e._data}function Wt(){let e=a.useContext(it);return null==e?void 0:e._error}let Ut=0;function Gt(e){let{router:t,basename:r}=Ft(Ot.UseBlocker),n=Rt(Pt.UseBlocker),[o,i]=a.useState(""),l=a.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:nt({},n,{pathname:M(n.pathname,r)||n.pathname}),nextLocation:nt({},a,{pathname:M(a.pathname,r)||a.pathname}),historyAction:o})}),[r,e]);return a.useEffect((()=>{let e=String(++Ut);return i(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==o&&t.getBlocker(o,l)}),[t,o,l]),o&&n.blockers.has(o)?n.blockers.get(o):pe}const qt={},Kt={},Yt=(e,t,r)=>{var n;Kt[n="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+r+"."]||(Kt[n]=!0,console.warn(n))};function Xt(e,t){null!=e&&e.v7_startTransition||Yt("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),null!=e&&e.v7_relativeSplatPath||t&&t.v7_relativeSplatPath||Yt("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||Yt("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||Yt("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||Yt("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||Yt("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}const Qt=a.startTransition;function Zt(e){let{basename:t,children:r,initialEntries:n,initialIndex:o,future:i}=e,l=a.useRef();null==l.current&&(l.current=s({initialEntries:n,initialIndex:o,v5Compat:!0}));let c=l.current,[u,d]=a.useState({action:c.action,location:c.location}),{v7_startTransition:p}=i||{},f=a.useCallback((e=>{p&&Qt?Qt((()=>d(e))):d(e)}),[d,p]);return a.useLayoutEffect((()=>c.listen(f)),[c,f]),a.useEffect((()=>Xt(i)),[i]),a.createElement(rr,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:c,future:i})}function Jt(e){let{to:t,replace:r,state:n,relative:o}=e;pt()||d(!1);let{future:i,static:l}=a.useContext(lt),{matches:s}=a.useContext(ct),{pathname:c}=ft(),u=yt(),p=V(t,B(s,i.v7_relativeSplatPath),c,"path"===o),f=JSON.stringify(p);return a.useEffect((()=>u(JSON.parse(f),{replace:r,state:n,relative:o})),[u,f,o,r,n]),null}function er(e){return wt(e.context)}function tr(e){d(!1)}function rr(e){let{basename:t="/",children:r=null,location:o,navigationType:i=n.Pop,navigator:l,static:s=!1,future:c}=e;pt()&&d(!1);let u=t.replace(/^\/*/,"/"),p=a.useMemo((()=>({basename:u,navigator:l,static:s,future:nt({v7_relativeSplatPath:!1},c)})),[u,c,l,s]);"string"==typeof o&&(o=g(o));let{pathname:f="/",search:h="",hash:m="",state:y=null,key:v="default"}=o,b=a.useMemo((()=>{let e=M(f,u);return null==e?null:{location:{pathname:e,search:h,hash:m,state:y,key:v},navigationType:i}}),[u,f,h,m,y,v,i]);return null==b?null:a.createElement(lt.Provider,{value:p},a.createElement(st.Provider,{children:r,value:b}))}function nr(e){let{children:t,location:r}=e;return St(cr(t),r)}function ar(e){let{children:t,errorElement:r,resolve:n}=e;return a.createElement(lr,{resolve:n,errorElement:r},a.createElement(sr,null,t))}var or=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(or||{});const ir=new Promise((()=>{}));class lr extends a.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,o=or.pending;if(r instanceof Promise)if(this.state.error){o=or.error;let e=this.state.error;n=Promise.reject().catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?(n=r,o="_error"in n?or.error:"_data"in n?or.success:or.pending):(o=or.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then((e=>Object.defineProperty(r,"_data",{get:()=>e})),(e=>Object.defineProperty(r,"_error",{get:()=>e}))));else o=or.success,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(o===or.error&&n._error instanceof Y)throw ir;if(o===or.error&&!t)throw n._error;if(o===or.error)return a.createElement(it.Provider,{value:n,children:t});if(o===or.success)return a.createElement(it.Provider,{value:n,children:e});throw n}}function sr(e){let{children:t}=e,r=Vt(),n="function"==typeof t?t(r):t;return a.createElement(a.Fragment,null,n)}function cr(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,((e,n)=>{if(!a.isValidElement(e))return;let o=[...t,n];if(e.type===a.Fragment)return void r.push.apply(r,cr(e.props.children,o));e.type!==tr&&d(!1),e.props.index&&e.props.children&&d(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=cr(e.props.children,o)),r.push(i)})),r}function ur(e){return Tt(e)}function dr(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function pr(e,t){return ge({basename:null==t?void 0:t.basename,future:nt({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:s({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:dr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fr.apply(this,arguments)}function hr(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}const mr="get",gr="application/x-www-form-urlencoded";function yr(e){return null!=e&&"string"==typeof e.tagName}function vr(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}let br=null;const wr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xr(e){return null==e||wr.has(e)?e:null}const kr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Sr=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],_r=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function Er(e,t){return ge({basename:null==t?void 0:t.basename,future:fr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:c({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||$r(),routes:e,mapRouteProperties:dr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function Cr(e,t){return ge({basename:null==t?void 0:t.basename,future:fr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:u({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||$r(),routes:e,mapRouteProperties:dr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function $r(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=fr({},t,{errors:Ar(t.errors)})),t}function Ar(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new re(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const Tr=a.createContext({isTransitioning:!1}),Or=a.createContext(new Map),Pr=a.startTransition,Fr=o.flushSync,Rr=a.useId;function zr(e){Fr?Fr(e):e()}class Lr{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function Nr(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=a.useState(r.state),[l,s]=a.useState(),[c,u]=a.useState({isTransitioning:!1}),[d,p]=a.useState(),[f,h]=a.useState(),[m,g]=a.useState(),y=a.useRef(new Map),{v7_startTransition:v}=n||{},b=a.useCallback((e=>{v?function(e){Pr?Pr(e):e()}(e):e()}),[v]),w=a.useCallback(((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:o}=t;n.forEach((e=>y.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}));let l=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(o&&!l){if(a){zr((()=>{f&&(d&&d.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=r.window.document.startViewTransition((()=>{zr((()=>i(e)))}));return t.finished.finally((()=>{zr((()=>{p(void 0),h(void 0),s(void 0),u({isTransitioning:!1})}))})),void zr((()=>h(t)))}f?(d&&d.resolve(),f.skipTransition(),g({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(s(e),u({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?zr((()=>i(e))):b((()=>i(e)))}),[r.window,f,d,y,b]);a.useLayoutEffect((()=>r.subscribe(w)),[r,w]),a.useEffect((()=>{c.isTransitioning&&!c.flushSync&&p(new Lr)}),[c]),a.useEffect((()=>{if(d&&l&&r.window){let e=l,t=d.promise,n=r.window.document.startViewTransition((async()=>{b((()=>i(e))),await t}));n.finished.finally((()=>{p(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})),h(n)}}),[b,l,d,r.window]),a.useEffect((()=>{d&&l&&o.location.key===l.location.key&&d.resolve()}),[d,f,o.location,l]),a.useEffect((()=>{!c.isTransitioning&&m&&(s(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))}),[c.isTransitioning,m]),a.useEffect((()=>{}),[]);let x=a.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),k=r.basename||"/",S=a.useMemo((()=>({router:r,navigator:x,static:!1,basename:k})),[r,x,k]),_=a.useMemo((()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath})),[r.future.v7_relativeSplatPath]);return a.useEffect((()=>Xt(n,r.future)),[n,r.future]),a.createElement(a.Fragment,null,a.createElement(at.Provider,{value:S},a.createElement(ot.Provider,{value:o},a.createElement(Or.Provider,{value:y.current},a.createElement(Tr.Provider,{value:c},a.createElement(rr,{basename:k,location:o.location,navigationType:o.historyAction,navigator:x,future:_},o.initialized||r.future.v7_partialHydration?a.createElement(Ir,{routes:r.routes,future:r.future,state:o}):t))))),null)}const Ir=a.memo(Mr);function Mr(e){let{routes:t,future:r,state:n}=e;return _t(t,void 0,n,r)}function Dr(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();null==i.current&&(i.current=c({window:o,v5Compat:!0}));let l=i.current,[s,u]=a.useState({action:l.action,location:l.location}),{v7_startTransition:d}=n||{},p=a.useCallback((e=>{d&&Pr?Pr((()=>u(e))):u(e)}),[u,d]);return a.useLayoutEffect((()=>l.listen(p)),[l,p]),a.useEffect((()=>Xt(n)),[n]),a.createElement(rr,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:n})}function jr(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();null==i.current&&(i.current=u({window:o,v5Compat:!0}));let l=i.current,[s,c]=a.useState({action:l.action,location:l.location}),{v7_startTransition:d}=n||{},p=a.useCallback((e=>{d&&Pr?Pr((()=>c(e))):c(e)}),[c,d]);return a.useLayoutEffect((()=>l.listen(p)),[l,p]),a.useEffect((()=>Xt(n)),[n]),a.createElement(rr,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:n})}function Hr(e){let{basename:t,children:r,future:n,history:o}=e,[i,l]=a.useState({action:o.action,location:o.location}),{v7_startTransition:s}=n||{},c=a.useCallback((e=>{s&&Pr?Pr((()=>l(e))):l(e)}),[l,s]);return a.useLayoutEffect((()=>o.listen(c)),[o,c]),a.useEffect((()=>Xt(n)),[n]),a.createElement(rr,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:o,future:n})}const Br="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Vr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wr=a.forwardRef((function(e,t){let r,{onClick:n,relative:o,reloadDocument:i,replace:l,state:s,target:c,to:u,preventScrollReset:d,viewTransition:p}=e,f=hr(e,kr),{basename:h}=a.useContext(lt),m=!1;if("string"==typeof u&&Vr.test(u)&&(r=u,Br))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=M(t.pathname,h);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let g=dt(u,{relative:o}),y=Zr(u,{replace:l,state:s,target:c,preventScrollReset:d,relative:o,viewTransition:p});return a.createElement("a",fr({},f,{href:r||g,onClick:m||i?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:c}))})),Ur=a.forwardRef((function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:c,children:u}=e,d=hr(e,Sr),p=kt(s,{relative:d.relative}),f=ft(),h=a.useContext(ot),{navigator:m,basename:g}=a.useContext(lt),y=null!=h&&pn(p)&&!0===c,v=m.encodeLocation?m.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(b=b.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&g&&(w=M(w,g)||w);const x="/"!==v&&v.endsWith("/")?v.length-1:v.length;let k,S=b===v||!i&&b.startsWith(v)&&"/"===b.charAt(x),_=null!=w&&(w===v||!i&&w.startsWith(v)&&"/"===w.charAt(v.length)),E={isActive:S,isPending:_,isTransitioning:y},C=S?r:void 0;k="function"==typeof o?o(E):[o,S?"active":null,_?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let $="function"==typeof l?l(E):l;return a.createElement(Wr,fr({},d,{"aria-current":C,className:k,ref:t,style:$,to:s,viewTransition:c}),"function"==typeof u?u(E):u)})),Gr=a.forwardRef(((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:i,state:l,method:s=mr,action:c,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:f}=e,h=hr(e,_r),m=rn(),g=nn(c,{relative:d}),y="get"===s.toLowerCase()?"get":"post";return a.createElement("form",fr({ref:t,method:y,action:g,onSubmit:o?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||s;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:i,state:l,relative:d,preventScrollReset:p,viewTransition:f})}},h))}));function qr(e){let{getKey:t,storageKey:r}=e;return cn({getKey:t,storageKey:r}),null}var Kr,Yr;function Xr(e){let t=a.useContext(at);return t||d(!1),t}function Qr(e){let t=a.useContext(ot);return t||d(!1),t}function Zr(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:l,viewTransition:s}=void 0===t?{}:t,c=yt(),u=ft(),d=kt(e,{relative:l});return a.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==n?n:m(u)===m(d);c(e,{replace:r,state:o,preventScrollReset:i,relative:l,viewTransition:s})}}),[u,c,d,n,o,r,e,i,l,s])}function Jr(e){let t=a.useRef(vr(e)),r=a.useRef(!1),n=ft(),o=a.useMemo((()=>function(e,t){let r=vr(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(n.search,r.current?null:t.current)),[n.search]),i=yt(),l=a.useCallback(((e,t)=>{const n=vr("function"==typeof e?e(o):e);r.current=!0,i("?"+n,t)}),[i,o]);return[o,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kr||(Kr={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Yr||(Yr={}));let en=0,tn=()=>"__"+String(++en)+"__";function rn(){let{router:e}=Xr(Kr.UseSubmit),{basename:t}=a.useContext(lt),r=Lt();return a.useCallback((function(n,a){void 0===a&&(a={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:o,method:i,encType:l,formData:s,body:c}=function(e,t){let r,n,a,o,i;if(yr(l=e)&&"form"===l.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?M(i,t):null,r=e.getAttribute("method")||mr,a=xr(e.getAttribute("enctype"))||gr,o=new FormData(e)}else if(function(e){return yr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return yr(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?M(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||mr,a=xr(e.getAttribute("formenctype"))||xr(i.getAttribute("enctype"))||gr,o=new FormData(i,e),!function(){if(null===br)try{new FormData(document.createElement("form"),0),br=!1}catch(e){br=!0}return br}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else{if(yr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=mr,n=null,a=gr,i=e}var l;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||tn();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:c,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:c,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[e,t,r])}function nn(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=a.useContext(lt),o=a.useContext(ct);o||d(!1);let[i]=o.matches.slice(-1),l=fr({},kt(e||".",{relative:r})),s=ft();if(null==e){l.search=s.search;let e=new URLSearchParams(l.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let r=e.toString();l.search=r?"?"+r:""}}return e&&"."!==e||!i.route.index||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(l.pathname="/"===l.pathname?n:W([n,l.pathname])),m(l)}function an(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=Xr(Kr.UseFetcher),o=Qr(Yr.UseFetcher),i=a.useContext(Or),l=a.useContext(ct),s=null==(t=l.matches[l.matches.length-1])?void 0:t.route.id;i||d(!1),l||d(!1),null==s&&d(!1);let c=Rr?Rr():"",[u,p]=a.useState(r||c);r&&r!==u?p(r):u||p(tn()),a.useEffect((()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)})),[n,u]);let f=a.useCallback(((e,t)=>{s||d(!1),n.fetch(u,s,e,t)}),[u,s,n]),h=rn(),m=a.useCallback(((e,t)=>{h(e,fr({},t,{navigate:!1,fetcherKey:u}))}),[u,h]),g=a.useMemo((()=>a.forwardRef(((e,t)=>a.createElement(Gr,fr({},e,{navigate:!1,fetcherKey:u,ref:t}))))),[u]),y=o.fetchers.get(u)||de,v=i.get(u);return a.useMemo((()=>fr({Form:g,submit:m,load:f},y,{data:v})),[g,m,f,y,v])}function on(){let e=Qr(Yr.UseFetchers);return Array.from(e.fetchers.entries()).map((e=>{let[t,r]=e;return fr({},r,{key:t})}))}const ln="react-router-scroll-positions";let sn={};function cn(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=Xr(Kr.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Qr(Yr.UseScrollRestoration),{basename:l}=a.useContext(lt),s=ft(),c=Mt(),u=Nt();a.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e){let{capture:t}={};a.useEffect((()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}}),[e,t])}(a.useCallback((()=>{if("idle"===u.state){let e=(t?t(s,c):null)||s.key;sn[e]=window.scrollY}try{sessionStorage.setItem(r||ln,JSON.stringify(sn))}catch(e){}window.history.scrollRestoration="auto"}),[r,t,u.state,s,c])),"undefined"!=typeof document&&(a.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(r||ln);e&&(sn=JSON.parse(e))}catch(e){}}),[r]),a.useLayoutEffect((()=>{let e=t&&"/"!==l?(e,r)=>t(fr({},e,{pathname:M(e.pathname,l)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(sn,(()=>window.scrollY),e);return()=>r&&r()}),[n,l,t]),a.useLayoutEffect((()=>{if(!1!==o)if("number"!=typeof o){if(s.hash){let e=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==i&&window.scrollTo(0,0)}else window.scrollTo(0,o)}),[s,o,i]))}function un(e,t){let{capture:r}=t||{};a.useEffect((()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}}),[e,r])}function dn(e){let{when:t,message:r}=e,n=Gt(t);a.useEffect((()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())}),[n,r]),a.useEffect((()=>{"blocked"!==n.state||t||n.reset()}),[n,t])}function pn(e,t){void 0===t&&(t={});let r=a.useContext(Tr);null==r&&d(!1);let{basename:n}=Xr(Kr.useViewTransitionState),o=kt(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=M(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=M(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=N(o.pathname,l)||null!=N(o.pathname,i)}},98:(e,t,r)=>{"use strict";var n,a=r(957),o=(n=a)&&"object"==typeof n&&"default"in n?n.default:n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var s,c=[];function u(){s=e(c.map((function(e){return e.props}))),d.canUseDOM?t(s):r&&(s=r(s))}var d=function(e){var t,r;function a(){return e.apply(this,arguments)||this}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,a.peek=function(){return s},a.rewind=function(){if(a.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=s;return s=void 0,c=[],e};var i=a.prototype;return i.UNSAFE_componentWillMount=function(){c.push(this),u()},i.componentDidUpdate=function(){u()},i.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},i.render=function(){return o.createElement(n,this.props)},a}(a.PureComponent);return i(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),i(d,"canUseDOM",l),d}}},287:(e,t,r)=>{"use strict";var n=r(228),a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=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 S=k.prototype=new x;S.constructor=k,n(S,w.prototype),S.isPureReactComponent=!0;var _={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function $(e,t,r){var n,a={},i=null,l=null;if(null!=t)for(n in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+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:o,type:e,key:i,ref:l,props:a,_owner:_.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}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 F(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function R(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 o:case i:l=!0}}if(l)return r(n,e,""===t?"."+L(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=t+L(a=e[s],s);l+=R(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+=R(a=a.value,c=t+L(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 z(e,t,r){return null==e?0:R(e,"",t,r)}function L(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 N(e,t){e.func.call(e.context,t,e.count++)}function I(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:o,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 o="";null!=r&&(o=(""+r).replace(T,"$&/")+"/"),z(e,I,t=P(t,o,n,a)),F(t)}var D={current:null};function j(){var e=D.current;if(null===e)throw Error(y(321));return e}var H={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_,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;z(e,N,t=P(null,null,t,r)),F(t)},count:function(e){return z(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=H,t.cloneElement=function(e,t,r){if(null==e)throw Error(y(267,e));var a=n({},e.props),i=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=_.current),void 0!==t.key&&(i=""+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:o,type:e.type,key:i,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 j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return j().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,r){return j().useReducer(e,t,r)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().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,o,i;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)},o=function(){return!1},i=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;o=function(){return t.unstable_now()>=x},i=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,S=k.port2;k.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();x=e+w;try{v(!0,e)?S.postMessage(null):(y=!1,v=null)}catch(e){throw S.postMessage(null),e}}else y=!1},r=function(e){v=e,y||(y=!0,S.postMessage(null))},n=function(e,r){b=f((function(){e(t.unstable_now())}),r)},a=function(){h(b),b=-1}}function _(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 o=2*(n+1)-1,i=e[o],l=o+1,s=e[l];if(void 0!==i&&0>$(i,r))void 0!==s&&0>$(s,i)?(e[n]=s,e[l]=r,n=l):(e[n]=i,e[o]=r,n=o);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,F=3,R=!1,z=!1,L=!1;function N(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,_(A,t)}t=E(T)}}function I(e){if(L=!1,N(e),!z)if(null!==E(A))z=!0,r(M);else{var t=E(T);null!==t&&n(I,t.startTime-e)}}function M(e,r){z=!1,L&&(L=!1,a()),R=!0;var i=F;try{for(N(r),P=E(A);null!==P&&(!(P.expirationTime>r)||e&&!o());){var l=P.callback;if(null!==l){P.callback=null,F=P.priorityLevel;var s=l(P.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?P.callback=s:P===E(A)&&C(A),N(r)}else C(A);P=E(A)}if(null!==P)var c=!0;else{var u=E(T);null!==u&&n(I,u.startTime-r),c=!1}return c}finally{P=null,F=i,R=!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 j=i;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(){z||R||(z=!0,r(M))},t.unstable_getCurrentPriorityLevel=function(){return F},t.unstable_getFirstCallbackNode=function(){return E(A)},t.unstable_next=function(e){switch(F){case 1:case 2:case 3:var t=3;break;default:t=F}var r=F;F=t;try{return e()}finally{F=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=F;F=e;try{return t()}finally{F=r}},t.unstable_scheduleCallback=function(e,o,i){var l=t.unstable_now();if("object"==typeof i&&null!==i){var s=i.delay;s="number"==typeof s&&0<s?l+s:l,i="number"==typeof i.timeout?i.timeout:D(e)}else i=D(e),s=l;return e={id:O++,callback:o,priorityLevel:e,startTime:s,expirationTime:i=s+i,sortIndex:-1},s>l?(e.sortIndex=s,_(T,e),null===E(A)&&e===E(T)&&(L?a():L=!0,n(I,s-l))):(e.sortIndex=i,_(A,e),z||R||(z=!0,r(M))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();N(e);var r=E(A);return r!==P&&null!==P&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<P.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=F;return function(){var r=F;F=t;try{return e.apply(this,arguments)}finally{F=r}}}},982:(e,t,r)=>{"use strict";e.exports=r(463)},168:(e,t,r)=>{"use strict";var n=new Error;e.exports=new Promise(((e,t)=>{if("undefined"!=typeof unifiedonboard)return e();r.l("https://www.paypal.com/unifiedonboarding/js/client/unifiedonboarding/remoteDeltaDataCollection.js",(r=>{if("undefined"!=typeof unifiedonboard)return e();var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;n.message="Loading script failed.\n("+a+": "+o+")",n.name="ScriptExternalLoadError",n.type=a,n.request=o,t(n)}),"unifiedonboard")})).then((()=>unifiedonboard))},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){o(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 o(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:()=>i});const i=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 o="";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,"{")),o+=t,e<r.length&&(o+=r[e])}const i=o.split("\n");let l=null;for(const e of i){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;o=i.map((t=>" "===t[0]||"\t"===t[0]?t.slice(e):t)).join("\n")}return o=o.trim(),a&&(o=o.replace(/\\n/g,"\n")),o}}({})}},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return i[e](r,r.exports,s),r.exports}return s.m=i,s.c=l,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);s.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,s.d(a,o),a},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="MerchantOnboarding:",s.l=(e,t,a,o)=>{if(r[e])r[e].push(t);else{var i,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+a){i=d;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",n+a),i.src=e),r[e]=[t];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var a=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a={647:[647]},o={647:["default","./DeltaDataCollection",168]},s.f.remotes=(e,t)=>{s.o(a,e)&&a[e].forEach((e=>{var r=s.R;r||(r=[]);var n=o[e];if(!(r.indexOf(n)>=0)){if(r.push(n),n.p)return t.push(n.p);var a=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+='\nwhile loading "'+n[1]+'" from '+n[2]),s.m[e]=()=>{throw t},n.p=0},i=(e,r,o,i,l,s)=>{try{var c=e(r,o);if(!c||!c.then)return l(c,i,s);var u=c.then((e=>l(e,i)),a);if(!s)return u;t.push(n.p=u)}catch(e){a(e)}},l=(e,t,a)=>i(t.get,n[1],r,0,c,a),c=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};i(s,n[2],0,0,((e,t,r)=>e?i(s.I,n[0],0,e,l,r):a()),1)}}))},(()=>{s.S={};var e={},t={};s.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];s.o(s.S,r)||(s.S[r]={});var o=s.S[r],i="MerchantOnboarding",l=(e,t,r,n)=>{var a=o[e]=o[e]||{},l=a[t];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(a[t]={get:r,from:i,eager:!!n})},c=[];return"default"===r&&(l("react-dom","16.14.0",(()=>()=>s(961)),1),l("react-router-dom","6.28.0",(()=>()=>s(648)),1),l("react","16.14.0",(()=>()=>s(540)),1),(()=>{var e=e=>{return t="Initialization of sharing external failed: "+e,void("undefined"!=typeof console&&console.warn&&console.warn(t));var t};try{var t=s(168);if(!t)return;var a=e=>e&&e.init&&e.init(s.S[r],n);if(t.then)return c.push(t.then(a,e));var o=a(t);if(o&&o.then)return c.push(o.catch(e))}catch(t){e(t)}})()),c.length?e[r]=Promise.all(c).then((()=>e[r]=1)):e[r]=1}}})(),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e+"../../"})(),(()=>{var 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,o=1;o<e.length;o++)a--,n+="u"==(typeof(l=e[o]))[0]?"-":(a>0?".":"")+(a=2,l);return n}var i=[];for(o=1;o<e.length;o++){var l=e[o];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():t(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},r=(t,n)=>{if(0 in t){n=e(n);var a=t[0],o=a<0;o&&(a=-a-1);for(var i=0,l=1,s=!0;;l++,i++){var c,u,d=l<t.length?(typeof t[l])[0]:"";if(i>=n.length||"o"==(u=(typeof(c=n[i]))[0]))return!s||("u"==d?l>a&&!o:""==d!=o);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(o?c>t[l]:c<t[l])return!1;c!=t[l]&&(s=!1)}else if("s"!=d&&"n"!=d){if(o||l<=a)return!1;s=!1,l--}else{if(l<=a||u<d!=o)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,l--)}}var p=[],f=p.pop.bind(p);for(i=1;i<t.length;i++){var h=t[i];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],o=(typeof a)[0];if(n>=r.length)return"u"==o;var i=r[n],l=(typeof i)[0];if(o!=l)return"o"==o&&"n"==l||"s"==l||"u"==o;if("o"!=o&&"u"!=o&&a!=i)return a<i;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),o=(e=>function(t,r,n,a,o){var i=s.I(t);return i&&i.then&&!n?i.then(e.bind(e,t,s.S[t],r,!1,a,o)):e(t,s.S[t],r,n,a,o)})(((e,o,i,l,c,u)=>{if(!((e,t)=>e&&s.o(e,t))(o,i))return a(e,i,u);var d,p,f=n(o,i,l);return r(c,f)||(p=((e,r,n,a)=>"Unsatisfied version "+n+" from "+(n&&e[r][n].from)+" of shared singleton module "+r+" (required "+t(a)+")")(o,i,f,c),"undefined"!=typeof console&&console.warn&&console.warn(p)),(d=o[i][f]).loaded=1,d.get()})),i={},l={664:()=>o("default","react",!0,[1,16,14,0],(()=>()=>s(540))),957:()=>o("default","react",!0,[,[1,18,0,0],[1,17,0,0],[1,16,3,0],1,1],(()=>()=>s(540))),831:()=>o("default","react",!0,[0,16,3,0],(()=>()=>s(540))),660:()=>o("default","react",!0,[0,16],(()=>()=>s(540))),448:()=>o("default","react-dom",!0,[0,16],(()=>()=>s(961))),718:()=>o("default","react",!0,[,[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1],(()=>()=>s(540))),214:()=>o("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],(()=>()=>s(540))),118:()=>o("default","react",!0,[,[1,19,0,0],[1,18,0,0],[1,17,0,0],[1,16,8,0],1,1,1],(()=>()=>s(540))),36:()=>o("default","react-dom",!0,[1,16,14,0],(()=>()=>s(961))),730:()=>o("default","react",!0,[0,16,8],(()=>()=>s(540))),342:()=>o("default","react-dom",!0,[0,16,8],(()=>()=>s(961)))};[664,957,831,660,448,718,214,118,36,730,342].forEach((e=>{s.m[e]=t=>{i[e]=0,delete s.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()}}));var c={459:[664,957,831,660,448,718,214,118,36,730,342]},u={};s.f.consumes=(e,t)=>{s.o(c,e)&&c[e].forEach((e=>{if(s.o(i,e))return t.push(i[e]);if(!u[e]){var r=t=>{i[e]=0,s.m[e]=r=>{delete s.c[e],r.exports=t()}};u[e]=!0;var n=t=>{delete i[e],s.m[e]=r=>{throw delete s.c[e],t}};try{var a=l[e]();a.then?t.push(i[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))}})(),(()=>{var e={459:0};s.f.j=(t,r)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(459==t){var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=s.p+s.u(t),i=new Error;s.l(o,(r=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,n[1](i)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var n,a,[o,i,l]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);l&&l(s)}for(t&&t(r);c<o.length;c++)a=o[c],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=this.webpackChunkMerchantOnboarding=this.webpackChunkMerchantOnboarding||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),s.nc=void 0,s(972)})()));
|