2 lines
199 KiB
JavaScript
2 lines
199 KiB
JavaScript
/*! For license information please see multi-currency-switcher-block.js.LICENSE.txt */
|
||
(()=>{var e={2485:(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 i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)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)}()},542: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,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,c=void 0===s?n:s,l=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:r({chunks:c({autoEscape:t,caseSensitive:a,sanitize:l,searchWords:u,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?i:n,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,n){n=o(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(n,r?"g":"gi"),a=void 0;a=i.exec(s);){var c=a.index,l=i.lastIndex;l>c&&e.push({highlight:!1,start:c,end:l}),a.index===i.lastIndex&&i.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 i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,r,!1)}return n};function i(e){return e}}])},4146:(e,t,r)=>{"use strict";var n=r(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,u=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 a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),f=c(r),y=0;y<a.length;++y){var g=a[y];if(!(i[g]||n&&n[g]||f&&f[g]||s&&s[g])){var _=p(r,g);try{l(t,g,_)}catch(e){}}}}return t}},3072:(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,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=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,b=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case y:case f:case c:return e;default:return t}}case o:return t}}}function w(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||S(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===f},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===f||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===_||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},t.typeOf=S},3404:(e,t,r)=>{"use strict";e.exports=r(3072)},8616:e=>{e.exports=function(e,t){var r,n,o=0;function i(){var i,a,s=r,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<c;a++)if(s.args[a]!==arguments[a]){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(i=new Array(c),a=0;a<c;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},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||{},i.clear=function(){r=null,n=null,o=0},i}},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))r.call(i,l)&&(s[l]=i[l]);if(t){a=t(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},5606:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(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:i}catch(e){r=i}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!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||l||a(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}},1020:(e,t,r)=>{"use strict";r(5228);var n=r(1609),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,i={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}t.jsx=l,t.jsxs=l},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},1609:e=>{"use strict";e.exports=window.React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.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");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].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:()=>ee,getAllDepositsOverviewsError:()=>te,getDeposit:()=>J,getDepositQueryError:()=>ie,getDeposits:()=>ne,getDepositsCount:()=>oe,getDepositsSummary:()=>se,getDepositsSummaryError:()=>ce,getInstantDeposit:()=>le});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>Pe,updateAllDepositsOverviews:()=>xe,updateDeposit:()=>Ae,updateDeposits:()=>Ie,updateDepositsCount:()=>ke,updateDepositsSummary:()=>De,updateErrorForAllDepositsOverviews:()=>Ce,updateErrorForDepositQuery:()=>Ne,updateErrorForDepositsSummary:()=>Me,updateInstantDeposit:()=>Fe});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>Ue,getDeposit:()=>Le,getDeposits:()=>$e,getDepositsCSV:()=>je,getDepositsSummary:()=>Be});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>Je,getFraudOutcomeTransactionsError:()=>et,getFraudOutcomeTransactionsSummary:()=>rt,getFraudOutcomeTransactionsSummaryError:()=>nt,getTransactions:()=>We,getTransactionsError:()=>Ge,getTransactionsSummary:()=>Qe,getTransactionsSummaryError:()=>Ze});var i={};r.r(i),r.d(i,{updateErrorForFraudOutcomeTransactions:()=>lt,updateErrorForFraudOutcomeTransactionsSummary:()=>dt,updateErrorForTransactions:()=>it,updateErrorForTransactionsSummary:()=>st,updateFraudOutcomeTransactions:()=>ct,updateFraudOutcomeTransactionsSummary:()=>ut,updateTransactions:()=>ot,updateTransactionsSummary:()=>at});var a={};r.r(a),r.d(a,{formatQueryFilters:()=>pt,getFraudOutcomeTransactions:()=>yt,getFraudOutcomeTransactionsExport:()=>_t,getFraudOutcomeTransactionsSummary:()=>gt,getTransactions:()=>mt,getTransactionsCSV:()=>ht,getTransactionsSummary:()=>ft});var s={};r.r(s),r.d(s,{getCharge:()=>vt,getChargeError:()=>St,getChargeFromOrder:()=>wt,getChargeFromOrderError:()=>Et});var c={};r.r(c),r.d(c,{updateCharge:()=>Tt,updateErrorForCharge:()=>Rt});var l={};r.r(l),r.d(l,{getCharge:()=>Ot,getChargeFromOrder:()=>At});var u={};r.r(u),r.d(u,{getTimeline:()=>Ct,getTimelineError:()=>It});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>Nt,updateTimeline:()=>kt});var p={};r.r(p),r.d(p,{getTimeline:()=>Dt});var m={};r.r(m),r.d(m,{getCachedDispute:()=>zt,getDispute:()=>Lt,getDisputeError:()=>Ut,getDisputes:()=>jt,getDisputesSummary:()=>$t});var h={};r.r(h),r.d(h,{refundCharge:()=>Yt,updateErrorForPaymentIntent:()=>Vt,updatePaymentIntent:()=>qt});var f={};r.r(f),r.d(f,{getPaymentIntent:()=>Wt});var y={};r.r(y),r.d(y,{acceptDispute:()=>Xt,updateDispute:()=>Gt,updateDisputes:()=>Qt,updateDisputesSummary:()=>Zt,updateErrorForDispute:()=>Kt});var g={};r.r(g),r.d(g,{getDispute:()=>ar,getDisputes:()=>sr,getDisputesCSV:()=>ir,getDisputesSummary:()=>cr});var _={};r.r(_),r.d(_,{getAccountBrandingLogo:()=>Lr,getAccountBusinessName:()=>Or,getAccountBusinessSupportAddress:()=>xr,getAccountBusinessSupportAddressCity:()=>Nr,getAccountBusinessSupportAddressCountry:()=>Cr,getAccountBusinessSupportAddressLine1:()=>Ir,getAccountBusinessSupportAddressLine2:()=>kr,getAccountBusinessSupportAddressPostalCode:()=>Mr,getAccountBusinessSupportAddressState:()=>Dr,getAccountBusinessSupportEmail:()=>Fr,getAccountBusinessSupportPhone:()=>Pr,getAccountBusinessURL:()=>Ar,getAccountDomesticCurrency:()=>Ur,getAccountStatementDescriptor:()=>Er,getAccountStatementDescriptorKana:()=>Rr,getAccountStatementDescriptorKanji:()=>Tr,getAdvancedFraudProtectionSettings:()=>gn,getAvailablePaymentMethodIds:()=>br,getCompletedWaitingPeriod:()=>Hr,getCurrentProtectionLevel:()=>yn,getDepositDelayDays:()=>Br,getDepositRestrictions:()=>Vr,getDepositScheduleInterval:()=>zr,getDepositScheduleMonthlyAnchor:()=>$r,getDepositScheduleWeeklyAnchor:()=>jr,getDepositStatus:()=>qr,getDuplicatedPaymentMethodIds:()=>yr,getEnabledPaymentMethodIds:()=>_r,getIsCardPresentEligible:()=>sn,getIsDebugLogEnabled:()=>Zr,getIsDevModeEnabled:()=>Kr,getIsManualCaptureEnabled:()=>Yr,getIsMultiCurrencyEnabled:()=>Xr,getIsPaymentRequestEnabled:()=>Qr,getIsSavedCardsEnabled:()=>on,getIsStripeBillingEnabled:()=>bn,getIsStripeBillingMigrationInProgress:()=>vn,getIsSubscriptionsPluginActive:()=>un,getIsTestModeEnabled:()=>Wr,getIsTestModeOnboarding:()=>Gr,getIsWCPayEnabled:()=>gr,getIsWCPaySubscriptionsEligible:()=>ln,getIsWCPaySubscriptionsEnabled:()=>cn,getIsWooPayEnabled:()=>dn,getIsWooPayGlobalThemeSupportEnabled:()=>pn,getPaymentMethodStatuses:()=>vr,getPaymentRequestButtonBorderRadius:()=>nn,getPaymentRequestButtonSize:()=>tn,getPaymentRequestButtonTheme:()=>rn,getPaymentRequestButtonType:()=>en,getPaymentRequestLocations:()=>Jr,getSavingError:()=>an,getSettings:()=>hr,getShowWooPayIncompatibilityNotice:()=>_n,getStripeBillingMigratedCount:()=>wn,getStripeBillingSubscriptionCount:()=>Sn,getWooPayCustomMessage:()=>mn,getWooPayLocations:()=>fn,getWooPayStoreLogo:()=>hn,isDirty:()=>wr,isSavingSettings:()=>Sr});var b={};r.r(b),r.d(b,{saveSettings:()=>to,submitStripeBillingSubscriptionMigration:()=>po,updateAccountBrandingLogo:()=>Zn,updateAccountBusinessName:()=>Yn,updateAccountBusinessSupportAddress:()=>Gn,updateAccountBusinessSupportEmail:()=>Kn,updateAccountBusinessSupportPhone:()=>Qn,updateAccountBusinessURL:()=>Wn,updateAccountStatementDescriptor:()=>Hn,updateAccountStatementDescriptorKana:()=>Vn,updateAccountStatementDescriptorKanji:()=>qn,updateAdvancedFraudProtectionSettings:()=>lo,updateAvailablePaymentMethodIds:()=>Mn,updateDepositScheduleInterval:()=>Xn,updateDepositScheduleMonthlyAnchor:()=>eo,updateDepositScheduleWeeklyAnchor:()=>Jn,updateEnabledPaymentMethodIds:()=>Dn,updateIsCardPresentEligible:()=>Rn,updateIsDebugLogEnabled:()=>jn,updateIsManualCaptureEnabled:()=>Un,updateIsMultiCurrencyEnabled:()=>$n,updateIsPaymentRequestEnabled:()=>Nn,updateIsSavedCardsEnabled:()=>Tn,updateIsSavingSettings:()=>Fn,updateIsStripeBillingEnabled:()=>uo,updateIsTestModeEnabled:()=>zn,updateIsWCPayEnabled:()=>kn,updateIsWCPaySubscriptionsEnabled:()=>Bn,updateIsWooPayEnabled:()=>no,updateIsWooPayGlobalThemeSupportEnabled:()=>oo,updatePaymentRequestButtonBorderRadius:()=>Cn,updatePaymentRequestButtonSize:()=>An,updatePaymentRequestButtonTheme:()=>xn,updatePaymentRequestButtonType:()=>On,updatePaymentRequestLocations:()=>ro,updateProtectionLevel:()=>co,updateSelectedPaymentMethod:()=>Pn,updateSettings:()=>In,updateUnselectedPaymentMethod:()=>Ln,updateWooPayCustomMessage:()=>io,updateWooPayLocations:()=>so,updateWooPayStoreLogo:()=>ao});var v={};r.r(v),r.d(v,{getSettings:()=>mo});var S={};r.r(S),r.d(S,{getCardReaderStats:()=>fo,getCardReaderStatsError:()=>yo,getCardReaders:()=>go});var w={};r.r(w),r.d(w,{updateCardReaderStats:()=>_o,updateCardReaders:()=>bo,updateErrorForCardReaderStats:()=>vo,updateErrorForCardReaders:()=>So});var E={};r.r(E),r.d(E,{getCardReaderStats:()=>wo,getCardReaders:()=>Eo});var T={};r.r(T),r.d(T,{getActiveLoanSummary:()=>xo,getActiveLoanSummaryError:()=>Co,getLoans:()=>Io,getLoansError:()=>ko});var R={};r.r(R),r.d(R,{updateActiveLoanSummary:()=>No,updateErrorForActiveLoanSummary:()=>Do,updateErrorForLoans:()=>Fo,updateLoans:()=>Mo});var O={};r.r(O),r.d(O,{getActiveLoanSummary:()=>Po,getLoans:()=>Lo});var A={};r.r(A),r.d(A,{getDocuments:()=>Bo,getDocumentsError:()=>Ho,getDocumentsSummary:()=>Vo,getDocumentsSummaryError:()=>Yo});var x={};r.r(x),r.d(x,{updateDocuments:()=>Wo,updateDocumentsSummary:()=>Ko,updateErrorForDocuments:()=>Go,updateErrorForDocumentsSummary:()=>Qo});var C={};r.r(C),r.d(C,{formatQueryFilters:()=>Zo,getDocuments:()=>Xo,getDocumentsSummary:()=>Jo});var I={};r.r(I),r.d(I,{getPaymentIntent:()=>ti,getPaymentIntentError:()=>ri});var k={};r.r(k),r.d(k,{getAuthorization:()=>ci,getAuthorizations:()=>si,getAuthorizationsError:()=>li,getAuthorizationsSummary:()=>di,getAuthorizationsSummaryError:()=>pi,getIsRequesting:()=>mi});var N={};r.r(N),r.d(N,{setIsRequestingAuthorization:()=>bi,submitCancelAuthorization:()=>Si,submitCaptureAuthorization:()=>vi,updateAuthorization:()=>gi,updateAuthorizations:()=>fi,updateAuthorizationsSummary:()=>_i,updateErrorForAuthorizations:()=>yi,updateErrorForAuthorizationsSummary:()=>wi});var D={};r.r(D),r.d(D,{getAuthorization:()=>Ti,getAuthorizations:()=>Ei,getAuthorizationsSummary:()=>Ri});var M={};r.r(M),r.d(M,{getFile:()=>Ci,getFileError:()=>Ii});var F={};r.r(F),r.d(F,{updateErrorForFiles:()=>Ni,updateFiles:()=>ki});var P={};r.r(P),r.d(P,{getFile:()=>Di});var L={};r.r(L),r.d(L,{getPaymentActivityData:()=>Fi});var U={};r.r(U),r.d(U,{updatePaymentActivity:()=>Pi});var z={};r.r(z),r.d(z,{getPaymentActivityData:()=>Li});var j={};r.r(j),r.d(j,{getAvailableCurrencies:()=>qi,getCurrencies:()=>Hi,getCurrencySettings:()=>Wi,getDefaultCurrency:()=>Yi,getEnabledCurrencies:()=>Vi,getStoreSettings:()=>Gi});var $={};r.r($),r.d($,{submitCurrencySettings:()=>ra,submitEnabledCurrenciesUpdate:()=>ta,submitStoreSettingsUpdate:()=>na,updateAvailableCurrencies:()=>Qi,updateCurrencies:()=>Ki,updateCurrencySettings:()=>Ji,updateDefaultCurrency:()=>Xi,updateEnabledCurrencies:()=>Zi,updateStoreSettings:()=>ea});var B={};r.r(B),r.d(B,{getCurrencies:()=>oa,getCurrencySettings:()=>ia,getStoreSettings:()=>aa});var H={};r.r(H),r.d(H,{Text:()=>Ju,block:()=>ed,destructive:()=>rd,highlighterText:()=>od,muted:()=>nd,positive:()=>td,upperCase:()=>id});const q=window.wp.data,V=window.wp.dataControls,Y="/wc/v3/payments",W="wc/payments",G=window.lodash,K={SET_DEPOSIT:"SET_DEPOSIT",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()),Z={byId:{},queries:{},count:0,instant:{}},X=e=>e&&e.deposits||{},J=(e,t)=>(X(e).byId||{})[t],ee=e=>{const t=X(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:r,balance:n,account:o}=t.data,i={lastPaid:r.last_paid,pending:n.pending,available:n.available,instant:n.instant},a={};for(const[e,t]of Object.entries(i))t?.forEach((t=>{const{currency:r}=t;a[r]||(a[r]={currency:r,lastPaid:void 0,pending:void 0,available:void 0,instant:void 0}),a[r][e]=t}));const s=Object.values(a);return{account:o,currencies:[...s.filter((e=>o.default_currency===e.currency)),...s.filter((e=>o.default_currency!==e.currency))]}},te=e=>(X(e).overviews||{}).error,re=(e,t)=>{const r=Q(t);return(X(e).queries||{})[r]||{}},ne=(e,t)=>(re(e,t).data||[]).map(J.bind(void 0,e)),oe=e=>X(e).count,ie=(e,t)=>re(e,t).error||{},ae=(e,t)=>{const r=Q(t);return(X(e).summary||{})[r]||{}},se=(e,t)=>ae(e,t).data||{},ce=(e,t)=>ae(e,t).error||{},le=e=>(X(e).instant||{}).data,ue=window.wp.i18n,de=window.wp.domReady;var pe=r.n(de);const me=(e,t={})=>{var r;if(window.wcpaySettings){Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country,hosting_provider:null===(r=wcpaySettings.trackingInfo)||void 0===r?void 0:r.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}pe()((()=>{var r,n;(null!==(n=null===(r=null===wc||void 0===wc?void 0:wc.tracks)||void 0===r?void 0:r.recordEvent)&&void 0!==n?n:wcTracks.recordEvent)(e,t)}))};var he=r(1609),fe=r.n(he);(0,he.createContext)({accountFees:{},accountLoans:{},accountStatus:{},featureFlags:{isAuthAndCaptureEnabled:!1,isDisputeIssuerEvidenceEnabled:!1,woopay:!1}}),(0,he.createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""});const ye=window.wc.currency;var ge=r.n(ye);(0,ue.__)("Australian dollar","woocommerce-payments"),(0,ue.__)("Canadian dollar","woocommerce-payments"),(0,ue.__)("Swiss franc","woocommerce-payments"),(0,ue.__)("Danish krone","woocommerce-payments"),(0,ue.__)("Euro","woocommerce-payments"),(0,ue.__)("Pound sterling","woocommerce-payments"),(0,ue.__)("Norwegian krone","woocommerce-payments"),(0,ue.__)("New Zealand dollar","woocommerce-payments"),(0,ue.__)("Swedish krona","woocommerce-payments"),(0,ue.__)("United States (US) dollar","woocommerce-payments");const _e=(e,t="USD",r=null,n=!1)=>{const o=(e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()))(t);o||(e/=100);const i=e<0,a=i?-1*e:e,s=i?"-":"",c=n?(e=>{const t=e.toUpperCase(),{currencyData:r,connect:{country:n="US"}}=wcpaySettings;if(r[n]?.code===t)return ge()(r[n]);const o=(0,G.find)(r,{code:t});if(o){const{defaultLocale:e={}}=o;return e.hasOwnProperty("decimalSeparator")&&e.hasOwnProperty("thousandSeparator")&&e.hasOwnProperty("symbolPosition")&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition),ge()(o)}return null})(t):((e,t=null)=>{const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,G.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,G.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return ge()(o)}return null})(t,r);if(null===c)return s+be(a,t,o);try{return s+("function"==typeof c.formatAmount?ve(c.formatAmount(a)):ve(c.formatCurrency(a)))}catch(e){return s+ve(be(a,t,o))}};function be(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(n){return(0,ue.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function ve(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const Se=window.wp.url,we=window.moment;var Ee=r.n(we);const Te=window.wp.date,Re=(window.wc.number,e=>(0,Se.addQueryArgs)("admin.php",e)),Oe=(e,t=!1)=>{const r=t?Ee()(e).endOf("day").utc().toISOString():Ee()(e).startOf("day").utc().toISOString();return e&&(0,Te.dateI18n)("Y-m-d H:i:s",r,!0)};function Ae(e){return{type:K.SET_DEPOSIT,data:e}}function xe(e){return{type:K.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function Ce(e,t){return{type:K.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function Ie(e,t){return{type:K.SET_DEPOSITS,query:e,data:t}}function ke(e){return{type:K.SET_DEPOSITS_COUNT,data:e}}function Ne(e,t,r){return{type:K.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function De(e,t){return{type:K.SET_DEPOSITS_SUMMARY,query:e,data:t}}function Me(e,t,r){return{type:K.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function Fe(e){return{type:K.SET_INSTANT_DEPOSIT,data:e}}function*Pe(e){try{yield(0,q.dispatch)(W).startResolution("getInstantDeposit",[e]);const t=yield(0,V.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield Fe(t),yield(0,q.dispatch)(W).invalidateResolutionForStoreSelector("getDeposits"),yield(0,q.dispatch)(W).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,q.dispatch)("core/notices").createSuccessNotice((0,ue.sprintf)((0,ue.__)("Instant payout for %s in transit.","woocommerce-payments"),_e(t.amount)),{actions:[{label:(0,ue.__)("View details","woocommerce-payments"),url:Re({page:"wc-admin",path:"/payments/payouts/details",id:t.id})}]})}catch{yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error creating instant payout.","woocommerce-payments"))}finally{yield(0,q.dispatch)(W).finishResolution("getInstantDeposit",[e])}}function*Le(e){if(/\W/.test(e))return;const t=(0,Se.addQueryArgs)(`${Y}/deposits/${e}`);try{const e=yield(0,V.apiFetch)({path:t});yield Ae(e)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving payout.","woocommerce-payments"))}}function*Ue(){const e=(0,Se.addQueryArgs)(`${Y}/deposits/overview-all`);try{const t=yield(0,V.apiFetch)({path:e});yield xe(t)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving all payouts' overviews.","woocommerce-payments")),yield Ce()}}const ze=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Oe(e.dateBefore,!0),date_after:Oe(e.dateAfter),date_between:e.dateBetween&&[Oe(e.dateBetween[0]),Oe(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.userLocale});function je(e){return(0,Se.addQueryArgs)(`${Y}/deposits/download`,ze(e))}function*$e(e){const t=(0,Se.addQueryArgs)(`${Y}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...ze(e)});try{const r=yield(0,V.apiFetch)({path:t})||{};yield Ie(e,r.data),yield ke(r.total_count);for(const e in r.data)yield q.controls.dispatch(W,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving payouts.","woocommerce-payments")),yield Ne(e,null,t)}}function*Be(e){const t=(0,Se.addQueryArgs)(`${Y}/deposits/summary`,ze(e));try{const r=yield(0,V.apiFetch)({path:t});yield De(e,r)}catch(t){yield Me(e,null,t)}}const He={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"},qe={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},Ve=e=>e&&e.transactions||{},Ye=(e,t)=>{const r=Q(t);return Ve(e)[r]||{}},We=(e,t)=>Ye(e,t).data||[],Ge=(e,t)=>Ye(e,t).error||{},Ke=(e,t)=>{const r=Q(t);return Ve(e).summary[r]||{}},Qe=(e,t)=>Ke(e,t).data||{},Ze=(e,t)=>Ke(e,t).error||{},Xe=(e,t,r)=>{const n=Q(r);return Ve(e).fraudProtection?.[t]?.[n]||{}},Je=(e,t,r)=>Xe(e,t,r).data||[],et=(e,t,r)=>Xe(e,t,r).error||{},tt=(e,t,r)=>{const n=Q(r);return Ve(e).fraudProtection?.[t]?.summary[n]||{}},rt=(e,t,r)=>tt(e,t,r).data||{},nt=(e,t,r)=>tt(e,t,r).error||{};function ot(e,t){return{type:He.SET_TRANSACTIONS,query:e,data:t}}function it(e,t,r){return{type:He.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function at(e,t){return{type:He.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function st(e,t,r){return{type:He.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function ct(e,t,r){return{type:He.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function lt(e,t,r){return{type:He.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function ut(e,t,r){return{type:He.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function dt(e,t,r){return{type:He.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const pt=e=>({user_email:e.userEmail,match:e.match,date_before:Oe(e.dateBefore,!0),date_after:Oe(e.dateAfter),date_between:e.dateBetween&&[Oe(e.dateBetween[0]),Oe(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,type_is_in:e.typeIsIn,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,channel_is:e.channelIs,channel_is_not:e.channelIsNot,customer_country_is:e.customerCountryIs,customer_country_is_not:e.customerCountryIsNot,risk_level_is:e.riskLevelIs,risk_level_is_not:e.riskLevelIsNot,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,source_is:e.sourceIs,source_is_not:e.sourceIsNot,search:e.search,user_timezone:Ee()(new Date).format("Z"),locale:e.userLocale});function*mt(e){const t=(0,Se.addQueryArgs)(`${Y}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...pt(e)});try{const r=yield(0,V.apiFetch)({path:t});yield ot(e,r.data||[])}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transactions.","woocommerce-payments")),yield it(e,null,t)}}function ht(e){return(0,Se.addQueryArgs)(`${Y}/transactions/download`,pt(e))}function*ft(e){const t=(0,Se.addQueryArgs)(`${Y}/transactions/summary`,pt(e));try{const r=yield(0,V.apiFetch)({path:t});yield at(e,r)}catch(t){yield st(e,null,t)}}function*yt(e,t){const r=(0,Se.addQueryArgs)(`${Y}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...pt(t)});try{const n=yield(0,V.apiFetch)({path:r});yield ct(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield ct(e,t,[]));yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transactions.","woocommerce-payments")),yield lt(e,t,r)}}function*gt(e,t){const r=(0,Se.addQueryArgs)(`${Y}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,V.apiFetch)({path:r});yield ut(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield ut(e,t,n));yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving on review transactions.","woocommerce-payments")),yield dt(e,t,r)}}function _t(e,t){return(0,Se.addQueryArgs)(`${Y}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...pt(t)})}const bt={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},vt=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},St=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},wt=(e,t)=>vt(e,t),Et=(e,t)=>St(e,t);function Tt(e,t){return{type:bt.SET_CHARGE,id:e,data:t}}function Rt(e,t,r){return{type:bt.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*Ot(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/charges/${e}`});yield Tt(e,t)}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transaction.","woocommerce-payments")),yield Rt(e,null,t)}}function*At(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/charges/order/${e}`});yield Tt(e,t)}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transaction.","woocommerce-payments")),yield Rt(e,null,t)}}const xt={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Ct=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},It=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function kt(e,t){return{id:e,type:xt.SET_TIMELINE,data:t}}function Nt(e,t){return{id:e,type:xt.SET_ERROR_FOR_TIMELINE,error:t}}function*Dt(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/timeline/${e}`});yield kt(e,t.data)}catch(t){yield Nt(e,t)}}const Mt={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},Ft={byId:{},queries:{},summary:{},cached:{}},Pt=e=>e&&e.disputes||{},Lt=(e,t)=>(Pt(e).byId||{})[t],Ut=(e,t)=>{const r=Pt(e).byId||{};return r[t]?.error},zt=(e,t)=>(Pt(e).cached||{})[t],jt=(e,t)=>{const r=((e,t)=>{const r=Q(t);return(Pt(e).queries||{})[r]||{}})(e,t).data||[];return r.map(zt.bind(void 0,e))},$t=(e,t)=>((e,t)=>{const r=Q(t);return(Pt(e).summary||{})[r]||{}})(e,t).data||{};var Bt;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Bt||(Bt={}));const Ht=Bt;function qt(e,t){return{type:Ht.SET_PAYMENT_INTENT,id:e,data:t}}function Vt(e,t){return{type:Ht.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*Yt(e,t){var r;const n=e.payment_intent;try{yield(0,V.apiFetch)({path:"/wc/v3/payments/refund/",method:"post",data:{charge_id:e.id,amount:e.amount,reason:t,order_id:null===(r=null==e?void 0:e.order)||void 0===r?void 0:r.number}}),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getTimeline"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield q.controls.dispatch("core/notices","createSuccessNotice",(0,ue.sprintf)((0,ue.__)("Refunded payment #%s.","woocommerce-payments"),n))}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.sprintf)((0,ue.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),n))}}function*Wt(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/payment_intents/${e}`});yield qt(e,t)}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transaction.","woocommerce-payments")),yield Vt(e,t)}}function Gt(e){return{type:Mt.SET_DISPUTE,data:e}}function Kt(e,t,r){return{type:Mt.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:r}}function Qt(e,t){return{type:Mt.SET_DISPUTES,query:e,data:t}}function Zt(e,t){return{type:Mt.SET_DISPUTES_SUMMARY,query:e,data:t}}function*Xt(e){const{id:t,payment_intent:r}=e;try{yield q.controls.dispatch(W,"startResolution","getDispute",[t]);const e=yield(0,V.apiFetch)({path:`${Y}/disputes/${t}/close`,method:"post"});yield Gt(e),yield Wt(r),yield q.controls.dispatch(W,"finishResolution","getDispute",[t]);const n=e.order?(0,ue.sprintf)((0,ue.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,ue.__)("You have accepted the dispute.","woocommerce-payments");yield q.controls.dispatch("core/notices","createSuccessNotice",n)}catch(e){const r=(0,ue.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield q.controls.dispatch("core/notices","createErrorNotice",r),yield q.controls.dispatch(W,"finishResolution","getDispute",[t])}}const Jt=window.wc.wcSettings,er=((0,ue.__)("Bank cannot process","woocommerce-payments"),(0,ue.__)("Check returned","woocommerce-payments"),(0,ue.__)("Credit not processed","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims a credit was not processed.","woocommerce-payments"),(0,ue.__)("Customer initiated","woocommerce-payments"),(0,ue.__)("Debit not authorized","woocommerce-payments"),(0,ue.__)("Duplicate","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,ue.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,ue.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments"),(0,ue.__)("Transaction unauthorized","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments"),(0,ue.__)("General","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("Incorrect account details","woocommerce-payments"),(0,ue.__)("Insufficient funds","woocommerce-payments"),(0,ue.__)("Product not received","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims the product was not received.","woocommerce-payments"),(0,ue.__)("Product unacceptable","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,ue.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims the product was unacceptable.","woocommerce-payments"),(0,ue.__)("Subscription canceled","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,ue.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims a subscription was canceled.","woocommerce-payments"),(0,ue.__)("Unrecognized","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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"),{warning_needs_response:(0,ue.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,ue.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,ue.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,ue.__)("Needs response","woocommerce-payments"),under_review:(0,ue.__)("Under review","woocommerce-payments"),charge_refunded:(0,ue.__)("Charge refunded","woocommerce-payments"),won:(0,ue.__)("Won","woocommerce-payments"),lost:(0,ue.__)("Lost","woocommerce-payments")}),tr=(Object.entries(er).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),["needs_response","warning_needs_response"]),rr=((0,ue.__)("Dispute currency","woocommerce-payments"),(0,ue.__)("All currencies","woocommerce-payments"),(0,ue.__)("Show","woocommerce-payments"),(0,ue.__)("Needs response","woocommerce-payments"),(0,ue.__)("All disputes","woocommerce-payments"),(0,ue.__)("Advanced filters","woocommerce-payments"),(0,Jt.getSetting)("wcVersion")),nr=parseFloat(rr),or=(nr<7.8?(0,ue.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,ue.__)("Disputes match <select /> filters","woocommerce-payments"),(0,ue.__)("Disputed on date","woocommerce-payments"),(0,ue.__)("Remove dispute date filter","woocommerce-payments"),(0,ue.__)("Select a dispute date filter match","woocommerce-payments"),nr<7.8?(0,ue.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,ue.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),(0,ue.__)("Select a dispute date","woocommerce-payments"),(0,ue.__)("Before","woocommerce-payments"),(0,ue.__)("After","woocommerce-payments"),(0,ue.__)("Between","woocommerce-payments"),(0,ue.__)("Status","woocommerce-payments"),(0,ue.__)("Remove dispute status filter","woocommerce-payments"),(0,ue.__)("Select a dispute status filter match","woocommerce-payments"),nr<7.8?(0,ue.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,ue.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),(0,ue.__)("Select a dispute status","woocommerce-payments"),(0,ue._x)("Is","dispute status","woocommerce-payments"),(0,ue._x)("Is not","dispute status","woocommerce-payments"),e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Oe(e.dateBefore,!0),date_after:Oe(e.dateAfter),date_between:e.dateBetween&&[Oe(e.dateBetween[0]),Oe(e.dateBetween[1],!0)],search:"awaiting_response"===e.filter?tr:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.userLocale}));function ir(e){return(0,Se.addQueryArgs)(`${Y}/disputes/download`,or(e))}function*ar(e){const t=(0,Se.addQueryArgs)(`${Y}/disputes/${e}`);try{const e=yield(0,V.apiFetch)({path:t});yield Gt(e)}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving dispute.","woocommerce-payments")),yield Kt(e,void 0,t)}}function*sr(e){const t=(0,Se.addQueryArgs)(`${Y}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,G.snakeCase)(e.orderBy),direction:e.order,...or(e)});try{const r=yield(0,V.apiFetch)({path:t})||{};yield Qt(e,r.data)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving disputes.","woocommerce-payments"))}}function*cr(e){const t=(0,Se.addQueryArgs)(`${Y}/disputes/summary`,{page:e.paged,pagesize:e.perPage,...or(e)});try{const r=yield(0,V.apiFetch)({path:t});yield Zt(e,r)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const lr={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"},ur={isDirty:!1,isSaving:!1,savingError:null,data:{}},dr={},pr=[],mr=e=>e&&e.settings||dr,hr=e=>mr(e).data||dr,fr=e=>hr(e).account_business_support_address||dr,yr=e=>hr(e).duplicated_payment_method_ids||dr,gr=e=>hr(e).is_wcpay_enabled||!1,_r=e=>hr(e).enabled_payment_method_ids||pr,br=e=>hr(e).available_payment_method_ids||pr,vr=e=>hr(e).payment_method_statuses||pr,Sr=e=>mr(e).isSaving||!1,wr=e=>mr(e).isDirty||!1,Er=e=>hr(e).account_statement_descriptor||"",Tr=e=>hr(e).account_statement_descriptor_kanji||"",Rr=e=>hr(e).account_statement_descriptor_kana||"",Or=e=>hr(e).account_business_name||"",Ar=e=>hr(e).account_business_url||"",xr=e=>hr(e).account_business_support_address||"",Cr=e=>fr(e).country||"",Ir=e=>fr(e).line1||"",kr=e=>fr(e).line2||"",Nr=e=>fr(e).city||"",Dr=e=>fr(e).state||"",Mr=e=>fr(e).postal_code||"",Fr=e=>hr(e).account_business_support_email||"",Pr=e=>hr(e).account_business_support_phone||"",Lr=e=>hr(e).account_branding_logo||"",Ur=e=>hr(e).account_domestic_currency||"",zr=e=>hr(e).deposit_schedule_interval||"",jr=e=>hr(e).deposit_schedule_weekly_anchor||"",$r=e=>hr(e).deposit_schedule_monthly_anchor||"",Br=e=>hr(e).deposit_delay_days||"7",Hr=e=>hr(e).deposit_completed_waiting_period||!1,qr=e=>hr(e).deposit_status||"",Vr=e=>hr(e).deposit_restrictions||"",Yr=e=>hr(e).is_manual_capture_enabled||!1,Wr=e=>hr(e).is_test_mode_enabled||!1,Gr=e=>hr(e).is_test_mode_onboarding||!1,Kr=e=>hr(e).is_dev_mode_enabled||!1,Qr=e=>hr(e).is_payment_request_enabled||!1,Zr=e=>hr(e).is_debug_log_enabled||!1,Xr=e=>hr(e).is_multi_currency_enabled||!1,Jr=e=>hr(e).payment_request_enabled_locations||pr,en=e=>hr(e).payment_request_button_type||"",tn=e=>hr(e).payment_request_button_size||"",rn=e=>hr(e).payment_request_button_theme||"",nn=e=>{const t=hr(e)?.payment_request_button_border_radius;return 0===t||"0"===t||t?t:"undefined"==typeof wcpaySettings?4:parseInt(window?.wcpaySettings?.defaultExpressCheckoutBorderRadius||4,10)},on=e=>hr(e).is_saved_cards_enabled||!1,an=e=>mr(e).savingError,sn=e=>hr(e).is_card_present_eligible||!1,cn=e=>hr(e).is_wcpay_subscriptions_enabled||!1,ln=e=>hr(e).is_wcpay_subscriptions_eligible||!1,un=e=>hr(e).is_subscriptions_plugin_active||!1,dn=e=>hr(e).is_woopay_enabled||!1,pn=e=>hr(e).is_woopay_global_theme_support_enabled||!1,mn=e=>hr(e).woopay_custom_message||"",hn=e=>hr(e).woopay_store_logo||"",fn=e=>hr(e).woopay_enabled_locations||pr,yn=e=>hr(e).current_protection_level||"basic",gn=e=>hr(e).advanced_fraud_protection_settings||pr,_n=e=>hr(e).show_woopay_incompatibility_notice||!1,bn=e=>hr(e).is_stripe_billing_enabled||!1,vn=e=>hr(e).is_migrating_stripe_billing||!1,Sn=e=>hr(e).stripe_billing_subscription_count||0,wn=e=>hr(e).stripe_billing_migrated_count||0;function En(e){return{type:lr.SET_SETTINGS_VALUES,payload:e}}function Tn(e){return En({is_saved_cards_enabled:e})}function Rn(e){return En({is_card_present_eligible:e})}function On(e){return En({payment_request_button_type:e})}function An(e){return En({payment_request_button_size:e})}function xn(e){return En({payment_request_button_theme:e})}function Cn(e){return En({payment_request_button_border_radius:e})}function In(e){return{type:lr.SET_SETTINGS,data:e}}function kn(e){return En({is_wcpay_enabled:e})}function Nn(e){return En({is_payment_request_enabled:e})}function Dn(e){return En({enabled_payment_method_ids:[...e]})}function Mn(e){return En({available_payment_method_ids:[...e]})}function Fn(e,t){return{type:lr.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function Pn(e){return{type:lr.SET_SELECTED_PAYMENT_METHOD,id:e}}function Ln(e){return{type:lr.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function Un(e){return En({is_manual_capture_enabled:e})}function zn(e){return En({is_test_mode_enabled:e})}function jn(e){return En({is_debug_log_enabled:e})}function $n(e){return En({is_multi_currency_enabled:e})}function Bn(e){return En({is_wcpay_subscriptions_enabled:e})}function Hn(e){return En({account_statement_descriptor:e})}function qn(e){return En({account_statement_descriptor_kanji:e})}function Vn(e){return En({account_statement_descriptor_kana:e})}function Yn(e){return En({account_business_name:e})}function Wn(e){return En({account_business_url:e})}function Gn(e){return En({account_business_support_address:e})}function Kn(e){return En({account_business_support_email:e})}function Qn(e){return En({account_business_support_phone:e})}function Zn(e){return En({account_branding_logo:e})}function Xn(e){return En({deposit_schedule_interval:e})}function Jn(e){return En({deposit_schedule_weekly_anchor:e})}function eo(e){return En({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function*to(){let e=null;try{const e=(0,q.select)(W).getSettings();yield Fn(!0,null);const t=yield(0,V.apiFetch)({path:`${Y}/settings`,method:"post",data:e});yield En({payment_method_statuses:t.data.payment_method_statuses}),yield(0,q.dispatch)("core/notices").createSuccessNotice((0,ue.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error saving settings.","woocommerce-payments")),e.server_error&&(yield(0,q.dispatch)("core/notices").createErrorNotice(e.server_error))}finally{yield Fn(!1,e)}return null===e}function ro(e){return En({payment_request_enabled_locations:[...e]})}function no(e){return En({is_woopay_enabled:e})}function oo(e){return En({is_woopay_global_theme_support_enabled:e})}function io(e){return En({woopay_custom_message:e})}function ao(e){return En({woopay_store_logo:e})}function so(e){return En({woopay_enabled_locations:[...e]})}function co(e){return En({current_protection_level:e})}function lo(e){return En({advanced_fraud_protection_settings:e})}function uo(e){return En({is_stripe_billing_enabled:e})}function*po(){try{yield(0,q.dispatch)(W).startResolution("scheduleStripeBillingMigration"),yield(0,V.apiFetch)({path:`${Y}/settings/schedule-stripe-billing-migration`,method:"post"})}catch(e){yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error starting the Stripe Billing migration.","woocommerce-payments"))}yield(0,q.dispatch)(W).finishResolution("scheduleStripeBillingMigration")}function*mo(){const e=`${Y}/settings`;try{const t=yield(0,V.apiFetch)({path:e});yield In(t)}catch(e){yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error retrieving settings.","woocommerce-payments"))}}const ho={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"},fo=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},yo=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},go=e=>e.readers&&e.readers.list?e.readers.list:{};function _o(e,t){return{type:ho.SET_CARD_READER_STATS,id:e,data:t}}function bo(e,t){return{type:ho.SET_READERS,query:e,data:t}}function vo(e,t,r){return{type:ho.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:r}}function So(e,t){return{type:ho.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*wo(e,t){try{const r=yield(0,V.apiFetch)({path:`${Y}/readers/charges/${t}`});yield _o(e,r)}catch(t){yield vo(e,null,t)}}function*Eo(e){const t=(0,Se.addQueryArgs)(`${Y}/readers`,{limit:e.limit});try{const r=yield(0,V.apiFetch)({path:t})||{};yield bo(e,r)}catch(e){yield So(null,e)}}var To;!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"}(To||(To={}));const Ro=To,Oo={},Ao=e=>e&&e.capital||{},xo=e=>Ao(e).summary,Co=e=>Ao(e).summaryError,Io=e=>Ao(e).loans||[],ko=e=>Ao(e).loansError;function No(e){return{type:Ro.SET_ACTIVE_LOAN_SUMMARY,data:e}}function Do(e){return{type:Ro.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function Mo(e){return{type:Ro.SET_LOANS,data:e.data}}function Fo(e){return{type:Ro.SET_ERROR_FOR_LOANS,error:e}}function*Po(){const e=`${Y}/capital/active_loan_summary`;try{const t=yield(0,V.apiFetch)({path:e});yield No(t)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield Do(e)}}function*Lo(){const e=`${Y}/capital/loans`;try{const t=yield(0,V.apiFetch)({path:e});yield Mo(t)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield Fo(e)}}const Uo={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"},zo={summary:{}},jo=e=>e&&e.documents||{},$o=(e,t)=>{const r=Q(t);return jo(e)[r]||{}},Bo=(e,t)=>$o(e,t).data||[],Ho=(e,t)=>$o(e,t).error||{},qo=(e,t)=>{const r=Q(t);return jo(e).summary[r]||{}},Vo=(e,t)=>qo(e,t).data||{},Yo=(e,t)=>qo(e,t).error||{};function Wo(e,t){return{type:Uo.SET_DOCUMENTS,query:e,data:t}}function Go(e,t,r){return{type:Uo.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:r}}function Ko(e,t){return{type:Uo.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function Qo(e,t,r){return{type:Uo.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:r}}const Zo=e=>({user_email:e.userEmail,match:e.match,date_before:Oe(e.dateBefore,!0),date_after:Oe(e.dateAfter),date_between:e.dateBetween&&[Oe(e.dateBetween[0]),Oe(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*Xo(e){const t=(0,Se.addQueryArgs)(`${Y}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Zo(e)});try{const r=yield(0,V.apiFetch)({path:t});yield Wo(e,r.data||[])}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving documents.","woocommerce-payments")),yield Go(e,null,t)}}function*Jo(e){const t=(0,Se.addQueryArgs)(`${Y}/documents/summary`,Zo(e));try{const r=yield(0,V.apiFetch)({path:t});yield Ko(e,r)}catch(t){yield Qo(e,null,t)}}const ei={},ti=({paymentIntents:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.data)||{}},ri=({paymentIntents:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.error)||{}},ni={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"},oi={summary:{},byId:{},isRequesting:!1},ii=e=>e&&e.authorizations||{},ai=(e,t)=>{const r=Q(t);return ii(e)[r]||{}},si=(e,t)=>ai(e,t).data||[],ci=(e,t)=>(ii(e).byId||{})[t],li=(e,t)=>ai(e,t).error||{},ui=(e,t)=>{const r=Q(t);return ii(e).summary[r]||{}},di=(e,t)=>ui(e,t).data||{},pi=(e,t)=>ui(e,t).error||{},mi=e=>ii(e).isRequesting,hi=e=>{var t;const r={wcpay_missing_order:(0,ue.__)("The order could not be found.","woocommerce-payments"),wcpay_refunded_order_uncapturable:(0,ue.__)("Payment cannot be processed for partially or fully refunded orders.","woocommerce-payments"),wcpay_intent_order_mismatch:(0,ue.__)("The payment cannot be processed due to a mismatch with order details.","woocommerce-payments"),wcpay_payment_uncapturable:(0,ue.__)("This payment cannot be processed in its current state.","woocommerce-payments"),wcpay_capture_error:(0,ue.__)("The payment capture failed to complete.","woocommerce-payments"),wcpay_cancel_error:(0,ue.__)("The payment cancellation failed to complete.","woocommerce-payments"),wcpay_server_error:(0,ue.__)("An unexpected error occurred. Please try again later.","woocommerce-payments"),wcpay_capture_error_amount_too_small:e=>{var t,r,n,o;if(!(null===(r=null===(t=e.data)||void 0===t?void 0:t.extra_details)||void 0===r?void 0:r.minimum_amount)||!(null===(o=null===(n=e.data)||void 0===n?void 0:n.extra_details)||void 0===o?void 0:o.minimum_amount_currency))return(0,ue.__)("The payment amount is too small to be processed.","woocommerce-payments");const i=e.data.extra_details.minimum_amount_currency,a=_e(e.data.extra_details.minimum_amount,i);return(0,ue.sprintf)((0,ue.__)("The minimum amount that can be processed is %1$s %2$s.","woocommerce-payments"),a,i.toUpperCase())}},n=r[null!==(t=e.code)&&void 0!==t?t:""];return"function"==typeof n?n(e):null!=n?n:(0,ue.__)("Unable to process the payment. Please try again later.","woocommerce-payments")};function fi(e,t){return{type:ni.SET_AUTHORIZATIONS,data:t,query:e}}function yi(e,t){return{type:ni.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function gi(e){return{type:ni.SET_AUTHORIZATION,data:e}}function _i(e,t){return{type:ni.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function bi(e){return{type:ni.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function*vi(e,t){try{yield q.controls.dispatch(W,"startResolution","getAuthorization",[e]),yield q.controls.dispatch(W,"setIsRequestingAuthorization",!0);const r=yield(0,V.apiFetch)({path:`/wc/v3/payments/orders/${t}/capture_authorization`,method:"post",data:{payment_intent_id:e}}),n={payment_intent_id:r.id,captured:"succeeded"===r.status};yield gi(n),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getAuthorizations"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getTimeline"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getTransactions"),yield q.controls.dispatch("core/notices","createSuccessNotice",(0,ue.sprintf)((0,ue.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))}catch(e){const r=(0,ue.sprintf)((0,ue.__)("There has been an error capturing the payment for order #%s.","woocommerce-payments"),t),n=hi(e);yield q.controls.dispatch("core/notices","createErrorNotice",`${r} ${n}`)}finally{yield q.controls.dispatch(W,"finishResolution","getAuthorization",[e]),yield q.controls.dispatch(W,"setIsRequestingAuthorization",!1)}}function*Si(e,t){try{yield q.controls.dispatch(W,"startResolution","getAuthorization",[e]),yield q.controls.dispatch(W,"setIsRequestingAuthorization",!0);const r=yield(0,V.apiFetch)({path:`/wc/v3/payments/orders/${t}/cancel_authorization`,method:"post",data:{payment_intent_id:e}}),n={payment_intent_id:r.id,captured:"succeeded"===r.status};yield gi(n),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getAuthorizations"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getTimeline"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield q.controls.dispatch("core/notices","createSuccessNotice",(0,ue.sprintf)((0,ue.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))}catch(e){const r=(0,ue.sprintf)((0,ue.__)("There has been an error canceling the payment for order #%s.","woocommerce-payments"),t),n=hi(e);yield q.controls.dispatch("core/notices","createErrorNotice",`${r} ${n}`)}finally{yield q.controls.dispatch(W,"finishResolution","getAuthorization",[e]),yield q.controls.dispatch(W,"setIsRequestingAuthorization",!1)}}function wi(e,t){return{type:ni.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}function*Ei(e){var t;let{paged:r=1,per_page:n=25,orderby:o="created",order:i="asc"}=e;"capture_by"===o&&(o="created");const a=(0,Se.addQueryArgs)(`${Y}/authorizations`,{page:r,pagesize:n,sort:o,direction:i});try{const r=yield(0,V.apiFetch)({path:a});yield fi(e,null!==(t=r.data)&&void 0!==t?t:[])}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield yi(e,t)}}function*Ti(e){try{if(e){const t=yield(0,V.apiFetch)({path:`${Y}/authorizations/${e}`}),{is_captured:r,payment_intent_id:n,created:o}=t;yield gi({payment_intent_id:n,captured:r,created:o})}}catch(e){"authorization_missing"!==e.code&&(yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving authorization.","woocommerce-payments")))}}function*Ri(e){const t=(0,Se.addQueryArgs)(`${Y}/authorizations/summary`,{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged});try{const r=yield(0,V.apiFetch)({path:t});yield _i(e,null!=r?r:[])}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield wi(e,t)}}var Oi;!function(e){e.SET_FILE="SET_FILE",e.SET_ERROR_FOR_FILES="SET_ERROR_FOR_FILES"}(Oi||(Oi={}));const Ai=Oi,xi={},Ci=({files:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.data)||{}},Ii=({files:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.error)||{}};function ki(e,t){return{type:Ai.SET_FILE,id:e,data:t}}function Ni(e,t){return{type:Ai.SET_ERROR_FOR_FILES,id:e,error:t}}function*Di(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/file/${e}/details`});yield ki(e,t)}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving file.","woocommerce-payments")),yield Ni(e,t)}}const Mi={SET_PAYMENT_ACTIVITY_DATA:"SET_PAYMENT_ACTIVITY_DATA"},Fi=(e,t)=>{var r;const n=Q(t);return null===(r=null==e?void 0:e.paymentActivity)||void 0===r?void 0:r[n]};function Pi(e,t){return{type:Mi.SET_PAYMENT_ACTIVITY_DATA,query:t,data:e}}function*Li(e){const t=(0,Se.addQueryArgs)(`${Y}/reporting/payment_activity`,e);try{const r=yield(0,V.apiFetch)({path:t});yield Pi(r,e)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving payment activity data.","woocommerce-payments"))}}(0,q.registerStore)(W,{reducer:(0,q.combineReducers)({deposits:(e=Z,{type:t,query:r={},data:n=[],error:o})=>{const i=Q(r);switch(t){case K.SET_DEPOSIT:return{...e,byId:{...e.byId,[n.id]:n}};case K.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:n}};case K.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:o}};case K.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,G.keyBy)(n,"id")},queries:{...e.queries,[i]:{data:(0,G.map)(n,"id")}}};case K.SET_DEPOSITS_COUNT:return{...e,count:n};case K.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[i]:{error:o}}};case K.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}};case K.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[i]:{error:o}}};case K.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:n}}}return e},transactions:(e=qe,{type:t,query:r={},data:n=[],error:o,status:i})=>{const a=Q(r);switch(t){case He.SET_TRANSACTIONS:return{...e,[a]:{data:n}};case He.SET_ERROR_FOR_TRANSACTIONS:return{...e,[a]:{error:o}};case He.SET_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case He.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}};case He.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[i]:{...e.fraudProtection?.[i]||{},[a]:{data:n}}}};case He.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[i]:{...e.fraudProtection?.[i]||{},[a]:{error:o}}}};case He.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[i]:{...e.fraudProtection?.[i]||{},summary:{...e.fraudProtection?.[i]?.summary||{},[a]:{data:n}}}}};case He.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[i]:{...e.fraudProtection?.[i]||{},summary:{...e.fraudProtection?.[i]?.summary||{},[a]:{error:o}}}}}}return e},charges:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case bt.SET_CHARGE:e={...e,[r]:{...e[r],data:n}};break;case bt.SET_ERROR_FOR_CHARGE:e={...e,[r]:{...e[r],error:o}}}return e},timeline:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case xt.SET_TIMELINE:e={...e,[r]:{data:n}};break;case xt.SET_ERROR_FOR_TIMELINE:e={...e,[r]:{...e[r],error:o}}}return e},disputes:(e=Ft,{type:t,query:r={},data:n=[],id:o,error:i})=>{const a=Q(r);switch(t){case Mt.SET_DISPUTE:return{...e,byId:{...e.byId,[n.id]:n}};case Mt.SET_ERROR_FOR_DISPUTE:e={...e,byId:{...e.byId,[o]:{error:i}}};break;case Mt.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,G.keyBy)(n,"dispute_id")},queries:{...e.queries,[a]:{data:(0,G.map)(n,"dispute_id")}}};case Mt.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}}}return e},settings:(e=ur,{type:t,...r})=>{switch(t){case lr.SET_SETTINGS:return{...e,data:r.data,isDirty:!1};case lr.SET_SETTINGS_VALUES:return{...e,savingError:null,isDirty:!0,data:{...e.data,...r.payload}};case lr.SET_IS_SAVING_SETTINGS:return{...e,isDirty:!(!r.isSaving&&!r.error)&&e.isDirty,isSaving:r.isSaving,savingError:r.error};case lr.SET_SELECTED_PAYMENT_METHOD:return{...e,isDirty:!0,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(r.id)}};case lr.SET_UNSELECTED_PAYMENT_METHOD:return{...e,isDirty:!0,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==r.id))}}}return e},readers:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case ho.SET_CARD_READER_STATS:e={...e,[r]:{...e[r],data:n}};break;case ho.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[r]:{...e[r],error:o}};break;case ho.SET_READERS:e={...e,list:n}}return e},capital:(e=Oo,t)=>{switch(t.type){case Ro.SET_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:t.data,summaryError:void 0});case Ro.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:void 0,summaryError:t.error});case Ro.SET_LOANS:return Object.assign(Object.assign({},e),{loans:t.data,loansError:void 0});case Ro.SET_ERROR_FOR_LOANS:return Object.assign(Object.assign({},e),{loans:void 0,loansError:t.error})}return e},documents:(e=zo,{type:t,query:r={},data:n=[],error:o})=>{const i=Q(r);switch(t){case Uo.SET_DOCUMENTS:return{...e,[i]:{data:n}};case Uo.SET_ERROR_FOR_DOCUMENTS:return{...e,[i]:{error:o}};case Uo.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}};case Uo.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[i]:{error:o}}}}return e},paymentIntents:(e=ei,t)=>{const{type:r,id:n}=t;switch(r){case Ht.SET_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case Ht.SET_ERROR_FOR_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}},authorizations:(e=oi,t)=>{switch(t.type){case ni.SET_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{byId:Object.assign(Object.assign({},e.byId),{[r.payment_intent_id]:Object.assign(Object.assign({},e.byId[r.payment_intent_id]),r)})})}case ni.SET_AUTHORIZATIONS:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{[Q(n)]:{data:r}})}case ni.SET_ERROR_FOR_AUTHORIZATIONS:{const{error:r,query:n}=t;return Object.assign(Object.assign({},e),{[Q(n)]:{error:r}})}case ni.SET_AUTHORIZATIONS_SUMMARY:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[Q(n)]:{data:r||{}}})})}case ni.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:{const{query:r,error:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[Q(r)]:{error:n||""}})})}case ni.SET_IS_REQUESTING_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{isRequesting:r})}}return e},files:(e=xi,t)=>{const{type:r,id:n}=t;switch(r){case Ai.SET_FILE:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case Ai.SET_ERROR_FOR_FILES:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}},paymentActivity:(e={},{type:t,query:r,data:n})=>{if(!r)return e;const o=Q(r);return t===Mi.SET_PAYMENT_ACTIVITY_DATA&&(e=Object.assign(Object.assign({},e),{[o]:n})),e}}),actions:{...t,...i,...c,...d,...y,...b,...w,...R,...x,...h,...N,...F,...U},controls:V.controls,selectors:{...e,...o,...s,...u,...m,..._,...S,...T,...A,...I,...k,...M,...L},resolvers:{...n,...a,...l,...p,...g,...v,...E,...O,...C,...f,...D,...P,...z}});const Ui="/wc/v3/payments",zi="wc/payments/multi-currency",ji={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"},$i={},Bi=e=>e&&e||{},Hi=e=>Bi(e).currencies||{},qi=e=>Hi(e).available||{},Vi=e=>Hi(e).enabled||{},Yi=e=>Hi(e).default||{},Wi=e=>Bi(e).currency_settings||{},Gi=e=>Bi(e).settings||{};function Ki(e){return{type:ji.SET_CURRENCIES,data:e}}function Qi(e){return{type:ji.SET_AVAILABLE_CURRENCIES,data:e}}function Zi(e){return{type:ji.SET_ENABLED_CURRENCIES,data:e}}function Xi(e){return{type:ji.SET_DEFAULT_CURRENCY,data:e}}function Ji(e,t){return{type:ji.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function ea(e){return{type:ji.SET_STORE_SETTINGS,data:e}}function*ta(e){const t=Object.keys((0,q.select)(zi).getEnabledCurrencies()),r=e.filter((e=>!t.includes(e))),n=t.filter((t=>!e.includes(t)));try{const t=yield(0,V.apiFetch)({path:`${Ui}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield Ki(t),yield(0,q.dispatch)("core/notices").createSuccessNotice((0,ue.__)("Enabled currencies updated.","woocommerce-payments")),me("wcpay_multi_currency_enabled_currencies_updated",{added_currencies:r,removed_currencies:n})}catch(e){yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*ra(e,t){try{const r=yield(0,V.apiFetch)({path:`${Ui}/multi-currency/currencies/${e}`,method:"POST",data:t});yield Ji(e,r),yield(0,q.dispatch)("core/notices").createSuccessNotice((0,ue.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error updating currency settings.","woocommerce-payments"))}}function*na(e,t,r=!1){try{const n=yield(0,V.apiFetch)({path:`${Ui}/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"}});if(yield ea(n),r)return;yield(0,q.dispatch)("core/notices").createSuccessNotice((0,ue.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error saving store settings.","woocommerce-payments"))}}function*oa(){const e=`${Ui}/multi-currency/currencies`;try{const t=yield(0,V.apiFetch)({path:e});yield Ki(t)}catch(e){yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error retrieving currencies.","woocommerce-payments"))}}function*ia(e){const t=`${Ui}/multi-currency/currencies/${e}`;try{const r=yield(0,V.apiFetch)({path:t});yield Ji(e,r)}catch(e){yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*aa(){const e=`${Ui}/multi-currency/get-settings`;try{const t=yield(0,V.apiFetch)({path:e});yield ea(t)}catch(e){yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error retrieving store settings.","woocommerce-payments"))}}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sa.apply(null,arguments)}(0,q.registerStore)(zi,{reducer:(e=$i,{type:t,data:r=[]})=>{switch(t){case ji.SET_CURRENCIES:return{...e,currencies:r,available:r.available,enabled:r.enabled,default:r.default};case ji.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:r.available},available:r.available};case ji.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:r.enabled},enabled:r.enabled};case ji.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:r.default},default:r.default};case ji.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[r.code]:r.data}};case ji.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},actions:{...$},controls:V.controls,selectors:{...j},resolvers:{...B}});const ca=window.wp.element;var la=r(2485),ua=r.n(la);const da=window.wp.compose,pa=window.wp.primitives,ma=(0,ca.createElement)(pa.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ca.createElement)(pa.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),ha=(0,ca.createElement)(pa.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ca.createElement)(pa.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),fa=window.wp.deprecated;var ya=r.n(fa);const ga=window.wp.dom,_a=(0,ca.createElement)(pa.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ca.createElement)(pa.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 ba(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const i=o.getBoundingClientRect();return new n.DOMRect(e.left+i.left,e.top+i.top,e.width,e.height)}let va=0;function Sa(e){const t=document.scrollingElement||document.body;e&&(va=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=va)}let wa=0;function Ea(){return(0,ca.useEffect)((()=>(0===wa&&Sa(!0),++wa,()=>{1===wa&&Sa(!1),--wa})),[]),null}window.wp.warning;var Ta=r(5606);const Ra=(0,ca.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==Ta&&Ta.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function Oa(e){const t=(0,ca.useContext)(Ra),r=t.slots[e]||{},n=t.fills[e],o=(0,ca.useMemo)((()=>n||[]),[n]);return{...r,updateSlot:(0,ca.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,ca.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,ca.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,ca.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}const Aa=(0,ca.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function xa(e){let{name:t,children:r,registerFill:n,unregisterFill:o}=e;const i=(e=>{const{getSlot:t,subscribe:r}=(0,ca.useContext)(Aa),[n,o]=(0,ca.useState)(t(e));return(0,ca.useEffect)((()=>(o(t(e)),r((()=>{o(t(e))})))),[e]),n})(t),a=(0,ca.useRef)({name:t,children:r});return(0,ca.useLayoutEffect)((()=>(n(t,a.current),()=>o(t,a.current))),[]),(0,ca.useLayoutEffect)((()=>{a.current.children=r,i&&i.forceUpdate()}),[r]),(0,ca.useLayoutEffect)((()=>{t!==a.current.name&&(o(a.current.name,a.current),a.current.name=t,n(t,a.current))}),[t]),i&&i.node?((0,G.isFunction)(r)&&(r=r(i.props.fillProps)),(0,ca.createPortal)(r,i.node)):null}const Ca=e=>(0,ca.createElement)(Aa.Consumer,null,(t=>{let{registerFill:r,unregisterFill:n}=t;return(0,ca.createElement)(xa,sa({},e,{registerFill:r,unregisterFill:n}))}));class Ia extends ca.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,G.map)(n(t,this),(e=>{const t=(0,G.isFunction)(e.children)?e.children(r):e.children;return ca.Children.map(t,((e,t)=>{if(!e||(0,G.isString)(e))return e;const r=e.key||t;return(0,ca.cloneElement)(e,{key:r})}))})).filter((0,G.negate)(ca.isEmptyElement));return(0,ca.createElement)(ca.Fragment,null,(0,G.isFunction)(e)?e(o):o)}}const ka=e=>(0,ca.createElement)(Aa.Consumer,null,(t=>{let{registerSlot:r,unregisterSlot:n,getFills:o}=t;return(0,ca.createElement)(Ia,sa({},e,{registerSlot:r,unregisterSlot:n,getFills:o}))}));var Na=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}(),Da=Math.abs,Ma=String.fromCharCode,Fa=Object.assign;function Pa(e){return e.trim()}function La(e,t,r){return e.replace(t,r)}function Ua(e,t){return e.indexOf(t)}function za(e,t){return 0|e.charCodeAt(t)}function ja(e,t,r){return e.slice(t,r)}function $a(e){return e.length}function Ba(e){return e.length}function Ha(e,t){return t.push(e),e}var qa=1,Va=1,Ya=0,Wa=0,Ga=0,Ka="";function Qa(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:qa,column:Va,length:a,return:""}}function Za(e,t){return Fa(Qa("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xa(){return Ga=Wa>0?za(Ka,--Wa):0,Va--,10===Ga&&(Va=1,qa--),Ga}function Ja(){return Ga=Wa<Ya?za(Ka,Wa++):0,Va++,10===Ga&&(Va=1,qa++),Ga}function es(){return za(Ka,Wa)}function ts(){return Wa}function rs(e,t){return ja(Ka,e,t)}function ns(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 os(e){return qa=Va=1,Ya=$a(Ka=e),Wa=0,[]}function is(e){return Ka="",e}function as(e){return Pa(rs(Wa-1,ls(91===e?e+2:40===e?e+1:e)))}function ss(e){for(;(Ga=es())&&Ga<33;)Ja();return ns(e)>2||ns(Ga)>3?"":" "}function cs(e,t){for(;--t&&Ja()&&!(Ga<48||Ga>102||Ga>57&&Ga<65||Ga>70&&Ga<97););return rs(e,ts()+(t<6&&32==es()&&32==Ja()))}function ls(e){for(;Ja();)switch(Ga){case e:return Wa;case 34:case 39:34!==e&&39!==e&&ls(Ga);break;case 40:41===e&&ls(e);break;case 92:Ja()}return Wa}function us(e,t){for(;Ja()&&e+Ga!==57&&(e+Ga!==84||47!==es()););return"/*"+rs(t,Wa-1)+"*"+Ma(47===e?e:Ja())}function ds(e){for(;!ns(es());)Ja();return rs(e,Wa)}var ps="-ms-",ms="-moz-",hs="-webkit-",fs="comm",ys="rule",gs="decl",_s="@keyframes";function bs(e,t){for(var r="",n=Ba(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function vs(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case gs:return e.return=e.return||e.value;case fs:return"";case _s:return e.return=e.value+"{"+bs(e.children,n)+"}";case ys:e.value=e.props.join(",")}return $a(r=bs(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ss(e){return is(ws("",null,null,null,[""],e=os(e),0,[0],e))}function ws(e,t,r,n,o,i,a,s,c){for(var l=0,u=0,d=a,p=0,m=0,h=0,f=1,y=1,g=1,_=0,b="",v=o,S=i,w=n,E=b;y;)switch(h=_,_=Ja()){case 40:if(108!=h&&58==za(E,d-1)){-1!=Ua(E+=La(as(_),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:E+=as(_);break;case 9:case 10:case 13:case 32:E+=ss(h);break;case 92:E+=cs(ts()-1,7);continue;case 47:switch(es()){case 42:case 47:Ha(Ts(us(Ja(),ts()),t,r),c);break;default:E+="/"}break;case 123*f:s[l++]=$a(E)*g;case 125*f:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+u:-1==g&&(E=La(E,/\f/g,"")),m>0&&$a(E)-d&&Ha(m>32?Rs(E+";",n,r,d-1):Rs(La(E," ","")+";",n,r,d-2),c);break;case 59:E+=";";default:if(Ha(w=Es(E,t,r,l,u,o,s,b,v=[],S=[],d),i),123===_)if(0===u)ws(E,t,w,w,v,i,d,s,S);else switch(99===p&&110===za(E,3)?100:p){case 100:case 108:case 109:case 115:ws(e,w,w,n&&Ha(Es(e,w,w,0,0,o,s,b,o,v=[],d),S),o,S,d,s,n?v:S);break;default:ws(E,w,w,w,[""],S,0,s,S)}}l=u=m=0,f=g=1,b=E="",d=a;break;case 58:d=1+$a(E),m=h;default:if(f<1)if(123==_)--f;else if(125==_&&0==f++&&125==Xa())continue;switch(E+=Ma(_),_*f){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[l++]=($a(E)-1)*g,g=1;break;case 64:45===es()&&(E+=as(Ja())),p=es(),u=d=$a(b=E+=ds(ts())),_++;break;case 45:45===h&&2==$a(E)&&(f=0)}}return i}function Es(e,t,r,n,o,i,a,s,c,l,u){for(var d=o-1,p=0===o?i:[""],m=Ba(p),h=0,f=0,y=0;h<n;++h)for(var g=0,_=ja(e,d+1,d=Da(f=a[h])),b=e;g<m;++g)(b=Pa(f>0?p[g]+" "+_:La(_,/&\f/g,p[g])))&&(c[y++]=b);return Qa(e,t,r,0===o?ys:s,c,l,u)}function Ts(e,t,r){return Qa(e,t,r,fs,Ma(Ga),ja(e,2,-2),0)}function Rs(e,t,r,n){return Qa(e,t,r,gs,ja(e,0,n),ja(e,n+1,-1),n)}var Os=function(e,t,r){for(var n=0,o=0;n=o,o=es(),38===n&&12===o&&(t[r]=1),!ns(o);)Ja();return rs(e,Wa)},As=new WeakMap,xs=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)||As.get(r))&&!n){As.set(e,!0);for(var o=[],i=function(e,t){return is(function(e,t){var r=-1,n=44;do{switch(ns(n)){case 0:38===n&&12===es()&&(t[r]=1),e[r]+=Os(Wa-1,t,r);break;case 2:e[r]+=as(n);break;case 4:if(44===n){e[++r]=58===es()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ma(n)}}while(n=Ja());return e}(os(e),t))}(t,o),a=r.props,s=0,c=0;s<i.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},Cs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Is(e,t){switch(function(e,t){return 45^za(e,0)?(((t<<2^za(e,0))<<2^za(e,1))<<2^za(e,2))<<2^za(e,3):0}(e,t)){case 5103:return hs+"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 hs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hs+e+ms+e+ps+e+e;case 6828:case 4268:return hs+e+ps+e+e;case 6165:return hs+e+ps+"flex-"+e+e;case 5187:return hs+e+La(e,/(\w+).+(:[^]+)/,hs+"box-$1$2"+ps+"flex-$1$2")+e;case 5443:return hs+e+ps+"flex-item-"+La(e,/flex-|-self/,"")+e;case 4675:return hs+e+ps+"flex-line-pack"+La(e,/align-content|flex-|-self/,"")+e;case 5548:return hs+e+ps+La(e,"shrink","negative")+e;case 5292:return hs+e+ps+La(e,"basis","preferred-size")+e;case 6060:return hs+"box-"+La(e,"-grow","")+hs+e+ps+La(e,"grow","positive")+e;case 4554:return hs+La(e,/([^-])(transform)/g,"$1"+hs+"$2")+e;case 6187:return La(La(La(e,/(zoom-|grab)/,hs+"$1"),/(image-set)/,hs+"$1"),e,"")+e;case 5495:case 3959:return La(e,/(image-set\([^]*)/,hs+"$1$`$1");case 4968:return La(La(e,/(.+:)(flex-)?(.*)/,hs+"box-pack:$3"+ps+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hs+e+e;case 4095:case 3583:case 4068:case 2532:return La(e,/(.+)-inline(.+)/,hs+"$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($a(e)-1-t>6)switch(za(e,t+1)){case 109:if(45!==za(e,t+4))break;case 102:return La(e,/(.+:)(.+)-([^]+)/,"$1"+hs+"$2-$3$1"+ms+(108==za(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ua(e,"stretch")?Is(La(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==za(e,t+1))break;case 6444:switch(za(e,$a(e)-3-(~Ua(e,"!important")&&10))){case 107:return La(e,":",":"+hs)+e;case 101:return La(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hs+(45===za(e,14)?"inline-":"")+"box$3$1"+hs+"$2$3$1"+ps+"$2box$3")+e}break;case 5936:switch(za(e,t+11)){case 114:return hs+e+ps+La(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hs+e+ps+La(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hs+e+ps+La(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hs+e+ps+e+e}return e}var ks=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case gs:e.return=Is(e.value,e.length);break;case _s:return bs([Za(e,{value:La(e.value,"@","@"+hs)})],n);case ys:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return bs([Za(e,{props:[La(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return bs([Za(e,{props:[La(t,/:(plac\w+)/,":"+hs+"input-$1")]}),Za(e,{props:[La(t,/:(plac\w+)/,":-moz-$1")]}),Za(e,{props:[La(t,/:(plac\w+)/,ps+"input-$1")]})],n)}return""}))}}],Ns=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,i=e.stylisPlugins||ks,a={},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++)a[t[r]]=!0;s.push(e)}));var c,l,u,d,p=[vs,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(l=[xs,Cs].concat(i,p),u=Ba(l),function(e,t,r,n){for(var o="",i=0;i<u;i++)o+=l[i](e,t,r,n)||"";return o});o=function(e,t,r,n){c=r,bs(Ss(e?e+"{"+t.styles+"}":t.styles),m),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Na({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},Ds={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 Ms(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Fs=/[A-Z]|^ms/g,Ps=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ls=function(e){return 45===e.charCodeAt(1)},Us=function(e){return null!=e&&"boolean"!=typeof e},zs=Ms((function(e){return Ls(e)?e:e.replace(Fs,"-$&").toLowerCase()})),js=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ps,(function(e,t,r){return Bs={name:t,styles:r,next:Bs},t}))}return 1===Ds[e]||Ls(e)||"number"!=typeof t||0===t?t:t+"px"};function $s(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 Bs={name:r.name,styles:r.styles,next:Bs},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Bs={name:n.name,styles:n.styles,next:Bs},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+=$s(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":Us(a)&&(n+=zs(i)+":"+js(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=$s(e,t,a);switch(i){case"animation":case"animationName":n+=zs(i)+":"+s+";";break;default:n+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Us(a[c])&&(n+=zs(i)+":"+js(i,a[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=Bs,i=r(e);return Bs=o,$s(e,t,i)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var Bs,Hs,qs=/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="";Bs=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=$s(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=$s(r,t,e[a]),n&&(o+=i[a]);qs.lastIndex=0;for(var s,c="";null!==(s=qs.exec(o));)c+="-"+s[1];var l=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:l,styles:o,next:Bs}},Ys=!!he.useInsertionEffect&&he.useInsertionEffect,Ws=Ys||function(e){return e()},Gs=(Ys||he.useLayoutEffect,he.createContext("undefined"!=typeof HTMLElement?Ns({key:"css"}):null)),Ks=Gs.Provider,Qs=he.createContext({}),Zs=r(8616),Xs=r.n(Zs),Js=new Uint8Array(16);function ec(){if(!Hs&&!(Hs="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 Hs(Js)}const tc=/^(?:[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 rc=[],nc=0;nc<256;++nc)rc.push((nc+256).toString(16).substr(1));const oc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(rc[e[t+0]]+rc[e[t+1]]+rc[e[t+2]]+rc[e[t+3]]+"-"+rc[e[t+4]]+rc[e[t+5]]+"-"+rc[e[t+6]]+rc[e[t+7]]+"-"+rc[e[t+8]]+rc[e[t+9]]+"-"+rc[e[t+10]]+rc[e[t+11]]+rc[e[t+12]]+rc[e[t+13]]+rc[e[t+14]]+rc[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&tc.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},ic=function(e,t,r){var n=(e=e||{}).random||(e.rng||ec)();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 oc(n)},ac=new Set,sc=Xs()((e=>{let t=ic().replace(/[0-9]/g,"");for(;ac.has(t);)t=ic().replace(/[0-9]/g,"");return ac.add(t),Ns({container:e,key:t})}));function cc(e){let{children:t,document:r}=e;if(!r)return null;const n=sc(r.head);return(0,ca.createElement)(Ks,{value:n},t)}function lc(){const[,e]=(0,ca.useState)({}),t=(0,ca.useRef)(!0);return(0,ca.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function uc(e){let{name:t,children:r}=e;const n=Oa(t),o=(0,ca.useRef)({rerender:lc()});if((0,ca.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 i=(0,ca.createElement)(cc,{document:n.ref.current.ownerDocument},r);return(0,ca.createPortal)(i,n.ref.current)}const dc=(0,ca.forwardRef)((function(e,t){let{name:r,fillProps:n={},as:o="div",...i}=e;const a=(0,ca.useContext)(Ra),s=(0,ca.useRef)();return(0,ca.useLayoutEffect)((()=>(a.registerSlot(r,s,n),()=>{a.unregisterSlot(r,s)})),[a.registerSlot,a.unregisterSlot,r]),(0,ca.useLayoutEffect)((()=>{a.updateSlot(r,n)})),(0,ca.createElement)(o,sa({ref:(0,da.useMergeRefs)([t,s])},i))}));function pc(e){return(0,ca.createElement)(ca.Fragment,null,(0,ca.createElement)(Ca,e),(0,ca.createElement)(uc,e))}const mc=(0,ca.forwardRef)(((e,t)=>{let{bubblesVirtually:r,...n}=e;return r?(0,ca.createElement)(dc,sa({},n,{ref:t})):(0,ca.createElement)(ka,n)}));function hc(e){return"appear"===e?"top":"left"}const fc="Popover",yc=(0,ca.createContext)();function gc(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:i}=function(e){return e.ownerDocument.defaultView.getComputedStyle(e)}(t),a=r?parseInt(r,10):0,s=n?parseInt(n,10):0,c=o?parseInt(o,10):0,l=i?parseInt(i,10):0;return{x:e.left+c,y:e.top+a,width:e.width-c-l,height:e.height-a-s,left:e.left+c,right:e.right-l,top:e.top+a,bottom:e.bottom-s}}function _c(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function bc(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==r&&(e.style[t]=r)}function vc(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const Sc=(0,ca.forwardRef)(((e,t)=>{let{headerTitle:r,onClose:n,children:o,className:i,noArrow:a=!0,isAlternate:s,position:c="bottom right",range:l,focusOnMount:u="firstElement",anchorRef:d,shouldAnchorIncludePadding:p,anchorRect:m,getAnchorRect:h,expandOnMobile:f,animate:y=!0,onFocusOutside:g,__unstableStickyBoundaryElement:_,__unstableSlotName:b=fc,__unstableObserveElement:v,__unstableBoundaryParent:S,__unstableForcePosition:w,__unstableForceXAlignment:E,__unstableEditorCanvasWrapper:T,...R}=e;const O=(0,ca.useRef)(null),A=(0,ca.useRef)(null),x=(0,ca.useRef)(),C=(0,da.useViewportMatch)("medium","<"),[I,k]=(0,ca.useState)(),N=(0,ca.useContext)(yc)||b,D=Oa(N),M=f&&C,[F,P]=(0,da.useResizeObserver)();a=M||a,(0,ca.useLayoutEffect)((()=>{if(M)return vc(x.current,"is-without-arrow",a),vc(x.current,"is-alternate",s),_c(x.current,"data-x-axis"),_c(x.current,"data-y-axis"),bc(x.current,"top"),bc(x.current,"left"),bc(A.current,"maxHeight"),void bc(A.current,"maxWidth");const e=()=>{if(!x.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,i=arguments.length>5?arguments[5]:void 0;if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return ba(t,t.ownerDocument||e.current.ownerDocument,i)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return ba((0,ga.getRectangleFromRange)(n),n.endContainer.ownerDocument,i);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=ba(n.getBoundingClientRect(),n.ownerDocument,i);return o?e:gc(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),s=ba(new window.DOMRect(r.left,r.top,r.width,a.bottom-r.top),e.ownerDocument,i);return o?s:gc(s,n)}if(!e.current)return;const{parentNode:a}=e.current,s=ba(a.getBoundingClientRect(),a.ownerDocument,i);return o?s:gc(s,a)}(O,m,h,d,p,x.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=x.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)}S&&(n=x.current.parentElement);const i=P.height?P:A.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:f,yAxis:y,contentHeight:g,contentWidth:b}=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,i=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0;const[l,u="center",d]=r.split(" "),p=function(e,t,r,n,o,i,a,s,c){const{height:l}=t;if(o){const t=o.getBoundingClientRect(),n=t.top+l-a,i=t.bottom-l-a;if(e.top<=n)return!c||l+10<c.scrollTop+e.top?{yAxis:r,popoverTop:Math.min(e.bottom,n)}:{yAxis:"bottom",popoverTop:Math.min(e.bottom,i)}}let u=e.top+e.height/2;"bottom"===n?u=e.bottom:"top"===n&&(u=e.top);const d={popoverTop:u,contentHeight:(u-l/2>0?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},p={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},m={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let h,f=r,y=null;if(!o&&!s)if("middle"===r&&d.contentHeight===l)f="middle";else if("top"===r&&p.contentHeight===l)f="top";else if("bottom"===r&&m.contentHeight===l)f="bottom";else{f=p.contentHeight>m.contentHeight?"top":"bottom";const e="top"===f?p.contentHeight:m.contentHeight;y=e!==l?e:null}return h="middle"===f?d.popoverTop:"top"===f?p.popoverTop:m.popoverTop,{yAxis:f,popoverTop:h,contentHeight:y}}(e,t,l,d,n,0,o,a,c),m=function(e,t,r,n,o,i,a,s,c){const{width:l}=t;"left"===r&&(0,ue.isRTL)()?r="right":"right"===r&&(0,ue.isRTL)()&&(r="left"),"left"===n&&(0,ue.isRTL)()?n="right":"right"===n&&(0,ue.isRTL)()&&(n="left");const u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-l/2>0?l/2:u)+(u+l/2>window.innerWidth?window.innerWidth-u:l/2)};let p=e.left;"right"===n?p=e.right:"middle"===i||c||(p=u);let m=e.right;"left"===n?m=e.left:"middle"===i||c||(m=u);const h={popoverLeft:p,contentWidth:p-l>0?l:p},f={popoverLeft:m,contentWidth:m+l>window.innerWidth?window.innerWidth-m:l};let y,g=r,_=null;if(!o&&!s)if("center"===r&&d.contentWidth===l)g="center";else if("left"===r&&h.contentWidth===l)g="left";else if("right"===r&&f.contentWidth===l)g="right";else{g=h.contentWidth>f.contentWidth?"left":"right";const e="left"===g?h.contentWidth:f.contentWidth;l>window.innerWidth&&(_=window.innerWidth),e!==l&&(g="center",d.popoverLeft=window.innerWidth/2)}return y="center"===g?d.popoverLeft:"left"===g?h.popoverLeft:f.popoverLeft,a&&(y=Math.min(y,a.offsetLeft+a.offsetWidth-l),(0,ue.isRTL)()||(y=Math.max(y,0))),{xAxis:g,popoverLeft:y,contentWidth:_}}(e,t,u,d,n,p.yAxis,i,a,s);return{...m,...p}}(e,i,c,_,x.current,o,n,w,E,T);"number"==typeof l&&"number"==typeof u&&(bc(x.current,"top",l+"px"),bc(x.current,"left",u+"px")),vc(x.current,"is-without-arrow",a||"center"===f&&"middle"===y),vc(x.current,"is-alternate",s),_c(x.current,"data-x-axis",f),_c(x.current,"data-y-axis",y),bc(A.current,"maxHeight","number"==typeof g?g+"px":""),bc(A.current,"maxWidth","number"==typeof b?b+"px":""),k(({left:"right",right:"left"}[f]||"center")+" "+({top:"bottom",bottom:"top"}[y]||"middle"))};e();const{ownerDocument:t}=x.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const i=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",i),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const l=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(d);let u;return l&&l!==t&&(l.defaultView.addEventListener("resize",e),l.defaultView.addEventListener("scroll",e,!0)),v&&(u=new r.MutationObserver(e),u.observe(v,{attributes:!0})),()=>{var a,s;r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",i),r.cancelAnimationFrame(o),l&&l!==t&&(null===(a=l.defaultView)||void 0===a||a.removeEventListener("resize",e),null===(s=l.defaultView)||void 0===s||s.removeEventListener("scroll",e,!0)),u&&u.disconnect()}}),[M,m,h,d,p,c,P,_,v,S]);const L=(e,t)=>{"focus-outside"===e&&g?g(t):n&&n()},[U,z]=(0,da.__experimentalUseDialog)({focusOnMount:u,__unstableOnClose:L,onClose:L}),j=(0,da.useMergeRefs)([x,U,t]),$=Boolean(y&&I)&&function(e){if("loading"===e.type)return ua()("components-animate__loading");const{type:t,origin:r=hc(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 B=(0,ca.createElement)("div",sa({className:ua()("components-popover",i,$,{"is-expanded":M,"is-without-arrow":a,"is-alternate":s})},R,{ref:j},z,{tabIndex:"-1"}),M&&(0,ca.createElement)(Ea,null),M&&(0,ca.createElement)("div",{className:"components-popover__header"},(0,ca.createElement)("span",{className:"components-popover__header-title"},r),(0,ca.createElement)(pl,{className:"components-popover__close",icon:_a,onClick:n})),(0,ca.createElement)("div",{ref:A,className:"components-popover__content"},(0,ca.createElement)("div",{style:{position:"relative"}},F,o)));return D.ref&&(B=(0,ca.createElement)(pc,{name:N},B)),d||m?B:(0,ca.createElement)("span",{ref:O},B)}));Sc.Slot=(0,ca.forwardRef)((function(e,t){let{name:r=fc}=e;return(0,ca.createElement)(mc,{bubblesVirtually:!0,name:r,className:"popover-slot",ref:t})})),Sc.__unstableSlotNameProvider=yc.Provider;const Ec=Sc,Tc=function(e){let t,r,{shortcut:n,className:o}=e;return n?((0,G.isString)(n)&&(t=n),(0,G.isObject)(n)&&(t=n.display,r=n.ariaLabel),(0,ca.createElement)("span",{className:o,"aria-label":r},t)):null},Rc=700,Oc=(0,ca.createElement)("div",{className:"event-catcher"}),Ac=e=>{let{eventHandlers:t,child:r,childrenWithPopover:n}=e;return(0,ca.cloneElement)((0,ca.createElement)("span",{className:"disabled-element-wrapper"},(0,ca.cloneElement)(Oc,t),(0,ca.cloneElement)(r,{children:n})),t)},xc=e=>{let{child:t,eventHandlers:r,childrenWithPopover:n}=e;return(0,ca.cloneElement)(t,{...r,children:n})},Cc=(e,t,r)=>{if(1!==ca.Children.count(e))return;const n=ca.Children.only(e);n.props.disabled||"function"==typeof n.props[t]&&n.props[t](r)},Ic=function(e){const{children:t,position:r,text:n,shortcut:o,delay:i=Rc}=e,[a,s]=(0,ca.useState)(!1),[c,l]=(0,ca.useState)(!1),u=(0,da.useDebounce)(l,i),d=e=>{Cc(t,"onMouseDown",e),document.addEventListener("mouseup",h),s(!0)},p=e=>{Cc(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(Cc(t,e,n),n.currentTarget.disabled)return;if("focus"===n.type&&a)return;u.cancel();const o=(0,G.includes)(["focus","mouseenter"],n.type);o!==c&&(r?u(o):l(o))},y=()=>{u.cancel(),document.removeEventListener("mouseup",h)};if((0,ca.useEffect)((()=>y),[]),1!==ca.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")},_=ca.Children.only(t),{children:b,disabled:v}=_.props,S=v?Ac:xc,w=(e=>{let{grandchildren:t,isOver:r,position:n,text:o,shortcut:i}=e;return(0,ca.concatChildren)(t,r&&(0,ca.createElement)(Ec,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,ca.createElement)(Tc,{className:"components-tooltip__shortcut",shortcut:i})))})({grandchildren:b,isOver:c,position:r,text:n,shortcut:o});return S({child:_,eventHandlers:g,childrenWithPopover:w})},kc=function(e){let{icon:t,className:r,...n}=e;const o=["dashicon","dashicons","dashicons-"+t,r].filter(Boolean).join(" ");return(0,ca.createElement)("span",sa({className:o},n))},Nc=function(e){let{icon:t=null,size:r=24,...n}=e;if("string"==typeof t)return(0,ca.createElement)(kc,sa({icon:t},n));if((0,ca.isValidElement)(t)&&kc===t.type)return(0,ca.cloneElement)(t,{...n});if("function"==typeof t)return t.prototype instanceof ca.Component?(0,ca.createElement)(t,{size:r,...n}):t({size:r,...n});if(t&&("svg"===t.type||t.type===pa.SVG)){const e={width:r,height:r,...t.props,...n};return(0,ca.createElement)(pa.SVG,e)}return(0,ca.isValidElement)(t)?(0,ca.cloneElement)(t,{size:r,...n}):t};var Dc=r(5606);const Mc=(0,ca.createContext)({}),Fc=()=>(0,ca.useContext)(Mc);function Pc(e){let{value:t}=e;const r=Fc(),n=(0,ca.useRef)(t);return function(e,r){const o=(0,ca.useRef)(!1);(0,ca.useEffect)((()=>{o.current?(0,G.isEqual)(n.current,t)&&n.current!==t&&void 0!==Dc&&Dc.env:o.current=!0}),r)}(0,[t]),(0,ca.useMemo)((()=>(0,G.merge)((0,G.cloneDeep)(r),t)),[r,t])}(0,ca.memo)((e=>{let{children:t,value:r}=e;const n=Pc({value:r});return(0,ca.createElement)(Mc.Provider,{value:n},t)}));const Lc="data-wp-component",Uc="data-wp-c16t",zc="__contextSystemKey__",jc=Xs()((function(e){return`components-${(0,G.kebabCase)(e)}`}));function $c(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function Bc(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Hc(e,t,r){var n=[],o=$c(e,n,r);return n.length<2?r:o+t(n)}var qc=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},Vc=function(){var e=Ns({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Vs(r,e.registered,void 0);return function(e,t){!function(e,t){var r=e.key+"-"+t.name;void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,o),e.key+"-"+o.name};return{css:t,cx:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Hc(e.registered,t,qc(n))},injectGlobal:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Vs(r,e.registered);Bc(e,o)},keyframes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Vs(r,e.registered),i="animation-"+o.name;return Bc(e,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:$c.bind(null,e.registered),merge:Hc.bind(null,e.registered,t)}}(),Yc=(Vc.flush,Vc.hydrate,Vc.cx);Vc.merge,Vc.getRegisteredStyles,Vc.injectGlobal,Vc.keyframes,Vc.css,Vc.sheet,Vc.cache;const Wc=()=>{const e=(0,he.useContext)(Gs),t=(0,ca.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 Yc(...r.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(function(e,t){var r=e.key+"-"+t.name;if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,t),`${e.key}-${t.name}`):t)))}),[e]);return t};var Gc=r(5606);function Kc(e,t){const r=Fc();void 0===t&&void 0!==Gc&&Gc.env;const n=(null==r?void 0:r[t])||{},o={[Uc]:!0,...(i=t,{[Lc]:i})};var i;const{_overrides:a,...s}=n,c=Object.entries(s).length?Object.assign({},s,e):e,l=Wc()(jc(t),e.className),u="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in a)o[e]=a[e];return o.children=u,o.className=l,o}var Qc=r(5606);function Zc(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:n=!1}=r;let o=(0,ca.forwardRef)(e);n&&(o=(0,ca.memo)(o)),void 0===t&&void 0!==Qc&&Qc.env;let i=o[zc]||[t];return Array.isArray(t)&&(i=[...i,...t]),"string"==typeof t&&(i=[...i,t]),o.displayName=t,o[zc]=(0,G.uniq)(i),o.selector=`.${jc(t)}`,o}function Xc(e){if(!e)return[];let t=[];return e[zc]&&(t=e[zc]),e.type&&e.type[zc]&&(t=e.type[zc]),t}const Jc={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 el=/^((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|disableRemotePlayback|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)-.*))$/,tl=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},rl=Ms((function(e){return el.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),nl=function(e){return"theme"!==e},ol=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?rl:nl},il=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},al=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return tl(t,r,n),Ws((function(){return function(e,t,r){tl(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},sl=function e(t,r){var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=il(t,r,i),c=s||ol(a),l=!c("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],u[0][m])}var h,f=(h=function(e,t,r){var n,i,u,p,m=l&&e.as||a,h="",f=[],y=e;if(null==e.theme){for(var g in y={},e)y[g]=e[g];y.theme=he.useContext(Qs)}"string"==typeof e.className?(n=t.registered,i=f,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==n[e]?i.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 b=l&&void 0===s?ol(m):c,v={};for(var S in e)l&&"as"===S||b(S)&&(v[S]=e[S]);return v.className=h,v.ref=r,he.createElement(he.Fragment,null,he.createElement(al,{cache:t,serialized:_,isStringTag:"string"==typeof m}),he.createElement(m,v))},(0,he.forwardRef)((function(e,t){var r=(0,he.useContext)(Gs);return h(e,r,t)})));return f.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+o}}),f.withComponent=function(t,n){return e(t,sa({},r,n,{shouldForwardProp:il(f,n,!0)})).apply(void 0,d)},f}};const cl=sl("div",{target:"em57xhy0"})("");cl.selector=".components-view",cl.displayName="View";const ll=cl,ul=Zc((function(e,t){const{style:r,...n}=Kc(e,"VisuallyHidden");return(0,ca.createElement)(ll,sa({ref:t},n,{style:{...Jc,...r||{}}}))}),"VisuallyHidden"),dl=["onMouseDown","onClick"],pl=(0,ca.forwardRef)((function e(t,r){const{href:n,target:o,isSmall:i,isPressed:a,isBusy:s,isDestructive:c,className:l,disabled:u,icon:d,iconPosition:p="left",iconSize:m,showTooltip:h,tooltipPosition:f,shortcut:y,label:g,children:_,text:b,variant:v,__experimentalIsFocusable:S,describedBy:w,...E}=function(e){let{isDefault:t,isPrimary:r,isSecondary:n,isTertiary:o,isLink:i,variant:a,...s}=e,c=a;var l,u,d,p,m;return r&&(null!==(l=c)&&void 0!==l||(c="primary")),o&&(null!==(u=c)&&void 0!==u||(c="tertiary")),n&&(null!==(d=c)&&void 0!==d||(c="secondary")),t&&(ya()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(p=c)&&void 0!==p||(c="secondary")),i&&(null!==(m=c)&&void 0!==m||(c="link")),{...s,variant:c}}(t),T=(0,da.useInstanceId)(e,"components-button__description"),R=ua()("components-button",l,{"is-secondary":"secondary"===v,"is-primary":"primary"===v,"is-small":i,"is-tertiary":"tertiary"===v,"is-pressed":a,"is-busy":s,"is-link":"link"===v,"is-destructive":c,"has-text":!!d&&!!_,"has-icon":!!d}),O=u&&!S,A=void 0===n||O?"button":"a",x="a"===A?{href:n,target:o}:{type:"button",disabled:O,"aria-pressed":a};if(u&&S){x["aria-disabled"]=!0;for(const e of dl)E[e]=e=>{e.stopPropagation(),e.preventDefault()}}const C=!O&&(h&&g||y||!!g&&(!_||(0,G.isArray)(_)&&!_.length)&&!1!==h),I=w?T:null,k=E["aria-describedby"]||I,N=(0,ca.createElement)(A,sa({},x,E,{className:R,"aria-label":E["aria-label"]||g,"aria-describedby":k,ref:r}),d&&"left"===p&&(0,ca.createElement)(Nc,{icon:d,size:m}),b&&(0,ca.createElement)(ca.Fragment,null,b),d&&"right"===p&&(0,ca.createElement)(Nc,{icon:d,size:m}),_);return C?(0,ca.createElement)(ca.Fragment,null,(0,ca.createElement)(Ic,{text:w||g,shortcut:y,position:f},N),w&&(0,ca.createElement)(ul,null,(0,ca.createElement)("span",{id:I},w))):(0,ca.createElement)(ca.Fragment,null,N,w&&(0,ca.createElement)(ul,null,(0,ca.createElement)("span",{id:I},w)))}));function ml(e){return null!=e}const hl={initial:void 0,fallback:""},fl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hl;const{initial:r,fallback:n}={...hl,...t},[o,i]=(0,ca.useState)(e),a=ml(e);return(0,ca.useEffect)((()=>{a&&o&&i(void 0)}),[a,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(ml))&&void 0!==e?e:t}([e,o,r],n),e=>{a||i(e)}]},yl=function(e,t){const r=(0,ca.useRef)(!1);(0,ca.useEffect)((()=>{if(r.current)return e();r.current=!0}),t)},gl=(0,ca.forwardRef)(((e,t)=>{let{isOpened:r,icon:n,title:o,...i}=e;return o?(0,ca.createElement)("h2",{className:"components-panel__body-title"},(0,ca.createElement)(pl,sa({className:"components-panel__body-toggle","aria-expanded":r,ref:t},i),(0,ca.createElement)("span",{"aria-hidden":"true"},(0,ca.createElement)(Nc,{className:"components-panel__arrow",icon:r?ma:ha})),o,n&&(0,ca.createElement)(Nc,{icon:n,className:"components-panel__icon",size:20}))):null})),_l=(0,ca.forwardRef)((function(e,t){let{buttonProps:r={},children:n,className:o,icon:i,initialOpen:a,onToggle:s=G.noop,opened:c,title:l,scrollAfterOpen:u=!0}=e;const[d,p]=fl(c,{initial:void 0===a||a}),m=(0,ca.useRef)(),h=(0,da.useReducedMotion)()?"auto":"smooth",f=(0,ca.useRef)();f.current=u,yl((()=>{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,ca.createElement)("div",{className:y,ref:(0,da.useMergeRefs)([m,t])},(0,ca.createElement)(gl,sa({icon:i,isOpened:d,onClick:e=>{e.preventDefault();const t=!d;p(t),s(t)},title:l},r)),"function"==typeof n?n({opened:d}):d&&n)}));_l.displayName="PanelBody";const bl=_l,vl=function(e){let{icon:t,size:r=24,...n}=e;return(0,ca.cloneElement)(t,{width:r,height:r,...n})},Sl=(0,ca.createElement)(pa.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ca.createElement)(pa.Path,{d:"M7 11.5h10V13H7z"})),wl=(0,ca.createElement)(pa.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ca.createElement)(pa.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function El(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Vs(t)}r(4146);const Tl={"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 Rl(e){return(0,G.get)(Tl,e,"")}var Ol={grad:.9,turn:360,rad:360/(2*Math.PI)},Al=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},xl=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Cl=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},Il=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},kl=function(e){return{r:Cl(e.r,0,255),g:Cl(e.g,0,255),b:Cl(e.b,0,255),a:Cl(e.a)}},Nl=function(e){return{r:xl(e.r),g:xl(e.g),b:xl(e.b),a:xl(e.a,3)}},Dl=/^#([0-9a-f]{3,8})$/i,Ml=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Fl=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=Math.max(t,r,n),a=i-Math.min(t,r,n),s=a?i===t?(r-n)/a:i===r?2+(n-t)/a:4+(t-r)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},Pl=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var i=Math.floor(t),a=n*(1-r),s=n*(1-(t-i)*r),c=n*(1-(1-t+i)*r),l=i%6;return{r:255*[n,s,a,a,c,n][l],g:255*[c,n,n,s,a,a][l],b:255*[a,a,c,n,n,s][l],a:o}},Ll=function(e){return{h:Il(e.h),s:Cl(e.s,0,100),l:Cl(e.l,0,100),a:Cl(e.a)}},Ul=function(e){return{h:xl(e.h),s:xl(e.s),l:xl(e.l),a:xl(e.a,3)}},zl=function(e){return Pl((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},jl=function(e){return{h:(t=Fl(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},$l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Bl=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hl=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ql=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vl={string:[[function(e){var t=Dl.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?xl(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?xl(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Hl.exec(e)||ql.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:kl({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=$l.exec(e)||Bl.exec(e);if(!t)return null;var r,n,o=Ll({h:(r=t[1],n=t[2],void 0===n&&(n="deg"),Number(r)*(Ol[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return zl(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=void 0===o?1:o;return Al(t)&&Al(r)&&Al(n)?kl({r:Number(t),g:Number(r),b:Number(n),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,o=e.a,i=void 0===o?1:o;if(!Al(t)||!Al(r)||!Al(n))return null;var a=Ll({h:Number(t),s:Number(r),l:Number(n),a:Number(i)});return zl(a)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,i=void 0===o?1:o;if(!Al(t)||!Al(r)||!Al(n))return null;var a=function(e){return{h:Il(e.h),s:Cl(e.s,0,100),v:Cl(e.v,0,100),a:Cl(e.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(i)});return Pl(a)},"hsv"]]},Yl=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]},Wl=function(e,t){var r=jl(e);return{h:r.h,s:Cl(r.s+100*t,0,100),l:r.l,a:r.a}},Gl=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Kl=function(e,t){var r=jl(e);return{h:r.h,s:r.s,l:Cl(r.l+100*t,0,100),a:r.a}},Ql=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Yl(e.trim(),Vl.string):"object"==typeof e&&null!==e?Yl(e,Vl.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 xl(Gl(this.rgba),2)},e.prototype.isDark=function(){return Gl(this.rgba)<.5},e.prototype.isLight=function(){return Gl(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Nl(this.rgba)).r,r=e.g,n=e.b,i=(o=e.a)<1?Ml(xl(255*o)):"","#"+Ml(t)+Ml(r)+Ml(n)+i;var e,t,r,n,o,i},e.prototype.toRgb=function(){return Nl(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Nl(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 Ul(jl(this.rgba))},e.prototype.toHslString=function(){return t=(e=Ul(jl(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=Fl(this.rgba),{h:xl(e.h),s:xl(e.s),v:xl(e.v),a:xl(e.a,3)};var e},e.prototype.invert=function(){return Zl({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),Zl(Wl(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Zl(Wl(this.rgba,-e))},e.prototype.grayscale=function(){return Zl(Wl(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Zl(Kl(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Zl(Kl(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?Zl({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):xl(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=jl(this.rgba);return"number"==typeof e?Zl({h:e,s:t.s,l:t.l,a:t.a}):xl(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Zl(e).toHex()},e}(),Zl=function(e){return e instanceof Ql?e:new Ql(e)},Xl=[],Jl=function(e){e.forEach((function(e){Xl.indexOf(e)<0&&(e(Ql,Vl),Xl.push(e))}))};function eu(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 i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var c=this.toRgb(),l=1/0,u="black";if(!i.length)for(var d in r)i[d]=new e(r[d]).toRgb();for(var p in r){var m=(o=c,a=i[p],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));m<l&&(l=m,u=p)}return u}},t.string.push([function(t){var n=t.toLowerCase(),o="transparent"===n?"#0000":r[n];return o?new e(o).toRgb():null},"name"])}function tu(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Zl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").alpha(e).toRgbString()}Jl([eu]);const ru={black:"#000",white:"#fff"},nu={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"}},ou={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:tu(nu.gray[900],.62)},iu={900:tu("#000510",.9),800:tu("#00000a",.85),700:tu("#06060b",.8),600:tu("#000913",.75),500:tu("#0a1829",.7),400:tu("#0a1829",.65),300:tu("#0e1c2e",.62),200:tu("#162435",.55),100:tu("#223443",.5),backgroundFill:tu(ou[700],.7)},au={900:tu("#304455",.45),800:tu("#425863",.4),700:tu("#667886",.35),600:tu("#7b86a2",.3),500:tu("#9197a2",.25),400:tu("#95959c",.2),300:tu("#829493",.15),200:tu("#8b8b96",.1),100:tu("#747474",.05)},su={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:tu(ru.white,.65)},cu={900:tu(ru.white,.5),800:tu(ru.white,.45),700:tu(ru.white,.4),600:tu(ru.white,.35),500:tu(ru.white,.3),400:tu(ru.white,.25),300:tu(ru.white,.2),200:tu(ru.white,.15),100:tu(ru.white,.1),backgroundFill:tu(su[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})`},du={theme:uu.theme,background:ru.white,backgroundDisabled:su[200],border:nu.gray[700],borderHover:nu.gray[700],borderFocus:uu.themeDark10,borderDisabled:nu.gray[400],borderLight:nu.gray[300],label:ou[500],textDisabled:ou[150],textDark:ru.white,textLight:ru.black},pu=Object.assign({},ru,{darkGray:(0,G.merge)({},ou,nu.darkGray),darkOpacity:iu,darkOpacityLight:au,mediumGray:nu.mediumGray,gray:nu.gray,lightGray:(0,G.merge)({},su,nu.lightGray),lightGrayLight:cu,blue:(0,G.merge)({},lu,nu.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:uu,ui:du}),mu="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(${mu} * ${e})`}const fu=sl("div",{target:"ej5x27r4"})("font-family:",Rl("default.fontFamily"),";font-size:",Rl("default.fontSize"),";"),yu=sl("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&El("margin-bottom:",hu(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),gu=El("display:inline-block;margin-bottom:",hu(2),";",""),_u=sl("label",{target:"ej5x27r2"})(gu,";");var bu={name:"11yad0w",styles:"margin-bottom:revert"};const vu=sl("p",{target:"ej5x27r1"})("margin-top:",hu(2),";margin-bottom:0;font-size:",Rl("helpText.fontSize"),";font-style:normal;color:",pu.mediumGray.text,";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&bu}),";"),Su=sl("span",{target:"ej5x27r0"})(gu,";"),wu=e=>{let{__nextHasNoMarginBottom:t=!1,id:r,label:n,hideLabelFromVision:o=!1,help:i,className:a,children:s}=e;return(0,ca.createElement)(fu,{className:ua()("components-base-control",a)},(0,ca.createElement)(yu,{className:"components-base-control__field",__nextHasNoMarginBottom:t},n&&r&&(o?(0,ca.createElement)(ul,{as:"label",htmlFor:r},n):(0,ca.createElement)(_u,{className:"components-base-control__label",htmlFor:r},n)),n&&!r&&(o?(0,ca.createElement)(ul,{as:"label"},n):(0,ca.createElement)(wu.VisualLabel,null,n)),s),!!i&&(0,ca.createElement)(vu,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},i))};wu.VisualLabel=e=>{let{className:t,children:r}=e;return(0,ca.createElement)(Su,{className:ua()("components-base-control__label",t)},r)};const Eu=wu;function Tu(e){let{label:t,className:r,heading:n,checked:o,indeterminate:i,help:a,onChange:s,...c}=e;n&&ya()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[l,u]=(0,ca.useState)(!1),[d,p]=(0,ca.useState)(!1),m=(0,da.useRefEffect)((e=>{e&&(e.indeterminate=!!i,u(e.matches(":checked")),p(e.matches(":indeterminate")))}),[o,i]),h=`inspector-checkbox-control-${(0,da.useInstanceId)(Tu)}`;return(0,ca.createElement)(Eu,{label:n,id:h,help:a,className:ua()("components-checkbox-control",r)},(0,ca.createElement)("span",{className:"components-checkbox-control__input-container"},(0,ca.createElement)("input",sa({ref:m,id:h,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>s(e.target.checked),checked:o,"aria-describedby":a?h+"__help":void 0},c)),d?(0,ca.createElement)(vl,{icon:Sl,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,l?(0,ca.createElement)(vl,{icon:wl,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,ca.createElement)("label",{className:"components-checkbox-control__label",htmlFor:h},t))}function Ru(e,t,r){return"number"!=typeof e?null:parseFloat((0,G.clamp)(e,t,r))}const Ou=["40em","52em","64em"],Au={name:"zjik7",styles:"display:flex"},xu={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Cu={name:"82a6rk",styles:"flex:1"},Iu={name:"13nosa1",styles:">*{min-height:0;}"},ku={name:"1pwxzk4",styles:">*{min-width:0;}"},Nu=new RegExp(/-left/g),Du=new RegExp(/-right/g),Mu=new RegExp(/Left/g),Fu=new RegExp(/Right/g),Pu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,G.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":Nu.test(e)?e.replace(Nu,"-right"):Du.test(e)?e.replace(Du,"-left"):Mu.test(e)?e.replace(Mu,"Right"):Fu.test(e)?e.replace(Fu,"Left"):e}(t)))};function Lu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,ue.isRTL)()?El(t,""):El(e,""):(0,ue.isRTL)()?El(Pu(e),""):El(e,"")}function Uu(e){const{align:t="center",className:r,direction:n="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:s=!1,...c}=Kc(function(e){let{isReversed:t,...r}=e;return void 0!==t?(ya()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...r,direction:t?"row-reverse":"row"}):r}(e),"Flex"),l=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>Ou.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Ou.length} breakpoints, got index ${t}`);const[r,n]=(0,ca.useState)(t);return(0,ca.useEffect)((()=>{const e=()=>{const e=Ou.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]),u="string"==typeof l&&!!l.includes("column"),d="string"==typeof l&&l.includes("reverse"),p=Wc();return{...c,className:(0,ca.useMemo)((()=>{const e={};return e.Base=El({alignItems:u?"normal":t,flexDirection:l,flexWrap:s?"wrap":void 0,justifyContent:a,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0,marginBottom:s?`calc(${hu(i)} * -1)`:void 0},"",""),e.Items=El(">*+*:not( marquee ){margin-top:",u?hu(i):void 0,";",Lu({marginLeft:u||d?void 0:hu(i),marginRight:!u&&d?hu(i):void 0})(),";}",""),e.WrapItems=El(">*:not( marquee ){margin-bottom:",hu(i),";",Lu({marginLeft:!u&&d?hu(i):void 0,marginRight:u||d?void 0:hu(i)})(),";}>*:last-child:not( marquee ){",Lu({marginLeft:!u&&d?0:void 0,marginRight:u||d?void 0:0})(),";}",""),p(Au,e.Base,s?e.WrapItems:e.Items,u?Iu:ku,r)}),[t,r,p,l,o,i,u,d,a,s,Lu.watch()]),isColumn:u}}Lu.watch=()=>(0,ue.isRTL)();const zu=(0,ca.createContext)({flexItemDisplay:void 0}),ju=Zc((function(e,t){const{children:r,isColumn:n,...o}=Uu(e);return(0,ca.createElement)(zu.Provider,{value:{flexItemDisplay:n?"block":void 0}},(0,ca.createElement)(ll,sa({},o,{ref:t}),r))}),"Flex"),$u=Zc((function(e,t){const r=function(e){const{className:t,display:r,isBlock:n=!1,...o}=Kc(e,"FlexItem"),i={},a=(0,ca.useContext)(zu).flexItemDisplay;return i.Base=El({display:r||a},"",""),{...o,className:Wc()(xu,i.Base,n&&Cu,t)}}(e);return(0,ca.createElement)(ll,sa({},r,{ref:t}))}),"FlexItem"),Bu={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Hu="…",qu={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Vu={ellipsis:Hu,ellipsizeMode:qu.auto,limit:0,numberOfLines:0};let Yu;Jl([eu]);const Wu=Xs()((function(e){var t,r;if("string"!=typeof e)return"";if("string"==typeof(r=e)&&Zl(r).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!Yu){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Yu=e}return Yu}}();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 Gu="36px",Ku="12px",Qu={controlSurfaceColor:pu.white,controlTextActiveColor:pu.ui.theme,controlPaddingX:Ku,controlPaddingXLarge:`calc(${Ku} * 1.3334)`,controlPaddingXSmall:`calc(${Ku} / 1.3334)`,controlBackgroundColor:pu.white,controlBorderRadius:"2px",controlBorderColor:pu.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:pu.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${pu.admin.theme}`,controlDestructiveBorderColor:pu.alert.red,controlHeight:Gu,controlHeightXSmall:`calc( ${Gu} * 0.6 )`,controlHeightSmall:`calc( ${Gu} * 0.8 )`,controlHeightLarge:`calc( ${Gu} * 1.2 )`,controlHeightXLarge:`calc( ${Gu} * 1.4 )`},Zu={toggleGroupControlBackgroundColor:Qu.controlBackgroundColor,toggleGroupControlBorderColor:pu.ui.border,toggleGroupControlBackdropBackgroundColor:Qu.controlSurfaceColor,toggleGroupControlBackdropBorderColor:pu.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:Qu.controlBackgroundColor},Xu=Object.assign({},Qu,Zu,{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:pu.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:pu.white,surfaceColor:pu.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)"}),Ju=El("color:",pu.darkGray.primary,";line-height:",Xu.fontLineHeightBase,";margin:0;",""),ed={name:"4zleql",styles:"display:block"},td=El("color:",pu.alert.green,";",""),rd=El("color:",pu.alert.red,";",""),nd=El("color:",pu.mediumGray.text,";",""),od=El("mark{background:",pu.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;}",""),id={name:"50zrmy",styles:"text-transform:uppercase"};var ad=r(542);const sd=Xs()((e=>{const t={};for(const r in e)t[r.toLowerCase()]=e[r];return t})),cd=13,ld={body:cd,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function ud(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cd;if(e in ld)return ud(ld[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc((${e} / ${cd}) * ${Xu.fontSize})`}[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));var dd={name:"50zrmy",styles:"text-transform:uppercase"};function pd(e){const{adjustLineHeightForInnerControls:t,align:r,children:n,className:o,color:i,ellipsizeMode:a,isDestructive:s=!1,display:c,highlightEscape:l=!1,highlightCaseSensitive:u=!1,highlightWords:d,highlightSanitize:p,isBlock:m=!1,letterSpacing:h,lineHeight:f,optimizeReadabilityFor:y,size:g,truncate:_=!1,upperCase:b=!1,variant:v,weight:S=Xu.fontWeight,...w}=Kc(e,"Text");let E=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");E=function(e){let{activeClassName:t="",activeIndex:r=-1,activeStyle:n,autoEscape:o,caseSensitive:i=!1,children:a,findChunks:s,highlightClassName:c="",highlightStyle:l={},highlightTag:u="mark",sanitize:d,searchWords:p=[],unhighlightClassName:m="",unhighlightStyle:h}=e;if(!a)return null;if("string"!=typeof a)return a;const f=a,y=(0,ad.findAll)({autoEscape:o,caseSensitive:i,findChunks:s,sanitize:d,searchWords:p,textToHighlight:f}),g=u;let _,b=-1,v="";return y.map(((e,o)=>{const a=f.substr(e.start,e.end-e.start);if(e.highlight){let e;b++,"object"==typeof c?i?e=c[a]:(c=sd(c),e=c[a.toLowerCase()]):e=c;const s=b===+r;v=`${e} ${s?t:""}`,_=!0===s&&null!==n?Object.assign({},l,n):l;const u={children:a,className:v,key:o,style:_};return"string"!=typeof g&&(u.highlightIndex=b),(0,ca.createElement)(g,u)}return(0,ca.createElement)("span",{children:a,className:m,key:o,style:h})}))}({autoEscape:l,children:n,caseSensitive:u,searchWords:d,sanitize:p})}const O=Wc();let A;!0===_&&(A="auto"),!1===_&&(A="none");const x=function(e){const{className:t,children:r,ellipsis:n=Hu,ellipsizeMode:o=qu.auto,limit:i=0,numberOfLines:a=0,...s}=Kc(e,"Truncate"),c=Wc(),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t={...Vu,...arguments.length>1?arguments[1]:void 0},{ellipsis:r,ellipsizeMode:n,limit:o}=t;if(n===qu.none)return e;let i,a;switch(n){case qu.head:i=0,a=o;break;case qu.middle:i=Math.floor(o/2),a=Math.floor(o/2);break;default:i=o,a=0}const s=n!==qu.auto?function(e,t,r,n){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~r,s=(0,G.isNil)(n)?Hu:n;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,i,a,r):e;return s}("string"==typeof r?r:"",{ellipsis:n,ellipsizeMode:o,limit:i,numberOfLines:a}),u=o===qu.auto;return{...s,className:(0,ca.useMemo)((()=>{const e={};return e.numberOfLines=El("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),c(u&&!a&&Bu,u&&!!a&&e.numberOfLines,t)}),[t,c,a,u]),children:l}}({...w,className:(0,ca.useMemo)((()=>{const e={},n=function(e,t){if(t)return t;if(!e)return;let r=`calc(${Xu.controlHeight} + ${hu(2)})`;switch(e){case"large":r=`calc(${Xu.controlHeightLarge} + ${hu(2)})`;break;case"small":r=`calc(${Xu.controlHeightSmall} + ${hu(2)})`;break;case"xSmall":r=`calc(${Xu.controlHeightXSmall} + ${hu(2)})`}return r}(t,f);if(e.Base=El({color:i,display:c,fontSize:ud(g),fontWeight:S,lineHeight:n,letterSpacing:h,textAlign:r},"",""),e.upperCase=dd,e.optimalTextColor=null,y){const t="dark"==("#000000"===function(e){const t=Wu(e);return Zl(t).isLight()?"#000000":"#ffffff"}(y)?"dark":"light");e.optimalTextColor=El(t?{color:pu.black}:{color:pu.white},"","")}return O(Ju,e.Base,e.optimalTextColor,s&&rd,!!T&&od,m&&ed,R&&nd,v&&H[v],b&&e.upperCase,o)}),[t,r,o,i,O,c,m,R,s,T,h,f,y,g,b,v,S]),children:n,ellipsizeMode:a||A});return!_&&Array.isArray(n)&&(E=ca.Children.map(n,(e=>{return(0,G.isPlainObject)(e)&&"props"in e?(r=["Link"],(t=e)&&("string"==typeof r?Xc(t).includes(r):Array.isArray(r)&&r.some((e=>Xc(t).includes(e))))?(0,ca.cloneElement)(e,{size:e.props.size||"inherit"}):e):e;var t,r}))),{...x,children:_?x.children:E}}const md=Zc((function(e,t){const r=pd(e);return(0,ca.createElement)(ll,sa({as:"span"},r,{ref:t}))}),"Text");var hd={name:"1739oy8",styles:"z-index:1"};const fd=e=>{let{isFocused:t}=e;return t?hd:""};var yd={name:"2o6p8u",styles:"justify-content:space-between"},gd={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},_d={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const bd=e=>{let{labelPosition:t}=e;switch(t){case"top":return _d;case"bottom":return gd;case"edge":return yd;default:return""}},vd=sl(ju,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",fd," ",bd,";");var Sd={name:"wyxldh",styles:"margin:0 !important"},wd={name:"1d3w5wq",styles:"width:100%"};const Ed=sl("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 El({backgroundColor:t?pu.ui.backgroundDisabled:pu.ui.background},"","")})," ",(e=>{let{hideLabel:t}=e;return t?Sd:null})," ",(e=>{let{__unstableInputWidth:t,labelPosition:r}=e;return t?"side"===r?"":El("edge"===r?{flex:`0 0 ${t}`}:{width:t},"",""):wd}),";"),Td=sl("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",pu.black,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(e=>{let t,r,{isDragging:n,dragCursor:o}=e;return n&&(t=El("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),n&&o&&(r=El("&:active{cursor:",o,";}","")),El(t," ",r,";","")})," ",(e=>{let{disabled:t}=e;return t?El({color:pu.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const r={default:"13px",small:"11px","__unstable-large":"13px"},n=r[t]||r.default;return n?El("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 El(r[t]||r.default,"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),Rd=e=>{let{labelPosition:t}=e,r=8;return"edge"!==t&&"side"!==t||(r=0),El({marginTop:0,marginRight:0,marginBottom:r,marginLeft:0},"","")},Od=sl(md,{target:"em5sgkm4"})("&&&{box-sizing:border-box;color:currentColor;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;",Rd," overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),Ad=e=>(0,ca.createElement)(Od,sa({},e,{as:"label"})),xd=sl($u,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),Cd=sl("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?pu.ui.borderFocus:pu.ui.border;return n&&(t=`0 0 0 1px ${pu.ui.borderFocus} inset`),r&&(o=pu.ui.borderDisabled),El({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")})," ",Lu({paddingLeft:2}),";}"),Id=sl("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),kd=sl("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),Nd=(0,ca.memo)((function(e){let{disabled:t=!1,isFocused:r=!1}=e;return(0,ca.createElement)(Cd,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:r})})),Dd=Nd;function Md(e){let{children:t,hideLabelFromVision:r,htmlFor:n,...o}=e;return t?r?(0,ca.createElement)(ul,{as:"label",htmlFor:n},t):(0,ca.createElement)(Ad,sa({htmlFor:n},o),t):null}const Fd=(0,ca.forwardRef)((function e(t,r){let{__unstableInputWidth:n,children:o,className:i,disabled:a=!1,hideLabelFromVision:s=!1,labelPosition:c,id:l,isFocused:u=!1,label:d,prefix:p,size:m="default",suffix:h,...f}=t;const y=function(t){const r=(0,da.useInstanceId)(e);return t||`input-base-control-${r}`}(l),g=s||!d;return(0,ca.createElement)(vd,sa({},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:i,isFocused:u,labelPosition:c,ref:r}),(0,ca.createElement)(xd,null,(0,ca.createElement)(Md,{className:"components-input-control__label",hideLabelFromVision:s,labelPosition:c,htmlFor:y,size:m},d)),(0,ca.createElement)(Ed,{__unstableInputWidth:n,className:"components-input-control__container",disabled:a,hideLabel:g,labelPosition:c},p&&(0,ca.createElement)(Id,{className:"components-input-control__prefix"},p),o,h&&(0,ca.createElement)(kd,{className:"components-input-control__suffix"},h),(0,ca.createElement)(Dd,{disabled:a,isFocused:u})))})),Pd={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 Ld(e,t,r){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*r):e*t*r/(t+r*e)}function Ud(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?-Ld(t-e,r-t,n)+t:e>r?+Ld(e-r,r-t,n)+r:e}function zd(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(r),!0).forEach((function(t){zd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Bd={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 Hd(e){return e?e[0].toUpperCase()+e.slice(1):""}const qd=["enter","leave"];const Vd=["gotpointercapture","lostpointercapture"];function Yd(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 Wd(e){return"touches"in e}function Gd(e){return Wd(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Kd(e){return Wd(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function Qd(e){const t=Kd(e);return Wd(e)?t.identifier:t.pointerId}function Zd(e){const t=Kd(e);return[t.clientX,t.clientY]}function Xd(e,...t){return"function"==typeof e?e(...t):e}function Jd(){}function ep(...e){return 0===e.length?Jd:1===e.length?e[0]:function(){let t;for(const r of e)t=r.apply(this,arguments)||t;return t}}function tp(e,t){return Object.assign({},t,e||{})}class rp{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?Xd(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:i}=e;Object.assign(t,{shiftKey:r,altKey:n,metaKey:o,ctrlKey:i})}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);Pd.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,c]=r.threshold,{_step:l,values:u}=t;if(r.hasCustomTransform?(!1===l[0]&&(l[0]=Math.abs(i)>=s&&u[0]),!1===l[1]&&(l[1]=Math.abs(a)>=c&&u[1])):(!1===l[0]&&(l[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===l[1]&&(l[1]=Math.abs(a)>=c&&Math.sign(a)*c)),t.intentional=!1!==l[0]||!1!==l[1],!t.intentional)return;const d=[0,0];if(r.hasCustomTransform){const[e,t]=u;d[0]=!1!==l[0]?e-l[0]:0,d[1]=!1!==l[1]?t-l[1]:0}else d[0]=!1!==l[0]?i-l[0]:0,d[1]=!1!==l[1]?a-l[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=Xd(r.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[h,f]=t.offset,[[y,g],[_,b]]=t._bounds;t.overflow=[h<y?-1:h>g?1:0,f<_?-1:f>b?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 v=t._active&&r.rubberband||[0,0];if(t.offset=function(e,[t,r],[n,o]){const[[i,a],[s,c]]=e;return[Ud(t,i,a,n),Ud(r,s,c,o)]}(t._bounds,t.offset,v),t.delta=Pd.sub(t.offset,p),this.computeMovement(),m&&(!t.last||o>32)){t.delta=Pd.sub(t.offset,p);const e=t.delta.map(Math.abs);Pd.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($d($d($d({},t),e),{},{[this.aliasKey]:e.values}));void 0!==n&&(e.memo=n)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class np extends rp{constructor(...e){super(...e),zd(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=Pd.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Pd.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[Gd(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 op=e=>e,ip={enabled:(e=!0)=>e,eventOptions:(e,t,r)=>$d($d({},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 Pd.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?Pd.toVector(e):void 0,transform(e,t,r){const n=e||r.shared.transform;return this.hasCustomTransform=!!n,n||op},threshold:e=>Pd.toVector(e,0)},ap=$d($d({},ip),{},{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=>ap.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]]}}),sp={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]},cp="undefined"!=typeof window&&window.document&&window.document.createElement;function lp(){return cp&&"ontouchstart"in window}const up={isBrowser:cp,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:lp(),touchscreen:lp()||cp&&window.navigator.maxTouchPoints>1,pointer:cp&&"onpointerdown"in window,pointerLock:cp&&"exitPointerLock"in window.document},dp={mouse:0,touch:0,pen:8},pp=$d($d({},ap),{},{device(e,t,{pointer:{touch:r=!1,lock:n=!1,mouse:o=!1}={}}){return this.pointerLock=n&&up.pointerLock,up.touch&&r?"touch":this.pointerLock?"mouse":up.pointer&&!o?"pointer":up.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:r}){if(this.preventScrollDelay="number"==typeof r?r:r||void 0===r&&e?250:void 0,up.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 i=Pd.toVector(e,r?n:o?1:0);return this.filterTaps=r,this.tapsThreshold=n,i},swipe({velocity:e=.5,distance:t=50,duration:r=250}={}){return{velocity:this.transform(Pd.toVector(e)),distance:this.transform(Pd.toVector(t)),duration:r}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?$d($d({},dp),e):dp,keyboardDisplacement:(e=10)=>e});$d($d({},ip),{},{device(e,t,{shared:r,pointer:{touch:n=!1}={}}){if(r.target&&!up.touch&&up.gesture)return"gesture";if(up.touch&&n)return"touch";if(up.touchscreen){if(up.pointer)return"pointer";if(up.touch)return"touch"}},bounds(e,t,{scaleBounds:r={},angleBounds:n={}}){const o=e=>{const t=tp(Xd(r,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=tp(Xd(n,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof r&&"function"!=typeof n?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,r){return this.lockDirection="lock"===r.axis,Pd.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e}),$d($d({},ap),{},{mouseOnly:(e=!0)=>e}),$d($d({},ap),{},{mouseOnly:(e=!0)=>e});const mp=new Map,hp=new Map,fp={key:"drag",engine:class extends np{constructor(...e){super(...e),zd(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=ap.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=Qd(e),r._pointerActive=!0,this.computeValues(Zd(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Gd(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=Qd(e);if(void 0!==t._pointerId&&n!==t._pointerId)return;const o=Zd(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Pd.sub(o,t._values),this.computeValues(o)),Pd.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=Qd(e);if(void 0!==t._pointerId&&n!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=r.tapsThreshold&&i<=r.tapsThreshold,t.tap&&r.filterTaps)t._force=!0;else{const[e,n]=t._delta,[o,i]=t._movement,[a,s]=r.swipe.velocity,[c,l]=r.swipe.distance,u=r.swipe.duration;if(t.elapsedTime<u){const r=Math.abs(e/t.timeDelta),u=Math.abs(n/t.timeDelta);r>a&&Math.abs(o)>c&&(t.swipe[0]=Math.sign(e)),u>s&&Math.abs(i)>l&&(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=sp[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,Pd.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in sp&&(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:pp};const yp={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(up.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},gp=["target","eventOptions","window","enabled","transform"];function _p(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]=_p(e[n],o);break;case"boolean":o&&(r[n]=e[n])}return r}class bp{constructor(e,t){zd(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,r,n,o){const i=this._listeners,a=function(e,t=""){const r=Bd[e];return e+(r&&r[t]||t)}(t,r),s=$d($d({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,n,s);const c=()=>{e.removeEventListener(a,n,s),i.delete(c)};return i.add(c),c}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class vp{constructor(){zd(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 Sp{constructor(e){var t,r;zd(this,"gestures",new Set),zd(this,"_targetEventStore",new bp(this)),zd(this,"gestureEventStores",{}),zd(this,"gestureTimeoutStores",{}),zd(this,"handlers",{}),zd(this,"config",{}),zd(this,"pointerIds",new Set),zd(this,"touchIds",new Set),zd(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),t=this,(r=e).drag&&wp(t,"drag"),r.wheel&&wp(t,"wheel"),r.scroll&&wp(t,"scroll"),r.move&&wp(t,"move"),r.pinch&&wp(t,"pinch"),r.hover&&wp(t,"hover")}setEventIds(e){return Wd(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:i,window:a,enabled:s,transform:c}=n,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(n,gp);if(r.shared=_p({target:o,eventOptions:i,window:a,enabled:s,transform:c},yp),t){const e=hp.get(t);r[t]=_p($d({shared:r.shared},l),e)}else for(const e in l){const t=hp.get(e);t&&(r[e]=_p($d({shared:r.shared},l[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],i=Ep(r,o.eventOptions,!!n);o.enabled&&new(mp.get(t))(this,e,t).bind(i)}const o=Ep(r,t.eventOptions,!!n);for(const t in this.nativeHandlers)o(t,"",(r=>this.nativeHandlers[t]($d($d({},this.state.shared),{},{event:r,args:e}))),void 0,!0)}for(const e in r)r[e]=ep(...r[e]);if(!n)return r;for(const e in r){const{device:t,capture:o,passive:i}=Yd(e);this._targetEventStore.add(n,t,"",r[e],{capture:o,passive:i})}}}}function wp(e,t){e.gestures.add(t),e.gestureEventStores[t]=new bp(e,t),e.gestureTimeoutStores[t]=new vp}const Ep=(e,t,r)=>(n,o,i,a={},s=!1)=>{var c,l;const u=null!==(c=a.capture)&&void 0!==c?c:t.capture,d=null!==(l=a.passive)&&void 0!==l?l:t.passive;let p=s?n:function(e,t="",r=!1){const n=Bd[e],o=n&&n[t]||t;return"on"+Hd(e)+Hd(o)+(function(e=!1,t){return e&&!qd.includes(t)}(r,o)?"Capture":"")}(n,o,u);r&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function Tp(e,t){var r;return r=fp,mp.set(r.key,r.engine),hp.set(r.key,r.resolver),function(e,t={},r,n){const o=fe().useMemo((()=>new Sp(e)),[]);if(o.applyHandlers(e,n),o.applyConfig(t,r),fe().useEffect(o.effect.bind(o)),fe().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}({drag:e},t||{},"drag")}const Rp=e=>e,Op={_event:{},error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},Ap="CHANGE",xp="COMMIT",Cp="DRAG_END",Ip="DRAG_START",kp="DRAG",Np="INVALIDATE",Dp="PRESS_DOWN",Mp="PRESS_ENTER",Fp="PRESS_UP",Pp="RESET";const Lp=(0,ca.forwardRef)((function(e,t){let{disabled:r=!1,dragDirection:n="n",dragThreshold:o=10,id:i,isDragEnabled:a=!1,isFocused:s,isPressEnterToChange:c=!1,onBlur:l=G.noop,onChange:u=G.noop,onDrag:d=G.noop,onDragEnd:p=G.noop,onDragStart:m=G.noop,onFocus:h=G.noop,onKeyDown:f=G.noop,onValidate:y=G.noop,size:g="default",setIsFocused:_,stateReducer:b=e=>e,value:v,type:S,...w}=e;const{state:E,change:T,commit:R,drag:O,dragEnd:A,dragStart:x,invalidate:C,pressDown:I,pressEnter:k,pressUp:N,reset:D}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rp,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Op;const[r,n]=(0,ca.useReducer)((o=e,(e,t)=>{const r={...e};switch(t.type){case Fp:case Dp:r.isDirty=!1;break;case Ip:r.isDragging=!0;break;case Cp:r.isDragging=!1;break;case Ap:r.error=null,r.value=t.payload.value,e.isPressEnterToChange&&(r.isDirty=!0);break;case xp:r.value=t.payload.value,r.isDirty=!1;break;case Pp:r.error=null,r.isDirty=!1,r.value=t.payload.value||e.initialValue;break;case Np: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]:Op;const{value:t}=e;return{...Op,...e,initialValue:t}}(t));var o;const i=e=>(t,r)=>{r&&r.persist&&r.persist(),n({type:e,payload:{value:t,event:r}})},a=e=>t=>{t&&t.persist&&t.persist(),n({type:e,payload:{event:t}})},s=e=>t=>{n({type:e,payload:t})},c=i(Ap),l=i(Pp),u=i(xp),d=s(Ip),p=s(kp),m=s(Cp),h=a(Fp),f=a(Dp),y=a(Mp);return{change:c,commit:u,dispatch:n,drag:p,dragEnd:m,dragStart:d,invalidate:(e,t)=>n({type:Np,payload:{error:e,event:t}}),pressDown:f,pressEnter:y,pressUp:h,reset:l,state:r}}(b,{isDragEnabled:a,value:v,isPressEnterToChange:c}),{_event:M,value:F,isDragging:P,isDirty:L}=E,U=(0,ca.useRef)(!1),z=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,ca.useEffect)((()=>{document.documentElement.style.cursor=e?r:null}),[e]),r}(P,n);yl((()=>{v!==F&&(s||U.current?L||(u(F,{event:M}),U.current=!1):R(v,M))}),[F,L,s,v]);const j=e=>{const t=e.currentTarget.value;try{y(t),R(t,e)}catch(t){C(t,e)}},$=Tp((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),P||(m(e),x(e))}}),{axis:"e"===n||"w"===n?"x":"y",threshold:o,enabled:a,pointer:{capture:!1}}),B=a?$():{};let H;return"number"===S&&(H=e=>{var t;null===(t=w.onMouseDown)||void 0===t||t.call(w,e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,ca.createElement)(Td,sa({},w,B,{className:"components-input-control__input",disabled:r,dragCursor:z,isDragging:P,id:i,onBlur:e=>{l(e),null==_||_(!1),!L&&e.target.validity.valid||(U.current=!0,j(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(),j(e));break;case"Escape":c&&L&&(e.preventDefault(),D(v,e))}},onMouseDown:H,ref:t,inputSize:g,value:F,type:S}))})),Up=Lp;const zp=(0,ca.forwardRef)((function e(t,r){let{__unstableStateReducer:n=e=>e,__unstableInputWidth:o,className:i,disabled:a=!1,hideLabelFromVision:s=!1,id:c,isPressEnterToChange:l=!1,label:u,labelPosition:d="top",onChange:p=G.noop,onValidate:m=G.noop,onKeyDown:h=G.noop,prefix:f,size:y="default",suffix:g,value:_,...b}=t;const[v,S]=(0,ca.useState)(!1),w=function(t){const r=(0,da.useInstanceId)(e);return t||`inspector-input-control-${r}`}(c),E=ua()("components-input-control",i);return(0,ca.createElement)(Fd,{__unstableInputWidth:o,className:E,disabled:a,gap:3,hideLabelFromVision:s,id:w,isFocused:v,justify:"left",label:u,labelPosition:d,prefix:f,size:y,suffix:g},(0,ca.createElement)(Up,sa({},b,{className:"components-input-control__input",disabled:a,id:w,isFocused:v,isPressEnterToChange:l,onChange:p,onKeyDown:h,onValidate:m,ref:r,setIsFocused:S,size:y,stateReducer:n,value:_})))}));var jp={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 $p=e=>{let{hideHTMLArrows:t}=e;return t?jp:""},Bp=sl(zp,{target:"ep48uk90"})($p,";");function Hp(e){const t=Number(e);return isNaN(t)?0:t}function qp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t)=>e+Hp(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=Hp(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),o=Hp(r),i=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),a=Math.round(n/o)*o,s=(0,G.clamp)(a,e,t);return i?Hp(s.toFixed(i)):s}const Yp=(0,ca.forwardRef)((function(e,t){let{__unstableStateReducer:r,className:n,dragDirection:o="n",hideHTMLArrows:i=!1,isDragEnabled:a=!0,isShiftStepEnabled:s=!0,label:c,max:l=1/0,min:u=-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),b=Vp(0,u,l,_),v=(e,t)=>g?Math.min(l,Math.max(u,e)):Vp(e,u,l,null!=t?t:_),S="number"===h?"off":null,w=ua()("components-number-control",n);return(0,ca.createElement)(Bp,sa({autoComplete:S,inputMode:"numeric"},y,{className:w,dragDirection:o,hideHTMLArrows:i,isDragEnabled:a,label:c,max:l,min:u,ref:t,required:d,step:m,type:h,value:f,__unstableStateReducer:(e,t)=>{var n;const i=((e,t)=>{const r={...e},{type:n,payload:i}=t,c=null==i?void 0:i.event,l=r.value;if(n===Fp||n===Dp){const e=c.shiftKey&&s,t=e?parseFloat(p)*_:_;let o=function(e){const t=""===e;return!ml(e)||t}(l)?b:l;null!=c&&c.preventDefault&&c.preventDefault(),n===Fp&&(o=qp(o,t)),n===Dp&&(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=Hp(t);return 0===r?n:e-n}),0)}(o,t)),r.value=v(o,e?t:null)}if(n===kp&&a){const[e,t]=i.delta,n=i.shiftKey&&s,a=n?parseFloat(p)*_:_;let c,u;switch(o){case"n":u=t,c=-1;break;case"e":u=e,c=(0,ue.isRTL)()?-1:1;break;case"s":u=t,c=1;break;case"w":u=e,c=(0,ue.isRTL)()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const e=u*a*c;r.value=v(qp(l,e),n?a:null)}}if(n===Mp||n===xp){const e=!1===d&&""===l;r.value=e?l:v(l)}return r})(e,t);return null!==(n=null==r?void 0:r(i,t))&&void 0!==n?n:i}}))})),Wp=()=>El({height:30,minHeight:30},"",""),Gp=sl("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%"}),Kp=sl("div",{target:"exqw8y213"})("box-sizing:border-box;color:",pu.blue.medium.focus,";display:block;flex:1;position:relative;width:100%;",(e=>{let{color:t=pu.ui.borderFocus}=e;return El({color:t},"","")}),";",Wp,";",(e=>{let{marks:t}=e;return El({marginBottom:t?16:null},"","")}),";"),Qp=sl("span",{target:"exqw8y212"})("margin-top:",4,"px;",Lu({marginRight:6}),";"),Zp=sl("span",{target:"exqw8y211"})("margin-top:",4,"px;",Lu({marginLeft:6}),";"),Xp=sl("span",{target:"exqw8y210"})("background-color:",pu.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=pu.lightGray[400]),El({background:n},"","")}),";"),Jp=sl("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=pu.lightGray[800]),El({background:n},"","")}),";"),em=sl("span",{target:"exqw8y28"})({name:"1xuuvmv",styles:"box-sizing:border-box;display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),tm=sl("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":pu.lightGray[600];return t&&(n=pu.lightGray[800]),El({backgroundColor:n},"","")}),";"),rm=sl("span",{target:"exqw8y26"})("box-sizing:border-box;color:",pu.lightGray[600],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(e=>{let{isFilled:t}=e;return El({color:t?pu.darkGray[300]:pu.lightGray[600]},"","")}),";");var nm={name:"1sb75b3",styles:"background-color:var( --wp-admin-theme-color )"};const om=e=>{let{disabled:t}=e;return t?El("background-color:",pu.lightGray[800],";",""):nm},im=sl("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%;",om,";",Lu({marginLeft:-10}),";",Lu({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),am=sl("span",{target:"exqw8y24"})("align-items:center;border-radius:50%;box-sizing:border-box;height:100%;outline:0;position:absolute;user-select:none;width:100%;",om,";",(e=>{let{isFocused:t}=e;return t?El("&::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;}",""):""}),";"),sm=sl("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 cm={name:"1cypxip",styles:"top:-80%"},lm={name:"1lr98c4",styles:"bottom:-80%"};const um=sl("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 El({opacity:t?1:0},"","")}),";",(e=>{let{position:t}=e;return"bottom"===t?lm:cm}),";",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"),";",Lu({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),dm=sl(Yp,{target:"exqw8y21"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",hu(16),"!important;input[type='number']&{",Wp,";}",Lu({marginLeft:`${hu(4)} !important`}),";"),pm=sl("span",{target:"exqw8y20"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Wp,";}",Lu({marginLeft:8}),";"),mm=(0,ca.forwardRef)((function(e,t){let{describedBy:r,label:n,onHideTooltip:o=G.noop,onMouseLeave:i=G.noop,onMouseMove:a=G.noop,onShowTooltip:s=G.noop,value:c,...l}=e;const u=function(e){let{onHide:t=G.noop,onMouseLeave:r=G.noop,onMouseMove:n=G.noop,onShow:o=G.noop,timeout:i=300}=e;const[a,s]=(0,ca.useState)(!1),c=(0,ca.useRef)(),l=(0,ca.useCallback)((e=>{window.clearTimeout(c.current),c.current=setTimeout(e,i)}),[i]),u=(0,ca.useCallback)((e=>{n(e),l((()=>{a||(s(!0),o())}))}),[]),d=(0,ca.useCallback)((e=>{r(e),l((()=>{s(!1),t()}))}),[]);return(0,ca.useEffect)((()=>()=>{window.clearTimeout(c.current)})),{onMouseMove:u,onMouseLeave:d}}({onHide:o,onMouseLeave:i,onMouseMove:a,onShow:s});return(0,ca.createElement)(sm,sa({},l,u,{"aria-describedby":r,"aria-label":n,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:c}))})),hm=mm;function fm(e){let{className:t,isFilled:r=!1,label:n,style:o={},...i}=e;const a=ua()("components-range-control__mark",r&&"is-filled",t),s=ua()("components-range-control__mark-label",r&&"is-filled");return(0,ca.createElement)(ca.Fragment,null,(0,ca.createElement)(tm,sa({},i,{"aria-hidden":"true",className:a,isFilled:r,style:o})),n&&(0,ca.createElement)(rm,{"aria-hidden":"true",className:s,isFilled:r,style:o},n))}function ym(e){let{disabled:t=!1,marks:r=!1,min:n=0,max:o=100,step:i=1,value:a=0,...s}=e;return(0,ca.createElement)(ca.Fragment,null,(0,ca.createElement)(Xp,sa({disabled:t},s)),r&&(0,ca.createElement)(gm,{disabled:t,marks:r,min:n,max:o,step:i,value:a}))}function gm(e){let{disabled:t=!1,marks:r=!1,min:n=0,max:o=100,step:i=1,value:a=0}=e;"any"===i&&(i=1);const s=function(e){let{marks:t,min:r=0,max:n=100,step:o=1,value:i=0}=e;if(!t)return[];const a=n-r;if(!Array.isArray(t)){t=[];const e=1+Math.round(a/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<=i,l=(e.value-r)/a*100+"%",u={[(0,ue.isRTL)()?"right":"left"]:l};s.push({...e,isFilled:c,key:o,style:u})})),s}({marks:r,min:n,max:o,step:i,value:a});return(0,ca.createElement)(em,{"aria-hidden":"true",className:"components-range-control__marks"},s.map((e=>(0,ca.createElement)(fm,sa({},e,{key:e.key,"aria-hidden":"true",disabled:t})))))}function _m(e){let{className:t,inputRef:r,tooltipPosition:n,show:o=!1,style:i={},value:a=0,renderTooltipContent:s=e=>e,zIndex:c=100,...l}=e;const u=function(e){let{inputRef:t,tooltipPosition:r}=e;const[n,o]=(0,ca.useState)(),i=(0,ca.useCallback)((()=>{t&&t.current&&o(r)}),[r]);return(0,ca.useEffect)((()=>{i()}),[i]),(0,ca.useEffect)((()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}))),n}({inputRef:r,tooltipPosition:n}),d=ua()("components-simple-tooltip",t),p={...i,zIndex:c};return(0,ca.createElement)(um,sa({},l,{"aria-hidden":o,className:d,position:u,show:o,role:"tooltip",style:p}),s(a))}const bm=(0,ca.forwardRef)((function e(t,r){var n;let{afterIcon:o,allowReset:i=!1,beforeIcon:a,className:s,currentInput:c,color:l=pu.ui.theme,disabled:u=!1,help:d,initialPosition:p,isShiftStepEnabled:m=!0,label:h,hideLabelFromVision:f=!1,marks:y=!1,max:g=100,min:_=0,onBlur:b=G.noop,onChange:v=G.noop,onFocus:S=G.noop,onMouseMove:w=G.noop,onMouseLeave:E=G.noop,railColor:T,resetFallbackValue:R,renderTooltipContent:O=e=>e,showTooltip:A,shiftStep:x=10,step:C=1,trackColor:I,value:k,withInputField:N=!0,...D}=t;const[M,F]=function(e){let{min:t,max:r,value:n,initial:o}=e;const[i,a]=fl(Ru(n,t,r),{initial:o,fallback:null});return[i,(0,ca.useCallback)((e=>{a(null===e?null:Ru(e,t,r))}),[t,r])]}({min:_,max:g,value:k,initial:p}),P=(0,ca.useRef)(!1);"any"===C&&(A=!1,N=!1);const[L,U]=(0,ca.useState)(A),[z,j]=(0,ca.useState)(!1),$=(0,ca.useRef)(),B=null===(n=$.current)||void 0===n?void 0:n.matches(":focus"),H=!u&&z,q=null===M,V=q?"":void 0!==M?M:c,Y=q?(g-_)/2+_:M,W=q?50:(M-_)/(g-_)*100,K=`${(0,G.clamp)(W,0,100)}%`,Q=ua()("components-range-control",s),Z=ua()("components-range-control__wrapper",!!y&&"is-marked"),X=(0,da.useInstanceId)(e,"inspector-range-control"),J=d?`${X}__help`:void 0,ee=!1!==A&&(0,G.isFinite)(M),te=()=>{let e=parseFloat(R),t=e;isNaN(e)&&(e=null,t=void 0),F(e),v(t)},re={[(0,ue.isRTL)()?"right":"left"]:K};return(0,ca.createElement)(Eu,{className:Q,label:h,hideLabelFromVision:f,id:X,help:d},(0,ca.createElement)(Gp,{className:"components-range-control__root"},a&&(0,ca.createElement)(Qp,null,(0,ca.createElement)(Nc,{icon:a})),(0,ca.createElement)(Kp,{className:Z,color:l,marks:!!y},(0,ca.createElement)(hm,sa({},D,{className:"components-range-control__slider",describedBy:J,disabled:u,id:X,label:h,max:g,min:_,onBlur:e=>{b(e),j(!1),U(!1)},onChange:e=>{const t=parseFloat(e.target.value);F(t),v(t)},onFocus:e=>{S(e),j(!0),U(!0)},onMouseMove:w,onMouseLeave:E,ref:e=>{$.current=e,r&&r(e)},step:C,value:V})),(0,ca.createElement)(ym,{"aria-hidden":!0,disabled:u,marks:y,max:g,min:_,railColor:T,step:C,value:Y}),(0,ca.createElement)(Jp,{"aria-hidden":!0,className:"components-range-control__track",disabled:u,style:{width:K},trackColor:I}),(0,ca.createElement)(im,{style:re,disabled:u},(0,ca.createElement)(am,{"aria-hidden":!0,isFocused:H,disabled:u})),ee&&(0,ca.createElement)(_m,{className:"components-range-control__tooltip",inputRef:$,tooltipPosition:"bottom",renderTooltipContent:O,show:B||L,style:re,value:M})),o&&(0,ca.createElement)(Zp,null,(0,ca.createElement)(Nc,{icon:o})),N&&(0,ca.createElement)(dm,{"aria-label":h,className:"components-range-control__number",disabled:u,inputMode:"decimal",isShiftStepEnabled:m,max:g,min:_,onBlur:()=>{P.current&&(te(),P.current=!1)},onChange:e=>{e=parseFloat(e),F(e),isNaN(e)?i&&(P.current=!0):((e<_||e>g)&&(e=Ru(e,_,g)),v(e),P.current=!1)},shiftStep:x,step:C,value:V}),i&&(0,ca.createElement)(pm,null,(0,ca.createElement)(pl,{className:"components-range-control__reset",disabled:u||void 0===M,variant:"secondary",isSmall:!0,onClick:te},(0,ue.__)("Reset")))))})),vm=bm,Sm=window.wp.blocks,wm=window.wp.blockEditor;var Em=r(4848);(0,Sm.registerBlockType)("woocommerce-payments/multi-currency-switcher",{apiVersion:2,title:(0,ue.__)("Currency Switcher Block","woocommerce-payments"),description:(0,ue.__)("Let your customers switch between your enabled currencies","woocommerce-payments"),icon:(0,Em.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",baseProfile:"tiny-ps",viewBox:"0 0 24 24",children:[(0,Em.jsx)("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,Em.jsx)("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,Em.jsx)("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:i,border:a,borderRadius:s,borderColor:c,backgroundColor:l},setAttributes:u}=e,{isLoading:d}=(0,q.useSelect)((e=>{const{getCurrencies:t,isResolving:r}=e(zi);return{currencies:t(),isLoading:r("getCurrencies",[])}}),[]),{enabledCurrencies:p}=(()=>{const e=(0,q.useSelect)((e=>{const{getEnabledCurrencies:t}=e(zi);return t()})),{submitEnabledCurrenciesUpdate:t}=(0,q.useDispatch)(zi);return{enabledCurrencies:e,submitEnabledCurrenciesUpdate:t}})(),m=p?Object.keys(p):[],h={div:{lineHeight:o},select:{fontSize:n,color:i,backgroundColor:l,borderWidth:a?"1px":"0px",borderColor:c,borderRadius:s}},f=(0,wm.useBlockProps)(),y=!window._wpemojiSettings||window._wpemojiSettings.supports?.flag;return(0,Em.jsxs)("div",{...f,children:[(0,Em.jsxs)(wm.InspectorControls,{children:[(0,Em.jsx)(bl,{title:(0,ue.__)("Multi-Currency settings","woocommerce-payments"),children:(0,Em.jsx)("a",{href:"/wp-admin/admin.php?page=wc-settings&tab=wcpay_multi_currency",target:"_blank",rel:"noreferrer",children:(0,ue.__)("Adjust and edit your Multi-Currency settings","woocommerce-payments")})}),(0,Em.jsxs)(bl,{title:(0,ue.__)("Layout","woocommerce-payments"),children:[(0,Em.jsx)(Tu,{label:(0,ue.__)("Display flags","woocommerce-payments"),checked:r,onChange:e=>{u({flag:e})}}),(0,Em.jsx)(Tu,{label:(0,ue.__)("Display currency symbols","woocommerce-payments"),checked:t,onChange:e=>{u({symbol:e})}}),(0,Em.jsx)(Tu,{label:(0,ue.__)("Border","woocommerce-payments"),checked:a,onChange:e=>{u({border:void 0!==e&&e})}}),(0,Em.jsx)(vm,{label:(0,ue.__)("Border radius","woocommerce-payments"),value:s,onChange:e=>{u({borderRadius:void 0===e?3:e})},min:1,max:20})]}),(0,Em.jsxs)(bl,{title:(0,ue.__)("Typography","woocommerce-payments"),children:[(0,Em.jsx)(vm,{label:(0,ue.__)("Size","woocommerce-payments"),value:n,onChange:e=>{u({fontSize:void 0===e?11:e})},min:6,max:48}),(0,Em.jsx)(vm,{label:(0,ue.__)("Line height","woocommerce-payments"),value:o,onChange:e=>{u({fontLineHeight:void 0===e?"normal":e})},min:1,max:3,step:.1})]}),(0,Em.jsxs)(bl,{title:(0,ue.__)("Color settings","woocommerce-payments"),children:[(0,Em.jsx)(wm.ColorPaletteControl,{onChange:e=>{u({fontColor:void 0===e?"#000000":e})},value:i,label:(0,ue.__)("Text","woocommerce-payments")}),(0,Em.jsx)(wm.ColorPaletteControl,{onChange:e=>{u({backgroundColor:void 0===e?"transparent":e})},value:l,label:(0,ue.__)("Background","woocommerce-payments")}),(0,Em.jsx)(wm.ColorPaletteControl,{onChange:e=>{u({borderColor:void 0===e?"#000000":e})},value:c,label:(0,ue.__)("Border","woocommerce-payments")})]})]},"setting"),(0,Em.jsx)("div",{className:"currency-switcher-holder",style:h.div,children:(0,Em.jsxs)("select",{name:"currency",disabled:d,style:h.select,children:[d&&(0,Em.jsx)("option",{children:(0,ue.__)("Loading…","woocommerce-payments")}),!d&&p&&m.map((e=>(0,Em.jsxs)("option",{value:p[e].code,children:[y&&r?p[e].flag+" ":"",t&&p[e].symbol!==p[e].code?p[e].symbol+" ":"",p[e].code]},p[e].id)))]})})]})},save:()=>null})})()})(); |