1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[737],{35236:function(e,t,n){"use strict";n.d(t,{Vv:function(){return PayPalScriptProvider},ch:function(){return PayPalButtons}});var r,i,o,s,c,l,u=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=l||(l={})).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 l=[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(l,"'}}>`.")}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,u.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,u.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,u.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"]),l=r?{opacity:.38}:{},d="".concat(void 0===t?"":t," ").concat(r?"paypal-buttons-disabled":"").trim(),p=(0,u.useRef)(null),h=(0,u.useRef)(null),v=usePayPalScriptReducer()[0],m=v.isResolved,y=v.options,g=(0,u.useState)(null),b=g[0],w=g[1],E=(0,u.useState)(!0),S=E[0],x=E[1],A=(0,u.useState)(null)[1];function closeButtonsComponent(){null!==h.current&&h.current.close().catch(function(){})}return(0,u.useEffect)(function(){if(!1===m)return closeButtonsComponent;var e=getPayPalWindowNamespace$1(y.dataNamespace);if(void 0===e||void 0===e.Buttons)return A(function(){throw Error(generateErrorMessage({reactComponentName:PayPalButtons.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:y.components,sdkDataNamespace:y[f.DATA_NAMESPACE]}))}),closeButtonsComponent;try{h.current=e.Buttons(__assign(__assign({},c),{onInit:function(e,t){w(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([m],s,!0),[c.fundingSource],!1)),(0,u.useEffect)(function(){null!==b&&(!0===r?b.disable().catch(function(){}):b.enable().catch(function(){}))},[r,b]),u.createElement(u.Fragment,null,S?u.createElement("div",{ref:p,style:l,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,u.useRef)(null),l=(0,u.useState)(!0),d=l[0],p=l[1],h=(0,u.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,u.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]),u.createElement(u.Fragment,null,d?u.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,l=(0,u.useRef)(null),d=(0,u.useRef)(null),p=(0,u.useState)(null)[1];return(0,u.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(l.current).catch(function(e){null!==l.current&&0!==l.current.children.length&&p(function(){throw Error("Failed to render <PayPalMessages /> component. ".concat(e))})})}},__spreadArray([s],r,!0)),u.createElement("div",{ref:l,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,l=e.deferLoading,p=void 0!==l&&l,v=(0,u.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}),m=v[0],y=v[1];return(0,u.useEffect)(function(){if(!1===p&&m.loadingStatus===s.INITIAL)return y({type:c.LOADING_STATUS,value:s.PENDING});if(m.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}),l=c.url,u=c.dataAttributes,d=u["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}(l,u)&&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,l,u;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,l=i.onError,(u=createScriptElement(o,s)).onerror=l,u.onload=c,document.head.insertBefore(u,document.head.firstElementChild)})})({url:l,attributes:u},t).then(function(){var e=window[d];if(e)return e;throw Error("The window.".concat(d," global variable is not available."))})})(m.options).then(function(){e&&y({type:c.LOADING_STATUS,value:s.RESOLVED})}).catch(function(t){console.error("".concat("Failed to load the PayPal JS SDK script."," ").concat(t)),e&&y({type:c.LOADING_STATUS,value:{state:s.REJECTED,message:String(t)}})}),function(){e=!1}}},[m.options,p,m.loadingStatus]),u.createElement(h.Provider,{value:__assign(__assign({},m),{dispatch:y})},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={},l=0;l<i.length;l+=1)c[i[l]]=!0;for(var u=0;u<s.length;u+=1)c[s[u]]=!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]),l=_slicedToArray(t.useState(null),2),u=l[0],d=l[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),m=v[0],y=v[1];t.useEffect(function(){var e=!0,safeSetContext=function(e){y(function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}})};return"async"!==o.tag||m.stripe?"sync"!==o.tag||m.stripe||safeSetContext(o.stripe):o.stripePromise.then(function(t){t&&e&&safeSetContext(t)}),function(){e=!1}},[o,m,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(m.elements){var e=extractAllowedOptionsUpdates(r,b,["clientSecret","fonts"]);e&&m.elements.update(e)}},[r,b,m.elements]),t.useEffect(function(){var e=m.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"}))},[m.stripe]),t.createElement(s.Provider,{value:m},t.createElement(c.Provider,{value:{cart:u,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,l=void 0===c?{}:c,u=n.onBlur,d=n.onFocus,f=n.onReady,p=n.onChange,h=n.onEscape,v=n.onClick,m=n.onLoadError,y=n.onLoaderStart,g=n.onNetworksChange,b=n.onCheckout,w=n.onLineItemClick,E=n.onConfirm,S=n.onCancel,x=n.onShippingAddressChange,A=n.onShippingRateChange,C=u
1seElementsContextWithUseCase("mounts <".concat(r,">")).elements,_=_slicedToArray(t.useState(null),2),k=_[0],P=_[1],T=t.useRef(null),O=t.useRef(null),N=useCartElementContextWithUseCase("mounts <".concat(r,">")),I=N.setCart,R=N.setCartState;useAttachEvent(k,"blur",u),useAttachEvent(k,"focus",d),useAttachEvent(k,"escape",h),useAttachEvent(k,"click",v),useAttachEvent(k,"loaderror",m),useAttachEvent(k,"loaderstart",y),useAttachEvent(k,"networkschange",g),useAttachEvent(k,"lineitemclick",w),useAttachEvent(k,"confirm",E),useAttachEvent(k,"cancel",S),useAttachEvent(k,"shippingaddresschange",x),useAttachEvent(k,"shippingratechange",A),"cart"===e?i=function(e){R(e),f&&f(e)}:f&&(i="payButton"===e?f:function(){f(k)}),useAttachEvent(k,"ready",i),useAttachEvent(k,"change","cart"===e?function(e){R(e),p&&p(e)}:p),useAttachEvent(k,"checkout","cart"===e?function(e){R(e),b&&b(e)}:b),t.useLayoutEffect(function(){if(null===T.current&&C&&null!==O.current){var t=C.create(e,l);"cart"===e&&I&&I(t),T.current=t,P(t),t.mount(O.current)}},[C,l,I]);var M=usePrevious(l);return t.useEffect(function(){if(T.current){var e=extractAllowedOptionsUpdates(l,M,["paymentRequest"]);e&&T.current.update(e)}},[l,M]),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},l="undefined"==typeof window,u=createElementComponent("auBankAccount",l),d=createElementComponent("card",l),f=createElementComponent("cardNumber",l),p=createElementComponent("cardExpiry",l),h=createElementComponent("cardCvc",l),v=createElementComponent("fpxBank",l),m=createElementComponent("iban",l),y=createElementComponent("idealBank",l),g=createElementComponent("p24Bank",l),b=createElementComponent("epsBank",l),w=createElementComponent("payment",l),E=createElementComponent("payButton",l),S=createElementComponent("paymentRequestButton",l),x=createElementComponent("linkAuthentication",l),A=createElementComponent("address",l),C=createElementComponent("shippingAddress",l),_=createElementComponent("cart",l),k=createElementComponent("paymentMethodMessaging",l),P=createElementComponent("affirmMessage",l),T=createElementComponent("afterpayClearpayMessage",l);e.AddressElement=A,e.AffirmMessageElement=P,e.AfterpayClearpayMessageElement=T,e.AuBankAccountElement=u,e.CardCvcElement=h,e.CardElement=d,e.CardExpiryElement=p,e.CardNumberElement=f,e.CartElement=_,e.Elements=Elements,e.ElementsConsumer=ElementsConsumer,e.EpsBankElement=b,e.FpxBankElement=v,e.IbanElement=m,e.IdealBankElement=y,e.LinkAuthenticationElement=x,e.P24BankElement=g,e.PayButtonElement=E,e.PaymentElement=w,e.PaymentMethodMessagingElement=k,e.PaymentRequestButtonElement=S,e.ShippingAddressElement=C,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),l=(0,r.useRef)([]),u=(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)(u,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?l.current.push(r):i.send(r)}});return(0,i.Z)(function(){for(n.current=e;l.current.length>0;){var t=l.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),l=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},u=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,m,y,g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];var w=useMachine_read(g,1)[0],E=void 0===w?{}:w,S=(t=(0,l.Z)(function(){return"function"==typeof e?e():e}),n=E.context,d=E.guards,f=E.actions,p=E.activities,h=E.services,v=E.delays,E.state,m=__rest(E,["context","guards","actions","activities","services","delays","state"]),y=(0,l.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,m)}),(0,c.Z)(function(){Object.assign(y.machine.options.actions,f),Object.assign(y.machine.options.guards,d),Object.assign(y.machine.options.activities,p),Object.assign(y.machine.options.services,h),Object.assign(y.machine.options.delays,v)},[f,d,p,h,v]),y),x=(0,r.useCallback)(function(){return S.status===o.TM.NotStarted?E.state?s.ZM.create(E.state):S.machine.initialState:S.getSnapshot()},[S]),A=(0,r.useCallback)(function(e,t){return(0,u.AM)(S,e,t)},[S]),C=(0,r.useCallback)(function(e){return S.subscribe(e).unsubscribe},[S]),_=(0,i.useSyncExternalStoreWithSelector)(C,x,x,identity,A);return(0,r.useEffect)(function(){var e=E.state;return S.start(e?s.ZM.create(e):void 0),function(){S.stop(),S.status=o.TM.NotStarted}},[]),[_,S.send,S]}},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]),l=(0,r.useCallback)(function(){return o?o(e):defaultGetSnapshot(e,s)},[e,o]);return(0,i.useSyncExternalStoreWithSelector)(c,l,l,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,l=e.mirrored,u=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,m=p.size,y=p.weight,g=void 0===y?"regular":y,b=p.mirrored,w=_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:m,height:null!=s?s:m,fill:null!=o?o:v,viewBox:"0 0 256 256",transform:l||void 0!==b&&b?"scale(-1, 1)":void 0},w,f),!!n&&r.createElement("title",null,n),u,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"]),l=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:l,width:l,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,l=r.useEffect,u=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=u(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 l=r(t);return void 0!==i&&i(n,l)?n:(e=t,s=l)}var e,s,c=!1,l=void 0===n?null:n;return[function(){return a(t())},null===l?void 0:function(){return a(l())}]},[t,n,r,i]))[0],f[1]);return l(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],l=e.data?(0,i.QX)(e.data,n,r):void 0,u=c?createDeferredActor(c,e.id,l):createNullActor(e.id);return u.meta=e,u}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),l=n(49333),u=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:u.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,l.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,l=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)({},l),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,l=mutateEntryExit(c,n);return(0,i.qo)(s).map(function(e){return(0,r.pi)((0,r.pi)({},e),{event:l,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 l=Object.keys(s),u=[this];return u.push.apply(u,(0,r.ev)([],(0,r.CR)((0,i.xH)(l.map(function(e){return n.getStateNode(e).getStateNodes(s[e])}))),!1)),u},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 l=(0,r.XA)(Object.keys(e)),u=l.next();!u.done;u=l.next()){var d=u.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{u&&!u.done&&(s=l.return)&&s.call(l)}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 m=(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:m,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,l=t.name,u=[],d=[];try{for(var f=(0,r.XA)(this.getCandidates(l)),p=f.next();!p.done;p=f.next()){var h=p.value,v=h.cond,m=h.in,y=e.context,g=!m||((0,i.HD)(m)&&isStateId(m)?e.matches((0,i.WM)(this.getStateNodeById(m).path,this.delimiter)):(0,i.W)((0,i.WM)(m,this.delimiter),(0,i.ET)(this.path.slice(0,-2))(e.value))),b=!1;try{b=!v||(0,i.vx)(this.machine,v,y,t,e)}catch(e){throw Error("Unable to evaluate guard '".concat(v.name||v.type,"' in transition for event '").concat(l,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(b&&g){void 0!==h.target&&(d=h.target),u.push.apply(u,(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:u};var w=(0,i.xH)(d.map(function(t){return c.getRelativeStateNodes(t,e.historyValue)})),E=!!s.internal;return{transitions:[s],exitSet:E?[]:(0,i.xH)(d.map(function(e){return c.getPotentiallyReenteringNodes(e)})),configuration:w,source:e,actions:u}}},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,l,u){var f,p,h,v,m=this,y=l?(0,d.P_)([],this.getStateNodes(l.value)):[],g=new Set;try{for(var b=(0,r.XA)(Array.from(e).sort(function(e,t){return e.order-t.order})),w=b.next();!w.done;w=b.next()){var E=w.value;(!(0,d.e$)(y,E)||(0,d.e$)(n.exitSet,E)||E.parent&&g.has(E.parent))&&g.add(E)}}catch(e){f={error:e}}finally{try{w&&!w.done&&(p=b.return)&&p.call(b)}finally{if(f)throw f.error}}try{for(var S=(0,r.XA)(y),x=S.next();!x.done;x=S.next()){var E=x.value;(!(0,d.e$)(e,E)||(0,d.e$)(n.exitSet,E.parent))&&n.exitSet.push(E)}}catch(e){h={error:e}}finally{try{x&&!x.done&&(v=S.return)&&v.call(S)}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}),C=new Set(n.exitSet),_=(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 l=r.parent;return"parallel"===l.type&&(0,d.G)(l).every(function(e){return(0,d.Ij)(n.configuration,e)})&&t.push((0,c.aT)(l.id)),t})),k=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)(u?(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),m.machine.options.actions)}}).concat({type:"state_done",actions:_.map(function(e){return(0,c.OU)(e)})}),P=Array.from(C).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),m.machine.options.actions)}}).concat({type:"transition",actions:(0,c.AE)(n.actions,this.machine.options.actions)}).concat(k);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,u=(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(!l.M&&"*"===u.name)throw Error("An event cannot have the wildcard type ('".concat("*","')"));if(this.strict&&!this.events.includes(u.name)&&!(0,i.JQ)(u.name))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(u.name,"'"));var h=this._transition(c.value,c,u)||{transitions:[],configuration:[],exitSet:[],source:c,actions:[]},v=(0,d.P_)([],this.getStateNodes(c.value)),m=h.configuration.length?(0,d.P_)(v,h.configuration):v;return h.configuration=(0,r.ev)([],(0,r.CR)(m),!1),this.resolveTransition(h,c,c.context,s,u)},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,l,u){var p,h,v,m,y=this;void 0===u&&(u=c.bf);var g=e.configuration,b=!t||e.transitions.length>0,w=b?e.configuration:t?t.configuration:[],E=(0,d.Ij)(w,this),S=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(w),E,e,n,u,t,l),C=t?(0,r.pi)({},t.activities):{};try{for(var _=(0,r.XA)(A),k=_.next();!k.done;k=_.next()){var P=k.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?C[N.activity.id||N.activity.type]=N:N.type===s.sT&&(C[N.activity.id||N.activity.type]=!1)}}catch(e){v={error:e}}finally{try{O&&!O.done&&(m=T.return)&&m.call(T)}finally{if(v)throw v.error}}}}catch(e){p={error:e}}finally{try{k&&!k.done&&(h=_.return)&&h.call(_)}finally{if(p)throw p.error}}var I=(0,r.CR)((0,c.yC)(this,t,n,u,A,l,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),R=I[0],M=I[1],L=(0,r.CR)((0,i.uK)(R,i.vK),2),j=L[0],$=L[1],D=R.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,y.machine,M,u),e},t?(0,r.pi)({},t.children):{}),W=new o.ZM({value:S||t.value,context:M,_event:u,_sessionid:t?t._sessionid:null,historyValue:S?x?(0,i.yv)(x,S):void 0:t?t.historyValue:void 0,history:!S||e.source?t:void 0,actions:S?$:[],activities:S?C:t?t.activities:{},events:[],configuration:w,transitions:e.transitions,children:D,done:E,tags:(0,d.Oe)(w),machine:this}),V=n!==M;W.changed=u.name===s.Vx||V;var F=W.history;F&&delete F.history;var U=!E&&(this._transient||g.some(function(e){return e._transient}));if(!b&&(!U||""===u.name))return W;var B=W;if(!E)for(U&&(B=this.resolveRaisedTransition(B,{type:s.IA},u,l));j.length;){var Z=j.shift();B=this.resolveRaisedTransition(B,Z._event,u,l)}var z=B.changed||(F?!!B.actions.length||V||typeof F.value!=typeof B.value||!(0,o.j_)(B.value,F.value):void 0);return B.changed=z,B.history=F,B},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 l.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)),l=c.next();!l.done;l=c.next()){var u=o[l.value];if(u.states)try{for(var d=(n=void 0,(0,r.XA)(u.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{l&&!l.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,l=this.resolveTarget(n),u=(0,r.pi)((0,r.pi)({},e),{actions:(0,c.AE)((0,i.qo)(e.actions)),cond:(0,i.Qi)(e.cond,s),target:l,source:this,internal:o,eventType:e.event,toJSON:function(){return(0,r.pi)((0,r.pi)({},u),{target:u.target?u.target.map(function(e){return"#".concat(e.id)}):void 0,source:"#".concat(t.id)})}});return u},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,u=s["*"],d=void 0===u?[]:u,f=(0,r._T)(s,["*"]);n=(0,i.xH)(Object.keys(f).map(function(e){l.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 l.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):[];l.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})),m=this.after,y=(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)(m),b=g.next();!b.done;b=g.next()){var w=b.value;y.push(w)}}catch(t){e={error:t}}finally{try{b&&!b.done&&(t=g.return)&&t.call(g)}finally{if(e)throw e.error}}return y},StateNode}(),v=!1;function createMachine(e,t){return l.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 u},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),l=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 u=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){l.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 u},Le:function(){return b},Mg:function(){return v},OU:function(){return s},RN:function(){return g},S1:function(){return p},Vx:function(){return y},al:function(){return l},cM:function(){return f},dw:function(){return h},f0:function(){return d},lW:function(){return c},sT:function(){return o},vU:function(){return m}});var r=n(3763),i=r.M.Start,o=r.M.Stop,s=r.M.Raise,c=r.M.Send,l=r.M.Cancel,u=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,m=r.M.ErrorCustom,y=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 l},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,l,u,d,f){void 0===f&&(f=!1);var p=f?[]:pluckAssigns(u),h=p.length?(0,s.dt)(n,l,p,t):n,v=f?[n]:void 0,m=[];return[(0,s.xH)(u.map(function(u){var p,y,g=[];try{for(var b=(0,r.XA)(u.actions),w=b.next();!w.done;w=b.next()){var E=w.value,S=function(u,p){var y;switch(p.type){case o.OU:var g=function(e,t,n,i){var c,l={_event:n},u=(0,s.g5)((0,s.mf)(e.event)?e.event(t,n.data,l):e.event);if((0,s.HD)(e.delay)){var d=i&&i[e.delay];c=(0,s.mf)(d)?d(t,n.data,l):d}else c=(0,s.mf)(e.delay)?e.delay(t,n.data,l):e.delay;return(0,r.pi)((0,r.pi)({},e),{type:o.OU,_event:u,delay:c})}(p,h,l,e.options.delays);return d&&"number"==typeof g.delay&&d(g,h,l),g;case o.lW:var b=function(e,t,n,i){var o,c={_event:n},l=(0,s.g5)((0,s.mf)(e.event)?e.event(t,n.data,c):e.event);if((0,s.HD)(e.delay)){var u=i&&i[e.delay];o=(0,s.mf)(u)?u(t,n.data,c):u}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:l,event:l.data,delay:o})}(p,h,l,e.options.delays);if(!c.M){var w=p.delay;(0,s.ZK)(!(0,s.HD)(w)||"number"==typeof b.delay,"No delay reference for delay expression '".concat(w,"' was found on machine '").concat(e.id,"'"))}return d&&b.to!==i.K.Internal&&("entry"===u?m.push(b):d(b,h,l)),b;case o.cM:var E,S=(E=h,(0,r.pi)((0,r.pi)({},p),{value:(0,s.HD)(p.expr)?p.expr:p.expr(E,l.data,{_event:l})}));return null==d||d(S,h,l),S;case o.RN:var x=null===(y=p.conds.find(function(n){var r=(0,s.Qi)(n.cond,e.options.guards);return!r||(0,s.vx)(e,r,h,l,d?void 0:t)}))||void 0===y?void 0:y.actions;if(!x)return[];var A=(0,r.CR)(resolveActions(e,t,h,l,[{type:u,actions:toActionObjects((0,s.qo)(x),e.options.actions)}],d,f),2),C=A[0];return h=A[1],null==v||v.push(h),C;case o.Le:var x=p.get(h,l.data);if(!x)return[];var _=(0,r.CR)(resolveActions(e,t,h,l,[{type:u,actions:toActionObjects((0,s.qo)(x),e.options.actions)}],d,f),2),k=_[0];return h=_[1],null==v||v.push(h),k;case o.sT:var P,T,S=(P=h,T=(0,s.mf)(p.activity)?p.activity(P,l.data):p.activity,{type:i.M.Stop,activity:"string"==typeof T?{id:T}:T});return null==d||d(S,n,l),S;case o.f0:h=(0,s.dt)(h,l,[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,l);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}}(u.type,E);S&&(g=g.concat(S))}}catch(e){p={error:e}}finally{try{w&&!w.done&&(y=b.return)&&y.call(b)}finally{if(p)throw p.error}}return m.forEach(function(e){d(e,h,l)}),m.length=0,g})),h]}}});var r=n(70572),i=n(3763),o=n(20449),s=n(70049),c=n(49333),l=(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});
22else 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 l=c.value,u=0;u<l.actions.length;){if(l.actions[u].type===o.f0){i.push(l.actions[u]),l.actions.splice(u,1);continue}u++}}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),l=n(20449),u=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),m=new Map,y=0,g={bookId:function(){return"x:".concat(y++)},register:function(e,t){return m.set(e,t),e},get:function(e){return m.get(e)},free:function(e){m.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),w={sync:!1,autoForward:!1};(r=i||(i={}))[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped";var E=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===l.vU?"".concat((0,u.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,u.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 l.OU:n.defer(e);break;case l.lW:if("number"==typeof e.delay){n.defer(e);return}e.to?n.sendTo(e._event,e.to,r===u.bf):n.send(e._event);break;case l.al:n.cancel(e.sendId);break;case l.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),m=n.machine.options.services?n.machine.options.services[v.type]:void 0,y=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(!m){d.M||(0,f.ZK)(!1,"No service found for invocation '".concat(h.src,"' in machine '").concat(n.machine.id,"'."));return}var w=g?(0,f.QX)(g,t,r):void 0;if("string"==typeof m)return;var E=(0,f.mf)(m)?m(t,r.data,{data:w,src:v,meta:h.meta}):m;if(!E)return;var S=void 0;(0,f.O4)(E)&&(E=w?E.withContext(w):E,S={autoForward:b}),n.spawn(E,y,S)}else n.spawnActivity(h);break;case l.sT:n.stopChild(e.activity.id);break;case l.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,m=r.id,y=void 0!==m?m:e.id;this.id=y,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,l,d,p,h=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||t===u.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 m=(0,o.XA)(this.eventListeners),y=m.next();!y.done;y=m.next()){var b=y.value;b(e.event)}}catch(e){n={error:e}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}try{for(var w=(0,o.XA)(this.listeners),E=w.next();!E.done;E=w.next()){var b=E.value;b(e,e.event)}}catch(e){i={error:e}}finally{try{E&&!E.done&&(s=w.return)&&s.call(w)}finally{if(i)throw i.error}}try{for(var S=(0,o.XA)(this.contextListeners),x=S.next();!x.done;x=S.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&&(l=S.return)&&l.call(S)}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}),C=A&&A.doneData?(0,f.QX)(A.doneData,e.context,t):void 0;this._doneEvent=(0,u.Sl)(this.id,C);try{for(var _=(0,o.XA)(this.doneListeners),k=_.next();!k.done;k=_.next()){var b=k.value;b(this._doneEvent)}}catch(e){d={error:e}}finally{try{k&&!k.done&&(p=_.return)&&p.call(_)}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,u.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,l,u,d,f;try{for(var p=(0,o.XA)(this.listeners),v=p.next();!v.done;v=p.next()){var m=v.value;this.listeners.delete(m)}}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 y=(0,o.XA)(this.stopListeners),g=y.next();!g.done;g=y.next()){var m=g.value;m(),this.stopListeners.delete(m)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}try{for(var b=(0,o.XA)(this.contextListeners),w=b.next();!w.done;w=b.next()){var m=w.value;this.contextListeners.delete(m)}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}try{for(var E=(0,o.XA)(this.doneListeners),S=E.next();!S.done;S=E.next()){var m=S.value;this.doneListeners.delete(m)}}catch(e){l={error:e}}finally{try{S&&!S.done&&(u=E.return)&&u.call(E)}finally{if(l)throw l.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 C=A.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}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,u.AE)(t.onExit,e.machine.options.actions)})),r=(0,o.CR)((0,u.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],l=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 l.changed=!0,l});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,l=!1,u=[];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)}),u.push.apply(u,(0,o.ev)([],(0,o.CR)(t.machine.config.predictableActionArguments?s.actions:s.actions.map(function(e){return(0,c.j1)(e,s)})),!1)),l=l||!!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=l,s.actions=u,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(l.Mg)&&!this.state.nextEvents.some(function(e){return 0===e.indexOf(l.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)({},w),t);return i.sync&&r.onTransition(function(e){n.send(l.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,l,u,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,u),i.forEach(function(e){return e.next(r)})}s=!1}},l=(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)}}}}),u={parent:n.parent,self:l,id:n.id||"anonymous",observers:i},r=e.start?e.start(u):r,l);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,u.Sl)(t,e),{origin:t})))},function(e){if(!o){i.removeChild(t);var n=(0,u.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,l=new Set;try{i=e(function(e){r=e,l.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,u.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 l.add(t.next),{unsubscribe:function(){l.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,u.vU)(t,e),{origin:t}))},function(){i.removeChild(t),i.send((0,f.g5)((0,u.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 E(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,l,u,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 m=v.value,y=m.parent;y&&!p.has(y);)p.add(y),y=y.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),w=b.next();!w.done;w=b.next()){var m=w.value;if("compound"!==m.type||g.get(m)&&g.get(m).length){if("parallel"===m.type)try{for(var E=(c=void 0,(0,r.XA)(getChildren(m))),S=E.next();!S.done;S=E.next()){var x=S.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{S&&!S.done&&(l=E.return)&&l.call(E)}finally{if(c)throw c.error}}}else f.get(m)?f.get(m).forEach(function(e){return p.add(e)}):m.initialStateNodes.forEach(function(e){return p.add(e)})}}catch(e){o={error:e}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}try{for(var A=(0,r.XA)(p),C=A.next();!C.done;C=A.next())for(var m=C.value,y=m.parent;y&&!p.has(y);)p.add(y),y=y.parent}catch(e){u={error:e}}finally{try{C&&!C.done&&(d=A.return)&&d.call(A)}finally{if(u)throw u.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 u},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),l=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)),l=c.next();!l.done;l=c.next()){var u=l.value,d=e[u];n(d)&&(s[u]=t(d,u,e))}}catch(e){r={error:e}}finally{try{l&&!l.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),l=c.next();!l.done;l=c.next()){var u=l.value;s=s[t][u]}}catch(e){r={error:e}}finally{try{l&&!l.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)),l=c.next();!l.done;l=c.next()){var u=l.value,d=e[u];isFunction(d)?s[u]=d(t,n.data):s[u]=d}}catch(e){r={error:e}}finally{try{l&&!l.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 l=(0,i.XA)(e),u=l.next();!u.done;u=l.next()){var d=u.value;t(d)?s.push(d):c.push(d)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}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 l.M||warn(!!e,"Attempting to update undefined context"),e?n.reduce(function(e,n){var o,s,c=n.assignment,l={state:r,action:n,_event:t},u={};if(isFunction(c))u=c(e,t.data,l);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];u[p]=isFunction(h)?h(e,t.data,l):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,u)},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}}l.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 u="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(!l.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 l=null==o?void 0:o[t.type];if(!l)throw Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(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={})[u]=function(){return this},r[Symbol.observable]=function(){return this}},1352:function(e,t,n){"use strict";let r;n.d(t,{I0:function(){return y},XB:function(){return h},fC:function(){return m}});var i=n(7896),o=n(2784),s=n(17998),c=n(72714),l=n(62656),u=n(27757),d=n(86796);let f="dismissableLayer.update",p=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=(0,o.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:g,onDismiss:b,...w}=e,E=(0,o.useContext)(p),[S,x]=(0,o.useState)(null),A=null!==(n=null==S?void 0:S.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,C]=(0,o.useState)({}),_=(0,l.e)(t,e=>x(e)),k=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),T=k.indexOf(P),O=S?k.indexOf(S):-1,N=E.layersWithOutsidePointerEventsDisabled.size>0,I=O>=T,R=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,u.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=[...E.branches].some(e=>e.contains(t));!I||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==b||b())},A),M=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,u.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=[...E.branches].some(e=>e.contains(t));n||(null==y||y(e),null==g||g(e),e.defaultPrevented||null==b||b())},A);return(0,d.e)(e=>{let t=O===E.layers.size-1;t&&(null==v||v(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},A),(0,o.useEffect)(()=>{if(S)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(S)),E.layers.add(S),$5cb92bef7577960e$var$dispatchUpdate(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=r)}},[S,A,h,E]),(0,o.useEffect)(()=>()=>{S&&(E.layers.delete(S),E.layersWithOutsidePointerEventsDisabled.delete(S),$5cb92bef7577960e$var$dispatchUpdate())},[S,E]),(0,o.useEffect)(()=>{let handleUpdate=()=>C({});return document.addEventListener(f,handleUpdate),()=>document.removeEventListener(f,handleUpdate)},[]),(0,o.createElement)(c.WV.div,(0,i.Z)({},w,{ref:_,style:{pointerEvents:N?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.M)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,s.M)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,s.M)(e.onPointerDownCapture,R.onPointerDownCapture)}))}),v=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(p),r=(0,o.useRef)(null),s=(0,l.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)(c.WV.div,(0,i.Z)({},e,{ref:s}))});function $5cb92bef7577960e$var$dispatchUpdate(){let e=new CustomEvent(f);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,c.jH)(i,o):i.dispatchEvent(o)}let m=h,y=v},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},78773:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var r=n(7896),i=n(2784),o=n(28316),s=n(72714);let c=(0,i.forwardRef)((e,t)=>{var n;
22let{container:c=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return c?o.createPortal((0,i.createElement)(s.WV.div,(0,r.Z)({},l,{ref:t})),c):null})},40259:function(e,t,n){"use strict";let r;n.d(t,{VY:function(){return eU},ZA:function(){return eZ},JO:function(){return eF},ck:function(){return eH},wU:function(){return eX},eT:function(){return eK},__:function(){return ez},h_:function(){return $cc7e05a45900e73f$export$602eac185826482c},fC:function(){return $cc7e05a45900e73f$export$be92b6f5f03c0fe9},$G:function(){return eG},u_:function(){return eq},Z0:function(){return eJ},xz:function(){return eW},B4:function(){return eV},l_:function(){return eB}});var i=n(7896),o=n(2784),s=n(28316),c=n(80106),l=n(17998),u=n(62172),d=n(62656),f=n(92211),p=n(59241),h=n(1352),v=n(11861),m=n(72714),y=n(27757);let g="focusScope.autoFocusOnMount",b="focusScope.autoFocusOnUnmount",w={bubbles:!1,cancelable:!0},E=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...l}=e,[u,f]=(0,o.useState)(null),p=(0,y.W)(s),h=(0,y.W)(c),v=(0,o.useRef)(null),E=(0,d.e)(t,e=>f(e)),x=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function handleFocusIn(e){if(x.paused||!u)return;let t=e.target;u.contains(t)?v.current=t:$d3863c46a17e8a28$var$focus(v.current,{select:!0})}function handleFocusOut(e){if(x.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||$d3863c46a17e8a28$var$focus(v.current,{select:!0})}document.addEventListener("focusin",handleFocusIn),document.addEventListener("focusout",handleFocusOut);let e=new MutationObserver(function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&$d3863c46a17e8a28$var$focus(u)});return u&&e.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",handleFocusIn),document.removeEventListener("focusout",handleFocusOut),e.disconnect()}}},[r,u,x.paused]),(0,o.useEffect)(()=>{if(u){S.add(x);let e=document.activeElement,t=u.contains(e);if(!t){let t=new CustomEvent(g,w);u.addEventListener(g,p),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if($d3863c46a17e8a28$var$focus(r,{select:t}),document.activeElement!==n)return}($d3863c46a17e8a28$var$getTabbableCandidates(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&$d3863c46a17e8a28$var$focus(u))}return()=>{u.removeEventListener(g,p),setTimeout(()=>{let t=new CustomEvent(b,w);u.addEventListener(b,h),u.dispatchEvent(t),t.defaultPrevented||$d3863c46a17e8a28$var$focus(null!=e?e:document.body,{select:!0}),u.removeEventListener(b,h),S.remove(x)},0)}}},[u,p,h,x]);let A=(0,o.useCallback)(e=>{if(!n&&!r||x.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=$d3863c46a17e8a28$var$getTabbableCandidates(e),n=$d3863c46a17e8a28$var$findVisible(t,e),r=$d3863c46a17e8a28$var$findVisible(t.reverse(),e);return[n,r]}(t),s=r&&o;s?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&$d3863c46a17e8a28$var$focus(o,{select:!0})):(e.preventDefault(),n&&$d3863c46a17e8a28$var$focus(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,x.paused]);return(0,o.createElement)(m.WV.div,(0,i.Z)({tabIndex:-1},l,{ref:E,onKeyDown:A}))});function $d3863c46a17e8a28$var$getTabbableCandidates(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}function $d3863c46a17e8a28$var$findVisible(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function $d3863c46a17e8a28$var$focus(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let S=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=$d3863c46a17e8a28$var$arrayRemove(r,e)).unshift(e)},remove(e){var t;null===(t=(r=$d3863c46a17e8a28$var$arrayRemove(r,e))[0])||void 0===t||t.resume()}});function $d3863c46a17e8a28$var$arrayRemove(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var x=n(23372),A=n(20189),C=n(40771);let floating_ui_react_dom_esm_arrow=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return(0,A.x7)({element:n.current,padding:r}).fn(t)}else if(n)return(0,A.x7)({element:n,padding:r}).fn(t);return{}}});var _="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function deepEqual(e,t){let n,r,i;if(e===t)return!0;
22if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!deepEqual(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!deepEqual(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function getDPR(e){if("undefined"==typeof window)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function roundByDPR(e,t){let n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){let t=o.useRef(e);return _(()=>{t.current=e}),t}var k=n(84389),P=n(61644),T=n(35019);let O="Popper",[N,I]=(0,f.b)(O),[R,M]=N(O),L=(0,o.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...s}=e,c=M("PopperAnchor",n),l=(0,o.useRef)(null),u=(0,d.e)(t,l);return(0,o.useEffect)(()=>{c.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,o.createElement)(m.WV.div,(0,i.Z)({},s,{ref:u}))}),j="PopperContent",[$,D]=N(j),W=(0,o.forwardRef)((e,t)=>{var n,r,c,l,u,f,p,h;let{__scopePopper:v,side:g="bottom",sideOffset:b=0,align:w="center",alignOffset:E=0,arrowPadding:S=0,avoidCollisions:x=!0,collisionBoundary:k=[],collisionPadding:O=0,sticky:N="partial",hideWhenDetached:I=!1,updatePositionStrategy:R="optimized",onPlaced:L,...D}=e,W=M(j,v),[V,F]=(0,o.useState)(null),U=(0,d.e)(t,e=>F(e)),[B,Z]=(0,o.useState)(null),z=(0,T.t)(B),H=null!==(n=null==z?void 0:z.width)&&void 0!==n?n:0,K=null!==(r=null==z?void 0:z.height)&&void 0!==r?r:0,X="number"==typeof O?O:{top:0,right:0,bottom:0,left:0,...O},q=Array.isArray(k)?k:[k],G=q.length>0,J={padding:X,boundary:q.filter($cf1ac5d9fe0e8206$var$isNotNull),altBoundary:G},{refs:Q,floatingStyles:Y,placement:ee,isPositioned:et,middlewareData:en}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:c,floating:l}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[p,h]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=o.useState(r);deepEqual(v,r)||m(r);let[y,g]=o.useState(null),[b,w]=o.useState(null),E=o.useCallback(e=>{e!=k.current&&(k.current=e,g(e))},[g]),S=o.useCallback(e=>{e!==P.current&&(P.current=e,w(e))},[w]),x=c||y,A=l||b,k=o.useRef(null),P=o.useRef(null),T=o.useRef(p),O=useLatestRef(d),N=useLatestRef(i),I=o.useCallback(()=>{if(!k.current||!P.current)return;let e={placement:t,strategy:n,middleware:v};N.current&&(e.platform=N.current),(0,C.oo)(k.current,P.current,e).then(e=>{let t={...e,isPositioned:!0};R.current&&!deepEqual(T.current,t)&&(T.current=t,s.flushSync(()=>{h(t)}))})},[v,t,n,N]);_(()=>{!1===f&&T.current.isPositioned&&(T.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[f]);let R=o.useRef(!1);_(()=>(R.current=!0,()=>{R.current=!1}),[]),_(()=>{if(x&&(k.current=x),A&&(P.current=A),x&&A){if(O.current)return O.current(x,A,I);I()}},[x,A,I,O]);let M=o.useMemo(()=>({reference:k,floating:P,setReference:E,setFloating:S}),[E,S]),L=o.useMemo(()=>({reference:x,floating:A}),[x,A]),j=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=roundByDPR(L.floating,p.x),r=roundByDPR(L.floating,p.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...getDPR(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,L.floating,p.x,p.y]);return o.useMemo(()=>({...p,update:I,refs:M,elements:L,floatingStyles:j}),[p,I,M,L,j])}({strategy:"fixed",placement:g+("center"!==w?"-"+w:""),whileElementsMounted:(...e)=>{let t=(0,C.Me)(...e,{animationFrame:"always"===R});return t},elements:{reference:W.anchor},middleware:[(0,A.cv)({mainAxis:b+K,alignmentAxis:E}),x&&(0,A.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===N?(0,A.dr)():void 0,...J}),x&&(0,A.RR)({...J}),(0,A.dp)({...J,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),B&&floating_ui_react_dom_esm_arrow({element:B,padding:S}),$cf1ac5d9fe0e8206$var$transformOrigin({arrowWidth:H,arrowHeight:K}),I&&(0,A.Cp)({strategy:"referenceHidden",...J})]}),[er,ei]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(ee),eo=(0,y.W)(L);(0,P.b)(()=>{et&&(null==eo||eo())},[et,eo]);let ea=null===(c=en.arrow)||void 0===c?void 0:c.x,es=null===(l=en.arrow)||void 0===l?void 0:l.y,ec=(null===(u=en.arrow)||void 0===u?void 0:u.centerOffset)!==0,[el,eu]=(0,o.useState)();return(0,P.b)(()=>{V&&eu(window.getComputedStyle(V).zIndex)},[V]),(0,o.createElement)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:et?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:el,"--radix-popper-transform-origin":[null===(f=en.transformOrigin)||void 0===f?void 0:f.x,null===(p=en.transformOrigin)||void 0===p?void 0:p.y].join(" ")},dir:e.dir},(0,o.createElement)($,{scope:v,placedSide:er,onArrowChange:Z,arrowX:ea,arrowY:es,shouldHideArrow:ec},(0,o.createElement)(m.WV.div,(0,i.Z)({"data-side":er,"data-align":ei},D,{ref:U,style:{...D.style,animation:et?void 0:"none",opacity:null!==(h=en.hide)&&void 0!==h&&h.referenceHidden?0:void 0}}))))}
22),V={top:"bottom",right:"left",bottom:"top",left:"right"};function $cf1ac5d9fe0e8206$var$isNotNull(e){return null!==e}let $cf1ac5d9fe0e8206$var$transformOrigin=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;let{placement:c,rects:l,middlewareData:u}=t,d=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[h,v]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(c),m={start:"0%",center:"50%",end:"100%"}[v],y=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+f/2,g=(null!==(o=null===(s=u.arrow)||void 0===s?void 0:s.y)&&void 0!==o?o:0)+p/2,b="",w="";return"bottom"===h?(b=d?m:`${y}px`,w=`${-p}px`):"top"===h?(b=d?m:`${y}px`,w=`${l.floating.height+p}px`):"right"===h?(b=`${-p}px`,w=d?m:`${g}px`):"left"===h&&(b=`${l.floating.width+p}px`,w=d?m:`${g}px`),{data:{x:b,y:w}}}});function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(e){let[t,n="center"]=e.split("-");return[t,n]}let $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,o.useState)(null);return(0,o.createElement)(R,{scope:t,anchor:r,onAnchorChange:i},n)};var F=n(78773),U=n(49815),B=n(87695),Z=n(90022),z=n(89785),H=n(49732),K=n(91869);let X=[" ","Enter","ArrowUp","ArrowDown"],q=[" ","Enter"],G="Select",[J,Q,Y]=(0,u.B)(G),[ee,et]=(0,f.b)(G,[Y,I]),en=I(),[er,ei]=ee(G),[eo,ea]=ee(G),es=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...s}=e,c=en(n),u=ei("SelectTrigger",n),f=u.disabled||r,p=(0,d.e)(t,u.onTriggerChange),h=Q(n),[v,y,g]=$cc7e05a45900e73f$var$useTypeaheadSearch(e=>{let t=h().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=$cc7e05a45900e73f$var$findNextItem(t,e,n);void 0!==r&&u.onValueChange(r.value)}),handleOpen=()=>{f||(u.onOpenChange(!0),g())};return(0,o.createElement)(L,(0,i.Z)({asChild:!0},c),(0,o.createElement)(m.WV.button,(0,i.Z)({type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":$cc7e05a45900e73f$var$shouldShowPlaceholder(u.value)?"":void 0},s,{ref:p,onClick:(0,l.M)(s.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,l.M)(s.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(handleOpen(),u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,l.M)(s.onKeyDown,e=>{let t=""!==v.current,n=e.ctrlKey||e.altKey||e.metaKey;n||1!==e.key.length||y(e.key),(!t||" "!==e.key)&&X.includes(e.key)&&(handleOpen(),e.preventDefault())})})))}),ec=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,className:r,style:s,children:c,placeholder:l="",...u}=e,f=ei("SelectValue",n),{onValueNodeHasChildrenChange:p}=f,h=void 0!==c,v=(0,d.e)(t,f.onValueNodeChange);return(0,P.b)(()=>{p(h)},[p,h]),(0,o.createElement)(m.WV.span,(0,i.Z)({},u,{ref:v,style:{pointerEvents:"none"}}),$cc7e05a45900e73f$var$shouldShowPlaceholder(f.value)?(0,o.createElement)(o.Fragment,null,l):c)}),el=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,children:r,...s}=e;return(0,o.createElement)(m.WV.span,(0,i.Z)({"aria-hidden":!0},s,{ref:t}),r||"▼")}),eu="SelectContent",ed=(0,o.forwardRef)((e,t)=>{let n=ei(eu,e.__scopeSelect),[r,c]=(0,o.useState)();return((0,P.b)(()=>{c(new DocumentFragment)},[]),n.open)?(0,o.createElement)(eh,(0,i.Z)({},e,{ref:t})):r?(0,s.createPortal)((0,o.createElement)(ef,{scope:e.__scopeSelect},(0,o.createElement)(J.Slot,{scope:e.__scopeSelect},(0,o.createElement)("div",null,e.children))),r):null}),[ef,ep]=ee(eu),eh=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:u,side:f,sideOffset:p,align:m,alignOffset:y,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:x,avoidCollisions:A,...C}=e,_=ei(eu,n),[k,P]=(0,o.useState)(null),[T,O]=(0,o.useState)(null),N=(0,d.e)(t,e=>P(e)),[I,R]=(0,o.useState)(null),[M,L]=(0,o.useState)(null),j=Q(n),[$,D]=(0,o.useState)(!1),W=(0,o.useRef)(!1);(0,o.useEffect)(()=>
22{if(k)return(0,H.Ry)(k)},[k]),(0,v.EW)();let V=(0,o.useCallback)(e=>{let[t,...n]=j().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),null==n||n.focus(),document.activeElement!==i))return},[j,T]),F=(0,o.useCallback)(()=>V([I,k]),[V,I,k]);(0,o.useEffect)(()=>{$&&F()},[$,F]);let{onOpenChange:B,triggerPointerDownPosRef:Z}=_;(0,o.useEffect)(()=>{if(k){let e={x:0,y:0},handlePointerMove=t=>{var n,r,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=Z.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(o=Z.current)||void 0===o?void 0:o.y)&&void 0!==i?i:0))}},handlePointerUp=t=>{e.x<=10&&e.y<=10?t.preventDefault():k.contains(t.target)||B(!1),document.removeEventListener("pointermove",handlePointerMove),Z.current=null};return null!==Z.current&&(document.addEventListener("pointermove",handlePointerMove),document.addEventListener("pointerup",handlePointerUp,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",handlePointerMove),document.removeEventListener("pointerup",handlePointerUp,{capture:!0})}}},[k,B,Z]),(0,o.useEffect)(()=>{let close=()=>B(!1);return window.addEventListener("blur",close),window.addEventListener("resize",close),()=>{window.removeEventListener("blur",close),window.removeEventListener("resize",close)}},[B]);let[z,X]=$cc7e05a45900e73f$var$useTypeaheadSearch(e=>{let t=j().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=$cc7e05a45900e73f$var$findNextItem(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),q=(0,o.useCallback)((e,t,n)=>{let r=!W.current&&!n,i=void 0!==_.value&&_.value===t;(i||r)&&(R(e),r&&(W.current=!0))},[_.value]),G=(0,o.useCallback)(()=>null==k?void 0:k.focus(),[k]),J=(0,o.useCallback)((e,t,n)=>{let r=!W.current&&!n,i=void 0!==_.value&&_.value===t;(i||r)&&L(e)},[_.value]),Y="popper"===r?em:ev,ee=Y===em?{side:f,sideOffset:p,align:m,alignOffset:y,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:x,avoidCollisions:A}:{};return(0,o.createElement)(ef,{scope:n,content:k,viewport:T,onViewportChange:O,itemRefCallback:q,selectedItem:I,onItemLeave:G,itemTextRefCallback:J,focusSelectedItem:F,selectedItemText:M,position:r,isPositioned:$,searchRef:z},(0,o.createElement)(K.Z,{as:U.g7,allowPinchZoom:!0},(0,o.createElement)(E,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.M)(s,e=>{var t;null===(t=_.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()})},(0,o.createElement)(h.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1)},(0,o.createElement)(Y,(0,i.Z)({role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault()},C,ee,{onPlaced:()=>D(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,l.M)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||X(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=j().filter(e=>!e.disabled),n=t.map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(n=n.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let t=e.target,r=n.indexOf(t);n=n.slice(r+1)}setTimeout(()=>V(n)),e.preventDefault()}})}))))))}),ev=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,onPlaced:r,...s}=e,l=ei(eu,n),u=ep(eu,n),[f,p]=(0,o.useState)(null),[h,v]=(0,o.useState)(null),y=(0,d.e)(t,e=>v(e)),g=Q(n),b=(0,o.useRef)(!1),w=(0,o.useRef)(!0),{viewport:E,selectedItem:S,selectedItemText:x,focusSelectedItem:A}=u,C=(0,o.useCallback)(()=>{if(l.trigger&&l.valueNode&&f&&h&&E&&S&&x){let e=l.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),i=x.getBoundingClientRect();if("rtl"!==l.dir){let r=i.left-t.left,o=n.left-r,s=e.left-o,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-10,p=(0,c.u)(o,[10,d-u]);f.style.minWidth=l+"px",f.style.left=p+"px"}else{let r=t.right-i.right,o=window.innerWidth-n.right-r,s=window.innerWidth-e.right-o,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-10,p=(0,c.u)(o,[10,d-u]);f.style.minWidth=l+"px",f.style.right=p+"px"}let o=g(),s=window.innerHeight-20,u=E.scrollHeight,d=window.getComputedStyle(h),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),m=parseInt(d.borderBottomWidth,10),y=parseInt(d.paddingBottom,10),w=p+v+u+y+m,A=Math.min(5*S.offsetHeight,w),C=window.getComputedStyle(E),_=parseInt(C.paddingTop,10),
22k=parseInt(C.paddingBottom,10),P=e.top+e.height/2-10,T=S.offsetHeight/2,O=S.offsetTop+T,N=p+v+O;if(N<=P){let e=S===o[o.length-1].ref.current;f.style.bottom="0px";let t=h.clientHeight-E.offsetTop-E.offsetHeight;f.style.height=N+Math.max(s-P,T+(e?k:0)+t+m)+"px"}else{let e=S===o[0].ref.current;f.style.top="0px";let t=Math.max(P,p+E.offsetTop+(e?_:0)+T);f.style.height=t+(w-N)+"px",E.scrollTop=N-P+E.offsetTop}f.style.margin="10px 0",f.style.minHeight=A+"px",f.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame(()=>b.current=!0)}},[g,l.trigger,l.valueNode,f,h,E,S,x,l.dir,r]);(0,P.b)(()=>C(),[C]);let[_,k]=(0,o.useState)();(0,P.b)(()=>{h&&k(window.getComputedStyle(h).zIndex)},[h]);let T=(0,o.useCallback)(e=>{e&&!0===w.current&&(C(),null==A||A(),w.current=!1)},[C,A]);return(0,o.createElement)(ey,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:b,onScrollButtonChange:T},(0,o.createElement)("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},(0,o.createElement)(m.WV.div,(0,i.Z)({},s,{ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}}))))}),em=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:s=10,...c}=e,l=en(n);return(0,o.createElement)(W,(0,i.Z)({},l,c,{ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ey,eg]=ee(eu,{}),eb="SelectViewport",ew=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,s=ep(eb,n),c=eg(eb,n),u=(0,d.e)(t,s.onViewportChange),f=(0,o.useRef)(0);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,o.createElement)(J.Slot,{scope:n},(0,o.createElement)(m.WV.div,(0,i.Z)({"data-radix-select-viewport":"",role:"presentation"},r,{ref:u,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:(0,l.M)(r.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(null!=r&&r.current&&n){let e=Math.abs(f.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),s=Math.max(i,o);if(s<r){let i=s+e,o=Math.min(r,i),c=i-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=c>0?c:0,n.style.justifyContent="flex-end")}}}f.current=t.scrollTop})}))))}),[eE,eS]=ee("SelectGroup"),ex=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,s=(0,x.M)();return(0,o.createElement)(eE,{scope:n,id:s},(0,o.createElement)(m.WV.div,(0,i.Z)({role:"group","aria-labelledby":s},r,{ref:t})))}),eA=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,s=eS("SelectLabel",n);return(0,o.createElement)(m.WV.div,(0,i.Z)({id:s.id},r,{ref:t}))}),eC="SelectItem",[e_,ek]=ee(eC),eP=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,value:r,disabled:s=!1,textValue:c,...u}=e,f=ei(eC,n),p=ep(eC,n),h=f.value===r,[v,y]=(0,o.useState)(null!=c?c:""),[g,b]=(0,o.useState)(!1),w=(0,d.e)(t,e=>{var t;return null===(t=p.itemRefCallback)||void 0===t?void 0:t.call(p,e,r,s)}),E=(0,x.M)(),handleSelect=()=>{s||(f.onValueChange(r),f.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,o.createElement)(e_,{scope:n,value:r,disabled:s,textId:E,isSelected:h,onItemTextChange:(0,o.useCallback)(e=>{y(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[])},(0,o.createElement)(J.ItemSlot,{scope:n,value:r,disabled:s,textValue:v},(0,o.createElement)(m.WV.div,(0,i.Z)({role:"option","aria-labelledby":E,"data-highlighted":g?"":void 0,"aria-selected":h&&g,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1},u,{ref:w,onFocus:(0,l.M)(u.onFocus,()=>b(!0)),onBlur:(0,l.M)(u.onBlur,()=>b(!1)),onPointerUp:(0,l.M)(u.onPointerUp,handleSelect),onPointerMove:(0,l.M)(u.onPointerMove,e=>{if(s){var t;null===(t=p.onItemLeave)||void 0===t||t.call(p)}
22else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.M)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=p.onItemLeave)||void 0===t||t.call(p)}}),onKeyDown:(0,l.M)(u.onKeyDown,e=>{var t;let n=(null===(t=p.searchRef)||void 0===t?void 0:t.current)!=="";n&&" "===e.key||(q.includes(e.key)&&handleSelect()," "===e.key&&e.preventDefault())})}))))}),eT="SelectItemText",eO=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,className:r,style:c,...l}=e,u=ei(eT,n),f=ep(eT,n),p=ek(eT,n),h=ea(eT,n),[v,y]=(0,o.useState)(null),g=(0,d.e)(t,e=>y(e),p.onItemTextChange,e=>{var t;return null===(t=f.itemTextRefCallback)||void 0===t?void 0:t.call(f,e,p.value,p.disabled)}),b=null==v?void 0:v.textContent,w=(0,o.useMemo)(()=>(0,o.createElement)("option",{key:p.value,value:p.value,disabled:p.disabled},b),[p.disabled,p.value,b]),{onNativeOptionAdd:E,onNativeOptionRemove:S}=h;return(0,P.b)(()=>(E(w),()=>S(w)),[E,S,w]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(m.WV.span,(0,i.Z)({id:p.textId},l,{ref:g})),p.isSelected&&u.valueNode&&!u.valueNodeHasChildren?(0,s.createPortal)(l.children,u.valueNode):null)}),eN=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,s=ek("SelectItemIndicator",n);return s.isSelected?(0,o.createElement)(m.WV.span,(0,i.Z)({"aria-hidden":!0},r,{ref:t})):null}),eI="SelectScrollUpButton",eR=(0,o.forwardRef)((e,t)=>{let n=ep(eI,e.__scopeSelect),r=eg(eI,e.__scopeSelect),[s,c]=(0,o.useState)(!1),l=(0,d.e)(t,r.onScrollButtonChange);return(0,P.b)(()=>
22{if(n.viewport&&n.isPositioned){let e=n.viewport;function handleScroll(){let t=e.scrollTop>0;c(t)}return handleScroll(),e.addEventListener("scroll",handleScroll),()=>e.removeEventListener("scroll",handleScroll)}},[n.viewport,n.isPositioned]),s?(0,o.createElement)(ej,(0,i.Z)({},e,{ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null}),eM="SelectScrollDownButton",eL=(0,o.forwardRef)((e,t)=>{let n=ep(eM,e.__scopeSelect),r=eg(eM,e.__scopeSelect),[s,c]=(0,o.useState)(!1),l=(0,d.e)(t,r.onScrollButtonChange);return(0,P.b)(()=>{if(n.viewport&&n.isPositioned){let e=n.viewport;function handleScroll(){let t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;c(n)}return handleScroll(),e.addEventListener("scroll",handleScroll),()=>e.removeEventListener("scroll",handleScroll)}},[n.viewport,n.isPositioned]),s?(0,o.createElement)(ej,(0,i.Z)({},e,{ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null}),ej=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...s}=e,c=ep("SelectScrollButton",n),u=(0,o.useRef)(null),d=Q(n),f=(0,o.useCallback)(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return(0,o.useEffect)(()=>()=>f(),[f]),(0,P.b)(()=>{var e;let t=d().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[d]),(0,o.createElement)(m.WV.div,(0,i.Z)({"aria-hidden":!0},s,{ref:t,style:{flexShrink:0,...s.style},onPointerDown:(0,l.M)(s.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(r,50))}),onPointerMove:(0,l.M)(s.onPointerMove,()=>{var e;null===(e=c.onItemLeave)||void 0===e||e.call(c),null===u.current&&(u.current=window.setInterval(r,50))}),onPointerLeave:(0,l.M)(s.onPointerLeave,()=>{f()})}))}),e$=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,o.createElement)(m.WV.div,(0,i.Z)({"aria-hidden":!0},r,{ref:t}))});function $cc7e05a45900e73f$var$shouldShowPlaceholder(e){return""===e||void 0===e}let eD=(0,o.forwardRef)((e,t)=>{let{value:n,...r}=e,s=(0,o.useRef)(null),c=(0,d.e)(t,s),l=(0,Z.D)(n);return(0,o.useEffect)(()=>{let e=s.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value"),i=r.set;if(l!==n&&i){let t=new Event("change",{bubbles:!0});i.call(e,n),e.dispatchEvent(t)}},[l,n]),(0,o.createElement)(z.T,{asChild:!0},(0,o.createElement)("select",(0,i.Z)({},r,{ref:c,defaultValue:n})))});function $cc7e05a45900e73f$var$useTypeaheadSearch(e){let t=(0,y.W)(e),n=(0,o.useRef)(""),r=(0,o.useRef)(0),i=(0,o.useCallback)(e=>{let i=n.current+e;t(i),function updateSearch(e){n.current=e,window.clearTimeout(r.current),""!==e&&(r.current=window.setTimeout(()=>updateSearch(""),1e3))}(i)},[t]),s=(0,o.useCallback)(()=>{n.current="",window.clearTimeout(r.current)},[]);return(0,o.useEffect)(()=>()=>window.clearTimeout(r.current),[]),[n,i,s]}function $cc7e05a45900e73f$var$findNextItem(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,s=n?e.indexOf(n):-1,c=(r=Math.max(s,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(c=c.filter(e=>e!==n));let u=c.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}eD.displayName="BubbleSelect";let $cc7e05a45900e73f$export$be92b6f5f03c0fe9=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:s,value:c,defaultValue:l,onValueChange:u,dir:d,name:f,autoComplete:h,disabled:v,required:m}=e,y=en(t),[g,b]=(0,o.useState)(null),[w,E]=(0,o.useState)(null),[S,A]=(0,o.useState)(!1),C=(0,p.gm)(d),[_=!1,k]=(0,B.T)({prop:r,defaultProp:i,onChange:s}),[P,T]=(0,B.T)({prop:c,defaultProp:l,onChange:u}),O=(0,o.useRef)(null),N=!g||!!g.closest("form"),[I,R]=(0,o.useState)(new Set),M=Array.from(I).map(e=>e.props.value).join(";");return(0,o.createElement)($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9,y,(0,o.createElement)(er,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:w,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:(0,x.M)(),value:P,onValueChange:T,open:_,onOpenChange:k,dir:C,triggerPointerDownPosRef:O,disabled:v},(0,o.createElement)(J.Provider,{scope:t},(0,o.createElement)(eo,{scope:e.__scopeSelect,onNativeOptionAdd:(0,o.useCallback)(e=>{R(t=>new Set(t).add(e))},[]),onNativeOptionRemove:(0,o.useCallback)(e=>{R(t=>{let n=new Set(t);return n.delete(e),n})},[])},n)),N?(0,o.createElement)(eD,{key:M,"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:h,value:P,onChange:e=>T(e.target.value),disabled:v},void 0===P?(0,o.createElement)("option",{value:""}):null,Array.from(I)):null))},eW=es,eV=ec,eF=el,$cc7e05a45900e73f$export$602eac185826482c=e=>(0,o.createElement)(F.h,(0,i.Z)({asChild:!0},e)),eU=ed,eB=ew,eZ=ex,ez=eA,eH=eP,eK=eO,eX=eN,eq=eR,eG=eL,eJ=e$},16530:function(e,t,n){"use strict";n.d(t,{bU:function(){return E},fC:function(){return w}});var r=n(7896),i=n(2784),o=n(17998),s=n(62656),c=n(92211),l=n(87695),u=n(90022),d=n(35019),f=n(72714);let p="Switch",[h,v]=(0,c.b)(p),[m,y]=h(p),g=(0,i.forwardRef)((e,t)=>{let{__scopeSwitch:n,name:c,checked:u,defaultChecked:d,required:p,disabled:h,value:v="on",onCheckedChange:y,...g}=e,[b,w]=(0,i.useState)(null),E=(0,s.e)(t,e=>w(e)),S=(0,i.useRef)(!1),x=!b||!!b.closest("form"),[A=!1,C]=(0,l.T)({prop:u,defaultProp:d,onChange:y});return(0,i.createElement)(m,{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:E,onClick:(0,o.M)(e.onClick,e=>{C(e=>!e),x&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})})),x&&(0,i.createElement)($6be4966fd9bbc698$var$BubbleInput,{control:b,bubbles:!S.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=y("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),l=(0,u.D)(n),f=(0,d.t)(t);return(0,i.useEffect)(()=>
22{let e=c.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked"),i=r.set;if(l!==n&&i){let t=new Event("click",{bubbles:o});i.call(e,n),e.dispatchEvent(t)}},[l,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 w=g,E=b},70891:function(e,t,n){"use strict";n.d(t,{Dx:function(){return z},aU:function(){return K},dk:function(){return H},fC:function(){return Z},l_:function(){return B},x8:function(){return X},zt:function(){return U}});var r=n(7896),i=n(2784),o=n(28316),s=n(17998),c=n(62656),l=n(62172),u=n(92211),d=n(1352),f=n(78773),p=n(79616),h=n(72714),v=n(27757),m=n(87695),y=n(61644),g=n(89785);let b="ToastProvider",[w,E,S]=(0,l.B)("Toast"),[x,A]=(0,u.b)("Toast",[S]),[C,_]=x(b),$054eb8030ebde76e$export$f5d03d415824e0e=e=>{let{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:c}=e,[l,u]=(0,i.useState)(null),[d,f]=(0,i.useState)(0),p=(0,i.useRef)(!1),h=(0,i.useRef)(!1);return(0,i.createElement)(w.Provider,{scope:t},(0,i.createElement)(C,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:d,viewport:l,onViewportChange:u,onToastAdd:(0,i.useCallback)(()=>f(e=>e+1),[]),onToastRemove:(0,i.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 \`${b}\`. Expected non-empty \`string\`.`;return Error(e)}return null}};let k=["F8"],P="toast.viewportPause",T="toast.viewportResume",O=(0,i.forwardRef)((e,t)=>{let{__scopeToast:n,hotkey:o=k,label:s="Notifications ({hotkey})",...l}=e,u=_("ToastViewport",n),f=E(n),p=(0,i.useRef)(null),v=(0,i.useRef)(null),m=(0,i.useRef)(null),y=(0,i.useRef)(null),g=(0,c.e)(t,y,u.onViewportChange),b=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=u.toastCount>0;(0,i.useEffect)(()=>{let handleKeyDown=e=>{var t;let n=o.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)},[o]),(0,i.useEffect)(()=>{let e=p.current,t=y.current;if(S&&e&&t){let handlePause=()=>{if(!u.isClosePausedRef.current){let e=new CustomEvent(P);t.dispatchEvent(e),u.isClosePausedRef.current=!0}},handleResume=()=>{if(u.isClosePausedRef.current){let e=new CustomEvent(T);t.dispatchEvent(e),u.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)}}},[S,u.isClosePausedRef]);let x=(0,i.useCallback)(({tabbingDirection:e})=>{let t=f(),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()},[f]);return(0,i.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=v.current)||void 0===i||i.focus();return}let l=x({tabbingDirection:r?"backwards":"forwards"}),u=l.findIndex(e=>e===n);$054eb8030ebde76e$var$focusFirst(l.slice(u+1))?t.preventDefault():r?null===(o=v.current)||void 0===o||o.focus():null===(s=m.current)||void 0===s||s.focus()}};return e.addEventListener("keydown",handleKeyDown),()=>e.removeEventListener("keydown",handleKeyDown)}},[f,x]),(0,i.createElement)(d.I0,{ref:p,role:"region","aria-label":s.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:S?void 0:"none"}},S&&(0,i.createElement)(N,{ref:v,onFocusFromOutsideViewport:()=>{let e=x({tabbingDirection:"forwards"});$054eb8030ebde76e$var$focusFirst(e)}}),(0,i.createElement)(w.Slot,{scope:n},(0,i.createElement)(h.WV.ol,(0,r.Z)({tabIndex:-1},l,{ref:g}))),S&&(0,i.createElement)(N,{ref:m,onFocusFromOutsideViewport:()=>{let e=x({tabbingDirection:"backwards"});$054eb8030ebde76e$var$focusFirst(e)}}))}),N=(0,i.forwardRef)((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:o,...s}=e,c=_("ToastFocusProxy",n);return(0,i.createElement)(g.T,(0,r.Z)({"aria-hidden":!0,tabIndex:0},s,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget,r=!(null!==(t=c.viewport)&&void 0!==t&&t.contains(n));r&&o()}}))}),I="Toast",R=(0,i.forwardRef)((e,t)=>{let{forceMount:n,open:o,defaultOpen:c,onOpenChange:l,...u}=e,[d=!0,f]=(0,m.T)({prop:o,defaultProp:c,onChange:l});return(0,i.createElement)(p.z,{present:n||d},(0,i.createElement)(j,(0,r.Z)({open:d},u,{ref:t,onClose:()=>f(!1),onPause:(0,v.W)(e.onPause),onResume:(0,v.W)(e.onResume),onSwipeStart:(0,s.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,s.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,s.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,s.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)})})))}),[M,L]=x(I,{onClose(){}}),j=(0,i.forwardRef)((e,t)=>{let{__scopeToast:n,type:l="foreground",duration:u,open:f,onClose:p,onEscapeKeyDown:m,onPause:y,onResume:g,onSwipeStart:b,onSwipeMove:E,onSwipeCancel:S,onSwipeEnd:x,...A}=e,C=_(I,n),[k,O]=(0,i.useState)(null),N=(0,c.e)(t,e=>O(e)),R=(0,i.useRef)(null),L=(0,i.useRef)(null),j=u||C.duration,$=(0,i.useRef)(0),D=(0,i.useRef)(j),W=(0,i.useRef)(0),{onToastAdd:V,onToastRemove:F}=C,U=(0,v.W)(()=>{var e;let t=null==k?void 0:k.contains(document.activeElement);t&&(null===(e=C.viewport)||void 0===e||e.focus()),p()}),B=(0,i.useCallback)(e=>{e&&e!==1/0&&(window.clearTimeout(W.current),$.current=new Date().getTime(),W.current=window.setTimeout(U,e))},[U]);(0,i.useEffect)(()=>{let e=C.viewport;if(e){let handleResume=()=>{B(D.current),null==g||g()},handlePause=()=>{let e=new Date().getTime()-$.current;D.current=D.current-e,window.clearTimeout(W.current),null==y||y()};return e.addEventListener(P,handlePause),e.addEventListener(T,handleResume),()=>{e.removeEventListener(P,handlePause),e.removeEventListener(T,handleResume)}}},[C.viewport,j,y,g,B]),(0,i.useEffect)(()=>{f&&!C.isClosePausedRef.current&&B(j)},[f,j,C.isClosePausedRef,B]),(0,i.useEffect)(()=>(V(),()=>F()),[V,F]);let Z=(0,i.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 C.viewport?(0,i.createElement)(i.Fragment,null,Z&&(0,i.createElement)($054eb8030ebde76e$var$ToastAnnounce,{__scopeToast:n,role:"status","aria-live":"foreground"===l?"assertive":"polite","aria-atomic":!0},Z),(0,i.createElement)(M,{scope:n,onClose:U},(0,o.createPortal)((0,i.createElement)(w.ItemSlot,{scope:n},(0,i.createElement)(d.fC,{asChild:!0,onEscapeKeyDown:(0,s.M)(m,()=>{C.isFocusedToastEscapeKeyDownRef.current||U(),C.isFocusedToastEscapeKeyDownRef.current=!1})},(0,i.createElement)(h.WV.li,(0,r.Z)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":f?"open":"closed","data-swipe-direction":C.swipeDirection},A,{ref:N,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,s.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==m||m(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,s.M)(e.onPointerDown,e=>{0===e.button&&(R.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,s.M)(e.onPointerMove,e=>{if(!R.current)return;let t=e.clientX-R.current.x,n=e.clientY-R.current.y,r=!!L.current,i=["left","right"].includes(C.swipeDirection),o=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,s=i?o(0,t):0,c=i?0:o(0,n),l="touch"===e.pointerType?10:2,u={x:s,y:c},d={originalEvent:e,delta:u};r?(L.current=u,$054eb8030ebde76e$var$handleAndDispatchCustomEvent("toast.swipeMove",E,d,{discrete:!1})):$054eb8030ebde76e$var$isDeltaInDirection(u,C.swipeDirection,l)?(L.current=u,$054eb8030ebde76e$var$handleAndDispatchCustomEvent("toast.swipeStart",b,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(R.current=null)}),onPointerUp:(0,s.M)(e.onPointerUp,e=>{let t=L.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),L.current=null,R.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};$054eb8030ebde76e$var$isDeltaInDirection(t,C.swipeDirection,C.swipeThreshold)?$054eb8030ebde76e$var$handleAndDispatchCustomEvent("toast.swipeEnd",x,r,{discrete:!0}):$054eb8030ebde76e$var$handleAndDispatchCustomEvent("toast.swipeCancel",S,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})))),C.viewport))):null});j.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let e=`Invalid prop \`type\` supplied to \`${I}\`. Expected \`foreground | background\`.`;return Error(e)}return null}};let $054eb8030ebde76e$var$ToastAnnounce=e=>{let{__scopeToast:t,children:n,...r}=e,o=_(I,t),[s,c]=(0,i.useState)(!1),[l,u]=(0,i.useState)(!1);return function(e=()=>{}){let t=(0,v.W)(e);(0,y.b)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>c(!0)),(0,i.useEffect)(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,i.createElement)(f.h,{asChild:!0},(0,i.createElement)(g.T,r,s&&(0,i.createElement)(i.Fragment,null,o.label," ",n)))},$=(0,i.forwardRef)((e,t)=>{let{__scopeToast:n,...o}=e;return(0,i.createElement)(h.WV.div,(0,r.Z)({},o,{ref:t}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeToast:n,...o}=e;return(0,i.createElement)(h.WV.div,(0,r.Z)({},o,{ref:t}))}),W=(0,i.forwardRef)((e,t)=>{let{altText:n,...o}=e;return n?(0,i.createElement)(F,{altText:n,asChild:!0},(0,i.createElement)(V,(0,r.Z)({},o,{ref:t}))):null});W.propTypes={altText:e=>e.altText?null:Error("Missing prop `altText` expected on `ToastAction`")};let V=(0,i.forwardRef)((e,t)=>{let{__scopeToast:n,...o}=e,c=L("ToastClose",n);return(0,i.createElement)(F,{asChild:!0},(0,i.createElement)(h.WV.button,(0,r.Z)({type:"button"},o,{ref:t,onClick:(0,s.M)(e.onClick,c.onClose)})))}),F=(0,i.forwardRef)((e,t)=>{let{__scopeToast:n,altText:o,...s}=e;return(0,i.createElement)(h.WV.div,(0,r.Z)({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||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,h.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 U=$054eb8030ebde76e$export$f5d03d415824e0e,B=O,Z=R,z=$,H=D,K=W,X=V},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]}),l=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),u=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,...l}[t]):({...s,...l})[t]===n})?[...e,n,r]:e},[]);return i(e,c,u,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"]),l=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,u=/\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 l.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 u.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,l,u,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,l=0,u=0;u<e.length;u++){var d=e[u];if(0===c){if(d===i&&(n||e.slice(u,u+o)===t)){s.push(e.slice(l,u)),l=u+o;continue}if("/"===d){r=u;continue}}"["===d?c++:"]"===d&&c--}var f=0===s.length?e:e.substring(l),p=f.startsWith("!"),h=p?f.substring(1):f;return{modifiers:s,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:r&&r>l?r-l:void 0}}),...(u=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,u)}),s=e.conflictingClassGroups,l=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&&l[e]?[].concat(n,l[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,l,u,d=t(r);if(d)return d;var f=(s=(o=e).splitModifiers,c=o.getClassGroupId,l=o.getConflictingClassGroupIds,u=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,l=c(o?i.substring(0,o):i),u=!!o;if(!l){if(!o||!(l=c(i)))return{isTailwindClass:!1,originalClassName:e};u=!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:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,i=t+n;return!u.has(i)&&(u.add(i),l(n,r).forEach(function(e){return u.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"),l=fromTheme("contrast"),u=fromTheme("grayscale"),d=fromTheme("hueRotate"),f=fromTheme("invert"),p=fromTheme("gap"),h=fromTheme("gradientColorStops"),v=fromTheme("gradientColorStopPositions"),m=fromTheme("inset"),y=fromTheme("margin"),g=fromTheme("opacity"),b=fromTheme("padding"),w=fromTheme("saturate"),E=fromTheme("scale"),S=fromTheme("sepia"),x=fromTheme("skew"),A=fromTheme("space"),C=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:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],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:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"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:[l]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"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.