PageSourceSearch

https://www.limitlessnotion.com/_next/static/chunks/4503-dcda74a67731eda6.js

js limitlessnotion.com collected 2026-10-04 12:23:53 UTC 153,303 bytes, 22 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4503],{35236:function(e,t,n){"use strict";n.d(t,{Vv:function(){return PayPalScriptProvider},ch:function(){return PayPalButtons}});var r,i,o,s,c,u,l=n(2784);(r=s||(s={})).INITIAL="initial",r.PENDING="pending",r.REJECTED="rejected",r.RESOLVED="resolved",(i=c||(c={})).LOADING_STATUS="setLoadingStatus",i.RESET_OPTIONS="resetOptions",i.SET_BRAINTREE_INSTANCE="braintreeInstance",(o=u||(u={})).NUMBER="number",o.CVV="cvv",o.EXPIRATION_DATE="expirationDate",o.EXPIRATION_MONTH="expirationMonth",o.EXPIRATION_YEAR="expirationYear",o.POSTAL_CODE="postalCode";var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function __spreadArray(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var d="data-react-paypal-script-id",f={DATA_SDK_INTEGRATION_SOURCE:"dataSdkIntegrationSource",DATA_SDK_INTEGRATION_SOURCE_VALUE:"react-paypal-js",DATA_NAMESPACE:"dataNamespace"},p="paypal";function getPayPalWindowNamespace$1(e){return void 0===e&&(e=p),window[e]}function generateErrorMessage(e){var t=e.reactComponentName,n=e.sdkComponentKey,r=e.sdkRequestedComponents,i=void 0===r?"":r,o=e.sdkDataNamespace,s=n.charAt(0).toUpperCase().concat(n.substring(1)),c="Unable to render <".concat(t," /> because window.").concat(void 0===o?p:o,".").concat(s," is undefined.");if(!i.includes(n)){var u=[i,n].filter(Boolean).join();c+="\nTo fix the issue, add '".concat(n,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(u,"'}}>`.")}return c}function getScriptID(e){e[d];var t=__rest(e,[d+""]);return"react-paypal-js-".concat(function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].charCodeAt(0)*n;e[n+1]&&(r+=e[n+1].charCodeAt(0)*(n-1)),t+=String.fromCharCode(97+Math.abs(r)%26)}return t}(JSON.stringify(t)))}function scriptReducer(e,t){var n,r,i,o;switch(t.type){case c.LOADING_STATUS:if("object"==typeof t.value)return __assign(__assign({},e),{loadingStatus:t.value.state,loadingStatusErrorMessage:t.value.message});return __assign(__assign({},e),{loadingStatus:t.value});case c.RESET_OPTIONS:return i=e.options[d],(null==(o=self.document.querySelector("script[".concat(d,'="').concat(i,'"]')))?void 0:o.parentNode)&&o.parentNode.removeChild(o),__assign(__assign({},e),{loadingStatus:s.PENDING,options:__assign(__assign(((n={})[f.DATA_SDK_INTEGRATION_SOURCE]=f.DATA_SDK_INTEGRATION_SOURCE_VALUE,n),t.value),((r={})[d]="".concat(getScriptID(t.value)),r))});case c.SET_BRAINTREE_INSTANCE:return __assign(__assign({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var h=(0,l.createContext)(null);function usePayPalScriptReducer(){var e=function(e){if("function"==typeof(null==e?void 0:e.dispatch)&&0!==e.dispatch.length)return e;throw Error("usePayPalScriptReducer must be used within a PayPalScriptProvider")}((0,l.useContext)(h));return[__assign(__assign({},e),{isInitial:e.loadingStatus===s.INITIAL,isPending:e.loadingStatus===s.PENDING,isResolved:e.loadingStatus===s.RESOLVED,isRejected:e.loadingStatus===s.REJECTED}),e.dispatch]}(0,l.createContext)({});var PayPalButtons=function(e){var t=e.className,n=e.disabled,r=void 0!==n&&n,i=e.children,o=e.forceReRender,s=void 0===o?[]:o,c=__rest(e,["className","disabled","children","forceReRender"]),u=r?{opacity:.38}:{},d="".concat(void 0===t?"":t," ").concat(r?"paypal-buttons-disabled":"").trim(),p=(0,l.useRef)(null),h=(0,l.useRef)(null),v=usePayPalScriptReducer()[0],y=v.isResolved,m=v.options,g=(0,l.useState)(null),b=g[0],E=g[1],S=(0,l.useState)(!0),w=S[0],x=S[1],A=(0,l.useState)(null)[1];function closeButtonsComponent(){null!==h.current&&h.current.close().catch(function(){})}return(0,l.useEffect)(function(){if(!1===y)return closeButtonsComponent;var e=getPayPalWindowNamespace$1(m.dataNamespace);if(void 0===e||void 0===e.Buttons)return A(function(){throw Error(generateErrorMessage({reactComponentName:PayPalButtons.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:m.components,sdkDataNamespace:m[f.DATA_NAMESPACE]}))}),closeButtonsComponent;try{h.current=e.Buttons(__assign(__assign({},c),{onInit:function(e,t){E(t),"function"==typeof c.onInit&&c.onInit(e,t)}}))}catch(e){return A(function(){throw Error("Failed to render <PayPalButtons /> component. Failed to initialize:  ".concat(e))})}return!1===h.current.isEligible()?x(!1):p.current&&h.current.render(p.current).catch(function(e){null!==p.current&&0!==p.current.children.length&&A(function(){throw Error("Failed to render <PayPalButtons /> component. ".concat(e))})}),closeButtonsComponent},__spreadArray(__spreadArray([y],s,!0),[c.fundingSource],!1)),(0,l.useEffect)(function(){null!==b&&(!0===r?b.disable().catch(function(){}):b.enable().catch(function(){}))},[r,b]),l.createElement(l.Fragment,null,w?l.createElement("div",{ref:p,style:u,className:d}):i)};function createScriptElement(e,t){void 0===t&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach(function(e){n.setAttribute(e,t[e]),"data-csp-nonce"===e&&n.setAttribute("nonce",t["data-csp-nonce"])}),n}function validateArguments(e,t){if("object"!=typeof e||null===e)throw Error("Expected an options object.");if(void 0!==t&&"function"!=typeof t)throw Error("Expected PromisePonyfill to be a function.")}PayPalButtons.displayName="PayPalButtons";var PayPalMarks=function(e){var t=e.className,n=e.children,r=__rest(e,["className","children"]),i=usePayPalScriptReducer()[0],o=i.isResolved,s=i.options,c=(0,l.useRef)(null),u=(0,l.useState)(!0),d=u[0],p=u[1],h=(0,l.useState)(null)[1],renderPayPalMark=function(e){var t=c.current;if(!t||!e.isEligible())return p(!1);t.firstChild&&t.removeChild(t.firstChild),e.render(t).catch(function(e){null!==t&&0!==t.children.length&&h(function(){throw Error("Failed to render <PayPalMarks /> component. ".concat(e))})})};return(0,l.useEffect)(function(){if(!1!==o){var e=getPayPalWindowNamespace$1(s[f.DATA_NAMESPACE]);if(void 0===e||void 0===e.Marks)return h(function(){throw Error(generateErrorMessage({reactComponentName:PayPalMarks.displayName,sdkComponentKey:"marks",sdkRequestedComponents:s.components,sdkDataNamespace:s[f.DATA_NAMESPACE]}))});renderPayPalMark(e.Marks(__assign({},r)))}},[o,r.fundingSource]),l.createElement(l.Fragment,null,d?l.createElement("div",{ref:c,className:void 0===t?"":t}):n)};PayPalMarks.displayName="PayPalMarks";var PayPalMessages=function(e){var t=e.className,n=e.forceReRender,r=void 0===n?[]:n,i=__rest(e,["className","forceReRender"]),o=usePayPalScriptReducer()[0],s=o.isResolved,c=o.options,u=(0,l.useRef)(null),d=(0,l.useRef)(null),p=(0,l.useState)(null)[1];return(0,l.useEffect)(function(){if(!1!==s){var e=getPayPalWindowNamespace$1(c[f.DATA_NAMESPACE]);if(void 0===e||void 0===e.Messages)return p(function(){throw Error(generateErrorMessage({reactComponentName:PayPalMessages.displayName,sdkComponentKey:"messages",sdkRequestedComponents:c.components,sdkDataNamespace:c[f.DATA_NAMESPACE]}))});d.current=e.Messages(__assign({},i)),d.current.render(u.current).catch(function(e){null!==u.current&&0!==u.current.children.length&&p(function(){throw Error("Failed to render <PayPalMessages /> component. ".concat(e))})})}},__spreadArray([s],r,!0)),l.createElement("div",{ref:u,className:void 0===t?"":t})};PayPalMessages.displayName="PayPalMessages";var PayPalScriptProvider=function(e){var t,n,r=e.options,i=void 0===r?{clientId:"test"}:r,o=e.children,u=e.deferLoading,p=void 0!==u&&u,v=(0,l.useReducer)(scriptReducer,{options:__assign(__assign(((t={})[f.DATA_SDK_INTEGRATION_SOURCE]=f.DATA_SDK_INTEGRATION_SOURCE_VALUE,t),i),((n={})[d]="".concat(getScriptID(i)),n)),loadingStatus:p?s.INITIAL:s.PENDING}),y=v[0],m=v[1];return(0,l.useEffect)(function(){if(!1===p&&y.loadingStatus===s.INITIAL)return m({type:c.LOADING_STATUS,value:s.PENDING});if(y.loadingStatus===s.PENDING){var e=!0;return(function(e,t){if(void 0===t&&(t=Promise),validateArguments(e,t),"undefined"==typeof document)return t.resolve(null);var n,r,i,o,s,c=(r="https://www.paypal.com/sdk/js",e.sdkBaseUrl&&(r=e.sdkBaseUrl,delete e.sdkBaseUrl),o=(i=Object.keys(e).filter(function(t){return void 0!==e[t]&&null!==e[t]&&""!==e[t]}).reduce(function(t,n){var r=e[n].toString();return"data"===(n=n.replace(/[A-Z]+(?![a-z])|[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()})).substring(0,4)?t.dataAttributes[n]=r:t.queryParams[n]=r,t},{queryParams:{},dataAttributes:{}})).queryParams,s=i.dataAttributes,o["merchant-id"]&&-1!==o["merchant-id"].indexOf(",")&&(s["data-merchant-id"]=o["merchant-id"],o["merchant-id"]="*"),{url:"".concat(r,"?").concat((n="",Object.keys(o).forEac
1h(function(e){0!==n.length&&(n+="&"),n+=e+"="+o[e]}),n)),dataAttributes:s}),u=c.url,l=c.dataAttributes,d=l["data-namespace"]||"paypal",f=window[d];return function(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(null===n)return null;var r=createScriptElement(e,t),i=n.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(r.dataset).length)return null;var o=!0;return Object.keys(i.dataset).forEach(function(e){i.dataset[e]!==r.dataset[e]&&(o=!1)}),o?n:null}(u,l)&&f?t.resolve(f):(function(e,t){void 0===t&&(t=Promise),validateArguments(e,t);var n=e.url,r=e.attributes;if("string"!=typeof n||0===n.length)throw Error("Invalid url.");if(void 0!==r&&"object"!=typeof r)throw Error("Expected attributes to be an object.");return new t(function(e,t){var i,o,s,c,u,l;if("undefined"==typeof document)return e();o=(i={url:n,attributes:r,onSuccess:function(){return e()},onError:function(){return t(Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.')))}}).url,s=i.attributes,c=i.onSuccess,u=i.onError,(l=createScriptElement(o,s)).onerror=u,l.onload=c,document.head.insertBefore(l,document.head.firstElementChild)})})({url:u,attributes:l},t).then(function(){var e=window[d];if(e)return e;throw Error("The window.".concat(d," global variable is not available."))})})(y.options).then(function(){e&&m({type:c.LOADING_STATUS,value:s.RESOLVED})}).catch(function(t){console.error("".concat("Failed to load the PayPal JS SDK script."," ").concat(t)),e&&m({type:c.LOADING_STATUS,value:{state:s.REJECTED,message:String(t)}})}),function(){e=!1}}},[y.options,p,y.loadingStatus]),l.createElement(h.Provider,{value:__assign(__assign({},y),{dispatch:m})},o)}},66432:function(e,t,n){!function(e,t){"use strict";function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=i){var o=[],s=!0,c=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{s||null==i.return||i.return()}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function emptyFunction(){}function emptyFunctionWithReset(){}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,emptyFunctionWithReset.resetWarningCache=emptyFunction;var n,r,i=(n=r={exports:{}},r.exports,n.exports=function(){function shim(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol
1:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}(),r.exports),usePrevious=function(e){var n=t.useRef(e);return t.useEffect(function(){n.current=e},[e]),n.current},isUnknownObject=function(e){return null!==e&&"object"===_typeof(e)},o="[object Object]",isEqual=function isEqual(e,t){if(!isUnknownObject(e)||!isUnknownObject(t))return e===t;var n=Array.isArray(e);if(n!==Array.isArray(t))return!1;var r=Object.prototype.toString.call(e)===o;if(r!==(Object.prototype.toString.call(t)===o))return!1;if(!r&&!n)return e===t;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var c={},u=0;u<i.length;u+=1)c[i[u]]=!0;for(var l=0;l<s.length;l+=1)c[s[l]]=!0;var d=Object.keys(c);return d.length===i.length&&d.every(function(n){return isEqual(e[n],t[n])})},extractAllowedOptionsUpdates=function(e,t,n){return isUnknownObject(e)?Object.keys(e).reduce(function(r,i){var o=!isUnknownObject(t)||!isEqual(e[i],t[i]);return n.includes(i)?(o&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),r):o?_objectSpread2(_objectSpread2({},r||{}),{},_defineProperty({},i,e[i])):r},null):null},validateStripe=function(e){if(null===e||isUnknownObject(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error("Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},parseStripeProp=function(e){if(isUnknownObject(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(validateStripe)};var t=validateStripe(e);return null===t?{tag:"empty"}:{tag:"sync",stripe:t}},s=t.createContext(null);s.displayName="ElementsContext";var parseElementsContext=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},c=t.createContext(null);c.displayName="CartElementContext";var parseCartElementContext=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},Elements=function(e){var n=e.stripe,r=e.options,i=e.children,o=t.useMemo(function(){return parseStripeProp(n)},[n]),u=_slicedToArray(t.useState(null),2),l=u[0],d=u[1],f=_slicedToArray(t.useState(null),2),p=f[0],h=f[1],v=_slicedToArray(t.useState(function(){return{stripe:"sync"===o.tag?o.stripe:null,elements:"sync"===o.tag?o.stripe.elements(r):null}}),2),y=v[0],m=v[1];t.useEffect(function(){var e=!0,safeSetContext=function(e){m(function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}})};return"async"!==o.tag||y.stripe?"sync"!==o.tag||y.stripe||safeSetContext(o.stripe):o.stripePromise.then(function(t){t&&e&&safeSetContext(t)}),function(){e=!1}},[o,y,r]);var g=usePrevious(n);t.useEffect(function(){null!==g&&g!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[g,n]);var b=usePrevious(r);return t.useEffect(function(){if(y.elements){var e=extractAllowedOptionsUpdates(r,b,["clientSecret","fonts"]);e&&y.elements.update(e)}},[r,b,y.elements]),t.useEffect(function(){var e=y.stripe;e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"1.16.5"}),e.registerAppInfo({name:"react-stripe-js",version:"1.16.5",url:"https://stripe.com/docs/stripe-js/react"}))},[y.stripe]),t.createElement(s.Provider,{value:y},t.createElement(c.Provider,{value:{cart:l,setCart:d,cartState:p,setCartState:h}},i))};Elements.propTypes={stripe:i.any,options:i.object};var useElementsContextWithUseCase=function(e){return parseElementsContext(t.useContext(s),e)},useCartElementContextWithUseCase=function(e){return parseCartElementContext(t.useContext(c),e)},ElementsConsumer=function(e){return(0,e.children)(useElementsContextWithUseCase("mounts <ElementsConsumer>"))};ElementsConsumer.propTypes={children:i.func.isRequired};var useAttachEvent=function(e,n,r){var i=!!r,o=t.useRef(r);t.useEffect(function(){o.current=r},[r]),t.useEffect(function(){if(!i||!e)return function(){};var decoratedCb=function(){o.current&&o.current.apply(o,arguments)};return e.on(n,decoratedCb),function(){e.off(n,decoratedCb)}},[i,n,e,o])},createElementComponent=function(e,n){var r="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),o=n?function(e){useElementsContextWithUseCase("mounts <".concat(r,">")),useCartElementContextWithUseCase("mounts <".concat(r,">"));var n=e.id,i=e.className;return t.createElement("div",{id:n,className:i})}:function(n){var i,o=n.id,s=n.className,c=n.options,u=void 0===c?{}:c,l=n.onBlur,d=n.onFocus,f=n.onReady,p=n.onChange,h=n.onEscape,v=n.onClick,y=n.onLoadError,m=n.onLoaderStart,g=n.onNetworksChange,b=n.onCheckout,E=n.onLineItemClick,S=n.onConfirm,w=n.onCancel,x=n.onShippingAddressChange,A=n.onShippingRateChange,_=useElementsContextWithUseCase("mounts <".concat(r,">")).elements,k=_slicedToArray(t.useState(null),2),C=k[0],P=k[1],T=t.useRef(null),O=t.useRef(null),N=useCartElementContextWithUseCase("mounts <".concat(r,">")),I=N.setCart,j=N.setCartState;useAttachEvent(C,"blur",l),useAttachEvent(C,"focus",d),useAttachEvent(C,"escape",h),useAttachEvent(C,"click",v),useAttachEvent(C,"loaderror",y),useAttachEvent(C,"loaderstart",m),useAttachEvent(C,"networksch
1ange",g),useAttachEvent(C,"lineitemclick",E),useAttachEvent(C,"confirm",S),useAttachEvent(C,"cancel",w),useAttachEvent(C,"shippingaddresschange",x),useAttachEvent(C,"shippingratechange",A),"cart"===e?i=function(e){j(e),f&&f(e)}:f&&(i="payButton"===e?f:function(){f(C)}),useAttachEvent(C,"ready",i),useAttachEvent(C,"change","cart"===e?function(e){j(e),p&&p(e)}:p),useAttachEvent(C,"checkout","cart"===e?function(e){j(e),b&&b(e)}:b),t.useLayoutEffect(function(){if(null===T.current&&_&&null!==O.current){var t=_.create(e,u);"cart"===e&&I&&I(t),T.current=t,P(t),t.mount(O.current)}},[_,u,I]);var R=usePrevious(u);return t.useEffect(function(){if(T.current){var e=extractAllowedOptionsUpdates(u,R,["paymentRequest"]);e&&T.current.update(e)}},[u,R]),t.useLayoutEffect(function(){return function(){T.current&&(T.current.destroy(),T.current=null)}},[]),t.createElement("div",{id:o,className:s,ref:O})};return o.propTypes={id:i.string,className:i.string,onChange:i.func,onBlur:i.func,onFocus:i.func,onReady:i.func,onEscape:i.func,onClick:i.func,onLoadError:i.func,onLoaderStart:i.func,onNetworksChange:i.func,onCheckout:i.func,onLineItemClick:i.func,onConfirm:i.func,onCancel:i.func,onShippingAddressChange:i.func,onShippingRateChange:i.func,options:i.object},o.displayName=r,o.__elementType=e,o},u="undefined"==typeof window,l=createElementComponent("auBankAccount",u),d=createElementComponent("card",u),f=createElementComponent("cardNumber",u),p=createElementComponent("cardExpiry",u),h=createElementComponent("cardCvc",u),v=createElementComponent("fpxBank",u),y=createElementComponent("iban",u),m=createElementComponent("idealBank",u),g=createElementComponent("p24Bank",u),b=createElementComponent("epsBank",u),E=createElementComponent("payment",u),S=createElementComponent("payButton",u),w=createElementComponent("paymentRequestButton",u),x=createElementComponent("linkAuthentication",u),A=createElementComponent("address",u),_=createElementComponent("shippingAddress",u),k=createElementComponent("cart",u),C=createElementComponent("paymentMethodMessaging",u),P=createElementComponent("affirmMessage",u),T=createElementComponent("afterpayClearpayMessage",u);e.AddressElement=A,e.AffirmMessageElement=P,e.AfterpayClearpayMessageElement=T,e.AuBankAccountElement=l,e.CardCvcElement=h,e.CardElement=d,e.CardExpiryElement=p,e.CardNumberElement=f,e.CartElement=k,e.Elements=Elements,e.ElementsConsumer=ElementsConsumer,e.EpsBankElement=b,e.FpxBankElement=v,e.IbanElement=y,e.IdealBankElement=m,e.LinkAuthenticationElement=x,e.P24BankElement=g,e.PayButtonElement=S,e.PaymentElement=E,e.PaymentMethodMessagingElement=C,e.PaymentRequestButtonElement=w,e.ShippingAddressElement=_,e.useCartElement=function(){return useCartElementContextWithUseCase("calls useCartElement()").cart},e.useCartElementState=function(){return useCartElementContextWithUseCase("calls useCartElementState()").cartState},e.useElements=function(){return useElementsContextWithUseCase("calls useElements()").elements},e.useStripe=function(){return useElementsContextWithUseCase("calls useStripe()").stripe},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2784))},8121:function(e,t,n){"use strict";n.d(t,{J:function(){return loadStripe}});var r="https://js.stripe.com/v3",i=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,findScript=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(i.test(n.src))return n}return null},injectScript=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var i=document.head||document.body;if(!i)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(n),n},registerWrapper=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.1",startTime:t})},o=null,initStripe=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return registerWrapper(r,n),r},s=Promise.resolve().then(function(){return null!==o?o:o=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var n=findScript();n||(n=injectScript(null)),n.addEventListener("load",function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))}),n.addEventListener("error",function(){t(Error("Failed to load Stripe.js"))})}catch(e){t(e);return}})}),c=!1;
1s.catch(function(e){c||console.warn(e)});var loadStripe=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];c=!0;var r=Date.now();return s.then(function(e){return initStripe(e,t,r)})}},92787:function(e,t,n){"use strict";n.d(t,{L:function(){return useActor},Y:function(){return isActorWithState}});var r=n(2784),i=n(84337),o=n(86812),s=n(41110),c=n(6392);function identity(e){return e}function isActorWithState(e){return"state"in e}function defaultGetSnapshot(e){return"getSnapshot"in e?(0,c.cs)(e)?(0,c.Uz)(e):e.getSnapshot():isActorWithState(e)?e.state:void 0}function useActor(e,t){void 0===t&&(t=defaultGetSnapshot);var n=(0,r.useRef)(e),u=(0,r.useRef)([]),l=(0,r.useCallback)(function(t){return e.subscribe(t).unsubscribe},[e]),d=(0,r.useCallback)(function(){return t(e)},[e,t]),f=(0,r.useCallback)(function(t,n){return(0,c.cs)(e)?(0,c.AM)(e,t,n):t===n},[e]),p=(0,s.useSyncExternalStoreWithSelector)(l,d,d,identity,f),h=(0,o.Z)(function(){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=n.current;"deferred"in i&&i.deferred?u.current.push(r):i.send(r)}});return(0,i.Z)(function(){for(n.current=e;u.current.length>0;){var t=u.current.shift();e.send(t)}},[e]),[p,h]}},86812:function(e,t,n){"use strict";n.d(t,{Z:function(){return useConstant}});var r=n(2784);function useConstant(e){var t=r.useRef();return t.current||(t.current={v:e()}),t.current.v}},43813:function(e,t,n){"use strict";n.d(t,{e:function(){return useMachine}});var r=n(2784),i=n(41110),o=n(705),s=n(67732),c=n(84337),u=n(86812),__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},__rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},l=n(6392),useMachine_read=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};function identity(e){return e}function useMachine(e){for(var t,n,d,f,p,h,v,y,m,g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];var E=useMachine_read(g,1)[0],S=void 0===E?{}:E,w=(t=(0,u.Z)(function(){return"function"==typeof e?e():e}),n=S.context,d=S.guards,f=S.actions,p=S.activities,h=S.services,v=S.delays,S.state,y=__rest(S,["context","guards","actions","activities","services","delays","state"]),m=(0,u.Z)(function(){var e=t.withConfig({context:n,guards:d,actions:f,activities:p,services:h,delays:v},function(){return __assign(__assign({},t.context),n)});return(0,o.kJ)(e,y)}),(0,c.Z)(function(){Object.assign(m.machine.options.actions,f),Object.assign(m.machine.options.guards,d),Object.assign(m.machine.options.activities,p),Object.assign(m.machine.options.services,h),Object.assign(m.machine.options.delays,v)},[f,d,p,h,v]),m),x=(0,r.useCallback)(function(){return w.status===o.TM.NotStarted?S.state?s.ZM.create(S.state):w.machine.initialState:w.getSnapshot()},[w]),A=(0,r.useCallback)(function(e,t){return(0,l.AM)(w,e,t)},[w]),_=(0,r.useCallback)(function(e){return w.subscribe(e).unsubscribe},[w]),k=(0,i.useSyncExternalStoreWithSelector)(_,x,x,identity,A);return(0,r.useEffect)(function(){var e=S.state;return w.start(e?s.ZM.create(e):void 0),function(){w.stop(),w.status=o.TM.NotStarted}},[]),[k,w.send,w]}},88346:function(e,t,n){"use strict";n.d(t,{v:function(){return useSelector}});var r=n(2784),i=n(41110),o=n(92787),s=n(6392),defaultCompare=function(e,t){return e===t},defaultGetSnapshot=function(e,t){if((0,s.cs)(e)){if(0===e.status&&t.current)return t.current;var n=(0,s.Uz)(e);return t.current=0===e.status?n:null,n}return(0,o.Y)(e)?e.state:void 0};function useSelector(e,t,n,o){void 0===n&&(n=defaultCompare);var s=(0,r.useRef)(null),c=(0,r.useCallback)(function(t){return e.subscribe(t).unsubscribe},[e]),u=(0,r.useCallback)(function(){return o?o(e):defaultGetSnapshot(e,s)},[e,o]);return(0,i.useSyncExternalStoreWithSelector)(c,u,u,t,n)}},6392:function(e,t,n){"use strict";n.d(t,{AM:function(){return isInterpreterStateEqual},Uz:function(){return getServiceSnapshot},cs:function(){return isService}});var r=n(705);function getServiceSnapshot(e){return 0!==e.status?e.getSnapshot():e.machine.initialState}function isService(e){return"state"in e&&"machine"in e}function isInterpreterStateEqual(e,t,n){if(e.status===r.TM.NotStarted)return!0;var i=void 0===n.changed&&(Object.keys(n.children).length>0||"boolean"==typeof t.changed);return!(n.changed||i)}},37900:function(e,t,n){"use strict";var r=n(2784),i=n(21890),o=n(11108),s=new Map;s.set("bold",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"208 96 128 176 48 9
16",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))}),s.set("duotone",function(e){return r.createElement(r.Fragment,null,r.createElement("polygon",{points:"208 96 128 176 48 96 208 96",opacity:"0.2"}),r.createElement("polygon",{points:"208 96 128 176 48 96 208 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}),s.set("fill",function(){return r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.4,92.9A8,8,0,0,0,208,88H48a8,8,0,0,0-7.4,4.9,8.4,8.4,0,0,0,1.7,8.8l80,80a8.2,8.2,0,0,0,11.4,0l80-80A8.4,8.4,0,0,0,215.4,92.9Z"}))}),s.set("light",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))}),s.set("thin",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))}),s.set("regular",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var renderPath=function(e,t){return(0,i._)(e,t,s)},c=(0,r.forwardRef)(function(e,t){return r.createElement(o.Z,Object.assign({ref:t},e,{renderPath:renderPath}))});c.displayName="CaretDown",t.Z=c},71437:function(e,t,n){"use strict";var r=n(2784),i=n(21890),o=n(11108),s=new Map;s.set("bold",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"48 160 128 80 208 160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))}),s.set("duotone",function(e){return r.createElement(r.Fragment,null,r.createElement("polygon",{points:"48 160 128 80 208 160 48 160",opacity:"0.2"}),r.createElement("polygon",{points:"48 160 128 80 208 160 48 160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}),s.set("fill",function(){return r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.7,154.3l-80-80a8.1,8.1,0,0,0-11.4,0l-80,80a8.4,8.4,0,0,0-1.7,8.8A8,8,0,0,0,48,168H208a8,8,0,0,0,7.4-4.9A8.4,8.4,0,0,0,213.7,154.3Z"}))}),s.set("light",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"48 160 128 80 208 160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))}),s.set("thin",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"48 160 128 80 208 160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))}),s.set("regular",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"48 160 128 80 208 160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var renderPath=function(e,t){return(0,i._)(e,t,s)},c=(0,r.forwardRef)(function(e,t){return r.createElement(o.Z,Object.assign({ref:t},e,{renderPath:renderPath}))});c.displayName="CaretUp",t.Z=c},35598:function(e,t,n){"use strict";var r=n(2784),i=n(21890),o=n(11108),s=new Map;s.set("bold",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))}),s.set("duotone",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}),s.set("fill",function(){return r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,192a8.5,8.5,0,0,1-5.7-2.3l-56-56a8.1,8.1,0,0,1,11.4-11.4L104,172.7,210.3,66.3a8.1,8.1,0,0,1,11.4,11.4l-112,112A8.5,8.5,0,0,1,104,192Z"}))}),s.set("light",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))}),s.set("thin",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))}),s.set("regular",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var renderPath=function(e,t){return(0,i._)(e,t,s)},c=(0,r.forwardRef)(function(e,t){return r.createElement(o.Z,Object.assign({ref:t},e,{renderPath:renderPath}))});c.displayName="Check",t.Z=c},90727:function(e,t,n){"use strict";var r=n(2784),i=n(21890),o=n(11108),s=new Map;s.set("bold",function(e){return r.createElement(r.Fragment,null,r.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),r.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))}),s.set("duotone",function(e){return r.createElement(r.Fragment,null,r.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),r.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}),s.set("fill",function(){return r.createElement(r.Fragment,null,r.createElement("path",{d:"M139.3,128l66.4-66.3a8.1,8.1,0,0,0-11.4-11.4L128,116.7,61.7,50.3A8.1,8.1,0,0,0,50.3,61.7L116.7,128,50.3,194.3a8.1,8.1,0,0,0,0,11.4,8.2,8.2,0,0,0,11.4,0L128,139.3l66.3,66.4a8.2,8.2,0,0,0,11.4,0,8.1,8.1,0,0,0,0-11.4Z"}))}),s.set("light",function(e){return r.createElement(r.Fragment,null,r.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),r.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))}),s.set("thin",function(e){return r.createElement(r.Fragment,null,r.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),r.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))}),s.set("regular",function(e){return r.createElement(r.Fragment,null,r.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),r.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var renderPath=function(e,t){return(0,i._)(e,t,s)},c=(0,r.forwardRef)(function(e,t){return r.createElement(o.Z,Object.assign({ref:t},e,{renderPath:renderPath}))});c.displayName="X",t.Z=c}
1,11108:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784),i=n(21890);function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var o=(0,r.forwardRef)(function(e,t){var n=e.alt,o=e.color,s=e.size,c=e.weight,u=e.mirrored,l=e.children,d=e.renderPath,f=_objectWithoutPropertiesLoose(e,["alt","color","size","weight","mirrored","children","renderPath"]),p=(0,r.useContext)(i.P),h=p.color,v=void 0===h?"currentColor":h,y=p.size,m=p.weight,g=void 0===m?"regular":m,b=p.mirrored,E=_objectWithoutPropertiesLoose(p,["color","size","weight","mirrored"]);return r.createElement("svg",Object.assign({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=s?s:y,height:null!=s?s:y,fill:null!=o?o:v,viewBox:"0 0 256 256",transform:u||void 0!==b&&b?"scale(-1, 1)":void 0},E,f),!!n&&r.createElement("title",null,n),l,r.createElement("rect",{width:"256",height:"256",fill:"none"}),d(null!=c?c:g,null!=o?o:v))});o.displayName="IconBase";var s=o},21890:function(e,t,n){"use strict";n.d(t,{P:function(){return r},_:function(){return renderPathForWeight}});var r=(0,n(2784).createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),renderPathForWeight=function(e,t,n){var r=n.get(e);return r?r(t):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)}},68281:function(e,t,n){"use strict";n.d(t,{w_:function(){return GenIcon}});var r=n(2784),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},__rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function GenIcon(e){return function(t){return r.createElement(IconBase,__assign({attr:__assign({},e.attr)},t),function Tree2Element(e){return e&&e.map(function(e,t){return r.createElement(e.tag,__assign({key:t},e.attr),Tree2Element(e.child))})}(e.child))}}function IconBase(e){var elem=function(t){var n,i=e.attr,o=e.size,s=e.title,c=__rest(e,["attr","size","title"]),u=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:__assign(__assign({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&r.createElement("title",null,s),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return elem(e)}):elem(i)}},84337:function(e,t,n){"use strict";var r=n(2784).useLayoutEffect;t.Z=r},80402:function(e,t,n){"use strict";/**
2 * @license React
3 * use-sync-external-store-shim/with-selector.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var r=n(2784),i=n(43100),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,c=r.useRef,u=r.useEffect,l=r.useMemo,d=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;var h=s(e,(f=l(function(){function a(t){if(!c){if(c=!0,e=t,t=r(t),void 0!==i&&p.hasValue){var n=p.value;if(i(n,t))return s=n}return s=t}if(n=s,o(e,t))return n;var u=r(t);return void 0!==i&&i(n,u)?n:(e=t,s=u)}var e,s,c=!1,u=void 0===n?null:n;return[function(){return a(t())},null===u?void 0:function(){return a(u())}]},[t,n,r,i]))[0],f[1]);return u(function(){p.hasValue=!0,p.value=h},[h]),d(h),h}},41110:function(e,t,n){"use strict";e.exports=n(80402)},19140:function(e,t,n){"use strict";n.d(t,{Xg:function(){return createDeferredActor},f3:function(){return isSpawnedActor},mu:function(){return createInvocableActor},vk:function(){return toActorRef}});var r=n(70572),i=n(70049),o=n(80237);function createNullActor(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[i.L$]=function(){return this},t}function createInvocableActor(e,t,n,r){var o,s=(0,i.j)(e.src),c=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[s.type],u=e.data?(0,i.QX)(e.data,n,r):void 0,l=c?createDeferredActor(c,e.id,u):createNullActor(e.id);return l.meta=e,l}function createDeferredActor(e,t,n){var r=createNullActor(t);if(r.deferred=!0,(0,i.O4)(e)){var s=r.state=(0,o.J)(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return s}}return r}function isSpawnedActor(e){return function(e){try{return"function"==typeof e.send}catch(e){return!1}}(e)&&"id"in e}function toActorRef(e){var t;return(0,r.pi)(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[i.L$]=function(){return this},t),e)}},95957:function(e,t,n){"use strict";n.d(t,{C:function(){return createMachine}});var r=n(70572),i=n(70049),o=n(67732),s=n(20449),c=n(60081),u=n(49333),l=n(84766),d=n(88297),f=n(19140);function toInvokeDefinition(e){return(0,r.pi)((0,r.pi)({type:s.dw},e),{toJSON:function(){e.onDone,e.onError;var t=(0,r._T)(e,["onDone","onError"]);return(0,r.pi)((0,r.pi)({},t),{type:s.dw,src:function(e){if("string"==typeof e){var t={type:e};return t.toString=function(){return e},t}return e}(e.src)})}})}var p={},isStateId=function(e){return"#"===e[0]},validateArrayifiedTransitions=function(e,t,n){var r=n.slice(0,-1).some(function(e){return!("cond"in e)&&!("in"in e)&&((0,i.HD)(e.target)||(0,i.O4)(e.target))});(0,i.ZK)(!r,"One or more transitions for ".concat(""===t?"the transient event":"event '".concat(t,"'")," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},h=function(){function StateNode(e,t,n,o){void 0===n&&(n="context"in e?e.context:void 0);var s,f=this;this.config=e,this._context=n,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},t),this.parent=null==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:l.iS),this.id=this.config.id||(0,r.ev)([this.machine.key],(0,r.CR)(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(s=this.config.schema)&&void 0!==s?s:{},this.description=this.config.description,u.M||(0,i.ZK)(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.t
vendor: 27,439 bytes, lines 9-22
9ype,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,i.Q8)(this.config.states,function(e,t){var n,i=new StateNode(e,{},void 0,{parent:f,key:t});return Object.assign(f.idMap,(0,r.pi)(((n={})[i.id]=i,n),i.idMap)),i}):p;var h=0;!function dfs(e){var t,n;e.order=h++;try{for(var i=(0,r.XA)((0,d.nI)(e)),o=i.next();!o.done;o=i.next()){var s=o.value;dfs(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(e){return""===e.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,i.qo)(this.config.entry||this.config.onEntry).map(function(e){return(0,c.Q8)(e)}),this.onExit=(0,i.qo)(this.config.exit||this.config.onExit).map(function(e){return(0,c.Q8)(e)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,i.qo)(this.config.invoke).map(function(e,t){if((0,i.O4)(e)){var n,o,s=(0,i.bx)(f.id,t);return f.machine.options.services=(0,r.pi)(((n={})[s]=e,n),f.machine.options.services),toInvokeDefinition({src:s,id:s})}if((0,i.HD)(e.src)){var s=e.id||(0,i.bx)(f.id,t);return toInvokeDefinition((0,r.pi)((0,r.pi)({},e),{id:s,src:e.src}))}if((0,i.O4)(e.src)||(0,i.mf)(e.src)){var s=e.id||(0,i.bx)(f.id,t);return f.machine.options.services=(0,r.pi)(((o={})[s]=e.src,o),f.machine.options.services),toInvokeDefinition((0,r.pi)((0,r.pi)({id:s},e),{src:s}))}var c=e.src;return toInvokeDefinition((0,r.pi)((0,r.pi)({id:(0,i.bx)(f.id,t)},e),{src:c}))}),this.activities=(0,i.qo)(this.config.activities).concat(this.invoke).map(function(e){return(0,c.XA)(e)}),this.transition=this.transition.bind(this),this.tags=(0,i.qo)(this.config.tags)}return StateNode.prototype._init=function(){this.__cache.transitions||(0,d.ac)(this).forEach(function(e){return e.on})},StateNode.prototype.withConfig=function(e,t){var n=this.options,i=n.actions,o=n.activities,s=n.guards,c=n.services,u=n.delays;return new StateNode(this.config,{actions:(0,r.pi)((0,r.pi)({},i),e.actions),activities:(0,r.pi)((0,r.pi)({},o),e.activities),guards:(0,r.pi)((0,r.pi)({},s),e.guards),services:(0,r.pi)((0,r.pi)({},c),e.services),delays:(0,r.pi)((0,r.pi)({},u),e.delays)},null!=t?t:this.context)},StateNode.prototype.withContext=function(e){return new StateNode(this.config,this.options,e)},Object.defineProperty(StateNode.prototype,"context",{get:function(){return(0,i.mf)(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(StateNode.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:(0,i.Q8)(this.states,function(e){return e.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),StateNode.prototype.toJSON=function(){return this.definition},Object.defineProperty(StateNode.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce(function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(StateNode.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(StateNode.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),StateNode.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=""===e,n=this.transitions.filter(function(n){var r=n.eventType===e;return t?r:r||"*"===n.eventType});return this.__cache.candidates[e]=n,n},StateNode.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var mutateEntryExit=function(t,n){var r=(0,i.mf)(t)?"".concat(e.id,":delay[").concat(n,"]"):t,o=(0,c.e4)(r,e.id);return e.onEntry.push((0,c.lW)(o,{delay:t})),e.onExit.push((0,c.al)(o)),o};return((0,i.kJ)(t)?t.map(function(e,t){var n=mutateEntryExit(e.delay,t);return(0,r.pi)((0,r.pi)({},e),{event:n})}):(0,i.xH)(Object.keys(t).map(function(e,n){var o=t[e],s=(0,i.HD)(o)?{target:o}:o,c=isNaN(+e)?e:+e,u=mutateEntryExit(c,n);return(0,i.qo)(s).map(function(e){return(0,r.pi)((0,r.pi)({},e),{event:u,delay:c})})}))).map(function(t){var n=t.delay;return(0,r.pi)((0,r.pi)({},e.formatTransition(t)),{delay:n})})},StateNode.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var s=e instanceof o.ZM?e.value:(0,i.WM)(e,this.delimiter);if((0,i.HD)(s)){var c=this.getStateNode(s).initial;return void 0!==c?this.getStateNodes(((t={})[s]=c,t)):[this,this.states[s]]}var u=Object.keys(s),l=[this];return l.push.apply(l,(0,r.ev)([],(0,r.CR)((0,i.xH)(u.map(function(e){return n.getStateNode(e).getStateNodes(s[e])}))),!1)),l},StateNode.prototype.handles=function(e){var t=(0,i.x6)(e);return this.events.includes(t)},StateNode.prototype.resolveState=function(e){var t=e instanceof o.ZM?e:o.ZM.create(e),n=Array.from((0,d.P_)([],this.getStateNodes(t.value)));return new o.ZM((0,r.pi)((0,r.pi)({},t),{value:this.resolve(t.value),configuration:n,done:(0,d.Ij)(n,this),tags:(0,d.Oe)(n),machine:this.machine}))},StateNode.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},StateNode.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},StateNode.prototype.transitionParallelNode=function(e,t,n){var o,s,c={};try{for(var u=(0,r.XA)(Object.keys(e)),l=u.next();!l.done;l=u.next()){var d=l.value,f=e[d];if(f){var p=this.getStateNode(d)._transition(f,t,n);p&&(c[d]=p)}}}catch(e){o={error:e}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}var h=Object.keys(c).map(function(e){return c[e]}),v=(0,i.xH)(h.map(function(e){return e.transitions}));if(!h.some(function(e){return e.transitions.length>0}))return this.next(t,n);var y=(0,i.xH)(Object.keys(c).map(function(e){return c[e].configuration}));return{transitions:v,exitSet:(0,i.xH)(h.map(function(e){return e.exitSet})),configuration:y,source:t,actions:(0,i.xH)(Object.keys(c).map(function(e){return c[e].actions}))}},StateNode.prototype._transition=function(e,t,n){return(0,i.HD)(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},StateNode.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,(0,i.g5)(t))},StateNode.prototype.next=function(e,t){var n,o,s,c=this,u=t.name,l=[],d=[];try{for(var f=(0,r.XA)(this.getCandidates(u)),p=f.next();!p.done;p=f.next()){var h=p.value,v=h.cond,y=h.in,m=e.context,g=!y||((0,i.HD)(y)&&isStateId(y)?e.matches((0,i.WM)(this.getStateNodeById(y).path,this.delimiter)):(0,i.W)((0,i.WM)(y,this.delimiter),(0,i.ET)(this.path.slice(0,-2))(e.value))),b=!1;try{b=!v||(0,i.vx)(this.machine,v,m,t,e)}catch(e){throw Error("Unable to evaluate guard '".concat(v.name||v.type,"' in transition for event '").concat(u,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(b&&g){void 0!==h.target&&(d=h.target),l.push.apply(l,(0,r.ev)([],(0,r.CR)(h.actions),!1)),s=h;break}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}if(s){if(!d.length)return{transitions:[s],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var E=(0,i.xH)(d.map(function(t){return c.getRelativeStateNodes(t,e.historyValue)})),S=!!s.internal;return{transitions:[s],exitSet:S?[]:(0,i.xH)(d.map(function(e){return c.getPotentiallyReenteringNodes(e)})),configuration:E,source:e,actions:l}}},StateNode.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this;n&&n!==e;)t.push(n),n=n.parent;return n!==e?[]:(t.push(e),t)},StateNode.prototype.getActions=function(e,t,n,o,s,u,l){var f,p,h,v,y=this,m=u?(0,d.P_)([],this.getStateNodes(u.value)):[],g=new Set;try{for(var b=(0,r.XA)(Array.from(e).sort(function(e,t){return e.order-t.order})),E=b.next();!E.done;E=b.next()){var S=E.value;(!(0,d.e$)(m,S)||(0,d.e$)(n.exitSet,S)||S.parent&&g.has(S.parent))&&g.add(S)}}catch(e){f={error:e}}finally{try{E&&!E.done&&(p=b.return)&&p.call(b)}finally{if(f)throw f.error}}try{for(var w=(0,r.XA)(m),x=w.next();!x.done;x=w.next()){var S=x.value;(!(0,d.e$)(e,S)||(0,d.e$)(n.exitSet,S.parent))&&n.exitSet.push(S)}}catch(e){h={error:e}}finally{try{x&&!x.done&&(v=w.return)&&v.call(w)}finally{if(h)throw h.error}}n.exitSet.sort(function(e,t){return t.order-e.order});var A=Array.from(g).sort(function(e,t){return e.order-t.order}),_=new Set(n.exitSet),k=(0,i.xH)(A.map(function(e){var t=[];if("final"!==e.type)return t;var r=e.parent;if(!r.parent)return t;t.push((0,c.aT)(e.id,e.doneData),(0,c.aT)(r.id,e.doneData?(0,i.QX)(e.doneData,o,s):void 0));var u=r.parent;return"parallel"===u.type&&(0,d.G)(u).every(function(e){return(0,d.Ij)(n.configuration,e)})&&t.push((0,c.aT)(u.id)),t})),C=A.map(function(e){var t=e.onEntry,n=e.activities.map(function(e){return(0,c.BL)(e)});return{type:"entry",actions:(0,c.AE)(l?(0,r.ev)((0,r.ev)([],(0,r.CR)(t),!1),(0,r.CR)(n),!1):(0,r.ev)((0,r.ev)([],(0,r.CR)(n),!1),(0,r.CR)(t),!1),y.machine.options.actions)}}).concat({type:"state_done",actions:k.map(function(e){return(0,c.OU)(e)})}),P=Array.from(_).map(function(e){return{type:"exit",actions:(0,c.AE)((0,r.ev)((0,r.ev)([],(0,r.CR)(e.onExit),!1),(0,r.CR)(e.activities.map(function(e){return(0,c.sT)(e)})),!1),y.machine.options.actions)}}).concat({type:"transition",actions:(0,c.AE)(n.actions,this.machine.options.actions)}).concat(C);if(t){var T=(0,c.AE)((0,i.xH)((0,r.ev)([],(0,r.CR)(e),!1).sort(function(e,t){return t.order-e.order}).map(function(e){return e.onExit})),this.machine.options.actions).filter(function(e){return!(0,i.vK)(e)});return P.concat({type:"stop",actions:T})}return P},StateNode.prototype.transition=function(e,t,n,s){void 0===e&&(e=this.initialState);var c,l=(0,i.g5)(t);if(e instanceof o.ZM)c=void 0===n?e:this.resolveState(o.ZM.from(e,n));else{var f=(0,i.HD)(e)?this.resolve((0,i.on)(this.getResolvedPath(e))):this.resolve(e),p=null!=n?n:this.machine.context;c=this.resolveState(o.ZM.from(f,p))}if(!u.M&&"*"===l.name)throw Error("An event cannot have the wildcard type ('".concat("*","')"));if(this.strict&&!this.events.includes(l.name)&&!(0,i.JQ)(l.name))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(l.name,"'"));var h=this._transition(c.value,c,l)||{transitions:[],configuration:[],exitSet:[],source:c,actions:[]},v=(0,d.P_)([],this.getStateNodes(c.value)),y=h.configuration.length?(0,d.P_)(v,h.configuration):v;return h.configuration=(0,r.ev)([],(0,r.CR)(y),!1),this.resolveTransition(h,c,c.context,s,l)},StateNode.prototype.resolveRaisedTransition=function(e,t,n,i){var o,s=e.actions;return(e=this.transition(e,t,void 0,i))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,(0,r.ev)([],(0,r.CR)(s),!1)),e},StateNode.prototype.resolveTransition=function(e,t,n,u,l){var p,h,v,y,m=this;void 0===l&&(l=c.bf);var g=e.configuration,b=!t||e.transitions.length>0,E=b?e.configuration:t?t.configuration:[],S=(0,d.Ij)(E,this),w=b?(0,d.NA)(this.machine,g):void 0,x=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,A=this.getActions(new Set(E),S,e,n,l,t,u),_=t?(0,r.pi)({},t.activities):{};try{for(var k=(0,r.XA)(A),C=k.next();!C.done;C=k.next()){var P=C.value;try{for(var T=(v=void 0,(0,r.XA)(P.actions)),O=T.next();!O.done;O=T.next()){var N=O.value;N.type===s.BL?_[N.activity.id||N.activity.type]=N:N.type===s.sT&&(_[N.activity.id||N.activity.type]=!1)}}catch(e){v={error:e}}finally{try{O&&!O.done&&(y=T.return)&&y.call(T)}finally{if(v)throw v.error}}}}catch(e){p={error:e}}finally{try{C&&!C.done&&(h=k.return)&&h.call(k)}finally{if(p)throw p.error}}var I=(0,r.CR)((0,c.yC)(this,t,n,l,A,u,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),j=I[0],R=I[1],M=(0,r.CR)((0,i.uK)(j,i.vK),2),L=M[0],D=M[1],W=j.filter(function(e){var t;return e.type===s.BL&&(null===(t=e.activity)||void 0===t?void 0:t.type)===s.dw}).reduce(function(e,t){return e[t.activity.id]=(0,f.mu)(t.activity,m.machine,R,l),e},t?(0,r.pi)({},t.children):{}),V=new o.ZM({value:w||t.value,context:R,_event:l,_sessionid:t?t._sessionid:null,historyValue:w?x?(0,i.yv)(x,w):void 0:t?t.historyValue:void 0,history:!w||e.source?t:void 0,actions:w?D:[],activities:w?_:t?t.activities:{},events:[],configuration:E,transitions:e.transitions,children:W,done:S,tags:(0,d.Oe)(E),machine:this}),$=n!==R;V.changed=l.name===s.Vx||$;var F=V.history;F&&delete F.history;var U=!S&&(this._transient||g.some(function(e){return e._transient}));if(!b&&(!U||""===l.name))return V;var z=V;if(!S)for(U&&(z=this.resolveRaisedTransition(z,{type:s.IA},l,u));L.length;){var B=L.shift();z=this.resolveRaisedTransition(z,B._event,l,u)}var Z=z.changed||(F?!!z.actions.length||$||typeof F.value!=typeof z.value||!(0,o.j_)(z.value,F.value):void 0);return z.changed=Z,z.history=F,z},StateNode.prototype.getStateNode=function(e){if(isStateId(e))return this.machine.getStateNodeById(e);if(!this.states)throw Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},StateNode.prototype.getStateNodeById=function(e){var t=isStateId(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},StateNode.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&isStateId(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=(0,i.Q9)(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},StateNode.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||p;switch(this.type){case"parallel":return(0,i.Q8)(this.initialStateValue,function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):p});case"compound":if((0,i.HD)(e)){var r=this.getStateNode(e);if("parallel"===r.type||"compound"===r.type)return(t={})[e]=r.initialStateValue,t;return e}if(!Object.keys(e).length)return this.initialStateValue||{};return(0,i.Q8)(e,function(e,t){return e?n.getStateNode(t).resolve(e):p});default:return e||p}},StateNode.prototype.getResolvedPath=function(e){if(isStateId(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw Error("Unable to find state node '".concat(e,"'"));return t.path}return(0,i.Q9)(e,this.delimiter)},Object.defineProperty(StateNode.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=(0,i.ib)(this.states,function(e){return e.initialStateValue||p},function(e){return"history"!==e.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=(0,d.N9)(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),StateNode.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(StateNode.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(StateNode.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=(0,i.HD)(t.target)&&isStateId(t.target)?(0,i.on)(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),StateNode.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(StateNode.prototype,"initialStateNodes",{get:function(){var e=this;if((0,d.N9)(this))return[this];if("compound"===this.type&&!this.initial)return u.M||(0,i.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var t=(0,i.SA)(this.initialStateValue);return(0,i.xH)(t.map(function(t){return e.getFromRelativePath(t)}))},enumerable:!1,configurable:!0}),StateNode.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=(0,r.CR)(e),n=t[0],i=t.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(i)},StateNode.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:(0,i.ib)(this.states,function(t,n){if(!e)return t.historyValue();var r=(0,i.HD)(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)},function(e){return!e.history})}},StateNode.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?(0,i.xH)((0,i.SA)(r).map(function(e){return n.getFromRelativePath(e)})):n.initialStateNodes}var o=(0,i.gk)(n.path,"states")(e).current;return(0,i.HD)(o)?[n.getStateNode(o)]:(0,i.xH)((0,i.SA)(o).map(function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]}))},Object.defineProperty(StateNode.prototype,"stateIds",{get:function(){var e=this,t=(0,i.xH)(Object.keys(this.states).map(function(t){return e.states[t].stateIds}));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(StateNode.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var e,t,n,i,o=this.states,s=new Set(this.ownEvents);if(o)try{for(var c=(0,r.XA)(Object.keys(o)),u=c.next();!u.done;u=c.next()){var l=o[u.value];if(l.states)try{for(var d=(n=void 0,(0,r.XA)(l.events)),f=d.next();!f.done;f=d.next()){var p=f.value;s.add("".concat(p))}}catch(e){n={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(StateNode.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(e){return!(!e.target&&!e.actions.length&&e.internal)}).map(function(e){return e.eventType})))},enumerable:!1,configurable:!0}),StateNode.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map(function(e){if(!(0,i.HD)(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}})},StateNode.prototype.formatTransition=function(e){var t=this,n=(0,i.rg)(e.target),o="internal"in e?e.internal:!n||n.some(function(e){return(0,i.HD)(e)&&e[0]===t.delimiter}),s=this.machine.options.guards,u=this.resolveTarget(n),l=(0,r.pi)((0,r.pi)({},e),{actions:(0,c.AE)((0,i.qo)(e.actions)),cond:(0,i.Qi)(e.cond,s),target:u,source:this,internal:o,eventType:e.event,toJSON:function(){return(0,r.pi)((0,r.pi)({},l),{target:l.target?l.target.map(function(e){return"#".concat(e.id)}):void 0,source:"#".concat(t.id)})}});return l},StateNode.prototype.formatTransitions=function(){var e,t,n,o=this;if(this.config.on){if(Array.isArray(this.config.on))n=this.config.on;else{var s=this.config.on,l=s["*"],d=void 0===l?[]:l,f=(0,r._T)(s,["*"]);n=(0,i.xH)(Object.keys(f).map(function(e){u.M||""!==e||(0,i.ZK)(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var t=(0,i.jh)(e,f[e]);return u.M||validateArrayifiedTransitions(o,e,t),t}).concat((0,i.jh)("*",d)))}}else n=[];var p=this.config.always?(0,i.jh)("",this.config.always):[],h=this.config.onDone?(0,i.jh)(String((0,c.aT)(this.id)),this.config.onDone):[];u.M||(0,i.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var v=(0,i.xH)(this.invoke.map(function(e){var t=[];return e.onDone&&t.push.apply(t,(0,r.ev)([],(0,r.CR)((0,i.jh)(String((0,c.Sl)(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,(0,r.ev)([],(0,r.CR)((0,i.jh)(String((0,c.vU)(e.id)),e.onError)),!1)),t})),y=this.after,m=(0,i.xH)((0,r.ev)((0,r.ev)((0,r.ev)((0,r.ev)([],(0,r.CR)(h),!1),(0,r.CR)(v),!1),(0,r.CR)(n),!1),(0,r.CR)(p),!1).map(function(e){return(0,i.qo)(e).map(function(e){return o.formatTransition(e)})}));try{for(var g=(0,r.XA)(y),b=g.next();!b.done;b=g.next()){var E=b.value;m.push(E)}}catch(t){e={error:t}}finally{try{b&&!b.done&&(t=g.return)&&t.call(g)}finally{if(e)throw e.error}}return m},StateNode}(),v=!1;function createMachine(e,t){return u.M||"predictableActionArguments"in e||v||(v=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new h(e,t)}},67732:function(e,t,n){"use strict";n.d(t,{TL:function(){return isStateConfig},ZM:function(){return l},j1:function(){return bindActionToState},j_:function(){return function stateValuesEqual(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if((0,o.HD)(e)||(0,o.HD)(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){return stateValuesEqual(e[n],t[n])})}}});var r=n(70572),i=n(84766),o=n(70049),s=n(88297),c=n(60081),u=n(49333);function isStateConfig(e){return"object"==typeof e&&null!==e&&"value"in e&&"_event"in e}function bindActionToState(e,t){var n=e.exec;return(0,r.pi)((0,r.pi)({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}var l=function(){function State(e){var t,n=this;this.actions=[],this.activities=i.qP,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||i.qP,this.meta=(0,s.xZ)(e.configuration),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return(0,s.nJ)(n.configuration)}})}return State.from=function(e,t){if(e instanceof State)return e.context!==t?new State({value:e.value,context:t,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e;var n=c.bf;return new State({value:e,context:t,_event:n,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},State.create=function(e){return new State(e)},State.inert=function(e,t){if(e instanceof State){if(!e.actions.length)return e;var n=c.bf;return new State({value:e.value,context:t,_event:n,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return State.from(e,t)},State.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),(0,o.HD)(e))return[e];var i=Object.keys(e);return i.concat.apply(i,(0,r.ev)([],(0,r.CR)(i.map(function(r){return n.toStrings(e[r],t).map(function(e){return r+t+e})})),!1))},State.prototype.toJSON=function(){this.configuration,this.transitions;var e=this.tags;this.machine;var t=(0,r._T)(this,["configuration","transitions","tags","machine"]);return(0,r.pi)((0,r.pi)({},t),{tags:Array.from(e)})},State.prototype.matches=function(e){return(0,o.W)(e,this.value)},State.prototype.hasTag=function(e){return this.tags.has(e)},State.prototype.can=function(e){u.M&&(0,o.ZK)(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var t,n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some(function(e){return void 0!==e.target||e.actions.length})},State}()},70572:function(e,t,n){"use strict";n.d(t,{CR:function(){return __read},XA:function(){return __values},_T:function(){return __rest},ev:function(){return __spreadArray},pi:function(){return __assign}});/*! *****************************************************************************
10Copyright (c) Microsoft Corporation.
11
12Permission to use, copy, modify, and/or distribute this software for any
13purpose with or without fee is hereby granted.
14
15THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21PERFORMANCE OF THIS SOFTWARE.
22***************************************************************************** */var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function __values(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
22if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function __spreadArray(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}},20449:function(e,t,n){"use strict";n.d(t,{BL:function(){return i},IA:function(){return l},Le:function(){return b},Mg:function(){return v},OU:function(){return s},RN:function(){return g},S1:function(){return p},Vx:function(){return m},al:function(){return u},cM:function(){return f},dw:function(){return h},f0:function(){return d},lW:function(){return c},sT:function(){return o},vU:function(){return y}});var r=n(3763),i=r.M.Start,o=r.M.Stop,s=r.M.Raise,c=r.M.Send,u=r.M.Cancel,l=r.M.NullEvent,d=r.M.Assign;r.M.After,r.M.DoneState;var f=r.M.Log,p=r.M.Init,h=r.M.Invoke;r.M.ErrorExecution;var v=r.M.ErrorPlatform,y=r.M.ErrorCustom,m=r.M.Update,g=r.M.Choose,b=r.M.Pure},60081:function(e,t,n){"use strict";n.d(t,{AE:function(){return toActionObjects},BL:function(){return start},OU:function(){return raise},Q8:function(){return toActionObject},Sl:function(){return doneInvoke},XA:function(){return toActivityDefinition},aT:function(){return done},al:function(){return cancel},bf:function(){return u},e4:function(){return after},f0:function(){return assign},lW:function(){return send},o$:function(){return getActionFunction},sT:function(){return stop},vU:function(){return error},yC:function(){return function resolveActions(e,t,n,u,l,d,f){void 0===f&&(f=!1);var p=f?[]:pluckAssigns(l),h=p.length?(0,s.dt)(n,u,p,t):n,v=f?[n]:void 0,y=[];return[(0,s.xH)(l.map(function(l){var p,m,g=[];try{for(var b=(0,r.XA)(l.actions),E=b.next();!E.done;E=b.next()){var S=E.value,w=function(l,p){var m;switch(p.type){case o.OU:var g=function(e,t,n,i){var c,u={_event:n},l=(0,s.g5)((0,s.mf)(e.event)?e.event(t,n.data,u):e.event);if((0,s.HD)(e.delay)){var d=i&&i[e.delay];c=(0,s.mf)(d)?d(t,n.data,u):d}else c=(0,s.mf)(e.delay)?e.delay(t,n.data,u):e.delay;return(0,r.pi)((0,r.pi)({},e),{type:o.OU,_event:l,delay:c})}(p,h,u,e.options.delays);return d&&"number"==typeof g.delay&&d(g,h,u),g;case o.lW:var b=function(e,t,n,i){var o,c={_event:n},u=(0,s.g5)((0,s.mf)(e.event)?e.event(t,n.data,c):e.event);if((0,s.HD)(e.delay)){var l=i&&i[e.delay];o=(0,s.mf)(l)?l(t,n.data,c):l}else o=(0,s.mf)(e.delay)?e.delay(t,n.data,c):e.delay;var d=(0,s.mf)(e.to)?e.to(t,n.data,c):e.to;return(0,r.pi)((0,r.pi)({},e),{to:d,_event:u,event:u.data,delay:o})}(p,h,u,e.options.delays);if(!c.M){var E=p.delay;(0,s.ZK)(!(0,s.HD)(E)||"number"==typeof b.delay,"No delay reference for delay expression '".concat(E,"' was found on machine '").concat(e.id,"'"))}return d&&b.to!==i.K.Internal&&("entry"===l?y.push(b):d(b,h,u)),b;case o.cM:var S,w=(S=h,(0,r.pi)((0,r.pi)({},p),{value:(0,s.HD)(p.expr)?p.expr:p.expr(S,u.data,{_event:u})}));return null==d||d(w,h,u),w;case o.RN:var x=null===(m=p.conds.find(function(n){var r=(0,s.Qi)(n.cond,e.options.guards);return!r||(0,s.vx)(e,r,h,u,d?void 0:t)}))||void 0===m?void 0:m.actions;if(!x)return[];var A=(0,r.CR)(resolveActions(e,t,h,u,[{type:l,actions:toActionObjects((0,s.qo)(x),e.options.actions)}],d,f),2),_=A[0];return h=A[1],null==v||v.push(h),_;case o.Le:var x=p.get(h,u.data);if(!x)return[];var k=(0,r.CR)(resolveActions(e,t,h,u,[{type:l,actions:toActionObjects((0,s.qo)(x),e.options.actions)}],d,f),2),C=k[0];return h=k[1],null==v||v.push(h),C;case o.sT:var P,T,w=(P=h,T=(0,s.mf)(p.activity)?p.activity(P,u.data):p.activity,{type:i.M.Stop,activity:"string"==typeof T?{id:T}:T});return null==d||d(w,n,u),w;case o.f0:h=(0,s.dt)(h,u,[p],d?void 0:t),null==v||v.push(h);break;default:var O=toActionObject(p,e.options.actions),N=O.exec;if(d)d(O,h,u);else if(N&&v){var I=v.length-1;O=(0,r.pi)((0,r.pi)({},O),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];N.apply(void 0,(0,r.ev)([v[I]],(0,r.CR)(t),!1))}})}return O}}(l.type,S);w&&(g=g.concat(w))}}catch(e){p={error:e}}finally{try{E&&!E.done&&(m=b.return)&&m.call(b)}finally{if(p)throw p.error}}
22return y.forEach(function(e){d(e,h,u)}),y.length=0,g})),h]}}});var r=n(70572),i=n(3763),o=n(20449),s=n(70049),c=n(49333),u=(0,s.g5)({type:o.S1});function getActionFunction(e,t){return t&&t[e]||void 0}function toActionObject(e,t){var n;if((0,s.HD)(e)||"number"==typeof e){var i=getActionFunction(e,t);n=(0,s.mf)(i)?{type:e,exec:i}:i||{type:e,exec:void 0}}else if((0,s.mf)(e))n={type:e.name||e.toString(),exec:e};else{var i=getActionFunction(e.type,t);if((0,s.mf)(i))n=(0,r.pi)((0,r.pi)({},e),{exec:i});else if(i){var o=i.type||e.type;n=(0,r.pi)((0,r.pi)((0,r.pi)({},i),e),{type:o})}else n=e}return n}var toActionObjects=function(e,t){return e?((0,s.kJ)(e)?e:[e]).map(function(e){return toActionObject(e,t)}):[]};function toActivityDefinition(e){var t=toActionObject(e);return(0,r.pi)((0,r.pi)({id:(0,s.HD)(e)?e:t.id},t),{type:t.type})}function raise(e,t){return{type:o.OU,event:"function"==typeof e?e:(0,s._v)(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}function send(e,t){return{to:t?t.to:void 0,type:o.lW,event:(0,s.mf)(e)?e:(0,s._v)(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:(0,s.mf)(e)?e.name:(0,s.x6)(e)}}var cancel=function(e){return{type:o.al,sendId:e}};function start(e){var t=toActivityDefinition(e);return{type:i.M.Start,activity:t,exec:void 0}}function stop(e){var t=(0,s.mf)(e)?e:toActivityDefinition(e);return{type:i.M.Stop,activity:t,exec:void 0}}var assign=function(e){return{type:o.f0,assignment:e}};function after(e,t){var n=t?"#".concat(t):"";return"".concat(i.M.After,"(").concat(e,")").concat(n)}function done(e,t){var n="".concat(i.M.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function doneInvoke(e,t){var n="".concat(i.M.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function error(e,t){var n="".concat(i.M.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}var pluckAssigns=function(e){var t,n,i=[];try{for(var s=(0,r.XA)(e),c=s.next();!c.done;c=s.next())for(var u=c.value,l=0;l<u.actions.length;){if(u.actions[l].type===o.f0){i.push(u.actions[l]),u.actions.splice(l,1);continue}l++}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return i}},84766:function(e,t,n){"use strict";n.d(t,{TV:function(){return o},iS:function(){return r},qP:function(){return i},rt:function(){return s}});var r=".",i={},o="xstate.guard",s=""},49333:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});var r=!0},97386:function(e,t,n){"use strict";n.d(t,{f0:function(){return r}});var r=n(60081).f0},705:function(e,t,n){"use strict";n.d(t,{TM:function(){return i},kJ:function(){return interpret}});var r,i,o=n(70572),s=n(3763),c=n(67732),u=n(20449),l=n(60081),d=n(49333),f=n(70049),p={deferEvents:!1},h=function(){function Scheduler(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=(0,o.pi)((0,o.pi)({},p),e)}return Scheduler.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents){this.schedule(e);return}this.process(e)}this.flushEvents()},Scheduler.prototype.schedule=function(e){if(!this.initialized||this.processingEvent){this.queue.push(e);return}if(0!==this.queue.length)throw Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()},Scheduler.prototype.clear=function(){this.queue=[]},Scheduler.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},Scheduler.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},Scheduler}(),v=n(19140),y=new Map,m=0,g={bookId:function(){return"x:".concat(m++)},register:function(e,t){return y.set(e,t),e},get:function(e){return y.get(e)},free:function(e){y.delete(e)}};function getGlobal(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void(d.M||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}var b=n(80237),E={sync:!1,autoForward:!1};(r=i||(i={}))[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped";var S=function(){function Interpreter(e,t){void 0===t&&(t=Interpreter.defaultOptions);var n=this;this.machine=e,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=i.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if((0,f.kJ)(e))return n.batch(e),n.state;var r=(0,f.g5)((0,f._v)(e,t));if(n.status===i.Stopped)return d.M||(0,f.ZK)(!1,'Event "'.concat(r.name,'" was sent to stopped service "').concat(n.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(r.data))),n.state;if(n.status!==i.Running&&!n.options.deferEvents)throw Error('Event "'.concat(r.name,'" was sent to uninitialized service "').concat(n.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(r.data)));return n.scheduler.schedule(function(){n.forward(r);var e=n._nextState(r);n.update(e,r)}),n._state},this.sendTo=function(e,t,r){var c=n.parent&&(t===s.K.Parent||n.parent.id===t),p=c?n.parent:(0,f.HD)(t)?t===s.K.Internal?n:n.children.get(t)||g.get(t):(0,f.Bc)(t)?t:void 0;if(!p){if(!c)throw Error("Unable to send event to child '".concat(t,"' from service '").concat(n.id,"'."));d.M||(0,f.ZK)(!1,"Service '".concat(n.id,"' has no parent: unable to send event ").concat(e.type));return}if("machine"in p){if(n.status!==i.Stopped||n.parent!==p||n.state.done){var h=(0,o.pi)((0,o.pi)({},e),{name:e.name===u.vU?"".concat((0,l.vU)(n.id)):e.name,origin:n.sessionId});!r&&n.machine.config.predictableActionArguments?n._outgoingQueue.push([p,h]):p.send(h)}}else!r&&n.machine.config.predictableActionArguments?n._outgoingQueue.push([p,e.data]):p.send(e.data)},this._exec=function(e,t,r,o){void 0===o&&(o=n.machine.options.actions);var c=e.exec||(0,l.o$)(e.type,o),p=(0,f.mf)(c)?c:c?c.exec:e.exec;if(p)try{return p(t,r.data,n.machine.config.predictableActionArguments?{action:e,_event:r}:{action:e,state:n.state,_event:r})}catch(e){throw n.parent&&n.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case u.OU:n.defer(e);break;case u.lW:if("number"==typeof e.delay){n.defer(e);return}e.to?n.sendTo(e._event,e.to,r===l.bf):n.send(e._event);break;case u.al:n.cancel(e.sendId);break;case u.BL:if(n.status!==i.Running)return;var h=e.activity;if(!n.machine.config.predictableActionArguments&&!n.state.activities[h.id||h.type])break;if(h.type===s.M.Invoke){var v=(0,f.j)(h.src),y=n.machine.options.services?n.machine.options.services[v.type]:void 0,m=h.id,g=h.data;d.M||(0,f.ZK)(!("forward"in h),"`forward` property is deprecated (found in invocation of '".concat(h.src,"' in in machine '").concat(n.machine.id,"'). ")+"Please use `autoForward` instead.");var b="autoForward"in h?h.autoForward:!!h.forward;if(!y){d.M||(0,f.ZK)(!1,"No service found for invocation '".concat(h.src,"' in machine '").concat(n.machine.id,"'."));return}var E=g?(0,f.QX)(g,t,r):void 0;if("string"==typeof y)return;var S=(0,f.mf)(y)?y(t,r.data,{data:E,src:v,meta:h.meta}):y;if(!S)return;var w=void 0;(0,f.O4)(S)&&(S=E?S.withContext(E):S,w={autoForward:b}),n.spawn(S,m,w)}else n.spawnActivity(h);break;case u.sT:n.stopChild(e.activity.id);break;case u.cM:var x=e.label,A=e.value;x?n.logger(x,A):n.logger(A);break;default:d.M||(0,f.ZK)(!1,"No implementation found for action type '".concat(e.type,"'"))}};var r=(0,o.pi)((0,o.pi)({},Interpreter.defaultOptions),t),c=r.clock,p=r.logger,v=r.parent,y=r.id,m=void 0!==y?y:e.id;this.id=m,this.logger=p,this.clock=c,this.parent=v,this.options=r,this.scheduler
22=new h({deferEvents:this.options.deferEvents}),this.sessionId=g.bookId()}return Object.defineProperty(Interpreter.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:(0,b.J)(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(Interpreter.prototype,"state",{get:function(){return d.M||(0,f.ZK)(this.status!==i.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),Interpreter.prototype.execute=function(e,t){var n,r;try{for(var i=(0,o.XA)(e.actions),s=i.next();!s.done;s=i.next()){var c=s.value;this.exec(c,e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},Interpreter.prototype.update=function(e,t){var n,r,i,s,c,u,d,p,h=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||t===l.bf)&&this.options.execute)this.execute(this.state);else for(var v=void 0;v=this._outgoingQueue.shift();)v[0].send(v[1]);if(this.children.forEach(function(e){h.state.children[e.id]=e}),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var y=(0,o.XA)(this.eventListeners),m=y.next();!m.done;m=y.next()){var b=m.value;b(e.event)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}try{for(var E=(0,o.XA)(this.listeners),S=E.next();!S.done;S=E.next()){var b=S.value;b(e,e.event)}}catch(e){i={error:e}}finally{try{S&&!S.done&&(s=E.return)&&s.call(E)}finally{if(i)throw i.error}}try{for(var w=(0,o.XA)(this.contextListeners),x=w.next();!x.done;x=w.next())(0,x.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(e){c={error:e}}finally{try{x&&!x.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}if(this.state.done){var A=e.configuration.find(function(e){return"final"===e.type&&e.parent===h.machine}),_=A&&A.doneData?(0,f.QX)(A.doneData,e.context,t):void 0;this._doneEvent=(0,l.Sl)(this.id,_);try{for(var k=(0,o.XA)(this.doneListeners),C=k.next();!C.done;C=k.next()){var b=C.value;b(this._doneEvent)}}catch(e){d={error:e}}finally{try{C&&!C.done&&(p=k.return)&&p.call(k)}finally{if(d)throw d.error}}this._stop(),this._stopChildren(),g.free(this.sessionId)}},Interpreter.prototype.onTransition=function(e){return this.listeners.add(e),this.status===i.Running&&e(this.state,this.state.event),this},Interpreter.prototype.subscribe=function(e,t,n){var r=this,o=(0,f.zM)(e,t,n);this.listeners.add(o.next),this.status!==i.NotStarted&&o.next(this.state);var completeOnce=function(){r.doneListeners.delete(completeOnce),r.stopListeners.delete(completeOnce),o.complete()};return this.status===i.Stopped?o.complete():(this.onDone(completeOnce),this.onStop(completeOnce)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(completeOnce),r.stopListeners.delete(completeOnce)}}},Interpreter.prototype.onEvent=function(e){return this.eventListeners.add(e),this},Interpreter.prototype.onSend=function(e){return this.sendListeners.add(e),this},Interpreter.prototype.onChange=function(e){return this.contextListeners.add(e),this},Interpreter.prototype.onStop=function(e){return this.stopListeners.add(e),this},Interpreter.prototype.onDone=function(e){return this.status===i.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},Interpreter.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},Interpreter.prototype.start=function(e){var t=this;if(this.status===i.Running)return this;this.machine._init(),g.register(this.sessionId,this),this.initialized=!0,this.status=i.Running;var n=void 0===e?this.initialState:(0,b.J)(this,function(){return(0,c.TL)(e)?t.machine.resolveState(e):t.machine.resolveState(c.ZM.from(e,t.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){t.update(n,l.bf)}),this},Interpreter.prototype._stopChildren=function(){this.children.forEac
22h(function(e){(0,f.mf)(e.stop)&&e.stop()}),this.children.clear()},Interpreter.prototype._stop=function(){var e,t,n,r,s,c,u,l,d,f;try{for(var p=(0,o.XA)(this.listeners),v=p.next();!v.done;v=p.next()){var y=v.value;this.listeners.delete(y)}}catch(t){e={error:t}}finally{try{v&&!v.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}try{for(var m=(0,o.XA)(this.stopListeners),g=m.next();!g.done;g=m.next()){var y=g.value;y(),this.stopListeners.delete(y)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}try{for(var b=(0,o.XA)(this.contextListeners),E=b.next();!E.done;E=b.next()){var y=E.value;this.contextListeners.delete(y)}}catch(e){s={error:e}}finally{try{E&&!E.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}try{for(var S=(0,o.XA)(this.doneListeners),w=S.next();!w.done;w=S.next()){var y=w.value;this.doneListeners.delete(y)}}catch(e){u={error:e}}finally{try{w&&!w.done&&(l=S.return)&&l.call(S)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.initialized=!1,this.status=i.Stopped,this._initialState=void 0;try{for(var x=(0,o.XA)(Object.keys(this.delayedEventsMap)),A=x.next();!A.done;A=x.next()){var _=A.value;this.clock.clearTimeout(this.delayedEventsMap[_])}}catch(e){d={error:e}}finally{try{A&&!A.done&&(f=x.return)&&f.call(x)}finally{if(d)throw d.error}}this.scheduler.clear(),this.scheduler=new h({deferEvents:this.options.deferEvents})},Interpreter.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule(function(){var t=(0,f.g5)({type:"xstate.stop"}),n=(0,b.J)(e,function(){var n=(0,f.xH)((0,o.ev)([],(0,o.CR)(e.state.configuration),!1).sort(function(e,t){return t.order-e.order}).map(function(t){return(0,l.AE)(t.onExit,e.machine.options.actions)})),r=(0,o.CR)((0,l.yC)(e.machine,e.state,e.state.context,t,[{type:"exit",actions:n}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),i=r[0],s=r[1],u=new c.ZM({value:e.state.value,context:s,_event:t,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter(function(e){return!(0,f.vK)(e)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return u.changed=!0,u});e.update(n,t),e._stopChildren(),g.free(e.sessionId)}),this},Interpreter.prototype.batch=function(e){var t=this;if(this.status===i.NotStarted&&this.options.deferEvents)d.M||(0,f.ZK)(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==i.Running)throw Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var r,i,s=t.state,u=!1,l=[];try{for(var d=(0,o.XA)(e),p=d.next();!p.done;p=d.next()){var h=p.value;!function(e){var r=(0,f.g5)(e);t.forward(r),s=(0,b.J)(t,function(){return t.machine.transition(s,r,void 0,n||void 0)}),l.push.apply(l,(0,o.ev)([],(0,o.CR)(t.machine.config.predictableActionArguments?s.actions:s.actions.map(function(e){return(0,c.j1)(e,s)})),!1)),u=u||!!s.changed}(h)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}s.changed=u,s.actions=l,t.update(s,(0,f.g5)(e[e.length-1]))})}},Interpreter.prototype.sender=function(e){return this.send.bind(this,e)},Interpreter.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=(0,f.g5)(e);if(0===r.name.indexOf(u.Mg)&&!this.state.nextEvents.some(function(e){return 0===e.indexOf(u.Mg)}))throw r.data.data;return(0,b.J)(this,function(){return n.machine.transition(n.state,r,void 0,t||void 0)})},Interpreter.prototype.nextState=function(e){return this._nextState(e,!1)},Interpreter.prototype.forward=function(e){var t,n;try{for(var r=(0,o.XA)(this.forwardTo),i=r.next();!i.done;i=r.next()){var s=i.value,c=this.children.get(s);if(!c)throw Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));c.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},Interpreter.prototype.defer=function(e){var t=this,n=this.clock.setTimeout(function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},Interpreter.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},Interpreter.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},Interpreter.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},Interpreter.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),(0,f.mf)(t.stop)&&t.stop())},Interpreter.prototype.spawn=function(e,t,n){if(this.status!==i.Running)return(0,v.Xg)(e,t);
vendor: 6,820 bytes, line 22
22if((0,f.y8)(e))return this.spawnPromise(Promise.resolve(e),t);if((0,f.mf)(e))return this.spawnCallback(e,t);if((0,v.f3)(e))return this.spawnActor(e,t);if((0,f.bi)(e))return this.spawnObservable(e,t);if((0,f.O4)(e))return this.spawnMachine(e,(0,o.pi)((0,o.pi)({},n),{id:t}));if((0,f.HV)(e))return this.spawnBehavior(e,t);throw Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'))},Interpreter.prototype.spawnMachine=function(e,t){var n=this;void 0===t&&(t={});var r=new Interpreter(e,(0,o.pi)((0,o.pi)({},this.options),{parent:this,id:t.id||e.id})),i=(0,o.pi)((0,o.pi)({},E),t);return i.sync&&r.onTransition(function(e){n.send(u.Vx,{state:e,id:r.id})}),this.children.set(r.id,r),i.autoForward&&this.forwardTo.add(r.id),r.onDone(function(e){n.removeChild(r.id),n.send((0,f.g5)(e,{origin:r.id}))}).start(),r},Interpreter.prototype.spawnBehavior=function(e,t){var n,r,i,o,s,c,u,l,d=(n={id:t,parent:this},r=e.initialState,i=new Set,o=[],s=!1,c=function(){if(!s){for(s=!0;o.length>0;){var t=o.shift();r=e.transition(r,t,l),i.forEach(function(e){return e.next(r)})}s=!1}},u=(0,v.vk)({id:n.id,send:function(e){o.push(e),c()},getSnapshot:function(){return r},subscribe:function(e,t,n){var o=(0,f.zM)(e,t,n);return i.add(o),o.next(r),{unsubscribe:function(){i.delete(o)}}}}),l={parent:n.parent,self:u,id:n.id||"anonymous",observers:i},r=e.start?e.start(l):r,u);return this.children.set(t,d),d},Interpreter.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then(function(e){o||(r=e,i.removeChild(t),i.send((0,f.g5)((0,l.Sl)(t,e),{origin:t})))},function(e){if(!o){i.removeChild(t);var n=(0,l.vU)(t,e);try{i.send((0,f.g5)(n,{origin:t}))}catch(r){(0,f.v4)(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}});var s=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=(0,f.zM)(t,n,r),o=!1;return e.then(function(e){!o&&(i.next(e),o||i.complete())},function(e){o||i.error(e)}),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[f.L$]=function(){return this},n);return this.children.set(t,s),s},Interpreter.prototype.spawnCallback=function(e,t){var n,r,i,o=this,s=!1,c=new Set,u=new Set;try{i=e(function(e){r=e,u.forEach(function(t){return t(e)}),s||o.send((0,f.g5)(e,{origin:t}))},function(e){c.add(e)})}catch(e){this.send((0,l.vU)(t,e))}if((0,f.y8)(i))return this.spawnPromise(i,t);var d=((n={id:t,send:function(e){return c.forEach(function(t){return t(e)})},subscribe:function(e){var t=(0,f.zM)(e);return u.add(t.next),{unsubscribe:function(){u.delete(t.next)}}},stop:function(){s=!0,(0,f.mf)(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[f.L$]=function(){return this},n);return this.children.set(t,d),d},Interpreter.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe(function(e){r=e,i.send((0,f.g5)(e,{origin:t}))},function(e){i.removeChild(t),i.send((0,f.g5)((0,l.vU)(t,e),{origin:t}))},function(){i.removeChild(t),i.send((0,f.g5)((0,l.Sl)(t),{origin:t}))}),s=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[f.L$]=function(){return this},n);return this.children.set(t,s),s},Interpreter.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},Interpreter.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(!t){d.M||(0,f.ZK)(!1,"No implementation found for activity '".concat(e.type,"'"));return}var n=t(this.state.context,e);this.spawnEffect(e.id,n)},Interpreter.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[f.L$]=function(){return this},n))},Interpreter.prototype.attachDev=function(){var e=getGlobal();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect((0,o.pi)((0,o.pi)({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:(0,o.pi)({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(e){if(getGlobal()){var t=function(){var e=getGlobal();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}(this)}},Interpreter.prototype.toJSON=function(){return{id:this.id}},Interpreter.prototype[f.L$]=function(){return this},Interpreter.prototype.getSnapshot=function(){return this.status===i.NotStarted?this.initialState:this._state},Interpreter.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},Interpreter.interpret=interpret,Interpreter}();function interpret(e,t){return new S(e,t)}},80237:function(e,t,n){"use strict";n.d(t,{J:function(){return provide}});var r=[],provide=function(e,t){r.push(e);var n=t(e);return r.pop(),n}},88297:function(e,t,n){"use strict";n.d(t,{G:function(){return getChildren},Ij:function(){return function isInFinalState(e,t){return"compound"===t.type?getChildren(t).some(function(t){return"final"===t.type&&has(e,t)}):"parallel"===t.type&&getChildren(t).every(function(t){return isInFinalState(e,t)})}},N9:function(){return isLeafNode},NA:function(){return getValue},Oe:function(){return getTagsFromConfiguration},P_:function(){return getConfiguration},ac:function(){return getAllStateNodes},e$:function(){return has},nI:function(){return getAllChildren},nJ:function(){return nextEvents},xZ:function(){return getMeta}});var r=n(70572),i=n(70049),isLeafNode=function(e){return"atomic"===e.type||"final"===e.type};function getAllChildren(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function getChildren(e){return getAllChildren(e).filter(function(e){return"history"!==e.type})}function getAllStateNodes(e){var t=[e];return isLeafNode(e)?t:t.concat((0,i.xH)(getChildren(e).map(getAllStateNodes)))}function getConfiguration(e,t){var n,i,o,s,c,u,l,d,f=getAdjList(new Set(e)),p=new Set(t);try{for(var h=(0,r.XA)(p),v=h.next();!v.done;v=h.next())for(var y=v.value,m=y.parent;m&&!p.has(m);)p.add(m),m=m.parent}catch(e){n={error:e}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}var g=getAdjList(p);try{for(var b=(0,r.XA)(p),E=b.next();!E.done;E=b.next()){var y=E.value;if("compound"!==y.type||g.get(y)&&g.get(y).length){if("parallel"===y.type)try{for(var S=(c=void 0,(0,r.XA)(getChildren(y))),w=S.next();!w.done;w=S.next()){var x=w.value;
22p.has(x)||(p.add(x),f.get(x)?f.get(x).forEach(function(e){return p.add(e)}):x.initialStateNodes.forEach(function(e){return p.add(e)}))}}catch(e){c={error:e}}finally{try{w&&!w.done&&(u=S.return)&&u.call(S)}finally{if(c)throw c.error}}}else f.get(y)?f.get(y).forEach(function(e){return p.add(e)}):y.initialStateNodes.forEach(function(e){return p.add(e)})}}catch(e){o={error:e}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}try{for(var A=(0,r.XA)(p),_=A.next();!_.done;_=A.next())for(var y=_.value,m=y.parent;m&&!p.has(m);)p.add(m),m=m.parent}catch(e){l={error:e}}finally{try{_&&!_.done&&(d=A.return)&&d.call(A)}finally{if(l)throw l.error}}return p}function getAdjList(e){var t,n,i=new Map;try{for(var o=(0,r.XA)(e),s=o.next();!s.done;s=o.next()){var c=s.value;i.has(c)||i.set(c,[]),c.parent&&(i.has(c.parent)||i.set(c.parent,[]),i.get(c.parent).push(c))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}function getValue(e,t){var n=getConfiguration([e],t);return function getValueFromAdj(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(isLeafNode(r))return r.key}var i={};return n.forEach(function(e){i[e.key]=getValueFromAdj(e,t)}),i}(e,getAdjList(n))}function has(e,t){return Array.isArray(e)?e.some(function(e){return e===t}):e instanceof Set&&e.has(t)}function nextEvents(e){return(0,r.ev)([],(0,r.CR)(new Set((0,i.xH)((0,r.ev)([],(0,r.CR)(e.map(function(e){return e.ownEvents})),!1)))),!1)}function getMeta(e){return void 0===e&&(e=[]),e.reduce(function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e},{})}function getTagsFromConfiguration(e){return new Set((0,i.xH)(e.map(function(e){return e.tags})))}},3763:function(e,t,n){"use strict";var r,i,o,s;n.d(t,{K:function(){return i},M:function(){return r}}),(o=r||(r={})).Start="xstate.start",o.Stop="xstate.stop",o.Raise="xstate.raise",o.Send="xstate.send",o.Cancel="xstate.cancel",o.NullEvent="",o.Assign="xstate.assign",o.After="xstate.after",o.DoneState="done.state",o.DoneInvoke="done.invoke",o.Log="xstate.log",o.Init="xstate.init",o.Invoke="xstate.invoke",o.ErrorExecution="error.execution",o.ErrorCommunication="error.communication",o.ErrorPlatform="error.platform",o.ErrorCustom="xstate.error",o.Update="xstate.update",o.Pure="xstate.pure",o.Choose="xstate.choose",(s=i||(i={})).Parent="#_parent",s.Internal="#_internal"},70049:function(e,t,n){"use strict";n.d(t,{Bc:function(){return isActor},ET:function(){return path},HD:function(){return isString},HV:function(){return isBehavior},JQ:function(){return isBuiltInEvent},L$:function(){return l},O4:function(){return isMachine},Q8:function(){return mapValues},Q9:function(){return toStatePath},QX:function(){return mapContext},Qi:function(){return toGuard},SA:function(){return function toStatePaths(e){return e?isString(e)?[[e]]:flatten(Object.keys(e).map(function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?toStatePaths(e[t]).map(function(e){return[t].concat(e)}):[[t]]})):[[]]}},W:function(){return function matchesState(e,t,n){void 0===n&&(n=c.iS);var r=toStateValue(e,n),i=toStateValue(t,n);return isString(i)?!!isString(r)&&i===r:isString(r)?r in i:Object.keys(r).every(function(e){return e in i&&matchesState(r[e],i[e])})}},WM:function(){return toStateValue},ZK:function(){return warn},_v:function(){return toEventObject},bi:function(){return isObservable},bx:function(){return createInvokeId},dt:function(){return updateContext},g5:function(){return toSCXMLEvent},gk:function(){return nestedPath},ib:function(){return mapFilterValues},j:function(){return toInvokeSource},jh:function(){return toTransitionConfigArray},kJ:function(){return isArray},mf:function(){return isFunction},on:function(){return pathToStateValue},qo:function(){return toArray},rg:function(){return normalizeTarget},uK:function(){return partition},v4:function(){return reportUnhandledExceptionOnInvocation},vK:function(){return isRaisableAction},vx:function(){return evaluateGuard},x6:function(){return getEventType},xH:function(){return flatten},y8:function(){return isPromiseLike},yv:function(){return updateHistoryValue},zM:function(){return toObserver}});var r,i=n(70572),o=n(3763),s=n(20449),c=n(84766),u=n(49333);function getEventType(e){try{return isString(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw Error("Events must be strings or objects with a string event.type property.")}}function toStatePath(e,t){try{if(isArray(e))return e;return e.toString().split(t)}catch(t){throw Error("'".concat(e,"' is not a valid state path."))}}function toStateValue(e,t){return"object"==typeof e&&"value"in e&&"context"in e&&"event"in e&&"_event"in e?e.value:isArray(e)?pathToStateValue(e):"str
22ing"!=typeof e?e:pathToStateValue(toStatePath(e,t))}function pathToStateValue(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function mapValues(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function mapFilterValues(e,t,n){var r,o,s={};try{for(var c=(0,i.XA)(Object.keys(e)),u=c.next();!u.done;u=c.next()){var l=u.value,d=e[l];n(d)&&(s[l]=t(d,l,e))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return s}var path=function(e){return function(t){var n,r,o=t;try{for(var s=(0,i.XA)(e),c=s.next();!c.done;c=s.next())o=o[c.value]}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}};function nestedPath(e,t){return function(n){var r,o,s=n;try{for(var c=(0,i.XA)(e),u=c.next();!u.done;u=c.next()){var l=u.value;s=s[t][l]}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return s}}function flatten(e){var t;return(t=[]).concat.apply(t,(0,i.ev)([],(0,i.CR)(e),!1))}function toArray(e){return void 0===e?[]:isArray(e)?e:[e]}function mapContext(e,t,n){if(isFunction(e))return e(t,n.data);var r,o,s={};try{for(var c=(0,i.XA)(Object.keys(e)),u=c.next();!u.done;u=c.next()){var l=u.value,d=e[l];isFunction(d)?s[l]=d(t,n.data):s[l]=d}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return s}function isBuiltInEvent(e){return/^(done|error)\./.test(e)}function isPromiseLike(e){return!!(e instanceof Promise||null!==e&&(isFunction(e)||"object"==typeof e)&&isFunction(e.then))}function isBehavior(e){return null!==e&&"object"==typeof e&&"transition"in e&&"function"==typeof e.transition}function partition(e,t){var n,r,o=(0,i.CR)([[],[]],2),s=o[0],c=o[1];try{for(var u=(0,i.XA)(e),l=u.next();!l.done;l=u.next()){var d=l.value;t(d)?s.push(d):c.push(d)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[s,c]}function updateHistoryValue(e,t){return{current:t,states:function updateHistoryStates(e,t){return mapValues(e.states,function(e,n){if(e){var r=(isString(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:updateHistoryStates(e,r)}}})}(e,t)}}function updateContext(e,t,n,r){return u.M||warn(!!e,"Attempting to update undefined context"),e?n.reduce(function(e,n){var o,s,c=n.assignment,u={state:r,action:n,_event:t},l={};if(isFunction(c))l=c(e,t.data,u);else try{for(var d=(0,i.XA)(Object.keys(c)),f=d.next();!f.done;f=d.next()){var p=f.value,h=c[p];l[p]=isFunction(h)?h(e,t.data,u):h}}catch(e){o={error:e}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}return Object.assign({},e,l)},e):e}var warn=function(){};function isArray(e){return Array.isArray(e)}function isFunction(e){return"function"==typeof e}function isString(e){return"string"==typeof e}function toGuard(e,t){return e?isString(e)?{type:c.TV,name:e,predicate:t?t[e]:void 0}:isFunction(e)?{type:c.TV,name:e.name,predicate:e}:e:void 0}function isObservable(e){try{return"subscribe"in e&&isFunction(e.subscribe)}catch(e){return!1}}u.M||(warn=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var l="function"==typeof Symbol&&Symbol.observable||"@@observable";function isMachine(e){return!!e&&"__xstatenode"in e}function isActor(e){return!!e&&"function"==typeof e.send}function toEventObject(e,t){return isString(e)||"number"==typeof e?(0,i.pi)({type:e},t):e}function toSCXMLEvent(e,t){if(!isString(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=toEventObject(e);return(0,i.pi)({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function toTransitionConfigArray(e,t){return(isArray(t)?t:[t]).map(function(t){return void 0===t||"string"==typeof t||isMachine(t)?{target:t,event:e}:(0,i.pi)((0,i.pi)({},t),{event:e})})}function normalizeTarget(e){if(void 0!==e&&e!==c.rt)return toArray(e)}
22function reportUnhandledExceptionOnInvocation(e,t,n){if(!u.M){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(i))}}}function evaluateGuard(e,t,n,r,i){var o=e.options.guards,s={state:i,cond:t,_event:r};if(t.type===c.TV)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,s);var u=null==o?void 0:o[t.type];if(!u)throw Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(n,r.data,s)}function toInvokeSource(e){return"string"==typeof e?{type:e}:e}function toObserver(e,t,n){var noop=function(){},r="object"==typeof e,i=r?e:null;return{next:((r?e.next:e)||noop).bind(i),error:((r?e.error:t)||noop).bind(i),complete:((r?e.complete:n)||noop).bind(i)}}function createInvokeId(e,t){return"".concat(e,":invocation[").concat(t,"]")}function isRaisableAction(e){return(e.type===s.OU||e.type===s.lW&&e.to===o.K.Internal)&&"number"!=typeof e.delay}(r={})[l]=function(){return this},r[Symbol.observable]=function(){return this}},23707:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(7896),i=n(2784),o=n(72714);let s=(0,i.forwardRef)((e,t)=>(0,i.createElement)(o.WV.label,(0,r.Z)({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))),c=s},16530:function(e,t,n){"use strict";n.d(t,{bU:function(){return S},fC:function(){return E}});var r=n(7896),i=n(2784),o=n(17998),s=n(62656),c=n(92211),u=n(87695),l=n(90022),d=n(35019),f=n(72714);let p="Switch",[h,v]=(0,c.b)(p),[y,m]=h(p),g=(0,i.forwardRef)((e,t)=>{let{__scopeSwitch:n,name:c,checked:l,defaultChecked:d,required:p,disabled:h,value:v="on",onCheckedChange:m,...g}=e,[b,E]=(0,i.useState)(null),S=(0,s.e)(t,e=>E(e)),w=(0,i.useRef)(!1),x=!b||!!b.closest("form"),[A=!1,_]=(0,u.T)({prop:l,defaultProp:d,onChange:m});return(0,i.createElement)(y,{scope:n,checked:A,disabled:h},(0,i.createElement)(f.WV.button,(0,r.Z)({type:"button",role:"switch","aria-checked":A,"aria-required":p,"data-state":$6be4966fd9bbc698$var$getState(A),"data-disabled":h?"":void 0,disabled:h,value:v},g,{ref:S,onClick:(0,o.M)(e.onClick,e=>{_(e=>!e),x&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})})),x&&(0,i.createElement)($6be4966fd9bbc698$var$BubbleInput,{control:b,bubbles:!w.current,name:c,value:v,checked:A,required:p,disabled:h,style:{transform:"translateX(-100%)"}}))}),b=(0,i.forwardRef)((e,t)=>{let{__scopeSwitch:n,...o}=e,s=m("SwitchThumb",n);return(0,i.createElement)(f.WV.span,(0,r.Z)({"data-state":$6be4966fd9bbc698$var$getState(s.checked),"data-disabled":s.disabled?"":void 0},o,{ref:t}))}),$6be4966fd9bbc698$var$BubbleInput=e=>{let{control:t,checked:n,bubbles:o=!0,...s}=e,c=(0,i.useRef)(null),u=(0,l.D)(n),f=(0,d.t)(t);return(0,i.useEffect)(()=>{let e=c.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked"),i=r.set;if(u!==n&&i){let t=new Event("click",{bubbles:o});i.call(e,n),e.dispatchEvent(t)}},[u,n,o]),(0,i.createElement)("input",(0,r.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},s,{tabIndex:-1,ref:c,style:{...e.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function $6be4966fd9bbc698$var$getState(e){return e?"checked":"unchecked"}let E=g,S=b},2649:function(e,t,n){"use strict";let r;n.d(t,{aU:function(){return Q},x8:function(){return Y},dk:function(){return J},zt:function(){return K},fC:function(){return G},Dx:function(){return q},l_:function(){return X}});var i=n(7896),o=n(2784),s=n(28316),c=n(17998),u=n(62656),l=n(62172),d=n(92211),f=n(72714),p=n(27757),h=n(86796);let v="dismissableLayer.update",y=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=(0,o.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:g,onDismiss:b,...E}=e,S=(0,o.useContext)(y),[w,x]=(0,o.useState)(null),A=null!==(n=null==w?void 0:w.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,_]=(0,o.useState)({}),k=(0,u.e)(t,e=>x(e)),C=Array.from(S.layers),[P]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),T=C.indexOf(P),O=w?C.indexOf(w):-1,N=S.layersWithOutsidePointerEventsDisabled.size>0,I=O>=T,j=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,p.W)(e),r=(0,o.useRef)(!1),i=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let handlePointerDown=e=>{if(e.target&&!r.current){let r={originalEvent:e};function handleAndDispatchPointerDownOutsideEvent(){$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=handleAndDispatchPointerDownOutsideEvent,t.addEventListener("click",i.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent()}else t.removeEventListener("click",i.current);r.current=!1},e=window.setTimeout(()=>{t.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(e),t.removeEventListener("pointerdown",handlePointerDown),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...S.branches].some(e=>e.contains(t));!I||n||(null==d||d(e),null==g||g(e),e.defaultPrevented||null==b||b())},A),R=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,p.W)(e),r=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let handleFocus=e=>{e.target&&!r.current&&$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",handleFocus),()=>t.removeEventListener("focusin",handleFocus)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...S.branches].some(e=>e.contains(t));
22n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==b||b())},A);return(0,h.e)(e=>{let t=O===S.layers.size-1;t&&(null==l||l(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},A),(0,o.useEffect)(()=>{if(w)return s&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(r=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(w)),S.layers.add(w),$5cb92bef7577960e$var$dispatchUpdate(),()=>{s&&1===S.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=r)}},[w,A,s,S]),(0,o.useEffect)(()=>()=>{w&&(S.layers.delete(w),S.layersWithOutsidePointerEventsDisabled.delete(w),$5cb92bef7577960e$var$dispatchUpdate())},[w,S]),(0,o.useEffect)(()=>{let handleUpdate=()=>_({});return document.addEventListener(v,handleUpdate),()=>document.removeEventListener(v,handleUpdate)},[]),(0,o.createElement)(f.WV.div,(0,i.Z)({},E,{ref:k,style:{pointerEvents:N?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,c.M)(e.onFocusCapture,R.onFocusCapture),onBlurCapture:(0,c.M)(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:(0,c.M)(e.onPointerDownCapture,j.onPointerDownCapture)}))}),g=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(y),r=(0,o.useRef)(null),s=(0,u.e)(t,r);return(0,o.useEffect)(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,o.createElement)(f.WV.div,(0,i.Z)({},e,{ref:s}))});function $5cb92bef7577960e$var$dispatchUpdate(){let e=new CustomEvent(v);document.dispatchEvent(e)}function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,f.jH)(i,o):i.dispatchEvent(o)}let b=(0,o.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...c}=e;return r?s.createPortal((0,o.createElement)(f.WV.div,(0,i.Z)({},c,{ref:t})),r):null});var E=n(79616),S=n(87695),w=n(61644),x=n(89785);let A="ToastProvider",[_,k,C]=(0,l.B)("Toast"),[P,T]=(0,d.b)("Toast",[C]),[O,N]=P(A),$054eb8030ebde76e$export$f5d03d415824e0e=e=>{let{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:c}=e,[u,l]=(0,o.useState)(null),[d,f]=(0,o.useState)(0),p=(0,o.useRef)(!1),h=(0,o.useRef)(!1);return(0,o.createElement)(_.Provider,{scope:t},(0,o.createElement)(O,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:d,viewport:u,onViewportChange:l,onToastAdd:(0,o.useCallback)(()=>f(e=>e+1),[]),onToastRemove:(0,o.useCallback)(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:h},c))};$054eb8030ebde76e$export$f5d03d415824e0e.propTypes={label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){let e=`Invalid prop \`label\` supplied to \`${A}\`. Expected non-empty \`string\`.`;return Error(e)}return null}};let I=["F8"],j="toast.viewportPause",R="toast.viewportResume",M=(0,o.forwardRef)((e,t)=>{let{__scopeToast:n,hotkey:r=I,label:s="Notifications ({hotkey})",...c}=e,l=N("ToastViewport",n),d=k(n),p=(0,o.useRef)(null),h=(0,o.useRef)(null),v=(0,o.useRef)(null),y=(0,o.useRef)(null),m=(0,u.e)(t,y,l.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=l.toastCount>0;(0,o.useEffect)(()=>{let handleKeyDown=e=>{var t;let n=r.every(t=>e[t]||e.code===t);n&&(null===(t=y.current)||void 0===t||t.focus())};return document.addEventListener("keydown",handleKeyDown),()=>document.removeEventListener("keydown",handleKeyDown)},[r]),(0,o.useEffect)(()=>{let e=p.current,t=y.current;if(E&&e&&t){let handlePause=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(j);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},handleResume=()=>{if(l.isClosePausedRef.current){let e=new CustomEvent(R);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},handleFocusOutResume=t=>{let n=!e.contains(t.relatedTarget);n&&handleResume()},handlePointerLeaveResume=()=>{let t=e.contains(document.activeElement);t||handleResume()};return e.addEventListener("focusin",handlePause),e.addEventListener("focusout",handleFocusOutResume),e.addEventListener("pointermove",handlePause),e.addEventListener("pointerleave",handlePointerLeaveResume),window.addEventListener("blur",handlePause),window.addEventListener("focus",handleResume),()=>{e.removeEventListener("focusin",handlePause),e.removeEventListener("focusout",handleFocusOutResume),e.removeEventListener("pointermove",handlePause),e.removeEventListener("pointerleave",handlePointerLeaveResume),window.removeEventListener("blur",handlePause),window.removeEventListener("focus",handleResume)}}},[E,l.isClosePausedRef]);let S=(0,o.useCallback)(({tabbingDirection:e})=>{let t=d(),n=t.map(t=>{let n=t.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?n.reverse():n).flat()},[d]);return(0,o.useEffect)(()=>{let e=y.current;if(e){let handleKeyDown=t=>{let n=t.altKey||t.ctrlKey||t.metaKey,r="Tab"===t.key&&!n;if(r){var i,o,s;let n=document.activeElement,r=t.shiftKey,c=t.target===e;if(c&&r){null===(i=h.current)||void 0===i||i.focus();return}let u=S({tabbingDirection:r?"backwards":"forwards"}),l=u.findIndex(e=>e===n);$054eb8030ebde76e$var$focusFirst(u.slice(l+1))?t.preventDefault():r?null===(o=h.current)||void 0===o||o.focus():null===(s=v.current)||void 0===s||s.focus()}};return e.addEventListener("keydown",handleKeyDown),()=>e.removeEventListener("keydown",handleKeyDown)}},[d,S]),(0,o.createElement)(g,{ref:p,role:"region","aria-label":s.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:E?void 0:"none"}},E&&(0,o.createElement)(L,{ref:h,onFocusFromOutsideViewport:()=>{let e=S({tabbingDirection:"forwards"});$054eb8030ebde76e$var$focusFirst(e)}}),(0,o.createElement)(_.Slot,{scope:n},(0,o.createElement)(f.WV.ol,(0,i.Z)({tabIndex:-1},c,{ref:m}))),E&&(0,o.createElement)(L,{ref:v,onFocusFromOutsideViewport:()=>{let e=S({tabbingDirection:"backwards"});$054eb8030ebde76e$var$focusFirst(e)}}))}),L=(0,o.forwardRef)((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,c=N("ToastFocusProxy",n);return(0,o.createElement)(x.T,(0,i.Z)({"aria-hidden":!0,tabIndex:0},s,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget,i=!(null!==(t=c.viewport)&&void 0!==t&&t.contains(n));i&&r()}}))}),D="Toast",W=(0,o.forwardRef)((e,t)=>{let{forceMount:n,open:r,defaultOpen:s,onOpenChange:u,...l}=e,[d=!0,f]=(0,S.T)({prop:r,defaultProp:s,onChange:u});return(0,o.createElement)(E.z,{present:n||d},(0,o.createElement)(F,(0,i.Z)({open:d},l,{ref:t,onClose:()=>f(!1),onPause:(0,p.W)(e.onPause),onResume:(0,p.W)(e.onResume),onSwipeStart:(0,c.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,c.M)(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)}
22),onSwipeCancel:(0,c.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,c.M)(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),f(!1)})})))}),[V,$]=P(D,{onClose(){}}),F=(0,o.forwardRef)((e,t)=>{let{__scopeToast:n,type:r="foreground",duration:l,open:d,onClose:h,onEscapeKeyDown:v,onPause:y,onResume:g,onSwipeStart:b,onSwipeMove:E,onSwipeCancel:S,onSwipeEnd:w,...x}=e,A=N(D,n),[k,C]=(0,o.useState)(null),P=(0,u.e)(t,e=>C(e)),T=(0,o.useRef)(null),O=(0,o.useRef)(null),I=l||A.duration,M=(0,o.useRef)(0),L=(0,o.useRef)(I),W=(0,o.useRef)(0),{onToastAdd:$,onToastRemove:F}=A,U=(0,p.W)(()=>{var e;let t=null==k?void 0:k.contains(document.activeElement);t&&(null===(e=A.viewport)||void 0===e||e.focus()),h()}),z=(0,o.useCallback)(e=>{e&&e!==1/0&&(window.clearTimeout(W.current),M.current=new Date().getTime(),W.current=window.setTimeout(U,e))},[U]);(0,o.useEffect)(()=>{let e=A.viewport;if(e){let handleResume=()=>{z(L.current),null==g||g()},handlePause=()=>{let e=new Date().getTime()-M.current;L.current=L.current-e,window.clearTimeout(W.current),null==y||y()};return e.addEventListener(j,handlePause),e.addEventListener(R,handleResume),()=>{e.removeEventListener(j,handlePause),e.removeEventListener(R,handleResume)}}},[A.viewport,I,y,g,z]),(0,o.useEffect)(()=>{d&&!A.isClosePausedRef.current&&z(I)},[d,I,A.isClosePausedRef,z]),(0,o.useEffect)(()=>($(),()=>F()),[$,F]);let B=(0,o.useMemo)(()=>k?function $054eb8030ebde76e$var$getAnnounceTextContent(e){let t=[],n=Array.from(e.childNodes);return n.forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),e.nodeType===e.ELEMENT_NODE){let n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n){if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...$054eb8030ebde76e$var$getAnnounceTextContent(e))}}}),t}(k):null,[k]);return A.viewport?(0,o.createElement)(o.Fragment,null,B&&(0,o.createElement)($054eb8030ebde76e$var$ToastAnnounce,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0},B),(0,o.createElement)(V,{scope:n,onClose:U},(0,s.createPortal)((0,o.createElement)(_.ItemSlot,{scope:n},(0,o.createElement)(m,{asChild:!0,onEscapeKeyDown:(0,c.M)(v,()=>{A.isFocusedToastEscapeKeyDownRef.current||U(),A.isFocusedToastEscapeKeyDownRef.current=!1})},(0,o.createElement)(f.WV.li,(0,i.Z)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":A.swipeDirection},x,{ref:P,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,c.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==v||v(e.nativeEvent),e.nativeEvent.defaultPrevented||(A.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,c.M)(e.onPointerDown,e=>{0===e.button&&(T.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,c.M)(e.onPointerMove,e=>{if(!T.current)return;let t=e.clientX-T.current.x,n=e.clientY-T.current.y,r=!!O.current,i=["left","right"].includes(A.swipeDirection),o=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,s=i?o(0,t):0,c=i?0:o(0,n),u="touch"===e.pointerType?10:2,l={x:s,y:c},d={originalEvent:e,delta:l};r?(O.current=l,$054eb8030ebde76e$var$handleAndDispatchCustomEvent("toast.swipeMove",E,d,{discrete:!1})):$054eb8030ebde76e$var$isDeltaInDirection(l,A.swipeDirection,u)?(O.current=l,$054eb8030ebde76e$var$handleAndDispatchCustomEvent("toast.swipeStart",b,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(n)>u)&&(T.current=null)}),onPointerUp:(0,c.M)(e.onPointerUp,e=>{let t=O.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),O.current=null,T.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};$054eb8030ebde76e$var$isDeltaInDirection(t,A.swipeDirection,A.swipeThreshold)?$054eb8030ebde76e$var$handleAndDispatchCustomEvent("toast.swipeEnd",w,r,{discrete:!0}):$054eb8030ebde76e$var$handleAndDispatchCustomEvent("toast.swipeCancel",S,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})))),A.viewport))):null});F.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let e=`Invalid prop \`type\` supplied to \`${D}\`. Expected \`foreground | background\`.`;return Error(e)}return null}};let $054eb8030ebde76e$var$ToastAnnounce=e=>{let{__scopeToast:t,children:n,...r}=e,i=N(D,t),[s,c]=(0,o.useState)(!1),[u,l]=(0,o.useState)(!1);return function(e=()=>{}){let t=(0,p.W)(e);(0,w.b)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>c(!0)),(0,o.useEffect)(()=>{let e=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(e)},[]),u?null:(0,o.createElement)(b,{asChild:!0},(0,o.createElement)(x.T,r,s&&(0,o.createElement)(o.Fragment,null,i.label," ",n)))},U=(0,o.forwardRef)((e,t)=>{let{__scopeToast:n,...r}=e;return(0,o.createElement)(f.WV.div,(0,i.Z)({},r,{ref:t}))}),z=(0,o.forwardRef)((e,t)=>{let{__scopeToast:n,...r}=e;return(0,o.createElement)(f.WV.div,(0,i.Z)({},r,{ref:t}))}),B=(0,o.forwardRef)((e,t)=>{let{altText:n,...r}=e;return n?(0,o.createElement)(H,{altText:n,asChild:!0},(0,o.createElement)(Z,(0,i.Z)({},r,{ref:t}))):null});B.propTypes={altText:e=>e.altText?null:Error("Missing prop `altText` expected on `ToastAction`")};let Z=(0,o.forwardRef)((e,t)=>{let{__scopeToast:n,...r}=e,s=$("ToastClose",n);return(0,o.createElement)(H,{asChild:!0},(0,o.createElement)(f.WV.button,(0,i.Z)({type:"button"},r,{ref:t,onClick:(0,c.M)(e.onClick,s.onClose)})))}),H=(0,o.forwardRef)((e,t)=>{let{__scopeToast:n,altText:r,...s}=e;return(0,o.createElement)(f.WV.div,(0,i.Z)({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},s,{ref:t}))});function $054eb8030ebde76e$var$handleAndDispatchCustomEvent(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,f.jH)(i,o):i.dispatchEvent(o)}let $054eb8030ebde76e$var$isDeltaInDirection=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return"left"===t||"right"===t?o&&r>n:!o&&i>n};function $054eb8030ebde76e$var$focusFirst(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}let K=$054eb8030ebde76e$export$f5d03d415824e0e,X=M,G=W,q=U,J=z,Q=B,Y=Z},10929:function(e,t,n){"use strict";n.d(t,{j:function(){return cva}});
22var r=n(6277);let falsyToString=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=r.default,cva=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:s}=t,c=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let i=falsyToString(t)||falsyToString(r);return o[e][i]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,c,l,null==n?void 0:n.class,null==n?void 0:n.className)}},7921:function(e,t,n){"use strict";var r=n(37775);t.Z=function(e){return(0,r.Z)(e,5)}},98174:function(e,t,n){"use strict";n.d(t,{m:function(){return f}});var r=/^\[(.+)\]$/;function getPart(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var i=/\s+/;function twJoin(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function toValue(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=toValue(e[r]))&&(n&&(n+=" "),n+=t);return n}(e))&&(r&&(r+=" "),r+=t);return r}function fromTheme(e){var themeGetter=function(t){return t[e]||[]};return themeGetter.isThemeGetter=!0,themeGetter}var o=/^\[(?:([a-z-]+):)?(.+)\]$/i,s=/^\d+\/\d+$/,c=new Set(["px","full","screen"]),u=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,d=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function isLength(e){return isNumber(e)||c.has(e)||s.test(e)||isArbitraryLength(e)}function isArbitraryLength(e){return getIsArbitraryValue(e,"length",isLengthOnly)}function isArbitrarySize(e){return getIsArbitraryValue(e,"size",isNever)}function isArbitraryPosition(e){return getIsArbitraryValue(e,"position",isNever)}function isArbitraryUrl(e){return getIsArbitraryValue(e,"url",isUrl)}function isArbitraryNumber(e){return getIsArbitraryValue(e,"number",isNumber)}function isNumber(e){return!Number.isNaN(Number(e))}function isPercent(e){return e.endsWith("%")&&isNumber(e.slice(0,-1))}function isInteger(e){return isIntegerOnly(e)||getIsArbitraryValue(e,"number",isIntegerOnly)}function isArbitraryValue(e){return o.test(e)}function isAny(){return!0}function isTshirtSize(e){return u.test(e)}function isArbitraryShadow(e){return getIsArbitraryValue(e,"",isShadow)}function getIsArbitraryValue(e,t,n){var r=o.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function isLengthOnly(e){return l.test(e)}function isNever(){return!1}function isUrl(e){return e.startsWith("url(")}function isIntegerOnly(e){return Number.isInteger(Number(e))}function isShadow(e){return d.test(e)}var f=function(){for(var e,t,n,o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];var functionToCall=function(i){var o=s[0];return t=(e=function(e){var t,n,i,o,s,c,u,l,d,f,p;return{cache:function(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function update(i,o){n.set(i,o),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(update(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):update(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,i=t[0],o=t.length,function(e){for(var r,s=[],c=0,u=0,l=0;l<e.length;l++){var d=e[l];if(0===c){if(d===i&&(n||e.slice(l,l+o)===t)){s.push(e.slice(u,l)),u=l+o;continue}if("/"===d){r=l;continue}}"["===d?c++:"]"===d&&c--}var f=0===s.length?e:e.substring(u),p=f.startsWith("!"),h=p?f.substring(1):f;return{modifiers:s,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:r&&r>u?r-u:void 0}}),...(l=e.theme,d=e.prefix,f={nextPart:new Map,validators:[]},(p=Object.entries(e.classGroups),d?p.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}
22):p).forEach(function(e){var t=e[0];(function processClassesRecursively(e,t,n,r){e.forEach(function(e){if("string"==typeof e){(""===e?t:getPart(t,e)).classGroupId=n;return}if("function"==typeof e){if(e.isThemeGetter){processClassesRecursively(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(function(e){var i=e[0];processClassesRecursively(e[1],getPart(t,i),n,r)})})})(e[1],f,t,l)}),s=e.conflictingClassGroups,u=void 0===(c=e.conflictingClassGroupModifiers)?{}:c,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function getGroupRecursive(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),i=r?getGroupRecursive(e.slice(1),r):void 0;if(i)return i;if(0!==t.validators.length){var o=e.join("-");return t.validators.find(function(e){return(0,e.validator)(o)})?.classGroupId}}(t,f)||function(e){if(r.test(e)){var t=r.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=s[e]||[];return t&&u[e]?[].concat(n,u[e]):n}})}}(s.slice(1).reduce(function(e,t){return t(e)},o()))).cache.get,n=e.cache.set,functionToCall=tailwindMerge,tailwindMerge(i)};function tailwindMerge(r){var o,s,c,u,l,d=t(r);if(d)return d;var f=(s=(o=e).splitModifiers,c=o.getClassGroupId,u=o.getConflictingClassGroupIds,l=new Set,r.trim().split(i).map(function(e){var t=s(e),n=t.modifiers,r
22=t.hasImportantModifier,i=t.baseClassName,o=t.maybePostfixModifierPosition,u=c(o?i.substring(0,o):i),l=!!o;if(!u){if(!o||!(u=c(i)))return{isTailwindClass:!1,originalClassName:e};l=!1}var d=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?d+"!":d,classGroupId:u,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,i=t+n;return!l.has(i)&&(l.add(i),u(n,r).forEach(function(e){return l.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,f),f}return function(){return functionToCall(twJoin.apply(null,arguments))}}(function(){var e=fromTheme("colors"),t=fromTheme("spacing"),n=fromTheme("blur"),r=fromTheme("brightness"),i=fromTheme("borderColor"),o=fromTheme("borderRadius"),s=fromTheme("borderSpacing"),c=fromTheme("borderWidth"),u=fromTheme("contrast"),l=fromTheme("grayscale"),d=fromTheme("hueRotate"),f=fromTheme("invert"),p=fromTheme("gap"),h=fromTheme("gradientColorStops"),v=fromTheme("gradientColorStopPositions"),y=fromTheme("inset"),m=fromTheme("margin"),g=fromTheme("opacity"),b=fromTheme("padding"),E=fromTheme("saturate"),S=fromTheme("scale"),w=fromTheme("sepia"),x=fromTheme("skew"),A=fromTheme("space"),_=fromTheme("translate"),getOverscroll=function(){return["auto","contain","none"]},getOverflow=function(){return["auto","hidden","clip","visible","scroll"]},getSpacingWithAutoAndArbitrary=function(){return["auto",isArbitraryValue,t]},getSpacingWithArbitrary=function(){return[isArbitraryValue,t]},getLengthWithEmpty=function(){return["",isLength]},getNumberWithAutoAndArbitrary=function(){return["auto",isNumber,isArbitraryValue]},getPositions=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},getLineStyles=function(){return["solid","dashed","dotted","double","none"]},getBlendModes=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},getAlign=function(){return["start","end","center","between","around","evenly","stretch"]},getZeroAndEmpty=function(){return["","0",isArbitraryValue]},getBreaks=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},getNumber=function(){return[isNumber,isArbitraryNumber]}
vendor: 4,555 bytes, line 22
22,getNumberAndArbitrary=function(){return[isNumber,isArbitraryValue]};return{cacheSize:500,theme:{colors:[isAny],spacing:[isLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumber(),borderColor:[e],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmpty(),contrast:getNumber(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[e],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumber(),padding:getSpacingWithArbitrary(),saturate:getNumber(),scale:getNumber(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(getPositions(),[isArbitraryValue])}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(getAlign())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(getAlign(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(getAlign(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",isArbitraryValue,t]}
vendor: 1,079 bytes, line 22
22],"min-w":[{"min-w":["min","max","fit",isArbitraryValue,isLength]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize,isArbitraryValue]}],h:[{h:[isArbitraryValue,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",isArbitraryValue,isLength]}],"max-h":[{"max-h":[isArbitraryValue,t,"min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}
vendor: 6,015 bytes, line 22
22],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isArbitraryValue,isLength]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(getLineStyles(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength]}],"underline-offset":[{"underline-offset":["auto",isArbitraryValue,isLength]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(getPositions(),[isArbitraryPosition])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryUrl]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[].concat(getLineStyles(),["hidden"])}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(getLineStyles())}],"outline-offset":[{"outline-offset":[isArbitraryValue,isLength]}],"outline-w":[{outline:[isLength]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:getLengthWithEmpty()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[isLength]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":getBlendModes()}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[E]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
22none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryNumber]}
22],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.