@getcredify/credify-insurance-widget 1.36.0 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(o){if(o.ep)return;o.ep=!0;const u=n(o);fetch(o.href,u)}})();function oE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yp={exports:{}},ou={};/**
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function oE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yp={exports:{}},os={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var S_;function cA(){if(S_)return ou;S_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var d in o)d!=="key"&&(u[d]=o[d])}else u=o;return o=u.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:u}}return ou.Fragment=t,ou.jsx=n,ou.jsxs=n,ou}var D_;function dA(){return D_||(D_=1,yp.exports=cA()),yp.exports}var v=dA(),gp={exports:{}},Ve={};/**
9
+ */var S_;function cA(){if(S_)return os;S_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:s}}return os.Fragment=t,os.jsx=n,os.jsxs=n,os}var D_;function dA(){return D_||(D_=1,yp.exports=cA()),yp.exports}var v=dA(),gp={exports:{}},Ve={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $_;function fA(){if($_)return Ve;$_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),E=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=E&&C[E]||C["@@iterator"],typeof C=="function"?C:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function R(C,U,W){this.props=C,this.context=U,this.refs=w,this.updater=W||D}R.prototype.isReactComponent={},R.prototype.setState=function(C,U){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,U,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function I(){}I.prototype=R.prototype;function A(C,U,W){this.props=C,this.context=U,this.refs=w,this.updater=W||D}var L=A.prototype=new I;L.constructor=A,x(L,R.prototype),L.isPureReactComponent=!0;var M=Array.isArray;function Z(){}var V={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function ne(C,U,W){var Y=W.ref;return{$$typeof:e,type:C,key:U,ref:Y!==void 0?Y:null,props:W}}function pe(C,U){return ne(C.type,U,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ye(C){var U={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(W){return U[W]})}var Ae=/\/+/g;function j(C,U){return typeof C=="object"&&C!==null&&C.key!=null?ye(""+C.key):U.toString(36)}function de(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Z,Z):(C.status="pending",C.then(function(U){C.status==="pending"&&(C.status="fulfilled",C.value=U)},function(U){C.status==="pending"&&(C.status="rejected",C.reason=U)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function k(C,U,W,Y,te){var z=typeof C;(z==="undefined"||z==="boolean")&&(C=null);var T=!1;if(C===null)T=!0;else switch(z){case"bigint":case"string":case"number":T=!0;break;case"object":switch(C.$$typeof){case e:case t:T=!0;break;case y:return T=C._init,k(T(C._payload),U,W,Y,te)}}if(T)return te=te(C),T=Y===""?"."+j(C,0):Y,M(te)?(W="",T!=null&&(W=T.replace(Ae,"$&/")+"/"),k(te,U,W,"",function(ge){return ge})):te!=null&&(J(te)&&(te=pe(te,W+(te.key==null||C&&C.key===te.key?"":(""+te.key).replace(Ae,"$&/")+"/")+T)),U.push(te)),1;T=0;var N=Y===""?".":Y+":";if(M(C))for(var ie=0;ie<C.length;ie++)Y=C[ie],z=N+j(Y,ie),T+=k(Y,U,W,z,te);else if(ie=S(C),typeof ie=="function")for(C=ie.call(C),ie=0;!(Y=C.next()).done;)Y=Y.value,z=N+j(Y,ie++),T+=k(Y,U,W,z,te);else if(z==="object"){if(typeof C.then=="function")return k(de(C),U,W,Y,te);throw U=String(C),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return T}function B(C,U,W){if(C==null)return C;var Y=[],te=0;return k(C,Y,"","",function(z){return U.call(W,z,te++)}),Y}function X(C){if(C._status===-1){var U=C._result;U=U(),U.then(function(W){(C._status===0||C._status===-1)&&(C._status=1,C._result=W)},function(W){(C._status===0||C._status===-1)&&(C._status=2,C._result=W)}),C._status===-1&&(C._status=0,C._result=U)}if(C._status===1)return C._result.default;throw C._result}var F=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},G={map:B,forEach:function(C,U,W){B(C,function(){U.apply(this,arguments)},W)},count:function(C){var U=0;return B(C,function(){U++}),U},toArray:function(C){return B(C,function(U){return U})||[]},only:function(C){if(!J(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Ve.Activity=g,Ve.Children=G,Ve.Component=R,Ve.Fragment=n,Ve.Profiler=o,Ve.PureComponent=A,Ve.StrictMode=i,Ve.Suspense=m,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(C){return V.H.useMemoCache(C)}},Ve.cache=function(C){return function(){return C.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(C,U,W){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var Y=x({},C.props),te=C.key;if(U!=null)for(z in U.key!==void 0&&(te=""+U.key),U)!fe.call(U,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&U.ref===void 0||(Y[z]=U[z]);var z=arguments.length-2;if(z===1)Y.children=W;else if(1<z){for(var T=Array(z),N=0;N<z;N++)T[N]=arguments[N+2];Y.children=T}return ne(C.type,te,Y)},Ve.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:u,_context:C},C},Ve.createElement=function(C,U,W){var Y,te={},z=null;if(U!=null)for(Y in U.key!==void 0&&(z=""+U.key),U)fe.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=U[Y]);var T=arguments.length-2;if(T===1)te.children=W;else if(1<T){for(var N=Array(T),ie=0;ie<T;ie++)N[ie]=arguments[ie+2];te.children=N}if(C&&C.defaultProps)for(Y in T=C.defaultProps,T)te[Y]===void 0&&(te[Y]=T[Y]);return ne(C,z,te)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(C){return{$$typeof:d,render:C}},Ve.isValidElement=J,Ve.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:X}},Ve.memo=function(C,U){return{$$typeof:h,type:C,compare:U===void 0?null:U}},Ve.startTransition=function(C){var U=V.T,W={};V.T=W;try{var Y=C(),te=V.S;te!==null&&te(W,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Z,F)}catch(z){F(z)}finally{U!==null&&W.types!==null&&(U.types=W.types),V.T=U}},Ve.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ve.use=function(C){return V.H.use(C)},Ve.useActionState=function(C,U,W){return V.H.useActionState(C,U,W)},Ve.useCallback=function(C,U){return V.H.useCallback(C,U)},Ve.useContext=function(C){return V.H.useContext(C)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(C,U){return V.H.useDeferredValue(C,U)},Ve.useEffect=function(C,U){return V.H.useEffect(C,U)},Ve.useEffectEvent=function(C){return V.H.useEffectEvent(C)},Ve.useId=function(){return V.H.useId()},Ve.useImperativeHandle=function(C,U,W){return V.H.useImperativeHandle(C,U,W)},Ve.useInsertionEffect=function(C,U){return V.H.useInsertionEffect(C,U)},Ve.useLayoutEffect=function(C,U){return V.H.useLayoutEffect(C,U)},Ve.useMemo=function(C,U){return V.H.useMemo(C,U)},Ve.useOptimistic=function(C,U){return V.H.useOptimistic(C,U)},Ve.useReducer=function(C,U,W){return V.H.useReducer(C,U,W)},Ve.useRef=function(C){return V.H.useRef(C)},Ve.useState=function(C){return V.H.useState(C)},Ve.useSyncExternalStore=function(C,U,W){return V.H.useSyncExternalStore(C,U,W)},Ve.useTransition=function(){return V.H.useTransition()},Ve.version="19.2.7",Ve}var x_;function D0(){return x_||(x_=1,gp.exports=fA()),gp.exports}var b=D0();const ve=oE(b);var bp={exports:{}},lu={},vp={exports:{}},_p={};/**
17
+ */var $_;function fA(){if($_)return Ve;$_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),E=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=E&&C[E]||C["@@iterator"],typeof C=="function"?C:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function R(C,U,W){this.props=C,this.context=U,this.refs=w,this.updater=W||D}R.prototype.isReactComponent={},R.prototype.setState=function(C,U){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,U,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function I(){}I.prototype=R.prototype;function A(C,U,W){this.props=C,this.context=U,this.refs=w,this.updater=W||D}var L=A.prototype=new I;L.constructor=A,x(L,R.prototype),L.isPureReactComponent=!0;var M=Array.isArray;function Z(){}var V={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function ne(C,U,W){var Y=W.ref;return{$$typeof:e,type:C,key:U,ref:Y!==void 0?Y:null,props:W}}function pe(C,U){return ne(C.type,U,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ye(C){var U={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(W){return U[W]})}var Ae=/\/+/g;function j(C,U){return typeof C=="object"&&C!==null&&C.key!=null?ye(""+C.key):U.toString(36)}function de(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Z,Z):(C.status="pending",C.then(function(U){C.status==="pending"&&(C.status="fulfilled",C.value=U)},function(U){C.status==="pending"&&(C.status="rejected",C.reason=U)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function k(C,U,W,Y,te){var z=typeof C;(z==="undefined"||z==="boolean")&&(C=null);var T=!1;if(C===null)T=!0;else switch(z){case"bigint":case"string":case"number":T=!0;break;case"object":switch(C.$$typeof){case e:case t:T=!0;break;case y:return T=C._init,k(T(C._payload),U,W,Y,te)}}if(T)return te=te(C),T=Y===""?"."+j(C,0):Y,M(te)?(W="",T!=null&&(W=T.replace(Ae,"$&/")+"/"),k(te,U,W,"",function(ge){return ge})):te!=null&&(J(te)&&(te=pe(te,W+(te.key==null||C&&C.key===te.key?"":(""+te.key).replace(Ae,"$&/")+"/")+T)),U.push(te)),1;T=0;var N=Y===""?".":Y+":";if(M(C))for(var ie=0;ie<C.length;ie++)Y=C[ie],z=N+j(Y,ie),T+=k(Y,U,W,z,te);else if(ie=S(C),typeof ie=="function")for(C=ie.call(C),ie=0;!(Y=C.next()).done;)Y=Y.value,z=N+j(Y,ie++),T+=k(Y,U,W,z,te);else if(z==="object"){if(typeof C.then=="function")return k(de(C),U,W,Y,te);throw U=String(C),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return T}function B(C,U,W){if(C==null)return C;var Y=[],te=0;return k(C,Y,"","",function(z){return U.call(W,z,te++)}),Y}function X(C){if(C._status===-1){var U=C._result;U=U(),U.then(function(W){(C._status===0||C._status===-1)&&(C._status=1,C._result=W)},function(W){(C._status===0||C._status===-1)&&(C._status=2,C._result=W)}),C._status===-1&&(C._status=0,C._result=U)}if(C._status===1)return C._result.default;throw C._result}var F=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},G={map:B,forEach:function(C,U,W){B(C,function(){U.apply(this,arguments)},W)},count:function(C){var U=0;return B(C,function(){U++}),U},toArray:function(C){return B(C,function(U){return U})||[]},only:function(C){if(!J(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Ve.Activity=g,Ve.Children=G,Ve.Component=R,Ve.Fragment=n,Ve.Profiler=o,Ve.PureComponent=A,Ve.StrictMode=i,Ve.Suspense=m,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(C){return V.H.useMemoCache(C)}},Ve.cache=function(C){return function(){return C.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(C,U,W){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var Y=x({},C.props),te=C.key;if(U!=null)for(z in U.key!==void 0&&(te=""+U.key),U)!fe.call(U,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&U.ref===void 0||(Y[z]=U[z]);var z=arguments.length-2;if(z===1)Y.children=W;else if(1<z){for(var T=Array(z),N=0;N<z;N++)T[N]=arguments[N+2];Y.children=T}return ne(C.type,te,Y)},Ve.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:s,_context:C},C},Ve.createElement=function(C,U,W){var Y,te={},z=null;if(U!=null)for(Y in U.key!==void 0&&(z=""+U.key),U)fe.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=U[Y]);var T=arguments.length-2;if(T===1)te.children=W;else if(1<T){for(var N=Array(T),ie=0;ie<T;ie++)N[ie]=arguments[ie+2];te.children=N}if(C&&C.defaultProps)for(Y in T=C.defaultProps,T)te[Y]===void 0&&(te[Y]=T[Y]);return ne(C,z,te)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(C){return{$$typeof:d,render:C}},Ve.isValidElement=J,Ve.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:X}},Ve.memo=function(C,U){return{$$typeof:h,type:C,compare:U===void 0?null:U}},Ve.startTransition=function(C){var U=V.T,W={};V.T=W;try{var Y=C(),te=V.S;te!==null&&te(W,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Z,F)}catch(z){F(z)}finally{U!==null&&W.types!==null&&(U.types=W.types),V.T=U}},Ve.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ve.use=function(C){return V.H.use(C)},Ve.useActionState=function(C,U,W){return V.H.useActionState(C,U,W)},Ve.useCallback=function(C,U){return V.H.useCallback(C,U)},Ve.useContext=function(C){return V.H.useContext(C)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(C,U){return V.H.useDeferredValue(C,U)},Ve.useEffect=function(C,U){return V.H.useEffect(C,U)},Ve.useEffectEvent=function(C){return V.H.useEffectEvent(C)},Ve.useId=function(){return V.H.useId()},Ve.useImperativeHandle=function(C,U,W){return V.H.useImperativeHandle(C,U,W)},Ve.useInsertionEffect=function(C,U){return V.H.useInsertionEffect(C,U)},Ve.useLayoutEffect=function(C,U){return V.H.useLayoutEffect(C,U)},Ve.useMemo=function(C,U){return V.H.useMemo(C,U)},Ve.useOptimistic=function(C,U){return V.H.useOptimistic(C,U)},Ve.useReducer=function(C,U,W){return V.H.useReducer(C,U,W)},Ve.useRef=function(C){return V.H.useRef(C)},Ve.useState=function(C){return V.H.useState(C)},Ve.useSyncExternalStore=function(C,U,W){return V.H.useSyncExternalStore(C,U,W)},Ve.useTransition=function(){return V.H.useTransition()},Ve.version="19.2.7",Ve}var x_;function D0(){return x_||(x_=1,gp.exports=fA()),gp.exports}var b=D0();const ve=oE(b);var bp={exports:{}},ls={},vp={exports:{}},_p={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var C_;function mA(){return C_||(C_=1,(function(e){function t(k,B){var X=k.length;k.push(B);e:for(;0<X;){var F=X-1>>>1,G=k[F];if(0<o(G,B))k[F]=B,k[X]=G,X=F;else break e}}function n(k){return k.length===0?null:k[0]}function i(k){if(k.length===0)return null;var B=k[0],X=k.pop();if(X!==B){k[0]=X;e:for(var F=0,G=k.length,C=G>>>1;F<C;){var U=2*(F+1)-1,W=k[U],Y=U+1,te=k[Y];if(0>o(W,X))Y<G&&0>o(te,W)?(k[F]=te,k[Y]=X,F=Y):(k[F]=W,k[U]=X,F=U);else if(Y<G&&0>o(te,X))k[F]=te,k[Y]=X,F=Y;else break e}}return B}function o(k,B){var X=k.sortIndex-B.sortIndex;return X!==0?X:k.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var m=[],h=[],y=1,g=null,E=3,S=!1,D=!1,x=!1,w=!1,R=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function L(k){for(var B=n(h);B!==null;){if(B.callback===null)i(h);else if(B.startTime<=k)i(h),B.sortIndex=B.expirationTime,t(m,B);else break;B=n(h)}}function M(k){if(x=!1,L(k),!D)if(n(m)!==null)D=!0,Z||(Z=!0,ye());else{var B=n(h);B!==null&&de(M,B.startTime-k)}}var Z=!1,V=-1,fe=5,ne=-1;function pe(){return w?!0:!(e.unstable_now()-ne<fe)}function J(){if(w=!1,Z){var k=e.unstable_now();ne=k;var B=!0;try{e:{D=!1,x&&(x=!1,I(V),V=-1),S=!0;var X=E;try{t:{for(L(k),g=n(m);g!==null&&!(g.expirationTime>k&&pe());){var F=g.callback;if(typeof F=="function"){g.callback=null,E=g.priorityLevel;var G=F(g.expirationTime<=k);if(k=e.unstable_now(),typeof G=="function"){g.callback=G,L(k),B=!0;break t}g===n(m)&&i(m),L(k)}else i(m);g=n(m)}if(g!==null)B=!0;else{var C=n(h);C!==null&&de(M,C.startTime-k),B=!1}}break e}finally{g=null,E=X,S=!1}B=void 0}}finally{B?ye():Z=!1}}}var ye;if(typeof A=="function")ye=function(){A(J)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,j=Ae.port2;Ae.port1.onmessage=J,ye=function(){j.postMessage(null)}}else ye=function(){R(J,0)};function de(k,B){V=R(function(){k(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(k){switch(E){case 1:case 2:case 3:var B=3;break;default:B=E}var X=E;E=B;try{return k()}finally{E=X}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(k,B){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var X=E;E=k;try{return B()}finally{E=X}},e.unstable_scheduleCallback=function(k,B,X){var F=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?F+X:F):X=F,k){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=X+G,k={id:y++,callback:B,priorityLevel:k,startTime:X,expirationTime:G,sortIndex:-1},X>F?(k.sortIndex=X,t(h,k),n(m)===null&&k===n(h)&&(x?(I(V),V=-1):x=!0,de(M,X-F))):(k.sortIndex=G,t(m,k),D||S||(D=!0,Z||(Z=!0,ye()))),k},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(k){var B=E;return function(){var X=E;E=B;try{return k.apply(this,arguments)}finally{E=X}}}})(_p)),_p}var A_;function pA(){return A_||(A_=1,vp.exports=mA()),vp.exports}var Ep={exports:{}},on={};/**
25
+ */var C_;function mA(){return C_||(C_=1,(function(e){function t(k,B){var X=k.length;k.push(B);e:for(;0<X;){var F=X-1>>>1,G=k[F];if(0<o(G,B))k[F]=B,k[X]=G,X=F;else break e}}function n(k){return k.length===0?null:k[0]}function i(k){if(k.length===0)return null;var B=k[0],X=k.pop();if(X!==B){k[0]=X;e:for(var F=0,G=k.length,C=G>>>1;F<C;){var U=2*(F+1)-1,W=k[U],Y=U+1,te=k[Y];if(0>o(W,X))Y<G&&0>o(te,W)?(k[F]=te,k[Y]=X,F=Y):(k[F]=W,k[U]=X,F=U);else if(Y<G&&0>o(te,X))k[F]=te,k[Y]=X,F=Y;else break e}}return B}function o(k,B){var X=k.sortIndex-B.sortIndex;return X!==0?X:k.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var m=[],h=[],y=1,g=null,E=3,S=!1,D=!1,x=!1,w=!1,R=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function L(k){for(var B=n(h);B!==null;){if(B.callback===null)i(h);else if(B.startTime<=k)i(h),B.sortIndex=B.expirationTime,t(m,B);else break;B=n(h)}}function M(k){if(x=!1,L(k),!D)if(n(m)!==null)D=!0,Z||(Z=!0,ye());else{var B=n(h);B!==null&&de(M,B.startTime-k)}}var Z=!1,V=-1,fe=5,ne=-1;function pe(){return w?!0:!(e.unstable_now()-ne<fe)}function J(){if(w=!1,Z){var k=e.unstable_now();ne=k;var B=!0;try{e:{D=!1,x&&(x=!1,I(V),V=-1),S=!0;var X=E;try{t:{for(L(k),g=n(m);g!==null&&!(g.expirationTime>k&&pe());){var F=g.callback;if(typeof F=="function"){g.callback=null,E=g.priorityLevel;var G=F(g.expirationTime<=k);if(k=e.unstable_now(),typeof G=="function"){g.callback=G,L(k),B=!0;break t}g===n(m)&&i(m),L(k)}else i(m);g=n(m)}if(g!==null)B=!0;else{var C=n(h);C!==null&&de(M,C.startTime-k),B=!1}}break e}finally{g=null,E=X,S=!1}B=void 0}}finally{B?ye():Z=!1}}}var ye;if(typeof A=="function")ye=function(){A(J)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,j=Ae.port2;Ae.port1.onmessage=J,ye=function(){j.postMessage(null)}}else ye=function(){R(J,0)};function de(k,B){V=R(function(){k(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(k){switch(E){case 1:case 2:case 3:var B=3;break;default:B=E}var X=E;E=B;try{return k()}finally{E=X}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(k,B){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var X=E;E=k;try{return B()}finally{E=X}},e.unstable_scheduleCallback=function(k,B,X){var F=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?F+X:F):X=F,k){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=X+G,k={id:y++,callback:B,priorityLevel:k,startTime:X,expirationTime:G,sortIndex:-1},X>F?(k.sortIndex=X,t(h,k),n(m)===null&&k===n(h)&&(x?(I(V),V=-1):x=!0,de(M,X-F))):(k.sortIndex=G,t(m,k),D||S||(D=!0,Z||(Z=!0,ye()))),k},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(k){var B=E;return function(){var X=E;E=B;try{return k.apply(this,arguments)}finally{E=X}}}})(_p)),_p}var A_;function pA(){return A_||(A_=1,vp.exports=mA()),vp.exports}var Ep={exports:{}},on={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var w_;function hA(){if(w_)return on;w_=1;var e=D0();function t(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(m,h,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:h,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,on.createPortal=function(m,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return u(m,h,null,y)},on.flushSync=function(m){var h=c.T,y=i.p;try{if(c.T=null,i.p=2,m)return m()}finally{c.T=h,i.p=y,i.d.f()}},on.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(m,h))},on.prefetchDNS=function(m){typeof m=="string"&&i.d.D(m)},on.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var y=h.as,g=d(y,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?i.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:E,fetchPriority:S}):y==="script"&&i.d.X(m,{crossOrigin:g,integrity:E,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},on.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=d(h.as,h.crossOrigin);i.d.M(m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(m)},on.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,g=d(y,h.crossOrigin);i.d.L(m,y,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},on.preloadModule=function(m,h){if(typeof m=="string")if(h){var y=d(h.as,h.crossOrigin);i.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(m)},on.requestFormReset=function(m){i.d.r(m)},on.unstable_batchedUpdates=function(m,h){return m(h)},on.useFormState=function(m,h,y){return c.H.useFormState(m,h,y)},on.useFormStatus=function(){return c.H.useHostTransitionStatus()},on.version="19.2.7",on}var T_;function lE(){if(T_)return Ep.exports;T_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ep.exports=hA(),Ep.exports}/**
33
+ */var w_;function hA(){if(w_)return on;w_=1;var e=D0();function t(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(m,h,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:h,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,on.createPortal=function(m,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(m,h,null,y)},on.flushSync=function(m){var h=c.T,y=i.p;try{if(c.T=null,i.p=2,m)return m()}finally{c.T=h,i.p=y,i.d.f()}},on.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(m,h))},on.prefetchDNS=function(m){typeof m=="string"&&i.d.D(m)},on.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var y=h.as,g=d(y,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?i.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:E,fetchPriority:S}):y==="script"&&i.d.X(m,{crossOrigin:g,integrity:E,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},on.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=d(h.as,h.crossOrigin);i.d.M(m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(m)},on.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,g=d(y,h.crossOrigin);i.d.L(m,y,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},on.preloadModule=function(m,h){if(typeof m=="string")if(h){var y=d(h.as,h.crossOrigin);i.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(m)},on.requestFormReset=function(m){i.d.r(m)},on.unstable_batchedUpdates=function(m,h){return m(h)},on.useFormState=function(m,h,y){return c.H.useFormState(m,h,y)},on.useFormStatus=function(){return c.H.useHostTransitionStatus()},on.version="19.2.7",on}var T_;function lE(){if(T_)return Ep.exports;T_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ep.exports=hA(),Ep.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,22 +38,22 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var N_;function yA(){if(N_)return lu;N_=1;var e=pA(),t=D0(),n=lE();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function u(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function m(r){if(u(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=u(r),a===null)throw Error(i(188));return a!==r?null:r}for(var l=r,s=a;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return m(f),r;if(p===s)return m(f),a;p=p.sibling}throw Error(i(188))}if(l.return!==s.return)l=f,s=p;else{for(var _=!1,$=f.child;$;){if($===l){_=!0,l=f,s=p;break}if($===s){_=!0,s=f,l=p;break}$=$.sibling}if(!_){for($=p.child;$;){if($===l){_=!0,l=p,s=f;break}if($===s){_=!0,s=p,l=f;break}$=$.sibling}if(!_)throw Error(i(189))}}if(l.alternate!==s)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var g=Object.assign,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),A=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ye(r){return r===null||typeof r!="object"?null:(r=J&&r[J]||r["@@iterator"],typeof r=="function"?r:null)}var Ae=Symbol.for("react.client.reference");function j(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Ae?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case R:return"Profiler";case w:return"StrictMode";case M:return"Suspense";case Z:return"SuspenseList";case ne:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case D:return"Portal";case A:return r.displayName||"Context";case I:return(r._context.displayName||"Context")+".Consumer";case L:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case V:return a=r.displayName||null,a!==null?a:j(r.type)||"Memo";case fe:a=r._payload,r=r._init;try{return j(r(a))}catch{}}return null}var de=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},F=[],G=-1;function C(r){return{current:r}}function U(r){0>G||(r.current=F[G],F[G]=null,G--)}function W(r,a){G++,F[G]=r.current,r.current=a}var Y=C(null),te=C(null),z=C(null),T=C(null);function N(r,a){switch(W(z,a),W(te,r),W(Y,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?Gv(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=Gv(a),r=Zv(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}U(Y),W(Y,r)}function ie(){U(Y),U(te),U(z)}function ge(r){r.memoizedState!==null&&W(T,r);var a=Y.current,l=Zv(a,r.type);a!==l&&(W(te,r),W(Y,l))}function Se(r){te.current===r&&(U(Y),U(te)),T.current===r&&(U(T),nu._currentValue=X)}var he,we;function Ie(r){if(he===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);he=a&&a[1]||"",we=-1<l.stack.indexOf(`
41
+ */var N_;function yA(){if(N_)return ls;N_=1;var e=pA(),t=D0(),n=lE();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function m(r){if(s(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=s(r),a===null)throw Error(i(188));return a!==r?null:r}for(var l=r,u=a;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return m(f),r;if(p===u)return m(f),a;p=p.sibling}throw Error(i(188))}if(l.return!==u.return)l=f,u=p;else{for(var _=!1,$=f.child;$;){if($===l){_=!0,l=f,u=p;break}if($===u){_=!0,u=f,l=p;break}$=$.sibling}if(!_){for($=p.child;$;){if($===l){_=!0,l=p,u=f;break}if($===u){_=!0,u=p,l=f;break}$=$.sibling}if(!_)throw Error(i(189))}}if(l.alternate!==u)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var g=Object.assign,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),A=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ye(r){return r===null||typeof r!="object"?null:(r=J&&r[J]||r["@@iterator"],typeof r=="function"?r:null)}var Ae=Symbol.for("react.client.reference");function j(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Ae?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case R:return"Profiler";case w:return"StrictMode";case M:return"Suspense";case Z:return"SuspenseList";case ne:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case D:return"Portal";case A:return r.displayName||"Context";case I:return(r._context.displayName||"Context")+".Consumer";case L:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case V:return a=r.displayName||null,a!==null?a:j(r.type)||"Memo";case fe:a=r._payload,r=r._init;try{return j(r(a))}catch{}}return null}var de=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},F=[],G=-1;function C(r){return{current:r}}function U(r){0>G||(r.current=F[G],F[G]=null,G--)}function W(r,a){G++,F[G]=r.current,r.current=a}var Y=C(null),te=C(null),z=C(null),T=C(null);function N(r,a){switch(W(z,a),W(te,r),W(Y,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?Gv(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=Gv(a),r=Zv(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}U(Y),W(Y,r)}function ie(){U(Y),U(te),U(z)}function ge(r){r.memoizedState!==null&&W(T,r);var a=Y.current,l=Zv(a,r.type);a!==l&&(W(te,r),W(Y,l))}function Se(r){te.current===r&&(U(Y),U(te)),T.current===r&&(U(T),ns._currentValue=X)}var he,we;function Ie(r){if(he===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);he=a&&a[1]||"",we=-1<l.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+he+r+we}var me=!1;function De(r,a){if(!r||me)return"";me=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(a){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ee){var Q=ee}Reflect.construct(r,[],ce)}else{try{ce.call()}catch(ee){Q=ee}r.call(ce.prototype)}}else{try{throw Error()}catch(ee){Q=ee}(ce=r())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ee){if(ee&&Q&&typeof ee.stack=="string")return[ee.stack,Q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=s.DetermineComponentFrameRoot(),_=p[0],$=p[1];if(_&&$){var O=_.split(`
43
+ `+he+r+we}var me=!1;function De(r,a){if(!r||me)return"";me=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ee){var Q=ee}Reflect.construct(r,[],ce)}else{try{ce.call()}catch(ee){Q=ee}r.call(ce.prototype)}}else{try{throw Error()}catch(ee){Q=ee}(ce=r())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ee){if(ee&&Q&&typeof ee.stack=="string")return[ee.stack,Q.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),_=p[0],$=p[1];if(_&&$){var O=_.split(`
44
44
  `),K=$.split(`
45
- `);for(f=s=0;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;for(;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;if(s===O.length||f===K.length)for(s=O.length-1,f=K.length-1;1<=s&&0<=f&&O[s]!==K[f];)f--;for(;1<=s&&0<=f;s--,f--)if(O[s]!==K[f]){if(s!==1||f!==1)do if(s--,f--,0>f||O[s]!==K[f]){var ae=`
46
- `+O[s].replace(" at new "," at ");return r.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",r.displayName)),ae}while(1<=s&&0<=f);break}}}finally{me=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Ie(l):""}function ue(r,a){switch(r.tag){case 26:case 27:case 5:return Ie(r.type);case 16:return Ie("Lazy");case 13:return r.child!==a&&a!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return De(r.type,!1);case 11:return De(r.type.render,!1);case 1:return De(r.type,!0);case 31:return Ie("Activity");default:return""}}function _e(r){try{var a="",l=null;do a+=ue(r,l),l=r,r=r.return;while(r);return a}catch(s){return`
47
- Error generating stack: `+s.message+`
48
- `+s.stack}}var be=Object.prototype.hasOwnProperty,xe=e.unstable_scheduleCallback,$e=e.unstable_cancelCallback,Me=e.unstable_shouldYield,re=e.unstable_requestPaint,oe=e.unstable_now,Ce=e.unstable_getCurrentPriorityLevel,Ee=e.unstable_ImmediatePriority,Te=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,ke=e.unstable_LowPriority,qe=e.unstable_IdlePriority,Ue=e.log,ze=e.unstable_setDisableYieldValue,tt=null,rt=null;function Tt(r){if(typeof Ue=="function"&&ze(r),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(tt,r)}catch{}}var Ye=Math.clz32?Math.clz32:Nn,Hn=Math.log,ml=Math.LN2;function Nn(r){return r>>>=0,r===0?32:31-(Hn(r)/ml|0)|0}var gr=256,Mn=262144,ri=4194304;function Vn(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function pl(r,a,l){var s=r.pendingLanes;if(s===0)return 0;var f=0,p=r.suspendedLanes,_=r.pingedLanes;r=r.warmLanes;var $=s&134217727;return $!==0?(s=$&~p,s!==0?f=Vn(s):(_&=$,_!==0?f=Vn(_):l||(l=$&~r,l!==0&&(f=Vn(l))))):($=s&~p,$!==0?f=Vn($):_!==0?f=Vn(_):l||(l=s&~r,l!==0&&(f=Vn(l)))),f===0?0:a!==0&&a!==f&&(a&p)===0&&(p=f&-f,l=a&-a,p>=l||p===32&&(l&4194048)!==0)?a:f}function Rn(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function hl(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qi(){var r=ri;return ri<<=1,(ri&62914560)===0&&(ri=4194304),r}function sa(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function br(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Ju(r,a,l,s,f,p){var _=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var $=r.entanglements,O=r.expirationTimes,K=r.hiddenUpdates;for(l=_&~l;0<l;){var ae=31-Ye(l),ce=1<<ae;$[ae]=0,O[ae]=-1;var Q=K[ae];if(Q!==null)for(K[ae]=null,ae=0;ae<Q.length;ae++){var ee=Q[ae];ee!==null&&(ee.lane&=-536870913)}l&=~ce}s!==0&&Xu(r,s,0),p!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=p&~(_&~a))}function Xu(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var s=31-Ye(a);r.entangledLanes|=a,r.entanglements[s]=r.entanglements[s]|1073741824|l&261930}function es(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var s=31-Ye(l),f=1<<s;f&a|r[s]&a&&(r[s]|=a),l&=~f}}function Tr(r,a){var l=a&-a;return l=(l&42)!==0?1:dr(l),(l&(r.suspendedLanes|a))!==0?0:l}function dr(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function yl(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Ny(){var r=B.p;return r!==0?r:(r=window.event,r===void 0?32:h_(r.type))}function My(r,a){var l=B.p;try{return B.p=r,a()}finally{B.p=l}}var ca=Math.random().toString(36).slice(2),Qt="__reactFiber$"+ca,yn="__reactProps$"+ca,Ji="__reactContainer$"+ca,lf="__reactEvents$"+ca,X5="__reactListeners$"+ca,eC="__reactHandles$"+ca,Ry="__reactResources$"+ca,gl="__reactMarker$"+ca;function uf(r){delete r[Qt],delete r[yn],delete r[lf],delete r[X5],delete r[eC]}function Xi(r){var a=r[Qt];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Ji]||l[Qt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=Xv(r);r!==null;){if(l=r[Qt])return l;r=Xv(r)}return a}r=l,l=r.parentNode}return null}function eo(r){if(r=r[Qt]||r[Ji]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function bl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function to(r){var a=r[Ry];return a||(a=r[Ry]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Kt(r){r[gl]=!0}var Oy=new Set,ky={};function ai(r,a){no(r,a),no(r+"Capture",a)}function no(r,a){for(ky[r]=a,r=0;r<a.length;r++)Oy.add(a[r])}var tC=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),By={},Ly={};function nC(r){return be.call(Ly,r)?!0:be.call(By,r)?!1:tC.test(r)?Ly[r]=!0:(By[r]=!0,!1)}function ts(r,a,l){if(nC(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var s=a.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function ns(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function Nr(r,a,l,s){if(s===null)r.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+s)}}function Gn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Py(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function rC(r,a,l){var s=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,p=s.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return f.call(this)},set:function(_){l=""+_,p.call(this,_)}}),Object.defineProperty(r,a,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(_){l=""+_},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function sf(r){if(!r._valueTracker){var a=Py(r)?"checked":"value";r._valueTracker=rC(r,a,""+r[a])}}function Iy(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),s="";return r&&(s=Py(r)?r.checked?"true":"false":r.value),r=s,r!==l?(a.setValue(r),!0):!1}function rs(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var aC=/[\n"\\]/g;function Zn(r){return r.replace(aC,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function cf(r,a,l,s,f,p,_,$){r.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?r.type=_:r.removeAttribute("type"),a!=null?_==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Gn(a)):r.value!==""+Gn(a)&&(r.value=""+Gn(a)):_!=="submit"&&_!=="reset"||r.removeAttribute("value"),a!=null?df(r,_,Gn(a)):l!=null?df(r,_,Gn(l)):s!=null&&r.removeAttribute("value"),f==null&&p!=null&&(r.defaultChecked=!!p),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?r.name=""+Gn($):r.removeAttribute("name")}function Fy(r,a,l,s,f,p,_,$){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(r.type=p),a!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||a!=null)){sf(r);return}l=l!=null?""+Gn(l):"",a=a!=null?""+Gn(a):l,$||a===r.value||(r.value=a),r.defaultValue=a}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,r.checked=$?r.checked:!!s,r.defaultChecked=!!s,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.name=_),sf(r)}function df(r,a,l){a==="number"&&rs(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function ro(r,a,l,s){if(r=r.options,a){a={};for(var f=0;f<l.length;f++)a["$"+l[f]]=!0;for(l=0;l<r.length;l++)f=a.hasOwnProperty("$"+r[l].value),r[l].selected!==f&&(r[l].selected=f),f&&s&&(r[l].defaultSelected=!0)}else{for(l=""+Gn(l),a=null,f=0;f<r.length;f++){if(r[f].value===l){r[f].selected=!0,s&&(r[f].defaultSelected=!0);return}a!==null||r[f].disabled||(a=r[f])}a!==null&&(a.selected=!0)}}function jy(r,a,l){if(a!=null&&(a=""+Gn(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+Gn(l):""}function zy(r,a,l,s){if(a==null){if(s!=null){if(l!=null)throw Error(i(92));if(de(s)){if(1<s.length)throw Error(i(93));s=s[0]}l=s}l==null&&(l=""),a=l}l=Gn(a),r.defaultValue=l,s=r.textContent,s===l&&s!==""&&s!==null&&(r.value=s),sf(r)}function ao(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var iC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Uy(r,a,l){var s=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":s?r.setProperty(a,l):typeof l!="number"||l===0||iC.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function Hy(r,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||a!=null&&a.hasOwnProperty(s)||(s.indexOf("--")===0?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="");for(var f in a)s=a[f],a.hasOwnProperty(f)&&l[f]!==s&&Uy(r,f,s)}else for(var p in a)a.hasOwnProperty(p)&&Uy(r,p,a[p])}function ff(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),lC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function as(r){return lC.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Mr(){}var mf=null;function pf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var io=null,oo=null;function Vy(r){var a=eo(r);if(a&&(r=a.stateNode)){var l=r[yn]||null;e:switch(r=a.stateNode,a.type){case"input":if(cf(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Zn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var s=l[a];if(s!==r&&s.form===r.form){var f=s[yn]||null;if(!f)throw Error(i(90));cf(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<l.length;a++)s=l[a],s.form===r.form&&Iy(s)}break e;case"textarea":jy(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&ro(r,!!l.multiple,a,!1)}}}var hf=!1;function Gy(r,a,l){if(hf)return r(a,l);hf=!0;try{var s=r(a);return s}finally{if(hf=!1,(io!==null||oo!==null)&&(Gs(),io&&(a=io,r=oo,oo=io=null,Vy(a),r)))for(a=0;a<r.length;a++)Vy(r[a])}}function vl(r,a){var l=r.stateNode;if(l===null)return null;var s=l[yn]||null;if(s===null)return null;l=s[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(r=r.type,s=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!s;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var Rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yf=!1;if(Rr)try{var _l={};Object.defineProperty(_l,"passive",{get:function(){yf=!0}}),window.addEventListener("test",_l,_l),window.removeEventListener("test",_l,_l)}catch{yf=!1}var da=null,gf=null,is=null;function Zy(){if(is)return is;var r,a=gf,l=a.length,s,f="value"in da?da.value:da.textContent,p=f.length;for(r=0;r<l&&a[r]===f[r];r++);var _=l-r;for(s=1;s<=_&&a[l-s]===f[p-s];s++);return is=f.slice(r,1<s?1-s:void 0)}function os(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function ls(){return!0}function Yy(){return!1}function gn(r){function a(l,s,f,p,_){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=p,this.target=_,this.currentTarget=null;for(var $ in r)r.hasOwnProperty($)&&(l=r[$],this[$]=l?l(p):p[$]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ls:Yy,this.isPropagationStopped=Yy,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),a}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},us=gn(ii),El=g({},ii,{view:0,detail:0}),uC=gn(El),bf,vf,Sl,ss=g({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ef,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Sl&&(Sl&&r.type==="mousemove"?(bf=r.screenX-Sl.screenX,vf=r.screenY-Sl.screenY):vf=bf=0,Sl=r),bf)},movementY:function(r){return"movementY"in r?r.movementY:vf}}),qy=gn(ss),sC=g({},ss,{dataTransfer:0}),cC=gn(sC),dC=g({},El,{relatedTarget:0}),_f=gn(dC),fC=g({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),mC=gn(fC),pC=g({},ii,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),hC=gn(pC),yC=g({},ii,{data:0}),Ky=gn(yC),gC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _C(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=vC[r])?!!a[r]:!1}function Ef(){return _C}var EC=g({},El,{key:function(r){if(r.key){var a=gC[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=os(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?bC[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ef,charCode:function(r){return r.type==="keypress"?os(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?os(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),SC=gn(EC),DC=g({},ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wy=gn(DC),$C=g({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),xC=gn($C),CC=g({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),AC=gn(CC),wC=g({},ss,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),TC=gn(wC),NC=g({},ii,{newState:0,oldState:0}),MC=gn(NC),RC=[9,13,27,32],Sf=Rr&&"CompositionEvent"in window,Dl=null;Rr&&"documentMode"in document&&(Dl=document.documentMode);var OC=Rr&&"TextEvent"in window&&!Dl,Qy=Rr&&(!Sf||Dl&&8<Dl&&11>=Dl),Jy=" ",Xy=!1;function eg(r,a){switch(r){case"keyup":return RC.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var lo=!1;function kC(r,a){switch(r){case"compositionend":return tg(a);case"keypress":return a.which!==32?null:(Xy=!0,Jy);case"textInput":return r=a.data,r===Jy&&Xy?null:r;default:return null}}function BC(r,a){if(lo)return r==="compositionend"||!Sf&&eg(r,a)?(r=Zy(),is=gf=da=null,lo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Qy&&a.locale!=="ko"?null:a.data;default:return null}}var LC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ng(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!LC[r.type]:a==="textarea"}function rg(r,a,l,s){io?oo?oo.push(s):oo=[s]:io=s,a=Js(a,"onChange"),0<a.length&&(l=new us("onChange","change",null,l,s),r.push({event:l,listeners:a}))}var $l=null,xl=null;function PC(r){Fv(r,0)}function cs(r){var a=bl(r);if(Iy(a))return r}function ag(r,a){if(r==="change")return a}var ig=!1;if(Rr){var Df;if(Rr){var $f="oninput"in document;if(!$f){var og=document.createElement("div");og.setAttribute("oninput","return;"),$f=typeof og.oninput=="function"}Df=$f}else Df=!1;ig=Df&&(!document.documentMode||9<document.documentMode)}function lg(){$l&&($l.detachEvent("onpropertychange",ug),xl=$l=null)}function ug(r){if(r.propertyName==="value"&&cs(xl)){var a=[];rg(a,xl,r,pf(r)),Gy(PC,a)}}function IC(r,a,l){r==="focusin"?(lg(),$l=a,xl=l,$l.attachEvent("onpropertychange",ug)):r==="focusout"&&lg()}function FC(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return cs(xl)}function jC(r,a){if(r==="click")return cs(a)}function zC(r,a){if(r==="input"||r==="change")return cs(a)}function UC(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var On=typeof Object.is=="function"?Object.is:UC;function Cl(r,a){if(On(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),s=Object.keys(a);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!be.call(a,f)||!On(r[f],a[f]))return!1}return!0}function sg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function cg(r,a){var l=sg(r);r=0;for(var s;l;){if(l.nodeType===3){if(s=r+l.textContent.length,r<=a&&s>=a)return{node:l,offset:a-r};r=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=sg(l)}}function dg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?dg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function fg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=rs(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=rs(r.document)}return a}function xf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var HC=Rr&&"documentMode"in document&&11>=document.documentMode,uo=null,Cf=null,Al=null,Af=!1;function mg(r,a,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Af||uo==null||uo!==rs(s)||(s=uo,"selectionStart"in s&&xf(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Al&&Cl(Al,s)||(Al=s,s=Js(Cf,"onSelect"),0<s.length&&(a=new us("onSelect","select",null,a,l),r.push({event:a,listeners:s}),a.target=uo)))}function oi(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var so={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:oi("Animation","AnimationStart"),transitionrun:oi("Transition","TransitionRun"),transitionstart:oi("Transition","TransitionStart"),transitioncancel:oi("Transition","TransitionCancel"),transitionend:oi("Transition","TransitionEnd")},wf={},pg={};Rr&&(pg=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function li(r){if(wf[r])return wf[r];if(!so[r])return r;var a=so[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in pg)return wf[r]=a[l];return r}var hg=li("animationend"),yg=li("animationiteration"),gg=li("animationstart"),VC=li("transitionrun"),GC=li("transitionstart"),ZC=li("transitioncancel"),bg=li("transitionend"),vg=new Map,Tf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Tf.push("scrollEnd");function fr(r,a){vg.set(r,a),ai(a,[r])}var ds=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Yn=[],co=0,Nf=0;function fs(){for(var r=co,a=Nf=co=0;a<r;){var l=Yn[a];Yn[a++]=null;var s=Yn[a];Yn[a++]=null;var f=Yn[a];Yn[a++]=null;var p=Yn[a];if(Yn[a++]=null,s!==null&&f!==null){var _=s.pending;_===null?f.next=f:(f.next=_.next,_.next=f),s.pending=f}p!==0&&_g(l,f,p)}}function ms(r,a,l,s){Yn[co++]=r,Yn[co++]=a,Yn[co++]=l,Yn[co++]=s,Nf|=s,r.lanes|=s,r=r.alternate,r!==null&&(r.lanes|=s)}function Mf(r,a,l,s){return ms(r,a,l,s),ps(r)}function ui(r,a){return ms(r,null,null,a),ps(r)}function _g(r,a,l){r.lanes|=l;var s=r.alternate;s!==null&&(s.lanes|=l);for(var f=!1,p=r.return;p!==null;)p.childLanes|=l,s=p.alternate,s!==null&&(s.childLanes|=l),p.tag===22&&(r=p.stateNode,r===null||r._visibility&1||(f=!0)),r=p,p=p.return;return r.tag===3?(p=r.stateNode,f&&a!==null&&(f=31-Ye(l),r=p.hiddenUpdates,s=r[f],s===null?r[f]=[a]:s.push(a),a.lane=l|536870912),p):null}function ps(r){if(50<Kl)throw Kl=0,jm=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var fo={};function YC(r,a,l,s){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kn(r,a,l,s){return new YC(r,a,l,s)}function Rf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Or(r,a){var l=r.alternate;return l===null?(l=kn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Eg(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function hs(r,a,l,s,f,p){var _=0;if(s=r,typeof r=="function")Rf(r)&&(_=1);else if(typeof r=="string")_=J6(r,l,Y.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case ne:return r=kn(31,l,a,f),r.elementType=ne,r.lanes=p,r;case x:return si(l.children,f,p,a);case w:_=8,f|=24;break;case R:return r=kn(12,l,a,f|2),r.elementType=R,r.lanes=p,r;case M:return r=kn(13,l,a,f),r.elementType=M,r.lanes=p,r;case Z:return r=kn(19,l,a,f),r.elementType=Z,r.lanes=p,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case A:_=10;break e;case I:_=9;break e;case L:_=11;break e;case V:_=14;break e;case fe:_=16,s=null;break e}_=29,l=Error(i(130,r===null?"null":typeof r,"")),s=null}return a=kn(_,l,a,f),a.elementType=r,a.type=s,a.lanes=p,a}function si(r,a,l,s){return r=kn(7,r,s,a),r.lanes=l,r}function Of(r,a,l){return r=kn(6,r,null,a),r.lanes=l,r}function Sg(r){var a=kn(18,null,null,0);return a.stateNode=r,a}function kf(r,a,l){return a=kn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Dg=new WeakMap;function qn(r,a){if(typeof r=="object"&&r!==null){var l=Dg.get(r);return l!==void 0?l:(a={value:r,source:a,stack:_e(a)},Dg.set(r,a),a)}return{value:r,source:a,stack:_e(a)}}var mo=[],po=0,ys=null,wl=0,Kn=[],Wn=0,fa=null,vr=1,_r="";function kr(r,a){mo[po++]=wl,mo[po++]=ys,ys=r,wl=a}function $g(r,a,l){Kn[Wn++]=vr,Kn[Wn++]=_r,Kn[Wn++]=fa,fa=r;var s=vr;r=_r;var f=32-Ye(s)-1;s&=~(1<<f),l+=1;var p=32-Ye(a)+f;if(30<p){var _=f-f%5;p=(s&(1<<_)-1).toString(32),s>>=_,f-=_,vr=1<<32-Ye(a)+f|l<<f|s,_r=p+r}else vr=1<<p|l<<f|s,_r=r}function Bf(r){r.return!==null&&(kr(r,1),$g(r,1,0))}function Lf(r){for(;r===ys;)ys=mo[--po],mo[po]=null,wl=mo[--po],mo[po]=null;for(;r===fa;)fa=Kn[--Wn],Kn[Wn]=null,_r=Kn[--Wn],Kn[Wn]=null,vr=Kn[--Wn],Kn[Wn]=null}function xg(r,a){Kn[Wn++]=vr,Kn[Wn++]=_r,Kn[Wn++]=fa,vr=a.id,_r=a.overflow,fa=r}var Jt=null,Dt=null,et=!1,ma=null,Qn=!1,Pf=Error(i(519));function pa(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(qn(a,r)),Pf}function Cg(r){var a=r.stateNode,l=r.type,s=r.memoizedProps;switch(a[Qt]=r,a[yn]=s,l){case"dialog":Qe("cancel",a),Qe("close",a);break;case"iframe":case"object":case"embed":Qe("load",a);break;case"video":case"audio":for(l=0;l<Ql.length;l++)Qe(Ql[l],a);break;case"source":Qe("error",a);break;case"img":case"image":case"link":Qe("error",a),Qe("load",a);break;case"details":Qe("toggle",a);break;case"input":Qe("invalid",a),Fy(a,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Qe("invalid",a);break;case"textarea":Qe("invalid",a),zy(a,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||s.suppressHydrationWarning===!0||Hv(a.textContent,l)?(s.popover!=null&&(Qe("beforetoggle",a),Qe("toggle",a)),s.onScroll!=null&&Qe("scroll",a),s.onScrollEnd!=null&&Qe("scrollend",a),s.onClick!=null&&(a.onclick=Mr),a=!0):a=!1,a||pa(r,!0)}function Ag(r){for(Jt=r.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:Jt=Jt.return}}function ho(r){if(r!==Jt)return!1;if(!et)return Ag(r),et=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||tp(r.type,r.memoizedProps)),l=!l),l&&Dt&&pa(r),Ag(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Dt=Jv(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Dt=Jv(r)}else a===27?(a=Dt,wa(r.type)?(r=op,op=null,Dt=r):Dt=a):Dt=Jt?Xn(r.stateNode.nextSibling):null;return!0}function ci(){Dt=Jt=null,et=!1}function If(){var r=ma;return r!==null&&(En===null?En=r:En.push.apply(En,r),ma=null),r}function Tl(r){ma===null?ma=[r]:ma.push(r)}var Ff=C(null),di=null,Br=null;function ha(r,a,l){W(Ff,a._currentValue),a._currentValue=l}function Lr(r){r._currentValue=Ff.current,U(Ff)}function jf(r,a,l){for(;r!==null;){var s=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,s!==null&&(s.childLanes|=a)):s!==null&&(s.childLanes&a)!==a&&(s.childLanes|=a),r===l)break;r=r.return}}function zf(r,a,l,s){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var p=f.dependencies;if(p!==null){var _=f.child;p=p.firstContext;e:for(;p!==null;){var $=p;p=f;for(var O=0;O<a.length;O++)if($.context===a[O]){p.lanes|=l,$=p.alternate,$!==null&&($.lanes|=l),jf(p.return,l,r),s||(_=null);break e}p=$.next}}else if(f.tag===18){if(_=f.return,_===null)throw Error(i(341));_.lanes|=l,p=_.alternate,p!==null&&(p.lanes|=l),jf(_,l,r),_=null}else _=f.child;if(_!==null)_.return=f;else for(_=f;_!==null;){if(_===r){_=null;break}if(f=_.sibling,f!==null){f.return=_.return,_=f;break}_=_.return}f=_}}function yo(r,a,l,s){r=null;for(var f=a,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var _=f.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var $=f.type;On(f.pendingProps.value,_.value)||(r!==null?r.push($):r=[$])}}else if(f===T.current){if(_=f.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(nu):r=[nu])}f=f.return}r!==null&&zf(a,r,l,s),a.flags|=262144}function gs(r){for(r=r.firstContext;r!==null;){if(!On(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function fi(r){di=r,Br=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Xt(r){return wg(di,r)}function bs(r,a){return di===null&&fi(r),wg(r,a)}function wg(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},Br===null){if(r===null)throw Error(i(308));Br=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Br=Br.next=a;return l}var qC=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,s){r.push(s)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},KC=e.unstable_scheduleCallback,WC=e.unstable_NormalPriority,Ft={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uf(){return{controller:new qC,data:new Map,refCount:0}}function Nl(r){r.refCount--,r.refCount===0&&KC(WC,function(){r.controller.abort()})}var Ml=null,Hf=0,go=0,bo=null;function QC(r,a){if(Ml===null){var l=Ml=[];Hf=0,go=Zm(),bo={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Hf++,a.then(Tg,Tg),a}function Tg(){if(--Hf===0&&Ml!==null){bo!==null&&(bo.status="fulfilled");var r=Ml;Ml=null,go=0,bo=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function JC(r,a){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return r.then(function(){s.status="fulfilled",s.value=a;for(var f=0;f<l.length;f++)(0,l[f])(a)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var Ng=k.S;k.S=function(r,a){mv=oe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&QC(r,a),Ng!==null&&Ng(r,a)};var mi=C(null);function Vf(){var r=mi.current;return r!==null?r:vt.pooledCache}function vs(r,a){a===null?W(mi,mi.current):W(mi,a.pool)}function Mg(){var r=Vf();return r===null?null:{parent:Ft._currentValue,pool:r}}var vo=Error(i(460)),Gf=Error(i(474)),_s=Error(i(542)),Es={then:function(){}};function Rg(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Og(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(Mr,Mr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Bg(r),r;default:if(typeof a.status=="string")a.then(Mr,Mr);else{if(r=vt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(s){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=s}},function(s){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=s}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Bg(r),r}throw hi=a,vo}}function pi(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(hi=l,vo):l}}var hi=null;function kg(){if(hi===null)throw Error(i(459));var r=hi;return hi=null,r}function Bg(r){if(r===vo||r===_s)throw Error(i(483))}var _o=null,Rl=0;function Ss(r){var a=Rl;return Rl+=1,_o===null&&(_o=[]),Og(_o,r,a)}function Ol(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Ds(r,a){throw a.$$typeof===E?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Lg(r){function a(H,P){if(r){var q=H.deletions;q===null?(H.deletions=[P],H.flags|=16):q.push(P)}}function l(H,P){if(!r)return null;for(;P!==null;)a(H,P),P=P.sibling;return null}function s(H){for(var P=new Map;H!==null;)H.key!==null?P.set(H.key,H):P.set(H.index,H),H=H.sibling;return P}function f(H,P){return H=Or(H,P),H.index=0,H.sibling=null,H}function p(H,P,q){return H.index=q,r?(q=H.alternate,q!==null?(q=q.index,q<P?(H.flags|=67108866,P):q):(H.flags|=67108866,P)):(H.flags|=1048576,P)}function _(H){return r&&H.alternate===null&&(H.flags|=67108866),H}function $(H,P,q,le){return P===null||P.tag!==6?(P=Of(q,H.mode,le),P.return=H,P):(P=f(P,q),P.return=H,P)}function O(H,P,q,le){var Be=q.type;return Be===x?ae(H,P,q.props.children,le,q.key):P!==null&&(P.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===fe&&pi(Be)===P.type)?(P=f(P,q.props),Ol(P,q),P.return=H,P):(P=hs(q.type,q.key,q.props,null,H.mode,le),Ol(P,q),P.return=H,P)}function K(H,P,q,le){return P===null||P.tag!==4||P.stateNode.containerInfo!==q.containerInfo||P.stateNode.implementation!==q.implementation?(P=kf(q,H.mode,le),P.return=H,P):(P=f(P,q.children||[]),P.return=H,P)}function ae(H,P,q,le,Be){return P===null||P.tag!==7?(P=si(q,H.mode,le,Be),P.return=H,P):(P=f(P,q),P.return=H,P)}function ce(H,P,q){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=Of(""+P,H.mode,q),P.return=H,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return q=hs(P.type,P.key,P.props,null,H.mode,q),Ol(q,P),q.return=H,q;case D:return P=kf(P,H.mode,q),P.return=H,P;case fe:return P=pi(P),ce(H,P,q)}if(de(P)||ye(P))return P=si(P,H.mode,q,null),P.return=H,P;if(typeof P.then=="function")return ce(H,Ss(P),q);if(P.$$typeof===A)return ce(H,bs(H,P),q);Ds(H,P)}return null}function Q(H,P,q,le){var Be=P!==null?P.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Be!==null?null:$(H,P,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===Be?O(H,P,q,le):null;case D:return q.key===Be?K(H,P,q,le):null;case fe:return q=pi(q),Q(H,P,q,le)}if(de(q)||ye(q))return Be!==null?null:ae(H,P,q,le,null);if(typeof q.then=="function")return Q(H,P,Ss(q),le);if(q.$$typeof===A)return Q(H,P,bs(H,q),le);Ds(H,q)}return null}function ee(H,P,q,le,Be){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return H=H.get(q)||null,$(P,H,""+le,Be);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case S:return H=H.get(le.key===null?q:le.key)||null,O(P,H,le,Be);case D:return H=H.get(le.key===null?q:le.key)||null,K(P,H,le,Be);case fe:return le=pi(le),ee(H,P,q,le,Be)}if(de(le)||ye(le))return H=H.get(q)||null,ae(P,H,le,Be,null);if(typeof le.then=="function")return ee(H,P,q,Ss(le),Be);if(le.$$typeof===A)return ee(H,P,q,bs(P,le),Be);Ds(P,le)}return null}function Ne(H,P,q,le){for(var Be=null,at=null,Oe=P,Ze=P=0,Xe=null;Oe!==null&&Ze<q.length;Ze++){Oe.index>Ze?(Xe=Oe,Oe=null):Xe=Oe.sibling;var it=Q(H,Oe,q[Ze],le);if(it===null){Oe===null&&(Oe=Xe);break}r&&Oe&&it.alternate===null&&a(H,Oe),P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it,Oe=Xe}if(Ze===q.length)return l(H,Oe),et&&kr(H,Ze),Be;if(Oe===null){for(;Ze<q.length;Ze++)Oe=ce(H,q[Ze],le),Oe!==null&&(P=p(Oe,P,Ze),at===null?Be=Oe:at.sibling=Oe,at=Oe);return et&&kr(H,Ze),Be}for(Oe=s(Oe);Ze<q.length;Ze++)Xe=ee(Oe,H,Ze,q[Ze],le),Xe!==null&&(r&&Xe.alternate!==null&&Oe.delete(Xe.key===null?Ze:Xe.key),P=p(Xe,P,Ze),at===null?Be=Xe:at.sibling=Xe,at=Xe);return r&&Oe.forEach(function(Oa){return a(H,Oa)}),et&&kr(H,Ze),Be}function Fe(H,P,q,le){if(q==null)throw Error(i(151));for(var Be=null,at=null,Oe=P,Ze=P=0,Xe=null,it=q.next();Oe!==null&&!it.done;Ze++,it=q.next()){Oe.index>Ze?(Xe=Oe,Oe=null):Xe=Oe.sibling;var Oa=Q(H,Oe,it.value,le);if(Oa===null){Oe===null&&(Oe=Xe);break}r&&Oe&&Oa.alternate===null&&a(H,Oe),P=p(Oa,P,Ze),at===null?Be=Oa:at.sibling=Oa,at=Oa,Oe=Xe}if(it.done)return l(H,Oe),et&&kr(H,Ze),Be;if(Oe===null){for(;!it.done;Ze++,it=q.next())it=ce(H,it.value,le),it!==null&&(P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it);return et&&kr(H,Ze),Be}for(Oe=s(Oe);!it.done;Ze++,it=q.next())it=ee(Oe,H,Ze,it.value,le),it!==null&&(r&&it.alternate!==null&&Oe.delete(it.key===null?Ze:it.key),P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it);return r&&Oe.forEach(function(sA){return a(H,sA)}),et&&kr(H,Ze),Be}function gt(H,P,q,le){if(typeof q=="object"&&q!==null&&q.type===x&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case S:e:{for(var Be=q.key;P!==null;){if(P.key===Be){if(Be=q.type,Be===x){if(P.tag===7){l(H,P.sibling),le=f(P,q.props.children),le.return=H,H=le;break e}}else if(P.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===fe&&pi(Be)===P.type){l(H,P.sibling),le=f(P,q.props),Ol(le,q),le.return=H,H=le;break e}l(H,P);break}else a(H,P);P=P.sibling}q.type===x?(le=si(q.props.children,H.mode,le,q.key),le.return=H,H=le):(le=hs(q.type,q.key,q.props,null,H.mode,le),Ol(le,q),le.return=H,H=le)}return _(H);case D:e:{for(Be=q.key;P!==null;){if(P.key===Be)if(P.tag===4&&P.stateNode.containerInfo===q.containerInfo&&P.stateNode.implementation===q.implementation){l(H,P.sibling),le=f(P,q.children||[]),le.return=H,H=le;break e}else{l(H,P);break}else a(H,P);P=P.sibling}le=kf(q,H.mode,le),le.return=H,H=le}return _(H);case fe:return q=pi(q),gt(H,P,q,le)}if(de(q))return Ne(H,P,q,le);if(ye(q)){if(Be=ye(q),typeof Be!="function")throw Error(i(150));return q=Be.call(q),Fe(H,P,q,le)}if(typeof q.then=="function")return gt(H,P,Ss(q),le);if(q.$$typeof===A)return gt(H,P,bs(H,q),le);Ds(H,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,P!==null&&P.tag===6?(l(H,P.sibling),le=f(P,q),le.return=H,H=le):(l(H,P),le=Of(q,H.mode,le),le.return=H,H=le),_(H)):l(H,P)}return function(H,P,q,le){try{Rl=0;var Be=gt(H,P,q,le);return _o=null,Be}catch(Oe){if(Oe===vo||Oe===_s)throw Oe;var at=kn(29,Oe,null,H.mode);return at.lanes=le,at.return=H,at}finally{}}}var yi=Lg(!0),Pg=Lg(!1),ya=!1;function Zf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yf(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ga(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ba(r,a,l){var s=r.updateQueue;if(s===null)return null;if(s=s.shared,(lt&2)!==0){var f=s.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a,a=ps(r),_g(r,null,l),a}return ms(r,s,a,l),ps(r)}function kl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var s=a.lanes;s&=r.pendingLanes,l|=s,a.lanes=l,es(r,l)}}function qf(r,a){var l=r.updateQueue,s=r.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var _={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?f=p=_:p=p.next=_,l=l.next}while(l!==null);p===null?f=p=a:p=p.next=a}else f=p=a;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var Kf=!1;function Bl(){if(Kf){var r=bo;if(r!==null)throw r}}function Ll(r,a,l,s){Kf=!1;var f=r.updateQueue;ya=!1;var p=f.firstBaseUpdate,_=f.lastBaseUpdate,$=f.shared.pending;if($!==null){f.shared.pending=null;var O=$,K=O.next;O.next=null,_===null?p=K:_.next=K,_=O;var ae=r.alternate;ae!==null&&(ae=ae.updateQueue,$=ae.lastBaseUpdate,$!==_&&($===null?ae.firstBaseUpdate=K:$.next=K,ae.lastBaseUpdate=O))}if(p!==null){var ce=f.baseState;_=0,ae=K=O=null,$=p;do{var Q=$.lane&-536870913,ee=Q!==$.lane;if(ee?(Je&Q)===Q:(s&Q)===Q){Q!==0&&Q===go&&(Kf=!0),ae!==null&&(ae=ae.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var Ne=r,Fe=$;Q=a;var gt=l;switch(Fe.tag){case 1:if(Ne=Fe.payload,typeof Ne=="function"){ce=Ne.call(gt,ce,Q);break e}ce=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Fe.payload,Q=typeof Ne=="function"?Ne.call(gt,ce,Q):Ne,Q==null)break e;ce=g({},ce,Q);break e;case 2:ya=!0}}Q=$.callback,Q!==null&&(r.flags|=64,ee&&(r.flags|=8192),ee=f.callbacks,ee===null?f.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ae===null?(K=ae=ee,O=ce):ae=ae.next=ee,_|=Q;if($=$.next,$===null){if($=f.shared.pending,$===null)break;ee=$,$=ee.next,ee.next=null,f.lastBaseUpdate=ee,f.shared.pending=null}}while(!0);ae===null&&(O=ce),f.baseState=O,f.firstBaseUpdate=K,f.lastBaseUpdate=ae,p===null&&(f.shared.lanes=0),Da|=_,r.lanes=_,r.memoizedState=ce}}function Ig(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Fg(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)Ig(l[r],a)}var Eo=C(null),$s=C(0);function jg(r,a){r=Gr,W($s,r),W(Eo,a),Gr=r|a.baseLanes}function Wf(){W($s,Gr),W(Eo,Eo.current)}function Qf(){Gr=$s.current,U(Eo),U($s)}var Bn=C(null),Jn=null;function va(r){var a=r.alternate;W(Lt,Lt.current&1),W(Bn,r),Jn===null&&(a===null||Eo.current!==null||a.memoizedState!==null)&&(Jn=r)}function Jf(r){W(Lt,Lt.current),W(Bn,r),Jn===null&&(Jn=r)}function zg(r){r.tag===22?(W(Lt,Lt.current),W(Bn,r),Jn===null&&(Jn=r)):_a()}function _a(){W(Lt,Lt.current),W(Bn,Bn.current)}function Ln(r){U(Bn),Jn===r&&(Jn=null),U(Lt)}var Lt=C(0);function xs(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ap(l)||ip(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Pr=0,Ge=null,ht=null,jt=null,Cs=!1,So=!1,gi=!1,As=0,Pl=0,Do=null,XC=0;function Nt(){throw Error(i(321))}function Xf(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!On(r[l],a[l]))return!1;return!0}function em(r,a,l,s,f,p){return Pr=p,Ge=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,k.H=r===null||r.memoizedState===null?$b:hm,gi=!1,p=l(s,f),gi=!1,So&&(p=Hg(a,l,s,f)),Ug(r),p}function Ug(r){k.H=jl;var a=ht!==null&&ht.next!==null;if(Pr=0,jt=ht=Ge=null,Cs=!1,Pl=0,Do=null,a)throw Error(i(300));r===null||zt||(r=r.dependencies,r!==null&&gs(r)&&(zt=!0))}function Hg(r,a,l,s){Ge=r;var f=0;do{if(So&&(Do=null),Pl=0,So=!1,25<=f)throw Error(i(301));if(f+=1,jt=ht=null,r.updateQueue!=null){var p=r.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}k.H=xb,p=a(l,s)}while(So);return p}function e6(){var r=k.H,a=r.useState()[0];return a=typeof a.then=="function"?Il(a):a,r=r.useState()[0],(ht!==null?ht.memoizedState:null)!==r&&(Ge.flags|=1024),a}function tm(){var r=As!==0;return As=0,r}function nm(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function rm(r){if(Cs){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Cs=!1}Pr=0,jt=ht=Ge=null,So=!1,Pl=As=0,Do=null}function cn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Ge.memoizedState=jt=r:jt=jt.next=r,jt}function Pt(){if(ht===null){var r=Ge.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var a=jt===null?Ge.memoizedState:jt.next;if(a!==null)jt=a,ht=r;else{if(r===null)throw Ge.alternate===null?Error(i(467)):Error(i(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},jt===null?Ge.memoizedState=jt=r:jt=jt.next=r}return jt}function ws(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Il(r){var a=Pl;return Pl+=1,Do===null&&(Do=[]),r=Og(Do,r,a),a=Ge,(jt===null?a.memoizedState:jt.next)===null&&(a=a.alternate,k.H=a===null||a.memoizedState===null?$b:hm),r}function Ts(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Il(r);if(r.$$typeof===A)return Xt(r)}throw Error(i(438,String(r)))}function am(r){var a=null,l=Ge.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var s=Ge.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(a={data:s.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=ws(),Ge.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),s=0;s<r;s++)l[s]=pe;return a.index++,l}function Ir(r,a){return typeof a=="function"?a(r):a}function Ns(r){var a=Pt();return im(a,ht,r)}function im(r,a,l){var s=r.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=l;var f=r.baseQueue,p=s.pending;if(p!==null){if(f!==null){var _=f.next;f.next=p.next,p.next=_}a.baseQueue=f=p,s.pending=null}if(p=r.baseState,f===null)r.memoizedState=p;else{a=f.next;var $=_=null,O=null,K=a,ae=!1;do{var ce=K.lane&-536870913;if(ce!==K.lane?(Je&ce)===ce:(Pr&ce)===ce){var Q=K.revertLane;if(Q===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ce===go&&(ae=!0);else if((Pr&Q)===Q){K=K.next,Q===go&&(ae=!0);continue}else ce={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?($=O=ce,_=p):O=O.next=ce,Ge.lanes|=Q,Da|=Q;ce=K.action,gi&&l(p,ce),p=K.hasEagerState?K.eagerState:l(p,ce)}else Q={lane:ce,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?($=O=Q,_=p):O=O.next=Q,Ge.lanes|=ce,Da|=ce;K=K.next}while(K!==null&&K!==a);if(O===null?_=p:O.next=$,!On(p,r.memoizedState)&&(zt=!0,ae&&(l=bo,l!==null)))throw l;r.memoizedState=p,r.baseState=_,r.baseQueue=O,s.lastRenderedState=p}return f===null&&(s.lanes=0),[r.memoizedState,s.dispatch]}function om(r){var a=Pt(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var s=l.dispatch,f=l.pending,p=a.memoizedState;if(f!==null){l.pending=null;var _=f=f.next;do p=r(p,_.action),_=_.next;while(_!==f);On(p,a.memoizedState)||(zt=!0),a.memoizedState=p,a.baseQueue===null&&(a.baseState=p),l.lastRenderedState=p}return[p,s]}function Vg(r,a,l){var s=Ge,f=Pt(),p=et;if(p){if(l===void 0)throw Error(i(407));l=l()}else l=a();var _=!On((ht||f).memoizedState,l);if(_&&(f.memoizedState=l,zt=!0),f=f.queue,sm(Yg.bind(null,s,f,r),[r]),f.getSnapshot!==a||_||jt!==null&&jt.memoizedState.tag&1){if(s.flags|=2048,$o(9,{destroy:void 0},Zg.bind(null,s,f,l,a),null),vt===null)throw Error(i(349));p||(Pr&127)!==0||Gg(s,a,l)}return l}function Gg(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Ge.updateQueue,a===null?(a=ws(),Ge.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function Zg(r,a,l,s){a.value=l,a.getSnapshot=s,qg(a)&&Kg(r)}function Yg(r,a,l){return l(function(){qg(a)&&Kg(r)})}function qg(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!On(r,l)}catch{return!0}}function Kg(r){var a=ui(r,2);a!==null&&Sn(a,r,2)}function lm(r){var a=cn();if(typeof r=="function"){var l=r;if(r=l(),gi){Tt(!0);try{l()}finally{Tt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:r},a}function Wg(r,a,l,s){return r.baseState=l,im(r,ht,typeof s=="function"?s:Ir)}function t6(r,a,l,s,f){if(Os(r))throw Error(i(485));if(r=a.action,r!==null){var p={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){p.listeners.push(_)}};k.T!==null?l(!0):p.isTransition=!1,s(p),l=a.pending,l===null?(p.next=a.pending=p,Qg(a,p)):(p.next=l.next,a.pending=l.next=p)}}function Qg(r,a){var l=a.action,s=a.payload,f=r.state;if(a.isTransition){var p=k.T,_={};k.T=_;try{var $=l(f,s),O=k.S;O!==null&&O(_,$),Jg(r,a,$)}catch(K){um(r,a,K)}finally{p!==null&&_.types!==null&&(p.types=_.types),k.T=p}}else try{p=l(f,s),Jg(r,a,p)}catch(K){um(r,a,K)}}function Jg(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){Xg(r,a,s)},function(s){return um(r,a,s)}):Xg(r,a,l)}function Xg(r,a,l){a.status="fulfilled",a.value=l,eb(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,Qg(r,l)))}function um(r,a,l){var s=r.pending;if(r.pending=null,s!==null){s=s.next;do a.status="rejected",a.reason=l,eb(a),a=a.next;while(a!==s)}r.action=null}function eb(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function tb(r,a){return a}function nb(r,a){if(et){var l=vt.formState;if(l!==null){e:{var s=Ge;if(et){if(Dt){t:{for(var f=Dt,p=Qn;f.nodeType!==8;){if(!p){f=null;break t}if(f=Xn(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){Dt=Xn(f.nextSibling),s=f.data==="F!";break e}}pa(s)}s=!1}s&&(a=l[0])}}return l=cn(),l.memoizedState=l.baseState=a,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tb,lastRenderedState:a},l.queue=s,l=Eb.bind(null,Ge,s),s.dispatch=l,s=lm(!1),p=pm.bind(null,Ge,!1,s.queue),s=cn(),f={state:a,dispatch:null,action:r,pending:null},s.queue=f,l=t6.bind(null,Ge,f,p,l),f.dispatch=l,s.memoizedState=r,[a,l,!1]}function rb(r){var a=Pt();return ab(a,ht,r)}function ab(r,a,l){if(a=im(r,a,tb)[0],r=Ns(Ir)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var s=Il(a)}catch(_){throw _===vo?_s:_}else s=a;a=Pt();var f=a.queue,p=f.dispatch;return l!==a.memoizedState&&(Ge.flags|=2048,$o(9,{destroy:void 0},n6.bind(null,f,l),null)),[s,p,r]}function n6(r,a){r.action=a}function ib(r){var a=Pt(),l=ht;if(l!==null)return ab(a,l,r);Pt(),a=a.memoizedState,l=Pt();var s=l.queue.dispatch;return l.memoizedState=r,[a,s,!1]}function $o(r,a,l,s){return r={tag:r,create:l,deps:s,inst:a,next:null},a=Ge.updateQueue,a===null&&(a=ws(),Ge.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(s=l.next,l.next=r,r.next=s,a.lastEffect=r),r}function ob(){return Pt().memoizedState}function Ms(r,a,l,s){var f=cn();Ge.flags|=r,f.memoizedState=$o(1|a,{destroy:void 0},l,s===void 0?null:s)}function Rs(r,a,l,s){var f=Pt();s=s===void 0?null:s;var p=f.memoizedState.inst;ht!==null&&s!==null&&Xf(s,ht.memoizedState.deps)?f.memoizedState=$o(a,p,l,s):(Ge.flags|=r,f.memoizedState=$o(1|a,p,l,s))}function lb(r,a){Ms(8390656,8,r,a)}function sm(r,a){Rs(2048,8,r,a)}function r6(r){Ge.flags|=4;var a=Ge.updateQueue;if(a===null)a=ws(),Ge.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function ub(r){var a=Pt().memoizedState;return r6({ref:a,nextImpl:r}),function(){if((lt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function sb(r,a){return Rs(4,2,r,a)}function cb(r,a){return Rs(4,4,r,a)}function db(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function fb(r,a,l){l=l!=null?l.concat([r]):null,Rs(4,4,db.bind(null,a,r),l)}function cm(){}function mb(r,a){var l=Pt();a=a===void 0?null:a;var s=l.memoizedState;return a!==null&&Xf(a,s[1])?s[0]:(l.memoizedState=[r,a],r)}function pb(r,a){var l=Pt();a=a===void 0?null:a;var s=l.memoizedState;if(a!==null&&Xf(a,s[1]))return s[0];if(s=r(),gi){Tt(!0);try{r()}finally{Tt(!1)}}return l.memoizedState=[s,a],s}function dm(r,a,l){return l===void 0||(Pr&1073741824)!==0&&(Je&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=hv(),Ge.lanes|=r,Da|=r,l)}function hb(r,a,l,s){return On(l,a)?l:Eo.current!==null?(r=dm(r,l,s),On(r,a)||(zt=!0),r):(Pr&42)===0||(Pr&1073741824)!==0&&(Je&261930)===0?(zt=!0,r.memoizedState=l):(r=hv(),Ge.lanes|=r,Da|=r,a)}function yb(r,a,l,s,f){var p=B.p;B.p=p!==0&&8>p?p:8;var _=k.T,$={};k.T=$,pm(r,!1,a,l);try{var O=f(),K=k.S;if(K!==null&&K($,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var ae=JC(O,s);Fl(r,a,ae,Fn(r))}else Fl(r,a,s,Fn(r))}catch(ce){Fl(r,a,{then:function(){},status:"rejected",reason:ce},Fn())}finally{B.p=p,_!==null&&$.types!==null&&(_.types=$.types),k.T=_}}function a6(){}function fm(r,a,l,s){if(r.tag!==5)throw Error(i(476));var f=gb(r).queue;yb(r,f,a,X,l===null?a6:function(){return bb(r),l(s)})}function gb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:X},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function bb(r){var a=gb(r);a.next===null&&(a=r.alternate.memoizedState),Fl(r,a.next.queue,{},Fn())}function mm(){return Xt(nu)}function vb(){return Pt().memoizedState}function _b(){return Pt().memoizedState}function i6(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=Fn();r=ga(l);var s=ba(a,r,l);s!==null&&(Sn(s,a,l),kl(s,a,l)),a={cache:Uf()},r.payload=a;return}a=a.return}}function o6(r,a,l){var s=Fn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Os(r)?Sb(a,l):(l=Mf(r,a,l,s),l!==null&&(Sn(l,r,s),Db(l,a,s)))}function Eb(r,a,l){var s=Fn();Fl(r,a,l,s)}function Fl(r,a,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Os(r))Sb(a,f);else{var p=r.alternate;if(r.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var _=a.lastRenderedState,$=p(_,l);if(f.hasEagerState=!0,f.eagerState=$,On($,_))return ms(r,a,f,0),vt===null&&fs(),!1}catch{}finally{}if(l=Mf(r,a,f,s),l!==null)return Sn(l,r,s),Db(l,a,s),!0}return!1}function pm(r,a,l,s){if(s={lane:2,revertLane:Zm(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Os(r)){if(a)throw Error(i(479))}else a=Mf(r,l,s,2),a!==null&&Sn(a,r,2)}function Os(r){var a=r.alternate;return r===Ge||a!==null&&a===Ge}function Sb(r,a){So=Cs=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function Db(r,a,l){if((l&4194048)!==0){var s=a.lanes;s&=r.pendingLanes,l|=s,a.lanes=l,es(r,l)}}var jl={readContext:Xt,use:Ts,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};jl.useEffectEvent=Nt;var $b={readContext:Xt,use:Ts,useCallback:function(r,a){return cn().memoizedState=[r,a===void 0?null:a],r},useContext:Xt,useEffect:lb,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,Ms(4194308,4,db.bind(null,a,r),l)},useLayoutEffect:function(r,a){return Ms(4194308,4,r,a)},useInsertionEffect:function(r,a){Ms(4,2,r,a)},useMemo:function(r,a){var l=cn();a=a===void 0?null:a;var s=r();if(gi){Tt(!0);try{r()}finally{Tt(!1)}}return l.memoizedState=[s,a],s},useReducer:function(r,a,l){var s=cn();if(l!==void 0){var f=l(a);if(gi){Tt(!0);try{l(a)}finally{Tt(!1)}}}else f=a;return s.memoizedState=s.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},s.queue=r,r=r.dispatch=o6.bind(null,Ge,r),[s.memoizedState,r]},useRef:function(r){var a=cn();return r={current:r},a.memoizedState=r},useState:function(r){r=lm(r);var a=r.queue,l=Eb.bind(null,Ge,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:cm,useDeferredValue:function(r,a){var l=cn();return dm(l,r,a)},useTransition:function(){var r=lm(!1);return r=yb.bind(null,Ge,r.queue,!0,!1),cn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var s=Ge,f=cn();if(et){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),vt===null)throw Error(i(349));(Je&127)!==0||Gg(s,a,l)}f.memoizedState=l;var p={value:l,getSnapshot:a};return f.queue=p,lb(Yg.bind(null,s,p,r),[r]),s.flags|=2048,$o(9,{destroy:void 0},Zg.bind(null,s,p,l,a),null),l},useId:function(){var r=cn(),a=vt.identifierPrefix;if(et){var l=_r,s=vr;l=(s&~(1<<32-Ye(s)-1)).toString(32)+l,a="_"+a+"R_"+l,l=As++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=XC++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:mm,useFormState:nb,useActionState:nb,useOptimistic:function(r){var a=cn();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=pm.bind(null,Ge,!0,l),l.dispatch=a,[r,a]},useMemoCache:am,useCacheRefresh:function(){return cn().memoizedState=i6.bind(null,Ge)},useEffectEvent:function(r){var a=cn(),l={impl:r};return a.memoizedState=l,function(){if((lt&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},hm={readContext:Xt,use:Ts,useCallback:mb,useContext:Xt,useEffect:sm,useImperativeHandle:fb,useInsertionEffect:sb,useLayoutEffect:cb,useMemo:pb,useReducer:Ns,useRef:ob,useState:function(){return Ns(Ir)},useDebugValue:cm,useDeferredValue:function(r,a){var l=Pt();return hb(l,ht.memoizedState,r,a)},useTransition:function(){var r=Ns(Ir)[0],a=Pt().memoizedState;return[typeof r=="boolean"?r:Il(r),a]},useSyncExternalStore:Vg,useId:vb,useHostTransitionStatus:mm,useFormState:rb,useActionState:rb,useOptimistic:function(r,a){var l=Pt();return Wg(l,ht,r,a)},useMemoCache:am,useCacheRefresh:_b};hm.useEffectEvent=ub;var xb={readContext:Xt,use:Ts,useCallback:mb,useContext:Xt,useEffect:sm,useImperativeHandle:fb,useInsertionEffect:sb,useLayoutEffect:cb,useMemo:pb,useReducer:om,useRef:ob,useState:function(){return om(Ir)},useDebugValue:cm,useDeferredValue:function(r,a){var l=Pt();return ht===null?dm(l,r,a):hb(l,ht.memoizedState,r,a)},useTransition:function(){var r=om(Ir)[0],a=Pt().memoizedState;return[typeof r=="boolean"?r:Il(r),a]},useSyncExternalStore:Vg,useId:vb,useHostTransitionStatus:mm,useFormState:ib,useActionState:ib,useOptimistic:function(r,a){var l=Pt();return ht!==null?Wg(l,ht,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:am,useCacheRefresh:_b};xb.useEffectEvent=ub;function ym(r,a,l,s){a=r.memoizedState,l=l(s,a),l=l==null?a:g({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var gm={enqueueSetState:function(r,a,l){r=r._reactInternals;var s=Fn(),f=ga(s);f.payload=a,l!=null&&(f.callback=l),a=ba(r,f,s),a!==null&&(Sn(a,r,s),kl(a,r,s))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var s=Fn(),f=ga(s);f.tag=1,f.payload=a,l!=null&&(f.callback=l),a=ba(r,f,s),a!==null&&(Sn(a,r,s),kl(a,r,s))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=Fn(),s=ga(l);s.tag=2,a!=null&&(s.callback=a),a=ba(r,s,l),a!==null&&(Sn(a,r,l),kl(a,r,l))}};function Cb(r,a,l,s,f,p,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(s,p,_):a.prototype&&a.prototype.isPureReactComponent?!Cl(l,s)||!Cl(f,p):!0}function Ab(r,a,l,s){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,s),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,s),a.state!==r&&gm.enqueueReplaceState(a,a.state,null)}function bi(r,a){var l=a;if("ref"in a){l={};for(var s in a)s!=="ref"&&(l[s]=a[s])}if(r=r.defaultProps){l===a&&(l=g({},l));for(var f in r)l[f]===void 0&&(l[f]=r[f])}return l}function wb(r){ds(r)}function Tb(r){console.error(r)}function Nb(r){ds(r)}function ks(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(s){setTimeout(function(){throw s})}}function Mb(r,a,l){try{var s=r.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function bm(r,a,l){return l=ga(l),l.tag=3,l.payload={element:null},l.callback=function(){ks(r,a)},l}function Rb(r){return r=ga(r),r.tag=3,r}function Ob(r,a,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var p=s.value;r.payload=function(){return f(p)},r.callback=function(){Mb(a,l,s)}}var _=l.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(r.callback=function(){Mb(a,l,s),typeof f!="function"&&($a===null?$a=new Set([this]):$a.add(this));var $=s.stack;this.componentDidCatch(s.value,{componentStack:$!==null?$:""})})}function l6(r,a,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(a=l.alternate,a!==null&&yo(a,l,f,!0),l=Bn.current,l!==null){switch(l.tag){case 31:case 13:return Jn===null?Zs():l.alternate===null&&Mt===0&&(Mt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===Es?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([s]):a.add(s),Hm(r,s,f)),!1;case 22:return l.flags|=65536,s===Es?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([s]):l.add(s)),Hm(r,s,f)),!1}throw Error(i(435,l.tag))}return Hm(r,s,f),Zs(),!1}if(et)return a=Bn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,s!==Pf&&(r=Error(i(422),{cause:s}),Tl(qn(r,l)))):(s!==Pf&&(a=Error(i(423),{cause:s}),Tl(qn(a,l))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,s=qn(s,l),f=bm(r.stateNode,s,f),qf(r,f),Mt!==4&&(Mt=2)),!1;var p=Error(i(520),{cause:s});if(p=qn(p,l),ql===null?ql=[p]:ql.push(p),Mt!==4&&(Mt=2),a===null)return!0;s=qn(s,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=f&-f,l.lanes|=r,r=bm(l.stateNode,s,r),qf(l,r),!1;case 1:if(a=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&($a===null||!$a.has(p))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Rb(f),Ob(f,r,l,s),qf(l,f),!1}l=l.return}while(l!==null);return!1}var vm=Error(i(461)),zt=!1;function en(r,a,l,s){a.child=r===null?Pg(a,null,l,s):yi(a,r.child,l,s)}function kb(r,a,l,s,f){l=l.render;var p=a.ref;if("ref"in s){var _={};for(var $ in s)$!=="ref"&&(_[$]=s[$])}else _=s;return fi(a),s=em(r,a,l,_,p,f),$=tm(),r!==null&&!zt?(nm(r,a,f),Fr(r,a,f)):(et&&$&&Bf(a),a.flags|=1,en(r,a,s,f),a.child)}function Bb(r,a,l,s,f){if(r===null){var p=l.type;return typeof p=="function"&&!Rf(p)&&p.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=p,Lb(r,a,p,s,f)):(r=hs(l.type,null,s,a,a.mode,f),r.ref=a.ref,r.return=a,a.child=r)}if(p=r.child,!Am(r,f)){var _=p.memoizedProps;if(l=l.compare,l=l!==null?l:Cl,l(_,s)&&r.ref===a.ref)return Fr(r,a,f)}return a.flags|=1,r=Or(p,s),r.ref=a.ref,r.return=a,a.child=r}function Lb(r,a,l,s,f){if(r!==null){var p=r.memoizedProps;if(Cl(p,s)&&r.ref===a.ref)if(zt=!1,a.pendingProps=s=p,Am(r,f))(r.flags&131072)!==0&&(zt=!0);else return a.lanes=r.lanes,Fr(r,a,f)}return _m(r,a,l,s,f)}function Pb(r,a,l,s){var f=s.children,p=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((a.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,r!==null){for(s=a.child=r.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~p}else s=0,a.child=null;return Ib(r,a,p,l,s)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&vs(a,p!==null?p.cachePool:null),p!==null?jg(a,p):Wf(),zg(a);else return s=a.lanes=536870912,Ib(r,a,p!==null?p.baseLanes|l:l,l,s)}else p!==null?(vs(a,p.cachePool),jg(a,p),_a(),a.memoizedState=null):(r!==null&&vs(a,null),Wf(),_a());return en(r,a,f,l),a.child}function zl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Ib(r,a,l,s,f){var p=Vf();return p=p===null?null:{parent:Ft._currentValue,pool:p},a.memoizedState={baseLanes:l,cachePool:p},r!==null&&vs(a,null),Wf(),zg(a),r!==null&&yo(r,a,s,!0),a.childLanes=f,null}function Bs(r,a){return a=Ps({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function Fb(r,a,l){return yi(a,r.child,null,l),r=Bs(a,a.pendingProps),r.flags|=2,Ln(a),a.memoizedState=null,r}function u6(r,a,l){var s=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(et){if(s.mode==="hidden")return r=Bs(a,s),a.lanes=536870912,zl(null,r);if(Jf(a),(r=Dt)?(r=Qv(r,Qn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:fa!==null?{id:vr,overflow:_r}:null,retryLane:536870912,hydrationErrors:null},l=Sg(r),l.return=a,a.child=l,Jt=a,Dt=null)):r=null,r===null)throw pa(a);return a.lanes=536870912,null}return Bs(a,s)}var p=r.memoizedState;if(p!==null){var _=p.dehydrated;if(Jf(a),f)if(a.flags&256)a.flags&=-257,a=Fb(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(zt||yo(r,a,l,!1),f=(l&r.childLanes)!==0,zt||f){if(s=vt,s!==null&&(_=Tr(s,l),_!==0&&_!==p.retryLane))throw p.retryLane=_,ui(r,_),Sn(s,r,_),vm;Zs(),a=Fb(r,a,l)}else r=p.treeContext,Dt=Xn(_.nextSibling),Jt=a,et=!0,ma=null,Qn=!1,r!==null&&xg(a,r),a=Bs(a,s),a.flags|=4096;return a}return r=Or(r.child,{mode:s.mode,children:s.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Ls(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function _m(r,a,l,s,f){return fi(a),l=em(r,a,l,s,void 0,f),s=tm(),r!==null&&!zt?(nm(r,a,f),Fr(r,a,f)):(et&&s&&Bf(a),a.flags|=1,en(r,a,l,f),a.child)}function jb(r,a,l,s,f,p){return fi(a),a.updateQueue=null,l=Hg(a,s,l,f),Ug(r),s=tm(),r!==null&&!zt?(nm(r,a,p),Fr(r,a,p)):(et&&s&&Bf(a),a.flags|=1,en(r,a,l,p),a.child)}function zb(r,a,l,s,f){if(fi(a),a.stateNode===null){var p=fo,_=l.contextType;typeof _=="object"&&_!==null&&(p=Xt(_)),p=new l(s,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=gm,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=s,p.state=a.memoizedState,p.refs={},Zf(a),_=l.contextType,p.context=typeof _=="object"&&_!==null?Xt(_):fo,p.state=a.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(ym(a,l,_,s),p.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(_=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),_!==p.state&&gm.enqueueReplaceState(p,p.state,null),Ll(a,s,p,f),Bl(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),s=!0}else if(r===null){p=a.stateNode;var $=a.memoizedProps,O=bi(l,$);p.props=O;var K=p.context,ae=l.contextType;_=fo,typeof ae=="object"&&ae!==null&&(_=Xt(ae));var ce=l.getDerivedStateFromProps;ae=typeof ce=="function"||typeof p.getSnapshotBeforeUpdate=="function",$=a.pendingProps!==$,ae||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||($||K!==_)&&Ab(a,p,s,_),ya=!1;var Q=a.memoizedState;p.state=Q,Ll(a,s,p,f),Bl(),K=a.memoizedState,$||Q!==K||ya?(typeof ce=="function"&&(ym(a,l,ce,s),K=a.memoizedState),(O=ya||Cb(a,l,O,s,Q,K,_))?(ae||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=s,a.memoizedState=K),p.props=s,p.state=K,p.context=_,s=O):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),s=!1)}else{p=a.stateNode,Yf(r,a),_=a.memoizedProps,ae=bi(l,_),p.props=ae,ce=a.pendingProps,Q=p.context,K=l.contextType,O=fo,typeof K=="object"&&K!==null&&(O=Xt(K)),$=l.getDerivedStateFromProps,(K=typeof $=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(_!==ce||Q!==O)&&Ab(a,p,s,O),ya=!1,Q=a.memoizedState,p.state=Q,Ll(a,s,p,f),Bl();var ee=a.memoizedState;_!==ce||Q!==ee||ya||r!==null&&r.dependencies!==null&&gs(r.dependencies)?(typeof $=="function"&&(ym(a,l,$,s),ee=a.memoizedState),(ae=ya||Cb(a,l,ae,s,Q,ee,O)||r!==null&&r.dependencies!==null&&gs(r.dependencies))?(K||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,ee,O),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,ee,O)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),a.memoizedProps=s,a.memoizedState=ee),p.props=s,p.state=ee,p.context=O,s=ae):(typeof p.componentDidUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),s=!1)}return p=s,Ls(r,a),s=(a.flags&128)!==0,p||s?(p=a.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,r!==null&&s?(a.child=yi(a,r.child,null,f),a.child=yi(a,null,l,f)):en(r,a,l,f),a.memoizedState=p.state,r=a.child):r=Fr(r,a,f),r}function Ub(r,a,l,s){return ci(),a.flags|=256,en(r,a,l,s),a.child}var Em={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sm(r){return{baseLanes:r,cachePool:Mg()}}function Dm(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=In),r}function Hb(r,a,l){var s=a.pendingProps,f=!1,p=(a.flags&128)!==0,_;if((_=p)||(_=r!==null&&r.memoizedState===null?!1:(Lt.current&2)!==0),_&&(f=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,r===null){if(et){if(f?va(a):_a(),(r=Dt)?(r=Qv(r,Qn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:fa!==null?{id:vr,overflow:_r}:null,retryLane:536870912,hydrationErrors:null},l=Sg(r),l.return=a,a.child=l,Jt=a,Dt=null)):r=null,r===null)throw pa(a);return ip(r)?a.lanes=32:a.lanes=536870912,null}var $=s.children;return s=s.fallback,f?(_a(),f=a.mode,$=Ps({mode:"hidden",children:$},f),s=si(s,f,l,null),$.return=a,s.return=a,$.sibling=s,a.child=$,s=a.child,s.memoizedState=Sm(l),s.childLanes=Dm(r,_,l),a.memoizedState=Em,zl(null,s)):(va(a),$m(a,$))}var O=r.memoizedState;if(O!==null&&($=O.dehydrated,$!==null)){if(p)a.flags&256?(va(a),a.flags&=-257,a=xm(r,a,l)):a.memoizedState!==null?(_a(),a.child=r.child,a.flags|=128,a=null):(_a(),$=s.fallback,f=a.mode,s=Ps({mode:"visible",children:s.children},f),$=si($,f,l,null),$.flags|=2,s.return=a,$.return=a,s.sibling=$,a.child=s,yi(a,r.child,null,l),s=a.child,s.memoizedState=Sm(l),s.childLanes=Dm(r,_,l),a.memoizedState=Em,a=zl(null,s));else if(va(a),ip($)){if(_=$.nextSibling&&$.nextSibling.dataset,_)var K=_.dgst;_=K,s=Error(i(419)),s.stack="",s.digest=_,Tl({value:s,source:null,stack:null}),a=xm(r,a,l)}else if(zt||yo(r,a,l,!1),_=(l&r.childLanes)!==0,zt||_){if(_=vt,_!==null&&(s=Tr(_,l),s!==0&&s!==O.retryLane))throw O.retryLane=s,ui(r,s),Sn(_,r,s),vm;ap($)||Zs(),a=xm(r,a,l)}else ap($)?(a.flags|=192,a.child=r.child,a=null):(r=O.treeContext,Dt=Xn($.nextSibling),Jt=a,et=!0,ma=null,Qn=!1,r!==null&&xg(a,r),a=$m(a,s.children),a.flags|=4096);return a}return f?(_a(),$=s.fallback,f=a.mode,O=r.child,K=O.sibling,s=Or(O,{mode:"hidden",children:s.children}),s.subtreeFlags=O.subtreeFlags&65011712,K!==null?$=Or(K,$):($=si($,f,l,null),$.flags|=2),$.return=a,s.return=a,s.sibling=$,a.child=s,zl(null,s),s=a.child,$=r.child.memoizedState,$===null?$=Sm(l):(f=$.cachePool,f!==null?(O=Ft._currentValue,f=f.parent!==O?{parent:O,pool:O}:f):f=Mg(),$={baseLanes:$.baseLanes|l,cachePool:f}),s.memoizedState=$,s.childLanes=Dm(r,_,l),a.memoizedState=Em,zl(r.child,s)):(va(a),l=r.child,r=l.sibling,l=Or(l,{mode:"visible",children:s.children}),l.return=a,l.sibling=null,r!==null&&(_=a.deletions,_===null?(a.deletions=[r],a.flags|=16):_.push(r)),a.child=l,a.memoizedState=null,l)}function $m(r,a){return a=Ps({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Ps(r,a){return r=kn(22,r,null,a),r.lanes=0,r}function xm(r,a,l){return yi(a,r.child,null,l),r=$m(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function Vb(r,a,l){r.lanes|=a;var s=r.alternate;s!==null&&(s.lanes|=a),jf(r.return,a,l)}function Cm(r,a,l,s,f,p){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f,treeForkCount:p}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=s,_.tail=l,_.tailMode=f,_.treeForkCount=p)}function Gb(r,a,l){var s=a.pendingProps,f=s.revealOrder,p=s.tail;s=s.children;var _=Lt.current,$=(_&2)!==0;if($?(_=_&1|2,a.flags|=128):_&=1,W(Lt,_),en(r,a,s,l),s=et?wl:0,!$&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Vb(r,l,a);else if(r.tag===19)Vb(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(f){case"forwards":for(l=a.child,f=null;l!==null;)r=l.alternate,r!==null&&xs(r)===null&&(f=l),l=l.sibling;l=f,l===null?(f=a.child,a.child=null):(f=l.sibling,l.sibling=null),Cm(a,!1,f,l,p,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=a.child,a.child=null;f!==null;){if(r=f.alternate,r!==null&&xs(r)===null){a.child=f;break}r=f.sibling,f.sibling=l,l=f,f=r}Cm(a,!0,l,null,p,s);break;case"together":Cm(a,!1,null,null,void 0,s);break;default:a.memoizedState=null}return a.child}function Fr(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),Da|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(yo(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,l=Or(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=Or(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function Am(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&gs(r)))}function s6(r,a,l){switch(a.tag){case 3:N(a,a.stateNode.containerInfo),ha(a,Ft,r.memoizedState.cache),ci();break;case 27:case 5:ge(a);break;case 4:N(a,a.stateNode.containerInfo);break;case 10:ha(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Jf(a),null;break;case 13:var s=a.memoizedState;if(s!==null)return s.dehydrated!==null?(va(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Hb(r,a,l):(va(a),r=Fr(r,a,l),r!==null?r.sibling:null);va(a);break;case 19:var f=(r.flags&128)!==0;if(s=(l&a.childLanes)!==0,s||(yo(r,a,l,!1),s=(l&a.childLanes)!==0),f){if(s)return Gb(r,a,l);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),W(Lt,Lt.current),s)break;return null;case 22:return a.lanes=0,Pb(r,a,l,a.pendingProps);case 24:ha(a,Ft,r.memoizedState.cache)}return Fr(r,a,l)}function Zb(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)zt=!0;else{if(!Am(r,l)&&(a.flags&128)===0)return zt=!1,s6(r,a,l);zt=(r.flags&131072)!==0}else zt=!1,et&&(a.flags&1048576)!==0&&$g(a,wl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var s=a.pendingProps;if(r=pi(a.elementType),a.type=r,typeof r=="function")Rf(r)?(s=bi(r,s),a.tag=1,a=zb(null,a,r,s,l)):(a.tag=0,a=_m(null,a,r,s,l));else{if(r!=null){var f=r.$$typeof;if(f===L){a.tag=11,a=kb(null,a,r,s,l);break e}else if(f===V){a.tag=14,a=Bb(null,a,r,s,l);break e}}throw a=j(r)||r,Error(i(306,a,""))}}return a;case 0:return _m(r,a,a.type,a.pendingProps,l);case 1:return s=a.type,f=bi(s,a.pendingProps),zb(r,a,s,f,l);case 3:e:{if(N(a,a.stateNode.containerInfo),r===null)throw Error(i(387));s=a.pendingProps;var p=a.memoizedState;f=p.element,Yf(r,a),Ll(a,s,null,l);var _=a.memoizedState;if(s=_.cache,ha(a,Ft,s),s!==p.cache&&zf(a,[Ft],l,!0),Bl(),s=_.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=Ub(r,a,s,l);break e}else if(s!==f){f=qn(Error(i(424)),a),Tl(f),a=Ub(r,a,s,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Dt=Xn(r.firstChild),Jt=a,et=!0,ma=null,Qn=!0,l=Pg(a,null,s,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ci(),s===f){a=Fr(r,a,l);break e}en(r,a,s,l)}a=a.child}return a;case 26:return Ls(r,a),r===null?(l=r_(a.type,null,a.pendingProps,null))?a.memoizedState=l:et||(l=a.type,r=a.pendingProps,s=Xs(z.current).createElement(l),s[Qt]=a,s[yn]=r,tn(s,l,r),Kt(s),a.stateNode=s):a.memoizedState=r_(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return ge(a),r===null&&et&&(s=a.stateNode=e_(a.type,a.pendingProps,z.current),Jt=a,Qn=!0,f=Dt,wa(a.type)?(op=f,Dt=Xn(s.firstChild)):Dt=f),en(r,a,a.pendingProps.children,l),Ls(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&et&&((f=s=Dt)&&(s=F6(s,a.type,a.pendingProps,Qn),s!==null?(a.stateNode=s,Jt=a,Dt=Xn(s.firstChild),Qn=!1,f=!0):f=!1),f||pa(a)),ge(a),f=a.type,p=a.pendingProps,_=r!==null?r.memoizedProps:null,s=p.children,tp(f,p)?s=null:_!==null&&tp(f,_)&&(a.flags|=32),a.memoizedState!==null&&(f=em(r,a,e6,null,null,l),nu._currentValue=f),Ls(r,a),en(r,a,s,l),a.child;case 6:return r===null&&et&&((r=l=Dt)&&(l=j6(l,a.pendingProps,Qn),l!==null?(a.stateNode=l,Jt=a,Dt=null,r=!0):r=!1),r||pa(a)),null;case 13:return Hb(r,a,l);case 4:return N(a,a.stateNode.containerInfo),s=a.pendingProps,r===null?a.child=yi(a,null,s,l):en(r,a,s,l),a.child;case 11:return kb(r,a,a.type,a.pendingProps,l);case 7:return en(r,a,a.pendingProps,l),a.child;case 8:return en(r,a,a.pendingProps.children,l),a.child;case 12:return en(r,a,a.pendingProps.children,l),a.child;case 10:return s=a.pendingProps,ha(a,a.type,s.value),en(r,a,s.children,l),a.child;case 9:return f=a.type._context,s=a.pendingProps.children,fi(a),f=Xt(f),s=s(f),a.flags|=1,en(r,a,s,l),a.child;case 14:return Bb(r,a,a.type,a.pendingProps,l);case 15:return Lb(r,a,a.type,a.pendingProps,l);case 19:return Gb(r,a,l);case 31:return u6(r,a,l);case 22:return Pb(r,a,l,a.pendingProps);case 24:return fi(a),s=Xt(Ft),r===null?(f=Vf(),f===null&&(f=vt,p=Uf(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=l),f=p),a.memoizedState={parent:s,cache:f},Zf(a),ha(a,Ft,f)):((r.lanes&l)!==0&&(Yf(r,a),Ll(a,null,null,l),Bl()),f=r.memoizedState,p=a.memoizedState,f.parent!==s?(f={parent:s,cache:s},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),ha(a,Ft,s)):(s=p.cache,ha(a,Ft,s),s!==f.cache&&zf(a,[Ft],l,!0))),en(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function jr(r){r.flags|=4}function wm(r,a,l,s,f){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(f&335544128)===f)if(r.stateNode.complete)r.flags|=8192;else if(vv())r.flags|=8192;else throw hi=Es,Gf}else r.flags&=-16777217}function Yb(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!u_(a))if(vv())r.flags|=8192;else throw hi=Es,Gf}function Is(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Qi():536870912,r.lanes|=a,wo|=a)}function Ul(r,a){if(!et)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:s.sibling=null}}function $t(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,s=0;if(a)for(var f=r.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=s,r.childLanes=l,a}function c6(r,a,l){var s=a.pendingProps;switch(Lf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(a),null;case 1:return $t(a),null;case 3:return l=a.stateNode,s=null,r!==null&&(s=r.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Lr(Ft),ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(ho(a)?jr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,If())),$t(a),null;case 26:var f=a.type,p=a.memoizedState;return r===null?(jr(a),p!==null?($t(a),Yb(a,p)):($t(a),wm(a,f,null,s,l))):p?p!==r.memoizedState?(jr(a),$t(a),Yb(a,p)):($t(a),a.flags&=-16777217):(r=r.memoizedProps,r!==s&&jr(a),$t(a),wm(a,f,r,s,l)),null;case 27:if(Se(a),l=z.current,f=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==s&&jr(a);else{if(!s){if(a.stateNode===null)throw Error(i(166));return $t(a),null}r=Y.current,ho(a)?Cg(a):(r=e_(f,s,l),a.stateNode=r,jr(a))}return $t(a),null;case 5:if(Se(a),f=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==s&&jr(a);else{if(!s){if(a.stateNode===null)throw Error(i(166));return $t(a),null}if(p=Y.current,ho(a))Cg(a);else{var _=Xs(z.current);switch(p){case 1:p=_.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=_.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=_.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=_.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=_.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?_.createElement("select",{is:s.is}):_.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?_.createElement(f,{is:s.is}):_.createElement(f)}}p[Qt]=a,p[yn]=s;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)p.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break e;for(;_.sibling===null;){if(_.return===null||_.return===a)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}a.stateNode=p;e:switch(tn(p,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&jr(a)}}return $t(a),wm(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==s&&jr(a);else{if(typeof s!="string"&&a.stateNode===null)throw Error(i(166));if(r=z.current,ho(a)){if(r=a.stateNode,l=a.memoizedProps,s=null,f=Jt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}r[Qt]=a,r=!!(r.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Hv(r.nodeValue,l)),r||pa(a,!0)}else r=Xs(r).createTextNode(s),r[Qt]=a,a.stateNode=r}return $t(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(s=ho(a),l!==null){if(r===null){if(!s)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Qt]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;$t(a),r=!1}else l=If(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(Ln(a),a):(Ln(a),null);if((a.flags&128)!==0)throw Error(i(558))}return $t(a),null;case 13:if(s=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=ho(a),s!==null&&s.dehydrated!==null){if(r===null){if(!f)throw Error(i(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Qt]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;$t(a),f=!1}else f=If(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Ln(a),a):(Ln(a),null)}return Ln(a),(a.flags&128)!==0?(a.lanes=l,a):(l=s!==null,r=r!==null&&r.memoizedState!==null,l&&(s=a.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==f&&(s.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),Is(a,a.updateQueue),$t(a),null);case 4:return ie(),r===null&&Wm(a.stateNode.containerInfo),$t(a),null;case 10:return Lr(a.type),$t(a),null;case 19:if(U(Lt),s=a.memoizedState,s===null)return $t(a),null;if(f=(a.flags&128)!==0,p=s.rendering,p===null)if(f)Ul(s,!1);else{if(Mt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(p=xs(r),p!==null){for(a.flags|=128,Ul(s,!1),r=p.updateQueue,a.updateQueue=r,Is(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)Eg(l,r),l=l.sibling;return W(Lt,Lt.current&1|2),et&&kr(a,s.treeForkCount),a.child}r=r.sibling}s.tail!==null&&oe()>Hs&&(a.flags|=128,f=!0,Ul(s,!1),a.lanes=4194304)}else{if(!f)if(r=xs(p),r!==null){if(a.flags|=128,f=!0,r=r.updateQueue,a.updateQueue=r,Is(a,r),Ul(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!et)return $t(a),null}else 2*oe()-s.renderingStartTime>Hs&&l!==536870912&&(a.flags|=128,f=!0,Ul(s,!1),a.lanes=4194304);s.isBackwards?(p.sibling=a.child,a.child=p):(r=s.last,r!==null?r.sibling=p:a.child=p,s.last=p)}return s.tail!==null?(r=s.tail,s.rendering=r,s.tail=r.sibling,s.renderingStartTime=oe(),r.sibling=null,l=Lt.current,W(Lt,f?l&1|2:l&1),et&&kr(a,s.treeForkCount),r):($t(a),null);case 22:case 23:return Ln(a),Qf(),s=a.memoizedState!==null,r!==null?r.memoizedState!==null!==s&&(a.flags|=8192):s&&(a.flags|=8192),s?(l&536870912)!==0&&(a.flags&128)===0&&($t(a),a.subtreeFlags&6&&(a.flags|=8192)):$t(a),l=a.updateQueue,l!==null&&Is(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==l&&(a.flags|=2048),r!==null&&U(mi),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Lr(Ft),$t(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function d6(r,a){switch(Lf(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Lr(Ft),ie(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Se(a),null;case 31:if(a.memoizedState!==null){if(Ln(a),a.alternate===null)throw Error(i(340));ci()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Ln(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));ci()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return U(Lt),null;case 4:return ie(),null;case 10:return Lr(a.type),null;case 22:case 23:return Ln(a),Qf(),r!==null&&U(mi),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Lr(Ft),null;case 25:return null;default:return null}}function qb(r,a){switch(Lf(a),a.tag){case 3:Lr(Ft),ie();break;case 26:case 27:case 5:Se(a);break;case 4:ie();break;case 31:a.memoizedState!==null&&Ln(a);break;case 13:Ln(a);break;case 19:U(Lt);break;case 10:Lr(a.type);break;case 22:case 23:Ln(a),Qf(),r!==null&&U(mi);break;case 24:Lr(Ft)}}function Hl(r,a){try{var l=a.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&r)===r){s=void 0;var p=l.create,_=l.inst;s=p(),_.destroy=s}l=l.next}while(l!==f)}}catch($){ft(a,a.return,$)}}function Ea(r,a,l){try{var s=a.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var p=f.next;s=p;do{if((s.tag&r)===r){var _=s.inst,$=_.destroy;if($!==void 0){_.destroy=void 0,f=a;var O=l,K=$;try{K()}catch(ae){ft(f,O,ae)}}}s=s.next}while(s!==p)}}catch(ae){ft(a,a.return,ae)}}function Kb(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{Fg(a,l)}catch(s){ft(r,r.return,s)}}}function Wb(r,a,l){l.props=bi(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(s){ft(r,a,s)}}function Vl(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var s=r.stateNode;break;case 30:s=r.stateNode;break;default:s=r.stateNode}typeof l=="function"?r.refCleanup=l(s):l.current=s}}catch(f){ft(r,a,f)}}function Er(r,a){var l=r.ref,s=r.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){ft(r,a,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){ft(r,a,f)}else l.current=null}function Qb(r){var a=r.type,l=r.memoizedProps,s=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){ft(r,r.return,f)}}function Tm(r,a,l){try{var s=r.stateNode;O6(s,r.type,l,a),s[yn]=a}catch(f){ft(r,r.return,f)}}function Jb(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&wa(r.type)||r.tag===4}function Nm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Jb(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&wa(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Mm(r,a,l){var s=r.tag;if(s===5||s===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Mr));else if(s!==4&&(s===27&&wa(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(Mm(r,a,l),r=r.sibling;r!==null;)Mm(r,a,l),r=r.sibling}function Fs(r,a,l){var s=r.tag;if(s===5||s===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(s!==4&&(s===27&&wa(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Fs(r,a,l),r=r.sibling;r!==null;)Fs(r,a,l),r=r.sibling}function Xb(r){var a=r.stateNode,l=r.memoizedProps;try{for(var s=r.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);tn(a,s,l),a[Qt]=r,a[yn]=l}catch(p){ft(r,r.return,p)}}var zr=!1,Ut=!1,Rm=!1,ev=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function f6(r,a){if(r=r.containerInfo,Xm=oc,r=fg(r),xf(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var _=0,$=-1,O=-1,K=0,ae=0,ce=r,Q=null;t:for(;;){for(var ee;ce!==l||f!==0&&ce.nodeType!==3||($=_+f),ce!==p||s!==0&&ce.nodeType!==3||(O=_+s),ce.nodeType===3&&(_+=ce.nodeValue.length),(ee=ce.firstChild)!==null;)Q=ce,ce=ee;for(;;){if(ce===r)break t;if(Q===l&&++K===f&&($=_),Q===p&&++ae===s&&(O=_),(ee=ce.nextSibling)!==null)break;ce=Q,Q=ce.parentNode}ce=ee}l=$===-1||O===-1?null:{start:$,end:O}}else l=null}l=l||{start:0,end:0}}else l=null;for(ep={focusedElem:r,selectionRange:l},oc=!1,Wt=a;Wt!==null;)if(a=Wt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Wt=r;else for(;Wt!==null;){switch(a=Wt,p=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)f=r[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&p!==null){r=void 0,l=a,f=p.memoizedProps,p=p.memoizedState,s=l.stateNode;try{var Ne=bi(l.type,f);r=s.getSnapshotBeforeUpdate(Ne,p),s.__reactInternalSnapshotBeforeUpdate=r}catch(Fe){ft(l,l.return,Fe)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)rp(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":rp(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Wt=r;break}Wt=a.return}}function tv(r,a,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Hr(r,l),s&4&&Hl(5,l);break;case 1:if(Hr(r,l),s&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(_){ft(l,l.return,_)}else{var f=bi(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(f,a,r.__reactInternalSnapshotBeforeUpdate)}catch(_){ft(l,l.return,_)}}s&64&&Kb(l),s&512&&Vl(l,l.return);break;case 3:if(Hr(r,l),s&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Fg(r,a)}catch(_){ft(l,l.return,_)}}break;case 27:a===null&&s&4&&Xb(l);case 26:case 5:Hr(r,l),a===null&&s&4&&Qb(l),s&512&&Vl(l,l.return);break;case 12:Hr(r,l);break;case 31:Hr(r,l),s&4&&av(r,l);break;case 13:Hr(r,l),s&4&&iv(r,l),s&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=E6.bind(null,l),z6(r,l))));break;case 22:if(s=l.memoizedState!==null||zr,!s){a=a!==null&&a.memoizedState!==null||Ut,f=zr;var p=Ut;zr=s,(Ut=a)&&!p?Vr(r,l,(l.subtreeFlags&8772)!==0):Hr(r,l),zr=f,Ut=p}break;case 30:break;default:Hr(r,l)}}function nv(r){var a=r.alternate;a!==null&&(r.alternate=null,nv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&uf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var xt=null,bn=!1;function Ur(r,a,l){for(l=l.child;l!==null;)rv(r,a,l),l=l.sibling}function rv(r,a,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(tt,l)}catch{}switch(l.tag){case 26:Ut||Er(l,a),Ur(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ut||Er(l,a);var s=xt,f=bn;wa(l.type)&&(xt=l.stateNode,bn=!1),Ur(r,a,l),Xl(l.stateNode),xt=s,bn=f;break;case 5:Ut||Er(l,a);case 6:if(s=xt,f=bn,xt=null,Ur(r,a,l),xt=s,bn=f,xt!==null)if(bn)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(l.stateNode)}catch(p){ft(l,a,p)}else try{xt.removeChild(l.stateNode)}catch(p){ft(l,a,p)}break;case 18:xt!==null&&(bn?(r=xt,Kv(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),Lo(r)):Kv(xt,l.stateNode));break;case 4:s=xt,f=bn,xt=l.stateNode.containerInfo,bn=!0,Ur(r,a,l),xt=s,bn=f;break;case 0:case 11:case 14:case 15:Ea(2,l,a),Ut||Ea(4,l,a),Ur(r,a,l);break;case 1:Ut||(Er(l,a),s=l.stateNode,typeof s.componentWillUnmount=="function"&&Wb(l,a,s)),Ur(r,a,l);break;case 21:Ur(r,a,l);break;case 22:Ut=(s=Ut)||l.memoizedState!==null,Ur(r,a,l),Ut=s;break;default:Ur(r,a,l)}}function av(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Lo(r)}catch(l){ft(a,a.return,l)}}}function iv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Lo(r)}catch(l){ft(a,a.return,l)}}function m6(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new ev),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new ev),a;default:throw Error(i(435,r.tag))}}function js(r,a){var l=m6(r);a.forEach(function(s){if(!l.has(s)){l.add(s);var f=S6.bind(null,r,s);s.then(f,f)}})}function vn(r,a){var l=a.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],p=r,_=a,$=_;e:for(;$!==null;){switch($.tag){case 27:if(wa($.type)){xt=$.stateNode,bn=!1;break e}break;case 5:xt=$.stateNode,bn=!1;break e;case 3:case 4:xt=$.stateNode.containerInfo,bn=!0;break e}$=$.return}if(xt===null)throw Error(i(160));rv(p,_,f),xt=null,bn=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)ov(a,r),a=a.sibling}var mr=null;function ov(r,a){var l=r.alternate,s=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:vn(a,r),_n(r),s&4&&(Ea(3,r,r.return),Hl(3,r),Ea(5,r,r.return));break;case 1:vn(a,r),_n(r),s&512&&(Ut||l===null||Er(l,l.return)),s&64&&zr&&(r=r.updateQueue,r!==null&&(s=r.callbacks,s!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=mr;if(vn(a,r),_n(r),s&512&&(Ut||l===null||Er(l,l.return)),s&4){var p=l!==null?l.memoizedState:null;if(s=r.memoizedState,l===null)if(s===null)if(r.stateNode===null){e:{s=r.type,l=r.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":p=f.getElementsByTagName("title")[0],(!p||p[gl]||p[Qt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(s),f.head.insertBefore(p,f.querySelector("head > title"))),tn(p,s,l),p[Qt]=r,Kt(p),s=p;break e;case"link":var _=o_("link","href",f).get(s+(l.href||""));if(_){for(var $=0;$<_.length;$++)if(p=_[$],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){_.splice($,1);break t}}p=f.createElement(s),tn(p,s,l),f.head.appendChild(p);break;case"meta":if(_=o_("meta","content",f).get(s+(l.content||""))){for($=0;$<_.length;$++)if(p=_[$],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){_.splice($,1);break t}}p=f.createElement(s),tn(p,s,l),f.head.appendChild(p);break;default:throw Error(i(468,s))}p[Qt]=r,Kt(p),s=p}r.stateNode=s}else l_(f,r.type,r.stateNode);else r.stateNode=i_(f,s,r.memoizedProps);else p!==s?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,s===null?l_(f,r.type,r.stateNode):i_(f,s,r.memoizedProps)):s===null&&r.stateNode!==null&&Tm(r,r.memoizedProps,l.memoizedProps)}break;case 27:vn(a,r),_n(r),s&512&&(Ut||l===null||Er(l,l.return)),l!==null&&s&4&&Tm(r,r.memoizedProps,l.memoizedProps);break;case 5:if(vn(a,r),_n(r),s&512&&(Ut||l===null||Er(l,l.return)),r.flags&32){f=r.stateNode;try{ao(f,"")}catch(Ne){ft(r,r.return,Ne)}}s&4&&r.stateNode!=null&&(f=r.memoizedProps,Tm(r,f,l!==null?l.memoizedProps:f)),s&1024&&(Rm=!0);break;case 6:if(vn(a,r),_n(r),s&4){if(r.stateNode===null)throw Error(i(162));s=r.memoizedProps,l=r.stateNode;try{l.nodeValue=s}catch(Ne){ft(r,r.return,Ne)}}break;case 3:if(nc=null,f=mr,mr=ec(a.containerInfo),vn(a,r),mr=f,_n(r),s&4&&l!==null&&l.memoizedState.isDehydrated)try{Lo(a.containerInfo)}catch(Ne){ft(r,r.return,Ne)}Rm&&(Rm=!1,lv(r));break;case 4:s=mr,mr=ec(r.stateNode.containerInfo),vn(a,r),_n(r),mr=s;break;case 12:vn(a,r),_n(r);break;case 31:vn(a,r),_n(r),s&4&&(s=r.updateQueue,s!==null&&(r.updateQueue=null,js(r,s)));break;case 13:vn(a,r),_n(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Us=oe()),s&4&&(s=r.updateQueue,s!==null&&(r.updateQueue=null,js(r,s)));break;case 22:f=r.memoizedState!==null;var O=l!==null&&l.memoizedState!==null,K=zr,ae=Ut;if(zr=K||f,Ut=ae||O,vn(a,r),Ut=ae,zr=K,_n(r),s&8192)e:for(a=r.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(l===null||O||zr||Ut||vi(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){O=l=a;try{if(p=O.stateNode,f)_=p.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{$=O.stateNode;var ce=O.memoizedProps.style,Q=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;$.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(Ne){ft(O,O.return,Ne)}}}else if(a.tag===6){if(l===null){O=a;try{O.stateNode.nodeValue=f?"":O.memoizedProps}catch(Ne){ft(O,O.return,Ne)}}}else if(a.tag===18){if(l===null){O=a;try{var ee=O.stateNode;f?Wv(ee,!0):Wv(O.stateNode,!1)}catch(Ne){ft(O,O.return,Ne)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}s&4&&(s=r.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,js(r,l))));break;case 19:vn(a,r),_n(r),s&4&&(s=r.updateQueue,s!==null&&(r.updateQueue=null,js(r,s)));break;case 30:break;case 21:break;default:vn(a,r),_n(r)}}function _n(r){var a=r.flags;if(a&2){try{for(var l,s=r.return;s!==null;){if(Jb(s)){l=s;break}s=s.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,p=Nm(r);Fs(r,p,f);break;case 5:var _=l.stateNode;l.flags&32&&(ao(_,""),l.flags&=-33);var $=Nm(r);Fs(r,$,_);break;case 3:case 4:var O=l.stateNode.containerInfo,K=Nm(r);Mm(r,K,O);break;default:throw Error(i(161))}}catch(ae){ft(r,r.return,ae)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function lv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;lv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Hr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)tv(r,a.alternate,a),a=a.sibling}function vi(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Ea(4,a,a.return),vi(a);break;case 1:Er(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&Wb(a,a.return,l),vi(a);break;case 27:Xl(a.stateNode);case 26:case 5:Er(a,a.return),vi(a);break;case 22:a.memoizedState===null&&vi(a);break;case 30:vi(a);break;default:vi(a)}r=r.sibling}}function Vr(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var s=a.alternate,f=r,p=a,_=p.flags;switch(p.tag){case 0:case 11:case 15:Vr(f,p,l),Hl(4,p);break;case 1:if(Vr(f,p,l),s=p,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(K){ft(s,s.return,K)}if(s=p,f=s.updateQueue,f!==null){var $=s.stateNode;try{var O=f.shared.hiddenCallbacks;if(O!==null)for(f.shared.hiddenCallbacks=null,f=0;f<O.length;f++)Ig(O[f],$)}catch(K){ft(s,s.return,K)}}l&&_&64&&Kb(p),Vl(p,p.return);break;case 27:Xb(p);case 26:case 5:Vr(f,p,l),l&&s===null&&_&4&&Qb(p),Vl(p,p.return);break;case 12:Vr(f,p,l);break;case 31:Vr(f,p,l),l&&_&4&&av(f,p);break;case 13:Vr(f,p,l),l&&_&4&&iv(f,p);break;case 22:p.memoizedState===null&&Vr(f,p,l),Vl(p,p.return);break;case 30:break;default:Vr(f,p,l)}a=a.sibling}}function Om(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&Nl(l))}function km(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Nl(r))}function pr(r,a,l,s){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)uv(r,a,l,s),a=a.sibling}function uv(r,a,l,s){var f=a.flags;switch(a.tag){case 0:case 11:case 15:pr(r,a,l,s),f&2048&&Hl(9,a);break;case 1:pr(r,a,l,s);break;case 3:pr(r,a,l,s),f&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Nl(r)));break;case 12:if(f&2048){pr(r,a,l,s),r=a.stateNode;try{var p=a.memoizedProps,_=p.id,$=p.onPostCommit;typeof $=="function"&&$(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(O){ft(a,a.return,O)}}else pr(r,a,l,s);break;case 31:pr(r,a,l,s);break;case 13:pr(r,a,l,s);break;case 23:break;case 22:p=a.stateNode,_=a.alternate,a.memoizedState!==null?p._visibility&2?pr(r,a,l,s):Gl(r,a):p._visibility&2?pr(r,a,l,s):(p._visibility|=2,xo(r,a,l,s,(a.subtreeFlags&10256)!==0||!1)),f&2048&&Om(_,a);break;case 24:pr(r,a,l,s),f&2048&&km(a.alternate,a);break;default:pr(r,a,l,s)}}function xo(r,a,l,s,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var p=r,_=a,$=l,O=s,K=_.flags;switch(_.tag){case 0:case 11:case 15:xo(p,_,$,O,f),Hl(8,_);break;case 23:break;case 22:var ae=_.stateNode;_.memoizedState!==null?ae._visibility&2?xo(p,_,$,O,f):Gl(p,_):(ae._visibility|=2,xo(p,_,$,O,f)),f&&K&2048&&Om(_.alternate,_);break;case 24:xo(p,_,$,O,f),f&&K&2048&&km(_.alternate,_);break;default:xo(p,_,$,O,f)}a=a.sibling}}function Gl(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,s=a,f=s.flags;switch(s.tag){case 22:Gl(l,s),f&2048&&Om(s.alternate,s);break;case 24:Gl(l,s),f&2048&&km(s.alternate,s);break;default:Gl(l,s)}a=a.sibling}}var Zl=8192;function Co(r,a,l){if(r.subtreeFlags&Zl)for(r=r.child;r!==null;)sv(r,a,l),r=r.sibling}function sv(r,a,l){switch(r.tag){case 26:Co(r,a,l),r.flags&Zl&&r.memoizedState!==null&&X6(l,mr,r.memoizedState,r.memoizedProps);break;case 5:Co(r,a,l);break;case 3:case 4:var s=mr;mr=ec(r.stateNode.containerInfo),Co(r,a,l),mr=s;break;case 22:r.memoizedState===null&&(s=r.alternate,s!==null&&s.memoizedState!==null?(s=Zl,Zl=16777216,Co(r,a,l),Zl=s):Co(r,a,l));break;default:Co(r,a,l)}}function cv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Yl(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var s=a[l];Wt=s,fv(s,r)}cv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)dv(r),r=r.sibling}function dv(r){switch(r.tag){case 0:case 11:case 15:Yl(r),r.flags&2048&&Ea(9,r,r.return);break;case 3:Yl(r);break;case 12:Yl(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,zs(r)):Yl(r);break;default:Yl(r)}}function zs(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var s=a[l];Wt=s,fv(s,r)}cv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Ea(8,a,a.return),zs(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,zs(a));break;default:zs(a)}r=r.sibling}}function fv(r,a){for(;Wt!==null;){var l=Wt;switch(l.tag){case 0:case 11:case 15:Ea(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Nl(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Wt=s;else e:for(l=r;Wt!==null;){s=Wt;var f=s.sibling,p=s.return;if(nv(s),s===l){Wt=null;break e}if(f!==null){f.return=p,Wt=f;break e}Wt=p}}}var p6={getCacheForType:function(r){var a=Xt(Ft),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return Xt(Ft).controller.signal}},h6=typeof WeakMap=="function"?WeakMap:Map,lt=0,vt=null,We=null,Je=0,dt=0,Pn=null,Sa=!1,Ao=!1,Bm=!1,Gr=0,Mt=0,Da=0,_i=0,Lm=0,In=0,wo=0,ql=null,En=null,Pm=!1,Us=0,mv=0,Hs=1/0,Vs=null,$a=null,Vt=0,xa=null,To=null,Zr=0,Im=0,Fm=null,pv=null,Kl=0,jm=null;function Fn(){return(lt&2)!==0&&Je!==0?Je&-Je:k.T!==null?Zm():Ny()}function hv(){if(In===0)if((Je&536870912)===0||et){var r=Mn;Mn<<=1,(Mn&3932160)===0&&(Mn=262144),In=r}else In=536870912;return r=Bn.current,r!==null&&(r.flags|=32),In}function Sn(r,a,l){(r===vt&&(dt===2||dt===9)||r.cancelPendingCommit!==null)&&(No(r,0),Ca(r,Je,In,!1)),br(r,l),((lt&2)===0||r!==vt)&&(r===vt&&((lt&2)===0&&(_i|=l),Mt===4&&Ca(r,Je,In,!1)),Sr(r))}function yv(r,a,l){if((lt&6)!==0)throw Error(i(327));var s=!l&&(a&127)===0&&(a&r.expiredLanes)===0||Rn(r,a),f=s?b6(r,a):Um(r,a,!0),p=s;do{if(f===0){Ao&&!s&&Ca(r,a,0,!1);break}else{if(l=r.current.alternate,p&&!y6(l)){f=Um(r,a,!1),p=!1;continue}if(f===2){if(p=a,r.errorRecoveryDisabledLanes&p)var _=0;else _=r.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var $=r;f=ql;var O=$.current.memoizedState.isDehydrated;if(O&&(No($,_).flags|=256),_=Um($,_,!1),_!==2){if(Bm&&!O){$.errorRecoveryDisabledLanes|=p,_i|=p,f=4;break e}p=En,En=f,p!==null&&(En===null?En=p:En.push.apply(En,p))}f=_}if(p=!1,f!==2)continue}}if(f===1){No(r,0),Ca(r,a,0,!0);break}e:{switch(s=r,p=f,p){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ca(s,a,In,!Sa);break e;case 2:En=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(f=Us+300-oe(),10<f)){if(Ca(s,a,In,!Sa),pl(s,0,!0)!==0)break e;Zr=a,s.timeoutHandle=Yv(gv.bind(null,s,l,En,Vs,Pm,a,In,_i,wo,Sa,p,"Throttled",-0,0),f);break e}gv(s,l,En,Vs,Pm,a,In,_i,wo,Sa,p,null,-0,0)}}break}while(!0);Sr(r)}function gv(r,a,l,s,f,p,_,$,O,K,ae,ce,Q,ee){if(r.timeoutHandle=-1,ce=a.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mr},sv(a,p,ce);var Ne=(p&62914560)===p?Us-oe():(p&4194048)===p?mv-oe():0;if(Ne=eA(ce,Ne),Ne!==null){Zr=p,r.cancelPendingCommit=Ne(xv.bind(null,r,a,p,l,s,f,_,$,O,ae,ce,null,Q,ee)),Ca(r,p,_,!K);return}}xv(r,a,p,l,s,f,_,$,O)}function y6(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var f=l[s],p=f.getSnapshot;f=f.value;try{if(!On(p(),f))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ca(r,a,l,s){a&=~Lm,a&=~_i,r.suspendedLanes|=a,r.pingedLanes&=~a,s&&(r.warmLanes|=a),s=r.expirationTimes;for(var f=a;0<f;){var p=31-Ye(f),_=1<<p;s[p]=-1,f&=~_}l!==0&&Xu(r,l,a)}function Gs(){return(lt&6)===0?(Wl(0),!1):!0}function zm(){if(We!==null){if(dt===0)var r=We.return;else r=We,Br=di=null,rm(r),_o=null,Rl=0,r=We;for(;r!==null;)qb(r.alternate,r),r=r.return;We=null}}function No(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,L6(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Zr=0,zm(),vt=r,We=l=Or(r.current,null),Je=a,dt=0,Pn=null,Sa=!1,Ao=Rn(r,a),Bm=!1,wo=In=Lm=_i=Da=Mt=0,En=ql=null,Pm=!1,(a&8)!==0&&(a|=a&32);var s=r.entangledLanes;if(s!==0)for(r=r.entanglements,s&=a;0<s;){var f=31-Ye(s),p=1<<f;a|=r[f],s&=~p}return Gr=a,fs(),l}function bv(r,a){Ge=null,k.H=jl,a===vo||a===_s?(a=kg(),dt=3):a===Gf?(a=kg(),dt=4):dt=a===vm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Pn=a,We===null&&(Mt=1,ks(r,qn(a,r.current)))}function vv(){var r=Bn.current;return r===null?!0:(Je&4194048)===Je?Jn===null:(Je&62914560)===Je||(Je&536870912)!==0?r===Jn:!1}function _v(){var r=k.H;return k.H=jl,r===null?jl:r}function Ev(){var r=k.A;return k.A=p6,r}function Zs(){Mt=4,Sa||(Je&4194048)!==Je&&Bn.current!==null||(Ao=!0),(Da&134217727)===0&&(_i&134217727)===0||vt===null||Ca(vt,Je,In,!1)}function Um(r,a,l){var s=lt;lt|=2;var f=_v(),p=Ev();(vt!==r||Je!==a)&&(Vs=null,No(r,a)),a=!1;var _=Mt;e:do try{if(dt!==0&&We!==null){var $=We,O=Pn;switch(dt){case 8:zm(),_=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(a=!0);var K=dt;if(dt=0,Pn=null,Mo(r,$,O,K),l&&Ao){_=0;break e}break;default:K=dt,dt=0,Pn=null,Mo(r,$,O,K)}}g6(),_=Mt;break}catch(ae){bv(r,ae)}while(!0);return a&&r.shellSuspendCounter++,Br=di=null,lt=s,k.H=f,k.A=p,We===null&&(vt=null,Je=0,fs()),_}function g6(){for(;We!==null;)Sv(We)}function b6(r,a){var l=lt;lt|=2;var s=_v(),f=Ev();vt!==r||Je!==a?(Vs=null,Hs=oe()+500,No(r,a)):Ao=Rn(r,a);e:do try{if(dt!==0&&We!==null){a=We;var p=Pn;t:switch(dt){case 1:dt=0,Pn=null,Mo(r,a,p,1);break;case 2:case 9:if(Rg(p)){dt=0,Pn=null,Dv(a);break}a=function(){dt!==2&&dt!==9||vt!==r||(dt=7),Sr(r)},p.then(a,a);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:Rg(p)?(dt=0,Pn=null,Dv(a)):(dt=0,Pn=null,Mo(r,a,p,7));break;case 5:var _=null;switch(We.tag){case 26:_=We.memoizedState;case 5:case 27:var $=We;if(_?u_(_):$.stateNode.complete){dt=0,Pn=null;var O=$.sibling;if(O!==null)We=O;else{var K=$.return;K!==null?(We=K,Ys(K)):We=null}break t}}dt=0,Pn=null,Mo(r,a,p,5);break;case 6:dt=0,Pn=null,Mo(r,a,p,6);break;case 8:zm(),Mt=6;break e;default:throw Error(i(462))}}v6();break}catch(ae){bv(r,ae)}while(!0);return Br=di=null,k.H=s,k.A=f,lt=l,We!==null?0:(vt=null,Je=0,fs(),Mt)}function v6(){for(;We!==null&&!Me();)Sv(We)}function Sv(r){var a=Zb(r.alternate,r,Gr);r.memoizedProps=r.pendingProps,a===null?Ys(r):We=a}function Dv(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=jb(l,a,a.pendingProps,a.type,void 0,Je);break;case 11:a=jb(l,a,a.pendingProps,a.type.render,a.ref,Je);break;case 5:rm(a);default:qb(l,a),a=We=Eg(a,Gr),a=Zb(l,a,Gr)}r.memoizedProps=r.pendingProps,a===null?Ys(r):We=a}function Mo(r,a,l,s){Br=di=null,rm(a),_o=null,Rl=0;var f=a.return;try{if(l6(r,f,a,l,Je)){Mt=1,ks(r,qn(l,r.current)),We=null;return}}catch(p){if(f!==null)throw We=f,p;Mt=1,ks(r,qn(l,r.current)),We=null;return}a.flags&32768?(et||s===1?r=!0:Ao||(Je&536870912)!==0?r=!1:(Sa=r=!0,(s===2||s===9||s===3||s===6)&&(s=Bn.current,s!==null&&s.tag===13&&(s.flags|=16384))),$v(a,r)):Ys(a)}function Ys(r){var a=r;do{if((a.flags&32768)!==0){$v(a,Sa);return}r=a.return;var l=c6(a.alternate,a,Gr);if(l!==null){We=l;return}if(a=a.sibling,a!==null){We=a;return}We=a=r}while(a!==null);Mt===0&&(Mt=5)}function $v(r,a){do{var l=d6(r.alternate,r);if(l!==null){l.flags&=32767,We=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){We=r;return}We=r=l}while(r!==null);Mt=6,We=null}function xv(r,a,l,s,f,p,_,$,O){r.cancelPendingCommit=null;do qs();while(Vt!==0);if((lt&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(p=a.lanes|a.childLanes,p|=Nf,Ju(r,l,p,_,$,O),r===vt&&(We=vt=null,Je=0),To=a,xa=r,Zr=l,Im=p,Fm=f,pv=s,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,D6(Re,function(){return Nv(),null})):(r.callbackNode=null,r.callbackPriority=0),s=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||s){s=k.T,k.T=null,f=B.p,B.p=2,_=lt,lt|=4;try{f6(r,a,l)}finally{lt=_,B.p=f,k.T=s}}Vt=1,Cv(),Av(),wv()}}function Cv(){if(Vt===1){Vt=0;var r=xa,a=To,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=k.T,k.T=null;var s=B.p;B.p=2;var f=lt;lt|=4;try{ov(a,r);var p=ep,_=fg(r.containerInfo),$=p.focusedElem,O=p.selectionRange;if(_!==$&&$&&$.ownerDocument&&dg($.ownerDocument.documentElement,$)){if(O!==null&&xf($)){var K=O.start,ae=O.end;if(ae===void 0&&(ae=K),"selectionStart"in $)$.selectionStart=K,$.selectionEnd=Math.min(ae,$.value.length);else{var ce=$.ownerDocument||document,Q=ce&&ce.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),Ne=$.textContent.length,Fe=Math.min(O.start,Ne),gt=O.end===void 0?Fe:Math.min(O.end,Ne);!ee.extend&&Fe>gt&&(_=gt,gt=Fe,Fe=_);var H=cg($,Fe),P=cg($,gt);if(H&&P&&(ee.rangeCount!==1||ee.anchorNode!==H.node||ee.anchorOffset!==H.offset||ee.focusNode!==P.node||ee.focusOffset!==P.offset)){var q=ce.createRange();q.setStart(H.node,H.offset),ee.removeAllRanges(),Fe>gt?(ee.addRange(q),ee.extend(P.node,P.offset)):(q.setEnd(P.node,P.offset),ee.addRange(q))}}}}for(ce=[],ee=$;ee=ee.parentNode;)ee.nodeType===1&&ce.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<ce.length;$++){var le=ce[$];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}oc=!!Xm,ep=Xm=null}finally{lt=f,B.p=s,k.T=l}}r.current=a,Vt=2}}function Av(){if(Vt===2){Vt=0;var r=xa,a=To,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=k.T,k.T=null;var s=B.p;B.p=2;var f=lt;lt|=4;try{tv(r,a.alternate,a)}finally{lt=f,B.p=s,k.T=l}}Vt=3}}function wv(){if(Vt===4||Vt===3){Vt=0,re();var r=xa,a=To,l=Zr,s=pv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Vt=5:(Vt=0,To=xa=null,Tv(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&($a=null),yl(l),a=a.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(tt,a,void 0,(a.current.flags&128)===128)}catch{}if(s!==null){a=k.T,f=B.p,B.p=2,k.T=null;try{for(var p=r.onRecoverableError,_=0;_<s.length;_++){var $=s[_];p($.value,{componentStack:$.stack})}}finally{k.T=a,B.p=f}}(Zr&3)!==0&&qs(),Sr(r),f=r.pendingLanes,(l&261930)!==0&&(f&42)!==0?r===jm?Kl++:(Kl=0,jm=r):Kl=0,Wl(0)}}function Tv(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Nl(a)))}function qs(){return Cv(),Av(),wv(),Nv()}function Nv(){if(Vt!==5)return!1;var r=xa,a=Im;Im=0;var l=yl(Zr),s=k.T,f=B.p;try{B.p=32>l?32:l,k.T=null,l=Fm,Fm=null;var p=xa,_=Zr;if(Vt=0,To=xa=null,Zr=0,(lt&6)!==0)throw Error(i(331));var $=lt;if(lt|=4,dv(p.current),uv(p,p.current,_,l),lt=$,Wl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(tt,p)}catch{}return!0}finally{B.p=f,k.T=s,Tv(r,a)}}function Mv(r,a,l){a=qn(l,a),a=bm(r.stateNode,a,2),r=ba(r,a,2),r!==null&&(br(r,2),Sr(r))}function ft(r,a,l){if(r.tag===3)Mv(r,r,l);else for(;a!==null;){if(a.tag===3){Mv(a,r,l);break}else if(a.tag===1){var s=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&($a===null||!$a.has(s))){r=qn(l,r),l=Rb(2),s=ba(a,l,2),s!==null&&(Ob(l,s,a,r),br(s,2),Sr(s));break}}a=a.return}}function Hm(r,a,l){var s=r.pingCache;if(s===null){s=r.pingCache=new h6;var f=new Set;s.set(a,f)}else f=s.get(a),f===void 0&&(f=new Set,s.set(a,f));f.has(l)||(Bm=!0,f.add(l),r=_6.bind(null,r,a,l),a.then(r,r))}function _6(r,a,l){var s=r.pingCache;s!==null&&s.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,vt===r&&(Je&l)===l&&(Mt===4||Mt===3&&(Je&62914560)===Je&&300>oe()-Us?(lt&2)===0&&No(r,0):Lm|=l,wo===Je&&(wo=0)),Sr(r)}function Rv(r,a){a===0&&(a=Qi()),r=ui(r,a),r!==null&&(br(r,a),Sr(r))}function E6(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),Rv(r,l)}function S6(r,a){var l=0;switch(r.tag){case 31:case 13:var s=r.stateNode,f=r.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=r.stateNode;break;case 22:s=r.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(a),Rv(r,l)}function D6(r,a){return xe(r,a)}var Ks=null,Ro=null,Vm=!1,Ws=!1,Gm=!1,Aa=0;function Sr(r){r!==Ro&&r.next===null&&(Ro===null?Ks=Ro=r:Ro=Ro.next=r),Ws=!0,Vm||(Vm=!0,x6())}function Wl(r,a){if(!Gm&&Ws){Gm=!0;do for(var l=!1,s=Ks;s!==null;){if(r!==0){var f=s.pendingLanes;if(f===0)var p=0;else{var _=s.suspendedLanes,$=s.pingedLanes;p=(1<<31-Ye(42|r)+1)-1,p&=f&~(_&~$),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,Lv(s,p))}else p=Je,p=pl(s,s===vt?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||Rn(s,p)||(l=!0,Lv(s,p));s=s.next}while(l);Gm=!1}}function $6(){Ov()}function Ov(){Ws=Vm=!1;var r=0;Aa!==0&&B6()&&(r=Aa);for(var a=oe(),l=null,s=Ks;s!==null;){var f=s.next,p=kv(s,a);p===0?(s.next=null,l===null?Ks=f:l.next=f,f===null&&(Ro=l)):(l=s,(r!==0||(p&3)!==0)&&(Ws=!0)),s=f}Vt!==0&&Vt!==5||Wl(r),Aa!==0&&(Aa=0)}function kv(r,a){for(var l=r.suspendedLanes,s=r.pingedLanes,f=r.expirationTimes,p=r.pendingLanes&-62914561;0<p;){var _=31-Ye(p),$=1<<_,O=f[_];O===-1?(($&l)===0||($&s)!==0)&&(f[_]=hl($,a)):O<=a&&(r.expiredLanes|=$),p&=~$}if(a=vt,l=Je,l=pl(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),s=r.callbackNode,l===0||r===a&&(dt===2||dt===9)||r.cancelPendingCommit!==null)return s!==null&&s!==null&&$e(s),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Rn(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(s!==null&&$e(s),yl(l)){case 2:case 8:l=Te;break;case 32:l=Re;break;case 268435456:l=qe;break;default:l=Re}return s=Bv.bind(null,r),l=xe(l,s),r.callbackPriority=a,r.callbackNode=l,a}return s!==null&&s!==null&&$e(s),r.callbackPriority=2,r.callbackNode=null,2}function Bv(r,a){if(Vt!==0&&Vt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(qs()&&r.callbackNode!==l)return null;var s=Je;return s=pl(r,r===vt?s:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),s===0?null:(yv(r,s,a),kv(r,oe()),r.callbackNode!=null&&r.callbackNode===l?Bv.bind(null,r):null)}function Lv(r,a){if(qs())return null;yv(r,a,!0)}function x6(){P6(function(){(lt&6)!==0?xe(Ee,$6):Ov()})}function Zm(){if(Aa===0){var r=go;r===0&&(r=gr,gr<<=1,(gr&261888)===0&&(gr=256)),Aa=r}return Aa}function Pv(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:as(""+r)}function Iv(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function C6(r,a,l,s,f){if(a==="submit"&&l&&l.stateNode===f){var p=Pv((f[yn]||null).action),_=s.submitter;_&&(a=(a=_[yn]||null)?Pv(a.formAction):_.getAttribute("formAction"),a!==null&&(p=a,_=null));var $=new us("action","action",null,s,f);r.push({event:$,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Aa!==0){var O=_?Iv(f,_):new FormData(f);fm(l,{pending:!0,data:O,method:f.method,action:p},null,O)}}else typeof p=="function"&&($.preventDefault(),O=_?Iv(f,_):new FormData(f),fm(l,{pending:!0,data:O,method:f.method,action:p},p,O))},currentTarget:f}]})}}for(var Ym=0;Ym<Tf.length;Ym++){var qm=Tf[Ym],A6=qm.toLowerCase(),w6=qm[0].toUpperCase()+qm.slice(1);fr(A6,"on"+w6)}fr(hg,"onAnimationEnd"),fr(yg,"onAnimationIteration"),fr(gg,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(VC,"onTransitionRun"),fr(GC,"onTransitionStart"),fr(ZC,"onTransitionCancel"),fr(bg,"onTransitionEnd"),no("onMouseEnter",["mouseout","mouseover"]),no("onMouseLeave",["mouseout","mouseover"]),no("onPointerEnter",["pointerout","pointerover"]),no("onPointerLeave",["pointerout","pointerover"]),ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ql="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ql));function Fv(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var s=r[l],f=s.event;s=s.listeners;e:{var p=void 0;if(a)for(var _=s.length-1;0<=_;_--){var $=s[_],O=$.instance,K=$.currentTarget;if($=$.listener,O!==p&&f.isPropagationStopped())break e;p=$,f.currentTarget=K;try{p(f)}catch(ae){ds(ae)}f.currentTarget=null,p=O}else for(_=0;_<s.length;_++){if($=s[_],O=$.instance,K=$.currentTarget,$=$.listener,O!==p&&f.isPropagationStopped())break e;p=$,f.currentTarget=K;try{p(f)}catch(ae){ds(ae)}f.currentTarget=null,p=O}}}}function Qe(r,a){var l=a[lf];l===void 0&&(l=a[lf]=new Set);var s=r+"__bubble";l.has(s)||(jv(a,r,2,!1),l.add(s))}function Km(r,a,l){var s=0;a&&(s|=4),jv(l,r,s,a)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Wm(r){if(!r[Qs]){r[Qs]=!0,Oy.forEach(function(l){l!=="selectionchange"&&(T6.has(l)||Km(l,!1,r),Km(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Qs]||(a[Qs]=!0,Km("selectionchange",!1,a))}}function jv(r,a,l,s){switch(h_(a)){case 2:var f=rA;break;case 8:f=aA;break;default:f=dp}l=f.bind(null,a,l,r),f=void 0,!yf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),s?f!==void 0?r.addEventListener(a,l,{capture:!0,passive:f}):r.addEventListener(a,l,!0):f!==void 0?r.addEventListener(a,l,{passive:f}):r.addEventListener(a,l,!1)}function Qm(r,a,l,s,f){var p=s;if((a&1)===0&&(a&2)===0&&s!==null)e:for(;;){if(s===null)return;var _=s.tag;if(_===3||_===4){var $=s.stateNode.containerInfo;if($===f)break;if(_===4)for(_=s.return;_!==null;){var O=_.tag;if((O===3||O===4)&&_.stateNode.containerInfo===f)return;_=_.return}for(;$!==null;){if(_=Xi($),_===null)return;if(O=_.tag,O===5||O===6||O===26||O===27){s=p=_;continue e}$=$.parentNode}}s=s.return}Gy(function(){var K=p,ae=pf(l),ce=[];e:{var Q=vg.get(r);if(Q!==void 0){var ee=us,Ne=r;switch(r){case"keypress":if(os(l)===0)break e;case"keydown":case"keyup":ee=SC;break;case"focusin":Ne="focus",ee=_f;break;case"focusout":Ne="blur",ee=_f;break;case"beforeblur":case"afterblur":ee=_f;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=qy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=cC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=xC;break;case hg:case yg:case gg:ee=mC;break;case bg:ee=AC;break;case"scroll":case"scrollend":ee=uC;break;case"wheel":ee=TC;break;case"copy":case"cut":case"paste":ee=hC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Wy;break;case"toggle":case"beforetoggle":ee=MC}var Fe=(a&4)!==0,gt=!Fe&&(r==="scroll"||r==="scrollend"),H=Fe?Q!==null?Q+"Capture":null:Q;Fe=[];for(var P=K,q;P!==null;){var le=P;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||H===null||(le=vl(P,H),le!=null&&Fe.push(Jl(P,le,q))),gt)break;P=P.return}0<Fe.length&&(Q=new ee(Q,Ne,null,l,ae),ce.push({event:Q,listeners:Fe}))}}if((a&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",ee=r==="mouseout"||r==="pointerout",Q&&l!==mf&&(Ne=l.relatedTarget||l.fromElement)&&(Xi(Ne)||Ne[Ji]))break e;if((ee||Q)&&(Q=ae.window===ae?ae:(Q=ae.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(Ne=l.relatedTarget||l.toElement,ee=K,Ne=Ne?Xi(Ne):null,Ne!==null&&(gt=u(Ne),Fe=Ne.tag,Ne!==gt||Fe!==5&&Fe!==27&&Fe!==6)&&(Ne=null)):(ee=null,Ne=K),ee!==Ne)){if(Fe=qy,le="onMouseLeave",H="onMouseEnter",P="mouse",(r==="pointerout"||r==="pointerover")&&(Fe=Wy,le="onPointerLeave",H="onPointerEnter",P="pointer"),gt=ee==null?Q:bl(ee),q=Ne==null?Q:bl(Ne),Q=new Fe(le,P+"leave",ee,l,ae),Q.target=gt,Q.relatedTarget=q,le=null,Xi(ae)===K&&(Fe=new Fe(H,P+"enter",Ne,l,ae),Fe.target=q,Fe.relatedTarget=gt,le=Fe),gt=le,ee&&Ne)t:{for(Fe=N6,H=ee,P=Ne,q=0,le=H;le;le=Fe(le))q++;le=0;for(var Be=P;Be;Be=Fe(Be))le++;for(;0<q-le;)H=Fe(H),q--;for(;0<le-q;)P=Fe(P),le--;for(;q--;){if(H===P||P!==null&&H===P.alternate){Fe=H;break t}H=Fe(H),P=Fe(P)}Fe=null}else Fe=null;ee!==null&&zv(ce,Q,ee,Fe,!1),Ne!==null&&gt!==null&&zv(ce,gt,Ne,Fe,!0)}}e:{if(Q=K?bl(K):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var at=ag;else if(ng(Q))if(ig)at=zC;else{at=FC;var Oe=IC}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&ff(K.elementType)&&(at=ag):at=jC;if(at&&(at=at(r,K))){rg(ce,at,l,ae);break e}Oe&&Oe(r,Q,K),r==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&df(Q,"number",Q.value)}switch(Oe=K?bl(K):window,r){case"focusin":(ng(Oe)||Oe.contentEditable==="true")&&(uo=Oe,Cf=K,Al=null);break;case"focusout":Al=Cf=uo=null;break;case"mousedown":Af=!0;break;case"contextmenu":case"mouseup":case"dragend":Af=!1,mg(ce,l,ae);break;case"selectionchange":if(HC)break;case"keydown":case"keyup":mg(ce,l,ae)}var Ze;if(Sf)e:{switch(r){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else lo?eg(r,l)&&(Xe="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Xe="onCompositionStart");Xe&&(Qy&&l.locale!=="ko"&&(lo||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&lo&&(Ze=Zy()):(da=ae,gf="value"in da?da.value:da.textContent,lo=!0)),Oe=Js(K,Xe),0<Oe.length&&(Xe=new Ky(Xe,r,null,l,ae),ce.push({event:Xe,listeners:Oe}),Ze?Xe.data=Ze:(Ze=tg(l),Ze!==null&&(Xe.data=Ze)))),(Ze=OC?kC(r,l):BC(r,l))&&(Xe=Js(K,"onBeforeInput"),0<Xe.length&&(Oe=new Ky("onBeforeInput","beforeinput",null,l,ae),ce.push({event:Oe,listeners:Xe}),Oe.data=Ze)),C6(ce,r,K,l,ae)}Fv(ce,a)})}function Jl(r,a,l){return{instance:r,listener:a,currentTarget:l}}function Js(r,a){for(var l=a+"Capture",s=[];r!==null;){var f=r,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=vl(r,l),f!=null&&s.unshift(Jl(r,f,p)),f=vl(r,a),f!=null&&s.push(Jl(r,f,p))),r.tag===3)return s;r=r.return}return[]}function N6(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function zv(r,a,l,s,f){for(var p=a._reactName,_=[];l!==null&&l!==s;){var $=l,O=$.alternate,K=$.stateNode;if($=$.tag,O!==null&&O===s)break;$!==5&&$!==26&&$!==27||K===null||(O=K,f?(K=vl(l,p),K!=null&&_.unshift(Jl(l,K,O))):f||(K=vl(l,p),K!=null&&_.push(Jl(l,K,O)))),l=l.return}_.length!==0&&r.push({event:a,listeners:_})}var M6=/\r\n?/g,R6=/\u0000|\uFFFD/g;function Uv(r){return(typeof r=="string"?r:""+r).replace(M6,`
49
- `).replace(R6,"")}function Hv(r,a){return a=Uv(a),Uv(r)===a}function yt(r,a,l,s,f,p){switch(l){case"children":typeof s=="string"?a==="body"||a==="textarea"&&s===""||ao(r,s):(typeof s=="number"||typeof s=="bigint")&&a!=="body"&&ao(r,""+s);break;case"className":ns(r,"class",s);break;case"tabIndex":ns(r,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ns(r,l,s);break;case"style":Hy(r,s,p);break;case"data":if(a!=="object"){ns(r,"data",s);break}case"src":case"href":if(s===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){r.removeAttribute(l);break}s=as(""+s),r.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(a!=="input"&&yt(r,a,"name",f.name,f,null),yt(r,a,"formEncType",f.formEncType,f,null),yt(r,a,"formMethod",f.formMethod,f,null),yt(r,a,"formTarget",f.formTarget,f,null)):(yt(r,a,"encType",f.encType,f,null),yt(r,a,"method",f.method,f,null),yt(r,a,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){r.removeAttribute(l);break}s=as(""+s),r.setAttribute(l,s);break;case"onClick":s!=null&&(r.onclick=Mr);break;case"onScroll":s!=null&&Qe("scroll",r);break;case"onScrollEnd":s!=null&&Qe("scrollend",r);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":r.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){r.removeAttribute("xlink:href");break}l=as(""+s),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?r.setAttribute(l,""+s):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":s===!0?r.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?r.setAttribute(l,s):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?r.setAttribute(l,s):r.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?r.removeAttribute(l):r.setAttribute(l,s);break;case"popover":Qe("beforetoggle",r),Qe("toggle",r),ts(r,"popover",s);break;case"xlinkActuate":Nr(r,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Nr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Nr(r,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Nr(r,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Nr(r,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Nr(r,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ts(r,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=oC.get(l)||l,ts(r,l,s))}}function Jm(r,a,l,s,f,p){switch(l){case"style":Hy(r,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof s=="string"?ao(r,s):(typeof s=="number"||typeof s=="bigint")&&ao(r,""+s);break;case"onScroll":s!=null&&Qe("scroll",r);break;case"onScrollEnd":s!=null&&Qe("scrollend",r);break;case"onClick":s!=null&&(r.onclick=Mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ky.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),a=l.slice(2,f?l.length-7:void 0),p=r[yn]||null,p=p!=null?p[l]:null,typeof p=="function"&&r.removeEventListener(a,p,f),typeof s=="function")){typeof p!="function"&&p!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,s,f);break e}l in r?r[l]=s:s===!0?r.setAttribute(l,""):ts(r,l,s)}}}function tn(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",r),Qe("load",r);var s=!1,f=!1,p;for(p in l)if(l.hasOwnProperty(p)){var _=l[p];if(_!=null)switch(p){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:yt(r,a,p,_,l,null)}}f&&yt(r,a,"srcSet",l.srcSet,l,null),s&&yt(r,a,"src",l.src,l,null);return;case"input":Qe("invalid",r);var $=p=_=f=null,O=null,K=null;for(s in l)if(l.hasOwnProperty(s)){var ae=l[s];if(ae!=null)switch(s){case"name":f=ae;break;case"type":_=ae;break;case"checked":O=ae;break;case"defaultChecked":K=ae;break;case"value":p=ae;break;case"defaultValue":$=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:yt(r,a,s,ae,l,null)}}Fy(r,p,$,O,K,_,f,!1);return;case"select":Qe("invalid",r),s=_=p=null;for(f in l)if(l.hasOwnProperty(f)&&($=l[f],$!=null))switch(f){case"value":p=$;break;case"defaultValue":_=$;break;case"multiple":s=$;default:yt(r,a,f,$,l,null)}a=p,l=_,r.multiple=!!s,a!=null?ro(r,!!s,a,!1):l!=null&&ro(r,!!s,l,!0);return;case"textarea":Qe("invalid",r),p=f=s=null;for(_ in l)if(l.hasOwnProperty(_)&&($=l[_],$!=null))switch(_){case"value":s=$;break;case"defaultValue":f=$;break;case"children":p=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(i(91));break;default:yt(r,a,_,$,l,null)}zy(r,s,f,p);return;case"option":for(O in l)if(l.hasOwnProperty(O)&&(s=l[O],s!=null))switch(O){case"selected":r.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:yt(r,a,O,s,l,null)}return;case"dialog":Qe("beforetoggle",r),Qe("toggle",r),Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":Qe("load",r);break;case"video":case"audio":for(s=0;s<Ql.length;s++)Qe(Ql[s],r);break;case"image":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"embed":case"source":case"link":Qe("error",r),Qe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in l)if(l.hasOwnProperty(K)&&(s=l[K],s!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:yt(r,a,K,s,l,null)}return;default:if(ff(a)){for(ae in l)l.hasOwnProperty(ae)&&(s=l[ae],s!==void 0&&Jm(r,a,ae,s,l,void 0));return}}for($ in l)l.hasOwnProperty($)&&(s=l[$],s!=null&&yt(r,a,$,s,l,null))}function O6(r,a,l,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,_=null,$=null,O=null,K=null,ae=null;for(ee in l){var ce=l[ee];if(l.hasOwnProperty(ee)&&ce!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":O=ce;default:s.hasOwnProperty(ee)||yt(r,a,ee,null,s,ce)}}for(var Q in s){var ee=s[Q];if(ce=l[Q],s.hasOwnProperty(Q)&&(ee!=null||ce!=null))switch(Q){case"type":p=ee;break;case"name":f=ee;break;case"checked":K=ee;break;case"defaultChecked":ae=ee;break;case"value":_=ee;break;case"defaultValue":$=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,a));break;default:ee!==ce&&yt(r,a,Q,ee,s,ce)}}cf(r,_,$,O,K,ae,p,f);return;case"select":ee=_=$=Q=null;for(p in l)if(O=l[p],l.hasOwnProperty(p)&&O!=null)switch(p){case"value":break;case"multiple":ee=O;default:s.hasOwnProperty(p)||yt(r,a,p,null,s,O)}for(f in s)if(p=s[f],O=l[f],s.hasOwnProperty(f)&&(p!=null||O!=null))switch(f){case"value":Q=p;break;case"defaultValue":$=p;break;case"multiple":_=p;default:p!==O&&yt(r,a,f,p,s,O)}a=$,l=_,s=ee,Q!=null?ro(r,!!l,Q,!1):!!s!=!!l&&(a!=null?ro(r,!!l,a,!0):ro(r,!!l,l?[]:"",!1));return;case"textarea":ee=Q=null;for($ in l)if(f=l[$],l.hasOwnProperty($)&&f!=null&&!s.hasOwnProperty($))switch($){case"value":break;case"children":break;default:yt(r,a,$,null,s,f)}for(_ in s)if(f=s[_],p=l[_],s.hasOwnProperty(_)&&(f!=null||p!=null))switch(_){case"value":Q=f;break;case"defaultValue":ee=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==p&&yt(r,a,_,f,s,p)}jy(r,Q,ee);return;case"option":for(var Ne in l)if(Q=l[Ne],l.hasOwnProperty(Ne)&&Q!=null&&!s.hasOwnProperty(Ne))switch(Ne){case"selected":r.selected=!1;break;default:yt(r,a,Ne,null,s,Q)}for(O in s)if(Q=s[O],ee=l[O],s.hasOwnProperty(O)&&Q!==ee&&(Q!=null||ee!=null))switch(O){case"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:yt(r,a,O,Q,s,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Fe in l)Q=l[Fe],l.hasOwnProperty(Fe)&&Q!=null&&!s.hasOwnProperty(Fe)&&yt(r,a,Fe,null,s,Q);for(K in s)if(Q=s[K],ee=l[K],s.hasOwnProperty(K)&&Q!==ee&&(Q!=null||ee!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,a));break;default:yt(r,a,K,Q,s,ee)}return;default:if(ff(a)){for(var gt in l)Q=l[gt],l.hasOwnProperty(gt)&&Q!==void 0&&!s.hasOwnProperty(gt)&&Jm(r,a,gt,void 0,s,Q);for(ae in s)Q=s[ae],ee=l[ae],!s.hasOwnProperty(ae)||Q===ee||Q===void 0&&ee===void 0||Jm(r,a,ae,Q,s,ee);return}}for(var H in l)Q=l[H],l.hasOwnProperty(H)&&Q!=null&&!s.hasOwnProperty(H)&&yt(r,a,H,null,s,Q);for(ce in s)Q=s[ce],ee=l[ce],!s.hasOwnProperty(ce)||Q===ee||Q==null&&ee==null||yt(r,a,ce,Q,s,ee)}function Vv(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function k6(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var f=l[s],p=f.transferSize,_=f.initiatorType,$=f.duration;if(p&&$&&Vv(_)){for(_=0,$=f.responseEnd,s+=1;s<l.length;s++){var O=l[s],K=O.startTime;if(K>$)break;var ae=O.transferSize,ce=O.initiatorType;ae&&Vv(ce)&&(O=O.responseEnd,_+=ae*(O<$?1:($-K)/(O-K)))}if(--s,a+=8*(p+_)/(f.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Xm=null,ep=null;function Xs(r){return r.nodeType===9?r:r.ownerDocument}function Gv(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zv(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function tp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var np=null;function B6(){var r=window.event;return r&&r.type==="popstate"?r===np?!1:(np=r,!0):(np=null,!1)}var Yv=typeof setTimeout=="function"?setTimeout:void 0,L6=typeof clearTimeout=="function"?clearTimeout:void 0,qv=typeof Promise=="function"?Promise:void 0,P6=typeof queueMicrotask=="function"?queueMicrotask:typeof qv<"u"?function(r){return qv.resolve(null).then(r).catch(I6)}:Yv;function I6(r){setTimeout(function(){throw r})}function wa(r){return r==="head"}function Kv(r,a){var l=a,s=0;do{var f=l.nextSibling;if(r.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(s===0){r.removeChild(f),Lo(a);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")Xl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Xl(l);for(var p=l.firstChild;p;){var _=p.nextSibling,$=p.nodeName;p[gl]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=_}}else l==="body"&&Xl(r.ownerDocument.body);l=f}while(l);Lo(a)}function Wv(r,a){var l=r;r=0;do{var s=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=s}while(l)}function rp(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":rp(l),uf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function F6(r,a,l,s){for(;r.nodeType===1;){var f=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!s&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(s){if(!r[gl])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(p=r.getAttribute("rel"),p==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(p!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(p=r.getAttribute("src"),(p!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===p)return r}else return r;if(r=Xn(r.nextSibling),r===null)break}return null}function j6(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=Xn(r.nextSibling),r===null))return null;return r}function Qv(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Xn(r.nextSibling),r===null))return null;return r}function ap(r){return r.data==="$?"||r.data==="$~"}function ip(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function z6(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var s=function(){a(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),r._reactRetry=s}}function Xn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var op=null;function Jv(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return Xn(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function Xv(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function e_(r,a,l){switch(a=Xs(l),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Xl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);uf(r)}var er=new Map,t_=new Set;function ec(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Yr=B.d;B.d={f:U6,r:H6,D:V6,C:G6,L:Z6,m:Y6,X:K6,S:q6,M:W6};function U6(){var r=Yr.f(),a=Gs();return r||a}function H6(r){var a=eo(r);a!==null&&a.tag===5&&a.type==="form"?bb(a):Yr.r(r)}var Oo=typeof document>"u"?null:document;function n_(r,a,l){var s=Oo;if(s&&typeof a=="string"&&a){var f=Zn(a);f='link[rel="'+r+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),t_.has(f)||(t_.add(f),r={rel:r,crossOrigin:l,href:a},s.querySelector(f)===null&&(a=s.createElement("link"),tn(a,"link",r),Kt(a),s.head.appendChild(a)))}}function V6(r){Yr.D(r),n_("dns-prefetch",r,null)}function G6(r,a){Yr.C(r,a),n_("preconnect",r,a)}function Z6(r,a,l){Yr.L(r,a,l);var s=Oo;if(s&&r&&a){var f='link[rel="preload"][as="'+Zn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Zn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Zn(l.imageSizes)+'"]')):f+='[href="'+Zn(r)+'"]';var p=f;switch(a){case"style":p=ko(r);break;case"script":p=Bo(r)}er.has(p)||(r=g({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),er.set(p,r),s.querySelector(f)!==null||a==="style"&&s.querySelector(eu(p))||a==="script"&&s.querySelector(tu(p))||(a=s.createElement("link"),tn(a,"link",r),Kt(a),s.head.appendChild(a)))}}function Y6(r,a){Yr.m(r,a);var l=Oo;if(l&&r){var s=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Zn(s)+'"][href="'+Zn(r)+'"]',p=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Bo(r)}if(!er.has(p)&&(r=g({rel:"modulepreload",href:r},a),er.set(p,r),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(tu(p)))return}s=l.createElement("link"),tn(s,"link",r),Kt(s),l.head.appendChild(s)}}}function q6(r,a,l){Yr.S(r,a,l);var s=Oo;if(s&&r){var f=to(s).hoistableStyles,p=ko(r);a=a||"default";var _=f.get(p);if(!_){var $={loading:0,preload:null};if(_=s.querySelector(eu(p)))$.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},l),(l=er.get(p))&&lp(r,l);var O=_=s.createElement("link");Kt(O),tn(O,"link",r),O._p=new Promise(function(K,ae){O.onload=K,O.onerror=ae}),O.addEventListener("load",function(){$.loading|=1}),O.addEventListener("error",function(){$.loading|=2}),$.loading|=4,tc(_,a,s)}_={type:"stylesheet",instance:_,count:1,state:$},f.set(p,_)}}}function K6(r,a){Yr.X(r,a);var l=Oo;if(l&&r){var s=to(l).hoistableScripts,f=Bo(r),p=s.get(f);p||(p=l.querySelector(tu(f)),p||(r=g({src:r,async:!0},a),(a=er.get(f))&&up(r,a),p=l.createElement("script"),Kt(p),tn(p,"link",r),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(f,p))}}function W6(r,a){Yr.M(r,a);var l=Oo;if(l&&r){var s=to(l).hoistableScripts,f=Bo(r),p=s.get(f);p||(p=l.querySelector(tu(f)),p||(r=g({src:r,async:!0,type:"module"},a),(a=er.get(f))&&up(r,a),p=l.createElement("script"),Kt(p),tn(p,"link",r),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(f,p))}}function r_(r,a,l,s){var f=(f=z.current)?ec(f):null;if(!f)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=ko(l.href),l=to(f).hoistableStyles,s=l.get(a),s||(s={type:"style",instance:null,count:0,state:null},l.set(a,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=ko(l.href);var p=to(f).hoistableStyles,_=p.get(r);if(_||(f=f.ownerDocument||f,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(r,_),(p=f.querySelector(eu(r)))&&!p._p&&(_.instance=p,_.state.loading=5),er.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},er.set(r,l),p||Q6(f,r,l,_.state))),a&&s===null)throw Error(i(528,""));return _}if(a&&s!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Bo(l),l=to(f).hoistableScripts,s=l.get(a),s||(s={type:"script",instance:null,count:0,state:null},l.set(a,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ko(r){return'href="'+Zn(r)+'"'}function eu(r){return'link[rel="stylesheet"]['+r+"]"}function a_(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function Q6(r,a,l,s){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?s.loading=1:(a=r.createElement("link"),s.preload=a,a.addEventListener("load",function(){return s.loading|=1}),a.addEventListener("error",function(){return s.loading|=2}),tn(a,"link",l),Kt(a),r.head.appendChild(a))}function Bo(r){return'[src="'+Zn(r)+'"]'}function tu(r){return"script[async]"+r}function i_(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var s=r.querySelector('style[data-href~="'+Zn(l.href)+'"]');if(s)return a.instance=s,Kt(s),s;var f=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(r.ownerDocument||r).createElement("style"),Kt(s),tn(s,"style",f),tc(s,l.precedence,r),a.instance=s;case"stylesheet":f=ko(l.href);var p=r.querySelector(eu(f));if(p)return a.state.loading|=4,a.instance=p,Kt(p),p;s=a_(l),(f=er.get(f))&&lp(s,f),p=(r.ownerDocument||r).createElement("link"),Kt(p);var _=p;return _._p=new Promise(function($,O){_.onload=$,_.onerror=O}),tn(p,"link",s),a.state.loading|=4,tc(p,l.precedence,r),a.instance=p;case"script":return p=Bo(l.src),(f=r.querySelector(tu(p)))?(a.instance=f,Kt(f),f):(s=l,(f=er.get(p))&&(s=g({},l),up(s,f)),r=r.ownerDocument||r,f=r.createElement("script"),Kt(f),tn(f,"link",s),r.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(s=a.instance,a.state.loading|=4,tc(s,l.precedence,r));return a.instance}function tc(r,a,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,p=f,_=0;_<s.length;_++){var $=s[_];if($.dataset.precedence===a)p=$;else if(p!==f)break}p?p.parentNode.insertBefore(r,p.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function lp(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function up(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var nc=null;function o_(r,a,l){if(nc===null){var s=new Map,f=nc=new Map;f.set(l,s)}else f=nc,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(r))return s;for(s.set(r,null),l=l.getElementsByTagName(r),f=0;f<l.length;f++){var p=l[f];if(!(p[gl]||p[Qt]||r==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var _=p.getAttribute(a)||"";_=r+_;var $=s.get(_);$?$.push(p):s.set(_,[p])}}return s}function l_(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function J6(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function u_(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function X6(r,a,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=ko(s.href),p=a.querySelector(eu(f));if(p){a=p._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=rc.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=p,Kt(p);return}p=a.ownerDocument||a,s=a_(s),(f=er.get(f))&&lp(s,f),p=p.createElement("link"),Kt(p);var _=p;_._p=new Promise(function($,O){_.onload=$,_.onerror=O}),tn(p,"link",s),l.instance=p}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=rc.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var sp=0;function eA(r,a){return r.stylesheets&&r.count===0&&ic(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var s=setTimeout(function(){if(r.stylesheets&&ic(r,r.stylesheets),r.unsuspend){var p=r.unsuspend;r.unsuspend=null,p()}},6e4+a);0<r.imgBytes&&sp===0&&(sp=62500*k6());var f=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&ic(r,r.stylesheets),r.unsuspend)){var p=r.unsuspend;r.unsuspend=null,p()}},(r.imgBytes>sp?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ic(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var ac=null;function ic(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,ac=new Map,a.forEach(tA,r),ac=null,rc.call(r))}function tA(r,a){if(!(a.state.loading&4)){var l=ac.get(r);if(l)var s=l.get(null);else{l=new Map,ac.set(r,l);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var _=f[p];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(l.set(_.dataset.precedence,_),s=_)}s&&l.set(null,s)}f=a.instance,_=f.getAttribute("data-precedence"),p=l.get(_)||s,p===s&&l.set(null,f),l.set(_,f),this.count++,s=rc.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),p?p.parentNode.insertBefore(f,p.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),a.state.loading|=4}}var nu={$$typeof:A,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function nA(r,a,l,s,f,p,_,$,O){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sa(0),this.hiddenUpdates=sa(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function s_(r,a,l,s,f,p,_,$,O,K,ae,ce){return r=new nA(r,a,l,_,O,K,ae,ce,$),a=1,p===!0&&(a|=24),p=kn(3,null,null,a),r.current=p,p.stateNode=r,a=Uf(),a.refCount++,r.pooledCache=a,a.refCount++,p.memoizedState={element:s,isDehydrated:l,cache:a},Zf(p),r}function c_(r){return r?(r=fo,r):fo}function d_(r,a,l,s,f,p){f=c_(f),s.context===null?s.context=f:s.pendingContext=f,s=ga(a),s.payload={element:l},p=p===void 0?null:p,p!==null&&(s.callback=p),l=ba(r,s,a),l!==null&&(Sn(l,r,a),kl(l,r,a))}function f_(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function cp(r,a){f_(r,a),(r=r.alternate)&&f_(r,a)}function m_(r){if(r.tag===13||r.tag===31){var a=ui(r,67108864);a!==null&&Sn(a,r,67108864),cp(r,67108864)}}function p_(r){if(r.tag===13||r.tag===31){var a=Fn();a=dr(a);var l=ui(r,a);l!==null&&Sn(l,r,a),cp(r,a)}}var oc=!0;function rA(r,a,l,s){var f=k.T;k.T=null;var p=B.p;try{B.p=2,dp(r,a,l,s)}finally{B.p=p,k.T=f}}function aA(r,a,l,s){var f=k.T;k.T=null;var p=B.p;try{B.p=8,dp(r,a,l,s)}finally{B.p=p,k.T=f}}function dp(r,a,l,s){if(oc){var f=fp(s);if(f===null)Qm(r,a,s,lc,l),y_(r,s);else if(oA(f,r,a,l,s))s.stopPropagation();else if(y_(r,s),a&4&&-1<iA.indexOf(r)){for(;f!==null;){var p=eo(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var _=Vn(p.pendingLanes);if(_!==0){var $=p;for($.pendingLanes|=2,$.entangledLanes|=2;_;){var O=1<<31-Ye(_);$.entanglements[1]|=O,_&=~O}Sr(p),(lt&6)===0&&(Hs=oe()+500,Wl(0))}}break;case 31:case 13:$=ui(p,2),$!==null&&Sn($,p,2),Gs(),cp(p,2)}if(p=fp(s),p===null&&Qm(r,a,s,lc,l),p===f)break;f=p}f!==null&&s.stopPropagation()}else Qm(r,a,s,null,l)}}function fp(r){return r=pf(r),mp(r)}var lc=null;function mp(r){if(lc=null,r=Xi(r),r!==null){var a=u(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=c(a),r!==null)return r;r=null}else if(l===31){if(r=d(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return lc=r,null}function h_(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ce()){case Ee:return 2;case Te:return 8;case Re:case ke:return 32;case qe:return 268435456;default:return 32}default:return 32}}var pp=!1,Ta=null,Na=null,Ma=null,ru=new Map,au=new Map,Ra=[],iA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function y_(r,a){switch(r){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Na=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":ru.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":au.delete(a.pointerId)}}function iu(r,a,l,s,f,p){return r===null||r.nativeEvent!==p?(r={blockedOn:a,domEventName:l,eventSystemFlags:s,nativeEvent:p,targetContainers:[f]},a!==null&&(a=eo(a),a!==null&&m_(a)),r):(r.eventSystemFlags|=s,a=r.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),r)}function oA(r,a,l,s,f){switch(a){case"focusin":return Ta=iu(Ta,r,a,l,s,f),!0;case"dragenter":return Na=iu(Na,r,a,l,s,f),!0;case"mouseover":return Ma=iu(Ma,r,a,l,s,f),!0;case"pointerover":var p=f.pointerId;return ru.set(p,iu(ru.get(p)||null,r,a,l,s,f)),!0;case"gotpointercapture":return p=f.pointerId,au.set(p,iu(au.get(p)||null,r,a,l,s,f)),!0}return!1}function g_(r){var a=Xi(r.target);if(a!==null){var l=u(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){r.blockedOn=a,My(r.priority,function(){p_(l)});return}}else if(a===31){if(a=d(l),a!==null){r.blockedOn=a,My(r.priority,function(){p_(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function uc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=fp(r.nativeEvent);if(l===null){l=r.nativeEvent;var s=new l.constructor(l.type,l);mf=s,l.target.dispatchEvent(s),mf=null}else return a=eo(l),a!==null&&m_(a),r.blockedOn=l,!1;a.shift()}return!0}function b_(r,a,l){uc(r)&&l.delete(a)}function lA(){pp=!1,Ta!==null&&uc(Ta)&&(Ta=null),Na!==null&&uc(Na)&&(Na=null),Ma!==null&&uc(Ma)&&(Ma=null),ru.forEach(b_),au.forEach(b_)}function sc(r,a){r.blockedOn===a&&(r.blockedOn=null,pp||(pp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,lA)))}var cc=null;function v_(r){cc!==r&&(cc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){cc===r&&(cc=null);for(var a=0;a<r.length;a+=3){var l=r[a],s=r[a+1],f=r[a+2];if(typeof s!="function"){if(mp(s||l)===null)continue;break}var p=eo(l);p!==null&&(r.splice(a,3),a-=3,fm(p,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function Lo(r){function a(O){return sc(O,r)}Ta!==null&&sc(Ta,r),Na!==null&&sc(Na,r),Ma!==null&&sc(Ma,r),ru.forEach(a),au.forEach(a);for(var l=0;l<Ra.length;l++){var s=Ra[l];s.blockedOn===r&&(s.blockedOn=null)}for(;0<Ra.length&&(l=Ra[0],l.blockedOn===null);)g_(l),l.blockedOn===null&&Ra.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],p=l[s+1],_=f[yn]||null;if(typeof p=="function")_||v_(l);else if(_){var $=null;if(p&&p.hasAttribute("formAction")){if(f=p,_=p[yn]||null)$=_.formAction;else if(mp(f)!==null)continue}else $=_.action;typeof $=="function"?l[s+1]=$:(l.splice(s,3),s-=3),v_(l)}}}function __(){function r(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(_){return f=_})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function hp(r){this._internalRoot=r}dc.prototype.render=hp.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,s=Fn();d_(l,s,r,a,null,null)},dc.prototype.unmount=hp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;d_(r.current,2,null,r,null,null),Gs(),a[Ji]=null}};function dc(r){this._internalRoot=r}dc.prototype.unstable_scheduleHydration=function(r){if(r){var a=Ny();r={blockedOn:null,target:r,priority:a};for(var l=0;l<Ra.length&&a!==0&&a<Ra[l].priority;l++);Ra.splice(l,0,r),l===0&&g_(r)}};var E_=t.version;if(E_!=="19.2.7")throw Error(i(527,E_,"19.2.7"));B.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var uA={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{tt=fc.inject(uA),rt=fc}catch{}}return lu.createRoot=function(r,a){if(!o(r))throw Error(i(299));var l=!1,s="",f=wb,p=Tb,_=Nb;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=s_(r,1,!1,null,null,l,s,null,f,p,_,__),r[Ji]=a.current,Wm(r),new hp(a)},lu.hydrateRoot=function(r,a,l){if(!o(r))throw Error(i(299));var s=!1,f="",p=wb,_=Tb,$=Nb,O=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(_=l.onCaughtError),l.onRecoverableError!==void 0&&($=l.onRecoverableError),l.formState!==void 0&&(O=l.formState)),a=s_(r,1,!0,a,l??null,s,f,O,p,_,$,__),a.context=c_(null),l=a.current,s=Fn(),s=dr(s),f=ga(s),f.callback=null,ba(l,f,s),l=s,a.current.lanes=l,br(a,l),Sr(a),r[Ji]=a.current,Wm(r),new dc(a)},lu.version="19.2.7",lu}var M_;function gA(){if(M_)return bp.exports;M_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),bp.exports=yA(),bp.exports}var bA=gA();const bt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ga="8.55.2",ut=globalThis;function Td(e,t,n){const i=n||ut,o=i.__SENTRY__=i.__SENTRY__||{},u=o[Ga]=o[Ga]||{};return u[e]||(u[e]=t())}const Hi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vA="Sentry Logger ",yh=["debug","info","warn","error","log","assert","trace"],ed={};function Vi(e){if(!("console"in ut))return e();const t=ut.console,n={},i=Object.keys(ed);i.forEach(o=>{const u=ed[o];n[o]=t[o],t[o]=u});try{return e()}finally{i.forEach(o=>{t[o]=n[o]})}}function _A(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Hi?yh.forEach(n=>{t[n]=(...i)=>{e&&Vi(()=>{ut.console[n](`${vA}[${n}]:`,...i)})}}):yh.forEach(n=>{t[n]=()=>{}}),t}const je=Td("logger",_A),uE=50,Ni="?",R_=/\(error: (.*)\)/,O_=/captureMessage|captureException/;function sE(...e){const t=e.sort((n,i)=>n[0]-i[0]).map(n=>n[1]);return(n,i=0,o=0)=>{const u=[],c=n.split(`
50
- `);for(let d=i;d<c.length;d++){const m=c[d];if(m.length>1024)continue;const h=R_.test(m)?m.replace(R_,"$1"):m;if(!h.match(/\S*Error: /)){for(const y of t){const g=y(h);if(g){u.push(g);break}}if(u.length>=uE+o)break}}return SA(u.slice(o))}}function EA(e){return Array.isArray(e)?sE(...e):e}function SA(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(mc(t).function||"")&&t.pop(),t.reverse(),O_.test(mc(t).function||"")&&(t.pop(),O_.test(mc(t).function||"")&&t.pop()),t.slice(0,uE).map(n=>({...n,filename:n.filename||mc(t).filename,function:n.function||Ni}))}function mc(e){return e[e.length-1]||{}}const Sp="<anonymous>";function Wa(e){try{return!e||typeof e!="function"?Sp:e.name||Sp}catch{return Sp}}function k_(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(i=>{i.stacktrace.frames&&n.push(...i.stacktrace.frames)}),n}catch{return}}}const Ic={},B_={};function Gi(e,t){Ic[e]=Ic[e]||[],Ic[e].push(t)}function Zi(e,t){if(!B_[e]){B_[e]=!0;try{t()}catch(n){Hi&&je.error(`Error while instrumenting ${e}`,n)}}}function yr(e,t){const n=e&&Ic[e];if(n)for(const i of n)try{i(t)}catch(o){Hi&&je.error(`Error while triggering instrumentation handler.
45
+ `);for(f=u=0;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;for(;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;if(u===O.length||f===K.length)for(u=O.length-1,f=K.length-1;1<=u&&0<=f&&O[u]!==K[f];)f--;for(;1<=u&&0<=f;u--,f--)if(O[u]!==K[f]){if(u!==1||f!==1)do if(u--,f--,0>f||O[u]!==K[f]){var ae=`
46
+ `+O[u].replace(" at new "," at ");return r.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",r.displayName)),ae}while(1<=u&&0<=f);break}}}finally{me=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Ie(l):""}function se(r,a){switch(r.tag){case 26:case 27:case 5:return Ie(r.type);case 16:return Ie("Lazy");case 13:return r.child!==a&&a!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return De(r.type,!1);case 11:return De(r.type.render,!1);case 1:return De(r.type,!0);case 31:return Ie("Activity");default:return""}}function _e(r){try{var a="",l=null;do a+=se(r,l),l=r,r=r.return;while(r);return a}catch(u){return`
47
+ Error generating stack: `+u.message+`
48
+ `+u.stack}}var be=Object.prototype.hasOwnProperty,xe=e.unstable_scheduleCallback,$e=e.unstable_cancelCallback,Me=e.unstable_shouldYield,re=e.unstable_requestPaint,oe=e.unstable_now,Ce=e.unstable_getCurrentPriorityLevel,Ee=e.unstable_ImmediatePriority,Te=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,ke=e.unstable_LowPriority,qe=e.unstable_IdlePriority,Ue=e.log,ze=e.unstable_setDisableYieldValue,tt=null,rt=null;function Tt(r){if(typeof Ue=="function"&&ze(r),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(tt,r)}catch{}}var Ye=Math.clz32?Math.clz32:Nn,Hn=Math.log,ml=Math.LN2;function Nn(r){return r>>>=0,r===0?32:31-(Hn(r)/ml|0)|0}var gr=256,Mn=262144,ri=4194304;function Vn(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function pl(r,a,l){var u=r.pendingLanes;if(u===0)return 0;var f=0,p=r.suspendedLanes,_=r.pingedLanes;r=r.warmLanes;var $=u&134217727;return $!==0?(u=$&~p,u!==0?f=Vn(u):(_&=$,_!==0?f=Vn(_):l||(l=$&~r,l!==0&&(f=Vn(l))))):($=u&~p,$!==0?f=Vn($):_!==0?f=Vn(_):l||(l=u&~r,l!==0&&(f=Vn(l)))),f===0?0:a!==0&&a!==f&&(a&p)===0&&(p=f&-f,l=a&-a,p>=l||p===32&&(l&4194048)!==0)?a:f}function Rn(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function hl(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qi(){var r=ri;return ri<<=1,(ri&62914560)===0&&(ri=4194304),r}function ua(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function br(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Js(r,a,l,u,f,p){var _=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var $=r.entanglements,O=r.expirationTimes,K=r.hiddenUpdates;for(l=_&~l;0<l;){var ae=31-Ye(l),ce=1<<ae;$[ae]=0,O[ae]=-1;var Q=K[ae];if(Q!==null)for(K[ae]=null,ae=0;ae<Q.length;ae++){var ee=Q[ae];ee!==null&&(ee.lane&=-536870913)}l&=~ce}u!==0&&Xs(r,u,0),p!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=p&~(_&~a))}function Xs(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var u=31-Ye(a);r.entangledLanes|=a,r.entanglements[u]=r.entanglements[u]|1073741824|l&261930}function eu(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var u=31-Ye(l),f=1<<u;f&a|r[u]&a&&(r[u]|=a),l&=~f}}function Tr(r,a){var l=a&-a;return l=(l&42)!==0?1:dr(l),(l&(r.suspendedLanes|a))!==0?0:l}function dr(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function yl(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Ny(){var r=B.p;return r!==0?r:(r=window.event,r===void 0?32:h_(r.type))}function My(r,a){var l=B.p;try{return B.p=r,a()}finally{B.p=l}}var ca=Math.random().toString(36).slice(2),Qt="__reactFiber$"+ca,yn="__reactProps$"+ca,Ji="__reactContainer$"+ca,lf="__reactEvents$"+ca,X5="__reactListeners$"+ca,eC="__reactHandles$"+ca,Ry="__reactResources$"+ca,gl="__reactMarker$"+ca;function sf(r){delete r[Qt],delete r[yn],delete r[lf],delete r[X5],delete r[eC]}function Xi(r){var a=r[Qt];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Ji]||l[Qt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=Xv(r);r!==null;){if(l=r[Qt])return l;r=Xv(r)}return a}r=l,l=r.parentNode}return null}function eo(r){if(r=r[Qt]||r[Ji]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function bl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function to(r){var a=r[Ry];return a||(a=r[Ry]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Kt(r){r[gl]=!0}var Oy=new Set,ky={};function ai(r,a){no(r,a),no(r+"Capture",a)}function no(r,a){for(ky[r]=a,r=0;r<a.length;r++)Oy.add(a[r])}var tC=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),By={},Ly={};function nC(r){return be.call(Ly,r)?!0:be.call(By,r)?!1:tC.test(r)?Ly[r]=!0:(By[r]=!0,!1)}function tu(r,a,l){if(nC(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function nu(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function Nr(r,a,l,u){if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+u)}}function Gn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Py(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function rC(r,a,l){var u=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,p=u.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return f.call(this)},set:function(_){l=""+_,p.call(this,_)}}),Object.defineProperty(r,a,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(_){l=""+_},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function uf(r){if(!r._valueTracker){var a=Py(r)?"checked":"value";r._valueTracker=rC(r,a,""+r[a])}}function Iy(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),u="";return r&&(u=Py(r)?r.checked?"true":"false":r.value),r=u,r!==l?(a.setValue(r),!0):!1}function ru(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var aC=/[\n"\\]/g;function Zn(r){return r.replace(aC,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function cf(r,a,l,u,f,p,_,$){r.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?r.type=_:r.removeAttribute("type"),a!=null?_==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Gn(a)):r.value!==""+Gn(a)&&(r.value=""+Gn(a)):_!=="submit"&&_!=="reset"||r.removeAttribute("value"),a!=null?df(r,_,Gn(a)):l!=null?df(r,_,Gn(l)):u!=null&&r.removeAttribute("value"),f==null&&p!=null&&(r.defaultChecked=!!p),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?r.name=""+Gn($):r.removeAttribute("name")}function Fy(r,a,l,u,f,p,_,$){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(r.type=p),a!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||a!=null)){uf(r);return}l=l!=null?""+Gn(l):"",a=a!=null?""+Gn(a):l,$||a===r.value||(r.value=a),r.defaultValue=a}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=$?r.checked:!!u,r.defaultChecked=!!u,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.name=_),uf(r)}function df(r,a,l){a==="number"&&ru(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function ro(r,a,l,u){if(r=r.options,a){a={};for(var f=0;f<l.length;f++)a["$"+l[f]]=!0;for(l=0;l<r.length;l++)f=a.hasOwnProperty("$"+r[l].value),r[l].selected!==f&&(r[l].selected=f),f&&u&&(r[l].defaultSelected=!0)}else{for(l=""+Gn(l),a=null,f=0;f<r.length;f++){if(r[f].value===l){r[f].selected=!0,u&&(r[f].defaultSelected=!0);return}a!==null||r[f].disabled||(a=r[f])}a!==null&&(a.selected=!0)}}function jy(r,a,l){if(a!=null&&(a=""+Gn(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+Gn(l):""}function zy(r,a,l,u){if(a==null){if(u!=null){if(l!=null)throw Error(i(92));if(de(u)){if(1<u.length)throw Error(i(93));u=u[0]}l=u}l==null&&(l=""),a=l}l=Gn(a),r.defaultValue=l,u=r.textContent,u===l&&u!==""&&u!==null&&(r.value=u),uf(r)}function ao(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var iC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Uy(r,a,l){var u=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":u?r.setProperty(a,l):typeof l!="number"||l===0||iC.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function Hy(r,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var f in a)u=a[f],a.hasOwnProperty(f)&&l[f]!==u&&Uy(r,f,u)}else for(var p in a)a.hasOwnProperty(p)&&Uy(r,p,a[p])}function ff(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),lC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function au(r){return lC.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Mr(){}var mf=null;function pf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var io=null,oo=null;function Vy(r){var a=eo(r);if(a&&(r=a.stateNode)){var l=r[yn]||null;e:switch(r=a.stateNode,a.type){case"input":if(cf(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Zn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var u=l[a];if(u!==r&&u.form===r.form){var f=u[yn]||null;if(!f)throw Error(i(90));cf(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<l.length;a++)u=l[a],u.form===r.form&&Iy(u)}break e;case"textarea":jy(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&ro(r,!!l.multiple,a,!1)}}}var hf=!1;function Gy(r,a,l){if(hf)return r(a,l);hf=!0;try{var u=r(a);return u}finally{if(hf=!1,(io!==null||oo!==null)&&(Gu(),io&&(a=io,r=oo,oo=io=null,Vy(a),r)))for(a=0;a<r.length;a++)Vy(r[a])}}function vl(r,a){var l=r.stateNode;if(l===null)return null;var u=l[yn]||null;if(u===null)return null;l=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var Rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yf=!1;if(Rr)try{var _l={};Object.defineProperty(_l,"passive",{get:function(){yf=!0}}),window.addEventListener("test",_l,_l),window.removeEventListener("test",_l,_l)}catch{yf=!1}var da=null,gf=null,iu=null;function Zy(){if(iu)return iu;var r,a=gf,l=a.length,u,f="value"in da?da.value:da.textContent,p=f.length;for(r=0;r<l&&a[r]===f[r];r++);var _=l-r;for(u=1;u<=_&&a[l-u]===f[p-u];u++);return iu=f.slice(r,1<u?1-u:void 0)}function ou(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function lu(){return!0}function Yy(){return!1}function gn(r){function a(l,u,f,p,_){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=p,this.target=_,this.currentTarget=null;for(var $ in r)r.hasOwnProperty($)&&(l=r[$],this[$]=l?l(p):p[$]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?lu:Yy,this.isPropagationStopped=Yy,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=lu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=lu)},persist:function(){},isPersistent:lu}),a}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},su=gn(ii),El=g({},ii,{view:0,detail:0}),sC=gn(El),bf,vf,Sl,uu=g({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ef,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Sl&&(Sl&&r.type==="mousemove"?(bf=r.screenX-Sl.screenX,vf=r.screenY-Sl.screenY):vf=bf=0,Sl=r),bf)},movementY:function(r){return"movementY"in r?r.movementY:vf}}),qy=gn(uu),uC=g({},uu,{dataTransfer:0}),cC=gn(uC),dC=g({},El,{relatedTarget:0}),_f=gn(dC),fC=g({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),mC=gn(fC),pC=g({},ii,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),hC=gn(pC),yC=g({},ii,{data:0}),Ky=gn(yC),gC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _C(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=vC[r])?!!a[r]:!1}function Ef(){return _C}var EC=g({},El,{key:function(r){if(r.key){var a=gC[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=ou(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?bC[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ef,charCode:function(r){return r.type==="keypress"?ou(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ou(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),SC=gn(EC),DC=g({},uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wy=gn(DC),$C=g({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),xC=gn($C),CC=g({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),AC=gn(CC),wC=g({},uu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),TC=gn(wC),NC=g({},ii,{newState:0,oldState:0}),MC=gn(NC),RC=[9,13,27,32],Sf=Rr&&"CompositionEvent"in window,Dl=null;Rr&&"documentMode"in document&&(Dl=document.documentMode);var OC=Rr&&"TextEvent"in window&&!Dl,Qy=Rr&&(!Sf||Dl&&8<Dl&&11>=Dl),Jy=" ",Xy=!1;function eg(r,a){switch(r){case"keyup":return RC.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var lo=!1;function kC(r,a){switch(r){case"compositionend":return tg(a);case"keypress":return a.which!==32?null:(Xy=!0,Jy);case"textInput":return r=a.data,r===Jy&&Xy?null:r;default:return null}}function BC(r,a){if(lo)return r==="compositionend"||!Sf&&eg(r,a)?(r=Zy(),iu=gf=da=null,lo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Qy&&a.locale!=="ko"?null:a.data;default:return null}}var LC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ng(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!LC[r.type]:a==="textarea"}function rg(r,a,l,u){io?oo?oo.push(u):oo=[u]:io=u,a=Ju(a,"onChange"),0<a.length&&(l=new su("onChange","change",null,l,u),r.push({event:l,listeners:a}))}var $l=null,xl=null;function PC(r){Fv(r,0)}function cu(r){var a=bl(r);if(Iy(a))return r}function ag(r,a){if(r==="change")return a}var ig=!1;if(Rr){var Df;if(Rr){var $f="oninput"in document;if(!$f){var og=document.createElement("div");og.setAttribute("oninput","return;"),$f=typeof og.oninput=="function"}Df=$f}else Df=!1;ig=Df&&(!document.documentMode||9<document.documentMode)}function lg(){$l&&($l.detachEvent("onpropertychange",sg),xl=$l=null)}function sg(r){if(r.propertyName==="value"&&cu(xl)){var a=[];rg(a,xl,r,pf(r)),Gy(PC,a)}}function IC(r,a,l){r==="focusin"?(lg(),$l=a,xl=l,$l.attachEvent("onpropertychange",sg)):r==="focusout"&&lg()}function FC(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return cu(xl)}function jC(r,a){if(r==="click")return cu(a)}function zC(r,a){if(r==="input"||r==="change")return cu(a)}function UC(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var On=typeof Object.is=="function"?Object.is:UC;function Cl(r,a){if(On(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),u=Object.keys(a);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!be.call(a,f)||!On(r[f],a[f]))return!1}return!0}function ug(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function cg(r,a){var l=ug(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=a&&u>=a)return{node:l,offset:a-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ug(l)}}function dg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?dg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function fg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=ru(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=ru(r.document)}return a}function xf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var HC=Rr&&"documentMode"in document&&11>=document.documentMode,so=null,Cf=null,Al=null,Af=!1;function mg(r,a,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Af||so==null||so!==ru(u)||(u=so,"selectionStart"in u&&xf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Al&&Cl(Al,u)||(Al=u,u=Ju(Cf,"onSelect"),0<u.length&&(a=new su("onSelect","select",null,a,l),r.push({event:a,listeners:u}),a.target=so)))}function oi(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var uo={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:oi("Animation","AnimationStart"),transitionrun:oi("Transition","TransitionRun"),transitionstart:oi("Transition","TransitionStart"),transitioncancel:oi("Transition","TransitionCancel"),transitionend:oi("Transition","TransitionEnd")},wf={},pg={};Rr&&(pg=document.createElement("div").style,"AnimationEvent"in window||(delete uo.animationend.animation,delete uo.animationiteration.animation,delete uo.animationstart.animation),"TransitionEvent"in window||delete uo.transitionend.transition);function li(r){if(wf[r])return wf[r];if(!uo[r])return r;var a=uo[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in pg)return wf[r]=a[l];return r}var hg=li("animationend"),yg=li("animationiteration"),gg=li("animationstart"),VC=li("transitionrun"),GC=li("transitionstart"),ZC=li("transitioncancel"),bg=li("transitionend"),vg=new Map,Tf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Tf.push("scrollEnd");function fr(r,a){vg.set(r,a),ai(a,[r])}var du=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Yn=[],co=0,Nf=0;function fu(){for(var r=co,a=Nf=co=0;a<r;){var l=Yn[a];Yn[a++]=null;var u=Yn[a];Yn[a++]=null;var f=Yn[a];Yn[a++]=null;var p=Yn[a];if(Yn[a++]=null,u!==null&&f!==null){var _=u.pending;_===null?f.next=f:(f.next=_.next,_.next=f),u.pending=f}p!==0&&_g(l,f,p)}}function mu(r,a,l,u){Yn[co++]=r,Yn[co++]=a,Yn[co++]=l,Yn[co++]=u,Nf|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function Mf(r,a,l,u){return mu(r,a,l,u),pu(r)}function si(r,a){return mu(r,null,null,a),pu(r)}function _g(r,a,l){r.lanes|=l;var u=r.alternate;u!==null&&(u.lanes|=l);for(var f=!1,p=r.return;p!==null;)p.childLanes|=l,u=p.alternate,u!==null&&(u.childLanes|=l),p.tag===22&&(r=p.stateNode,r===null||r._visibility&1||(f=!0)),r=p,p=p.return;return r.tag===3?(p=r.stateNode,f&&a!==null&&(f=31-Ye(l),r=p.hiddenUpdates,u=r[f],u===null?r[f]=[a]:u.push(a),a.lane=l|536870912),p):null}function pu(r){if(50<Kl)throw Kl=0,jm=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var fo={};function YC(r,a,l,u){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kn(r,a,l,u){return new YC(r,a,l,u)}function Rf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Or(r,a){var l=r.alternate;return l===null?(l=kn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Eg(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function hu(r,a,l,u,f,p){var _=0;if(u=r,typeof r=="function")Rf(r)&&(_=1);else if(typeof r=="string")_=J6(r,l,Y.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case ne:return r=kn(31,l,a,f),r.elementType=ne,r.lanes=p,r;case x:return ui(l.children,f,p,a);case w:_=8,f|=24;break;case R:return r=kn(12,l,a,f|2),r.elementType=R,r.lanes=p,r;case M:return r=kn(13,l,a,f),r.elementType=M,r.lanes=p,r;case Z:return r=kn(19,l,a,f),r.elementType=Z,r.lanes=p,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case A:_=10;break e;case I:_=9;break e;case L:_=11;break e;case V:_=14;break e;case fe:_=16,u=null;break e}_=29,l=Error(i(130,r===null?"null":typeof r,"")),u=null}return a=kn(_,l,a,f),a.elementType=r,a.type=u,a.lanes=p,a}function ui(r,a,l,u){return r=kn(7,r,u,a),r.lanes=l,r}function Of(r,a,l){return r=kn(6,r,null,a),r.lanes=l,r}function Sg(r){var a=kn(18,null,null,0);return a.stateNode=r,a}function kf(r,a,l){return a=kn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Dg=new WeakMap;function qn(r,a){if(typeof r=="object"&&r!==null){var l=Dg.get(r);return l!==void 0?l:(a={value:r,source:a,stack:_e(a)},Dg.set(r,a),a)}return{value:r,source:a,stack:_e(a)}}var mo=[],po=0,yu=null,wl=0,Kn=[],Wn=0,fa=null,vr=1,_r="";function kr(r,a){mo[po++]=wl,mo[po++]=yu,yu=r,wl=a}function $g(r,a,l){Kn[Wn++]=vr,Kn[Wn++]=_r,Kn[Wn++]=fa,fa=r;var u=vr;r=_r;var f=32-Ye(u)-1;u&=~(1<<f),l+=1;var p=32-Ye(a)+f;if(30<p){var _=f-f%5;p=(u&(1<<_)-1).toString(32),u>>=_,f-=_,vr=1<<32-Ye(a)+f|l<<f|u,_r=p+r}else vr=1<<p|l<<f|u,_r=r}function Bf(r){r.return!==null&&(kr(r,1),$g(r,1,0))}function Lf(r){for(;r===yu;)yu=mo[--po],mo[po]=null,wl=mo[--po],mo[po]=null;for(;r===fa;)fa=Kn[--Wn],Kn[Wn]=null,_r=Kn[--Wn],Kn[Wn]=null,vr=Kn[--Wn],Kn[Wn]=null}function xg(r,a){Kn[Wn++]=vr,Kn[Wn++]=_r,Kn[Wn++]=fa,vr=a.id,_r=a.overflow,fa=r}var Jt=null,Dt=null,et=!1,ma=null,Qn=!1,Pf=Error(i(519));function pa(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(qn(a,r)),Pf}function Cg(r){var a=r.stateNode,l=r.type,u=r.memoizedProps;switch(a[Qt]=r,a[yn]=u,l){case"dialog":Qe("cancel",a),Qe("close",a);break;case"iframe":case"object":case"embed":Qe("load",a);break;case"video":case"audio":for(l=0;l<Ql.length;l++)Qe(Ql[l],a);break;case"source":Qe("error",a);break;case"img":case"image":case"link":Qe("error",a),Qe("load",a);break;case"details":Qe("toggle",a);break;case"input":Qe("invalid",a),Fy(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Qe("invalid",a);break;case"textarea":Qe("invalid",a),zy(a,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||u.suppressHydrationWarning===!0||Hv(a.textContent,l)?(u.popover!=null&&(Qe("beforetoggle",a),Qe("toggle",a)),u.onScroll!=null&&Qe("scroll",a),u.onScrollEnd!=null&&Qe("scrollend",a),u.onClick!=null&&(a.onclick=Mr),a=!0):a=!1,a||pa(r,!0)}function Ag(r){for(Jt=r.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:Jt=Jt.return}}function ho(r){if(r!==Jt)return!1;if(!et)return Ag(r),et=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||tp(r.type,r.memoizedProps)),l=!l),l&&Dt&&pa(r),Ag(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Dt=Jv(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Dt=Jv(r)}else a===27?(a=Dt,wa(r.type)?(r=op,op=null,Dt=r):Dt=a):Dt=Jt?Xn(r.stateNode.nextSibling):null;return!0}function ci(){Dt=Jt=null,et=!1}function If(){var r=ma;return r!==null&&(En===null?En=r:En.push.apply(En,r),ma=null),r}function Tl(r){ma===null?ma=[r]:ma.push(r)}var Ff=C(null),di=null,Br=null;function ha(r,a,l){W(Ff,a._currentValue),a._currentValue=l}function Lr(r){r._currentValue=Ff.current,U(Ff)}function jf(r,a,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),r===l)break;r=r.return}}function zf(r,a,l,u){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var p=f.dependencies;if(p!==null){var _=f.child;p=p.firstContext;e:for(;p!==null;){var $=p;p=f;for(var O=0;O<a.length;O++)if($.context===a[O]){p.lanes|=l,$=p.alternate,$!==null&&($.lanes|=l),jf(p.return,l,r),u||(_=null);break e}p=$.next}}else if(f.tag===18){if(_=f.return,_===null)throw Error(i(341));_.lanes|=l,p=_.alternate,p!==null&&(p.lanes|=l),jf(_,l,r),_=null}else _=f.child;if(_!==null)_.return=f;else for(_=f;_!==null;){if(_===r){_=null;break}if(f=_.sibling,f!==null){f.return=_.return,_=f;break}_=_.return}f=_}}function yo(r,a,l,u){r=null;for(var f=a,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var _=f.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var $=f.type;On(f.pendingProps.value,_.value)||(r!==null?r.push($):r=[$])}}else if(f===T.current){if(_=f.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(ns):r=[ns])}f=f.return}r!==null&&zf(a,r,l,u),a.flags|=262144}function gu(r){for(r=r.firstContext;r!==null;){if(!On(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function fi(r){di=r,Br=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Xt(r){return wg(di,r)}function bu(r,a){return di===null&&fi(r),wg(r,a)}function wg(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},Br===null){if(r===null)throw Error(i(308));Br=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Br=Br.next=a;return l}var qC=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,u){r.push(u)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},KC=e.unstable_scheduleCallback,WC=e.unstable_NormalPriority,Ft={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uf(){return{controller:new qC,data:new Map,refCount:0}}function Nl(r){r.refCount--,r.refCount===0&&KC(WC,function(){r.controller.abort()})}var Ml=null,Hf=0,go=0,bo=null;function QC(r,a){if(Ml===null){var l=Ml=[];Hf=0,go=Zm(),bo={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Hf++,a.then(Tg,Tg),a}function Tg(){if(--Hf===0&&Ml!==null){bo!==null&&(bo.status="fulfilled");var r=Ml;Ml=null,go=0,bo=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function JC(r,a){var l=[],u={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return r.then(function(){u.status="fulfilled",u.value=a;for(var f=0;f<l.length;f++)(0,l[f])(a)},function(f){for(u.status="rejected",u.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),u}var Ng=k.S;k.S=function(r,a){mv=oe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&QC(r,a),Ng!==null&&Ng(r,a)};var mi=C(null);function Vf(){var r=mi.current;return r!==null?r:vt.pooledCache}function vu(r,a){a===null?W(mi,mi.current):W(mi,a.pool)}function Mg(){var r=Vf();return r===null?null:{parent:Ft._currentValue,pool:r}}var vo=Error(i(460)),Gf=Error(i(474)),_u=Error(i(542)),Eu={then:function(){}};function Rg(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Og(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(Mr,Mr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Bg(r),r;default:if(typeof a.status=="string")a.then(Mr,Mr);else{if(r=vt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(u){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=u}},function(u){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Bg(r),r}throw hi=a,vo}}function pi(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(hi=l,vo):l}}var hi=null;function kg(){if(hi===null)throw Error(i(459));var r=hi;return hi=null,r}function Bg(r){if(r===vo||r===_u)throw Error(i(483))}var _o=null,Rl=0;function Su(r){var a=Rl;return Rl+=1,_o===null&&(_o=[]),Og(_o,r,a)}function Ol(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Du(r,a){throw a.$$typeof===E?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Lg(r){function a(H,P){if(r){var q=H.deletions;q===null?(H.deletions=[P],H.flags|=16):q.push(P)}}function l(H,P){if(!r)return null;for(;P!==null;)a(H,P),P=P.sibling;return null}function u(H){for(var P=new Map;H!==null;)H.key!==null?P.set(H.key,H):P.set(H.index,H),H=H.sibling;return P}function f(H,P){return H=Or(H,P),H.index=0,H.sibling=null,H}function p(H,P,q){return H.index=q,r?(q=H.alternate,q!==null?(q=q.index,q<P?(H.flags|=67108866,P):q):(H.flags|=67108866,P)):(H.flags|=1048576,P)}function _(H){return r&&H.alternate===null&&(H.flags|=67108866),H}function $(H,P,q,le){return P===null||P.tag!==6?(P=Of(q,H.mode,le),P.return=H,P):(P=f(P,q),P.return=H,P)}function O(H,P,q,le){var Be=q.type;return Be===x?ae(H,P,q.props.children,le,q.key):P!==null&&(P.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===fe&&pi(Be)===P.type)?(P=f(P,q.props),Ol(P,q),P.return=H,P):(P=hu(q.type,q.key,q.props,null,H.mode,le),Ol(P,q),P.return=H,P)}function K(H,P,q,le){return P===null||P.tag!==4||P.stateNode.containerInfo!==q.containerInfo||P.stateNode.implementation!==q.implementation?(P=kf(q,H.mode,le),P.return=H,P):(P=f(P,q.children||[]),P.return=H,P)}function ae(H,P,q,le,Be){return P===null||P.tag!==7?(P=ui(q,H.mode,le,Be),P.return=H,P):(P=f(P,q),P.return=H,P)}function ce(H,P,q){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=Of(""+P,H.mode,q),P.return=H,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return q=hu(P.type,P.key,P.props,null,H.mode,q),Ol(q,P),q.return=H,q;case D:return P=kf(P,H.mode,q),P.return=H,P;case fe:return P=pi(P),ce(H,P,q)}if(de(P)||ye(P))return P=ui(P,H.mode,q,null),P.return=H,P;if(typeof P.then=="function")return ce(H,Su(P),q);if(P.$$typeof===A)return ce(H,bu(H,P),q);Du(H,P)}return null}function Q(H,P,q,le){var Be=P!==null?P.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Be!==null?null:$(H,P,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===Be?O(H,P,q,le):null;case D:return q.key===Be?K(H,P,q,le):null;case fe:return q=pi(q),Q(H,P,q,le)}if(de(q)||ye(q))return Be!==null?null:ae(H,P,q,le,null);if(typeof q.then=="function")return Q(H,P,Su(q),le);if(q.$$typeof===A)return Q(H,P,bu(H,q),le);Du(H,q)}return null}function ee(H,P,q,le,Be){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return H=H.get(q)||null,$(P,H,""+le,Be);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case S:return H=H.get(le.key===null?q:le.key)||null,O(P,H,le,Be);case D:return H=H.get(le.key===null?q:le.key)||null,K(P,H,le,Be);case fe:return le=pi(le),ee(H,P,q,le,Be)}if(de(le)||ye(le))return H=H.get(q)||null,ae(P,H,le,Be,null);if(typeof le.then=="function")return ee(H,P,q,Su(le),Be);if(le.$$typeof===A)return ee(H,P,q,bu(P,le),Be);Du(P,le)}return null}function Ne(H,P,q,le){for(var Be=null,at=null,Oe=P,Ze=P=0,Xe=null;Oe!==null&&Ze<q.length;Ze++){Oe.index>Ze?(Xe=Oe,Oe=null):Xe=Oe.sibling;var it=Q(H,Oe,q[Ze],le);if(it===null){Oe===null&&(Oe=Xe);break}r&&Oe&&it.alternate===null&&a(H,Oe),P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it,Oe=Xe}if(Ze===q.length)return l(H,Oe),et&&kr(H,Ze),Be;if(Oe===null){for(;Ze<q.length;Ze++)Oe=ce(H,q[Ze],le),Oe!==null&&(P=p(Oe,P,Ze),at===null?Be=Oe:at.sibling=Oe,at=Oe);return et&&kr(H,Ze),Be}for(Oe=u(Oe);Ze<q.length;Ze++)Xe=ee(Oe,H,Ze,q[Ze],le),Xe!==null&&(r&&Xe.alternate!==null&&Oe.delete(Xe.key===null?Ze:Xe.key),P=p(Xe,P,Ze),at===null?Be=Xe:at.sibling=Xe,at=Xe);return r&&Oe.forEach(function(Oa){return a(H,Oa)}),et&&kr(H,Ze),Be}function Fe(H,P,q,le){if(q==null)throw Error(i(151));for(var Be=null,at=null,Oe=P,Ze=P=0,Xe=null,it=q.next();Oe!==null&&!it.done;Ze++,it=q.next()){Oe.index>Ze?(Xe=Oe,Oe=null):Xe=Oe.sibling;var Oa=Q(H,Oe,it.value,le);if(Oa===null){Oe===null&&(Oe=Xe);break}r&&Oe&&Oa.alternate===null&&a(H,Oe),P=p(Oa,P,Ze),at===null?Be=Oa:at.sibling=Oa,at=Oa,Oe=Xe}if(it.done)return l(H,Oe),et&&kr(H,Ze),Be;if(Oe===null){for(;!it.done;Ze++,it=q.next())it=ce(H,it.value,le),it!==null&&(P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it);return et&&kr(H,Ze),Be}for(Oe=u(Oe);!it.done;Ze++,it=q.next())it=ee(Oe,H,Ze,it.value,le),it!==null&&(r&&it.alternate!==null&&Oe.delete(it.key===null?Ze:it.key),P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it);return r&&Oe.forEach(function(uA){return a(H,uA)}),et&&kr(H,Ze),Be}function gt(H,P,q,le){if(typeof q=="object"&&q!==null&&q.type===x&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case S:e:{for(var Be=q.key;P!==null;){if(P.key===Be){if(Be=q.type,Be===x){if(P.tag===7){l(H,P.sibling),le=f(P,q.props.children),le.return=H,H=le;break e}}else if(P.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===fe&&pi(Be)===P.type){l(H,P.sibling),le=f(P,q.props),Ol(le,q),le.return=H,H=le;break e}l(H,P);break}else a(H,P);P=P.sibling}q.type===x?(le=ui(q.props.children,H.mode,le,q.key),le.return=H,H=le):(le=hu(q.type,q.key,q.props,null,H.mode,le),Ol(le,q),le.return=H,H=le)}return _(H);case D:e:{for(Be=q.key;P!==null;){if(P.key===Be)if(P.tag===4&&P.stateNode.containerInfo===q.containerInfo&&P.stateNode.implementation===q.implementation){l(H,P.sibling),le=f(P,q.children||[]),le.return=H,H=le;break e}else{l(H,P);break}else a(H,P);P=P.sibling}le=kf(q,H.mode,le),le.return=H,H=le}return _(H);case fe:return q=pi(q),gt(H,P,q,le)}if(de(q))return Ne(H,P,q,le);if(ye(q)){if(Be=ye(q),typeof Be!="function")throw Error(i(150));return q=Be.call(q),Fe(H,P,q,le)}if(typeof q.then=="function")return gt(H,P,Su(q),le);if(q.$$typeof===A)return gt(H,P,bu(H,q),le);Du(H,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,P!==null&&P.tag===6?(l(H,P.sibling),le=f(P,q),le.return=H,H=le):(l(H,P),le=Of(q,H.mode,le),le.return=H,H=le),_(H)):l(H,P)}return function(H,P,q,le){try{Rl=0;var Be=gt(H,P,q,le);return _o=null,Be}catch(Oe){if(Oe===vo||Oe===_u)throw Oe;var at=kn(29,Oe,null,H.mode);return at.lanes=le,at.return=H,at}finally{}}}var yi=Lg(!0),Pg=Lg(!1),ya=!1;function Zf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yf(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ga(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ba(r,a,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(lt&2)!==0){var f=u.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a,a=pu(r),_g(r,null,l),a}return mu(r,u,a,l),pu(r)}function kl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var u=a.lanes;u&=r.pendingLanes,l|=u,a.lanes=l,eu(r,l)}}function qf(r,a){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var _={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?f=p=_:p=p.next=_,l=l.next}while(l!==null);p===null?f=p=a:p=p.next=a}else f=p=a;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var Kf=!1;function Bl(){if(Kf){var r=bo;if(r!==null)throw r}}function Ll(r,a,l,u){Kf=!1;var f=r.updateQueue;ya=!1;var p=f.firstBaseUpdate,_=f.lastBaseUpdate,$=f.shared.pending;if($!==null){f.shared.pending=null;var O=$,K=O.next;O.next=null,_===null?p=K:_.next=K,_=O;var ae=r.alternate;ae!==null&&(ae=ae.updateQueue,$=ae.lastBaseUpdate,$!==_&&($===null?ae.firstBaseUpdate=K:$.next=K,ae.lastBaseUpdate=O))}if(p!==null){var ce=f.baseState;_=0,ae=K=O=null,$=p;do{var Q=$.lane&-536870913,ee=Q!==$.lane;if(ee?(Je&Q)===Q:(u&Q)===Q){Q!==0&&Q===go&&(Kf=!0),ae!==null&&(ae=ae.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var Ne=r,Fe=$;Q=a;var gt=l;switch(Fe.tag){case 1:if(Ne=Fe.payload,typeof Ne=="function"){ce=Ne.call(gt,ce,Q);break e}ce=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Fe.payload,Q=typeof Ne=="function"?Ne.call(gt,ce,Q):Ne,Q==null)break e;ce=g({},ce,Q);break e;case 2:ya=!0}}Q=$.callback,Q!==null&&(r.flags|=64,ee&&(r.flags|=8192),ee=f.callbacks,ee===null?f.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ae===null?(K=ae=ee,O=ce):ae=ae.next=ee,_|=Q;if($=$.next,$===null){if($=f.shared.pending,$===null)break;ee=$,$=ee.next,ee.next=null,f.lastBaseUpdate=ee,f.shared.pending=null}}while(!0);ae===null&&(O=ce),f.baseState=O,f.firstBaseUpdate=K,f.lastBaseUpdate=ae,p===null&&(f.shared.lanes=0),Da|=_,r.lanes=_,r.memoizedState=ce}}function Ig(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Fg(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)Ig(l[r],a)}var Eo=C(null),$u=C(0);function jg(r,a){r=Gr,W($u,r),W(Eo,a),Gr=r|a.baseLanes}function Wf(){W($u,Gr),W(Eo,Eo.current)}function Qf(){Gr=$u.current,U(Eo),U($u)}var Bn=C(null),Jn=null;function va(r){var a=r.alternate;W(Lt,Lt.current&1),W(Bn,r),Jn===null&&(a===null||Eo.current!==null||a.memoizedState!==null)&&(Jn=r)}function Jf(r){W(Lt,Lt.current),W(Bn,r),Jn===null&&(Jn=r)}function zg(r){r.tag===22?(W(Lt,Lt.current),W(Bn,r),Jn===null&&(Jn=r)):_a()}function _a(){W(Lt,Lt.current),W(Bn,Bn.current)}function Ln(r){U(Bn),Jn===r&&(Jn=null),U(Lt)}var Lt=C(0);function xu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ap(l)||ip(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Pr=0,Ge=null,ht=null,jt=null,Cu=!1,So=!1,gi=!1,Au=0,Pl=0,Do=null,XC=0;function Nt(){throw Error(i(321))}function Xf(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!On(r[l],a[l]))return!1;return!0}function em(r,a,l,u,f,p){return Pr=p,Ge=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,k.H=r===null||r.memoizedState===null?$b:hm,gi=!1,p=l(u,f),gi=!1,So&&(p=Hg(a,l,u,f)),Ug(r),p}function Ug(r){k.H=jl;var a=ht!==null&&ht.next!==null;if(Pr=0,jt=ht=Ge=null,Cu=!1,Pl=0,Do=null,a)throw Error(i(300));r===null||zt||(r=r.dependencies,r!==null&&gu(r)&&(zt=!0))}function Hg(r,a,l,u){Ge=r;var f=0;do{if(So&&(Do=null),Pl=0,So=!1,25<=f)throw Error(i(301));if(f+=1,jt=ht=null,r.updateQueue!=null){var p=r.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}k.H=xb,p=a(l,u)}while(So);return p}function e6(){var r=k.H,a=r.useState()[0];return a=typeof a.then=="function"?Il(a):a,r=r.useState()[0],(ht!==null?ht.memoizedState:null)!==r&&(Ge.flags|=1024),a}function tm(){var r=Au!==0;return Au=0,r}function nm(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function rm(r){if(Cu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Cu=!1}Pr=0,jt=ht=Ge=null,So=!1,Pl=Au=0,Do=null}function cn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Ge.memoizedState=jt=r:jt=jt.next=r,jt}function Pt(){if(ht===null){var r=Ge.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var a=jt===null?Ge.memoizedState:jt.next;if(a!==null)jt=a,ht=r;else{if(r===null)throw Ge.alternate===null?Error(i(467)):Error(i(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},jt===null?Ge.memoizedState=jt=r:jt=jt.next=r}return jt}function wu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Il(r){var a=Pl;return Pl+=1,Do===null&&(Do=[]),r=Og(Do,r,a),a=Ge,(jt===null?a.memoizedState:jt.next)===null&&(a=a.alternate,k.H=a===null||a.memoizedState===null?$b:hm),r}function Tu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Il(r);if(r.$$typeof===A)return Xt(r)}throw Error(i(438,String(r)))}function am(r){var a=null,l=Ge.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var u=Ge.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=wu(),Ge.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),u=0;u<r;u++)l[u]=pe;return a.index++,l}function Ir(r,a){return typeof a=="function"?a(r):a}function Nu(r){var a=Pt();return im(a,ht,r)}function im(r,a,l){var u=r.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=l;var f=r.baseQueue,p=u.pending;if(p!==null){if(f!==null){var _=f.next;f.next=p.next,p.next=_}a.baseQueue=f=p,u.pending=null}if(p=r.baseState,f===null)r.memoizedState=p;else{a=f.next;var $=_=null,O=null,K=a,ae=!1;do{var ce=K.lane&-536870913;if(ce!==K.lane?(Je&ce)===ce:(Pr&ce)===ce){var Q=K.revertLane;if(Q===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ce===go&&(ae=!0);else if((Pr&Q)===Q){K=K.next,Q===go&&(ae=!0);continue}else ce={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?($=O=ce,_=p):O=O.next=ce,Ge.lanes|=Q,Da|=Q;ce=K.action,gi&&l(p,ce),p=K.hasEagerState?K.eagerState:l(p,ce)}else Q={lane:ce,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?($=O=Q,_=p):O=O.next=Q,Ge.lanes|=ce,Da|=ce;K=K.next}while(K!==null&&K!==a);if(O===null?_=p:O.next=$,!On(p,r.memoizedState)&&(zt=!0,ae&&(l=bo,l!==null)))throw l;r.memoizedState=p,r.baseState=_,r.baseQueue=O,u.lastRenderedState=p}return f===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function om(r){var a=Pt(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var u=l.dispatch,f=l.pending,p=a.memoizedState;if(f!==null){l.pending=null;var _=f=f.next;do p=r(p,_.action),_=_.next;while(_!==f);On(p,a.memoizedState)||(zt=!0),a.memoizedState=p,a.baseQueue===null&&(a.baseState=p),l.lastRenderedState=p}return[p,u]}function Vg(r,a,l){var u=Ge,f=Pt(),p=et;if(p){if(l===void 0)throw Error(i(407));l=l()}else l=a();var _=!On((ht||f).memoizedState,l);if(_&&(f.memoizedState=l,zt=!0),f=f.queue,um(Yg.bind(null,u,f,r),[r]),f.getSnapshot!==a||_||jt!==null&&jt.memoizedState.tag&1){if(u.flags|=2048,$o(9,{destroy:void 0},Zg.bind(null,u,f,l,a),null),vt===null)throw Error(i(349));p||(Pr&127)!==0||Gg(u,a,l)}return l}function Gg(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Ge.updateQueue,a===null?(a=wu(),Ge.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function Zg(r,a,l,u){a.value=l,a.getSnapshot=u,qg(a)&&Kg(r)}function Yg(r,a,l){return l(function(){qg(a)&&Kg(r)})}function qg(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!On(r,l)}catch{return!0}}function Kg(r){var a=si(r,2);a!==null&&Sn(a,r,2)}function lm(r){var a=cn();if(typeof r=="function"){var l=r;if(r=l(),gi){Tt(!0);try{l()}finally{Tt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:r},a}function Wg(r,a,l,u){return r.baseState=l,im(r,ht,typeof u=="function"?u:Ir)}function t6(r,a,l,u,f){if(Ou(r))throw Error(i(485));if(r=a.action,r!==null){var p={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){p.listeners.push(_)}};k.T!==null?l(!0):p.isTransition=!1,u(p),l=a.pending,l===null?(p.next=a.pending=p,Qg(a,p)):(p.next=l.next,a.pending=l.next=p)}}function Qg(r,a){var l=a.action,u=a.payload,f=r.state;if(a.isTransition){var p=k.T,_={};k.T=_;try{var $=l(f,u),O=k.S;O!==null&&O(_,$),Jg(r,a,$)}catch(K){sm(r,a,K)}finally{p!==null&&_.types!==null&&(p.types=_.types),k.T=p}}else try{p=l(f,u),Jg(r,a,p)}catch(K){sm(r,a,K)}}function Jg(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){Xg(r,a,u)},function(u){return sm(r,a,u)}):Xg(r,a,l)}function Xg(r,a,l){a.status="fulfilled",a.value=l,eb(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,Qg(r,l)))}function sm(r,a,l){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=l,eb(a),a=a.next;while(a!==u)}r.action=null}function eb(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function tb(r,a){return a}function nb(r,a){if(et){var l=vt.formState;if(l!==null){e:{var u=Ge;if(et){if(Dt){t:{for(var f=Dt,p=Qn;f.nodeType!==8;){if(!p){f=null;break t}if(f=Xn(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){Dt=Xn(f.nextSibling),u=f.data==="F!";break e}}pa(u)}u=!1}u&&(a=l[0])}}return l=cn(),l.memoizedState=l.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tb,lastRenderedState:a},l.queue=u,l=Eb.bind(null,Ge,u),u.dispatch=l,u=lm(!1),p=pm.bind(null,Ge,!1,u.queue),u=cn(),f={state:a,dispatch:null,action:r,pending:null},u.queue=f,l=t6.bind(null,Ge,f,p,l),f.dispatch=l,u.memoizedState=r,[a,l,!1]}function rb(r){var a=Pt();return ab(a,ht,r)}function ab(r,a,l){if(a=im(r,a,tb)[0],r=Nu(Ir)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=Il(a)}catch(_){throw _===vo?_u:_}else u=a;a=Pt();var f=a.queue,p=f.dispatch;return l!==a.memoizedState&&(Ge.flags|=2048,$o(9,{destroy:void 0},n6.bind(null,f,l),null)),[u,p,r]}function n6(r,a){r.action=a}function ib(r){var a=Pt(),l=ht;if(l!==null)return ab(a,l,r);Pt(),a=a.memoizedState,l=Pt();var u=l.queue.dispatch;return l.memoizedState=r,[a,u,!1]}function $o(r,a,l,u){return r={tag:r,create:l,deps:u,inst:a,next:null},a=Ge.updateQueue,a===null&&(a=wu(),Ge.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,a.lastEffect=r),r}function ob(){return Pt().memoizedState}function Mu(r,a,l,u){var f=cn();Ge.flags|=r,f.memoizedState=$o(1|a,{destroy:void 0},l,u===void 0?null:u)}function Ru(r,a,l,u){var f=Pt();u=u===void 0?null:u;var p=f.memoizedState.inst;ht!==null&&u!==null&&Xf(u,ht.memoizedState.deps)?f.memoizedState=$o(a,p,l,u):(Ge.flags|=r,f.memoizedState=$o(1|a,p,l,u))}function lb(r,a){Mu(8390656,8,r,a)}function um(r,a){Ru(2048,8,r,a)}function r6(r){Ge.flags|=4;var a=Ge.updateQueue;if(a===null)a=wu(),Ge.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function sb(r){var a=Pt().memoizedState;return r6({ref:a,nextImpl:r}),function(){if((lt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function ub(r,a){return Ru(4,2,r,a)}function cb(r,a){return Ru(4,4,r,a)}function db(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function fb(r,a,l){l=l!=null?l.concat([r]):null,Ru(4,4,db.bind(null,a,r),l)}function cm(){}function mb(r,a){var l=Pt();a=a===void 0?null:a;var u=l.memoizedState;return a!==null&&Xf(a,u[1])?u[0]:(l.memoizedState=[r,a],r)}function pb(r,a){var l=Pt();a=a===void 0?null:a;var u=l.memoizedState;if(a!==null&&Xf(a,u[1]))return u[0];if(u=r(),gi){Tt(!0);try{r()}finally{Tt(!1)}}return l.memoizedState=[u,a],u}function dm(r,a,l){return l===void 0||(Pr&1073741824)!==0&&(Je&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=hv(),Ge.lanes|=r,Da|=r,l)}function hb(r,a,l,u){return On(l,a)?l:Eo.current!==null?(r=dm(r,l,u),On(r,a)||(zt=!0),r):(Pr&42)===0||(Pr&1073741824)!==0&&(Je&261930)===0?(zt=!0,r.memoizedState=l):(r=hv(),Ge.lanes|=r,Da|=r,a)}function yb(r,a,l,u,f){var p=B.p;B.p=p!==0&&8>p?p:8;var _=k.T,$={};k.T=$,pm(r,!1,a,l);try{var O=f(),K=k.S;if(K!==null&&K($,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var ae=JC(O,u);Fl(r,a,ae,Fn(r))}else Fl(r,a,u,Fn(r))}catch(ce){Fl(r,a,{then:function(){},status:"rejected",reason:ce},Fn())}finally{B.p=p,_!==null&&$.types!==null&&(_.types=$.types),k.T=_}}function a6(){}function fm(r,a,l,u){if(r.tag!==5)throw Error(i(476));var f=gb(r).queue;yb(r,f,a,X,l===null?a6:function(){return bb(r),l(u)})}function gb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:X},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function bb(r){var a=gb(r);a.next===null&&(a=r.alternate.memoizedState),Fl(r,a.next.queue,{},Fn())}function mm(){return Xt(ns)}function vb(){return Pt().memoizedState}function _b(){return Pt().memoizedState}function i6(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=Fn();r=ga(l);var u=ba(a,r,l);u!==null&&(Sn(u,a,l),kl(u,a,l)),a={cache:Uf()},r.payload=a;return}a=a.return}}function o6(r,a,l){var u=Fn();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ou(r)?Sb(a,l):(l=Mf(r,a,l,u),l!==null&&(Sn(l,r,u),Db(l,a,u)))}function Eb(r,a,l){var u=Fn();Fl(r,a,l,u)}function Fl(r,a,l,u){var f={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ou(r))Sb(a,f);else{var p=r.alternate;if(r.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var _=a.lastRenderedState,$=p(_,l);if(f.hasEagerState=!0,f.eagerState=$,On($,_))return mu(r,a,f,0),vt===null&&fu(),!1}catch{}finally{}if(l=Mf(r,a,f,u),l!==null)return Sn(l,r,u),Db(l,a,u),!0}return!1}function pm(r,a,l,u){if(u={lane:2,revertLane:Zm(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Ou(r)){if(a)throw Error(i(479))}else a=Mf(r,l,u,2),a!==null&&Sn(a,r,2)}function Ou(r){var a=r.alternate;return r===Ge||a!==null&&a===Ge}function Sb(r,a){So=Cu=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function Db(r,a,l){if((l&4194048)!==0){var u=a.lanes;u&=r.pendingLanes,l|=u,a.lanes=l,eu(r,l)}}var jl={readContext:Xt,use:Tu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};jl.useEffectEvent=Nt;var $b={readContext:Xt,use:Tu,useCallback:function(r,a){return cn().memoizedState=[r,a===void 0?null:a],r},useContext:Xt,useEffect:lb,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,Mu(4194308,4,db.bind(null,a,r),l)},useLayoutEffect:function(r,a){return Mu(4194308,4,r,a)},useInsertionEffect:function(r,a){Mu(4,2,r,a)},useMemo:function(r,a){var l=cn();a=a===void 0?null:a;var u=r();if(gi){Tt(!0);try{r()}finally{Tt(!1)}}return l.memoizedState=[u,a],u},useReducer:function(r,a,l){var u=cn();if(l!==void 0){var f=l(a);if(gi){Tt(!0);try{l(a)}finally{Tt(!1)}}}else f=a;return u.memoizedState=u.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},u.queue=r,r=r.dispatch=o6.bind(null,Ge,r),[u.memoizedState,r]},useRef:function(r){var a=cn();return r={current:r},a.memoizedState=r},useState:function(r){r=lm(r);var a=r.queue,l=Eb.bind(null,Ge,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:cm,useDeferredValue:function(r,a){var l=cn();return dm(l,r,a)},useTransition:function(){var r=lm(!1);return r=yb.bind(null,Ge,r.queue,!0,!1),cn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var u=Ge,f=cn();if(et){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),vt===null)throw Error(i(349));(Je&127)!==0||Gg(u,a,l)}f.memoizedState=l;var p={value:l,getSnapshot:a};return f.queue=p,lb(Yg.bind(null,u,p,r),[r]),u.flags|=2048,$o(9,{destroy:void 0},Zg.bind(null,u,p,l,a),null),l},useId:function(){var r=cn(),a=vt.identifierPrefix;if(et){var l=_r,u=vr;l=(u&~(1<<32-Ye(u)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Au++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=XC++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:mm,useFormState:nb,useActionState:nb,useOptimistic:function(r){var a=cn();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=pm.bind(null,Ge,!0,l),l.dispatch=a,[r,a]},useMemoCache:am,useCacheRefresh:function(){return cn().memoizedState=i6.bind(null,Ge)},useEffectEvent:function(r){var a=cn(),l={impl:r};return a.memoizedState=l,function(){if((lt&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},hm={readContext:Xt,use:Tu,useCallback:mb,useContext:Xt,useEffect:um,useImperativeHandle:fb,useInsertionEffect:ub,useLayoutEffect:cb,useMemo:pb,useReducer:Nu,useRef:ob,useState:function(){return Nu(Ir)},useDebugValue:cm,useDeferredValue:function(r,a){var l=Pt();return hb(l,ht.memoizedState,r,a)},useTransition:function(){var r=Nu(Ir)[0],a=Pt().memoizedState;return[typeof r=="boolean"?r:Il(r),a]},useSyncExternalStore:Vg,useId:vb,useHostTransitionStatus:mm,useFormState:rb,useActionState:rb,useOptimistic:function(r,a){var l=Pt();return Wg(l,ht,r,a)},useMemoCache:am,useCacheRefresh:_b};hm.useEffectEvent=sb;var xb={readContext:Xt,use:Tu,useCallback:mb,useContext:Xt,useEffect:um,useImperativeHandle:fb,useInsertionEffect:ub,useLayoutEffect:cb,useMemo:pb,useReducer:om,useRef:ob,useState:function(){return om(Ir)},useDebugValue:cm,useDeferredValue:function(r,a){var l=Pt();return ht===null?dm(l,r,a):hb(l,ht.memoizedState,r,a)},useTransition:function(){var r=om(Ir)[0],a=Pt().memoizedState;return[typeof r=="boolean"?r:Il(r),a]},useSyncExternalStore:Vg,useId:vb,useHostTransitionStatus:mm,useFormState:ib,useActionState:ib,useOptimistic:function(r,a){var l=Pt();return ht!==null?Wg(l,ht,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:am,useCacheRefresh:_b};xb.useEffectEvent=sb;function ym(r,a,l,u){a=r.memoizedState,l=l(u,a),l=l==null?a:g({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var gm={enqueueSetState:function(r,a,l){r=r._reactInternals;var u=Fn(),f=ga(u);f.payload=a,l!=null&&(f.callback=l),a=ba(r,f,u),a!==null&&(Sn(a,r,u),kl(a,r,u))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var u=Fn(),f=ga(u);f.tag=1,f.payload=a,l!=null&&(f.callback=l),a=ba(r,f,u),a!==null&&(Sn(a,r,u),kl(a,r,u))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=Fn(),u=ga(l);u.tag=2,a!=null&&(u.callback=a),a=ba(r,u,l),a!==null&&(Sn(a,r,l),kl(a,r,l))}};function Cb(r,a,l,u,f,p,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,p,_):a.prototype&&a.prototype.isPureReactComponent?!Cl(l,u)||!Cl(f,p):!0}function Ab(r,a,l,u){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,u),a.state!==r&&gm.enqueueReplaceState(a,a.state,null)}function bi(r,a){var l=a;if("ref"in a){l={};for(var u in a)u!=="ref"&&(l[u]=a[u])}if(r=r.defaultProps){l===a&&(l=g({},l));for(var f in r)l[f]===void 0&&(l[f]=r[f])}return l}function wb(r){du(r)}function Tb(r){console.error(r)}function Nb(r){du(r)}function ku(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function Mb(r,a,l){try{var u=r.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function bm(r,a,l){return l=ga(l),l.tag=3,l.payload={element:null},l.callback=function(){ku(r,a)},l}function Rb(r){return r=ga(r),r.tag=3,r}function Ob(r,a,l,u){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var p=u.value;r.payload=function(){return f(p)},r.callback=function(){Mb(a,l,u)}}var _=l.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(r.callback=function(){Mb(a,l,u),typeof f!="function"&&($a===null?$a=new Set([this]):$a.add(this));var $=u.stack;this.componentDidCatch(u.value,{componentStack:$!==null?$:""})})}function l6(r,a,l,u,f){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=l.alternate,a!==null&&yo(a,l,f,!0),l=Bn.current,l!==null){switch(l.tag){case 31:case 13:return Jn===null?Zu():l.alternate===null&&Mt===0&&(Mt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,u===Eu?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([u]):a.add(u),Hm(r,u,f)),!1;case 22:return l.flags|=65536,u===Eu?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([u]):l.add(u)),Hm(r,u,f)),!1}throw Error(i(435,l.tag))}return Hm(r,u,f),Zu(),!1}if(et)return a=Bn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,u!==Pf&&(r=Error(i(422),{cause:u}),Tl(qn(r,l)))):(u!==Pf&&(a=Error(i(423),{cause:u}),Tl(qn(a,l))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,u=qn(u,l),f=bm(r.stateNode,u,f),qf(r,f),Mt!==4&&(Mt=2)),!1;var p=Error(i(520),{cause:u});if(p=qn(p,l),ql===null?ql=[p]:ql.push(p),Mt!==4&&(Mt=2),a===null)return!0;u=qn(u,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=f&-f,l.lanes|=r,r=bm(l.stateNode,u,r),qf(l,r),!1;case 1:if(a=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&($a===null||!$a.has(p))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Rb(f),Ob(f,r,l,u),qf(l,f),!1}l=l.return}while(l!==null);return!1}var vm=Error(i(461)),zt=!1;function en(r,a,l,u){a.child=r===null?Pg(a,null,l,u):yi(a,r.child,l,u)}function kb(r,a,l,u,f){l=l.render;var p=a.ref;if("ref"in u){var _={};for(var $ in u)$!=="ref"&&(_[$]=u[$])}else _=u;return fi(a),u=em(r,a,l,_,p,f),$=tm(),r!==null&&!zt?(nm(r,a,f),Fr(r,a,f)):(et&&$&&Bf(a),a.flags|=1,en(r,a,u,f),a.child)}function Bb(r,a,l,u,f){if(r===null){var p=l.type;return typeof p=="function"&&!Rf(p)&&p.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=p,Lb(r,a,p,u,f)):(r=hu(l.type,null,u,a,a.mode,f),r.ref=a.ref,r.return=a,a.child=r)}if(p=r.child,!Am(r,f)){var _=p.memoizedProps;if(l=l.compare,l=l!==null?l:Cl,l(_,u)&&r.ref===a.ref)return Fr(r,a,f)}return a.flags|=1,r=Or(p,u),r.ref=a.ref,r.return=a,a.child=r}function Lb(r,a,l,u,f){if(r!==null){var p=r.memoizedProps;if(Cl(p,u)&&r.ref===a.ref)if(zt=!1,a.pendingProps=u=p,Am(r,f))(r.flags&131072)!==0&&(zt=!0);else return a.lanes=r.lanes,Fr(r,a,f)}return _m(r,a,l,u,f)}function Pb(r,a,l,u){var f=u.children,p=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,r!==null){for(u=a.child=r.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~p}else u=0,a.child=null;return Ib(r,a,p,l,u)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&vu(a,p!==null?p.cachePool:null),p!==null?jg(a,p):Wf(),zg(a);else return u=a.lanes=536870912,Ib(r,a,p!==null?p.baseLanes|l:l,l,u)}else p!==null?(vu(a,p.cachePool),jg(a,p),_a(),a.memoizedState=null):(r!==null&&vu(a,null),Wf(),_a());return en(r,a,f,l),a.child}function zl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Ib(r,a,l,u,f){var p=Vf();return p=p===null?null:{parent:Ft._currentValue,pool:p},a.memoizedState={baseLanes:l,cachePool:p},r!==null&&vu(a,null),Wf(),zg(a),r!==null&&yo(r,a,u,!0),a.childLanes=f,null}function Bu(r,a){return a=Pu({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function Fb(r,a,l){return yi(a,r.child,null,l),r=Bu(a,a.pendingProps),r.flags|=2,Ln(a),a.memoizedState=null,r}function s6(r,a,l){var u=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(et){if(u.mode==="hidden")return r=Bu(a,u),a.lanes=536870912,zl(null,r);if(Jf(a),(r=Dt)?(r=Qv(r,Qn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:fa!==null?{id:vr,overflow:_r}:null,retryLane:536870912,hydrationErrors:null},l=Sg(r),l.return=a,a.child=l,Jt=a,Dt=null)):r=null,r===null)throw pa(a);return a.lanes=536870912,null}return Bu(a,u)}var p=r.memoizedState;if(p!==null){var _=p.dehydrated;if(Jf(a),f)if(a.flags&256)a.flags&=-257,a=Fb(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(zt||yo(r,a,l,!1),f=(l&r.childLanes)!==0,zt||f){if(u=vt,u!==null&&(_=Tr(u,l),_!==0&&_!==p.retryLane))throw p.retryLane=_,si(r,_),Sn(u,r,_),vm;Zu(),a=Fb(r,a,l)}else r=p.treeContext,Dt=Xn(_.nextSibling),Jt=a,et=!0,ma=null,Qn=!1,r!==null&&xg(a,r),a=Bu(a,u),a.flags|=4096;return a}return r=Or(r.child,{mode:u.mode,children:u.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Lu(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function _m(r,a,l,u,f){return fi(a),l=em(r,a,l,u,void 0,f),u=tm(),r!==null&&!zt?(nm(r,a,f),Fr(r,a,f)):(et&&u&&Bf(a),a.flags|=1,en(r,a,l,f),a.child)}function jb(r,a,l,u,f,p){return fi(a),a.updateQueue=null,l=Hg(a,u,l,f),Ug(r),u=tm(),r!==null&&!zt?(nm(r,a,p),Fr(r,a,p)):(et&&u&&Bf(a),a.flags|=1,en(r,a,l,p),a.child)}function zb(r,a,l,u,f){if(fi(a),a.stateNode===null){var p=fo,_=l.contextType;typeof _=="object"&&_!==null&&(p=Xt(_)),p=new l(u,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=gm,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=u,p.state=a.memoizedState,p.refs={},Zf(a),_=l.contextType,p.context=typeof _=="object"&&_!==null?Xt(_):fo,p.state=a.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(ym(a,l,_,u),p.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(_=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),_!==p.state&&gm.enqueueReplaceState(p,p.state,null),Ll(a,u,p,f),Bl(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(r===null){p=a.stateNode;var $=a.memoizedProps,O=bi(l,$);p.props=O;var K=p.context,ae=l.contextType;_=fo,typeof ae=="object"&&ae!==null&&(_=Xt(ae));var ce=l.getDerivedStateFromProps;ae=typeof ce=="function"||typeof p.getSnapshotBeforeUpdate=="function",$=a.pendingProps!==$,ae||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||($||K!==_)&&Ab(a,p,u,_),ya=!1;var Q=a.memoizedState;p.state=Q,Ll(a,u,p,f),Bl(),K=a.memoizedState,$||Q!==K||ya?(typeof ce=="function"&&(ym(a,l,ce,u),K=a.memoizedState),(O=ya||Cb(a,l,O,u,Q,K,_))?(ae||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=K),p.props=u,p.state=K,p.context=_,u=O):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{p=a.stateNode,Yf(r,a),_=a.memoizedProps,ae=bi(l,_),p.props=ae,ce=a.pendingProps,Q=p.context,K=l.contextType,O=fo,typeof K=="object"&&K!==null&&(O=Xt(K)),$=l.getDerivedStateFromProps,(K=typeof $=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(_!==ce||Q!==O)&&Ab(a,p,u,O),ya=!1,Q=a.memoizedState,p.state=Q,Ll(a,u,p,f),Bl();var ee=a.memoizedState;_!==ce||Q!==ee||ya||r!==null&&r.dependencies!==null&&gu(r.dependencies)?(typeof $=="function"&&(ym(a,l,$,u),ee=a.memoizedState),(ae=ya||Cb(a,l,ae,u,Q,ee,O)||r!==null&&r.dependencies!==null&&gu(r.dependencies))?(K||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,ee,O),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,ee,O)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=ee),p.props=u,p.state=ee,p.context=O,u=ae):(typeof p.componentDidUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),u=!1)}return p=u,Lu(r,a),u=(a.flags&128)!==0,p||u?(p=a.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,r!==null&&u?(a.child=yi(a,r.child,null,f),a.child=yi(a,null,l,f)):en(r,a,l,f),a.memoizedState=p.state,r=a.child):r=Fr(r,a,f),r}function Ub(r,a,l,u){return ci(),a.flags|=256,en(r,a,l,u),a.child}var Em={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sm(r){return{baseLanes:r,cachePool:Mg()}}function Dm(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=In),r}function Hb(r,a,l){var u=a.pendingProps,f=!1,p=(a.flags&128)!==0,_;if((_=p)||(_=r!==null&&r.memoizedState===null?!1:(Lt.current&2)!==0),_&&(f=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,r===null){if(et){if(f?va(a):_a(),(r=Dt)?(r=Qv(r,Qn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:fa!==null?{id:vr,overflow:_r}:null,retryLane:536870912,hydrationErrors:null},l=Sg(r),l.return=a,a.child=l,Jt=a,Dt=null)):r=null,r===null)throw pa(a);return ip(r)?a.lanes=32:a.lanes=536870912,null}var $=u.children;return u=u.fallback,f?(_a(),f=a.mode,$=Pu({mode:"hidden",children:$},f),u=ui(u,f,l,null),$.return=a,u.return=a,$.sibling=u,a.child=$,u=a.child,u.memoizedState=Sm(l),u.childLanes=Dm(r,_,l),a.memoizedState=Em,zl(null,u)):(va(a),$m(a,$))}var O=r.memoizedState;if(O!==null&&($=O.dehydrated,$!==null)){if(p)a.flags&256?(va(a),a.flags&=-257,a=xm(r,a,l)):a.memoizedState!==null?(_a(),a.child=r.child,a.flags|=128,a=null):(_a(),$=u.fallback,f=a.mode,u=Pu({mode:"visible",children:u.children},f),$=ui($,f,l,null),$.flags|=2,u.return=a,$.return=a,u.sibling=$,a.child=u,yi(a,r.child,null,l),u=a.child,u.memoizedState=Sm(l),u.childLanes=Dm(r,_,l),a.memoizedState=Em,a=zl(null,u));else if(va(a),ip($)){if(_=$.nextSibling&&$.nextSibling.dataset,_)var K=_.dgst;_=K,u=Error(i(419)),u.stack="",u.digest=_,Tl({value:u,source:null,stack:null}),a=xm(r,a,l)}else if(zt||yo(r,a,l,!1),_=(l&r.childLanes)!==0,zt||_){if(_=vt,_!==null&&(u=Tr(_,l),u!==0&&u!==O.retryLane))throw O.retryLane=u,si(r,u),Sn(_,r,u),vm;ap($)||Zu(),a=xm(r,a,l)}else ap($)?(a.flags|=192,a.child=r.child,a=null):(r=O.treeContext,Dt=Xn($.nextSibling),Jt=a,et=!0,ma=null,Qn=!1,r!==null&&xg(a,r),a=$m(a,u.children),a.flags|=4096);return a}return f?(_a(),$=u.fallback,f=a.mode,O=r.child,K=O.sibling,u=Or(O,{mode:"hidden",children:u.children}),u.subtreeFlags=O.subtreeFlags&65011712,K!==null?$=Or(K,$):($=ui($,f,l,null),$.flags|=2),$.return=a,u.return=a,u.sibling=$,a.child=u,zl(null,u),u=a.child,$=r.child.memoizedState,$===null?$=Sm(l):(f=$.cachePool,f!==null?(O=Ft._currentValue,f=f.parent!==O?{parent:O,pool:O}:f):f=Mg(),$={baseLanes:$.baseLanes|l,cachePool:f}),u.memoizedState=$,u.childLanes=Dm(r,_,l),a.memoizedState=Em,zl(r.child,u)):(va(a),l=r.child,r=l.sibling,l=Or(l,{mode:"visible",children:u.children}),l.return=a,l.sibling=null,r!==null&&(_=a.deletions,_===null?(a.deletions=[r],a.flags|=16):_.push(r)),a.child=l,a.memoizedState=null,l)}function $m(r,a){return a=Pu({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Pu(r,a){return r=kn(22,r,null,a),r.lanes=0,r}function xm(r,a,l){return yi(a,r.child,null,l),r=$m(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function Vb(r,a,l){r.lanes|=a;var u=r.alternate;u!==null&&(u.lanes|=a),jf(r.return,a,l)}function Cm(r,a,l,u,f,p){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f,treeForkCount:p}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=u,_.tail=l,_.tailMode=f,_.treeForkCount=p)}function Gb(r,a,l){var u=a.pendingProps,f=u.revealOrder,p=u.tail;u=u.children;var _=Lt.current,$=(_&2)!==0;if($?(_=_&1|2,a.flags|=128):_&=1,W(Lt,_),en(r,a,u,l),u=et?wl:0,!$&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Vb(r,l,a);else if(r.tag===19)Vb(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(f){case"forwards":for(l=a.child,f=null;l!==null;)r=l.alternate,r!==null&&xu(r)===null&&(f=l),l=l.sibling;l=f,l===null?(f=a.child,a.child=null):(f=l.sibling,l.sibling=null),Cm(a,!1,f,l,p,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=a.child,a.child=null;f!==null;){if(r=f.alternate,r!==null&&xu(r)===null){a.child=f;break}r=f.sibling,f.sibling=l,l=f,f=r}Cm(a,!0,l,null,p,u);break;case"together":Cm(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function Fr(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),Da|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(yo(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,l=Or(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=Or(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function Am(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&gu(r)))}function u6(r,a,l){switch(a.tag){case 3:N(a,a.stateNode.containerInfo),ha(a,Ft,r.memoizedState.cache),ci();break;case 27:case 5:ge(a);break;case 4:N(a,a.stateNode.containerInfo);break;case 10:ha(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Jf(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(va(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Hb(r,a,l):(va(a),r=Fr(r,a,l),r!==null?r.sibling:null);va(a);break;case 19:var f=(r.flags&128)!==0;if(u=(l&a.childLanes)!==0,u||(yo(r,a,l,!1),u=(l&a.childLanes)!==0),f){if(u)return Gb(r,a,l);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),W(Lt,Lt.current),u)break;return null;case 22:return a.lanes=0,Pb(r,a,l,a.pendingProps);case 24:ha(a,Ft,r.memoizedState.cache)}return Fr(r,a,l)}function Zb(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)zt=!0;else{if(!Am(r,l)&&(a.flags&128)===0)return zt=!1,u6(r,a,l);zt=(r.flags&131072)!==0}else zt=!1,et&&(a.flags&1048576)!==0&&$g(a,wl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(r=pi(a.elementType),a.type=r,typeof r=="function")Rf(r)?(u=bi(r,u),a.tag=1,a=zb(null,a,r,u,l)):(a.tag=0,a=_m(null,a,r,u,l));else{if(r!=null){var f=r.$$typeof;if(f===L){a.tag=11,a=kb(null,a,r,u,l);break e}else if(f===V){a.tag=14,a=Bb(null,a,r,u,l);break e}}throw a=j(r)||r,Error(i(306,a,""))}}return a;case 0:return _m(r,a,a.type,a.pendingProps,l);case 1:return u=a.type,f=bi(u,a.pendingProps),zb(r,a,u,f,l);case 3:e:{if(N(a,a.stateNode.containerInfo),r===null)throw Error(i(387));u=a.pendingProps;var p=a.memoizedState;f=p.element,Yf(r,a),Ll(a,u,null,l);var _=a.memoizedState;if(u=_.cache,ha(a,Ft,u),u!==p.cache&&zf(a,[Ft],l,!0),Bl(),u=_.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=Ub(r,a,u,l);break e}else if(u!==f){f=qn(Error(i(424)),a),Tl(f),a=Ub(r,a,u,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Dt=Xn(r.firstChild),Jt=a,et=!0,ma=null,Qn=!0,l=Pg(a,null,u,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ci(),u===f){a=Fr(r,a,l);break e}en(r,a,u,l)}a=a.child}return a;case 26:return Lu(r,a),r===null?(l=r_(a.type,null,a.pendingProps,null))?a.memoizedState=l:et||(l=a.type,r=a.pendingProps,u=Xu(z.current).createElement(l),u[Qt]=a,u[yn]=r,tn(u,l,r),Kt(u),a.stateNode=u):a.memoizedState=r_(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return ge(a),r===null&&et&&(u=a.stateNode=e_(a.type,a.pendingProps,z.current),Jt=a,Qn=!0,f=Dt,wa(a.type)?(op=f,Dt=Xn(u.firstChild)):Dt=f),en(r,a,a.pendingProps.children,l),Lu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&et&&((f=u=Dt)&&(u=F6(u,a.type,a.pendingProps,Qn),u!==null?(a.stateNode=u,Jt=a,Dt=Xn(u.firstChild),Qn=!1,f=!0):f=!1),f||pa(a)),ge(a),f=a.type,p=a.pendingProps,_=r!==null?r.memoizedProps:null,u=p.children,tp(f,p)?u=null:_!==null&&tp(f,_)&&(a.flags|=32),a.memoizedState!==null&&(f=em(r,a,e6,null,null,l),ns._currentValue=f),Lu(r,a),en(r,a,u,l),a.child;case 6:return r===null&&et&&((r=l=Dt)&&(l=j6(l,a.pendingProps,Qn),l!==null?(a.stateNode=l,Jt=a,Dt=null,r=!0):r=!1),r||pa(a)),null;case 13:return Hb(r,a,l);case 4:return N(a,a.stateNode.containerInfo),u=a.pendingProps,r===null?a.child=yi(a,null,u,l):en(r,a,u,l),a.child;case 11:return kb(r,a,a.type,a.pendingProps,l);case 7:return en(r,a,a.pendingProps,l),a.child;case 8:return en(r,a,a.pendingProps.children,l),a.child;case 12:return en(r,a,a.pendingProps.children,l),a.child;case 10:return u=a.pendingProps,ha(a,a.type,u.value),en(r,a,u.children,l),a.child;case 9:return f=a.type._context,u=a.pendingProps.children,fi(a),f=Xt(f),u=u(f),a.flags|=1,en(r,a,u,l),a.child;case 14:return Bb(r,a,a.type,a.pendingProps,l);case 15:return Lb(r,a,a.type,a.pendingProps,l);case 19:return Gb(r,a,l);case 31:return s6(r,a,l);case 22:return Pb(r,a,l,a.pendingProps);case 24:return fi(a),u=Xt(Ft),r===null?(f=Vf(),f===null&&(f=vt,p=Uf(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=l),f=p),a.memoizedState={parent:u,cache:f},Zf(a),ha(a,Ft,f)):((r.lanes&l)!==0&&(Yf(r,a),Ll(a,null,null,l),Bl()),f=r.memoizedState,p=a.memoizedState,f.parent!==u?(f={parent:u,cache:u},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),ha(a,Ft,u)):(u=p.cache,ha(a,Ft,u),u!==f.cache&&zf(a,[Ft],l,!0))),en(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function jr(r){r.flags|=4}function wm(r,a,l,u,f){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(f&335544128)===f)if(r.stateNode.complete)r.flags|=8192;else if(vv())r.flags|=8192;else throw hi=Eu,Gf}else r.flags&=-16777217}function Yb(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!s_(a))if(vv())r.flags|=8192;else throw hi=Eu,Gf}function Iu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Qi():536870912,r.lanes|=a,wo|=a)}function Ul(r,a){if(!et)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function $t(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(a)for(var f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=u,r.childLanes=l,a}function c6(r,a,l){var u=a.pendingProps;switch(Lf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(a),null;case 1:return $t(a),null;case 3:return l=a.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Lr(Ft),ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(ho(a)?jr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,If())),$t(a),null;case 26:var f=a.type,p=a.memoizedState;return r===null?(jr(a),p!==null?($t(a),Yb(a,p)):($t(a),wm(a,f,null,u,l))):p?p!==r.memoizedState?(jr(a),$t(a),Yb(a,p)):($t(a),a.flags&=-16777217):(r=r.memoizedProps,r!==u&&jr(a),$t(a),wm(a,f,r,u,l)),null;case 27:if(Se(a),l=z.current,f=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==u&&jr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return $t(a),null}r=Y.current,ho(a)?Cg(a):(r=e_(f,u,l),a.stateNode=r,jr(a))}return $t(a),null;case 5:if(Se(a),f=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==u&&jr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return $t(a),null}if(p=Y.current,ho(a))Cg(a);else{var _=Xu(z.current);switch(p){case 1:p=_.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=_.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=_.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=_.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=_.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof u.is=="string"?_.createElement("select",{is:u.is}):_.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?_.createElement(f,{is:u.is}):_.createElement(f)}}p[Qt]=a,p[yn]=u;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)p.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break e;for(;_.sibling===null;){if(_.return===null||_.return===a)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}a.stateNode=p;e:switch(tn(p,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&jr(a)}}return $t(a),wm(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==u&&jr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(i(166));if(r=z.current,ho(a)){if(r=a.stateNode,l=a.memoizedProps,u=null,f=Jt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}r[Qt]=a,r=!!(r.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Hv(r.nodeValue,l)),r||pa(a,!0)}else r=Xu(r).createTextNode(u),r[Qt]=a,a.stateNode=r}return $t(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(u=ho(a),l!==null){if(r===null){if(!u)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Qt]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;$t(a),r=!1}else l=If(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(Ln(a),a):(Ln(a),null);if((a.flags&128)!==0)throw Error(i(558))}return $t(a),null;case 13:if(u=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=ho(a),u!==null&&u.dehydrated!==null){if(r===null){if(!f)throw Error(i(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Qt]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;$t(a),f=!1}else f=If(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Ln(a),a):(Ln(a),null)}return Ln(a),(a.flags&128)!==0?(a.lanes=l,a):(l=u!==null,r=r!==null&&r.memoizedState!==null,l&&(u=a.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==f&&(u.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),Iu(a,a.updateQueue),$t(a),null);case 4:return ie(),r===null&&Wm(a.stateNode.containerInfo),$t(a),null;case 10:return Lr(a.type),$t(a),null;case 19:if(U(Lt),u=a.memoizedState,u===null)return $t(a),null;if(f=(a.flags&128)!==0,p=u.rendering,p===null)if(f)Ul(u,!1);else{if(Mt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(p=xu(r),p!==null){for(a.flags|=128,Ul(u,!1),r=p.updateQueue,a.updateQueue=r,Iu(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)Eg(l,r),l=l.sibling;return W(Lt,Lt.current&1|2),et&&kr(a,u.treeForkCount),a.child}r=r.sibling}u.tail!==null&&oe()>Hu&&(a.flags|=128,f=!0,Ul(u,!1),a.lanes=4194304)}else{if(!f)if(r=xu(p),r!==null){if(a.flags|=128,f=!0,r=r.updateQueue,a.updateQueue=r,Iu(a,r),Ul(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!et)return $t(a),null}else 2*oe()-u.renderingStartTime>Hu&&l!==536870912&&(a.flags|=128,f=!0,Ul(u,!1),a.lanes=4194304);u.isBackwards?(p.sibling=a.child,a.child=p):(r=u.last,r!==null?r.sibling=p:a.child=p,u.last=p)}return u.tail!==null?(r=u.tail,u.rendering=r,u.tail=r.sibling,u.renderingStartTime=oe(),r.sibling=null,l=Lt.current,W(Lt,f?l&1|2:l&1),et&&kr(a,u.treeForkCount),r):($t(a),null);case 22:case 23:return Ln(a),Qf(),u=a.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(l&536870912)!==0&&(a.flags&128)===0&&($t(a),a.subtreeFlags&6&&(a.flags|=8192)):$t(a),l=a.updateQueue,l!==null&&Iu(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==l&&(a.flags|=2048),r!==null&&U(mi),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Lr(Ft),$t(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function d6(r,a){switch(Lf(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Lr(Ft),ie(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Se(a),null;case 31:if(a.memoizedState!==null){if(Ln(a),a.alternate===null)throw Error(i(340));ci()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Ln(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));ci()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return U(Lt),null;case 4:return ie(),null;case 10:return Lr(a.type),null;case 22:case 23:return Ln(a),Qf(),r!==null&&U(mi),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Lr(Ft),null;case 25:return null;default:return null}}function qb(r,a){switch(Lf(a),a.tag){case 3:Lr(Ft),ie();break;case 26:case 27:case 5:Se(a);break;case 4:ie();break;case 31:a.memoizedState!==null&&Ln(a);break;case 13:Ln(a);break;case 19:U(Lt);break;case 10:Lr(a.type);break;case 22:case 23:Ln(a),Qf(),r!==null&&U(mi);break;case 24:Lr(Ft)}}function Hl(r,a){try{var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&r)===r){u=void 0;var p=l.create,_=l.inst;u=p(),_.destroy=u}l=l.next}while(l!==f)}}catch($){ft(a,a.return,$)}}function Ea(r,a,l){try{var u=a.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var p=f.next;u=p;do{if((u.tag&r)===r){var _=u.inst,$=_.destroy;if($!==void 0){_.destroy=void 0,f=a;var O=l,K=$;try{K()}catch(ae){ft(f,O,ae)}}}u=u.next}while(u!==p)}}catch(ae){ft(a,a.return,ae)}}function Kb(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{Fg(a,l)}catch(u){ft(r,r.return,u)}}}function Wb(r,a,l){l.props=bi(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(u){ft(r,a,u)}}function Vl(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof l=="function"?r.refCleanup=l(u):l.current=u}}catch(f){ft(r,a,f)}}function Er(r,a){var l=r.ref,u=r.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(f){ft(r,a,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){ft(r,a,f)}else l.current=null}function Qb(r){var a=r.type,l=r.memoizedProps,u=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(f){ft(r,r.return,f)}}function Tm(r,a,l){try{var u=r.stateNode;O6(u,r.type,l,a),u[yn]=a}catch(f){ft(r,r.return,f)}}function Jb(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&wa(r.type)||r.tag===4}function Nm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Jb(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&wa(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Mm(r,a,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Mr));else if(u!==4&&(u===27&&wa(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(Mm(r,a,l),r=r.sibling;r!==null;)Mm(r,a,l),r=r.sibling}function Fu(r,a,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(u!==4&&(u===27&&wa(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Fu(r,a,l),r=r.sibling;r!==null;)Fu(r,a,l),r=r.sibling}function Xb(r){var a=r.stateNode,l=r.memoizedProps;try{for(var u=r.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);tn(a,u,l),a[Qt]=r,a[yn]=l}catch(p){ft(r,r.return,p)}}var zr=!1,Ut=!1,Rm=!1,ev=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function f6(r,a){if(r=r.containerInfo,Xm=oc,r=fg(r),xf(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var _=0,$=-1,O=-1,K=0,ae=0,ce=r,Q=null;t:for(;;){for(var ee;ce!==l||f!==0&&ce.nodeType!==3||($=_+f),ce!==p||u!==0&&ce.nodeType!==3||(O=_+u),ce.nodeType===3&&(_+=ce.nodeValue.length),(ee=ce.firstChild)!==null;)Q=ce,ce=ee;for(;;){if(ce===r)break t;if(Q===l&&++K===f&&($=_),Q===p&&++ae===u&&(O=_),(ee=ce.nextSibling)!==null)break;ce=Q,Q=ce.parentNode}ce=ee}l=$===-1||O===-1?null:{start:$,end:O}}else l=null}l=l||{start:0,end:0}}else l=null;for(ep={focusedElem:r,selectionRange:l},oc=!1,Wt=a;Wt!==null;)if(a=Wt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Wt=r;else for(;Wt!==null;){switch(a=Wt,p=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)f=r[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&p!==null){r=void 0,l=a,f=p.memoizedProps,p=p.memoizedState,u=l.stateNode;try{var Ne=bi(l.type,f);r=u.getSnapshotBeforeUpdate(Ne,p),u.__reactInternalSnapshotBeforeUpdate=r}catch(Fe){ft(l,l.return,Fe)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)rp(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":rp(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Wt=r;break}Wt=a.return}}function tv(r,a,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Hr(r,l),u&4&&Hl(5,l);break;case 1:if(Hr(r,l),u&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(_){ft(l,l.return,_)}else{var f=bi(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(f,a,r.__reactInternalSnapshotBeforeUpdate)}catch(_){ft(l,l.return,_)}}u&64&&Kb(l),u&512&&Vl(l,l.return);break;case 3:if(Hr(r,l),u&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Fg(r,a)}catch(_){ft(l,l.return,_)}}break;case 27:a===null&&u&4&&Xb(l);case 26:case 5:Hr(r,l),a===null&&u&4&&Qb(l),u&512&&Vl(l,l.return);break;case 12:Hr(r,l);break;case 31:Hr(r,l),u&4&&av(r,l);break;case 13:Hr(r,l),u&4&&iv(r,l),u&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=E6.bind(null,l),z6(r,l))));break;case 22:if(u=l.memoizedState!==null||zr,!u){a=a!==null&&a.memoizedState!==null||Ut,f=zr;var p=Ut;zr=u,(Ut=a)&&!p?Vr(r,l,(l.subtreeFlags&8772)!==0):Hr(r,l),zr=f,Ut=p}break;case 30:break;default:Hr(r,l)}}function nv(r){var a=r.alternate;a!==null&&(r.alternate=null,nv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&sf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var xt=null,bn=!1;function Ur(r,a,l){for(l=l.child;l!==null;)rv(r,a,l),l=l.sibling}function rv(r,a,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(tt,l)}catch{}switch(l.tag){case 26:Ut||Er(l,a),Ur(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ut||Er(l,a);var u=xt,f=bn;wa(l.type)&&(xt=l.stateNode,bn=!1),Ur(r,a,l),Xl(l.stateNode),xt=u,bn=f;break;case 5:Ut||Er(l,a);case 6:if(u=xt,f=bn,xt=null,Ur(r,a,l),xt=u,bn=f,xt!==null)if(bn)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(l.stateNode)}catch(p){ft(l,a,p)}else try{xt.removeChild(l.stateNode)}catch(p){ft(l,a,p)}break;case 18:xt!==null&&(bn?(r=xt,Kv(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),Lo(r)):Kv(xt,l.stateNode));break;case 4:u=xt,f=bn,xt=l.stateNode.containerInfo,bn=!0,Ur(r,a,l),xt=u,bn=f;break;case 0:case 11:case 14:case 15:Ea(2,l,a),Ut||Ea(4,l,a),Ur(r,a,l);break;case 1:Ut||(Er(l,a),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Wb(l,a,u)),Ur(r,a,l);break;case 21:Ur(r,a,l);break;case 22:Ut=(u=Ut)||l.memoizedState!==null,Ur(r,a,l),Ut=u;break;default:Ur(r,a,l)}}function av(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Lo(r)}catch(l){ft(a,a.return,l)}}}function iv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Lo(r)}catch(l){ft(a,a.return,l)}}function m6(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new ev),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new ev),a;default:throw Error(i(435,r.tag))}}function ju(r,a){var l=m6(r);a.forEach(function(u){if(!l.has(u)){l.add(u);var f=S6.bind(null,r,u);u.then(f,f)}})}function vn(r,a){var l=a.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u],p=r,_=a,$=_;e:for(;$!==null;){switch($.tag){case 27:if(wa($.type)){xt=$.stateNode,bn=!1;break e}break;case 5:xt=$.stateNode,bn=!1;break e;case 3:case 4:xt=$.stateNode.containerInfo,bn=!0;break e}$=$.return}if(xt===null)throw Error(i(160));rv(p,_,f),xt=null,bn=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)ov(a,r),a=a.sibling}var mr=null;function ov(r,a){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:vn(a,r),_n(r),u&4&&(Ea(3,r,r.return),Hl(3,r),Ea(5,r,r.return));break;case 1:vn(a,r),_n(r),u&512&&(Ut||l===null||Er(l,l.return)),u&64&&zr&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var f=mr;if(vn(a,r),_n(r),u&512&&(Ut||l===null||Er(l,l.return)),u&4){var p=l!==null?l.memoizedState:null;if(u=r.memoizedState,l===null)if(u===null)if(r.stateNode===null){e:{u=r.type,l=r.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":p=f.getElementsByTagName("title")[0],(!p||p[gl]||p[Qt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(u),f.head.insertBefore(p,f.querySelector("head > title"))),tn(p,u,l),p[Qt]=r,Kt(p),u=p;break e;case"link":var _=o_("link","href",f).get(u+(l.href||""));if(_){for(var $=0;$<_.length;$++)if(p=_[$],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){_.splice($,1);break t}}p=f.createElement(u),tn(p,u,l),f.head.appendChild(p);break;case"meta":if(_=o_("meta","content",f).get(u+(l.content||""))){for($=0;$<_.length;$++)if(p=_[$],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){_.splice($,1);break t}}p=f.createElement(u),tn(p,u,l),f.head.appendChild(p);break;default:throw Error(i(468,u))}p[Qt]=r,Kt(p),u=p}r.stateNode=u}else l_(f,r.type,r.stateNode);else r.stateNode=i_(f,u,r.memoizedProps);else p!==u?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,u===null?l_(f,r.type,r.stateNode):i_(f,u,r.memoizedProps)):u===null&&r.stateNode!==null&&Tm(r,r.memoizedProps,l.memoizedProps)}break;case 27:vn(a,r),_n(r),u&512&&(Ut||l===null||Er(l,l.return)),l!==null&&u&4&&Tm(r,r.memoizedProps,l.memoizedProps);break;case 5:if(vn(a,r),_n(r),u&512&&(Ut||l===null||Er(l,l.return)),r.flags&32){f=r.stateNode;try{ao(f,"")}catch(Ne){ft(r,r.return,Ne)}}u&4&&r.stateNode!=null&&(f=r.memoizedProps,Tm(r,f,l!==null?l.memoizedProps:f)),u&1024&&(Rm=!0);break;case 6:if(vn(a,r),_n(r),u&4){if(r.stateNode===null)throw Error(i(162));u=r.memoizedProps,l=r.stateNode;try{l.nodeValue=u}catch(Ne){ft(r,r.return,Ne)}}break;case 3:if(nc=null,f=mr,mr=ec(a.containerInfo),vn(a,r),mr=f,_n(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Lo(a.containerInfo)}catch(Ne){ft(r,r.return,Ne)}Rm&&(Rm=!1,lv(r));break;case 4:u=mr,mr=ec(r.stateNode.containerInfo),vn(a,r),_n(r),mr=u;break;case 12:vn(a,r),_n(r);break;case 31:vn(a,r),_n(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,ju(r,u)));break;case 13:vn(a,r),_n(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Uu=oe()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,ju(r,u)));break;case 22:f=r.memoizedState!==null;var O=l!==null&&l.memoizedState!==null,K=zr,ae=Ut;if(zr=K||f,Ut=ae||O,vn(a,r),Ut=ae,zr=K,_n(r),u&8192)e:for(a=r.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(l===null||O||zr||Ut||vi(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){O=l=a;try{if(p=O.stateNode,f)_=p.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{$=O.stateNode;var ce=O.memoizedProps.style,Q=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;$.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(Ne){ft(O,O.return,Ne)}}}else if(a.tag===6){if(l===null){O=a;try{O.stateNode.nodeValue=f?"":O.memoizedProps}catch(Ne){ft(O,O.return,Ne)}}}else if(a.tag===18){if(l===null){O=a;try{var ee=O.stateNode;f?Wv(ee,!0):Wv(O.stateNode,!1)}catch(Ne){ft(O,O.return,Ne)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=r.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,ju(r,l))));break;case 19:vn(a,r),_n(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,ju(r,u)));break;case 30:break;case 21:break;default:vn(a,r),_n(r)}}function _n(r){var a=r.flags;if(a&2){try{for(var l,u=r.return;u!==null;){if(Jb(u)){l=u;break}u=u.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,p=Nm(r);Fu(r,p,f);break;case 5:var _=l.stateNode;l.flags&32&&(ao(_,""),l.flags&=-33);var $=Nm(r);Fu(r,$,_);break;case 3:case 4:var O=l.stateNode.containerInfo,K=Nm(r);Mm(r,K,O);break;default:throw Error(i(161))}}catch(ae){ft(r,r.return,ae)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function lv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;lv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Hr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)tv(r,a.alternate,a),a=a.sibling}function vi(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Ea(4,a,a.return),vi(a);break;case 1:Er(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&Wb(a,a.return,l),vi(a);break;case 27:Xl(a.stateNode);case 26:case 5:Er(a,a.return),vi(a);break;case 22:a.memoizedState===null&&vi(a);break;case 30:vi(a);break;default:vi(a)}r=r.sibling}}function Vr(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,f=r,p=a,_=p.flags;switch(p.tag){case 0:case 11:case 15:Vr(f,p,l),Hl(4,p);break;case 1:if(Vr(f,p,l),u=p,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(K){ft(u,u.return,K)}if(u=p,f=u.updateQueue,f!==null){var $=u.stateNode;try{var O=f.shared.hiddenCallbacks;if(O!==null)for(f.shared.hiddenCallbacks=null,f=0;f<O.length;f++)Ig(O[f],$)}catch(K){ft(u,u.return,K)}}l&&_&64&&Kb(p),Vl(p,p.return);break;case 27:Xb(p);case 26:case 5:Vr(f,p,l),l&&u===null&&_&4&&Qb(p),Vl(p,p.return);break;case 12:Vr(f,p,l);break;case 31:Vr(f,p,l),l&&_&4&&av(f,p);break;case 13:Vr(f,p,l),l&&_&4&&iv(f,p);break;case 22:p.memoizedState===null&&Vr(f,p,l),Vl(p,p.return);break;case 30:break;default:Vr(f,p,l)}a=a.sibling}}function Om(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&Nl(l))}function km(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Nl(r))}function pr(r,a,l,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)sv(r,a,l,u),a=a.sibling}function sv(r,a,l,u){var f=a.flags;switch(a.tag){case 0:case 11:case 15:pr(r,a,l,u),f&2048&&Hl(9,a);break;case 1:pr(r,a,l,u);break;case 3:pr(r,a,l,u),f&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Nl(r)));break;case 12:if(f&2048){pr(r,a,l,u),r=a.stateNode;try{var p=a.memoizedProps,_=p.id,$=p.onPostCommit;typeof $=="function"&&$(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(O){ft(a,a.return,O)}}else pr(r,a,l,u);break;case 31:pr(r,a,l,u);break;case 13:pr(r,a,l,u);break;case 23:break;case 22:p=a.stateNode,_=a.alternate,a.memoizedState!==null?p._visibility&2?pr(r,a,l,u):Gl(r,a):p._visibility&2?pr(r,a,l,u):(p._visibility|=2,xo(r,a,l,u,(a.subtreeFlags&10256)!==0||!1)),f&2048&&Om(_,a);break;case 24:pr(r,a,l,u),f&2048&&km(a.alternate,a);break;default:pr(r,a,l,u)}}function xo(r,a,l,u,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var p=r,_=a,$=l,O=u,K=_.flags;switch(_.tag){case 0:case 11:case 15:xo(p,_,$,O,f),Hl(8,_);break;case 23:break;case 22:var ae=_.stateNode;_.memoizedState!==null?ae._visibility&2?xo(p,_,$,O,f):Gl(p,_):(ae._visibility|=2,xo(p,_,$,O,f)),f&&K&2048&&Om(_.alternate,_);break;case 24:xo(p,_,$,O,f),f&&K&2048&&km(_.alternate,_);break;default:xo(p,_,$,O,f)}a=a.sibling}}function Gl(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,u=a,f=u.flags;switch(u.tag){case 22:Gl(l,u),f&2048&&Om(u.alternate,u);break;case 24:Gl(l,u),f&2048&&km(u.alternate,u);break;default:Gl(l,u)}a=a.sibling}}var Zl=8192;function Co(r,a,l){if(r.subtreeFlags&Zl)for(r=r.child;r!==null;)uv(r,a,l),r=r.sibling}function uv(r,a,l){switch(r.tag){case 26:Co(r,a,l),r.flags&Zl&&r.memoizedState!==null&&X6(l,mr,r.memoizedState,r.memoizedProps);break;case 5:Co(r,a,l);break;case 3:case 4:var u=mr;mr=ec(r.stateNode.containerInfo),Co(r,a,l),mr=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=Zl,Zl=16777216,Co(r,a,l),Zl=u):Co(r,a,l));break;default:Co(r,a,l)}}function cv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Yl(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Wt=u,fv(u,r)}cv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)dv(r),r=r.sibling}function dv(r){switch(r.tag){case 0:case 11:case 15:Yl(r),r.flags&2048&&Ea(9,r,r.return);break;case 3:Yl(r);break;case 12:Yl(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,zu(r)):Yl(r);break;default:Yl(r)}}function zu(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Wt=u,fv(u,r)}cv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Ea(8,a,a.return),zu(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,zu(a));break;default:zu(a)}r=r.sibling}}function fv(r,a){for(;Wt!==null;){var l=Wt;switch(l.tag){case 0:case 11:case 15:Ea(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Nl(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Wt=u;else e:for(l=r;Wt!==null;){u=Wt;var f=u.sibling,p=u.return;if(nv(u),u===l){Wt=null;break e}if(f!==null){f.return=p,Wt=f;break e}Wt=p}}}var p6={getCacheForType:function(r){var a=Xt(Ft),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return Xt(Ft).controller.signal}},h6=typeof WeakMap=="function"?WeakMap:Map,lt=0,vt=null,We=null,Je=0,dt=0,Pn=null,Sa=!1,Ao=!1,Bm=!1,Gr=0,Mt=0,Da=0,_i=0,Lm=0,In=0,wo=0,ql=null,En=null,Pm=!1,Uu=0,mv=0,Hu=1/0,Vu=null,$a=null,Vt=0,xa=null,To=null,Zr=0,Im=0,Fm=null,pv=null,Kl=0,jm=null;function Fn(){return(lt&2)!==0&&Je!==0?Je&-Je:k.T!==null?Zm():Ny()}function hv(){if(In===0)if((Je&536870912)===0||et){var r=Mn;Mn<<=1,(Mn&3932160)===0&&(Mn=262144),In=r}else In=536870912;return r=Bn.current,r!==null&&(r.flags|=32),In}function Sn(r,a,l){(r===vt&&(dt===2||dt===9)||r.cancelPendingCommit!==null)&&(No(r,0),Ca(r,Je,In,!1)),br(r,l),((lt&2)===0||r!==vt)&&(r===vt&&((lt&2)===0&&(_i|=l),Mt===4&&Ca(r,Je,In,!1)),Sr(r))}function yv(r,a,l){if((lt&6)!==0)throw Error(i(327));var u=!l&&(a&127)===0&&(a&r.expiredLanes)===0||Rn(r,a),f=u?b6(r,a):Um(r,a,!0),p=u;do{if(f===0){Ao&&!u&&Ca(r,a,0,!1);break}else{if(l=r.current.alternate,p&&!y6(l)){f=Um(r,a,!1),p=!1;continue}if(f===2){if(p=a,r.errorRecoveryDisabledLanes&p)var _=0;else _=r.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var $=r;f=ql;var O=$.current.memoizedState.isDehydrated;if(O&&(No($,_).flags|=256),_=Um($,_,!1),_!==2){if(Bm&&!O){$.errorRecoveryDisabledLanes|=p,_i|=p,f=4;break e}p=En,En=f,p!==null&&(En===null?En=p:En.push.apply(En,p))}f=_}if(p=!1,f!==2)continue}}if(f===1){No(r,0),Ca(r,a,0,!0);break}e:{switch(u=r,p=f,p){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ca(u,a,In,!Sa);break e;case 2:En=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(f=Uu+300-oe(),10<f)){if(Ca(u,a,In,!Sa),pl(u,0,!0)!==0)break e;Zr=a,u.timeoutHandle=Yv(gv.bind(null,u,l,En,Vu,Pm,a,In,_i,wo,Sa,p,"Throttled",-0,0),f);break e}gv(u,l,En,Vu,Pm,a,In,_i,wo,Sa,p,null,-0,0)}}break}while(!0);Sr(r)}function gv(r,a,l,u,f,p,_,$,O,K,ae,ce,Q,ee){if(r.timeoutHandle=-1,ce=a.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mr},uv(a,p,ce);var Ne=(p&62914560)===p?Uu-oe():(p&4194048)===p?mv-oe():0;if(Ne=eA(ce,Ne),Ne!==null){Zr=p,r.cancelPendingCommit=Ne(xv.bind(null,r,a,p,l,u,f,_,$,O,ae,ce,null,Q,ee)),Ca(r,p,_,!K);return}}xv(r,a,p,l,u,f,_,$,O)}function y6(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var f=l[u],p=f.getSnapshot;f=f.value;try{if(!On(p(),f))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ca(r,a,l,u){a&=~Lm,a&=~_i,r.suspendedLanes|=a,r.pingedLanes&=~a,u&&(r.warmLanes|=a),u=r.expirationTimes;for(var f=a;0<f;){var p=31-Ye(f),_=1<<p;u[p]=-1,f&=~_}l!==0&&Xs(r,l,a)}function Gu(){return(lt&6)===0?(Wl(0),!1):!0}function zm(){if(We!==null){if(dt===0)var r=We.return;else r=We,Br=di=null,rm(r),_o=null,Rl=0,r=We;for(;r!==null;)qb(r.alternate,r),r=r.return;We=null}}function No(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,L6(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Zr=0,zm(),vt=r,We=l=Or(r.current,null),Je=a,dt=0,Pn=null,Sa=!1,Ao=Rn(r,a),Bm=!1,wo=In=Lm=_i=Da=Mt=0,En=ql=null,Pm=!1,(a&8)!==0&&(a|=a&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=a;0<u;){var f=31-Ye(u),p=1<<f;a|=r[f],u&=~p}return Gr=a,fu(),l}function bv(r,a){Ge=null,k.H=jl,a===vo||a===_u?(a=kg(),dt=3):a===Gf?(a=kg(),dt=4):dt=a===vm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Pn=a,We===null&&(Mt=1,ku(r,qn(a,r.current)))}function vv(){var r=Bn.current;return r===null?!0:(Je&4194048)===Je?Jn===null:(Je&62914560)===Je||(Je&536870912)!==0?r===Jn:!1}function _v(){var r=k.H;return k.H=jl,r===null?jl:r}function Ev(){var r=k.A;return k.A=p6,r}function Zu(){Mt=4,Sa||(Je&4194048)!==Je&&Bn.current!==null||(Ao=!0),(Da&134217727)===0&&(_i&134217727)===0||vt===null||Ca(vt,Je,In,!1)}function Um(r,a,l){var u=lt;lt|=2;var f=_v(),p=Ev();(vt!==r||Je!==a)&&(Vu=null,No(r,a)),a=!1;var _=Mt;e:do try{if(dt!==0&&We!==null){var $=We,O=Pn;switch(dt){case 8:zm(),_=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(a=!0);var K=dt;if(dt=0,Pn=null,Mo(r,$,O,K),l&&Ao){_=0;break e}break;default:K=dt,dt=0,Pn=null,Mo(r,$,O,K)}}g6(),_=Mt;break}catch(ae){bv(r,ae)}while(!0);return a&&r.shellSuspendCounter++,Br=di=null,lt=u,k.H=f,k.A=p,We===null&&(vt=null,Je=0,fu()),_}function g6(){for(;We!==null;)Sv(We)}function b6(r,a){var l=lt;lt|=2;var u=_v(),f=Ev();vt!==r||Je!==a?(Vu=null,Hu=oe()+500,No(r,a)):Ao=Rn(r,a);e:do try{if(dt!==0&&We!==null){a=We;var p=Pn;t:switch(dt){case 1:dt=0,Pn=null,Mo(r,a,p,1);break;case 2:case 9:if(Rg(p)){dt=0,Pn=null,Dv(a);break}a=function(){dt!==2&&dt!==9||vt!==r||(dt=7),Sr(r)},p.then(a,a);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:Rg(p)?(dt=0,Pn=null,Dv(a)):(dt=0,Pn=null,Mo(r,a,p,7));break;case 5:var _=null;switch(We.tag){case 26:_=We.memoizedState;case 5:case 27:var $=We;if(_?s_(_):$.stateNode.complete){dt=0,Pn=null;var O=$.sibling;if(O!==null)We=O;else{var K=$.return;K!==null?(We=K,Yu(K)):We=null}break t}}dt=0,Pn=null,Mo(r,a,p,5);break;case 6:dt=0,Pn=null,Mo(r,a,p,6);break;case 8:zm(),Mt=6;break e;default:throw Error(i(462))}}v6();break}catch(ae){bv(r,ae)}while(!0);return Br=di=null,k.H=u,k.A=f,lt=l,We!==null?0:(vt=null,Je=0,fu(),Mt)}function v6(){for(;We!==null&&!Me();)Sv(We)}function Sv(r){var a=Zb(r.alternate,r,Gr);r.memoizedProps=r.pendingProps,a===null?Yu(r):We=a}function Dv(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=jb(l,a,a.pendingProps,a.type,void 0,Je);break;case 11:a=jb(l,a,a.pendingProps,a.type.render,a.ref,Je);break;case 5:rm(a);default:qb(l,a),a=We=Eg(a,Gr),a=Zb(l,a,Gr)}r.memoizedProps=r.pendingProps,a===null?Yu(r):We=a}function Mo(r,a,l,u){Br=di=null,rm(a),_o=null,Rl=0;var f=a.return;try{if(l6(r,f,a,l,Je)){Mt=1,ku(r,qn(l,r.current)),We=null;return}}catch(p){if(f!==null)throw We=f,p;Mt=1,ku(r,qn(l,r.current)),We=null;return}a.flags&32768?(et||u===1?r=!0:Ao||(Je&536870912)!==0?r=!1:(Sa=r=!0,(u===2||u===9||u===3||u===6)&&(u=Bn.current,u!==null&&u.tag===13&&(u.flags|=16384))),$v(a,r)):Yu(a)}function Yu(r){var a=r;do{if((a.flags&32768)!==0){$v(a,Sa);return}r=a.return;var l=c6(a.alternate,a,Gr);if(l!==null){We=l;return}if(a=a.sibling,a!==null){We=a;return}We=a=r}while(a!==null);Mt===0&&(Mt=5)}function $v(r,a){do{var l=d6(r.alternate,r);if(l!==null){l.flags&=32767,We=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){We=r;return}We=r=l}while(r!==null);Mt=6,We=null}function xv(r,a,l,u,f,p,_,$,O){r.cancelPendingCommit=null;do qu();while(Vt!==0);if((lt&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(p=a.lanes|a.childLanes,p|=Nf,Js(r,l,p,_,$,O),r===vt&&(We=vt=null,Je=0),To=a,xa=r,Zr=l,Im=p,Fm=f,pv=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,D6(Re,function(){return Nv(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=k.T,k.T=null,f=B.p,B.p=2,_=lt,lt|=4;try{f6(r,a,l)}finally{lt=_,B.p=f,k.T=u}}Vt=1,Cv(),Av(),wv()}}function Cv(){if(Vt===1){Vt=0;var r=xa,a=To,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=k.T,k.T=null;var u=B.p;B.p=2;var f=lt;lt|=4;try{ov(a,r);var p=ep,_=fg(r.containerInfo),$=p.focusedElem,O=p.selectionRange;if(_!==$&&$&&$.ownerDocument&&dg($.ownerDocument.documentElement,$)){if(O!==null&&xf($)){var K=O.start,ae=O.end;if(ae===void 0&&(ae=K),"selectionStart"in $)$.selectionStart=K,$.selectionEnd=Math.min(ae,$.value.length);else{var ce=$.ownerDocument||document,Q=ce&&ce.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),Ne=$.textContent.length,Fe=Math.min(O.start,Ne),gt=O.end===void 0?Fe:Math.min(O.end,Ne);!ee.extend&&Fe>gt&&(_=gt,gt=Fe,Fe=_);var H=cg($,Fe),P=cg($,gt);if(H&&P&&(ee.rangeCount!==1||ee.anchorNode!==H.node||ee.anchorOffset!==H.offset||ee.focusNode!==P.node||ee.focusOffset!==P.offset)){var q=ce.createRange();q.setStart(H.node,H.offset),ee.removeAllRanges(),Fe>gt?(ee.addRange(q),ee.extend(P.node,P.offset)):(q.setEnd(P.node,P.offset),ee.addRange(q))}}}}for(ce=[],ee=$;ee=ee.parentNode;)ee.nodeType===1&&ce.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<ce.length;$++){var le=ce[$];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}oc=!!Xm,ep=Xm=null}finally{lt=f,B.p=u,k.T=l}}r.current=a,Vt=2}}function Av(){if(Vt===2){Vt=0;var r=xa,a=To,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=k.T,k.T=null;var u=B.p;B.p=2;var f=lt;lt|=4;try{tv(r,a.alternate,a)}finally{lt=f,B.p=u,k.T=l}}Vt=3}}function wv(){if(Vt===4||Vt===3){Vt=0,re();var r=xa,a=To,l=Zr,u=pv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Vt=5:(Vt=0,To=xa=null,Tv(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&($a=null),yl(l),a=a.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(tt,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=k.T,f=B.p,B.p=2,k.T=null;try{for(var p=r.onRecoverableError,_=0;_<u.length;_++){var $=u[_];p($.value,{componentStack:$.stack})}}finally{k.T=a,B.p=f}}(Zr&3)!==0&&qu(),Sr(r),f=r.pendingLanes,(l&261930)!==0&&(f&42)!==0?r===jm?Kl++:(Kl=0,jm=r):Kl=0,Wl(0)}}function Tv(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Nl(a)))}function qu(){return Cv(),Av(),wv(),Nv()}function Nv(){if(Vt!==5)return!1;var r=xa,a=Im;Im=0;var l=yl(Zr),u=k.T,f=B.p;try{B.p=32>l?32:l,k.T=null,l=Fm,Fm=null;var p=xa,_=Zr;if(Vt=0,To=xa=null,Zr=0,(lt&6)!==0)throw Error(i(331));var $=lt;if(lt|=4,dv(p.current),sv(p,p.current,_,l),lt=$,Wl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(tt,p)}catch{}return!0}finally{B.p=f,k.T=u,Tv(r,a)}}function Mv(r,a,l){a=qn(l,a),a=bm(r.stateNode,a,2),r=ba(r,a,2),r!==null&&(br(r,2),Sr(r))}function ft(r,a,l){if(r.tag===3)Mv(r,r,l);else for(;a!==null;){if(a.tag===3){Mv(a,r,l);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&($a===null||!$a.has(u))){r=qn(l,r),l=Rb(2),u=ba(a,l,2),u!==null&&(Ob(l,u,a,r),br(u,2),Sr(u));break}}a=a.return}}function Hm(r,a,l){var u=r.pingCache;if(u===null){u=r.pingCache=new h6;var f=new Set;u.set(a,f)}else f=u.get(a),f===void 0&&(f=new Set,u.set(a,f));f.has(l)||(Bm=!0,f.add(l),r=_6.bind(null,r,a,l),a.then(r,r))}function _6(r,a,l){var u=r.pingCache;u!==null&&u.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,vt===r&&(Je&l)===l&&(Mt===4||Mt===3&&(Je&62914560)===Je&&300>oe()-Uu?(lt&2)===0&&No(r,0):Lm|=l,wo===Je&&(wo=0)),Sr(r)}function Rv(r,a){a===0&&(a=Qi()),r=si(r,a),r!==null&&(br(r,a),Sr(r))}function E6(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),Rv(r,l)}function S6(r,a){var l=0;switch(r.tag){case 31:case 13:var u=r.stateNode,f=r.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(a),Rv(r,l)}function D6(r,a){return xe(r,a)}var Ku=null,Ro=null,Vm=!1,Wu=!1,Gm=!1,Aa=0;function Sr(r){r!==Ro&&r.next===null&&(Ro===null?Ku=Ro=r:Ro=Ro.next=r),Wu=!0,Vm||(Vm=!0,x6())}function Wl(r,a){if(!Gm&&Wu){Gm=!0;do for(var l=!1,u=Ku;u!==null;){if(r!==0){var f=u.pendingLanes;if(f===0)var p=0;else{var _=u.suspendedLanes,$=u.pingedLanes;p=(1<<31-Ye(42|r)+1)-1,p&=f&~(_&~$),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,Lv(u,p))}else p=Je,p=pl(u,u===vt?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||Rn(u,p)||(l=!0,Lv(u,p));u=u.next}while(l);Gm=!1}}function $6(){Ov()}function Ov(){Wu=Vm=!1;var r=0;Aa!==0&&B6()&&(r=Aa);for(var a=oe(),l=null,u=Ku;u!==null;){var f=u.next,p=kv(u,a);p===0?(u.next=null,l===null?Ku=f:l.next=f,f===null&&(Ro=l)):(l=u,(r!==0||(p&3)!==0)&&(Wu=!0)),u=f}Vt!==0&&Vt!==5||Wl(r),Aa!==0&&(Aa=0)}function kv(r,a){for(var l=r.suspendedLanes,u=r.pingedLanes,f=r.expirationTimes,p=r.pendingLanes&-62914561;0<p;){var _=31-Ye(p),$=1<<_,O=f[_];O===-1?(($&l)===0||($&u)!==0)&&(f[_]=hl($,a)):O<=a&&(r.expiredLanes|=$),p&=~$}if(a=vt,l=Je,l=pl(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,l===0||r===a&&(dt===2||dt===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&$e(u),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Rn(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(u!==null&&$e(u),yl(l)){case 2:case 8:l=Te;break;case 32:l=Re;break;case 268435456:l=qe;break;default:l=Re}return u=Bv.bind(null,r),l=xe(l,u),r.callbackPriority=a,r.callbackNode=l,a}return u!==null&&u!==null&&$e(u),r.callbackPriority=2,r.callbackNode=null,2}function Bv(r,a){if(Vt!==0&&Vt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(qu()&&r.callbackNode!==l)return null;var u=Je;return u=pl(r,r===vt?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(yv(r,u,a),kv(r,oe()),r.callbackNode!=null&&r.callbackNode===l?Bv.bind(null,r):null)}function Lv(r,a){if(qu())return null;yv(r,a,!0)}function x6(){P6(function(){(lt&6)!==0?xe(Ee,$6):Ov()})}function Zm(){if(Aa===0){var r=go;r===0&&(r=gr,gr<<=1,(gr&261888)===0&&(gr=256)),Aa=r}return Aa}function Pv(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:au(""+r)}function Iv(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function C6(r,a,l,u,f){if(a==="submit"&&l&&l.stateNode===f){var p=Pv((f[yn]||null).action),_=u.submitter;_&&(a=(a=_[yn]||null)?Pv(a.formAction):_.getAttribute("formAction"),a!==null&&(p=a,_=null));var $=new su("action","action",null,u,f);r.push({event:$,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Aa!==0){var O=_?Iv(f,_):new FormData(f);fm(l,{pending:!0,data:O,method:f.method,action:p},null,O)}}else typeof p=="function"&&($.preventDefault(),O=_?Iv(f,_):new FormData(f),fm(l,{pending:!0,data:O,method:f.method,action:p},p,O))},currentTarget:f}]})}}for(var Ym=0;Ym<Tf.length;Ym++){var qm=Tf[Ym],A6=qm.toLowerCase(),w6=qm[0].toUpperCase()+qm.slice(1);fr(A6,"on"+w6)}fr(hg,"onAnimationEnd"),fr(yg,"onAnimationIteration"),fr(gg,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(VC,"onTransitionRun"),fr(GC,"onTransitionStart"),fr(ZC,"onTransitionCancel"),fr(bg,"onTransitionEnd"),no("onMouseEnter",["mouseout","mouseover"]),no("onMouseLeave",["mouseout","mouseover"]),no("onPointerEnter",["pointerout","pointerover"]),no("onPointerLeave",["pointerout","pointerover"]),ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ql="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ql));function Fv(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],f=u.event;u=u.listeners;e:{var p=void 0;if(a)for(var _=u.length-1;0<=_;_--){var $=u[_],O=$.instance,K=$.currentTarget;if($=$.listener,O!==p&&f.isPropagationStopped())break e;p=$,f.currentTarget=K;try{p(f)}catch(ae){du(ae)}f.currentTarget=null,p=O}else for(_=0;_<u.length;_++){if($=u[_],O=$.instance,K=$.currentTarget,$=$.listener,O!==p&&f.isPropagationStopped())break e;p=$,f.currentTarget=K;try{p(f)}catch(ae){du(ae)}f.currentTarget=null,p=O}}}}function Qe(r,a){var l=a[lf];l===void 0&&(l=a[lf]=new Set);var u=r+"__bubble";l.has(u)||(jv(a,r,2,!1),l.add(u))}function Km(r,a,l){var u=0;a&&(u|=4),jv(l,r,u,a)}var Qu="_reactListening"+Math.random().toString(36).slice(2);function Wm(r){if(!r[Qu]){r[Qu]=!0,Oy.forEach(function(l){l!=="selectionchange"&&(T6.has(l)||Km(l,!1,r),Km(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Qu]||(a[Qu]=!0,Km("selectionchange",!1,a))}}function jv(r,a,l,u){switch(h_(a)){case 2:var f=rA;break;case 8:f=aA;break;default:f=dp}l=f.bind(null,a,l,r),f=void 0,!yf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),u?f!==void 0?r.addEventListener(a,l,{capture:!0,passive:f}):r.addEventListener(a,l,!0):f!==void 0?r.addEventListener(a,l,{passive:f}):r.addEventListener(a,l,!1)}function Qm(r,a,l,u,f){var p=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var _=u.tag;if(_===3||_===4){var $=u.stateNode.containerInfo;if($===f)break;if(_===4)for(_=u.return;_!==null;){var O=_.tag;if((O===3||O===4)&&_.stateNode.containerInfo===f)return;_=_.return}for(;$!==null;){if(_=Xi($),_===null)return;if(O=_.tag,O===5||O===6||O===26||O===27){u=p=_;continue e}$=$.parentNode}}u=u.return}Gy(function(){var K=p,ae=pf(l),ce=[];e:{var Q=vg.get(r);if(Q!==void 0){var ee=su,Ne=r;switch(r){case"keypress":if(ou(l)===0)break e;case"keydown":case"keyup":ee=SC;break;case"focusin":Ne="focus",ee=_f;break;case"focusout":Ne="blur",ee=_f;break;case"beforeblur":case"afterblur":ee=_f;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=qy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=cC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=xC;break;case hg:case yg:case gg:ee=mC;break;case bg:ee=AC;break;case"scroll":case"scrollend":ee=sC;break;case"wheel":ee=TC;break;case"copy":case"cut":case"paste":ee=hC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Wy;break;case"toggle":case"beforetoggle":ee=MC}var Fe=(a&4)!==0,gt=!Fe&&(r==="scroll"||r==="scrollend"),H=Fe?Q!==null?Q+"Capture":null:Q;Fe=[];for(var P=K,q;P!==null;){var le=P;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||H===null||(le=vl(P,H),le!=null&&Fe.push(Jl(P,le,q))),gt)break;P=P.return}0<Fe.length&&(Q=new ee(Q,Ne,null,l,ae),ce.push({event:Q,listeners:Fe}))}}if((a&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",ee=r==="mouseout"||r==="pointerout",Q&&l!==mf&&(Ne=l.relatedTarget||l.fromElement)&&(Xi(Ne)||Ne[Ji]))break e;if((ee||Q)&&(Q=ae.window===ae?ae:(Q=ae.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(Ne=l.relatedTarget||l.toElement,ee=K,Ne=Ne?Xi(Ne):null,Ne!==null&&(gt=s(Ne),Fe=Ne.tag,Ne!==gt||Fe!==5&&Fe!==27&&Fe!==6)&&(Ne=null)):(ee=null,Ne=K),ee!==Ne)){if(Fe=qy,le="onMouseLeave",H="onMouseEnter",P="mouse",(r==="pointerout"||r==="pointerover")&&(Fe=Wy,le="onPointerLeave",H="onPointerEnter",P="pointer"),gt=ee==null?Q:bl(ee),q=Ne==null?Q:bl(Ne),Q=new Fe(le,P+"leave",ee,l,ae),Q.target=gt,Q.relatedTarget=q,le=null,Xi(ae)===K&&(Fe=new Fe(H,P+"enter",Ne,l,ae),Fe.target=q,Fe.relatedTarget=gt,le=Fe),gt=le,ee&&Ne)t:{for(Fe=N6,H=ee,P=Ne,q=0,le=H;le;le=Fe(le))q++;le=0;for(var Be=P;Be;Be=Fe(Be))le++;for(;0<q-le;)H=Fe(H),q--;for(;0<le-q;)P=Fe(P),le--;for(;q--;){if(H===P||P!==null&&H===P.alternate){Fe=H;break t}H=Fe(H),P=Fe(P)}Fe=null}else Fe=null;ee!==null&&zv(ce,Q,ee,Fe,!1),Ne!==null&&gt!==null&&zv(ce,gt,Ne,Fe,!0)}}e:{if(Q=K?bl(K):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var at=ag;else if(ng(Q))if(ig)at=zC;else{at=FC;var Oe=IC}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&ff(K.elementType)&&(at=ag):at=jC;if(at&&(at=at(r,K))){rg(ce,at,l,ae);break e}Oe&&Oe(r,Q,K),r==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&df(Q,"number",Q.value)}switch(Oe=K?bl(K):window,r){case"focusin":(ng(Oe)||Oe.contentEditable==="true")&&(so=Oe,Cf=K,Al=null);break;case"focusout":Al=Cf=so=null;break;case"mousedown":Af=!0;break;case"contextmenu":case"mouseup":case"dragend":Af=!1,mg(ce,l,ae);break;case"selectionchange":if(HC)break;case"keydown":case"keyup":mg(ce,l,ae)}var Ze;if(Sf)e:{switch(r){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else lo?eg(r,l)&&(Xe="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Xe="onCompositionStart");Xe&&(Qy&&l.locale!=="ko"&&(lo||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&lo&&(Ze=Zy()):(da=ae,gf="value"in da?da.value:da.textContent,lo=!0)),Oe=Ju(K,Xe),0<Oe.length&&(Xe=new Ky(Xe,r,null,l,ae),ce.push({event:Xe,listeners:Oe}),Ze?Xe.data=Ze:(Ze=tg(l),Ze!==null&&(Xe.data=Ze)))),(Ze=OC?kC(r,l):BC(r,l))&&(Xe=Ju(K,"onBeforeInput"),0<Xe.length&&(Oe=new Ky("onBeforeInput","beforeinput",null,l,ae),ce.push({event:Oe,listeners:Xe}),Oe.data=Ze)),C6(ce,r,K,l,ae)}Fv(ce,a)})}function Jl(r,a,l){return{instance:r,listener:a,currentTarget:l}}function Ju(r,a){for(var l=a+"Capture",u=[];r!==null;){var f=r,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=vl(r,l),f!=null&&u.unshift(Jl(r,f,p)),f=vl(r,a),f!=null&&u.push(Jl(r,f,p))),r.tag===3)return u;r=r.return}return[]}function N6(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function zv(r,a,l,u,f){for(var p=a._reactName,_=[];l!==null&&l!==u;){var $=l,O=$.alternate,K=$.stateNode;if($=$.tag,O!==null&&O===u)break;$!==5&&$!==26&&$!==27||K===null||(O=K,f?(K=vl(l,p),K!=null&&_.unshift(Jl(l,K,O))):f||(K=vl(l,p),K!=null&&_.push(Jl(l,K,O)))),l=l.return}_.length!==0&&r.push({event:a,listeners:_})}var M6=/\r\n?/g,R6=/\u0000|\uFFFD/g;function Uv(r){return(typeof r=="string"?r:""+r).replace(M6,`
49
+ `).replace(R6,"")}function Hv(r,a){return a=Uv(a),Uv(r)===a}function yt(r,a,l,u,f,p){switch(l){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||ao(r,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&ao(r,""+u);break;case"className":nu(r,"class",u);break;case"tabIndex":nu(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":nu(r,l,u);break;case"style":Hy(r,u,p);break;case"data":if(a!=="object"){nu(r,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=au(""+u),r.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(a!=="input"&&yt(r,a,"name",f.name,f,null),yt(r,a,"formEncType",f.formEncType,f,null),yt(r,a,"formMethod",f.formMethod,f,null),yt(r,a,"formTarget",f.formTarget,f,null)):(yt(r,a,"encType",f.encType,f,null),yt(r,a,"method",f.method,f,null),yt(r,a,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=au(""+u),r.setAttribute(l,u);break;case"onClick":u!=null&&(r.onclick=Mr);break;case"onScroll":u!=null&&Qe("scroll",r);break;case"onScrollEnd":u!=null&&Qe("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){r.removeAttribute("xlink:href");break}l=au(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""+u):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":u===!0?r.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,u):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(l,u):r.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(l):r.setAttribute(l,u);break;case"popover":Qe("beforetoggle",r),Qe("toggle",r),tu(r,"popover",u);break;case"xlinkActuate":Nr(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Nr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Nr(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Nr(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Nr(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Nr(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":tu(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=oC.get(l)||l,tu(r,l,u))}}function Jm(r,a,l,u,f,p){switch(l){case"style":Hy(r,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof u=="string"?ao(r,u):(typeof u=="number"||typeof u=="bigint")&&ao(r,""+u);break;case"onScroll":u!=null&&Qe("scroll",r);break;case"onScrollEnd":u!=null&&Qe("scrollend",r);break;case"onClick":u!=null&&(r.onclick=Mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ky.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),a=l.slice(2,f?l.length-7:void 0),p=r[yn]||null,p=p!=null?p[l]:null,typeof p=="function"&&r.removeEventListener(a,p,f),typeof u=="function")){typeof p!="function"&&p!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,u,f);break e}l in r?r[l]=u:u===!0?r.setAttribute(l,""):tu(r,l,u)}}}function tn(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",r),Qe("load",r);var u=!1,f=!1,p;for(p in l)if(l.hasOwnProperty(p)){var _=l[p];if(_!=null)switch(p){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:yt(r,a,p,_,l,null)}}f&&yt(r,a,"srcSet",l.srcSet,l,null),u&&yt(r,a,"src",l.src,l,null);return;case"input":Qe("invalid",r);var $=p=_=f=null,O=null,K=null;for(u in l)if(l.hasOwnProperty(u)){var ae=l[u];if(ae!=null)switch(u){case"name":f=ae;break;case"type":_=ae;break;case"checked":O=ae;break;case"defaultChecked":K=ae;break;case"value":p=ae;break;case"defaultValue":$=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:yt(r,a,u,ae,l,null)}}Fy(r,p,$,O,K,_,f,!1);return;case"select":Qe("invalid",r),u=_=p=null;for(f in l)if(l.hasOwnProperty(f)&&($=l[f],$!=null))switch(f){case"value":p=$;break;case"defaultValue":_=$;break;case"multiple":u=$;default:yt(r,a,f,$,l,null)}a=p,l=_,r.multiple=!!u,a!=null?ro(r,!!u,a,!1):l!=null&&ro(r,!!u,l,!0);return;case"textarea":Qe("invalid",r),p=f=u=null;for(_ in l)if(l.hasOwnProperty(_)&&($=l[_],$!=null))switch(_){case"value":u=$;break;case"defaultValue":f=$;break;case"children":p=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(i(91));break;default:yt(r,a,_,$,l,null)}zy(r,u,f,p);return;case"option":for(O in l)if(l.hasOwnProperty(O)&&(u=l[O],u!=null))switch(O){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:yt(r,a,O,u,l,null)}return;case"dialog":Qe("beforetoggle",r),Qe("toggle",r),Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":Qe("load",r);break;case"video":case"audio":for(u=0;u<Ql.length;u++)Qe(Ql[u],r);break;case"image":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"embed":case"source":case"link":Qe("error",r),Qe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in l)if(l.hasOwnProperty(K)&&(u=l[K],u!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:yt(r,a,K,u,l,null)}return;default:if(ff(a)){for(ae in l)l.hasOwnProperty(ae)&&(u=l[ae],u!==void 0&&Jm(r,a,ae,u,l,void 0));return}}for($ in l)l.hasOwnProperty($)&&(u=l[$],u!=null&&yt(r,a,$,u,l,null))}function O6(r,a,l,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,_=null,$=null,O=null,K=null,ae=null;for(ee in l){var ce=l[ee];if(l.hasOwnProperty(ee)&&ce!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":O=ce;default:u.hasOwnProperty(ee)||yt(r,a,ee,null,u,ce)}}for(var Q in u){var ee=u[Q];if(ce=l[Q],u.hasOwnProperty(Q)&&(ee!=null||ce!=null))switch(Q){case"type":p=ee;break;case"name":f=ee;break;case"checked":K=ee;break;case"defaultChecked":ae=ee;break;case"value":_=ee;break;case"defaultValue":$=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,a));break;default:ee!==ce&&yt(r,a,Q,ee,u,ce)}}cf(r,_,$,O,K,ae,p,f);return;case"select":ee=_=$=Q=null;for(p in l)if(O=l[p],l.hasOwnProperty(p)&&O!=null)switch(p){case"value":break;case"multiple":ee=O;default:u.hasOwnProperty(p)||yt(r,a,p,null,u,O)}for(f in u)if(p=u[f],O=l[f],u.hasOwnProperty(f)&&(p!=null||O!=null))switch(f){case"value":Q=p;break;case"defaultValue":$=p;break;case"multiple":_=p;default:p!==O&&yt(r,a,f,p,u,O)}a=$,l=_,u=ee,Q!=null?ro(r,!!l,Q,!1):!!u!=!!l&&(a!=null?ro(r,!!l,a,!0):ro(r,!!l,l?[]:"",!1));return;case"textarea":ee=Q=null;for($ in l)if(f=l[$],l.hasOwnProperty($)&&f!=null&&!u.hasOwnProperty($))switch($){case"value":break;case"children":break;default:yt(r,a,$,null,u,f)}for(_ in u)if(f=u[_],p=l[_],u.hasOwnProperty(_)&&(f!=null||p!=null))switch(_){case"value":Q=f;break;case"defaultValue":ee=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==p&&yt(r,a,_,f,u,p)}jy(r,Q,ee);return;case"option":for(var Ne in l)if(Q=l[Ne],l.hasOwnProperty(Ne)&&Q!=null&&!u.hasOwnProperty(Ne))switch(Ne){case"selected":r.selected=!1;break;default:yt(r,a,Ne,null,u,Q)}for(O in u)if(Q=u[O],ee=l[O],u.hasOwnProperty(O)&&Q!==ee&&(Q!=null||ee!=null))switch(O){case"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:yt(r,a,O,Q,u,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Fe in l)Q=l[Fe],l.hasOwnProperty(Fe)&&Q!=null&&!u.hasOwnProperty(Fe)&&yt(r,a,Fe,null,u,Q);for(K in u)if(Q=u[K],ee=l[K],u.hasOwnProperty(K)&&Q!==ee&&(Q!=null||ee!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,a));break;default:yt(r,a,K,Q,u,ee)}return;default:if(ff(a)){for(var gt in l)Q=l[gt],l.hasOwnProperty(gt)&&Q!==void 0&&!u.hasOwnProperty(gt)&&Jm(r,a,gt,void 0,u,Q);for(ae in u)Q=u[ae],ee=l[ae],!u.hasOwnProperty(ae)||Q===ee||Q===void 0&&ee===void 0||Jm(r,a,ae,Q,u,ee);return}}for(var H in l)Q=l[H],l.hasOwnProperty(H)&&Q!=null&&!u.hasOwnProperty(H)&&yt(r,a,H,null,u,Q);for(ce in u)Q=u[ce],ee=l[ce],!u.hasOwnProperty(ce)||Q===ee||Q==null&&ee==null||yt(r,a,ce,Q,u,ee)}function Vv(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function k6(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var f=l[u],p=f.transferSize,_=f.initiatorType,$=f.duration;if(p&&$&&Vv(_)){for(_=0,$=f.responseEnd,u+=1;u<l.length;u++){var O=l[u],K=O.startTime;if(K>$)break;var ae=O.transferSize,ce=O.initiatorType;ae&&Vv(ce)&&(O=O.responseEnd,_+=ae*(O<$?1:($-K)/(O-K)))}if(--u,a+=8*(p+_)/(f.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Xm=null,ep=null;function Xu(r){return r.nodeType===9?r:r.ownerDocument}function Gv(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zv(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function tp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var np=null;function B6(){var r=window.event;return r&&r.type==="popstate"?r===np?!1:(np=r,!0):(np=null,!1)}var Yv=typeof setTimeout=="function"?setTimeout:void 0,L6=typeof clearTimeout=="function"?clearTimeout:void 0,qv=typeof Promise=="function"?Promise:void 0,P6=typeof queueMicrotask=="function"?queueMicrotask:typeof qv<"u"?function(r){return qv.resolve(null).then(r).catch(I6)}:Yv;function I6(r){setTimeout(function(){throw r})}function wa(r){return r==="head"}function Kv(r,a){var l=a,u=0;do{var f=l.nextSibling;if(r.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(u===0){r.removeChild(f),Lo(a);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")Xl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Xl(l);for(var p=l.firstChild;p;){var _=p.nextSibling,$=p.nodeName;p[gl]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=_}}else l==="body"&&Xl(r.ownerDocument.body);l=f}while(l);Lo(a)}function Wv(r,a){var l=r;r=0;do{var u=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=u}while(l)}function rp(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":rp(l),sf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function F6(r,a,l,u){for(;r.nodeType===1;){var f=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[gl])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(p=r.getAttribute("rel"),p==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(p!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(p=r.getAttribute("src"),(p!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===p)return r}else return r;if(r=Xn(r.nextSibling),r===null)break}return null}function j6(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=Xn(r.nextSibling),r===null))return null;return r}function Qv(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Xn(r.nextSibling),r===null))return null;return r}function ap(r){return r.data==="$?"||r.data==="$~"}function ip(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function z6(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var u=function(){a(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function Xn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var op=null;function Jv(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return Xn(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function Xv(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function e_(r,a,l){switch(a=Xu(l),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Xl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);sf(r)}var er=new Map,t_=new Set;function ec(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Yr=B.d;B.d={f:U6,r:H6,D:V6,C:G6,L:Z6,m:Y6,X:K6,S:q6,M:W6};function U6(){var r=Yr.f(),a=Gu();return r||a}function H6(r){var a=eo(r);a!==null&&a.tag===5&&a.type==="form"?bb(a):Yr.r(r)}var Oo=typeof document>"u"?null:document;function n_(r,a,l){var u=Oo;if(u&&typeof a=="string"&&a){var f=Zn(a);f='link[rel="'+r+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),t_.has(f)||(t_.add(f),r={rel:r,crossOrigin:l,href:a},u.querySelector(f)===null&&(a=u.createElement("link"),tn(a,"link",r),Kt(a),u.head.appendChild(a)))}}function V6(r){Yr.D(r),n_("dns-prefetch",r,null)}function G6(r,a){Yr.C(r,a),n_("preconnect",r,a)}function Z6(r,a,l){Yr.L(r,a,l);var u=Oo;if(u&&r&&a){var f='link[rel="preload"][as="'+Zn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Zn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Zn(l.imageSizes)+'"]')):f+='[href="'+Zn(r)+'"]';var p=f;switch(a){case"style":p=ko(r);break;case"script":p=Bo(r)}er.has(p)||(r=g({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),er.set(p,r),u.querySelector(f)!==null||a==="style"&&u.querySelector(es(p))||a==="script"&&u.querySelector(ts(p))||(a=u.createElement("link"),tn(a,"link",r),Kt(a),u.head.appendChild(a)))}}function Y6(r,a){Yr.m(r,a);var l=Oo;if(l&&r){var u=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Zn(u)+'"][href="'+Zn(r)+'"]',p=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Bo(r)}if(!er.has(p)&&(r=g({rel:"modulepreload",href:r},a),er.set(p,r),l.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ts(p)))return}u=l.createElement("link"),tn(u,"link",r),Kt(u),l.head.appendChild(u)}}}function q6(r,a,l){Yr.S(r,a,l);var u=Oo;if(u&&r){var f=to(u).hoistableStyles,p=ko(r);a=a||"default";var _=f.get(p);if(!_){var $={loading:0,preload:null};if(_=u.querySelector(es(p)))$.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},l),(l=er.get(p))&&lp(r,l);var O=_=u.createElement("link");Kt(O),tn(O,"link",r),O._p=new Promise(function(K,ae){O.onload=K,O.onerror=ae}),O.addEventListener("load",function(){$.loading|=1}),O.addEventListener("error",function(){$.loading|=2}),$.loading|=4,tc(_,a,u)}_={type:"stylesheet",instance:_,count:1,state:$},f.set(p,_)}}}function K6(r,a){Yr.X(r,a);var l=Oo;if(l&&r){var u=to(l).hoistableScripts,f=Bo(r),p=u.get(f);p||(p=l.querySelector(ts(f)),p||(r=g({src:r,async:!0},a),(a=er.get(f))&&sp(r,a),p=l.createElement("script"),Kt(p),tn(p,"link",r),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(f,p))}}function W6(r,a){Yr.M(r,a);var l=Oo;if(l&&r){var u=to(l).hoistableScripts,f=Bo(r),p=u.get(f);p||(p=l.querySelector(ts(f)),p||(r=g({src:r,async:!0,type:"module"},a),(a=er.get(f))&&sp(r,a),p=l.createElement("script"),Kt(p),tn(p,"link",r),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(f,p))}}function r_(r,a,l,u){var f=(f=z.current)?ec(f):null;if(!f)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=ko(l.href),l=to(f).hoistableStyles,u=l.get(a),u||(u={type:"style",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=ko(l.href);var p=to(f).hoistableStyles,_=p.get(r);if(_||(f=f.ownerDocument||f,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(r,_),(p=f.querySelector(es(r)))&&!p._p&&(_.instance=p,_.state.loading=5),er.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},er.set(r,l),p||Q6(f,r,l,_.state))),a&&u===null)throw Error(i(528,""));return _}if(a&&u!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Bo(l),l=to(f).hoistableScripts,u=l.get(a),u||(u={type:"script",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ko(r){return'href="'+Zn(r)+'"'}function es(r){return'link[rel="stylesheet"]['+r+"]"}function a_(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function Q6(r,a,l,u){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=r.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),tn(a,"link",l),Kt(a),r.head.appendChild(a))}function Bo(r){return'[src="'+Zn(r)+'"]'}function ts(r){return"script[async]"+r}function i_(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var u=r.querySelector('style[data-href~="'+Zn(l.href)+'"]');if(u)return a.instance=u,Kt(u),u;var f=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),Kt(u),tn(u,"style",f),tc(u,l.precedence,r),a.instance=u;case"stylesheet":f=ko(l.href);var p=r.querySelector(es(f));if(p)return a.state.loading|=4,a.instance=p,Kt(p),p;u=a_(l),(f=er.get(f))&&lp(u,f),p=(r.ownerDocument||r).createElement("link"),Kt(p);var _=p;return _._p=new Promise(function($,O){_.onload=$,_.onerror=O}),tn(p,"link",u),a.state.loading|=4,tc(p,l.precedence,r),a.instance=p;case"script":return p=Bo(l.src),(f=r.querySelector(ts(p)))?(a.instance=f,Kt(f),f):(u=l,(f=er.get(p))&&(u=g({},l),sp(u,f)),r=r.ownerDocument||r,f=r.createElement("script"),Kt(f),tn(f,"link",u),r.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,tc(u,l.precedence,r));return a.instance}function tc(r,a,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,p=f,_=0;_<u.length;_++){var $=u[_];if($.dataset.precedence===a)p=$;else if(p!==f)break}p?p.parentNode.insertBefore(r,p.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function lp(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function sp(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var nc=null;function o_(r,a,l){if(nc===null){var u=new Map,f=nc=new Map;f.set(l,u)}else f=nc,u=f.get(l),u||(u=new Map,f.set(l,u));if(u.has(r))return u;for(u.set(r,null),l=l.getElementsByTagName(r),f=0;f<l.length;f++){var p=l[f];if(!(p[gl]||p[Qt]||r==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var _=p.getAttribute(a)||"";_=r+_;var $=u.get(_);$?$.push(p):u.set(_,[p])}}return u}function l_(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function J6(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function s_(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function X6(r,a,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=ko(u.href),p=a.querySelector(es(f));if(p){a=p._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=rc.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=p,Kt(p);return}p=a.ownerDocument||a,u=a_(u),(f=er.get(f))&&lp(u,f),p=p.createElement("link"),Kt(p);var _=p;_._p=new Promise(function($,O){_.onload=$,_.onerror=O}),tn(p,"link",u),l.instance=p}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=rc.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var up=0;function eA(r,a){return r.stylesheets&&r.count===0&&ic(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var u=setTimeout(function(){if(r.stylesheets&&ic(r,r.stylesheets),r.unsuspend){var p=r.unsuspend;r.unsuspend=null,p()}},6e4+a);0<r.imgBytes&&up===0&&(up=62500*k6());var f=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&ic(r,r.stylesheets),r.unsuspend)){var p=r.unsuspend;r.unsuspend=null,p()}},(r.imgBytes>up?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ic(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var ac=null;function ic(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,ac=new Map,a.forEach(tA,r),ac=null,rc.call(r))}function tA(r,a){if(!(a.state.loading&4)){var l=ac.get(r);if(l)var u=l.get(null);else{l=new Map,ac.set(r,l);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var _=f[p];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(l.set(_.dataset.precedence,_),u=_)}u&&l.set(null,u)}f=a.instance,_=f.getAttribute("data-precedence"),p=l.get(_)||u,p===u&&l.set(null,f),l.set(_,f),this.count++,u=rc.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),p?p.parentNode.insertBefore(f,p.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),a.state.loading|=4}}var ns={$$typeof:A,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function nA(r,a,l,u,f,p,_,$,O){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ua(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ua(0),this.hiddenUpdates=ua(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function u_(r,a,l,u,f,p,_,$,O,K,ae,ce){return r=new nA(r,a,l,_,O,K,ae,ce,$),a=1,p===!0&&(a|=24),p=kn(3,null,null,a),r.current=p,p.stateNode=r,a=Uf(),a.refCount++,r.pooledCache=a,a.refCount++,p.memoizedState={element:u,isDehydrated:l,cache:a},Zf(p),r}function c_(r){return r?(r=fo,r):fo}function d_(r,a,l,u,f,p){f=c_(f),u.context===null?u.context=f:u.pendingContext=f,u=ga(a),u.payload={element:l},p=p===void 0?null:p,p!==null&&(u.callback=p),l=ba(r,u,a),l!==null&&(Sn(l,r,a),kl(l,r,a))}function f_(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function cp(r,a){f_(r,a),(r=r.alternate)&&f_(r,a)}function m_(r){if(r.tag===13||r.tag===31){var a=si(r,67108864);a!==null&&Sn(a,r,67108864),cp(r,67108864)}}function p_(r){if(r.tag===13||r.tag===31){var a=Fn();a=dr(a);var l=si(r,a);l!==null&&Sn(l,r,a),cp(r,a)}}var oc=!0;function rA(r,a,l,u){var f=k.T;k.T=null;var p=B.p;try{B.p=2,dp(r,a,l,u)}finally{B.p=p,k.T=f}}function aA(r,a,l,u){var f=k.T;k.T=null;var p=B.p;try{B.p=8,dp(r,a,l,u)}finally{B.p=p,k.T=f}}function dp(r,a,l,u){if(oc){var f=fp(u);if(f===null)Qm(r,a,u,lc,l),y_(r,u);else if(oA(f,r,a,l,u))u.stopPropagation();else if(y_(r,u),a&4&&-1<iA.indexOf(r)){for(;f!==null;){var p=eo(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var _=Vn(p.pendingLanes);if(_!==0){var $=p;for($.pendingLanes|=2,$.entangledLanes|=2;_;){var O=1<<31-Ye(_);$.entanglements[1]|=O,_&=~O}Sr(p),(lt&6)===0&&(Hu=oe()+500,Wl(0))}}break;case 31:case 13:$=si(p,2),$!==null&&Sn($,p,2),Gu(),cp(p,2)}if(p=fp(u),p===null&&Qm(r,a,u,lc,l),p===f)break;f=p}f!==null&&u.stopPropagation()}else Qm(r,a,u,null,l)}}function fp(r){return r=pf(r),mp(r)}var lc=null;function mp(r){if(lc=null,r=Xi(r),r!==null){var a=s(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=c(a),r!==null)return r;r=null}else if(l===31){if(r=d(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return lc=r,null}function h_(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ce()){case Ee:return 2;case Te:return 8;case Re:case ke:return 32;case qe:return 268435456;default:return 32}default:return 32}}var pp=!1,Ta=null,Na=null,Ma=null,rs=new Map,as=new Map,Ra=[],iA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function y_(r,a){switch(r){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Na=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":rs.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":as.delete(a.pointerId)}}function is(r,a,l,u,f,p){return r===null||r.nativeEvent!==p?(r={blockedOn:a,domEventName:l,eventSystemFlags:u,nativeEvent:p,targetContainers:[f]},a!==null&&(a=eo(a),a!==null&&m_(a)),r):(r.eventSystemFlags|=u,a=r.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),r)}function oA(r,a,l,u,f){switch(a){case"focusin":return Ta=is(Ta,r,a,l,u,f),!0;case"dragenter":return Na=is(Na,r,a,l,u,f),!0;case"mouseover":return Ma=is(Ma,r,a,l,u,f),!0;case"pointerover":var p=f.pointerId;return rs.set(p,is(rs.get(p)||null,r,a,l,u,f)),!0;case"gotpointercapture":return p=f.pointerId,as.set(p,is(as.get(p)||null,r,a,l,u,f)),!0}return!1}function g_(r){var a=Xi(r.target);if(a!==null){var l=s(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){r.blockedOn=a,My(r.priority,function(){p_(l)});return}}else if(a===31){if(a=d(l),a!==null){r.blockedOn=a,My(r.priority,function(){p_(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function sc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=fp(r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);mf=u,l.target.dispatchEvent(u),mf=null}else return a=eo(l),a!==null&&m_(a),r.blockedOn=l,!1;a.shift()}return!0}function b_(r,a,l){sc(r)&&l.delete(a)}function lA(){pp=!1,Ta!==null&&sc(Ta)&&(Ta=null),Na!==null&&sc(Na)&&(Na=null),Ma!==null&&sc(Ma)&&(Ma=null),rs.forEach(b_),as.forEach(b_)}function uc(r,a){r.blockedOn===a&&(r.blockedOn=null,pp||(pp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,lA)))}var cc=null;function v_(r){cc!==r&&(cc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){cc===r&&(cc=null);for(var a=0;a<r.length;a+=3){var l=r[a],u=r[a+1],f=r[a+2];if(typeof u!="function"){if(mp(u||l)===null)continue;break}var p=eo(l);p!==null&&(r.splice(a,3),a-=3,fm(p,{pending:!0,data:f,method:l.method,action:u},u,f))}}))}function Lo(r){function a(O){return uc(O,r)}Ta!==null&&uc(Ta,r),Na!==null&&uc(Na,r),Ma!==null&&uc(Ma,r),rs.forEach(a),as.forEach(a);for(var l=0;l<Ra.length;l++){var u=Ra[l];u.blockedOn===r&&(u.blockedOn=null)}for(;0<Ra.length&&(l=Ra[0],l.blockedOn===null);)g_(l),l.blockedOn===null&&Ra.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var f=l[u],p=l[u+1],_=f[yn]||null;if(typeof p=="function")_||v_(l);else if(_){var $=null;if(p&&p.hasAttribute("formAction")){if(f=p,_=p[yn]||null)$=_.formAction;else if(mp(f)!==null)continue}else $=_.action;typeof $=="function"?l[u+1]=$:(l.splice(u,3),u-=3),v_(l)}}}function __(){function r(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(_){return f=_})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function hp(r){this._internalRoot=r}dc.prototype.render=hp.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,u=Fn();d_(l,u,r,a,null,null)},dc.prototype.unmount=hp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;d_(r.current,2,null,r,null,null),Gu(),a[Ji]=null}};function dc(r){this._internalRoot=r}dc.prototype.unstable_scheduleHydration=function(r){if(r){var a=Ny();r={blockedOn:null,target:r,priority:a};for(var l=0;l<Ra.length&&a!==0&&a<Ra[l].priority;l++);Ra.splice(l,0,r),l===0&&g_(r)}};var E_=t.version;if(E_!=="19.2.7")throw Error(i(527,E_,"19.2.7"));B.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var sA={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{tt=fc.inject(sA),rt=fc}catch{}}return ls.createRoot=function(r,a){if(!o(r))throw Error(i(299));var l=!1,u="",f=wb,p=Tb,_=Nb;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=u_(r,1,!1,null,null,l,u,null,f,p,_,__),r[Ji]=a.current,Wm(r),new hp(a)},ls.hydrateRoot=function(r,a,l){if(!o(r))throw Error(i(299));var u=!1,f="",p=wb,_=Tb,$=Nb,O=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(_=l.onCaughtError),l.onRecoverableError!==void 0&&($=l.onRecoverableError),l.formState!==void 0&&(O=l.formState)),a=u_(r,1,!0,a,l??null,u,f,O,p,_,$,__),a.context=c_(null),l=a.current,u=Fn(),u=dr(u),f=ga(u),f.callback=null,ba(l,f,u),l=u,a.current.lanes=l,br(a,l),Sr(a),r[Ji]=a.current,Wm(r),new dc(a)},ls.version="19.2.7",ls}var M_;function gA(){if(M_)return bp.exports;M_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),bp.exports=yA(),bp.exports}var bA=gA();const bt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ga="8.55.2",st=globalThis;function Td(e,t,n){const i=n||st,o=i.__SENTRY__=i.__SENTRY__||{},s=o[Ga]=o[Ga]||{};return s[e]||(s[e]=t())}const Hi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vA="Sentry Logger ",yh=["debug","info","warn","error","log","assert","trace"],ed={};function Vi(e){if(!("console"in st))return e();const t=st.console,n={},i=Object.keys(ed);i.forEach(o=>{const s=ed[o];n[o]=t[o],t[o]=s});try{return e()}finally{i.forEach(o=>{t[o]=n[o]})}}function _A(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Hi?yh.forEach(n=>{t[n]=(...i)=>{e&&Vi(()=>{st.console[n](`${vA}[${n}]:`,...i)})}}):yh.forEach(n=>{t[n]=()=>{}}),t}const je=Td("logger",_A),sE=50,Ni="?",R_=/\(error: (.*)\)/,O_=/captureMessage|captureException/;function uE(...e){const t=e.sort((n,i)=>n[0]-i[0]).map(n=>n[1]);return(n,i=0,o=0)=>{const s=[],c=n.split(`
50
+ `);for(let d=i;d<c.length;d++){const m=c[d];if(m.length>1024)continue;const h=R_.test(m)?m.replace(R_,"$1"):m;if(!h.match(/\S*Error: /)){for(const y of t){const g=y(h);if(g){s.push(g);break}}if(s.length>=sE+o)break}}return SA(s.slice(o))}}function EA(e){return Array.isArray(e)?uE(...e):e}function SA(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(mc(t).function||"")&&t.pop(),t.reverse(),O_.test(mc(t).function||"")&&(t.pop(),O_.test(mc(t).function||"")&&t.pop()),t.slice(0,sE).map(n=>({...n,filename:n.filename||mc(t).filename,function:n.function||Ni}))}function mc(e){return e[e.length-1]||{}}const Sp="<anonymous>";function Wa(e){try{return!e||typeof e!="function"?Sp:e.name||Sp}catch{return Sp}}function k_(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(i=>{i.stacktrace.frames&&n.push(...i.stacktrace.frames)}),n}catch{return}}}const Ic={},B_={};function Gi(e,t){Ic[e]=Ic[e]||[],Ic[e].push(t)}function Zi(e,t){if(!B_[e]){B_[e]=!0;try{t()}catch(n){Hi&&je.error(`Error while instrumenting ${e}`,n)}}}function yr(e,t){const n=e&&Ic[e];if(n)for(const i of n)try{i(t)}catch(o){Hi&&je.error(`Error while triggering instrumentation handler.
51
51
  Type: ${e}
52
52
  Name: ${Wa(i)}
53
- Error:`,o)}}let Dp=null;function DA(e){const t="error";Gi(t,e),Zi(t,$A)}function $A(){Dp=ut.onerror,ut.onerror=function(e,t,n,i,o){return yr("error",{column:i,error:o,line:n,msg:e,url:t}),Dp?Dp.apply(this,arguments):!1},ut.onerror.__SENTRY_INSTRUMENTED__=!0}let $p=null;function xA(e){const t="unhandledrejection";Gi(t,e),Zi(t,CA)}function CA(){$p=ut.onunhandledrejection,ut.onunhandledrejection=function(e){return yr("unhandledrejection",e),$p?$p.apply(this,arguments):!0},ut.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Nd(){return $0(ut),ut}function $0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ga,t[Ga]=t[Ga]||{}}const cE=Object.prototype.toString;function Md(e){switch(cE.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Mi(e,Error)}}function sl(e,t){return cE.call(e)===`[object ${t}]`}function dE(e){return sl(e,"ErrorEvent")}function L_(e){return sl(e,"DOMError")}function AA(e){return sl(e,"DOMException")}function aa(e){return sl(e,"String")}function x0(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function C0(e){return e===null||x0(e)||typeof e!="object"&&typeof e!="function"}function el(e){return sl(e,"Object")}function Rd(e){return typeof Event<"u"&&Mi(e,Event)}function wA(e){return typeof Element<"u"&&Mi(e,Element)}function TA(e){return sl(e,"RegExp")}function Od(e){return!!(e&&e.then&&typeof e.then=="function")}function NA(e){return el(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Mi(e,t){try{return e instanceof t}catch{return!1}}function fE(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const A0=ut,MA=80;function mE(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,o=[];let u=0,c=0;const d=" > ",m=d.length;let h;const y=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||MA;for(;n&&u++<i&&(h=RA(n,y),!(h==="html"||u>1&&c+o.length*m+h.length>=g));)o.push(h),c+=h.length,n=n.parentNode;return o.reverse().join(d)}catch{return"<unknown>"}}function RA(e,t){const n=e,i=[];if(!n||!n.tagName)return"";if(A0.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o&&o.length)o.forEach(c=>{i.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const c=n.className;if(c&&aa(c)){const d=c.split(/\s+/);for(const m of d)i.push(`.${m}`)}}const u=["aria-label","type","name","title","alt"];for(const c of u){const d=n.getAttribute(c);d&&i.push(`[${c}="${d}"]`)}return i.join("")}function OA(){try{return A0.document.location.href}catch{return""}}function kA(e){if(!A0.HTMLElement)return null;let t=e;const n=5;for(let i=0;i<n;i++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Go(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function P_(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const o=e[i];try{fE(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function BA(e,t,n=!1){return aa(e)?TA(t)?t.test(e):aa(t)?n?e===t:e.includes(t):!1:!1}function kd(e,t=[],n=!1){return t.some(i=>BA(e,i,n))}function zn(e,t,n){if(!(t in e))return;const i=e[t],o=n(i);typeof o=="function"&&pE(o,i);try{e[t]=o}catch{Hi&&je.log(`Failed to replace method "${t}" in object`,e)}}function Ri(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Hi&&je.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function pE(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ri(e,"__sentry_original__",t)}catch{}}function w0(e){return e.__sentry_original__}function hE(e){if(Md(e))return{message:e.message,name:e.name,stack:e.stack,...F_(e)};if(Rd(e)){const t={type:e.type,target:I_(e.target),currentTarget:I_(e.currentTarget),...F_(e)};return typeof CustomEvent<"u"&&Mi(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function I_(e){try{return wA(e)?mE(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function F_(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function LA(e,t=40){const n=Object.keys(hE(e));n.sort();const i=n[0];if(!i)return"[object has no keys]";if(i.length>=t)return Go(i,t);for(let o=n.length;o>0;o--){const u=n.slice(0,o).join(", ");if(!(u.length>t))return o===n.length?u:Go(u,t)}return""}function ir(e){return gh(e,new Map)}function gh(e,t){if(PA(e)){const n=t.get(e);if(n!==void 0)return n;const i={};t.set(e,i);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(i[o]=gh(e[o],t));return i}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const i=[];return t.set(e,i),e.forEach(o=>{i.push(gh(o,t))}),i}return e}function PA(e){if(!el(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const yE=1e3;function ju(){return Date.now()/yE}function IA(){const{performance:e}=ut;if(!e||!e.now)return ju;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/yE}const ia=IA();(()=>{const{performance:e}=ut;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,u=o<t,c=e.timing&&e.timing.navigationStart,m=typeof c=="number"?Math.abs(c+n-i):t,h=m<t;return u||h?o<=m?e.timeOrigin:c:i})();function lr(){const e=ut,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const i=new Uint8Array(1);return t.getRandomValues(i),i[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,i=>(i^(n()&15)>>i/4).toString(16))}function gE(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Pa(e){const{message:t,event_id:n}=e;if(t)return t;const i=gE(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function bh(e,t,n){const i=e.exception=e.exception||{},o=i.values=i.values||[],u=o[0]=o[0]||{};u.value||(u.value=t||""),u.type||(u.type="Error")}function tl(e,t){const n=gE(e);if(!n)return;const i={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...i,...o,...t},t&&"data"in t){const u={...o&&o.data,...t.data};n.mechanism.data=u}}function j_(e){if(FA(e))return!0;try{Ri(e,"__sentry_captured__",!0)}catch{}return!1}function FA(e){try{return e.__sentry_captured__}catch{}}var Wr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const i=2;e[e.REJECTED=i]="REJECTED"})(Wr||(Wr={}));function Oi(e){return new rr(t=>{t(e)})}function td(e){return new rr((t,n)=>{n(e)})}class rr{constructor(t){rr.prototype.__init.call(this),rr.prototype.__init2.call(this),rr.prototype.__init3.call(this),rr.prototype.__init4.call(this),this._state=Wr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new rr((i,o)=>{this._handlers.push([!1,u=>{if(!t)i(u);else try{i(t(u))}catch(c){o(c)}},u=>{if(!n)o(u);else try{i(n(u))}catch(c){o(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new rr((n,i)=>{let o,u;return this.then(c=>{u=!1,o=c,t&&t()},c=>{u=!0,o=c,t&&t()}).then(()=>{if(u){i(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(Wr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Wr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Wr.PENDING){if(Od(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Wr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Wr.RESOLVED&&n[1](this._value),this._state===Wr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function jA(e){const t=ia(),n={sid:lr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>UA(n)};return e&&nl(n,e),n}function nl(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ia(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:lr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function zA(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),nl(e,n)}function UA(e){return ir({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function z_(){return lr()}function vh(){return lr().substring(16)}function Bd(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const i={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=Bd(i[o],t[o],n-1));return i}const _h="_sentrySpan";function U_(e,t){t?Ri(e,_h,t):delete e[_h]}function H_(e){return e[_h]}const HA=100;class T0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:z_(),spanId:vh()}}clone(){const t=new T0;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,U_(t,H_(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&nl(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[i,o]=n instanceof Qa?[n.getScopeData(),n.getRequestSession()]:el(n)?[t,t.requestSession]:[],{tags:u,extra:c,user:d,contexts:m,level:h,fingerprint:y=[],propagationContext:g}=i||{};return this._tags={...this._tags,...u},this._extra={...this._extra,...c},this._contexts={...this._contexts,...m},d&&Object.keys(d).length&&(this._user=d),h&&(this._level=h),y.length&&(this._fingerprint=y),g&&(this._propagationContext=g),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,U_(this,void 0),this._attachments=[],this.setPropagationContext({traceId:z_()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const i=typeof n=="number"?n:HA;if(i<=0)return this;const o={timestamp:ju(),...t};return this._breadcrumbs.push(o),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:H_(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Bd(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:vh(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const i=n&&n.event_id?n.event_id:lr();if(!this._client)return je.warn("No client configured on scope - will not capture exception!"),i;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:i},this),i}captureMessage(t,n,i){const o=i&&i.event_id?i.event_id:lr();if(!this._client)return je.warn("No client configured on scope - will not capture message!"),o;const u=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:u,...i,event_id:o},this),o}captureEvent(t,n){const i=n&&n.event_id?n.event_id:lr();return this._client?(this._client.captureEvent(t,{...n,event_id:i},this),i):(je.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Qa=T0;function VA(){return Td("defaultCurrentScope",()=>new Qa)}function GA(){return Td("defaultIsolationScope",()=>new Qa)}class ZA{constructor(t,n){let i;t?i=t:i=new Qa;let o;n?o=n:o=new Qa,this._stack=[{scope:i}],this._isolationScope=o}withScope(t){const n=this._pushScope();let i;try{i=t(n)}catch(o){throw this._popScope(),o}return Od(i)?i.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function rl(){const e=Nd(),t=$0(e);return t.stack=t.stack||new ZA(VA(),GA())}function YA(e){return rl().withScope(e)}function qA(e,t){const n=rl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function V_(e){return rl().withScope(()=>e(rl().getIsolationScope()))}function KA(){return{withIsolationScope:V_,withScope:YA,withSetScope:qA,withSetIsolationScope:(e,t)=>V_(t),getCurrentScope:()=>rl().getScope(),getIsolationScope:()=>rl().getIsolationScope()}}function N0(e){const t=$0(e);return t.acs?t.acs:KA()}function wr(){const e=Nd();return N0(e).getCurrentScope()}function Yi(){const e=Nd();return N0(e).getIsolationScope()}function WA(){return Td("globalScope",()=>new Qa)}function M0(...e){const t=Nd(),n=N0(t);if(e.length===2){const[i,o]=e;return i?n.withSetScope(i,o):n.withScope(o)}return n.withScope(e[0])}function Yt(){return wr().getClient()}function QA(e){const t=e.getPropagationContext(),{traceId:n,spanId:i,parentSpanId:o}=t;return ir({trace_id:n,span_id:i,parent_span_id:o})}const JA="_sentryMetrics";function XA(e){const t=e[JA];if(!t)return;const n={};for(const[,[i,o]]of t)(n[i]||(n[i]=[])).push(ir(o));return n}const ew="sentry.source",tw="sentry.sample_rate",nw="sentry.op",rw="sentry.origin",aw=0,iw=1,ow="sentry-",lw=/^sentry-/;function uw(e){const t=sw(e);if(!t)return;const n=Object.entries(t).reduce((i,[o,u])=>{if(o.match(lw)){const c=o.slice(ow.length);i[c]=u}return i},{});if(Object.keys(n).length>0)return n}function sw(e){if(!(!e||!aa(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const i=G_(n);return Object.entries(i).forEach(([o,u])=>{t[o]=u}),t},{}):G_(e)}function G_(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,i])=>(n&&i&&(t[n]=i),t),{})}const cw=1;let Z_=!1;function dw(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext(),o=i?t:R0(e).parent_span_id,u=i?vh():t;return ir({parent_span_id:o,span_id:u,trace_id:n})}function Y_(e){return typeof e=="number"?q_(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?q_(e.getTime()):ia()}function q_(e){return e>9999999999?e/1e3:e}function R0(e){if(mw(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(fw(e)){const{attributes:i,startTime:o,name:u,endTime:c,parentSpanId:d,status:m}=e;return ir({span_id:t,trace_id:n,data:i,description:u,parent_span_id:d,start_timestamp:Y_(o),timestamp:Y_(c)||void 0,status:hw(m),op:i[nw],origin:i[rw],_metrics_summary:XA(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function fw(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function mw(e){return typeof e.getSpanJSON=="function"}function pw(e){const{traceFlags:t}=e.spanContext();return t===cw}function hw(e){if(!(!e||e.code===aw))return e.code===iw?"ok":e.message||"unknown_error"}const yw="_sentryRootSpan";function bE(e){return e[yw]||e}function gw(){Z_||(Vi(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Z_=!0)}function bw(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Yt(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const O0="production",vw="_frozenDsc";function vE(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},o=ir({environment:n.environment||O0,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",o),o}function _w(e,t){const n=t.getPropagationContext();return n.dsc||vE(n.traceId,e)}function Ew(e){const t=Yt();if(!t)return{};const n=bE(e),i=n[vw];if(i)return i;const o=n.spanContext().traceState,u=o&&o.get("sentry.dsc"),c=u&&uw(u);if(c)return c;const d=vE(e.spanContext().traceId,t),m=R0(n),h=m.data||{},y=h[tw];y!=null&&(d.sample_rate=`${y}`);const g=h[ew],E=m.description;return g!=="url"&&E&&(d.transaction=E),bw()&&(d.sampled=String(pw(n))),t.emit("createDsc",d,n),d}function Sw(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){bt&&je.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const Dw=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $w(e){return e==="http"||e==="https"}function zu(e,t=!1){const{host:n,path:i,pass:o,port:u,projectId:c,protocol:d,publicKey:m}=e;return`${d}://${m}${t&&o?`:${o}`:""}@${n}${u?`:${u}`:""}/${i&&`${i}/`}${c}`}function xw(e){const t=Dw.exec(e);if(!t){Vi(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,i,o="",u="",c="",d=""]=t.slice(1);let m="",h=d;const y=h.split("/");if(y.length>1&&(m=y.slice(0,-1).join("/"),h=y.pop()),h){const g=h.match(/^\d+/);g&&(h=g[0])}return _E({host:u,pass:o,path:m,projectId:h,port:c,protocol:n,publicKey:i})}function _E(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Cw(e){if(!Hi)return!0;const{port:t,projectId:n,protocol:i}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(je.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?$w(i)?t&&isNaN(parseInt(t,10))?(je.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(je.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(je.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function EE(e){const t=typeof e=="string"?xw(e):_E(e);if(!(!t||!Cw(t)))return t}function Aw(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let u=0;u<t.length;u++)if(t[u]===o)return!0;return t.push(o),!1}function i(o){if(e)t.delete(o);else for(let u=0;u<t.length;u++)if(t[u]===o){t.splice(u,1);break}}return[n,i]}function Qr(e,t=100,n=1/0){try{return Eh("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function SE(e,t=3,n=100*1024){const i=Qr(e,t);return Mw(i)>n?SE(e,t-1,n):i}function Eh(e,t,n=1/0,i=1/0,o=Aw()){const[u,c]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=ww(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const m=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(m===0)return d.replace("object ","");if(u(t))return"[Circular ~]";const h=t;if(h&&typeof h.toJSON=="function")try{const S=h.toJSON();return Eh("",S,m-1,i,o)}catch{}const y=Array.isArray(t)?[]:{};let g=0;const E=hE(t);for(const S in E){if(!Object.prototype.hasOwnProperty.call(E,S))continue;if(g>=i){y[S]="[MaxProperties ~]";break}const D=E[S];y[S]=Eh(S,D,m-1,i,o),g++}return c(t),y}function ww(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(fE(t))return"[VueViewModel]";if(NA(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Wa(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Tw(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Tw(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Nw(e){return~-encodeURI(e).split(/%..|./).length}function Mw(e){return Nw(JSON.stringify(e))}function Uu(e,t=[]){return[e,t]}function Rw(e,t){const[n,i]=e;return[n,[...i,t]]}function K_(e,t){const n=e[1];for(const i of n){const o=i[0].type;if(t(i,o))return!0}return!1}function Sh(e){return ut.__SENTRY__&&ut.__SENTRY__.encodePolyfill?ut.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Ow(e){const[t,n]=e;let i=JSON.stringify(t);function o(u){typeof i=="string"?i=typeof u=="string"?i+u:[Sh(i),u]:i.push(typeof u=="string"?Sh(u):u)}for(const u of n){const[c,d]=u;if(o(`
53
+ Error:`,o)}}let Dp=null;function DA(e){const t="error";Gi(t,e),Zi(t,$A)}function $A(){Dp=st.onerror,st.onerror=function(e,t,n,i,o){return yr("error",{column:i,error:o,line:n,msg:e,url:t}),Dp?Dp.apply(this,arguments):!1},st.onerror.__SENTRY_INSTRUMENTED__=!0}let $p=null;function xA(e){const t="unhandledrejection";Gi(t,e),Zi(t,CA)}function CA(){$p=st.onunhandledrejection,st.onunhandledrejection=function(e){return yr("unhandledrejection",e),$p?$p.apply(this,arguments):!0},st.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Nd(){return $0(st),st}function $0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ga,t[Ga]=t[Ga]||{}}const cE=Object.prototype.toString;function Md(e){switch(cE.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Mi(e,Error)}}function ul(e,t){return cE.call(e)===`[object ${t}]`}function dE(e){return ul(e,"ErrorEvent")}function L_(e){return ul(e,"DOMError")}function AA(e){return ul(e,"DOMException")}function aa(e){return ul(e,"String")}function x0(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function C0(e){return e===null||x0(e)||typeof e!="object"&&typeof e!="function"}function el(e){return ul(e,"Object")}function Rd(e){return typeof Event<"u"&&Mi(e,Event)}function wA(e){return typeof Element<"u"&&Mi(e,Element)}function TA(e){return ul(e,"RegExp")}function Od(e){return!!(e&&e.then&&typeof e.then=="function")}function NA(e){return el(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Mi(e,t){try{return e instanceof t}catch{return!1}}function fE(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const A0=st,MA=80;function mE(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,o=[];let s=0,c=0;const d=" > ",m=d.length;let h;const y=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||MA;for(;n&&s++<i&&(h=RA(n,y),!(h==="html"||s>1&&c+o.length*m+h.length>=g));)o.push(h),c+=h.length,n=n.parentNode;return o.reverse().join(d)}catch{return"<unknown>"}}function RA(e,t){const n=e,i=[];if(!n||!n.tagName)return"";if(A0.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o&&o.length)o.forEach(c=>{i.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const c=n.className;if(c&&aa(c)){const d=c.split(/\s+/);for(const m of d)i.push(`.${m}`)}}const s=["aria-label","type","name","title","alt"];for(const c of s){const d=n.getAttribute(c);d&&i.push(`[${c}="${d}"]`)}return i.join("")}function OA(){try{return A0.document.location.href}catch{return""}}function kA(e){if(!A0.HTMLElement)return null;let t=e;const n=5;for(let i=0;i<n;i++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Go(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function P_(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const o=e[i];try{fE(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function BA(e,t,n=!1){return aa(e)?TA(t)?t.test(e):aa(t)?n?e===t:e.includes(t):!1:!1}function kd(e,t=[],n=!1){return t.some(i=>BA(e,i,n))}function zn(e,t,n){if(!(t in e))return;const i=e[t],o=n(i);typeof o=="function"&&pE(o,i);try{e[t]=o}catch{Hi&&je.log(`Failed to replace method "${t}" in object`,e)}}function Ri(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Hi&&je.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function pE(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ri(e,"__sentry_original__",t)}catch{}}function w0(e){return e.__sentry_original__}function hE(e){if(Md(e))return{message:e.message,name:e.name,stack:e.stack,...F_(e)};if(Rd(e)){const t={type:e.type,target:I_(e.target),currentTarget:I_(e.currentTarget),...F_(e)};return typeof CustomEvent<"u"&&Mi(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function I_(e){try{return wA(e)?mE(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function F_(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function LA(e,t=40){const n=Object.keys(hE(e));n.sort();const i=n[0];if(!i)return"[object has no keys]";if(i.length>=t)return Go(i,t);for(let o=n.length;o>0;o--){const s=n.slice(0,o).join(", ");if(!(s.length>t))return o===n.length?s:Go(s,t)}return""}function ir(e){return gh(e,new Map)}function gh(e,t){if(PA(e)){const n=t.get(e);if(n!==void 0)return n;const i={};t.set(e,i);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(i[o]=gh(e[o],t));return i}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const i=[];return t.set(e,i),e.forEach(o=>{i.push(gh(o,t))}),i}return e}function PA(e){if(!el(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const yE=1e3;function js(){return Date.now()/yE}function IA(){const{performance:e}=st;if(!e||!e.now)return js;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/yE}const ia=IA();(()=>{const{performance:e}=st;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,s=o<t,c=e.timing&&e.timing.navigationStart,m=typeof c=="number"?Math.abs(c+n-i):t,h=m<t;return s||h?o<=m?e.timeOrigin:c:i})();function lr(){const e=st,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const i=new Uint8Array(1);return t.getRandomValues(i),i[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,i=>(i^(n()&15)>>i/4).toString(16))}function gE(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Pa(e){const{message:t,event_id:n}=e;if(t)return t;const i=gE(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function bh(e,t,n){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function tl(e,t){const n=gE(e);if(!n)return;const i={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...i,...o,...t},t&&"data"in t){const s={...o&&o.data,...t.data};n.mechanism.data=s}}function j_(e){if(FA(e))return!0;try{Ri(e,"__sentry_captured__",!0)}catch{}return!1}function FA(e){try{return e.__sentry_captured__}catch{}}var Wr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const i=2;e[e.REJECTED=i]="REJECTED"})(Wr||(Wr={}));function Oi(e){return new rr(t=>{t(e)})}function td(e){return new rr((t,n)=>{n(e)})}class rr{constructor(t){rr.prototype.__init.call(this),rr.prototype.__init2.call(this),rr.prototype.__init3.call(this),rr.prototype.__init4.call(this),this._state=Wr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new rr((i,o)=>{this._handlers.push([!1,s=>{if(!t)i(s);else try{i(t(s))}catch(c){o(c)}},s=>{if(!n)o(s);else try{i(n(s))}catch(c){o(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new rr((n,i)=>{let o,s;return this.then(c=>{s=!1,o=c,t&&t()},c=>{s=!0,o=c,t&&t()}).then(()=>{if(s){i(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(Wr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Wr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Wr.PENDING){if(Od(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Wr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Wr.RESOLVED&&n[1](this._value),this._state===Wr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function jA(e){const t=ia(),n={sid:lr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>UA(n)};return e&&nl(n,e),n}function nl(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ia(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:lr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function zA(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),nl(e,n)}function UA(e){return ir({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function z_(){return lr()}function vh(){return lr().substring(16)}function Bd(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const i={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=Bd(i[o],t[o],n-1));return i}const _h="_sentrySpan";function U_(e,t){t?Ri(e,_h,t):delete e[_h]}function H_(e){return e[_h]}const HA=100;class T0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:z_(),spanId:vh()}}clone(){const t=new T0;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,U_(t,H_(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&nl(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[i,o]=n instanceof Qa?[n.getScopeData(),n.getRequestSession()]:el(n)?[t,t.requestSession]:[],{tags:s,extra:c,user:d,contexts:m,level:h,fingerprint:y=[],propagationContext:g}=i||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...c},this._contexts={...this._contexts,...m},d&&Object.keys(d).length&&(this._user=d),h&&(this._level=h),y.length&&(this._fingerprint=y),g&&(this._propagationContext=g),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,U_(this,void 0),this._attachments=[],this.setPropagationContext({traceId:z_()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const i=typeof n=="number"?n:HA;if(i<=0)return this;const o={timestamp:js(),...t};return this._breadcrumbs.push(o),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:H_(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Bd(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:vh(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const i=n&&n.event_id?n.event_id:lr();if(!this._client)return je.warn("No client configured on scope - will not capture exception!"),i;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:i},this),i}captureMessage(t,n,i){const o=i&&i.event_id?i.event_id:lr();if(!this._client)return je.warn("No client configured on scope - will not capture message!"),o;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...i,event_id:o},this),o}captureEvent(t,n){const i=n&&n.event_id?n.event_id:lr();return this._client?(this._client.captureEvent(t,{...n,event_id:i},this),i):(je.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Qa=T0;function VA(){return Td("defaultCurrentScope",()=>new Qa)}function GA(){return Td("defaultIsolationScope",()=>new Qa)}class ZA{constructor(t,n){let i;t?i=t:i=new Qa;let o;n?o=n:o=new Qa,this._stack=[{scope:i}],this._isolationScope=o}withScope(t){const n=this._pushScope();let i;try{i=t(n)}catch(o){throw this._popScope(),o}return Od(i)?i.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function rl(){const e=Nd(),t=$0(e);return t.stack=t.stack||new ZA(VA(),GA())}function YA(e){return rl().withScope(e)}function qA(e,t){const n=rl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function V_(e){return rl().withScope(()=>e(rl().getIsolationScope()))}function KA(){return{withIsolationScope:V_,withScope:YA,withSetScope:qA,withSetIsolationScope:(e,t)=>V_(t),getCurrentScope:()=>rl().getScope(),getIsolationScope:()=>rl().getIsolationScope()}}function N0(e){const t=$0(e);return t.acs?t.acs:KA()}function wr(){const e=Nd();return N0(e).getCurrentScope()}function Yi(){const e=Nd();return N0(e).getIsolationScope()}function WA(){return Td("globalScope",()=>new Qa)}function M0(...e){const t=Nd(),n=N0(t);if(e.length===2){const[i,o]=e;return i?n.withSetScope(i,o):n.withScope(o)}return n.withScope(e[0])}function Yt(){return wr().getClient()}function QA(e){const t=e.getPropagationContext(),{traceId:n,spanId:i,parentSpanId:o}=t;return ir({trace_id:n,span_id:i,parent_span_id:o})}const JA="_sentryMetrics";function XA(e){const t=e[JA];if(!t)return;const n={};for(const[,[i,o]]of t)(n[i]||(n[i]=[])).push(ir(o));return n}const ew="sentry.source",tw="sentry.sample_rate",nw="sentry.op",rw="sentry.origin",aw=0,iw=1,ow="sentry-",lw=/^sentry-/;function sw(e){const t=uw(e);if(!t)return;const n=Object.entries(t).reduce((i,[o,s])=>{if(o.match(lw)){const c=o.slice(ow.length);i[c]=s}return i},{});if(Object.keys(n).length>0)return n}function uw(e){if(!(!e||!aa(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const i=G_(n);return Object.entries(i).forEach(([o,s])=>{t[o]=s}),t},{}):G_(e)}function G_(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,i])=>(n&&i&&(t[n]=i),t),{})}const cw=1;let Z_=!1;function dw(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext(),o=i?t:R0(e).parent_span_id,s=i?vh():t;return ir({parent_span_id:o,span_id:s,trace_id:n})}function Y_(e){return typeof e=="number"?q_(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?q_(e.getTime()):ia()}function q_(e){return e>9999999999?e/1e3:e}function R0(e){if(mw(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(fw(e)){const{attributes:i,startTime:o,name:s,endTime:c,parentSpanId:d,status:m}=e;return ir({span_id:t,trace_id:n,data:i,description:s,parent_span_id:d,start_timestamp:Y_(o),timestamp:Y_(c)||void 0,status:hw(m),op:i[nw],origin:i[rw],_metrics_summary:XA(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function fw(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function mw(e){return typeof e.getSpanJSON=="function"}function pw(e){const{traceFlags:t}=e.spanContext();return t===cw}function hw(e){if(!(!e||e.code===aw))return e.code===iw?"ok":e.message||"unknown_error"}const yw="_sentryRootSpan";function bE(e){return e[yw]||e}function gw(){Z_||(Vi(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Z_=!0)}function bw(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Yt(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const O0="production",vw="_frozenDsc";function vE(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},o=ir({environment:n.environment||O0,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",o),o}function _w(e,t){const n=t.getPropagationContext();return n.dsc||vE(n.traceId,e)}function Ew(e){const t=Yt();if(!t)return{};const n=bE(e),i=n[vw];if(i)return i;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),c=s&&sw(s);if(c)return c;const d=vE(e.spanContext().traceId,t),m=R0(n),h=m.data||{},y=h[tw];y!=null&&(d.sample_rate=`${y}`);const g=h[ew],E=m.description;return g!=="url"&&E&&(d.transaction=E),bw()&&(d.sampled=String(pw(n))),t.emit("createDsc",d,n),d}function Sw(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){bt&&je.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const Dw=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $w(e){return e==="http"||e==="https"}function zs(e,t=!1){const{host:n,path:i,pass:o,port:s,projectId:c,protocol:d,publicKey:m}=e;return`${d}://${m}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${i&&`${i}/`}${c}`}function xw(e){const t=Dw.exec(e);if(!t){Vi(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,i,o="",s="",c="",d=""]=t.slice(1);let m="",h=d;const y=h.split("/");if(y.length>1&&(m=y.slice(0,-1).join("/"),h=y.pop()),h){const g=h.match(/^\d+/);g&&(h=g[0])}return _E({host:s,pass:o,path:m,projectId:h,port:c,protocol:n,publicKey:i})}function _E(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Cw(e){if(!Hi)return!0;const{port:t,projectId:n,protocol:i}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(je.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?$w(i)?t&&isNaN(parseInt(t,10))?(je.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(je.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(je.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function EE(e){const t=typeof e=="string"?xw(e):_E(e);if(!(!t||!Cw(t)))return t}function Aw(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let s=0;s<t.length;s++)if(t[s]===o)return!0;return t.push(o),!1}function i(o){if(e)t.delete(o);else for(let s=0;s<t.length;s++)if(t[s]===o){t.splice(s,1);break}}return[n,i]}function Qr(e,t=100,n=1/0){try{return Eh("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function SE(e,t=3,n=100*1024){const i=Qr(e,t);return Mw(i)>n?SE(e,t-1,n):i}function Eh(e,t,n=1/0,i=1/0,o=Aw()){const[s,c]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=ww(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const m=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(m===0)return d.replace("object ","");if(s(t))return"[Circular ~]";const h=t;if(h&&typeof h.toJSON=="function")try{const S=h.toJSON();return Eh("",S,m-1,i,o)}catch{}const y=Array.isArray(t)?[]:{};let g=0;const E=hE(t);for(const S in E){if(!Object.prototype.hasOwnProperty.call(E,S))continue;if(g>=i){y[S]="[MaxProperties ~]";break}const D=E[S];y[S]=Eh(S,D,m-1,i,o),g++}return c(t),y}function ww(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(fE(t))return"[VueViewModel]";if(NA(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Wa(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Tw(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Tw(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Nw(e){return~-encodeURI(e).split(/%..|./).length}function Mw(e){return Nw(JSON.stringify(e))}function Us(e,t=[]){return[e,t]}function Rw(e,t){const[n,i]=e;return[n,[...i,t]]}function K_(e,t){const n=e[1];for(const i of n){const o=i[0].type;if(t(i,o))return!0}return!1}function Sh(e){return st.__SENTRY__&&st.__SENTRY__.encodePolyfill?st.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Ow(e){const[t,n]=e;let i=JSON.stringify(t);function o(s){typeof i=="string"?i=typeof s=="string"?i+s:[Sh(i),s]:i.push(typeof s=="string"?Sh(s):s)}for(const s of n){const[c,d]=s;if(o(`
54
54
  ${JSON.stringify(c)}
55
- `),typeof d=="string"||d instanceof Uint8Array)o(d);else{let m;try{m=JSON.stringify(d)}catch{m=JSON.stringify(Qr(d))}o(m)}}return typeof i=="string"?i:kw(i)}function kw(e){const t=e.reduce((o,u)=>o+u.length,0),n=new Uint8Array(t);let i=0;for(const o of e)n.set(o,i),i+=o.length;return n}function Bw(e){const t=typeof e.data=="string"?Sh(e.data):e.data;return[ir({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Lw={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function W_(e){return Lw[e]}function DE(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Pw(e,t,n,i){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:zu(i)},...o&&{trace:ir({...o})}}}function Iw(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Fw(e,t,n,i){const o=DE(n),u={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!i&&t&&{dsn:zu(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Uu(u,[c])}function jw(e,t,n,i){const o=DE(n),u=e.type&&e.type!=="replay_event"?e.type:"event";Iw(e,n&&n.sdk);const c=Pw(e,o,i,t);return delete e.sdkProcessingMetadata,Uu(c,[[{type:u},e]])}function Dh(e,t,n,i=0){return new rr((o,u)=>{const c=e[i];if(t===null||typeof c!="function")o(t);else{const d=c({...t},n);bt&&c.id&&d===null&&je.log(`Event processor "${c.id}" dropped event`),Od(d)?d.then(m=>Dh(e,m,n,i+1).then(o)).then(null,u):Dh(e,d,n,i+1).then(o).then(null,u)}})}let pc,Q_,hc;function zw(e){const t=ut._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return hc&&n.length===Q_||(Q_=n.length,hc=n.reduce((i,o)=>{pc||(pc={});const u=pc[o];if(u)i[u[0]]=u[1];else{const c=e(o);for(let d=c.length-1;d>=0;d--){const m=c[d],h=m&&m.filename,y=t[o];if(h&&y){i[h]=y,pc[o]=[h,y];break}}}return i},{})),hc}function Uw(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:u}=t;Hw(e,t),i&&Zw(e,i),Yw(e,n),Vw(e,o),Gw(e,u)}function J_(e,t){const{extra:n,tags:i,user:o,contexts:u,level:c,sdkProcessingMetadata:d,breadcrumbs:m,fingerprint:h,eventProcessors:y,attachments:g,propagationContext:E,transactionName:S,span:D}=t;yc(e,"extra",n),yc(e,"tags",i),yc(e,"user",o),yc(e,"contexts",u),e.sdkProcessingMetadata=Bd(e.sdkProcessingMetadata,d,2),c&&(e.level=c),S&&(e.transactionName=S),D&&(e.span=D),m.length&&(e.breadcrumbs=[...e.breadcrumbs,...m]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),y.length&&(e.eventProcessors=[...e.eventProcessors,...y]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...E}}function yc(e,t,n){e[t]=Bd(e[t],n,1)}function Hw(e,t){const{extra:n,tags:i,user:o,contexts:u,level:c,transactionName:d}=t,m=ir(n);m&&Object.keys(m).length&&(e.extra={...m,...e.extra});const h=ir(i);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const y=ir(o);y&&Object.keys(y).length&&(e.user={...y,...e.user});const g=ir(u);g&&Object.keys(g).length&&(e.contexts={...g,...e.contexts}),c&&(e.level=c),d&&e.type!=="transaction"&&(e.transaction=d)}function Vw(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Gw(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Zw(e,t){e.contexts={trace:dw(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ew(t),...e.sdkProcessingMetadata};const n=bE(t),i=R0(n).description;i&&!e.transaction&&e.type==="transaction"&&(e.transaction=i)}function Yw(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function qw(e,t,n,i,o,u){const{normalizeDepth:c=3,normalizeMaxBreadth:d=1e3}=e,m={...t,event_id:t.event_id||n.event_id||lr(),timestamp:t.timestamp||ju()},h=n.integrations||e.integrations.map(w=>w.name);Kw(m,e),Jw(m,h),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Ww(m,e.stackParser);const y=eT(i,n.captureContext);n.mechanism&&tl(m,n.mechanism);const g=o?o.getEventProcessors():[],E=WA().getScopeData();if(u){const w=u.getScopeData();J_(E,w)}if(y){const w=y.getScopeData();J_(E,w)}const S=[...n.attachments||[],...E.attachments];S.length&&(n.attachments=S),Uw(m,E);const D=[...g,...E.eventProcessors];return Dh(D,m,n).then(w=>(w&&Qw(w),typeof c=="number"&&c>0?Xw(w,c,d):w))}function Kw(e,t){const{environment:n,release:i,dist:o,maxValueLength:u=250}=t;e.environment=e.environment||n||O0,!e.release&&i&&(e.release=i),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Go(e.message,u));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=Go(c.value,u));const d=e.request;d&&d.url&&(d.url=Go(d.url,u))}function Ww(e,t){const n=zw(t);try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function Qw(e){const t={};try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([i,o])=>{n.push({type:"sourcemap",code_file:i,debug_id:o})})}function Jw(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Xw(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Qr(o.data,t,n)}}))},...e.user&&{user:Qr(e.user,t,n)},...e.contexts&&{contexts:Qr(e.contexts,t,n)},...e.extra&&{extra:Qr(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=Qr(e.contexts.trace.data,t,n))),e.spans&&(i.spans=e.spans.map(o=>({...o,...o.data&&{data:Qr(o.data,t,n)}}))),e.contexts&&e.contexts.flags&&i.contexts&&(i.contexts.flags=Qr(e.contexts.flags,3,n)),i}function eT(e,t){if(!t)return e;const n=e?e.clone():new Qa;return n.update(t),n}function tT(e){if(e)return nT(e)?{captureContext:e}:aT(e)?{captureContext:e}:e}function nT(e){return e instanceof Qa||typeof e=="function"}const rT=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function aT(e){return Object.keys(e).some(t=>rT.includes(t))}function Ld(e,t){return wr().captureException(e,tT(t))}function $E(e,t){return wr().captureEvent(e,t)}function iT(e,t){Yi().setContext(e,t)}function oT(){return Yi().lastEventId()}function X_(e){const t=Yt(),n=Yi(),i=wr(),{release:o,environment:u=O0}=t&&t.getOptions()||{},{userAgent:c}=ut.navigator||{},d=jA({release:o,environment:u,user:i.getUser()||n.getUser(),...c&&{userAgent:c},...e}),m=n.getSession();return m&&m.status==="ok"&&nl(m,{status:"exited"}),xE(),n.setSession(d),i.setSession(d),d}function xE(){const e=Yi(),t=wr(),n=t.getSession()||e.getSession();n&&zA(n),CE(),e.setSession(),t.setSession()}function CE(){const e=Yi(),t=wr(),n=Yt(),i=t.getSession()||e.getSession();i&&n&&n.captureSession(i)}function e4(e=!1){if(e){xE();return}CE()}const lT="7";function AE(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function uT(e){return`${AE(e)}${e.projectId}/envelope/`}function sT(e,t){const n={sentry_version:lT};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function cT(e,t,n){return t||`${uT(e)}?${sT(e,n)}`}function dT(e,t){const n=EE(e);if(!n)return"";const i=`${AE(n)}embed/error-page/`;let o=`dsn=${zu(n)}`;for(const u in t)if(u!=="dsn"&&u!=="onClose")if(u==="user"){const c=t.user;if(!c)continue;c.name&&(o+=`&name=${encodeURIComponent(c.name)}`),c.email&&(o+=`&email=${encodeURIComponent(c.email)}`)}else o+=`&${encodeURIComponent(u)}=${encodeURIComponent(t[u])}`;return`${i}?${o}`}const t4=[];function fT(e){const t={};return e.forEach(n=>{const{name:i}=n,o=t[i];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[i]=n)}),Object.values(t)}function mT(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(c=>{c.isDefaultInstance=!0});let i;if(Array.isArray(n))i=[...t,...n];else if(typeof n=="function"){const c=n(t);i=Array.isArray(c)?c:[c]}else i=t;const o=fT(i),u=o.findIndex(c=>c.name==="Debug");if(u>-1){const[c]=o.splice(u,1);o.push(c)}return o}function pT(e,t){const n={};return t.forEach(i=>{i&&wE(e,i,n)}),n}function n4(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function wE(e,t,n){if(n[t.name]){bt&&je.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,t4.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),t4.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const i=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,u)=>i(o,u,e))}if(typeof t.processEvent=="function"){const i=t.processEvent.bind(t),o=Object.assign((u,c)=>i(u,c,e),{id:t.name});e.addEventProcessor(o)}bt&&je.log(`Integration installed: ${t.name}`)}function hT(e){const t=Yt();if(!t){bt&&je.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function yT(e,t,n){const i=[{type:"client_report"},{timestamp:ju(),discarded_events:e}];return Uu(t?{dsn:t}:{},[i])}class hr extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const r4="Not capturing exception because it's already been captured.";class gT{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=EE(t.dsn):bt&&je.warn("No DSN provided, client will not send events."),this._dsn){const o=cT(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}const i=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in t&&t[o]==null);i&&Vi(()=>{console.warn(`[Sentry] Deprecation warning: \`${i}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,i){const o=lr();if(j_(t))return bt&&je.log(r4),o;const u={event_id:o,...n};return this._process(this.eventFromException(t,u).then(c=>this._captureEvent(c,u,i))),u.event_id}captureMessage(t,n,i,o){const u={event_id:lr(),...i},c=x0(t)?t:String(t),d=C0(t)?this.eventFromMessage(c,n,u):this.eventFromException(t,u);return this._process(d.then(m=>this._captureEvent(m,u,o))),u.event_id}captureEvent(t,n,i){const o=lr();if(n&&n.originalException&&j_(n.originalException))return bt&&je.log(r4),o;const u={event_id:o,...n},d=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,u,d||i)),u.event_id}captureSession(t){typeof t.release!="string"?bt&&je.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),nl(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(i=>n.flush(t).then(o=>i&&o))):Oi(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];wE(this,t,this._integrations),n||n4(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let i=jw(t,this._dsn,this._options._metadata,this._options.tunnel);for(const u of n.attachments||[])i=Rw(i,Bw(u));const o=this.sendEnvelope(i);o&&o.then(u=>this.emit("afterSendEvent",t,u),null)}sendSession(t){const n=Fw(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,i){if(this._options.sendClientReports){const o=typeof i=="number"?i:1,u=`${t}:${n}`;bt&&je.log(`Recording outcome: "${u}"${o>1?` (${o} times)`:""}`),this._outcomes[u]=(this._outcomes[u]||0)+o}}on(t,n){const i=this._hooks[t]=this._hooks[t]||[];return i.push(n),()=>{const o=i.indexOf(n);o>-1&&i.splice(o,1)}}emit(t,...n){const i=this._hooks[t];i&&i.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(bt&&je.error("Error while sending envelope:",n),n)):(bt&&je.error("Transport disabled"),Oi({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=pT(this,t),n4(this,t)}_updateSessionFromEvent(t,n){let i=n.level==="fatal",o=!1;const u=n.exception&&n.exception.values;if(u){o=!0;for(const m of u){const h=m.mechanism;if(h&&h.handled===!1){i=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&i)&&(nl(t,{...i&&{status:"crashed"},errors:t.errors||Number(o||i)}),this.captureSession(t))}_isClientDoneProcessing(t){return new rr(n=>{let i=0;const o=1,u=setInterval(()=>{this._numProcessing==0?(clearInterval(u),n(!0)):(i+=o,t&&i>=t&&(clearInterval(u),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,i=wr(),o=Yi()){const u=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),qw(u,t,n,i,this,o).then(d=>{if(d===null)return d;d.contexts={trace:QA(i),...d.contexts};const m=_w(this,i);return d.sdkProcessingMetadata={dynamicSamplingContext:m,...d.sdkProcessingMetadata},d})}_captureEvent(t,n={},i){return this._processEvent(t,n,i).then(o=>o.event_id,o=>{bt&&(o instanceof hr&&o.logLevel==="log"?je.log(o.message):je.warn(o))})}_processEvent(t,n,i){const o=this.getOptions(),{sampleRate:u}=o,c=NE(t),d=TE(t),m=t.type||"error",h=`before send for type \`${m}\``,y=typeof u>"u"?void 0:Sw(u);if(d&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error",t),td(new hr(`Discarding event because it's not included in the random sample (sampling rate = ${u})`,"log"));const g=m==="replay_event"?"replay":m,S=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,i,S).then(D=>{if(D===null)throw this.recordDroppedEvent("event_processor",g,t),new hr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return D;const w=vT(this,o,D,n);return bT(w,h)}).then(D=>{if(D===null){if(this.recordDroppedEvent("before_send",g,t),c){const I=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",I)}throw new hr(`${h} returned \`null\`, will not send event.`,"log")}const x=i&&i.getSession();if(!c&&x&&this._updateSessionFromEvent(x,D),c){const R=D.sdkProcessingMetadata&&D.sdkProcessingMetadata.spanCountBeforeProcessing||0,I=D.spans?D.spans.length:0,A=R-I;A>0&&this.recordDroppedEvent("before_send","span",A)}const w=D.transaction_info;if(c&&w&&D.transaction!==t.transaction){const R="custom";D.transaction_info={...w,source:R}}return this.sendEvent(D,n),D}).then(null,D=>{throw D instanceof hr?D:(this.captureException(D,{data:{__sentry__:!0},originalException:D}),new hr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
56
- Reason: ${D}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,i])=>{const[o,u]=n.split(":");return{reason:o,category:u,quantity:i}})}_flushOutcomes(){bt&&je.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){bt&&je.log("No outcomes to send");return}if(!this._dsn){bt&&je.log("No dsn provided, will not send outcomes");return}bt&&je.log("Sending outcomes:",t);const n=yT(t,this._options.tunnel&&zu(this._dsn));this.sendEnvelope(n)}}function bT(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Od(e))return e.then(i=>{if(!el(i)&&i!==null)throw new hr(n);return i},i=>{throw new hr(`${t} rejected with ${i}`)});if(!el(e)&&e!==null)throw new hr(n);return e}function vT(e,t,n,i){const{beforeSend:o,beforeSendTransaction:u,beforeSendSpan:c}=t;if(TE(n)&&o)return o(n,i);if(NE(n)){if(n.spans&&c){const d=[];for(const m of n.spans){const h=c(m);h?d.push(h):(gw(),e.recordDroppedEvent("before_send","span"))}n.spans=d}if(u){if(n.spans){const d=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return u(n,i)}}return n}function TE(e){return e.type===void 0}function NE(e){return e.type==="transaction"}function _T(e,t){t.debug===!0&&(bt?je.enable():Vi(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),wr().update(t.initialScope);const i=new e(t);return ET(i),i.init(),i}function ET(e){wr().setClient(e)}function ST(e){const t=[];function n(){return e===void 0||t.length<e}function i(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function o(c){if(!n())return td(new hr("Not adding Promise because buffer limit was reached."));const d=c();return t.indexOf(d)===-1&&t.push(d),d.then(()=>i(d)).then(null,()=>i(d).then(null,()=>{})),d}function u(c){return new rr((d,m)=>{let h=t.length;if(!h)return d(!0);const y=setTimeout(()=>{c&&c>0&&d(!1)},c);t.forEach(g=>{Oi(g).then(()=>{--h||(clearTimeout(y),d(!0))},m)})})}return{$:t,add:o,drain:u}}const DT=60*1e3;function $T(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${e}`);return isNaN(i)?DT:i-t}function xT(e,t){return e[t]||e.all||0}function CT(e,t,n=Date.now()){return xT(e,t)>n}function AT(e,{statusCode:t,headers:n},i=Date.now()){const o={...e},u=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(u)for(const d of u.trim().split(",")){const[m,h,,,y]=d.split(":",5),g=parseInt(m,10),E=(isNaN(g)?60:g)*1e3;if(!h)o.all=i+E;else for(const S of h.split(";"))S==="metric_bucket"?(!y||y.split(";").includes("custom"))&&(o[S]=i+E):o[S]=i+E}else c?o.all=i+$T(c,i):t===429&&(o.all=i+60*1e3);return o}const wT=64;function TT(e,t,n=ST(e.bufferSize||wT)){let i={};const o=c=>n.drain(c);function u(c){const d=[];if(K_(c,(g,E)=>{const S=W_(E);if(CT(i,S)){const D=a4(g,E);e.recordDroppedEvent("ratelimit_backoff",S,D)}else d.push(g)}),d.length===0)return Oi({});const m=Uu(c[0],d),h=g=>{K_(m,(E,S)=>{const D=a4(E,S);e.recordDroppedEvent(g,W_(S),D)})},y=()=>t({body:Ow(m)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300)&&bt&&je.warn(`Sentry responded with status code ${g.statusCode} to sent event.`),i=AT(i,g),g),g=>{throw h("network_error"),g});return n.add(y).then(g=>g,g=>{if(g instanceof hr)return bt&&je.error("Skipped sending event because buffer is full."),h("queue_overflow"),Oi({});throw g})}return{send:u,flush:o}}function a4(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function ME(e,t,n=[t],i="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(u=>({name:`${i}:@sentry/${u}`,version:Ga})),version:Ga}),e._metadata=o}const NT=100;function ki(e,t){const n=Yt(),i=Yi();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:u=NT}=n.getOptions();if(u<=0)return;const d={timestamp:ju(),...e},m=o?Vi(()=>o(d,t)):d;m!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",m,t),i.addBreadcrumb(m,u))}let i4;const MT="FunctionToString",o4=new WeakMap,RT=(()=>({name:MT,setupOnce(){i4=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=w0(this),n=o4.has(Yt())&&t!==void 0?t:this;return i4.apply(n,e)}}catch{}},setup(e){o4.set(e,!0)}})),OT=RT,kT=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],BT="InboundFilters",LT=((e={})=>({name:BT,processEvent(t,n,i){const o=i.getOptions(),u=IT(e,o);return FT(t,u)?null:t}})),PT=LT;function IT(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:kT],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function FT(e,t){return t.ignoreInternal&&GT(e)?(bt&&je.warn(`Event dropped due to being internal Sentry Error.
55
+ `),typeof d=="string"||d instanceof Uint8Array)o(d);else{let m;try{m=JSON.stringify(d)}catch{m=JSON.stringify(Qr(d))}o(m)}}return typeof i=="string"?i:kw(i)}function kw(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let i=0;for(const o of e)n.set(o,i),i+=o.length;return n}function Bw(e){const t=typeof e.data=="string"?Sh(e.data):e.data;return[ir({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Lw={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function W_(e){return Lw[e]}function DE(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Pw(e,t,n,i){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:zs(i)},...o&&{trace:ir({...o})}}}function Iw(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Fw(e,t,n,i){const o=DE(n),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!i&&t&&{dsn:zs(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Us(s,[c])}function jw(e,t,n,i){const o=DE(n),s=e.type&&e.type!=="replay_event"?e.type:"event";Iw(e,n&&n.sdk);const c=Pw(e,o,i,t);return delete e.sdkProcessingMetadata,Us(c,[[{type:s},e]])}function Dh(e,t,n,i=0){return new rr((o,s)=>{const c=e[i];if(t===null||typeof c!="function")o(t);else{const d=c({...t},n);bt&&c.id&&d===null&&je.log(`Event processor "${c.id}" dropped event`),Od(d)?d.then(m=>Dh(e,m,n,i+1).then(o)).then(null,s):Dh(e,d,n,i+1).then(o).then(null,s)}})}let pc,Q_,hc;function zw(e){const t=st._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return hc&&n.length===Q_||(Q_=n.length,hc=n.reduce((i,o)=>{pc||(pc={});const s=pc[o];if(s)i[s[0]]=s[1];else{const c=e(o);for(let d=c.length-1;d>=0;d--){const m=c[d],h=m&&m.filename,y=t[o];if(h&&y){i[h]=y,pc[o]=[h,y];break}}}return i},{})),hc}function Uw(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:s}=t;Hw(e,t),i&&Zw(e,i),Yw(e,n),Vw(e,o),Gw(e,s)}function J_(e,t){const{extra:n,tags:i,user:o,contexts:s,level:c,sdkProcessingMetadata:d,breadcrumbs:m,fingerprint:h,eventProcessors:y,attachments:g,propagationContext:E,transactionName:S,span:D}=t;yc(e,"extra",n),yc(e,"tags",i),yc(e,"user",o),yc(e,"contexts",s),e.sdkProcessingMetadata=Bd(e.sdkProcessingMetadata,d,2),c&&(e.level=c),S&&(e.transactionName=S),D&&(e.span=D),m.length&&(e.breadcrumbs=[...e.breadcrumbs,...m]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),y.length&&(e.eventProcessors=[...e.eventProcessors,...y]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...E}}function yc(e,t,n){e[t]=Bd(e[t],n,1)}function Hw(e,t){const{extra:n,tags:i,user:o,contexts:s,level:c,transactionName:d}=t,m=ir(n);m&&Object.keys(m).length&&(e.extra={...m,...e.extra});const h=ir(i);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const y=ir(o);y&&Object.keys(y).length&&(e.user={...y,...e.user});const g=ir(s);g&&Object.keys(g).length&&(e.contexts={...g,...e.contexts}),c&&(e.level=c),d&&e.type!=="transaction"&&(e.transaction=d)}function Vw(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Gw(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Zw(e,t){e.contexts={trace:dw(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ew(t),...e.sdkProcessingMetadata};const n=bE(t),i=R0(n).description;i&&!e.transaction&&e.type==="transaction"&&(e.transaction=i)}function Yw(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function qw(e,t,n,i,o,s){const{normalizeDepth:c=3,normalizeMaxBreadth:d=1e3}=e,m={...t,event_id:t.event_id||n.event_id||lr(),timestamp:t.timestamp||js()},h=n.integrations||e.integrations.map(w=>w.name);Kw(m,e),Jw(m,h),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Ww(m,e.stackParser);const y=eT(i,n.captureContext);n.mechanism&&tl(m,n.mechanism);const g=o?o.getEventProcessors():[],E=WA().getScopeData();if(s){const w=s.getScopeData();J_(E,w)}if(y){const w=y.getScopeData();J_(E,w)}const S=[...n.attachments||[],...E.attachments];S.length&&(n.attachments=S),Uw(m,E);const D=[...g,...E.eventProcessors];return Dh(D,m,n).then(w=>(w&&Qw(w),typeof c=="number"&&c>0?Xw(w,c,d):w))}function Kw(e,t){const{environment:n,release:i,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||O0,!e.release&&i&&(e.release=i),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Go(e.message,s));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=Go(c.value,s));const d=e.request;d&&d.url&&(d.url=Go(d.url,s))}function Ww(e,t){const n=zw(t);try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function Qw(e){const t={};try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([i,o])=>{n.push({type:"sourcemap",code_file:i,debug_id:o})})}function Jw(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Xw(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Qr(o.data,t,n)}}))},...e.user&&{user:Qr(e.user,t,n)},...e.contexts&&{contexts:Qr(e.contexts,t,n)},...e.extra&&{extra:Qr(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=Qr(e.contexts.trace.data,t,n))),e.spans&&(i.spans=e.spans.map(o=>({...o,...o.data&&{data:Qr(o.data,t,n)}}))),e.contexts&&e.contexts.flags&&i.contexts&&(i.contexts.flags=Qr(e.contexts.flags,3,n)),i}function eT(e,t){if(!t)return e;const n=e?e.clone():new Qa;return n.update(t),n}function tT(e){if(e)return nT(e)?{captureContext:e}:aT(e)?{captureContext:e}:e}function nT(e){return e instanceof Qa||typeof e=="function"}const rT=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function aT(e){return Object.keys(e).some(t=>rT.includes(t))}function Ld(e,t){return wr().captureException(e,tT(t))}function $E(e,t){return wr().captureEvent(e,t)}function iT(e,t){Yi().setContext(e,t)}function oT(){return Yi().lastEventId()}function X_(e){const t=Yt(),n=Yi(),i=wr(),{release:o,environment:s=O0}=t&&t.getOptions()||{},{userAgent:c}=st.navigator||{},d=jA({release:o,environment:s,user:i.getUser()||n.getUser(),...c&&{userAgent:c},...e}),m=n.getSession();return m&&m.status==="ok"&&nl(m,{status:"exited"}),xE(),n.setSession(d),i.setSession(d),d}function xE(){const e=Yi(),t=wr(),n=t.getSession()||e.getSession();n&&zA(n),CE(),e.setSession(),t.setSession()}function CE(){const e=Yi(),t=wr(),n=Yt(),i=t.getSession()||e.getSession();i&&n&&n.captureSession(i)}function e4(e=!1){if(e){xE();return}CE()}const lT="7";function AE(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function sT(e){return`${AE(e)}${e.projectId}/envelope/`}function uT(e,t){const n={sentry_version:lT};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function cT(e,t,n){return t||`${sT(e)}?${uT(e,n)}`}function dT(e,t){const n=EE(e);if(!n)return"";const i=`${AE(n)}embed/error-page/`;let o=`dsn=${zs(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const c=t.user;if(!c)continue;c.name&&(o+=`&name=${encodeURIComponent(c.name)}`),c.email&&(o+=`&email=${encodeURIComponent(c.email)}`)}else o+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${i}?${o}`}const t4=[];function fT(e){const t={};return e.forEach(n=>{const{name:i}=n,o=t[i];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[i]=n)}),Object.values(t)}function mT(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(c=>{c.isDefaultInstance=!0});let i;if(Array.isArray(n))i=[...t,...n];else if(typeof n=="function"){const c=n(t);i=Array.isArray(c)?c:[c]}else i=t;const o=fT(i),s=o.findIndex(c=>c.name==="Debug");if(s>-1){const[c]=o.splice(s,1);o.push(c)}return o}function pT(e,t){const n={};return t.forEach(i=>{i&&wE(e,i,n)}),n}function n4(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function wE(e,t,n){if(n[t.name]){bt&&je.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,t4.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),t4.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const i=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,s)=>i(o,s,e))}if(typeof t.processEvent=="function"){const i=t.processEvent.bind(t),o=Object.assign((s,c)=>i(s,c,e),{id:t.name});e.addEventProcessor(o)}bt&&je.log(`Integration installed: ${t.name}`)}function hT(e){const t=Yt();if(!t){bt&&je.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function yT(e,t,n){const i=[{type:"client_report"},{timestamp:js(),discarded_events:e}];return Us(t?{dsn:t}:{},[i])}class hr extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const r4="Not capturing exception because it's already been captured.";class gT{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=EE(t.dsn):bt&&je.warn("No DSN provided, client will not send events."),this._dsn){const o=cT(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}const i=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in t&&t[o]==null);i&&Vi(()=>{console.warn(`[Sentry] Deprecation warning: \`${i}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,i){const o=lr();if(j_(t))return bt&&je.log(r4),o;const s={event_id:o,...n};return this._process(this.eventFromException(t,s).then(c=>this._captureEvent(c,s,i))),s.event_id}captureMessage(t,n,i,o){const s={event_id:lr(),...i},c=x0(t)?t:String(t),d=C0(t)?this.eventFromMessage(c,n,s):this.eventFromException(t,s);return this._process(d.then(m=>this._captureEvent(m,s,o))),s.event_id}captureEvent(t,n,i){const o=lr();if(n&&n.originalException&&j_(n.originalException))return bt&&je.log(r4),o;const s={event_id:o,...n},d=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,d||i)),s.event_id}captureSession(t){typeof t.release!="string"?bt&&je.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),nl(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(i=>n.flush(t).then(o=>i&&o))):Oi(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];wE(this,t,this._integrations),n||n4(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let i=jw(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])i=Rw(i,Bw(s));const o=this.sendEnvelope(i);o&&o.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const n=Fw(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,i){if(this._options.sendClientReports){const o=typeof i=="number"?i:1,s=`${t}:${n}`;bt&&je.log(`Recording outcome: "${s}"${o>1?` (${o} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+o}}on(t,n){const i=this._hooks[t]=this._hooks[t]||[];return i.push(n),()=>{const o=i.indexOf(n);o>-1&&i.splice(o,1)}}emit(t,...n){const i=this._hooks[t];i&&i.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(bt&&je.error("Error while sending envelope:",n),n)):(bt&&je.error("Transport disabled"),Oi({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=pT(this,t),n4(this,t)}_updateSessionFromEvent(t,n){let i=n.level==="fatal",o=!1;const s=n.exception&&n.exception.values;if(s){o=!0;for(const m of s){const h=m.mechanism;if(h&&h.handled===!1){i=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&i)&&(nl(t,{...i&&{status:"crashed"},errors:t.errors||Number(o||i)}),this.captureSession(t))}_isClientDoneProcessing(t){return new rr(n=>{let i=0;const o=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(i+=o,t&&i>=t&&(clearInterval(s),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,i=wr(),o=Yi()){const s=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),qw(s,t,n,i,this,o).then(d=>{if(d===null)return d;d.contexts={trace:QA(i),...d.contexts};const m=_w(this,i);return d.sdkProcessingMetadata={dynamicSamplingContext:m,...d.sdkProcessingMetadata},d})}_captureEvent(t,n={},i){return this._processEvent(t,n,i).then(o=>o.event_id,o=>{bt&&(o instanceof hr&&o.logLevel==="log"?je.log(o.message):je.warn(o))})}_processEvent(t,n,i){const o=this.getOptions(),{sampleRate:s}=o,c=NE(t),d=TE(t),m=t.type||"error",h=`before send for type \`${m}\``,y=typeof s>"u"?void 0:Sw(s);if(d&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error",t),td(new hr(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const g=m==="replay_event"?"replay":m,S=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,i,S).then(D=>{if(D===null)throw this.recordDroppedEvent("event_processor",g,t),new hr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return D;const w=vT(this,o,D,n);return bT(w,h)}).then(D=>{if(D===null){if(this.recordDroppedEvent("before_send",g,t),c){const I=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",I)}throw new hr(`${h} returned \`null\`, will not send event.`,"log")}const x=i&&i.getSession();if(!c&&x&&this._updateSessionFromEvent(x,D),c){const R=D.sdkProcessingMetadata&&D.sdkProcessingMetadata.spanCountBeforeProcessing||0,I=D.spans?D.spans.length:0,A=R-I;A>0&&this.recordDroppedEvent("before_send","span",A)}const w=D.transaction_info;if(c&&w&&D.transaction!==t.transaction){const R="custom";D.transaction_info={...w,source:R}}return this.sendEvent(D,n),D}).then(null,D=>{throw D instanceof hr?D:(this.captureException(D,{data:{__sentry__:!0},originalException:D}),new hr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
56
+ Reason: ${D}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,i])=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:i}})}_flushOutcomes(){bt&&je.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){bt&&je.log("No outcomes to send");return}if(!this._dsn){bt&&je.log("No dsn provided, will not send outcomes");return}bt&&je.log("Sending outcomes:",t);const n=yT(t,this._options.tunnel&&zs(this._dsn));this.sendEnvelope(n)}}function bT(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Od(e))return e.then(i=>{if(!el(i)&&i!==null)throw new hr(n);return i},i=>{throw new hr(`${t} rejected with ${i}`)});if(!el(e)&&e!==null)throw new hr(n);return e}function vT(e,t,n,i){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:c}=t;if(TE(n)&&o)return o(n,i);if(NE(n)){if(n.spans&&c){const d=[];for(const m of n.spans){const h=c(m);h?d.push(h):(gw(),e.recordDroppedEvent("before_send","span"))}n.spans=d}if(s){if(n.spans){const d=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return s(n,i)}}return n}function TE(e){return e.type===void 0}function NE(e){return e.type==="transaction"}function _T(e,t){t.debug===!0&&(bt?je.enable():Vi(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),wr().update(t.initialScope);const i=new e(t);return ET(i),i.init(),i}function ET(e){wr().setClient(e)}function ST(e){const t=[];function n(){return e===void 0||t.length<e}function i(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function o(c){if(!n())return td(new hr("Not adding Promise because buffer limit was reached."));const d=c();return t.indexOf(d)===-1&&t.push(d),d.then(()=>i(d)).then(null,()=>i(d).then(null,()=>{})),d}function s(c){return new rr((d,m)=>{let h=t.length;if(!h)return d(!0);const y=setTimeout(()=>{c&&c>0&&d(!1)},c);t.forEach(g=>{Oi(g).then(()=>{--h||(clearTimeout(y),d(!0))},m)})})}return{$:t,add:o,drain:s}}const DT=60*1e3;function $T(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${e}`);return isNaN(i)?DT:i-t}function xT(e,t){return e[t]||e.all||0}function CT(e,t,n=Date.now()){return xT(e,t)>n}function AT(e,{statusCode:t,headers:n},i=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(s)for(const d of s.trim().split(",")){const[m,h,,,y]=d.split(":",5),g=parseInt(m,10),E=(isNaN(g)?60:g)*1e3;if(!h)o.all=i+E;else for(const S of h.split(";"))S==="metric_bucket"?(!y||y.split(";").includes("custom"))&&(o[S]=i+E):o[S]=i+E}else c?o.all=i+$T(c,i):t===429&&(o.all=i+60*1e3);return o}const wT=64;function TT(e,t,n=ST(e.bufferSize||wT)){let i={};const o=c=>n.drain(c);function s(c){const d=[];if(K_(c,(g,E)=>{const S=W_(E);if(CT(i,S)){const D=a4(g,E);e.recordDroppedEvent("ratelimit_backoff",S,D)}else d.push(g)}),d.length===0)return Oi({});const m=Us(c[0],d),h=g=>{K_(m,(E,S)=>{const D=a4(E,S);e.recordDroppedEvent(g,W_(S),D)})},y=()=>t({body:Ow(m)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300)&&bt&&je.warn(`Sentry responded with status code ${g.statusCode} to sent event.`),i=AT(i,g),g),g=>{throw h("network_error"),g});return n.add(y).then(g=>g,g=>{if(g instanceof hr)return bt&&je.error("Skipped sending event because buffer is full."),h("queue_overflow"),Oi({});throw g})}return{send:s,flush:o}}function a4(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function ME(e,t,n=[t],i="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${i}:@sentry/${s}`,version:Ga})),version:Ga}),e._metadata=o}const NT=100;function ki(e,t){const n=Yt(),i=Yi();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=NT}=n.getOptions();if(s<=0)return;const d={timestamp:js(),...e},m=o?Vi(()=>o(d,t)):d;m!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",m,t),i.addBreadcrumb(m,s))}let i4;const MT="FunctionToString",o4=new WeakMap,RT=(()=>({name:MT,setupOnce(){i4=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=w0(this),n=o4.has(Yt())&&t!==void 0?t:this;return i4.apply(n,e)}}catch{}},setup(e){o4.set(e,!0)}})),OT=RT,kT=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],BT="InboundFilters",LT=((e={})=>({name:BT,processEvent(t,n,i){const o=i.getOptions(),s=IT(e,o);return FT(t,s)?null:t}})),PT=LT;function IT(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:kT],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function FT(e,t){return t.ignoreInternal&&GT(e)?(bt&&je.warn(`Event dropped due to being internal Sentry Error.
57
57
  Event: ${Pa(e)}`),!0):jT(e,t.ignoreErrors)?(bt&&je.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
58
58
  Event: ${Pa(e)}`),!0):YT(e)?(bt&&je.warn(`Event dropped due to not having an error message, error type or stacktrace.
59
59
  Event: ${Pa(e)}`),!0):zT(e,t.ignoreTransactions)?(bt&&je.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
@@ -61,27 +61,27 @@ Event: ${Pa(e)}`),!0):UT(e,t.denyUrls)?(bt&&je.warn(`Event dropped due to being
61
61
  Event: ${Pa(e)}.
62
62
  Url: ${nd(e)}`),!0):HT(e,t.allowUrls)?!1:(bt&&je.warn(`Event dropped due to not being matched by \`allowUrls\` option.
63
63
  Event: ${Pa(e)}.
64
- Url: ${nd(e)}`),!0)}function jT(e,t){return e.type||!t||!t.length?!1:VT(e).some(n=>kd(n,t))}function zT(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?kd(n,t):!1}function UT(e,t){if(!t||!t.length)return!1;const n=nd(e);return n?kd(n,t):!1}function HT(e,t){if(!t||!t.length)return!0;const n=nd(e);return n?kd(n,t):!0}function VT(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function GT(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function ZT(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function nd(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?ZT(t):null}catch{return bt&&je.error(`Cannot extract url for event ${Pa(e)}`),null}}function YT(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function qT(e,t,n=250,i,o,u,c){if(!u.exception||!u.exception.values||!c||!Mi(c.originalException,Error))return;const d=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;d&&(u.exception.values=KT($h(e,t,o,c.originalException,i,u.exception.values,d,0),n))}function $h(e,t,n,i,o,u,c,d){if(u.length>=n+1)return u;let m=[...u];if(Mi(i[o],Error)){l4(c,d);const h=e(t,i[o]),y=m.length;u4(h,o,y,d),m=$h(e,t,n,i[o],o,[h,...m],h,y)}return Array.isArray(i.errors)&&i.errors.forEach((h,y)=>{if(Mi(h,Error)){l4(c,d);const g=e(t,h),E=m.length;u4(g,`errors[${y}]`,E,d),m=$h(e,t,n,h,o,[g,...m],g,E)}}),m}function l4(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function u4(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function KT(e,t){return e.map(n=>(n.value&&(n.value=Go(n.value,t)),n))}function xp(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function WT(e){const t="console";Gi(t,e),Zi(t,QT)}function QT(){"console"in ut&&yh.forEach(function(e){e in ut.console&&zn(ut.console,e,function(t){return ed[e]=t,function(...n){yr("console",{args:n,level:e});const o=ed[e];o&&o.apply(ut.console,n)}})})}function JT(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const XT="Dedupe",e9=(()=>{let e;return{name:XT,processEvent(t){if(t.type)return t;try{if(n9(t,e))return bt&&je.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),t9=e9;function n9(e,t){return t?!!(r9(e,t)||a9(e,t)):!1}function r9(e,t){const n=e.message,i=t.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!OE(e,t)||!RE(e,t))}function a9(e,t){const n=s4(t),i=s4(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!OE(e,t)||!RE(e,t))}function RE(e,t){let n=k_(e),i=k_(t);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(let o=0;o<i.length;o++){const u=i[o],c=n[o];if(u.filename!==c.filename||u.lineno!==c.lineno||u.colno!==c.colno||u.function!==c.function)return!1}return!0}function OE(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}}function s4(e){return e.exception&&e.exception.values&&e.exception.values[0]}function kE(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const xh=ut;function BE(){if(!("fetch"in xh))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ch(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function i9(){if(typeof EdgeRuntime=="string")return!0;if(!BE())return!1;if(Ch(xh.fetch))return!0;let e=!1;const t=xh.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ch(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Hi&&je.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function o9(e,t){const n="fetch";Gi(n,e),Zi(n,()=>l9(void 0,t))}function l9(e,t=!1){t&&!i9()||zn(ut,"fetch",function(n){return function(...i){const o=new Error,{method:u,url:c}=u9(i),d={args:i,fetchData:{method:u,url:c},startTimestamp:ia()*1e3,virtualError:o};return yr("fetch",{...d}),n.apply(ut,i).then(async m=>(yr("fetch",{...d,endTimestamp:ia()*1e3,response:m}),m),m=>{throw yr("fetch",{...d,endTimestamp:ia()*1e3,error:m}),Md(m)&&m.stack===void 0&&(m.stack=o.stack,Ri(m,"framesToPop",1)),m})}})}function Ah(e,t){return!!e&&typeof e=="object"&&!!e[t]}function c4(e){return typeof e=="string"?e:e?Ah(e,"url")?e.url:e.toString?e.toString():"":""}function u9(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,i]=e;return{url:c4(n),method:Ah(i,"method")?String(i.method).toUpperCase():"GET"}}const t=e[0];return{url:c4(t),method:Ah(t,"method")?String(t.method).toUpperCase():"GET"}}function s9(){return"npm"}const gc=ut;function c9(){const e=gc.chrome,t=e&&e.app&&e.app.runtime,n="history"in gc&&!!gc.history.pushState&&!!gc.history.replaceState;return!t&&n}const Ke=ut;let wh=0;function LE(){return wh>0}function d9(){wh++,setTimeout(()=>{wh--})}function al(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(w0(e))return e}catch{return e}const i=function(...o){try{const u=o.map(c=>al(c,t));return e.apply(this,u)}catch(u){throw d9(),M0(c=>{c.addEventProcessor(d=>(t.mechanism&&(bh(d,void 0),tl(d,t.mechanism)),d.extra={...d.extra,arguments:o},d)),Ld(u)}),u}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch{}pE(i,e),Ri(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}const Za=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function k0(e,t){const n=B0(e,t),i={type:y9(t),value:g9(t)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function f9(e,t,n,i){const o=Yt(),u=o&&o.getOptions().normalizeDepth,c=S9(t),d={__serialized__:SE(t,u)};if(c)return{exception:{values:[k0(e,c)]},extra:d};const m={exception:{values:[{type:Rd(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:_9(t,{isUnhandledRejection:i})}]},extra:d};if(n){const h=B0(e,n);h.length&&(m.exception.values[0].stacktrace={frames:h})}return m}function Cp(e,t){return{exception:{values:[k0(e,t)]}}}function B0(e,t){const n=t.stacktrace||t.stack||"",i=p9(t),o=h9(t);try{return e(n,i,o)}catch{}return[]}const m9=/Minified React error #\d+;/i;function p9(e){return e&&m9.test(e.message)?1:0}function h9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function PE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function y9(e){const t=e&&e.name;return!t&&PE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function g9(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:PE(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function b9(e,t,n,i){const o=n&&n.syntheticException||void 0,u=L0(e,t,o,i);return tl(u),u.level="error",n&&n.event_id&&(u.event_id=n.event_id),Oi(u)}function v9(e,t,n="info",i,o){const u=i&&i.syntheticException||void 0,c=Th(e,t,u,o);return c.level=n,i&&i.event_id&&(c.event_id=i.event_id),Oi(c)}function L0(e,t,n,i,o){let u;if(dE(t)&&t.error)return Cp(e,t.error);if(L_(t)||AA(t)){const c=t;if("stack"in t)u=Cp(e,t);else{const d=c.name||(L_(c)?"DOMError":"DOMException"),m=c.message?`${d}: ${c.message}`:d;u=Th(e,m,n,i),bh(u,m)}return"code"in c&&(u.tags={...u.tags,"DOMException.code":`${c.code}`}),u}return Md(t)?Cp(e,t):el(t)||Rd(t)?(u=f9(e,t,n,o),tl(u,{synthetic:!0}),u):(u=Th(e,t,n,i),bh(u,`${t}`),tl(u,{synthetic:!0}),u)}function Th(e,t,n,i){const o={};if(i&&n){const u=B0(e,n);u.length&&(o.exception={values:[{value:t,stacktrace:{frames:u}}]}),tl(o,{synthetic:!0})}if(x0(t)){const{__sentry_template_string__:u,__sentry_template_values__:c}=t;return o.logentry={message:u,params:c},o}return o.message=t,o}function _9(e,{isUnhandledRejection:t}){const n=LA(e),i=t?"promise rejection":"exception";return dE(e)?`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``:Rd(e)?`Event \`${E9(e)}\` (type=${e.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function E9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function S9(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function D9(e,{metadata:t,tunnel:n,dsn:i}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:zu(i)}},u=$9(e);return Uu(o,[u])}function $9(e){return[{type:"user_report"},e]}class x9 extends gT{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},i=Ke.SENTRY_SDK_SOURCE||s9();ME(n,"browser",["browser"],i),super(n),n.sendClientReports&&Ke.document&&Ke.document.addEventListener("visibilitychange",()=>{Ke.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return b9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",i){return v9(this._options.stackParser,t,n,i,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Za&&je.warn("SDK not enabled, will not capture user feedback.");return}const n=D9(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,i)}}const C9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fn=ut,A9=1e3;let d4,Nh,Mh;function w9(e){Gi("dom",e),Zi("dom",T9)}function T9(){if(!fn.document)return;const e=yr.bind(null,"dom"),t=f4(e,!0);fn.document.addEventListener("click",t,!1),fn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=fn[n],u=o&&o.prototype;!u||!u.hasOwnProperty||!u.hasOwnProperty("addEventListener")||(zn(u,"addEventListener",function(c){return function(d,m,h){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=y[d]=y[d]||{refCount:0};if(!g.handler){const E=f4(e);g.handler=E,c.call(this,d,E,h)}g.refCount++}catch{}return c.call(this,d,m,h)}}),zn(u,"removeEventListener",function(c){return function(d,m,h){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__||{},g=y[d];g&&(g.refCount--,g.refCount<=0&&(c.call(this,d,g.handler,h),g.handler=void 0,delete y[d]),Object.keys(y).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,d,m,h)}}))})}function N9(e){if(e.type!==Nh)return!1;try{if(!e.target||e.target._sentryId!==Mh)return!1}catch{}return!0}function M9(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function f4(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=R9(n);if(M9(n.type,i))return;Ri(n,"_sentryCaptured",!0),i&&!i._sentryId&&Ri(i,"_sentryId",lr());const o=n.type==="keypress"?"input":n.type;N9(n)||(e({event:n,name:o,global:t}),Nh=n.type,Mh=i?i._sentryId:void 0),clearTimeout(d4),d4=fn.setTimeout(()=>{Mh=void 0,Nh=void 0},A9)}}function R9(e){try{return e.target}catch{return null}}let bc;function IE(e){const t="history";Gi(t,e),Zi(t,O9)}function O9(){if(!c9())return;const e=fn.onpopstate;fn.onpopstate=function(...n){const i=fn.location.href,o=bc;if(bc=i,yr("history",{from:o,to:i}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...i){const o=i.length>2?i[2]:void 0;if(o){const u=bc,c=String(o);bc=c,yr("history",{from:u,to:c})}return n.apply(this,i)}}zn(fn.history,"pushState",t),zn(fn.history,"replaceState",t)}const Fc={};function k9(e){const t=Fc[e];if(t)return t;let n=fn[e];if(Ch(n))return Fc[e]=n.bind(fn);const i=fn.document;if(i&&typeof i.createElement=="function")try{const o=i.createElement("iframe");o.hidden=!0,i.head.appendChild(o);const u=o.contentWindow;u&&u[e]&&(n=u[e]),i.head.removeChild(o)}catch(o){C9&&je.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Fc[e]=n.bind(fn))}function m4(e){Fc[e]=void 0}const hu="__sentry_xhr_v3__";function B9(e){Gi("xhr",e),Zi("xhr",L9)}function L9(){if(!fn.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,i){const o=new Error,u=ia()*1e3,c=aa(i[0])?i[0].toUpperCase():void 0,d=P9(i[1]);if(!c||!d)return t.apply(n,i);n[hu]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const m=()=>{const h=n[hu];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const y={endTimestamp:ia()*1e3,startTimestamp:u,xhr:n,virtualError:o};yr("xhr",y)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,y,g){return m(),h.apply(y,g)}}):n.addEventListener("readystatechange",m),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,y,g){const[E,S]=g,D=y[hu];return D&&aa(E)&&aa(S)&&(D.request_headers[E.toLowerCase()]=S),h.apply(y,g)}}),t.apply(n,i)}}),e.send=new Proxy(e.send,{apply(t,n,i){const o=n[hu];if(!o)return t.apply(n,i);i[0]!==void 0&&(o.body=i[0]);const u={startTimestamp:ia()*1e3,xhr:n};return yr("xhr",u),t.apply(n,i)}})}function P9(e){if(aa(e))return e;try{return e.toString()}catch{}}function I9(e,t=k9("fetch")){let n=0,i=0;function o(u){const c=u.body.length;n+=c,i++;const d={body:u.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};if(!t)return m4("fetch"),td("No fetch implementation available");try{return t(e.url,d).then(m=>(n-=c,i--,{statusCode:m.status,headers:{"x-sentry-rate-limits":m.headers.get("X-Sentry-Rate-Limits"),"retry-after":m.headers.get("Retry-After")}}))}catch(m){return m4("fetch"),n-=c,i--,td(m)}}return TT(e,o)}const F9=30,j9=50;function Rh(e,t,n,i){const o={filename:e,function:t==="<anonymous>"?Ni:t,in_app:!0};return n!==void 0&&(o.lineno=n),i!==void 0&&(o.colno=i),o}const z9=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,U9=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,H9=/\((\S*)(?::(\d+))(?::(\d+))\)/,V9=e=>{const t=z9.exec(e);if(t){const[,i,o,u]=t;return Rh(i,Ni,+o,+u)}const n=U9.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=H9.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,u]=FE(n[1]||Ni,n[2]);return Rh(u,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},G9=[F9,V9],Z9=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Y9=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,q9=e=>{const t=Z9.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const u=Y9.exec(t[3]);u&&(t[1]=t[1]||"eval",t[3]=u[1],t[4]=u[2],t[5]="")}let i=t[3],o=t[1]||Ni;return[o,i]=FE(o,i),Rh(i,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},K9=[j9,q9],W9=[G9,K9],Q9=sE(...W9),FE=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,i=e.indexOf("safari-web-extension")!==-1;return n||i?[e.indexOf("@")!==-1?e.split("@")[0]:Ni,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},vc=1024,J9="Breadcrumbs",X9=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:J9,setup(n){t.console&&WT(r7(n)),t.dom&&w9(n7(n,t.dom)),t.xhr&&B9(a7(n)),t.fetch&&o9(i7(n)),t.history&&IE(o7(n)),t.sentry&&n.on("beforeSendEvent",t7(n))}}}),e7=X9;function t7(e){return function(n){Yt()===e&&ki({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Pa(n)},{event:n})}}function n7(e,t){return function(i){if(Yt()!==e)return;let o,u,c=typeof t=="object"?t.serializeAttribute:void 0,d=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;d&&d>vc&&(Za&&je.warn(`\`dom.maxStringLength\` cannot exceed ${vc}, but a value of ${d} was configured. Sentry will use ${vc} instead.`),d=vc),typeof c=="string"&&(c=[c]);try{const h=i.event,y=l7(h)?h.target:h;o=mE(y,{keyAttrs:c,maxStringLength:d}),u=kA(y)}catch{o="<unknown>"}if(o.length===0)return;const m={category:`ui.${i.name}`,message:o};u&&(m.data={"ui.component_name":u}),ki(m,{event:i.event,name:i.name,global:i.global})}}function r7(e){return function(n){if(Yt()!==e)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:JT(n.level),message:P_(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)i.message=`Assertion failed: ${P_(n.args.slice(1)," ")||"console.assert"}`,i.data.arguments=n.args.slice(1);else return;ki(i,{input:n.args,level:n.level})}}function a7(e){return function(n){if(Yt()!==e)return;const{startTimestamp:i,endTimestamp:o}=n,u=n.xhr[hu];if(!i||!o||!u)return;const{method:c,url:d,status_code:m,body:h}=u,y={method:c,url:d,status_code:m},g={xhr:n.xhr,input:h,startTimestamp:i,endTimestamp:o},E=kE(m);ki({category:"xhr",data:y,type:"http",level:E},g)}}function i7(e){return function(n){if(Yt()!==e)return;const{startTimestamp:i,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const u=n.fetchData,c={data:n.error,input:n.args,startTimestamp:i,endTimestamp:o};ki({category:"fetch",data:u,level:"error",type:"http"},c)}else{const u=n.response,c={...n.fetchData,status_code:u&&u.status},d={input:n.args,response:u,startTimestamp:i,endTimestamp:o},m=kE(c.status_code);ki({category:"fetch",data:c,type:"http",level:m},d)}}}function o7(e){return function(n){if(Yt()!==e)return;let i=n.from,o=n.to;const u=xp(Ke.location.href);let c=i?xp(i):void 0;const d=xp(o);(!c||!c.path)&&(c=u),u.protocol===d.protocol&&u.host===d.host&&(o=d.relative),u.protocol===c.protocol&&u.host===c.host&&(i=c.relative),ki({category:"navigation",data:{from:i,to:o}})}}function l7(e){return!!e&&!!e.target}const u7=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],s7="BrowserApiErrors",c7=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:s7,setupOnce(){t.setTimeout&&zn(Ke,"setTimeout",p4),t.setInterval&&zn(Ke,"setInterval",p4),t.requestAnimationFrame&&zn(Ke,"requestAnimationFrame",f7),t.XMLHttpRequest&&"XMLHttpRequest"in Ke&&zn(XMLHttpRequest.prototype,"send",m7);const n=t.eventTarget;n&&(Array.isArray(n)?n:u7).forEach(p7)}}}),d7=c7;function p4(e){return function(...t){const n=t[0];return t[0]=al(n,{mechanism:{data:{function:Wa(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function f7(e){return function(t){return e.apply(this,[al(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Wa(e)},handled:!1,type:"instrument"}})])}}function m7(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&zn(n,o,function(u){const c={mechanism:{data:{function:o,handler:Wa(u)},handled:!1,type:"instrument"}},d=w0(u);return d&&(c.mechanism.data.handler=Wa(d)),al(u,c)})}),e.apply(this,t)}}function p7(e){const n=Ke[e],i=n&&n.prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(zn(i,"addEventListener",function(o){return function(u,c,d){try{h7(c)&&(c.handleEvent=al(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Wa(c),target:e},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[u,al(c,{mechanism:{data:{function:"addEventListener",handler:Wa(c),target:e},handled:!1,type:"instrument"}}),d])}}),zn(i,"removeEventListener",function(o){return function(u,c,d){try{const m=c.__sentry_wrapped__;m&&o.call(this,u,m,d)}catch{}return o.call(this,u,c,d)}}))}function h7(e){return typeof e.handleEvent=="function"}const y7=()=>({name:"BrowserSession",setupOnce(){if(typeof Ke.document>"u"){Za&&je.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}X_({ignoreDuration:!0}),e4(),IE(({from:e,to:t})=>{e!==void 0&&e!==t&&(X_({ignoreDuration:!0}),e4())})}}),g7="GlobalHandlers",b7=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:g7,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(_7(n),h4("onerror")),t.onunhandledrejection&&(E7(n),h4("onunhandledrejection"))}}}),v7=b7;function _7(e){DA(t=>{const{stackParser:n,attachStacktrace:i}=jE();if(Yt()!==e||LE())return;const{msg:o,url:u,line:c,column:d,error:m}=t,h=$7(L0(n,m||o,void 0,i,!1),u,c,d);h.level="error",$E(h,{originalException:m,mechanism:{handled:!1,type:"onerror"}})})}function E7(e){xA(t=>{const{stackParser:n,attachStacktrace:i}=jE();if(Yt()!==e||LE())return;const o=S7(t),u=C0(o)?D7(o):L0(n,o,void 0,i,!0);u.level="error",$E(u,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function S7(e){if(C0(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function D7(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function $7(e,t,n,i){const o=e.exception=e.exception||{},u=o.values=o.values||[],c=u[0]=u[0]||{},d=c.stacktrace=c.stacktrace||{},m=d.frames=d.frames||[],h=i,y=n,g=aa(t)&&t.length>0?t:OA();return m.length===0&&m.push({colno:h,filename:g,function:Ni,in_app:!0,lineno:y}),e}function h4(e){Za&&je.log(`Global Handler attached: ${e}`)}function jE(){const e=Yt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const x7=()=>({name:"HttpContext",preprocessEvent(e){if(!Ke.navigator&&!Ke.location&&!Ke.document)return;const t=e.request&&e.request.url||Ke.location&&Ke.location.href,{referrer:n}=Ke.document||{},{userAgent:i}=Ke.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},u={...e.request,...t&&{url:t},headers:o};e.request=u}}),C7="cause",A7=5,w7="LinkedErrors",T7=((e={})=>{const t=e.limit||A7,n=e.key||C7;return{name:w7,preprocessEvent(i,o,u){const c=u.getOptions();qT(k0,c.stackParser,c.maxValueLength,n,t,i,o)}}}),N7=T7;function M7(e){const t=[PT(),OT(),d7(),e7(),v7(),N7(),t9(),x7()];return e.autoSessionTracking!==!1&&t.push(y7()),t}function R7(e={}){const t={defaultIntegrations:M7(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ke.SENTRY_RELEASE&&Ke.SENTRY_RELEASE.id?Ke.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function O7(){const e=typeof Ke.window<"u"&&Ke;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],i=n&&n.runtime&&n.runtime.id,o=Ke.location&&Ke.location.href||"",u=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],c=!!i&&Ke===Ke.top&&u.some(m=>o.startsWith(`${m}//`)),d=typeof e.nw<"u";return!!i&&!c&&!d}function k7(e={}){const t=R7(e);if(!t.skipBrowserExtensionCheck&&O7()){Vi(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Za&&(BE()||je.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:EA(t.stackParser||Q9),integrations:mT(t),transport:t.transport||I9};return _T(x9,n)}function y4(e={}){if(!Ke.document){Za&&je.error("Global document not defined in showReportDialog call");return}const t=wr(),n=t.getClient(),i=n&&n.getDsn();if(!i){Za&&je.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const d=oT();d&&(e.eventId=d)}const o=Ke.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=dT(i,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:u}=e;if(u){const d=m=>{if(m.data==="__sentry_reportdialog_closed__")try{u()}finally{Ke.removeEventListener("message",d)}};Ke.addEventListener("message",d)}const c=Ke.document.head||Ke.document.body;c?c.appendChild(o):Za&&je.error("Not injecting report dialog. No injection point found in HTML")}const B7={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},g4=Ke;async function L7(e,t){const n=B7[e],i=g4.Sentry=g4.Sentry||{},o=i[e];if(typeof o=="function"&&!("_isShim"in o))return o;const u=P7(n),c=Ke.document.createElement("script");c.src=u,c.crossOrigin="anonymous",c.referrerPolicy="origin";const d=new Promise((g,E)=>{c.addEventListener("load",()=>g()),c.addEventListener("error",E)}),m=Ke.document.currentScript,h=Ke.document.body||Ke.document.head||m&&m.parentElement;if(h)h.appendChild(c);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await d}catch{throw new Error(`Error when loading integration: ${e}`)}const y=i[e];if(typeof y!="function")throw new Error(`Could not load integration: ${e}`);return y}function P7(e){const t=Yt(),n=t&&t.getOptions(),i=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Ga}/${e}.min.js`,i).toString()}function I7(e){const t={...e};return ME(t,"react"),iT("react",{version:b.version}),k7(t)}function F7(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function j7(e,t){const n=new WeakSet;function i(o,u){if(!n.has(o)){if(o.cause)return n.add(o),i(o.cause,u);o.cause=u}}i(e,t)}function z7(e,{componentStack:t},n){if(F7(b.version)&&Md(e)&&t){const i=new Error(e.message);i.name=`React ErrorBoundary ${e.name}`,i.stack=t,j7(e,i)}return Ld(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Ap={exports:{}},st={};/** @license React v16.13.1
64
+ Url: ${nd(e)}`),!0)}function jT(e,t){return e.type||!t||!t.length?!1:VT(e).some(n=>kd(n,t))}function zT(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?kd(n,t):!1}function UT(e,t){if(!t||!t.length)return!1;const n=nd(e);return n?kd(n,t):!1}function HT(e,t){if(!t||!t.length)return!0;const n=nd(e);return n?kd(n,t):!0}function VT(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function GT(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function ZT(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function nd(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?ZT(t):null}catch{return bt&&je.error(`Cannot extract url for event ${Pa(e)}`),null}}function YT(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function qT(e,t,n=250,i,o,s,c){if(!s.exception||!s.exception.values||!c||!Mi(c.originalException,Error))return;const d=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;d&&(s.exception.values=KT($h(e,t,o,c.originalException,i,s.exception.values,d,0),n))}function $h(e,t,n,i,o,s,c,d){if(s.length>=n+1)return s;let m=[...s];if(Mi(i[o],Error)){l4(c,d);const h=e(t,i[o]),y=m.length;s4(h,o,y,d),m=$h(e,t,n,i[o],o,[h,...m],h,y)}return Array.isArray(i.errors)&&i.errors.forEach((h,y)=>{if(Mi(h,Error)){l4(c,d);const g=e(t,h),E=m.length;s4(g,`errors[${y}]`,E,d),m=$h(e,t,n,h,o,[g,...m],g,E)}}),m}function l4(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function s4(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function KT(e,t){return e.map(n=>(n.value&&(n.value=Go(n.value,t)),n))}function xp(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function WT(e){const t="console";Gi(t,e),Zi(t,QT)}function QT(){"console"in st&&yh.forEach(function(e){e in st.console&&zn(st.console,e,function(t){return ed[e]=t,function(...n){yr("console",{args:n,level:e});const o=ed[e];o&&o.apply(st.console,n)}})})}function JT(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const XT="Dedupe",e9=(()=>{let e;return{name:XT,processEvent(t){if(t.type)return t;try{if(n9(t,e))return bt&&je.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),t9=e9;function n9(e,t){return t?!!(r9(e,t)||a9(e,t)):!1}function r9(e,t){const n=e.message,i=t.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!OE(e,t)||!RE(e,t))}function a9(e,t){const n=u4(t),i=u4(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!OE(e,t)||!RE(e,t))}function RE(e,t){let n=k_(e),i=k_(t);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(let o=0;o<i.length;o++){const s=i[o],c=n[o];if(s.filename!==c.filename||s.lineno!==c.lineno||s.colno!==c.colno||s.function!==c.function)return!1}return!0}function OE(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}}function u4(e){return e.exception&&e.exception.values&&e.exception.values[0]}function kE(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const xh=st;function BE(){if(!("fetch"in xh))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ch(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function i9(){if(typeof EdgeRuntime=="string")return!0;if(!BE())return!1;if(Ch(xh.fetch))return!0;let e=!1;const t=xh.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ch(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Hi&&je.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function o9(e,t){const n="fetch";Gi(n,e),Zi(n,()=>l9(void 0,t))}function l9(e,t=!1){t&&!i9()||zn(st,"fetch",function(n){return function(...i){const o=new Error,{method:s,url:c}=s9(i),d={args:i,fetchData:{method:s,url:c},startTimestamp:ia()*1e3,virtualError:o};return yr("fetch",{...d}),n.apply(st,i).then(async m=>(yr("fetch",{...d,endTimestamp:ia()*1e3,response:m}),m),m=>{throw yr("fetch",{...d,endTimestamp:ia()*1e3,error:m}),Md(m)&&m.stack===void 0&&(m.stack=o.stack,Ri(m,"framesToPop",1)),m})}})}function Ah(e,t){return!!e&&typeof e=="object"&&!!e[t]}function c4(e){return typeof e=="string"?e:e?Ah(e,"url")?e.url:e.toString?e.toString():"":""}function s9(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,i]=e;return{url:c4(n),method:Ah(i,"method")?String(i.method).toUpperCase():"GET"}}const t=e[0];return{url:c4(t),method:Ah(t,"method")?String(t.method).toUpperCase():"GET"}}function u9(){return"npm"}const gc=st;function c9(){const e=gc.chrome,t=e&&e.app&&e.app.runtime,n="history"in gc&&!!gc.history.pushState&&!!gc.history.replaceState;return!t&&n}const Ke=st;let wh=0;function LE(){return wh>0}function d9(){wh++,setTimeout(()=>{wh--})}function al(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(w0(e))return e}catch{return e}const i=function(...o){try{const s=o.map(c=>al(c,t));return e.apply(this,s)}catch(s){throw d9(),M0(c=>{c.addEventProcessor(d=>(t.mechanism&&(bh(d,void 0),tl(d,t.mechanism)),d.extra={...d.extra,arguments:o},d)),Ld(s)}),s}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch{}pE(i,e),Ri(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}const Za=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function k0(e,t){const n=B0(e,t),i={type:y9(t),value:g9(t)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function f9(e,t,n,i){const o=Yt(),s=o&&o.getOptions().normalizeDepth,c=S9(t),d={__serialized__:SE(t,s)};if(c)return{exception:{values:[k0(e,c)]},extra:d};const m={exception:{values:[{type:Rd(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:_9(t,{isUnhandledRejection:i})}]},extra:d};if(n){const h=B0(e,n);h.length&&(m.exception.values[0].stacktrace={frames:h})}return m}function Cp(e,t){return{exception:{values:[k0(e,t)]}}}function B0(e,t){const n=t.stacktrace||t.stack||"",i=p9(t),o=h9(t);try{return e(n,i,o)}catch{}return[]}const m9=/Minified React error #\d+;/i;function p9(e){return e&&m9.test(e.message)?1:0}function h9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function PE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function y9(e){const t=e&&e.name;return!t&&PE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function g9(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:PE(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function b9(e,t,n,i){const o=n&&n.syntheticException||void 0,s=L0(e,t,o,i);return tl(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Oi(s)}function v9(e,t,n="info",i,o){const s=i&&i.syntheticException||void 0,c=Th(e,t,s,o);return c.level=n,i&&i.event_id&&(c.event_id=i.event_id),Oi(c)}function L0(e,t,n,i,o){let s;if(dE(t)&&t.error)return Cp(e,t.error);if(L_(t)||AA(t)){const c=t;if("stack"in t)s=Cp(e,t);else{const d=c.name||(L_(c)?"DOMError":"DOMException"),m=c.message?`${d}: ${c.message}`:d;s=Th(e,m,n,i),bh(s,m)}return"code"in c&&(s.tags={...s.tags,"DOMException.code":`${c.code}`}),s}return Md(t)?Cp(e,t):el(t)||Rd(t)?(s=f9(e,t,n,o),tl(s,{synthetic:!0}),s):(s=Th(e,t,n,i),bh(s,`${t}`),tl(s,{synthetic:!0}),s)}function Th(e,t,n,i){const o={};if(i&&n){const s=B0(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),tl(o,{synthetic:!0})}if(x0(t)){const{__sentry_template_string__:s,__sentry_template_values__:c}=t;return o.logentry={message:s,params:c},o}return o.message=t,o}function _9(e,{isUnhandledRejection:t}){const n=LA(e),i=t?"promise rejection":"exception";return dE(e)?`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``:Rd(e)?`Event \`${E9(e)}\` (type=${e.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function E9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function S9(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function D9(e,{metadata:t,tunnel:n,dsn:i}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:zs(i)}},s=$9(e);return Us(o,[s])}function $9(e){return[{type:"user_report"},e]}class x9 extends gT{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},i=Ke.SENTRY_SDK_SOURCE||u9();ME(n,"browser",["browser"],i),super(n),n.sendClientReports&&Ke.document&&Ke.document.addEventListener("visibilitychange",()=>{Ke.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return b9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",i){return v9(this._options.stackParser,t,n,i,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Za&&je.warn("SDK not enabled, will not capture user feedback.");return}const n=D9(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,i)}}const C9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fn=st,A9=1e3;let d4,Nh,Mh;function w9(e){Gi("dom",e),Zi("dom",T9)}function T9(){if(!fn.document)return;const e=yr.bind(null,"dom"),t=f4(e,!0);fn.document.addEventListener("click",t,!1),fn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=fn[n],s=o&&o.prototype;!s||!s.hasOwnProperty||!s.hasOwnProperty("addEventListener")||(zn(s,"addEventListener",function(c){return function(d,m,h){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=y[d]=y[d]||{refCount:0};if(!g.handler){const E=f4(e);g.handler=E,c.call(this,d,E,h)}g.refCount++}catch{}return c.call(this,d,m,h)}}),zn(s,"removeEventListener",function(c){return function(d,m,h){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__||{},g=y[d];g&&(g.refCount--,g.refCount<=0&&(c.call(this,d,g.handler,h),g.handler=void 0,delete y[d]),Object.keys(y).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,d,m,h)}}))})}function N9(e){if(e.type!==Nh)return!1;try{if(!e.target||e.target._sentryId!==Mh)return!1}catch{}return!0}function M9(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function f4(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=R9(n);if(M9(n.type,i))return;Ri(n,"_sentryCaptured",!0),i&&!i._sentryId&&Ri(i,"_sentryId",lr());const o=n.type==="keypress"?"input":n.type;N9(n)||(e({event:n,name:o,global:t}),Nh=n.type,Mh=i?i._sentryId:void 0),clearTimeout(d4),d4=fn.setTimeout(()=>{Mh=void 0,Nh=void 0},A9)}}function R9(e){try{return e.target}catch{return null}}let bc;function IE(e){const t="history";Gi(t,e),Zi(t,O9)}function O9(){if(!c9())return;const e=fn.onpopstate;fn.onpopstate=function(...n){const i=fn.location.href,o=bc;if(bc=i,yr("history",{from:o,to:i}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...i){const o=i.length>2?i[2]:void 0;if(o){const s=bc,c=String(o);bc=c,yr("history",{from:s,to:c})}return n.apply(this,i)}}zn(fn.history,"pushState",t),zn(fn.history,"replaceState",t)}const Fc={};function k9(e){const t=Fc[e];if(t)return t;let n=fn[e];if(Ch(n))return Fc[e]=n.bind(fn);const i=fn.document;if(i&&typeof i.createElement=="function")try{const o=i.createElement("iframe");o.hidden=!0,i.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(n=s[e]),i.head.removeChild(o)}catch(o){C9&&je.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Fc[e]=n.bind(fn))}function m4(e){Fc[e]=void 0}const hs="__sentry_xhr_v3__";function B9(e){Gi("xhr",e),Zi("xhr",L9)}function L9(){if(!fn.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,i){const o=new Error,s=ia()*1e3,c=aa(i[0])?i[0].toUpperCase():void 0,d=P9(i[1]);if(!c||!d)return t.apply(n,i);n[hs]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const m=()=>{const h=n[hs];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const y={endTimestamp:ia()*1e3,startTimestamp:s,xhr:n,virtualError:o};yr("xhr",y)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,y,g){return m(),h.apply(y,g)}}):n.addEventListener("readystatechange",m),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,y,g){const[E,S]=g,D=y[hs];return D&&aa(E)&&aa(S)&&(D.request_headers[E.toLowerCase()]=S),h.apply(y,g)}}),t.apply(n,i)}}),e.send=new Proxy(e.send,{apply(t,n,i){const o=n[hs];if(!o)return t.apply(n,i);i[0]!==void 0&&(o.body=i[0]);const s={startTimestamp:ia()*1e3,xhr:n};return yr("xhr",s),t.apply(n,i)}})}function P9(e){if(aa(e))return e;try{return e.toString()}catch{}}function I9(e,t=k9("fetch")){let n=0,i=0;function o(s){const c=s.body.length;n+=c,i++;const d={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};if(!t)return m4("fetch"),td("No fetch implementation available");try{return t(e.url,d).then(m=>(n-=c,i--,{statusCode:m.status,headers:{"x-sentry-rate-limits":m.headers.get("X-Sentry-Rate-Limits"),"retry-after":m.headers.get("Retry-After")}}))}catch(m){return m4("fetch"),n-=c,i--,td(m)}}return TT(e,o)}const F9=30,j9=50;function Rh(e,t,n,i){const o={filename:e,function:t==="<anonymous>"?Ni:t,in_app:!0};return n!==void 0&&(o.lineno=n),i!==void 0&&(o.colno=i),o}const z9=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,U9=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,H9=/\((\S*)(?::(\d+))(?::(\d+))\)/,V9=e=>{const t=z9.exec(e);if(t){const[,i,o,s]=t;return Rh(i,Ni,+o,+s)}const n=U9.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=H9.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,s]=FE(n[1]||Ni,n[2]);return Rh(s,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},G9=[F9,V9],Z9=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Y9=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,q9=e=>{const t=Z9.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=Y9.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let i=t[3],o=t[1]||Ni;return[o,i]=FE(o,i),Rh(i,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},K9=[j9,q9],W9=[G9,K9],Q9=uE(...W9),FE=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,i=e.indexOf("safari-web-extension")!==-1;return n||i?[e.indexOf("@")!==-1?e.split("@")[0]:Ni,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},vc=1024,J9="Breadcrumbs",X9=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:J9,setup(n){t.console&&WT(r7(n)),t.dom&&w9(n7(n,t.dom)),t.xhr&&B9(a7(n)),t.fetch&&o9(i7(n)),t.history&&IE(o7(n)),t.sentry&&n.on("beforeSendEvent",t7(n))}}}),e7=X9;function t7(e){return function(n){Yt()===e&&ki({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Pa(n)},{event:n})}}function n7(e,t){return function(i){if(Yt()!==e)return;let o,s,c=typeof t=="object"?t.serializeAttribute:void 0,d=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;d&&d>vc&&(Za&&je.warn(`\`dom.maxStringLength\` cannot exceed ${vc}, but a value of ${d} was configured. Sentry will use ${vc} instead.`),d=vc),typeof c=="string"&&(c=[c]);try{const h=i.event,y=l7(h)?h.target:h;o=mE(y,{keyAttrs:c,maxStringLength:d}),s=kA(y)}catch{o="<unknown>"}if(o.length===0)return;const m={category:`ui.${i.name}`,message:o};s&&(m.data={"ui.component_name":s}),ki(m,{event:i.event,name:i.name,global:i.global})}}function r7(e){return function(n){if(Yt()!==e)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:JT(n.level),message:P_(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)i.message=`Assertion failed: ${P_(n.args.slice(1)," ")||"console.assert"}`,i.data.arguments=n.args.slice(1);else return;ki(i,{input:n.args,level:n.level})}}function a7(e){return function(n){if(Yt()!==e)return;const{startTimestamp:i,endTimestamp:o}=n,s=n.xhr[hs];if(!i||!o||!s)return;const{method:c,url:d,status_code:m,body:h}=s,y={method:c,url:d,status_code:m},g={xhr:n.xhr,input:h,startTimestamp:i,endTimestamp:o},E=kE(m);ki({category:"xhr",data:y,type:"http",level:E},g)}}function i7(e){return function(n){if(Yt()!==e)return;const{startTimestamp:i,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s=n.fetchData,c={data:n.error,input:n.args,startTimestamp:i,endTimestamp:o};ki({category:"fetch",data:s,level:"error",type:"http"},c)}else{const s=n.response,c={...n.fetchData,status_code:s&&s.status},d={input:n.args,response:s,startTimestamp:i,endTimestamp:o},m=kE(c.status_code);ki({category:"fetch",data:c,type:"http",level:m},d)}}}function o7(e){return function(n){if(Yt()!==e)return;let i=n.from,o=n.to;const s=xp(Ke.location.href);let c=i?xp(i):void 0;const d=xp(o);(!c||!c.path)&&(c=s),s.protocol===d.protocol&&s.host===d.host&&(o=d.relative),s.protocol===c.protocol&&s.host===c.host&&(i=c.relative),ki({category:"navigation",data:{from:i,to:o}})}}function l7(e){return!!e&&!!e.target}const s7=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],u7="BrowserApiErrors",c7=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:u7,setupOnce(){t.setTimeout&&zn(Ke,"setTimeout",p4),t.setInterval&&zn(Ke,"setInterval",p4),t.requestAnimationFrame&&zn(Ke,"requestAnimationFrame",f7),t.XMLHttpRequest&&"XMLHttpRequest"in Ke&&zn(XMLHttpRequest.prototype,"send",m7);const n=t.eventTarget;n&&(Array.isArray(n)?n:s7).forEach(p7)}}}),d7=c7;function p4(e){return function(...t){const n=t[0];return t[0]=al(n,{mechanism:{data:{function:Wa(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function f7(e){return function(t){return e.apply(this,[al(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Wa(e)},handled:!1,type:"instrument"}})])}}function m7(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&zn(n,o,function(s){const c={mechanism:{data:{function:o,handler:Wa(s)},handled:!1,type:"instrument"}},d=w0(s);return d&&(c.mechanism.data.handler=Wa(d)),al(s,c)})}),e.apply(this,t)}}function p7(e){const n=Ke[e],i=n&&n.prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(zn(i,"addEventListener",function(o){return function(s,c,d){try{h7(c)&&(c.handleEvent=al(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Wa(c),target:e},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[s,al(c,{mechanism:{data:{function:"addEventListener",handler:Wa(c),target:e},handled:!1,type:"instrument"}}),d])}}),zn(i,"removeEventListener",function(o){return function(s,c,d){try{const m=c.__sentry_wrapped__;m&&o.call(this,s,m,d)}catch{}return o.call(this,s,c,d)}}))}function h7(e){return typeof e.handleEvent=="function"}const y7=()=>({name:"BrowserSession",setupOnce(){if(typeof Ke.document>"u"){Za&&je.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}X_({ignoreDuration:!0}),e4(),IE(({from:e,to:t})=>{e!==void 0&&e!==t&&(X_({ignoreDuration:!0}),e4())})}}),g7="GlobalHandlers",b7=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:g7,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(_7(n),h4("onerror")),t.onunhandledrejection&&(E7(n),h4("onunhandledrejection"))}}}),v7=b7;function _7(e){DA(t=>{const{stackParser:n,attachStacktrace:i}=jE();if(Yt()!==e||LE())return;const{msg:o,url:s,line:c,column:d,error:m}=t,h=$7(L0(n,m||o,void 0,i,!1),s,c,d);h.level="error",$E(h,{originalException:m,mechanism:{handled:!1,type:"onerror"}})})}function E7(e){xA(t=>{const{stackParser:n,attachStacktrace:i}=jE();if(Yt()!==e||LE())return;const o=S7(t),s=C0(o)?D7(o):L0(n,o,void 0,i,!0);s.level="error",$E(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function S7(e){if(C0(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function D7(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function $7(e,t,n,i){const o=e.exception=e.exception||{},s=o.values=o.values||[],c=s[0]=s[0]||{},d=c.stacktrace=c.stacktrace||{},m=d.frames=d.frames||[],h=i,y=n,g=aa(t)&&t.length>0?t:OA();return m.length===0&&m.push({colno:h,filename:g,function:Ni,in_app:!0,lineno:y}),e}function h4(e){Za&&je.log(`Global Handler attached: ${e}`)}function jE(){const e=Yt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const x7=()=>({name:"HttpContext",preprocessEvent(e){if(!Ke.navigator&&!Ke.location&&!Ke.document)return;const t=e.request&&e.request.url||Ke.location&&Ke.location.href,{referrer:n}=Ke.document||{},{userAgent:i}=Ke.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},s={...e.request,...t&&{url:t},headers:o};e.request=s}}),C7="cause",A7=5,w7="LinkedErrors",T7=((e={})=>{const t=e.limit||A7,n=e.key||C7;return{name:w7,preprocessEvent(i,o,s){const c=s.getOptions();qT(k0,c.stackParser,c.maxValueLength,n,t,i,o)}}}),N7=T7;function M7(e){const t=[PT(),OT(),d7(),e7(),v7(),N7(),t9(),x7()];return e.autoSessionTracking!==!1&&t.push(y7()),t}function R7(e={}){const t={defaultIntegrations:M7(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ke.SENTRY_RELEASE&&Ke.SENTRY_RELEASE.id?Ke.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function O7(){const e=typeof Ke.window<"u"&&Ke;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],i=n&&n.runtime&&n.runtime.id,o=Ke.location&&Ke.location.href||"",s=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],c=!!i&&Ke===Ke.top&&s.some(m=>o.startsWith(`${m}//`)),d=typeof e.nw<"u";return!!i&&!c&&!d}function k7(e={}){const t=R7(e);if(!t.skipBrowserExtensionCheck&&O7()){Vi(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Za&&(BE()||je.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:EA(t.stackParser||Q9),integrations:mT(t),transport:t.transport||I9};return _T(x9,n)}function y4(e={}){if(!Ke.document){Za&&je.error("Global document not defined in showReportDialog call");return}const t=wr(),n=t.getClient(),i=n&&n.getDsn();if(!i){Za&&je.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const d=oT();d&&(e.eventId=d)}const o=Ke.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=dT(i,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:s}=e;if(s){const d=m=>{if(m.data==="__sentry_reportdialog_closed__")try{s()}finally{Ke.removeEventListener("message",d)}};Ke.addEventListener("message",d)}const c=Ke.document.head||Ke.document.body;c?c.appendChild(o):Za&&je.error("Not injecting report dialog. No injection point found in HTML")}const B7={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},g4=Ke;async function L7(e,t){const n=B7[e],i=g4.Sentry=g4.Sentry||{},o=i[e];if(typeof o=="function"&&!("_isShim"in o))return o;const s=P7(n),c=Ke.document.createElement("script");c.src=s,c.crossOrigin="anonymous",c.referrerPolicy="origin";const d=new Promise((g,E)=>{c.addEventListener("load",()=>g()),c.addEventListener("error",E)}),m=Ke.document.currentScript,h=Ke.document.body||Ke.document.head||m&&m.parentElement;if(h)h.appendChild(c);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await d}catch{throw new Error(`Error when loading integration: ${e}`)}const y=i[e];if(typeof y!="function")throw new Error(`Could not load integration: ${e}`);return y}function P7(e){const t=Yt(),n=t&&t.getOptions(),i=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Ga}/${e}.min.js`,i).toString()}function I7(e){const t={...e};return ME(t,"react"),iT("react",{version:b.version}),k7(t)}function F7(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function j7(e,t){const n=new WeakSet;function i(o,s){if(!n.has(o)){if(o.cause)return n.add(o),i(o.cause,s);o.cause=s}}i(e,t)}function z7(e,{componentStack:t},n){if(F7(b.version)&&Md(e)&&t){const i=new Error(e.message);i.name=`React ErrorBoundary ${e.name}`,i.stack=t,j7(e,i)}return Ld(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Ap={exports:{}},ut={};/** @license React v16.13.1
65
65
  * react-is.production.min.js
66
66
  *
67
67
  * Copyright (c) Facebook, Inc. and its affiliates.
68
68
  *
69
69
  * This source code is licensed under the MIT license found in the
70
70
  * LICENSE file in the root directory of this source tree.
71
- */var b4;function U7(){if(b4)return st;b4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function A(M){if(typeof M=="object"&&M!==null){var Z=M.$$typeof;switch(Z){case t:switch(M=M.type,M){case m:case h:case i:case u:case o:case g:return M;default:switch(M=M&&M.$$typeof,M){case d:case y:case D:case S:case c:return M;default:return Z}}case n:return Z}}}function L(M){return A(M)===h}return st.AsyncMode=m,st.ConcurrentMode=h,st.ContextConsumer=d,st.ContextProvider=c,st.Element=t,st.ForwardRef=y,st.Fragment=i,st.Lazy=D,st.Memo=S,st.Portal=n,st.Profiler=u,st.StrictMode=o,st.Suspense=g,st.isAsyncMode=function(M){return L(M)||A(M)===m},st.isConcurrentMode=L,st.isContextConsumer=function(M){return A(M)===d},st.isContextProvider=function(M){return A(M)===c},st.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},st.isForwardRef=function(M){return A(M)===y},st.isFragment=function(M){return A(M)===i},st.isLazy=function(M){return A(M)===D},st.isMemo=function(M){return A(M)===S},st.isPortal=function(M){return A(M)===n},st.isProfiler=function(M){return A(M)===u},st.isStrictMode=function(M){return A(M)===o},st.isSuspense=function(M){return A(M)===g},st.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===i||M===h||M===u||M===o||M===g||M===E||typeof M=="object"&&M!==null&&(M.$$typeof===D||M.$$typeof===S||M.$$typeof===c||M.$$typeof===d||M.$$typeof===y||M.$$typeof===w||M.$$typeof===R||M.$$typeof===I||M.$$typeof===x)},st.typeOf=A,st}var v4;function H7(){return v4||(v4=1,Ap.exports=U7()),Ap.exports}var wp,_4;function V7(){if(_4)return wp;_4=1;var e=H7(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=i,u[e.Memo]=o;function c(D){return e.isMemo(D)?o:u[D.$$typeof]||t}var d=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,E=Object.prototype;function S(D,x,w){if(typeof x!="string"){if(E){var R=g(x);R&&R!==E&&S(D,R,w)}var I=m(x);h&&(I=I.concat(h(x)));for(var A=c(D),L=c(x),M=0;M<I.length;++M){var Z=I[M];if(!n[Z]&&!(w&&w[Z])&&!(L&&L[Z])&&!(A&&A[Z])){var V=y(x,Z);try{d(D,Z,V)}catch{}}}}return D}return wp=S,wp}V7();const G7=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,E4={componentStack:null,error:null,eventId:null};class P0 extends b.Component{constructor(t){super(t),P0.prototype.__init.call(this),this.state=E4,this._openFallbackReportDialog=!0;const n=Yt();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",i=>{!i.type&&this._lastEventId&&i.event_id===this._lastEventId&&y4({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:i}=n,o=i??void 0,{beforeCapture:u,onError:c,showDialog:d,dialogOptions:m}=this.props;M0(h=>{u&&u(h,t,o);const y=this.props.handled!=null?this.props.handled:!!this.props.fallback,g=z7(t,n,{mechanism:{handled:y}});c&&c(t,o,g),d&&(this._lastEventId=g,this._openFallbackReportDialog&&y4({...m,eventId:g})),this.setState({error:t,componentStack:i,eventId:g})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:i}=this.state,{onUnmount:o}=this.props;o&&o(t,n,i),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:i,eventId:o}=this.state;t&&t(n,i,o),this.setState(E4)}}render(){const{fallback:t,children:n}=this.props,i=this.state;if(i.error){let o;return typeof t=="function"?o=b.createElement(t,{error:i.error,componentStack:i.componentStack,resetError:this.resetErrorBoundary,eventId:i.eventId}):o=t,b.isValidElement(o)?o:(t&&G7&&je.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function Un({id:e,label:t,hint:n,error:i,required:o,className:u,children:c}){const d=e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),m=["form-field",d?`form-field--${d}`:null,u].filter(Boolean).join(" ");return v.jsxs("div",{className:m,"data-field-id":e,children:[v.jsxs("label",{htmlFor:e,className:"form-label form-field__label",children:[t,o&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-red-600","aria-hidden":"true",children:[" ","*"]}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),c,n&&v.jsx("p",{id:`${e}-hint`,className:"form-field__hint mt-1 text-sm text-slate-500",children:n}),i&&v.jsx("p",{id:`${e}-error`,className:"form-field__error mt-1 text-sm text-red-600",children:i})]})}function jc({id:e,label:t,hint:n,error:i,required:o,className:u,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsx("input",{id:e,className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...c,type:"text"})})}function S4(e,t){if(!e)return"";const n=parseInt(e,10);if(isNaN(n))return"";const i=n.toLocaleString("en-US");return t?`$${i}`:i}function Z7({id:e,label:t,hint:n,error:i,required:o,className:u,value:c,onChange:d,onKeyDown:m,isCurrency:h=!1,maxDigits:y,...g}){const[E,S]=b.useState(""),D=b.useRef(null);b.useEffect(()=>{if(c==null||c===""){S("");return}const R=String(c).replace(/\D/g,"");S(S4(R,h))},[c,h]);const x=R=>{let I=R.target.value.replace(/\D/g,"");y!==void 0&&(I=I.slice(0,y)),S(S4(I,h));const A={...R,currentTarget:{...R.currentTarget,value:I},target:{...R.target,value:I}};d?.(A)},w=R=>{if(["-","+",".","e","E"].includes(R.key)){R.preventDefault();return}if(y!==void 0&&/^\d$/.test(R.key)&&R.currentTarget.value.replace(/\D/g,"").length>=y){R.preventDefault();return}m?.(R)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsx("input",{ref:D,id:e,type:"text",inputMode:"numeric",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,value:E,onChange:x,onKeyDown:w,...g})})}function D4(e){return e.length<=3?e:e.length<=5?`${e.slice(0,3)}-${e.slice(3)}`:`${e.slice(0,3)}-${e.slice(3,5)}-${e.slice(5,9)}`}function Y7({id:e,label:t,hint:n,error:i,required:o,className:u,value:c="",onChange:d,...m}){const[h,y]=b.useState(""),g=b.useRef(null);b.useEffect(()=>{const S=c.replace(/\D/g,"").slice(0,9);y(D4(S))},[c]);const E=S=>{const D=S.target.value,x=S.target.selectionStart??0,w=D.replace(/\D/g,"").slice(0,9),R=D4(w);y(R);const I={...S,currentTarget:{...S.currentTarget,value:R},target:{...S.target,value:R}};d?.(I),setTimeout(()=>{if(g.current){const A=D.slice(0,x).replace(/\D/g,"").length;let L=A;A>5?L+=2:A>3&&(L+=1),g.current.setSelectionRange(L,L)}},0)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsx("input",{ref:g,id:e,type:"text",inputMode:"numeric",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,maxLength:11,placeholder:"XXX-XX-XXXX",autoComplete:"off",value:h,onChange:E,...m})})}function Tp({id:e,label:t,hint:n,error:i,required:o,className:u,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsx("input",{id:e,type:"number",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...c})})}function q7({id:e,label:t,hint:n,error:i,required:o,className:u,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsx("input",{id:e,type:"email",className:`form-input ${i?"input-error":""}`,inputMode:"email",autoComplete:"email",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function Np(e){const t=e.replace(/\D/g,"");if(t.length===10)return`(${t.slice(0,3)}) ${t.slice(3,6)} - ${t.slice(6)}`;if(t.length>10){const n=t.slice(0,10);return`(${n.slice(0,3)}) ${n.slice(3,6)} - ${n.slice(6)}`}return t.length>=6?`(${t.slice(0,3)}) ${t.slice(3,6)} - ${t.slice(6)}`:t.length>=3?`(${t.slice(0,3)}) ${t.slice(3)}`:t.length>0?`(${t}`:t}function Mp(e){return e.replace(/\D/g,"")}function zE({id:e,label:t,hint:n,error:i,required:o,className:u,value:c="",onChange:d,...m}){const[h,y]=b.useState(""),g=b.useRef(null),E=b.useRef(0);b.useEffect(()=>{if(!c){y("");return}let D=Mp(c);D.length===11&&D.startsWith("1")&&(D=D.slice(1));const x=D.slice(0,10);y(Np(x))},[c]);const S=D=>{const x=D.target,w=x.value;E.current=x.selectionStart||0;const I=Mp(w).slice(0,10),A=Np(I);y(A);const L=I.length===10?`+1${I}`:I,M={...D,currentTarget:{...D.currentTarget,value:L},target:{...D.target,value:L}};d?.(M),setTimeout(()=>{if(g.current){const Z=w.slice(0,E.current),V=Mp(Z),fe=Np(V),ne=Math.min(fe.length,A.length);g.current.setSelectionRange(ne,ne)}},0)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsxs("div",{className:`tel-input-wrapper flex items-center border rounded-lg transition-colors w-full relative ${i?"border-red-500 error":"border-[var(--accent-color)] focus-within:border-[var(--primary-color)]"}`,children:[v.jsx("label",{htmlFor:e,className:"px-3 py-3 text-slate-700 font-medium border-r border-[var(--accent-color)] bg-slate-50 flex-shrink-0 relative z-0 rounded-l-lg",children:"+1"}),v.jsx("input",{ref:g,id:e,type:"tel",className:`flex-1 px-4 py-3 border-0 rounded-r-lg outline-none bg-transparent text-[var(--text-primary)] text-base ${i?"input-error":""}`,inputMode:"tel",autoComplete:"tel",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,value:h,onChange:S,...m})]})})}function K7({id:e,label:t,hint:n,error:i,required:o,className:u,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsx("input",{id:e,type:"url",className:`form-input ${i?"input-error":""}`,inputMode:"url",autoComplete:"url",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function W7({id:e,label:t,hint:n,error:i,required:o,className:u,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsx("input",{id:e,type:"password",className:`form-input ${i?"input-error":""}`,autoComplete:"current-password",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function Q7({id:e,label:t,hint:n,error:i,required:o,className:u,rows:c=4,...d}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsx("textarea",{id:e,rows:c,className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...d})})}function Pd(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ct=typeof document<"u"?ve.useLayoutEffect:()=>{},UE={prefix:String(Math.round(Math.random()*1e10)),current:0},HE=ve.createContext(UE),J7=ve.createContext(!1);let Rp=new WeakMap;function X7(e=!1){let t=b.useContext(HE),n=b.useRef(null);if(n.current===null&&!e){let i=ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(i){let o=Rp.get(i);o==null?Rp.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,Rp.delete(i))}n.current=++t.current}return n.current}function eN(e){let t=b.useContext(HE),n=X7(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function tN(e){let t=ve.useId(),[n]=b.useState(I0()),i=n?"react-aria":`react-aria${UE.prefix}`;return e||`${i}-${t}`}const nN=typeof ve.useId=="function"?tN:eN;function rN(){return!1}function aN(){return!0}function iN(e){return()=>{}}function I0(){return typeof ve.useSyncExternalStore=="function"?ve.useSyncExternalStore(iN,rN,aN):b.useContext(J7)}function oN(e){let[t,n]=b.useState(e),i=b.useRef(t),o=b.useRef(null),u=b.useRef(()=>{if(!o.current)return;let d=o.current.next();if(d.done){o.current=null;return}i.current===d.value?u.current():n(d.value)});ct(()=>{i.current=t,o.current&&u.current()});let c=b.useCallback(d=>{o.current=d(i.current),u.current()},[u]);return[t,c]}let lN=!!(typeof window<"u"&&window.document&&window.document.createElement),Zo=new Map,yu;typeof FinalizationRegistry<"u"&&(yu=new FinalizationRegistry(e=>{Zo.delete(e)}));function Ar(e){let[t,n]=b.useState(e),i=b.useRef(null),o=nN(t),u=b.useRef(null);if(yu&&yu.register(u,o),lN){const c=Zo.get(o);c&&!c.includes(i)?c.push(i):Zo.set(o,[i])}return ct(()=>{let c=o;return()=>{yu&&yu.unregister(u),Zo.delete(c)}},[o]),b.useEffect(()=>{let c=i.current;return c&&n(c),()=>{c&&(i.current=null)}}),o}function uN(e,t){if(e===t)return e;let n=Zo.get(e);if(n)return n.forEach(o=>o.current=t),t;let i=Zo.get(t);return i?(i.forEach(o=>o.current=e),e):t}function rd(e=[]){let t=Ar(),[n,i]=oN(t),o=b.useCallback(()=>{i(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,i]);return ct(o,[t,o,...e]),n}function F0(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const i=e.map(o=>{const u=$4(o,t);return n||=typeof u=="function",u});if(n)return()=>{i.forEach((o,u)=>{typeof o=="function"?o():$4(e[u],null)})}}}function $4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function VE(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=VE(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function sN(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=VE(e))&&(i&&(i+=" "),i+=t);return i}function pt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let i=e[n];for(let o in i){let u=t[o],c=i[o];typeof u=="function"&&typeof c=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Pd(u,c):(o==="className"||o==="UNSAFE_className")&&typeof u=="string"&&typeof c=="string"?t[o]=sN(u,c):o==="id"&&u&&c?t.id=uN(u,c):o==="ref"&&u&&c?t.ref=F0(u,c):t[o]=c!==void 0?c:u}}return t}function GE(e){const t=b.useRef(null),n=b.useRef(void 0),i=b.useCallback(o=>{if(typeof e=="function"){const u=e,c=u(o);return()=>{typeof c=="function"?c():u(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return b.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=i(o))}}),[i])}const Oh=Symbol("default");function Id({values:e,children:t}){for(let[n,i]of e)t=ve.createElement(n.Provider,{value:i},t);return t}function la(e){let{className:t,style:n,children:i,defaultClassName:o,defaultChildren:u,defaultStyle:c,values:d,render:m}=e;return b.useMemo(()=>{let h,y,g;return typeof t=="function"?h=t({...d,defaultClassName:o}):h=t,typeof n=="function"?y=n({...d,defaultStyle:c||{}}):y=n,typeof i=="function"?g=i({...d,defaultChildren:u}):i==null?g=u:g=i,{className:h??o,style:y||c?{...c,...y}:void 0,children:g??u,"data-rac":"",render:m?E=>m(E,d):void 0}},[t,n,i,o,u,c,d,m])}function ad(e,t){let n=b.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let i=t||Oh;if(!n.slots[i]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(c=>`"${c}"`)),u=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${u} Valid slot names are ${o}.`)}return n.slots[i]}return n}function ua(e,t,n){let i=ad(n,e.slot)||{},{ref:o,...u}=i,c=GE(b.useMemo(()=>F0(t,o),[t,o])),d=pt(u,e);return"style"in u&&u.style&&"style"in e&&e.style&&(typeof u.style=="function"||typeof e.style=="function"?d.style=m=>{let h=typeof u.style=="function"?u.style(m):u.style,y={...m.defaultStyle,...h},g=typeof e.style=="function"?e.style({...m,defaultStyle:y}):e.style;return{...y,...g}}:d.style={...u.style,...e.style}),[d,c]}function cN(e=!0){let[t,n]=b.useState(e),i=b.useRef(!1),o=b.useCallback(u=>{i.current=!0,n(!!u)},[]);return ct(()=>{i.current||n(!1)},[]),[o,t]}function dN(e){const t=/^(data-.*)$/;let n={};for(const i in e)t.test(i)||(n[i]=e[i]);return n}function fN(e,t,n){let{render:i,...o}=t,u=b.useRef(null),c=b.useMemo(()=>F0(n,u),[n,u]);ct(()=>{},[e,i]);let d={...o,ref:c};return i?i(d,void 0):ve.createElement(e,d)}const x4={},wn=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=x4[t];return n||(n=b.forwardRef(fN.bind(null,t)),x4[t]=n),n}}),nt=e=>e?.ownerDocument??document,hn=e=>e&&"window"in e&&e.window===e?e:nt(e).defaultView||window;function mN(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function pN(e){return mN(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let hN=!1;function Xr(){return hN}function ot(e,t){if(!Xr())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:pN(n)?n=n.host:n=n.parentNode}return!1}const St=(e=document)=>{if(!Xr())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function Pe(e){if(Xr()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function j0(e){if(!e)return!1;let t=e.getRootNode(),n=hn(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let i=t.activeElement;return i!=null&&e.contains(i)}function Bi(e){if(yN())e.focus({preventScroll:!0});else{let t=gN(e);e.focus(),bN(t)}}let _c=null;function yN(){if(_c==null){_c=!1;try{document.createElement("div").focus({get preventScroll(){return _c=!0,!0}})}catch{}}return _c}function gN(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function bN(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}const vN=typeof Element<"u"&&"checkVisibility"in Element.prototype;function _N(e){const t=hn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:i}=e.style,o=n!=="none"&&i!=="hidden"&&i!=="collapse";if(o){const{getComputedStyle:u}=hn(e);let{display:c,visibility:d}=u(e);o=c!=="none"&&d!=="hidden"&&d!=="collapse"}return o}function EN(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function z0(e,t){return vN?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&_N(e)&&EN(e,t)&&(!e.parentElement||z0(e.parentElement,e))}const U0=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],SN=U0.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";U0.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const DN=U0.join(':not([hidden]):not([tabindex="-1"]),');function ZE(e,t){return e.matches(SN)&&!YE(e)&&(t?.skipVisibilityCheck||z0(e))}function $N(e){return e.matches(DN)&&z0(e)&&!YE(e)}function YE(e){let t=e;for(;t!=null;){if(t instanceof hn(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function H0(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function qE(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function KE(e){let t=b.useRef({isFocused:!1,observer:null});return ct(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),b.useCallback(n=>{let i=Pe(n);if(i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement){t.current.isFocused=!0;let o=i,u=c=>{if(t.current.isFocused=!1,o.disabled){let d=H0(c);e?.(d)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",u,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer?.disconnect();let c=o===St()?null:St();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let id=!1;function xN(e){for(;e&&!ZE(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=hn(e),n=t.document.activeElement;if(!n||n===e)return;id=!0;let i=!1,o=y=>{(Pe(y)===n||i)&&y.stopImmediatePropagation()},u=y=>{(Pe(y)===n||i)&&(y.stopImmediatePropagation(),!e&&!i&&(i=!0,Bi(n),m()))},c=y=>{(Pe(y)===e||i)&&y.stopImmediatePropagation()},d=y=>{(Pe(y)===e||i)&&(y.stopImmediatePropagation(),i||(i=!0,Bi(n),m()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",u,!0),t.addEventListener("focusin",d,!0),t.addEventListener("focus",c,!0);let m=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",u,!0),t.removeEventListener("focusin",d,!0),t.removeEventListener("focus",c,!0),id=!1,i=!1},h=requestAnimationFrame(m);return m}function Fd(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function V0(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Ja(e){let t=null;return()=>(t==null&&(t=e()),t)}const il=Ja(function(){return V0(/^Mac/i)}),CN=Ja(function(){return V0(/^iPhone/i)}),WE=Ja(function(){return V0(/^iPad/i)||il()&&navigator.maxTouchPoints>1}),Hu=Ja(function(){return CN()||WE()}),QE=Ja(function(){return Fd(/AppleWebKit/i)&&!JE()}),JE=Ja(function(){return Fd(/Chrome/i)}),G0=Ja(function(){return Fd(/Android/i)}),AN=Ja(function(){return Fd(/Firefox/i)});function XE(e){return e.pointerType===""&&e.isTrusted?!0:G0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function wN(e){return!G0()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Li(e,t,n=!0){let{metaKey:i,ctrlKey:o,altKey:u,shiftKey:c}=t;AN()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(il()?i=!0:o=!0);let d=QE()&&il()&&!WE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:u,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Li.isOpening=n,Bi(e),e.dispatchEvent(d),Li.isOpening=!1}Li.isOpening=!1;let qi=null;const kh=new Set;let Su=new Map,Pi=!1,Bh=!1;const TN={Tab:!0,Escape:!0};function jd(e,t){for(let n of kh)n(e,t)}function NN(e){return!(e.metaKey||!il()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function od(e){Pi=!0,!Li.isOpening&&NN(e)&&(qi="keyboard",jd("keyboard",e))}function Yo(e){qi="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Pi=!0,jd("pointer",e))}function eS(e){!Li.isOpening&&XE(e)&&(Pi=!0,qi="virtual")}function tS(e){let t=hn(Pe(e)),n=nt(Pe(e));Pe(e)===t||Pe(e)===n||id||!e.isTrusted||(!Pi&&!Bh&&(qi="virtual",jd("virtual",e)),Pi=!1,Bh=!1)}function nS(){id||(Pi=!1,Bh=!0)}function Lh(e){if(typeof window>"u"||typeof document>"u")return;const t=hn(e),n=nt(e);if(Su.get(t))return;let i=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Pi=!0,i.apply(this,arguments)}}),n.addEventListener("keydown",od,!0),n.addEventListener("keyup",od,!0),n.addEventListener("click",eS,!0),t.addEventListener("focus",tS,!0),t.addEventListener("blur",nS,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Yo,!0),n.addEventListener("pointermove",Yo,!0),n.addEventListener("pointerup",Yo,!0)),t.addEventListener("beforeunload",()=>{rS(e)},{once:!0}),Su.set(t,{focus:i})}const rS=(e,t)=>{const n=hn(e),i=nt(e);t&&i.removeEventListener("DOMContentLoaded",t),Su.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Su.get(n).focus}),i.removeEventListener("keydown",od,!0),i.removeEventListener("keyup",od,!0),i.removeEventListener("click",eS,!0),n.removeEventListener("focus",tS,!0),n.removeEventListener("blur",nS,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",Yo,!0),i.removeEventListener("pointermove",Yo,!0),i.removeEventListener("pointerup",Yo,!0)),Su.delete(n))};function MN(e){const t=nt(e);let n;return t.readyState!=="loading"?Lh(e):(n=()=>{Lh(e)},t.addEventListener("DOMContentLoaded",n)),()=>rS(e,n)}typeof document<"u"&&MN();function Ph(){return qi!=="pointer"}function zd(){return qi}function RN(e){qi=e,jd(e,null)}const ON=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kN(e,t,n){let i=n?Pe(n):void 0,o=nt(i),u=hn(i);const c=typeof u<"u"?u.HTMLInputElement:HTMLInputElement,d=typeof u<"u"?u.HTMLTextAreaElement:HTMLTextAreaElement,m=typeof u<"u"?u.HTMLElement:HTMLElement,h=typeof u<"u"?u.KeyboardEvent:KeyboardEvent;let y=St(o);return e=e||y instanceof c&&!ON.has(y.type)||y instanceof d||y instanceof m&&y.isContentEditable,!(e&&t==="keyboard"&&n instanceof h&&!TN[n.key])}function BN(e,t,n){Lh(),b.useEffect(()=>{if(n?.enabled===!1)return;let i=(o,u)=>{kN(!!n?.isTextInput,o,u)&&e(Ph())};return kh.add(i),()=>{kh.delete(i)}},t)}const LN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Op(e){return e instanceof HTMLInputElement&&!LN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const PN=ve.useInsertionEffect??ct;function Zt(e){const t=b.useRef(null);return PN(()=>{t.current=e},[e]),b.useCallback((...n)=>{const i=t.current;return i?.(...n)},[])}function kp(e,t,n,i){let o=Zt(n),u=n==null;b.useEffect(()=>{if(u||!e.current)return;let c=e.current;return c.addEventListener(t,o,i),()=>{c.removeEventListener(t,o,i)}},[e,t,i,u])}function Vu(e,t){let{id:n,"aria-label":i,"aria-labelledby":o}=e;return n=Ar(n),o&&i?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!i&&!o&&t&&(i=t),{id:n,"aria-label":i,"aria-labelledby":o}}const IN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),FN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function jN(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),i=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(i)return i.direction==="rtl";if(n.script)return IN.has(n.script)}let t=e.split("-")[0];return FN.has(t)}const aS=Symbol.for("react-aria.i18n.locale");function iS(){let e=typeof window<"u"&&window[aS]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:jN(e)?"rtl":"ltr"}}let Ih=iS(),gu=new Set;function C4(){Ih=iS();for(let e of gu)e(Ih)}function zN(){let e=I0(),[t,n]=b.useState(Ih);return b.useEffect(()=>(gu.size===0&&window.addEventListener("languagechange",C4),gu.add(n),()=>{gu.delete(n),gu.size===0&&window.removeEventListener("languagechange",C4)}),[]),e?{locale:typeof window<"u"&&window[aS]||"en-US",direction:"ltr"}:t}const UN=ve.createContext(null);function un(){let e=zN();return b.useContext(UN)||e}const HN=Symbol.for("react-aria.i18n.locale"),VN=Symbol.for("react-aria.i18n.strings");let Ec;class Ki{constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,i])=>i)),this.defaultLocale=n}getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=GN(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[HN];if(Ec===void 0){let o=window[VN];if(!o)return null;Ec={};for(let u in o)Ec[u]=new Ki({[n]:o[u]},n)}let i=Ec?.[t];if(!i)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return i}}function GN(e,t,n="en-US"){if(t[e])return t[e];let i=ZN(e);if(t[i])return t[i];for(let o in t)if(o.startsWith(i+"-"))return t[o];return t[n]}function ZN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const A4=new Map,w4=new Map;class oS{constructor(t,n){this.locale=t,this.strings=n}format(t,n){let i=this.strings.getStringForLocale(t,this.locale);return typeof i=="function"?i(n,this):i}plural(t,n,i="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let u=this.locale+":"+i,c=A4.get(u);c||(c=new Intl.PluralRules(this.locale,{type:i}),A4.set(u,c));let d=c.select(t);return o=n[d]||n.other,typeof o=="function"?o():o}number(t){let n=w4.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),w4.set(this.locale,n)),n.format(t)}select(t,n){let i=t[n]||t.other;return typeof i=="function"?i():i}}const T4=new WeakMap;function YN(e){let t=T4.get(e);return t||(t=new Ki(e),T4.set(e,t)),t}function lS(e,t){return t&&Ki.getGlobalDictionaryForPackage(t)||YN(e)}function Xa(e,t){let{locale:n}=un(),i=lS(e,t);return b.useMemo(()=>new oS(n,i),[n,i])}const qN=typeof document<"u"?ve.useInsertionEffect??ve.useLayoutEffect:()=>{};function Au(e,t,n){let[i,o]=b.useState(e||t),u=b.useRef(i),c=b.useRef(e!==void 0),d=e!==void 0;b.useEffect(()=>{c.current,c.current=d},[d]);let m=d?e:i;qN(()=>{u.current=m});let[,h]=b.useReducer(()=>({}),{}),y=b.useCallback((g,...E)=>{let S=typeof g=="function"?g(u.current):g;Object.is(u.current,S)||(u.current=S,o(S),h(),n?.(S,...E))},[n]);return[m,y]}let za=new Map,Fh=new Set;function N4(){if(typeof window>"u")return;function e(i){return"propertyName"in i}let t=i=>{let o=Pe(i);if(!e(i)||!o)return;let u=za.get(o);u||(u=new Set,za.set(o,u),o.addEventListener("transitioncancel",n,{once:!0})),u.add(i.propertyName)},n=i=>{let o=Pe(i);if(!e(i)||!o)return;let u=za.get(o);if(u&&(u.delete(i.propertyName),u.size===0&&(o.removeEventListener("transitioncancel",n),za.delete(o)),za.size===0)){for(let c of Fh)c();Fh.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?N4():document.addEventListener("DOMContentLoaded",N4));function KN(){for(const[e]of za)"isConnected"in e&&!e.isConnected&&za.delete(e)}function uS(e){requestAnimationFrame(()=>{KN(),za.size===0?e():Fh.add(e)})}function wu(e){if(!e.isConnected)return;const t=nt(e);if(zd()==="virtual"){let n=St(t);uS(()=>{const i=St(t);(i===n||i===t.body)&&e.isConnected&&Bi(e)})}else Bi(e)}function sS(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:o}=e;const u=b.useCallback(m=>{if(Pe(m)===m.currentTarget)return i&&i(m),o&&o(!1),!0},[i,o]),c=KE(u),d=b.useCallback(m=>{let h=Pe(m);const y=nt(h),g=y?St(y):St();h===m.currentTarget&&h===g&&(n&&n(m),o&&o(!0),c(m))},[o,n,c]);return{focusProps:{onFocus:!t&&(n||o||i)?d:void 0,onBlur:!t&&(i||o)?u:void 0}}}function M4(e){if(!e)return;let t=!0;return n=>{let i={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1,typeof n.continuePropagation=="function"&&n.continuePropagation()},isPropagationStopped(){return t}};e(i),t&&n.stopPropagation()}}function WN(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:M4(e.onKeyDown),onKeyUp:M4(e.onKeyUp)}}}function cS(e,t){ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let QN=ve.createContext(null);function JN(e){let t=b.useContext(QN)||{};cS(t,e);let{ref:n,...i}=t;return i}function XN(e,t){let{focusProps:n}=sS(e),{keyboardProps:i}=WN(e),o=pt(n,i),u=JN(t),c=e.isDisabled?{}:u,d=b.useRef(e.autoFocus);b.useEffect(()=>{d.current&&t.current&&wu(t.current),d.current=!1},[t]);let m=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(m=void 0),{focusableProps:pt({...o,tabIndex:m},c)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const dS=b.createContext(!1);function fS(e){let t=(n,i)=>b.useContext(dS)?null:e(n,i);return t.displayName=e.displayName||e.name,b.forwardRef(t)}function e8(){return b.useContext(dS)}var mS=lE();const t8=oE(mS),n8=new Set(["id"]),r8=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),a8=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),i8=new Set(["dir","lang","hidden","inert","translate"]),R4=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),o8=/^(data-.*)$/;function sn(e,t={}){let{labelable:n,isLink:i,global:o,events:u=o,propNames:c}=t,d={};for(const m in e)Object.prototype.hasOwnProperty.call(e,m)&&(n8.has(m)||n&&r8.has(m)||i&&a8.has(m)||o&&i8.has(m)||u&&(R4.has(m)||m.endsWith("Capture")&&R4.has(m.slice(0,-7)))||c?.has(m)||o8.test(m))&&(d[m]=e[m]);return d}let Ho="default",jh="",zc=new WeakMap;function l8(e){if(Hu()){if(Ho==="default"){const t=nt(e);jh=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ho="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";zc.set(e,e.style[t]),e.style[t]="none"}}function O4(e){if(Hu()){if(Ho!=="disabled")return;Ho="restoring",setTimeout(()=>{uS(()=>{if(Ho==="restoring"){const t=nt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=jh||""),jh="",Ho="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&zc.has(e)){let t=zc.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),zc.delete(e)}}function k4(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let Bp=new WeakMap;function pS(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return k4(t);if(Bp.has(t))return Bp.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),i=n&&n instanceof hn(n).HTMLMetaElement&&(n.nonce||n.content)||k4(t)||void 0;return i!==void 0&&Bp.set(t,i),i}const Z0=ve.createContext({register:()=>{}});Z0.displayName="PressResponderContext";function Ud(){let e=b.useRef(new Map),t=b.useCallback((o,u,c,d)=>{let m=d?.once?(...h)=>{e.current.delete(c),c(...h)}:c;e.current.set(c,{type:u,eventTarget:o,fn:m,options:d}),o.addEventListener(u,m,d)},[]),n=b.useCallback((o,u,c,d)=>{let m=e.current.get(c)?.fn||c;o.removeEventListener(u,m,d),e.current.delete(c)},[]),i=b.useCallback(()=>{e.current.forEach((o,u)=>{n(o.eventTarget,o.type,u,o.options)})},[n]);return b.useEffect(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function u8(e){let t=b.useContext(Z0);if(t){let{register:n,ref:i,...o}=t;e=pt(o,e),n()}return cS(t,e.ref),e}class Sc{#e;constructor(t,n,i,o){this.#e=!0;const c=(o?.target??i.currentTarget)?.getBoundingClientRect();let d,m=0,h,y=null;i.clientX!=null&&i.clientY!=null&&(h=i.clientX,y=i.clientY),c&&(h!=null&&y!=null?(d=h-c.left,m=y-c.top):(d=c.width/2,m=c.height/2)),this.type=t,this.pointerType=n,this.target=i.currentTarget,this.shiftKey=i.shiftKey,this.metaKey=i.metaKey,this.ctrlKey=i.ctrlKey,this.altKey=i.altKey,this.x=d,this.y=m,this.key=i.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const B4=Symbol("linkClicked"),L4="react-aria-pressable-style",P4="data-react-aria-pressable";function Y0(e){let{onPress:t,onPressChange:n,onPressStart:i,onPressEnd:o,onPressUp:u,onClick:c,isDisabled:d,isPressed:m,preventFocusOnPress:h,shouldCancelOnPointerExit:y,allowTextSelectionOnPress:g,ref:E,...S}=u8(e),[D,x]=b.useState(!1),w=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:R,removeAllGlobalListeners:I}=Ud(),A=b.useCallback((j,de)=>{let k=w.current;if(d||k.didFirePressStart)return!1;let B=!0;if(k.isTriggeringEvent=!0,i){let X=new Sc("pressstart",de,j);i(X),B=X.shouldStopPropagation}return n&&n(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,x(!0),B},[d,i,n]),L=b.useCallback((j,de,k=!0)=>{let B=w.current;if(!B.didFirePressStart)return!1;B.didFirePressStart=!1,B.isTriggeringEvent=!0;let X=!0;if(o){let F=new Sc("pressend",de,j);o(F),X=F.shouldStopPropagation}if(n&&n(!1),x(!1),t&&k&&!d){let F=new Sc("press",de,j);t(F),X&&=F.shouldStopPropagation}return B.isTriggeringEvent=!1,X},[d,o,n,t]),M=Zt(L),Z=b.useCallback((j,de)=>{let k=w.current;if(d)return!1;if(u){k.isTriggeringEvent=!0;let B=new Sc("pressup",de,j);return u(B),k.isTriggeringEvent=!1,B.shouldStopPropagation}return!0},[d,u]),V=Zt(Z),fe=b.useCallback(j=>{let de=w.current;if(de.isPressed&&de.target){de.didFirePressStart&&de.pointerType!=null&&L(Ei(de.target,j),de.pointerType,!1),de.isPressed=!1,de.isOverTarget=!1,de.activePointerId=null,de.pointerType=null,I(),g||O4(de.target);for(let k of de.disposables)k();de.disposables=[]}},[g,I,L]),ne=Zt(fe);b.useEffect(()=>{d&&w.current.isPressed&&ne({currentTarget:w.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[d]);let pe=b.useCallback(j=>{y&&fe(j)},[y,fe]),J=b.useCallback(j=>{d||c?.(j)},[d,c]),ye=b.useCallback((j,de)=>{if(!d&&c){let k=new MouseEvent("click",j);qE(k,de),c(H0(k))}},[d,c]),Ae=b.useMemo(()=>{let j=w.current,de={onKeyDown(B){if(Lp(B.nativeEvent,B.currentTarget)&&ot(B.currentTarget,Pe(B))){I4(Pe(B),B.key)&&B.preventDefault();let X=!0;!j.isPressed&&!B.repeat&&(j.target=B.currentTarget,j.isPressed=!0,j.pointerType="keyboard",X=A(B,"keyboard"));let F=B.currentTarget,G=C=>{Lp(C,F)&&!C.repeat&&ot(F,Pe(C))&&j.target&&V(Ei(j.target,C),"keyboard")};R(nt(B.currentTarget),"keyup",Pd(G,k),!0),X&&B.stopPropagation(),B.metaKey&&il()&&j.metaKeyEvents?.set(B.key,B.nativeEvent)}else B.key==="Meta"&&(j.metaKeyEvents=new Map)},onClick(B){if(!(B&&!ot(B.currentTarget,Pe(B)))&&B&&B.button===0&&!j.isTriggeringEvent&&!Li.isOpening){let X=!0;if(d&&B.preventDefault(),!j.ignoreEmulatedMouseEvents&&!j.isPressed&&(j.pointerType==="virtual"||XE(B.nativeEvent))){let F=A(B,"virtual"),G=V(B,"virtual"),C=M(B,"virtual");J(B),X=F&&G&&C}else if(j.isPressed&&j.pointerType!=="keyboard"){let F=j.pointerType||B.nativeEvent.pointerType||"virtual",G=V(Ei(B.currentTarget,B),F),C=M(Ei(B.currentTarget,B),F,!0);X=G&&C,j.isOverTarget=!1,J(B),ne(B)}j.ignoreEmulatedMouseEvents=!1,X&&B.stopPropagation()}}},k=B=>{if(j.isPressed&&j.target&&Lp(B,j.target)){I4(Pe(B),B.key)&&B.preventDefault();let X=Pe(B),F=ot(j.target,X);M(Ei(j.target,B),"keyboard",F),F&&ye(B,j.target),I(),B.key!=="Enter"&&q0(j.target)&&ot(j.target,X)&&!B[B4]&&(B[B4]=!0,Li(j.target,B,!1)),j.isPressed=!1,j.metaKeyEvents?.delete(B.key)}else if(B.key==="Meta"&&j.metaKeyEvents?.size){let X=j.metaKeyEvents;j.metaKeyEvents=void 0;for(let F of X.values())j.target?.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent<"u"){de.onPointerDown=F=>{if(F.button!==0||!ot(F.currentTarget,Pe(F)))return;if(wN(F.nativeEvent)){j.pointerType="virtual";return}j.pointerType=F.pointerType;let G=!0;if(!j.isPressed){j.isPressed=!0,j.isOverTarget=!0,j.activePointerId=F.pointerId,j.target=F.currentTarget,g||l8(j.target),G=A(F,j.pointerType);let C=Pe(F);"releasePointerCapture"in C&&("hasPointerCapture"in C?C.hasPointerCapture(F.pointerId)&&C.releasePointerCapture(F.pointerId):C.releasePointerCapture(F.pointerId)),R(nt(F.currentTarget),"pointerup",B,!1),R(nt(F.currentTarget),"pointercancel",X,!1)}G&&F.stopPropagation()},de.onMouseDown=F=>{if(ot(F.currentTarget,Pe(F))&&F.button===0){if(h){let G=xN(F.target);G&&j.disposables.push(G)}F.stopPropagation()}},de.onPointerUp=F=>{!ot(F.currentTarget,Pe(F))||j.pointerType==="virtual"||F.button===0&&!j.isPressed&&V(F,j.pointerType||F.pointerType)},de.onPointerEnter=F=>{F.pointerId===j.activePointerId&&j.target&&!j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!0,A(Ei(j.target,F),j.pointerType))},de.onPointerLeave=F=>{F.pointerId===j.activePointerId&&j.target&&j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!1,M(Ei(j.target,F),j.pointerType,!1),pe(F))};let B=F=>{if(F.pointerId===j.activePointerId&&j.isPressed&&F.button===0&&j.target){if(ot(j.target,Pe(F))&&j.pointerType!=null){let G=!1,C=setTimeout(()=>{j.isPressed&&j.target instanceof HTMLElement&&(G?ne(F):(Bi(j.target),j.target.click()))},80);R(F.currentTarget,"click",()=>G=!0,!0),j.disposables.push(()=>clearTimeout(C))}else ne(F);j.isOverTarget=!1}},X=F=>{ne(F)};de.onDragStart=F=>{ot(F.currentTarget,Pe(F))&&ne(F)}}return de},[R,d,h,I,g,pe,A,J,ye]);return b.useEffect(()=>{if(!E)return;const j=nt(E.current);if(!j||!j.head||j.getElementById(L4))return;const de=j.createElement("style");de.id=L4;let k=pS(j);k&&(de.nonce=k),de.textContent=`
71
+ */var b4;function U7(){if(b4)return ut;b4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function A(M){if(typeof M=="object"&&M!==null){var Z=M.$$typeof;switch(Z){case t:switch(M=M.type,M){case m:case h:case i:case s:case o:case g:return M;default:switch(M=M&&M.$$typeof,M){case d:case y:case D:case S:case c:return M;default:return Z}}case n:return Z}}}function L(M){return A(M)===h}return ut.AsyncMode=m,ut.ConcurrentMode=h,ut.ContextConsumer=d,ut.ContextProvider=c,ut.Element=t,ut.ForwardRef=y,ut.Fragment=i,ut.Lazy=D,ut.Memo=S,ut.Portal=n,ut.Profiler=s,ut.StrictMode=o,ut.Suspense=g,ut.isAsyncMode=function(M){return L(M)||A(M)===m},ut.isConcurrentMode=L,ut.isContextConsumer=function(M){return A(M)===d},ut.isContextProvider=function(M){return A(M)===c},ut.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},ut.isForwardRef=function(M){return A(M)===y},ut.isFragment=function(M){return A(M)===i},ut.isLazy=function(M){return A(M)===D},ut.isMemo=function(M){return A(M)===S},ut.isPortal=function(M){return A(M)===n},ut.isProfiler=function(M){return A(M)===s},ut.isStrictMode=function(M){return A(M)===o},ut.isSuspense=function(M){return A(M)===g},ut.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===i||M===h||M===s||M===o||M===g||M===E||typeof M=="object"&&M!==null&&(M.$$typeof===D||M.$$typeof===S||M.$$typeof===c||M.$$typeof===d||M.$$typeof===y||M.$$typeof===w||M.$$typeof===R||M.$$typeof===I||M.$$typeof===x)},ut.typeOf=A,ut}var v4;function H7(){return v4||(v4=1,Ap.exports=U7()),Ap.exports}var wp,_4;function V7(){if(_4)return wp;_4=1;var e=H7(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=o;function c(D){return e.isMemo(D)?o:s[D.$$typeof]||t}var d=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,E=Object.prototype;function S(D,x,w){if(typeof x!="string"){if(E){var R=g(x);R&&R!==E&&S(D,R,w)}var I=m(x);h&&(I=I.concat(h(x)));for(var A=c(D),L=c(x),M=0;M<I.length;++M){var Z=I[M];if(!n[Z]&&!(w&&w[Z])&&!(L&&L[Z])&&!(A&&A[Z])){var V=y(x,Z);try{d(D,Z,V)}catch{}}}}return D}return wp=S,wp}V7();const G7=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,E4={componentStack:null,error:null,eventId:null};class P0 extends b.Component{constructor(t){super(t),P0.prototype.__init.call(this),this.state=E4,this._openFallbackReportDialog=!0;const n=Yt();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",i=>{!i.type&&this._lastEventId&&i.event_id===this._lastEventId&&y4({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:i}=n,o=i??void 0,{beforeCapture:s,onError:c,showDialog:d,dialogOptions:m}=this.props;M0(h=>{s&&s(h,t,o);const y=this.props.handled!=null?this.props.handled:!!this.props.fallback,g=z7(t,n,{mechanism:{handled:y}});c&&c(t,o,g),d&&(this._lastEventId=g,this._openFallbackReportDialog&&y4({...m,eventId:g})),this.setState({error:t,componentStack:i,eventId:g})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:i}=this.state,{onUnmount:o}=this.props;o&&o(t,n,i),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:i,eventId:o}=this.state;t&&t(n,i,o),this.setState(E4)}}render(){const{fallback:t,children:n}=this.props,i=this.state;if(i.error){let o;return typeof t=="function"?o=b.createElement(t,{error:i.error,componentStack:i.componentStack,resetError:this.resetErrorBoundary,eventId:i.eventId}):o=t,b.isValidElement(o)?o:(t&&G7&&je.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function Un({id:e,label:t,hint:n,error:i,required:o,className:s,children:c}){const d=e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),m=["form-field",d?`form-field--${d}`:null,s].filter(Boolean).join(" ");return v.jsxs("div",{className:m,"data-field-id":e,children:[v.jsxs("label",{htmlFor:e,className:"form-label form-field__label",children:[t,o&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-red-600","aria-hidden":"true",children:[" ","*"]}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),c,n&&v.jsx("p",{id:`${e}-hint`,className:"form-field__hint mt-1 text-sm text-slate-500",children:n}),i&&v.jsx("p",{id:`${e}-error`,className:"form-field__error mt-1 text-sm text-red-600",children:i})]})}function jc({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...c,type:"text"})})}function S4(e,t){if(!e)return"";const n=parseInt(e,10);if(isNaN(n))return"";const i=n.toLocaleString("en-US");return t?`$${i}`:i}function Z7({id:e,label:t,hint:n,error:i,required:o,className:s,value:c,onChange:d,onKeyDown:m,isCurrency:h=!1,maxDigits:y,...g}){const[E,S]=b.useState(""),D=b.useRef(null);b.useEffect(()=>{if(c==null||c===""){S("");return}const R=String(c).replace(/\D/g,"");S(S4(R,h))},[c,h]);const x=R=>{let I=R.target.value.replace(/\D/g,"");y!==void 0&&(I=I.slice(0,y)),S(S4(I,h));const A={...R,currentTarget:{...R.currentTarget,value:I},target:{...R.target,value:I}};d?.(A)},w=R=>{if(["-","+",".","e","E"].includes(R.key)){R.preventDefault();return}if(y!==void 0&&/^\d$/.test(R.key)&&R.currentTarget.value.replace(/\D/g,"").length>=y){R.preventDefault();return}m?.(R)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{ref:D,id:e,type:"text",inputMode:"numeric",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,value:E,onChange:x,onKeyDown:w,...g})})}function D4(e){return e.length<=3?e:e.length<=5?`${e.slice(0,3)}-${e.slice(3)}`:`${e.slice(0,3)}-${e.slice(3,5)}-${e.slice(5,9)}`}function Y7({id:e,label:t,hint:n,error:i,required:o,className:s,value:c="",onChange:d,...m}){const[h,y]=b.useState(""),g=b.useRef(null);b.useEffect(()=>{const S=c.replace(/\D/g,"").slice(0,9);y(D4(S))},[c]);const E=S=>{const D=S.target.value,x=S.target.selectionStart??0,w=D.replace(/\D/g,"").slice(0,9),R=D4(w);y(R);const I={...S,currentTarget:{...S.currentTarget,value:R},target:{...S.target,value:R}};d?.(I),setTimeout(()=>{if(g.current){const A=D.slice(0,x).replace(/\D/g,"").length;let L=A;A>5?L+=2:A>3&&(L+=1),g.current.setSelectionRange(L,L)}},0)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{ref:g,id:e,type:"text",inputMode:"numeric",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,maxLength:11,placeholder:"XXX-XX-XXXX",autoComplete:"off",value:h,onChange:E,...m})})}function Tp({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,type:"number",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...c})})}function q7({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,type:"email",className:`form-input ${i?"input-error":""}`,inputMode:"email",autoComplete:"email",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function Np(e){const t=e.replace(/\D/g,"");if(t.length===10)return`(${t.slice(0,3)}) ${t.slice(3,6)} - ${t.slice(6)}`;if(t.length>10){const n=t.slice(0,10);return`(${n.slice(0,3)}) ${n.slice(3,6)} - ${n.slice(6)}`}return t.length>=6?`(${t.slice(0,3)}) ${t.slice(3,6)} - ${t.slice(6)}`:t.length>=3?`(${t.slice(0,3)}) ${t.slice(3)}`:t.length>0?`(${t}`:t}function Mp(e){return e.replace(/\D/g,"")}function zE({id:e,label:t,hint:n,error:i,required:o,className:s,value:c="",onChange:d,...m}){const[h,y]=b.useState(""),g=b.useRef(null),E=b.useRef(0);b.useEffect(()=>{if(!c){y("");return}let D=Mp(c);D.length===11&&D.startsWith("1")&&(D=D.slice(1));const x=D.slice(0,10);y(Np(x))},[c]);const S=D=>{const x=D.target,w=x.value;E.current=x.selectionStart||0;const I=Mp(w).slice(0,10),A=Np(I);y(A);const L=I.length===10?`+1${I}`:I,M={...D,currentTarget:{...D.currentTarget,value:L},target:{...D.target,value:L}};d?.(M),setTimeout(()=>{if(g.current){const Z=w.slice(0,E.current),V=Mp(Z),fe=Np(V),ne=Math.min(fe.length,A.length);g.current.setSelectionRange(ne,ne)}},0)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsxs("div",{className:`tel-input-wrapper flex items-center border rounded-lg transition-colors w-full relative ${i?"border-red-500 error":"border-[var(--accent-color)] focus-within:border-[var(--primary-color)]"}`,children:[v.jsx("label",{htmlFor:e,className:"px-3 py-3 text-slate-700 font-medium border-r border-[var(--accent-color)] bg-slate-50 flex-shrink-0 relative z-0 rounded-l-lg",children:"+1"}),v.jsx("input",{ref:g,id:e,type:"tel",className:`flex-1 px-4 py-3 border-0 rounded-r-lg outline-none bg-transparent text-[var(--text-primary)] text-base ${i?"input-error":""}`,inputMode:"tel",autoComplete:"tel",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,value:h,onChange:S,...m})]})})}function K7({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,type:"url",className:`form-input ${i?"input-error":""}`,inputMode:"url",autoComplete:"url",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function W7({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,type:"password",className:`form-input ${i?"input-error":""}`,autoComplete:"current-password",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function Q7({id:e,label:t,hint:n,error:i,required:o,className:s,rows:c=4,...d}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("textarea",{id:e,rows:c,className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...d})})}function Pd(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ct=typeof document<"u"?ve.useLayoutEffect:()=>{},UE={prefix:String(Math.round(Math.random()*1e10)),current:0},HE=ve.createContext(UE),J7=ve.createContext(!1);let Rp=new WeakMap;function X7(e=!1){let t=b.useContext(HE),n=b.useRef(null);if(n.current===null&&!e){let i=ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(i){let o=Rp.get(i);o==null?Rp.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,Rp.delete(i))}n.current=++t.current}return n.current}function eN(e){let t=b.useContext(HE),n=X7(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function tN(e){let t=ve.useId(),[n]=b.useState(I0()),i=n?"react-aria":`react-aria${UE.prefix}`;return e||`${i}-${t}`}const nN=typeof ve.useId=="function"?tN:eN;function rN(){return!1}function aN(){return!0}function iN(e){return()=>{}}function I0(){return typeof ve.useSyncExternalStore=="function"?ve.useSyncExternalStore(iN,rN,aN):b.useContext(J7)}function oN(e){let[t,n]=b.useState(e),i=b.useRef(t),o=b.useRef(null),s=b.useRef(()=>{if(!o.current)return;let d=o.current.next();if(d.done){o.current=null;return}i.current===d.value?s.current():n(d.value)});ct(()=>{i.current=t,o.current&&s.current()});let c=b.useCallback(d=>{o.current=d(i.current),s.current()},[s]);return[t,c]}let lN=!!(typeof window<"u"&&window.document&&window.document.createElement),Zo=new Map,ys;typeof FinalizationRegistry<"u"&&(ys=new FinalizationRegistry(e=>{Zo.delete(e)}));function Ar(e){let[t,n]=b.useState(e),i=b.useRef(null),o=nN(t),s=b.useRef(null);if(ys&&ys.register(s,o),lN){const c=Zo.get(o);c&&!c.includes(i)?c.push(i):Zo.set(o,[i])}return ct(()=>{let c=o;return()=>{ys&&ys.unregister(s),Zo.delete(c)}},[o]),b.useEffect(()=>{let c=i.current;return c&&n(c),()=>{c&&(i.current=null)}}),o}function sN(e,t){if(e===t)return e;let n=Zo.get(e);if(n)return n.forEach(o=>o.current=t),t;let i=Zo.get(t);return i?(i.forEach(o=>o.current=e),e):t}function rd(e=[]){let t=Ar(),[n,i]=oN(t),o=b.useCallback(()=>{i(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,i]);return ct(o,[t,o,...e]),n}function F0(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const i=e.map(o=>{const s=$4(o,t);return n||=typeof s=="function",s});if(n)return()=>{i.forEach((o,s)=>{typeof o=="function"?o():$4(e[s],null)})}}}function $4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function VE(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=VE(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function uN(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=VE(e))&&(i&&(i+=" "),i+=t);return i}function pt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let i=e[n];for(let o in i){let s=t[o],c=i[o];typeof s=="function"&&typeof c=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Pd(s,c):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof c=="string"?t[o]=uN(s,c):o==="id"&&s&&c?t.id=sN(s,c):o==="ref"&&s&&c?t.ref=F0(s,c):t[o]=c!==void 0?c:s}}return t}function GE(e){const t=b.useRef(null),n=b.useRef(void 0),i=b.useCallback(o=>{if(typeof e=="function"){const s=e,c=s(o);return()=>{typeof c=="function"?c():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return b.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=i(o))}}),[i])}const Oh=Symbol("default");function Id({values:e,children:t}){for(let[n,i]of e)t=ve.createElement(n.Provider,{value:i},t);return t}function la(e){let{className:t,style:n,children:i,defaultClassName:o,defaultChildren:s,defaultStyle:c,values:d,render:m}=e;return b.useMemo(()=>{let h,y,g;return typeof t=="function"?h=t({...d,defaultClassName:o}):h=t,typeof n=="function"?y=n({...d,defaultStyle:c||{}}):y=n,typeof i=="function"?g=i({...d,defaultChildren:s}):i==null?g=s:g=i,{className:h??o,style:y||c?{...c,...y}:void 0,children:g??s,"data-rac":"",render:m?E=>m(E,d):void 0}},[t,n,i,o,s,c,d,m])}function ad(e,t){let n=b.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let i=t||Oh;if(!n.slots[i]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(c=>`"${c}"`)),s=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${s} Valid slot names are ${o}.`)}return n.slots[i]}return n}function sa(e,t,n){let i=ad(n,e.slot)||{},{ref:o,...s}=i,c=GE(b.useMemo(()=>F0(t,o),[t,o])),d=pt(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?d.style=m=>{let h=typeof s.style=="function"?s.style(m):s.style,y={...m.defaultStyle,...h},g=typeof e.style=="function"?e.style({...m,defaultStyle:y}):e.style;return{...y,...g}}:d.style={...s.style,...e.style}),[d,c]}function cN(e=!0){let[t,n]=b.useState(e),i=b.useRef(!1),o=b.useCallback(s=>{i.current=!0,n(!!s)},[]);return ct(()=>{i.current||n(!1)},[]),[o,t]}function dN(e){const t=/^(data-.*)$/;let n={};for(const i in e)t.test(i)||(n[i]=e[i]);return n}function fN(e,t,n){let{render:i,...o}=t,s=b.useRef(null),c=b.useMemo(()=>F0(n,s),[n,s]);ct(()=>{},[e,i]);let d={...o,ref:c};return i?i(d,void 0):ve.createElement(e,d)}const x4={},wn=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=x4[t];return n||(n=b.forwardRef(fN.bind(null,t)),x4[t]=n),n}}),nt=e=>e?.ownerDocument??document,hn=e=>e&&"window"in e&&e.window===e?e:nt(e).defaultView||window;function mN(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function pN(e){return mN(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let hN=!1;function Xr(){return hN}function ot(e,t){if(!Xr())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:pN(n)?n=n.host:n=n.parentNode}return!1}const St=(e=document)=>{if(!Xr())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function Pe(e){if(Xr()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function j0(e){if(!e)return!1;let t=e.getRootNode(),n=hn(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let i=t.activeElement;return i!=null&&e.contains(i)}function Bi(e){if(yN())e.focus({preventScroll:!0});else{let t=gN(e);e.focus(),bN(t)}}let _c=null;function yN(){if(_c==null){_c=!1;try{document.createElement("div").focus({get preventScroll(){return _c=!0,!0}})}catch{}}return _c}function gN(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function bN(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}const vN=typeof Element<"u"&&"checkVisibility"in Element.prototype;function _N(e){const t=hn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:i}=e.style,o=n!=="none"&&i!=="hidden"&&i!=="collapse";if(o){const{getComputedStyle:s}=hn(e);let{display:c,visibility:d}=s(e);o=c!=="none"&&d!=="hidden"&&d!=="collapse"}return o}function EN(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function z0(e,t){return vN?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&_N(e)&&EN(e,t)&&(!e.parentElement||z0(e.parentElement,e))}const U0=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],SN=U0.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";U0.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const DN=U0.join(':not([hidden]):not([tabindex="-1"]),');function ZE(e,t){return e.matches(SN)&&!YE(e)&&(t?.skipVisibilityCheck||z0(e))}function $N(e){return e.matches(DN)&&z0(e)&&!YE(e)}function YE(e){let t=e;for(;t!=null;){if(t instanceof hn(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function H0(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function qE(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function KE(e){let t=b.useRef({isFocused:!1,observer:null});return ct(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),b.useCallback(n=>{let i=Pe(n);if(i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement){t.current.isFocused=!0;let o=i,s=c=>{if(t.current.isFocused=!1,o.disabled){let d=H0(c);e?.(d)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer?.disconnect();let c=o===St()?null:St();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let id=!1;function xN(e){for(;e&&!ZE(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=hn(e),n=t.document.activeElement;if(!n||n===e)return;id=!0;let i=!1,o=y=>{(Pe(y)===n||i)&&y.stopImmediatePropagation()},s=y=>{(Pe(y)===n||i)&&(y.stopImmediatePropagation(),!e&&!i&&(i=!0,Bi(n),m()))},c=y=>{(Pe(y)===e||i)&&y.stopImmediatePropagation()},d=y=>{(Pe(y)===e||i)&&(y.stopImmediatePropagation(),i||(i=!0,Bi(n),m()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",d,!0),t.addEventListener("focus",c,!0);let m=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",d,!0),t.removeEventListener("focus",c,!0),id=!1,i=!1},h=requestAnimationFrame(m);return m}function Fd(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function V0(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Ja(e){let t=null;return()=>(t==null&&(t=e()),t)}const il=Ja(function(){return V0(/^Mac/i)}),CN=Ja(function(){return V0(/^iPhone/i)}),WE=Ja(function(){return V0(/^iPad/i)||il()&&navigator.maxTouchPoints>1}),Hs=Ja(function(){return CN()||WE()}),QE=Ja(function(){return Fd(/AppleWebKit/i)&&!JE()}),JE=Ja(function(){return Fd(/Chrome/i)}),G0=Ja(function(){return Fd(/Android/i)}),AN=Ja(function(){return Fd(/Firefox/i)});function XE(e){return e.pointerType===""&&e.isTrusted?!0:G0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function wN(e){return!G0()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Li(e,t,n=!0){let{metaKey:i,ctrlKey:o,altKey:s,shiftKey:c}=t;AN()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(il()?i=!0:o=!0);let d=QE()&&il()&&!WE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Li.isOpening=n,Bi(e),e.dispatchEvent(d),Li.isOpening=!1}Li.isOpening=!1;let qi=null;const kh=new Set;let Ss=new Map,Pi=!1,Bh=!1;const TN={Tab:!0,Escape:!0};function jd(e,t){for(let n of kh)n(e,t)}function NN(e){return!(e.metaKey||!il()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function od(e){Pi=!0,!Li.isOpening&&NN(e)&&(qi="keyboard",jd("keyboard",e))}function Yo(e){qi="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Pi=!0,jd("pointer",e))}function eS(e){!Li.isOpening&&XE(e)&&(Pi=!0,qi="virtual")}function tS(e){let t=hn(Pe(e)),n=nt(Pe(e));Pe(e)===t||Pe(e)===n||id||!e.isTrusted||(!Pi&&!Bh&&(qi="virtual",jd("virtual",e)),Pi=!1,Bh=!1)}function nS(){id||(Pi=!1,Bh=!0)}function Lh(e){if(typeof window>"u"||typeof document>"u")return;const t=hn(e),n=nt(e);if(Ss.get(t))return;let i=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Pi=!0,i.apply(this,arguments)}}),n.addEventListener("keydown",od,!0),n.addEventListener("keyup",od,!0),n.addEventListener("click",eS,!0),t.addEventListener("focus",tS,!0),t.addEventListener("blur",nS,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Yo,!0),n.addEventListener("pointermove",Yo,!0),n.addEventListener("pointerup",Yo,!0)),t.addEventListener("beforeunload",()=>{rS(e)},{once:!0}),Ss.set(t,{focus:i})}const rS=(e,t)=>{const n=hn(e),i=nt(e);t&&i.removeEventListener("DOMContentLoaded",t),Ss.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Ss.get(n).focus}),i.removeEventListener("keydown",od,!0),i.removeEventListener("keyup",od,!0),i.removeEventListener("click",eS,!0),n.removeEventListener("focus",tS,!0),n.removeEventListener("blur",nS,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",Yo,!0),i.removeEventListener("pointermove",Yo,!0),i.removeEventListener("pointerup",Yo,!0)),Ss.delete(n))};function MN(e){const t=nt(e);let n;return t.readyState!=="loading"?Lh(e):(n=()=>{Lh(e)},t.addEventListener("DOMContentLoaded",n)),()=>rS(e,n)}typeof document<"u"&&MN();function Ph(){return qi!=="pointer"}function zd(){return qi}function RN(e){qi=e,jd(e,null)}const ON=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kN(e,t,n){let i=n?Pe(n):void 0,o=nt(i),s=hn(i);const c=typeof s<"u"?s.HTMLInputElement:HTMLInputElement,d=typeof s<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,m=typeof s<"u"?s.HTMLElement:HTMLElement,h=typeof s<"u"?s.KeyboardEvent:KeyboardEvent;let y=St(o);return e=e||y instanceof c&&!ON.has(y.type)||y instanceof d||y instanceof m&&y.isContentEditable,!(e&&t==="keyboard"&&n instanceof h&&!TN[n.key])}function BN(e,t,n){Lh(),b.useEffect(()=>{if(n?.enabled===!1)return;let i=(o,s)=>{kN(!!n?.isTextInput,o,s)&&e(Ph())};return kh.add(i),()=>{kh.delete(i)}},t)}const LN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Op(e){return e instanceof HTMLInputElement&&!LN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const PN=ve.useInsertionEffect??ct;function Zt(e){const t=b.useRef(null);return PN(()=>{t.current=e},[e]),b.useCallback((...n)=>{const i=t.current;return i?.(...n)},[])}function kp(e,t,n,i){let o=Zt(n),s=n==null;b.useEffect(()=>{if(s||!e.current)return;let c=e.current;return c.addEventListener(t,o,i),()=>{c.removeEventListener(t,o,i)}},[e,t,i,s])}function Vs(e,t){let{id:n,"aria-label":i,"aria-labelledby":o}=e;return n=Ar(n),o&&i?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!i&&!o&&t&&(i=t),{id:n,"aria-label":i,"aria-labelledby":o}}const IN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),FN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function jN(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),i=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(i)return i.direction==="rtl";if(n.script)return IN.has(n.script)}let t=e.split("-")[0];return FN.has(t)}const aS=Symbol.for("react-aria.i18n.locale");function iS(){let e=typeof window<"u"&&window[aS]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:jN(e)?"rtl":"ltr"}}let Ih=iS(),gs=new Set;function C4(){Ih=iS();for(let e of gs)e(Ih)}function zN(){let e=I0(),[t,n]=b.useState(Ih);return b.useEffect(()=>(gs.size===0&&window.addEventListener("languagechange",C4),gs.add(n),()=>{gs.delete(n),gs.size===0&&window.removeEventListener("languagechange",C4)}),[]),e?{locale:typeof window<"u"&&window[aS]||"en-US",direction:"ltr"}:t}const UN=ve.createContext(null);function sn(){let e=zN();return b.useContext(UN)||e}const HN=Symbol.for("react-aria.i18n.locale"),VN=Symbol.for("react-aria.i18n.strings");let Ec;class Ki{constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,i])=>i)),this.defaultLocale=n}getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=GN(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[HN];if(Ec===void 0){let o=window[VN];if(!o)return null;Ec={};for(let s in o)Ec[s]=new Ki({[n]:o[s]},n)}let i=Ec?.[t];if(!i)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return i}}function GN(e,t,n="en-US"){if(t[e])return t[e];let i=ZN(e);if(t[i])return t[i];for(let o in t)if(o.startsWith(i+"-"))return t[o];return t[n]}function ZN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const A4=new Map,w4=new Map;class oS{constructor(t,n){this.locale=t,this.strings=n}format(t,n){let i=this.strings.getStringForLocale(t,this.locale);return typeof i=="function"?i(n,this):i}plural(t,n,i="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let s=this.locale+":"+i,c=A4.get(s);c||(c=new Intl.PluralRules(this.locale,{type:i}),A4.set(s,c));let d=c.select(t);return o=n[d]||n.other,typeof o=="function"?o():o}number(t){let n=w4.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),w4.set(this.locale,n)),n.format(t)}select(t,n){let i=t[n]||t.other;return typeof i=="function"?i():i}}const T4=new WeakMap;function YN(e){let t=T4.get(e);return t||(t=new Ki(e),T4.set(e,t)),t}function lS(e,t){return t&&Ki.getGlobalDictionaryForPackage(t)||YN(e)}function Xa(e,t){let{locale:n}=sn(),i=lS(e,t);return b.useMemo(()=>new oS(n,i),[n,i])}const qN=typeof document<"u"?ve.useInsertionEffect??ve.useLayoutEffect:()=>{};function As(e,t,n){let[i,o]=b.useState(e||t),s=b.useRef(i),c=b.useRef(e!==void 0),d=e!==void 0;b.useEffect(()=>{c.current,c.current=d},[d]);let m=d?e:i;qN(()=>{s.current=m});let[,h]=b.useReducer(()=>({}),{}),y=b.useCallback((g,...E)=>{let S=typeof g=="function"?g(s.current):g;Object.is(s.current,S)||(s.current=S,o(S),h(),n?.(S,...E))},[n]);return[m,y]}let za=new Map,Fh=new Set;function N4(){if(typeof window>"u")return;function e(i){return"propertyName"in i}let t=i=>{let o=Pe(i);if(!e(i)||!o)return;let s=za.get(o);s||(s=new Set,za.set(o,s),o.addEventListener("transitioncancel",n,{once:!0})),s.add(i.propertyName)},n=i=>{let o=Pe(i);if(!e(i)||!o)return;let s=za.get(o);if(s&&(s.delete(i.propertyName),s.size===0&&(o.removeEventListener("transitioncancel",n),za.delete(o)),za.size===0)){for(let c of Fh)c();Fh.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?N4():document.addEventListener("DOMContentLoaded",N4));function KN(){for(const[e]of za)"isConnected"in e&&!e.isConnected&&za.delete(e)}function sS(e){requestAnimationFrame(()=>{KN(),za.size===0?e():Fh.add(e)})}function ws(e){if(!e.isConnected)return;const t=nt(e);if(zd()==="virtual"){let n=St(t);sS(()=>{const i=St(t);(i===n||i===t.body)&&e.isConnected&&Bi(e)})}else Bi(e)}function uS(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:o}=e;const s=b.useCallback(m=>{if(Pe(m)===m.currentTarget)return i&&i(m),o&&o(!1),!0},[i,o]),c=KE(s),d=b.useCallback(m=>{let h=Pe(m);const y=nt(h),g=y?St(y):St();h===m.currentTarget&&h===g&&(n&&n(m),o&&o(!0),c(m))},[o,n,c]);return{focusProps:{onFocus:!t&&(n||o||i)?d:void 0,onBlur:!t&&(i||o)?s:void 0}}}function M4(e){if(!e)return;let t=!0;return n=>{let i={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1,typeof n.continuePropagation=="function"&&n.continuePropagation()},isPropagationStopped(){return t}};e(i),t&&n.stopPropagation()}}function WN(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:M4(e.onKeyDown),onKeyUp:M4(e.onKeyUp)}}}function cS(e,t){ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let QN=ve.createContext(null);function JN(e){let t=b.useContext(QN)||{};cS(t,e);let{ref:n,...i}=t;return i}function XN(e,t){let{focusProps:n}=uS(e),{keyboardProps:i}=WN(e),o=pt(n,i),s=JN(t),c=e.isDisabled?{}:s,d=b.useRef(e.autoFocus);b.useEffect(()=>{d.current&&t.current&&ws(t.current),d.current=!1},[t]);let m=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(m=void 0),{focusableProps:pt({...o,tabIndex:m},c)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const dS=b.createContext(!1);function fS(e){let t=(n,i)=>b.useContext(dS)?null:e(n,i);return t.displayName=e.displayName||e.name,b.forwardRef(t)}function e8(){return b.useContext(dS)}var mS=lE();const t8=oE(mS),n8=new Set(["id"]),r8=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),a8=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),i8=new Set(["dir","lang","hidden","inert","translate"]),R4=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),o8=/^(data-.*)$/;function un(e,t={}){let{labelable:n,isLink:i,global:o,events:s=o,propNames:c}=t,d={};for(const m in e)Object.prototype.hasOwnProperty.call(e,m)&&(n8.has(m)||n&&r8.has(m)||i&&a8.has(m)||o&&i8.has(m)||s&&(R4.has(m)||m.endsWith("Capture")&&R4.has(m.slice(0,-7)))||c?.has(m)||o8.test(m))&&(d[m]=e[m]);return d}let Ho="default",jh="",zc=new WeakMap;function l8(e){if(Hs()){if(Ho==="default"){const t=nt(e);jh=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ho="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";zc.set(e,e.style[t]),e.style[t]="none"}}function O4(e){if(Hs()){if(Ho!=="disabled")return;Ho="restoring",setTimeout(()=>{sS(()=>{if(Ho==="restoring"){const t=nt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=jh||""),jh="",Ho="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&zc.has(e)){let t=zc.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),zc.delete(e)}}function k4(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let Bp=new WeakMap;function pS(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return k4(t);if(Bp.has(t))return Bp.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),i=n&&n instanceof hn(n).HTMLMetaElement&&(n.nonce||n.content)||k4(t)||void 0;return i!==void 0&&Bp.set(t,i),i}const Z0=ve.createContext({register:()=>{}});Z0.displayName="PressResponderContext";function Ud(){let e=b.useRef(new Map),t=b.useCallback((o,s,c,d)=>{let m=d?.once?(...h)=>{e.current.delete(c),c(...h)}:c;e.current.set(c,{type:s,eventTarget:o,fn:m,options:d}),o.addEventListener(s,m,d)},[]),n=b.useCallback((o,s,c,d)=>{let m=e.current.get(c)?.fn||c;o.removeEventListener(s,m,d),e.current.delete(c)},[]),i=b.useCallback(()=>{e.current.forEach((o,s)=>{n(o.eventTarget,o.type,s,o.options)})},[n]);return b.useEffect(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function s8(e){let t=b.useContext(Z0);if(t){let{register:n,ref:i,...o}=t;e=pt(o,e),n()}return cS(t,e.ref),e}class Sc{#e;constructor(t,n,i,o){this.#e=!0;const c=(o?.target??i.currentTarget)?.getBoundingClientRect();let d,m=0,h,y=null;i.clientX!=null&&i.clientY!=null&&(h=i.clientX,y=i.clientY),c&&(h!=null&&y!=null?(d=h-c.left,m=y-c.top):(d=c.width/2,m=c.height/2)),this.type=t,this.pointerType=n,this.target=i.currentTarget,this.shiftKey=i.shiftKey,this.metaKey=i.metaKey,this.ctrlKey=i.ctrlKey,this.altKey=i.altKey,this.x=d,this.y=m,this.key=i.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const B4=Symbol("linkClicked"),L4="react-aria-pressable-style",P4="data-react-aria-pressable";function Y0(e){let{onPress:t,onPressChange:n,onPressStart:i,onPressEnd:o,onPressUp:s,onClick:c,isDisabled:d,isPressed:m,preventFocusOnPress:h,shouldCancelOnPointerExit:y,allowTextSelectionOnPress:g,ref:E,...S}=s8(e),[D,x]=b.useState(!1),w=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:R,removeAllGlobalListeners:I}=Ud(),A=b.useCallback((j,de)=>{let k=w.current;if(d||k.didFirePressStart)return!1;let B=!0;if(k.isTriggeringEvent=!0,i){let X=new Sc("pressstart",de,j);i(X),B=X.shouldStopPropagation}return n&&n(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,x(!0),B},[d,i,n]),L=b.useCallback((j,de,k=!0)=>{let B=w.current;if(!B.didFirePressStart)return!1;B.didFirePressStart=!1,B.isTriggeringEvent=!0;let X=!0;if(o){let F=new Sc("pressend",de,j);o(F),X=F.shouldStopPropagation}if(n&&n(!1),x(!1),t&&k&&!d){let F=new Sc("press",de,j);t(F),X&&=F.shouldStopPropagation}return B.isTriggeringEvent=!1,X},[d,o,n,t]),M=Zt(L),Z=b.useCallback((j,de)=>{let k=w.current;if(d)return!1;if(s){k.isTriggeringEvent=!0;let B=new Sc("pressup",de,j);return s(B),k.isTriggeringEvent=!1,B.shouldStopPropagation}return!0},[d,s]),V=Zt(Z),fe=b.useCallback(j=>{let de=w.current;if(de.isPressed&&de.target){de.didFirePressStart&&de.pointerType!=null&&L(Ei(de.target,j),de.pointerType,!1),de.isPressed=!1,de.isOverTarget=!1,de.activePointerId=null,de.pointerType=null,I(),g||O4(de.target);for(let k of de.disposables)k();de.disposables=[]}},[g,I,L]),ne=Zt(fe);b.useEffect(()=>{d&&w.current.isPressed&&ne({currentTarget:w.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[d]);let pe=b.useCallback(j=>{y&&fe(j)},[y,fe]),J=b.useCallback(j=>{d||c?.(j)},[d,c]),ye=b.useCallback((j,de)=>{if(!d&&c){let k=new MouseEvent("click",j);qE(k,de),c(H0(k))}},[d,c]),Ae=b.useMemo(()=>{let j=w.current,de={onKeyDown(B){if(Lp(B.nativeEvent,B.currentTarget)&&ot(B.currentTarget,Pe(B))){I4(Pe(B),B.key)&&B.preventDefault();let X=!0;!j.isPressed&&!B.repeat&&(j.target=B.currentTarget,j.isPressed=!0,j.pointerType="keyboard",X=A(B,"keyboard"));let F=B.currentTarget,G=C=>{Lp(C,F)&&!C.repeat&&ot(F,Pe(C))&&j.target&&V(Ei(j.target,C),"keyboard")};R(nt(B.currentTarget),"keyup",Pd(G,k),!0),X&&B.stopPropagation(),B.metaKey&&il()&&j.metaKeyEvents?.set(B.key,B.nativeEvent)}else B.key==="Meta"&&(j.metaKeyEvents=new Map)},onClick(B){if(!(B&&!ot(B.currentTarget,Pe(B)))&&B&&B.button===0&&!j.isTriggeringEvent&&!Li.isOpening){let X=!0;if(d&&B.preventDefault(),!j.ignoreEmulatedMouseEvents&&!j.isPressed&&(j.pointerType==="virtual"||XE(B.nativeEvent))){let F=A(B,"virtual"),G=V(B,"virtual"),C=M(B,"virtual");J(B),X=F&&G&&C}else if(j.isPressed&&j.pointerType!=="keyboard"){let F=j.pointerType||B.nativeEvent.pointerType||"virtual",G=V(Ei(B.currentTarget,B),F),C=M(Ei(B.currentTarget,B),F,!0);X=G&&C,j.isOverTarget=!1,J(B),ne(B)}j.ignoreEmulatedMouseEvents=!1,X&&B.stopPropagation()}}},k=B=>{if(j.isPressed&&j.target&&Lp(B,j.target)){I4(Pe(B),B.key)&&B.preventDefault();let X=Pe(B),F=ot(j.target,X);M(Ei(j.target,B),"keyboard",F),F&&ye(B,j.target),I(),B.key!=="Enter"&&q0(j.target)&&ot(j.target,X)&&!B[B4]&&(B[B4]=!0,Li(j.target,B,!1)),j.isPressed=!1,j.metaKeyEvents?.delete(B.key)}else if(B.key==="Meta"&&j.metaKeyEvents?.size){let X=j.metaKeyEvents;j.metaKeyEvents=void 0;for(let F of X.values())j.target?.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent<"u"){de.onPointerDown=F=>{if(F.button!==0||!ot(F.currentTarget,Pe(F)))return;if(wN(F.nativeEvent)){j.pointerType="virtual";return}j.pointerType=F.pointerType;let G=!0;if(!j.isPressed){j.isPressed=!0,j.isOverTarget=!0,j.activePointerId=F.pointerId,j.target=F.currentTarget,g||l8(j.target),G=A(F,j.pointerType);let C=Pe(F);"releasePointerCapture"in C&&("hasPointerCapture"in C?C.hasPointerCapture(F.pointerId)&&C.releasePointerCapture(F.pointerId):C.releasePointerCapture(F.pointerId)),R(nt(F.currentTarget),"pointerup",B,!1),R(nt(F.currentTarget),"pointercancel",X,!1)}G&&F.stopPropagation()},de.onMouseDown=F=>{if(ot(F.currentTarget,Pe(F))&&F.button===0){if(h){let G=xN(F.target);G&&j.disposables.push(G)}F.stopPropagation()}},de.onPointerUp=F=>{!ot(F.currentTarget,Pe(F))||j.pointerType==="virtual"||F.button===0&&!j.isPressed&&V(F,j.pointerType||F.pointerType)},de.onPointerEnter=F=>{F.pointerId===j.activePointerId&&j.target&&!j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!0,A(Ei(j.target,F),j.pointerType))},de.onPointerLeave=F=>{F.pointerId===j.activePointerId&&j.target&&j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!1,M(Ei(j.target,F),j.pointerType,!1),pe(F))};let B=F=>{if(F.pointerId===j.activePointerId&&j.isPressed&&F.button===0&&j.target){if(ot(j.target,Pe(F))&&j.pointerType!=null){let G=!1,C=setTimeout(()=>{j.isPressed&&j.target instanceof HTMLElement&&(G?ne(F):(Bi(j.target),j.target.click()))},80);R(F.currentTarget,"click",()=>G=!0,!0),j.disposables.push(()=>clearTimeout(C))}else ne(F);j.isOverTarget=!1}},X=F=>{ne(F)};de.onDragStart=F=>{ot(F.currentTarget,Pe(F))&&ne(F)}}return de},[R,d,h,I,g,pe,A,J,ye]);return b.useEffect(()=>{if(!E)return;const j=nt(E.current);if(!j||!j.head||j.getElementById(L4))return;const de=j.createElement("style");de.id=L4;let k=pS(j);k&&(de.nonce=k),de.textContent=`
72
72
  @layer {
73
73
  [${P4}] {
74
74
  touch-action: pan-x pan-y pinch-zoom;
75
75
  }
76
76
  }
77
- `.trim(),j.head.prepend(de)},[E]),b.useEffect(()=>{let j=w.current;return()=>{g||O4(j.target??void 0);for(let de of j.disposables)de();j.disposables=[]}},[g]),{isPressed:m||D,pressProps:pt(S,Ae,{[P4]:!0})}}function q0(e){return e.tagName==="A"&&e.hasAttribute("href")}function Lp(e,t){const{key:n,code:i}=e,o=t,u=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||i==="Space")&&!(o instanceof hn(o).HTMLInputElement&&!hS(o,n)||o instanceof hn(o).HTMLTextAreaElement||o.isContentEditable)&&!((u==="link"||!u&&q0(o))&&n!=="Enter")}function Ei(e,t){let n=t.clientX,i=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i,key:t.key}}function s8(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!q0(e)}function I4(e,t){return e instanceof HTMLInputElement?!hS(e,t):s8(e)}const c8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":c8.has(e.type)}function Gu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:o}=e,u=b.useRef({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:d}=Ud(),m=b.useCallback(g=>{ot(g.currentTarget,Pe(g))&&u.current.isFocusWithin&&!ot(g.currentTarget,g.relatedTarget)&&(u.current.isFocusWithin=!1,d(),n&&n(g),o&&o(!1))},[n,o,u,d]),h=KE(m),y=b.useCallback(g=>{if(!ot(g.currentTarget,Pe(g)))return;let E=Pe(g);const S=nt(E),D=St(S);if(!u.current.isFocusWithin&&D===E){i&&i(g),o&&o(!0),u.current.isFocusWithin=!0,h(g);let x=g.currentTarget;c(S,"focus",w=>{let R=Pe(w);if(u.current.isFocusWithin&&!ot(x,R)){let I=new S.defaultView.FocusEvent("blur",{relatedTarget:R});qE(I,x);let A=H0(I);m(A)}},{capture:!0})}},[i,o,h,c,m]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:y,onBlur:m}}}function cl(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,o=b.useRef({isFocused:!1,isFocusVisible:t||Ph()}),[u,c]=b.useState(!1),[d,m]=b.useState(()=>o.current.isFocused&&o.current.isFocusVisible),h=b.useCallback(()=>m(o.current.isFocused&&o.current.isFocusVisible),[]),y=b.useCallback(S=>{o.current.isFocused=S,o.current.isFocusVisible=Ph(),c(S),h()},[h]);BN(S=>{o.current.isFocusVisible=S,h()},[n,u],{enabled:u,isTextInput:n});let{focusProps:g}=sS({isDisabled:i,onFocusChange:y}),{focusWithinProps:E}=Gu({isDisabled:!i,onFocusWithinChange:y});return{isFocused:u,isFocusVisible:d,focusProps:i?E:g}}let zh=!1,Dc=0;function d8(){zh=!0,setTimeout(()=>{zh=!1},500)}function F4(e){e.pointerType==="touch"&&d8()}function f8(){let e=nt(null);if(!(typeof e>"u"))return Dc===0&&typeof PointerEvent<"u"&&e.addEventListener("pointerup",F4),Dc++,()=>{Dc--,!(Dc>0)&&typeof PointerEvent<"u"&&e.removeEventListener("pointerup",F4)}}function Zu(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:o}=e,[u,c]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(f8,[]);let{addGlobalListener:m,removeAllGlobalListeners:h}=Ud(),{hoverProps:y,triggerHoverEnd:g}=b.useMemo(()=>{let E=(x,w)=>{if(d.pointerType=w,o||w==="touch"||d.isHovered||!ot(x.currentTarget,Pe(x)))return;d.isHovered=!0;let R=x.currentTarget;d.target=R,m(nt(Pe(x)),"pointerover",I=>{d.isHovered&&d.target&&!ot(d.target,Pe(I))&&S(I,I.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:R,pointerType:w}),n&&n(!0),c(!0)},S=(x,w)=>{let R=d.target;d.pointerType="",d.target=null,!(w==="touch"||!d.isHovered||!R)&&(d.isHovered=!1,h(),i&&i({type:"hoverend",target:R,pointerType:w}),n&&n(!1),c(!1))},D={};return typeof PointerEvent<"u"&&(D.onPointerEnter=x=>{zh&&x.pointerType==="mouse"||E(x,x.pointerType)},D.onPointerLeave=x=>{!o&&ot(x.currentTarget,Pe(x))&&S(x,x.pointerType)}),{hoverProps:D,triggerHoverEnd:S}},[t,n,i,o,d,m,h]);return b.useEffect(()=>{o&&g({currentTarget:d.target},d.pointerType)},[o]),{hoverProps:y,isHovered:u}}const yS=b.createContext({});function m8(e){let{id:t,label:n,"aria-labelledby":i,"aria-label":o,labelElementType:u="label"}=e;t=Ar(t);let c=Ar(),d={};n&&(i=i?`${c} ${i}`:c,d={id:c,htmlFor:u==="label"?t:void 0});let m=Vu({id:t,"aria-label":o,"aria-labelledby":i});return{labelProps:d,fieldProps:m}}let Pp=new Map,Uh=!1;try{Uh=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ld=!1;try{ld=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const gS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hh{constructor(t,n={}){this.numberFormatter=p8(t,n),this.options=n}format(t){let n="";if(!Uh&&this.options.signDisplay!=null?n=h8(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ld){let{unit:i,unitDisplay:o="short",locale:u}=this.resolvedOptions();if(!i)return n;let c=gS[i]?.[o];n+=c[u]||c.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...i.map(u=>({...u,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(u=>({...u,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Uh&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ld&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function p8(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ld){let{unit:u,unitDisplay:c="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!gS[u]?.[c])throw new Error(`Unsupported unit ${u} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((u,c)=>u[0]<c[0]?-1:1).join():"");if(Pp.has(i))return Pp.get(i);let o=new Intl.NumberFormat(e,t);return Pp.set(i,o),o}function h8(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let i=!1;if(t==="always"?i=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):i=n>0),i){let o=e.format(-n),u=e.format(n),c=o.replace(u,"").replace(/\u200e|\u061C/,"");return[...c].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(u,"!!!").replace(c,"+").replace("!!!",u)}else return e.format(n)}}const y8=new RegExp("^.*\\(.*\\).*$"),g8=["latn","arab","hanidec","deva","beng","fullwide"];class bS{constructor(t,n={}){this.locale=t,this.options=n}parse(t){return Ip(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,i){return Ip(this.locale,this.options,t).isValidPartialNumber(t,n,i)}getNumberingSystem(t){return Ip(this.locale,this.options,t).options.numberingSystem}}const j4=new Map;function Ip(e,t,n){let i=z4(e,t);if(!e.includes("-nu-")&&!i.isValidPartialNumber(n)){for(let o of g8)if(o!==i.options.numberingSystem){let u=z4(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(u.isValidPartialNumber(n))return u}}return i}function z4(e,t){let n=e+(t?Object.entries(t).sort((o,u)=>o[0]<u[0]?-1:1).join():""),i=j4.get(n);return i||(i=new b8(e,t),j4.set(n,i)),i}class b8{constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=v8(t,this.formatter,this.options,n),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let n=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(t);if(!n&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let u=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let c=i.indexOf(".");c===-1&&(c=i.length),i=i.replace(".",""),c-2===0?i=`0.${i}`:c-2===-1?i=`0.0${i}`:c-2===-2?i="0.00":i=`${i.slice(0,c-2)}.${i.slice(c-2)}`,u>-1&&(i=`-${i}`)}let o=i?+i:NaN;if(isNaN(o))return NaN;if(this.options.style==="percent"){let u={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new bS(this.locale,u).parse(new Hh(this.locale,u).format(o))}return this.options.currencySign==="accounting"&&y8.test(t)&&(o=-1*o),o}sanitize(t){let n=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(i=>i.unit===t)?this.symbols.noNumeralUnits.find(i=>i.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=ka(t,",",this.symbols.decimal),t=ka(t,"،",this.symbols.decimal)),this.symbols.group&&n&&(t=ka(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&n&&(t=ka(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("’")&&n&&(t=ka(t,"’",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&n&&(t=ka(t," ",this.symbols.group),t=ka(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,n=-1/0,i=1/0){let o=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&i>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&o&&(t=ka(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}}const U4=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),H4=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function v8(e,t,n,i){let o=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),u=o.formatToParts(-10000.111),c=o.formatToParts(10000.111),d=H4.map(Z=>o.formatToParts(Z)),m=d.map((Z,V)=>{let fe=Z.find(ne=>ne.type==="unit");return fe&&!Z.some(ne=>ne.type==="integer"||ne.type==="fraction")?{unit:fe.value,value:H4[V]}:null}).filter(Z=>!!Z),h=u.find(Z=>Z.type==="minusSign")?.value??"-",y=c.find(Z=>Z.type==="plusSign")?.value;!y&&(i?.signDisplay==="exceptZero"||i?.signDisplay==="always")&&(y="+");let E=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(Z=>Z.type==="decimal")?.value,S=u.find(Z=>Z.type==="group")?.value,D=u.filter(Z=>!U4.has(Z.type)).map(Z=>V4(Z.value)),x=d.flatMap(Z=>Z.filter(V=>!U4.has(V.type)).map(V=>V4(V.value))),w=[...new Set([...D,...x])].sort((Z,V)=>V.length-Z.length),R=w.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${w.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),I=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),A=new Map(I.map((Z,V)=>[Z,V])),L=new RegExp(`[${I.join("")}]`,"g");return{minusSign:h,plusSign:y,decimal:E,group:S,literals:R,numeral:L,numerals:I,index:Z=>String(A.get(Z)),noNumeralUnits:m}}function ka(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function V4(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Vh(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const _8=b.createContext(null),vS=7e3;let Ia=null;function Tu(e,t="assertive",n=vS){Ia?Ia.announce(e,t,n):(Ia=new S8,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ia.announce(e,t,n):setTimeout(()=>{Ia?.isAttached()&&Ia?.announce(e,t,n)},100))}function E8(e){Ia&&Ia.clear(e)}class S8{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",i=vS){if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?this.assertiveLog?.appendChild(o):this.politeLog?.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},i)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function D8(e,t){let{elementType:n="button",isDisabled:i,onPress:o,onPressStart:u,onPressEnd:c,onPressUp:d,onPressChange:m,preventFocusOnPress:h,allowFocusWhenDisabled:y,onClick:g,href:E,target:S,rel:D,type:x="button"}=e,w;n==="button"?w={type:x,disabled:i,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:w={role:"button",href:n==="a"&&!i?E:void 0,target:n==="a"?S:void 0,type:n==="input"?x:void 0,disabled:n==="input"?i:void 0,"aria-disabled":!i||n==="input"?void 0:i,rel:n==="a"?D:void 0};let{pressProps:R,isPressed:I}=Y0({onPressStart:u,onPressEnd:c,onPressChange:m,onPress:o,onPressUp:d,onClick:g,isDisabled:i,preventFocusOnPress:h,ref:t}),{focusableProps:A}=XN(e,t);y&&(A.tabIndex=i?-1:A.tabIndex);let L=pt(A,R,sn(e,{labelable:!0}));return{isPressed:I,buttonProps:pt(w,L,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const Yu=b.createContext({}),Fp=fS(function(t,n){[t,n]=ua(t,n,Yu);let i=t,{isPending:o}=i,{buttonProps:u,isPressed:c}=D8(t,n);u=x8(u,o);let{focusProps:d,isFocused:m,isFocusVisible:h}=cl(t),{hoverProps:y,isHovered:g}=Zu({...t,isDisabled:t.isDisabled||o}),E={isHovered:g,isPressed:(i.isPressed||c)&&!o,isFocused:m,isFocusVisible:h,isDisabled:t.isDisabled||!1,isPending:o??!1},S=la({...t,values:E,defaultClassName:"react-aria-Button"}),D=Ar(u.id),x=Ar(),w=u["aria-labelledby"];o&&(w?w=`${w} ${x}`:u["aria-label"]&&(w=`${D} ${x}`));let R=b.useRef(o);b.useEffect(()=>{let A={"aria-labelledby":w||D};(!R.current&&m&&o||R.current&&m&&!o)&&Tu(A,"assertive"),R.current=o},[o,m,w,D]);let I=sn(t,{global:!0});return delete I.onClick,ve.createElement(wn.button,{...pt(I,S,u,d,y),type:u.type==="submit"&&o?"button":u.type,id:D,ref:n,"aria-labelledby":w,slot:t.slot||void 0,"aria-disabled":o?"true":u["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":E.isPressed||void 0,"data-hovered":g||void 0,"data-focused":m||void 0,"data-pending":o||void 0,"data-focus-visible":h||void 0},ve.createElement(_8.Provider,{value:{id:x}},S.children))}),$8=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function x8(e,t){if(t){for(const n in e)n.startsWith("on")&&!$8.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const K0=b.createContext({}),C8=b.forwardRef(function(t,n){[t,n]=ua(t,n,K0);let{children:i,level:o=3,className:u,...c}=t,d=wn[`h${o}`];return ve.createElement(d,{...c,ref:n,className:u??"react-aria-Heading"},i)}),W0=b.createContext({});var _S={};_S={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var ES={};ES={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var SS={};SS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var DS={};DS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var $S={};$S={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var xS={};xS={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var CS={};CS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var AS={};AS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var wS={};wS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var TS={};TS={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var NS={};NS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var MS={};MS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var RS={};RS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var OS={};OS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var kS={};kS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var BS={};BS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var LS={};LS={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var PS={};PS={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var IS={};IS={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var FS={};FS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var jS={};jS={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var zS={};zS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var US={};US={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var HS={};HS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var VS={};VS={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var GS={};GS={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var ZS={};ZS={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var YS={};YS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var qS={};qS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var KS={};KS={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var WS={};WS={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var QS={};QS={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var JS={};JS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var XS={};XS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var qu={};qu={"ar-AE":_S,"bg-BG":ES,"cs-CZ":SS,"da-DK":DS,"de-DE":$S,"el-GR":xS,"en-US":CS,"es-ES":AS,"et-EE":wS,"fi-FI":TS,"fr-FR":NS,"he-IL":MS,"hr-HR":RS,"hu-HU":OS,"it-IT":kS,"ja-JP":BS,"ko-KR":LS,"lt-LT":PS,"lv-LV":IS,"nb-NO":FS,"nl-NL":jS,"pl-PL":zS,"pt-BR":US,"pt-PT":HS,"ro-RO":VS,"ru-RU":GS,"sk-SK":ZS,"sl-SI":YS,"sr-SP":qS,"sv-SE":KS,"tr-TR":WS,"uk-UA":QS,"zh-CN":JS,"zh-TW":XS};function eD(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function qo(e,t){return e-t*Math.floor(e/t)}const tD=1721426;function Ci(e,t,n,i){t=Ku(e,t);let o=t-1,u=-2;return n<=2?u=0:Ha(t)&&(u=-1),tD-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+u+i)}function Ha(e){return e%4===0&&(e%100!==0||e%400===0)}function Ku(e,t){return e==="BC"?1-t:t}function Hd(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const A8={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class pn{fromJulianDay(t){let n=t,i=n-tD,o=Math.floor(i/146097),u=qo(i,146097),c=Math.floor(u/36524),d=qo(u,36524),m=Math.floor(d/1461),h=qo(d,1461),y=Math.floor(h/365),g=o*400+c*100+m*4+y+(c!==4&&y!==4?1:0),[E,S]=Hd(g),D=n-Ci(E,S,1,1),x=2;n<Ci(E,S,3,1)?x=0:Ha(S)&&(x=1);let w=Math.floor(((D+x)*12+373)/367),R=n-Ci(E,S,w,1)+1;return new Ot(E,S,w,R)}toJulianDay(t){return Ci(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return A8[Ha(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ha(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const w8={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ct(e,t){return t=Et(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function T8(e,t){return t=Et(t,e.calendar),e=Ii(e),t=Ii(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function N8(e,t){return t=Et(t,e.calendar),e=Gh(e),t=Gh(t),e.era===t.era&&e.year===t.year}function M8(e,t){return Vd(e.calendar,t.calendar)&&Ct(e,t)}function Vd(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function nD(e,t){return Ct(e,J0(t))}const R8={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Q0(e,t,n){let i=e.calendar.toJulianDay(e),o=n?R8[n]:L8(t),u=Math.ceil(i+1-o)%7;return u<0&&(u+=7),u}function rD(e){return ta(Date.now(),e)}function J0(e){return mn(rD(e))}function aD(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function iD(e,t){return G4(e)-G4(t)}function G4(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let jp=null,O8=!1;function Gd(){return jp==null&&(jp=new Intl.DateTimeFormat().resolvedOptions().timeZone),jp}function oD(){return O8}function Ii(e){return e.subtract({days:e.day-1})}function ud(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Gh(e){return Ii(e.subtract({months:e.month-1}))}function Nu(e,t,n){let i=Q0(e,t,n);return e.subtract({days:i})}function k8(e,t,n){return Nu(e,t,n).add({days:6})}const Z4=new Map,zp=new Map;function B8(e){if(Intl.Locale){let n=Z4.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Z4.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function L8(e){let t=zp.get(e);if(!t){if(Intl.Locale){let i=new Intl.Locale(e);if("getWeekInfo"in i&&(t=i.getWeekInfo(),t))return zp.set(e,t),t.firstDay}let n=B8(e);if(e.includes("-fw-")){let i=e.split("-fw-")[1].split("-")[0];i==="mon"?t={firstDay:1}:i==="tue"?t={firstDay:2}:i==="wed"?t={firstDay:3}:i==="thu"?t={firstDay:4}:i==="fri"?t={firstDay:5}:i==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&w8[n]||0};zp.set(e,t)}return t.firstDay}function P8(e,t,n){let i=e.calendar.getDaysInMonth(e);return Math.ceil((Q0(Ii(e),t,n)+i)/7)}function lD(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function uD(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ol(e){e=Et(e,new pn);let t=Ku(e.era,e.year);return sD(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function sD(e,t,n,i,o,u,c){let d=new Date;return d.setUTCHours(i,o,u,c),d.setUTCFullYear(e,t-1,n),d.getTime()}function Zh(e,t){if(t==="UTC")return 0;if(e>0&&t===Gd()&&!oD())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:i,day:o,hour:u,minute:c,second:d}=cD(e,t);return sD(n,i,o,u,c,d,0)-Math.floor(e/1e3)*1e3}const Y4=new Map;function cD(e,t){let n=Y4.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Y4.set(t,n));let i=n.formatToParts(new Date(e)),o={};for(let u of i)u.type!=="literal"&&(o[u.type]=u.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const q4=864e5;function I8(e,t,n,i){return(n===i?[n]:[n,i]).filter(u=>F8(e,t,u))}function F8(e,t,n){let i=cD(n,t);return e.year===i.year&&e.month===i.month&&e.day===i.day&&e.hour===i.hour&&e.minute===i.minute&&e.second===i.second}function ea(e,t,n="compatible"){let i=oa(e);if(t==="UTC")return ol(i);if(t===Gd()&&n==="compatible"&&!oD()){i=Et(i,new pn);let m=new Date,h=Ku(i.era,i.year);return m.setFullYear(h,i.month-1,i.day),m.setHours(i.hour,i.minute,i.second,i.millisecond),m.getTime()}let o=ol(i),u=Zh(o-q4,t),c=Zh(o+q4,t),d=I8(i,t,o-u,o-c);if(d.length===1)return d[0];if(d.length>1)switch(n){case"compatible":case"earlier":return d[0];case"later":return d[d.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-u,o-c);case"compatible":case"later":return Math.max(o-u,o-c);case"reject":throw new RangeError("No such absolute time found")}}function dD(e,t,n="compatible"){return new Date(ea(e,t,n))}function ta(e,t){let n=Zh(e,t),i=new Date(e+n),o=i.getUTCFullYear(),u=i.getUTCMonth()+1,c=i.getUTCDate(),d=i.getUTCHours(),m=i.getUTCMinutes(),h=i.getUTCSeconds(),y=i.getUTCMilliseconds();return new Ou(o<1?"BC":"AD",o<1?-o+1:o,u,c,t,n,d,m,h,y)}function mn(e){return new Ot(e.calendar,e.era,e.year,e.month,e.day)}function oa(e,t){let n=0,i=0,o=0,u=0;if("timeZone"in e)({hour:n,minute:i,second:o,millisecond:u}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:i,second:o,millisecond:u}=t),new Ru(e.calendar,e.era,e.year,e.month,e.day,n,i,o,u)}function Et(e,t){if(Vd(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),i=e.copy();return i.calendar=t,i.era=n.era,i.year=n.year,i.month=n.month,i.day=n.day,Fi(i),i}function j8(e,t,n){if(e instanceof Ou)return e.timeZone===t?e:fD(e,t);let i=ea(e,t,n);return ta(i,t)}function z8(e){let t=ol(e)-e.offset;return new Date(t)}function fD(e,t){let n=ol(e)-e.offset;return Et(ta(n,t),e.calendar)}function U8(e){return fD(e,Gd())}const uu=36e5;function Zd(e,t){let n=e.copy(),i="hour"in n?yD(n,t):0;Yh(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,qh(n),mD(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=i,H8(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){let c=n.calendar.isInverseEra?.(n);n.year=o,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Yh(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function qh(e){for(;e.month<1;)Yh(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Yh(e,1)}function H8(e){for(;e.day<1;)e.month--,qh(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,qh(e)}function mD(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Fi(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),mD(e)}function X0(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function pD(e,t){return Zd(e,X0(t))}function ey(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Fi(n),n}function Mu(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),hD(n),n}function V8(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=$c(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=$c(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=$c(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=$c(e.hour,24),t}function hD(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function $c(e,t){let n=e%t;return n<0&&(n+=t),n}function yD(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,V8(e)}function gD(e,t){let n=e.copy();return yD(n,t),n}function G8(e,t){return gD(e,X0(t))}function ty(e,t,n,i){let o=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=na(c,n,0,u.length-1,i?.round),o.era=u[c],Fi(o);break}case"year":o.calendar.isInverseEra?.(o)&&(n=-n),o.year=na(e.year,n,-1/0,9999,i?.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=na(e.month,n,1,e.calendar.getMonthsInYear(e),i?.round);break;case"day":o.day=na(e.day,n,1,e.calendar.getDaysInMonth(e),i?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Fi(o),o}function ny(e,t,n,i){let o=e.copy();switch(t){case"hour":{let u=e.hour,c=0,d=23;if(i?.hourCycle===12){let m=u>=12;c=m?12:0,d=m?23:11}o.hour=na(u,n,c,d,i?.round);break}case"minute":o.minute=na(e.minute,n,0,59,i?.round);break;case"second":o.second=na(e.second,n,0,59,i?.round);break;case"millisecond":o.millisecond=na(e.millisecond,n,0,999,i?.round);break;default:throw new Error("Unsupported field "+t)}return o}function na(e,t,n,i,o=!1){if(o){e+=Math.sign(t),e<n&&(e=i);let u=Math.abs(t);t>0?e=Math.ceil(e/u)*u:e=Math.floor(e/u)*u,e>i&&(e=n)}else e+=t,e<n?e=i-(n-e-1):e>i&&(e=n+(e-i-1));return e}function bD(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=Zd(oa(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=ea(o,e.timeZone)}else n=ol(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let i=ta(n,e.timeZone);return Et(i,e.calendar)}function Z8(e,t){return bD(e,X0(t))}function Y8(e,t,n,i){switch(t){case"hour":{let o=0,u=23;if(i?.hourCycle===12){let D=e.hour>=12;o=D?12:0,u=D?23:11}let c=oa(e),d=Et(Mu(c,{hour:o}),new pn),m=[ea(d,e.timeZone,"earlier"),ea(d,e.timeZone,"later")].filter(D=>ta(D,e.timeZone).day===d.day)[0],h=Et(Mu(c,{hour:u}),new pn),y=[ea(h,e.timeZone,"earlier"),ea(h,e.timeZone,"later")].filter(D=>ta(D,e.timeZone).day===h.day).pop(),g=ol(e)-e.offset,E=Math.floor(g/uu),S=g%uu;return g=na(E,n,Math.floor(m/uu),Math.floor(y/uu),i?.round)*uu+S,Et(ta(g,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return ny(e,t,n,i);case"era":case"year":case"month":case"day":{let o=ty(oa(e),t,n,i),u=ea(o,e.timeZone);return Et(ta(u,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function q8(e,t,n){let i=oa(e),o=Mu(ey(i,t),t);if(o.compare(i)===0)return e;let u=ea(o,e.timeZone,n);return Et(ta(u,e.timeZone),e.calendar)}const K8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,W8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,vD=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function _D(e){let t=e.match(K8);if(!t)throw vD.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new Ot(xr(t[1],0,9999),xr(t[2],1,12),1);return n.day=xr(t[3],1,n.calendar.getDaysInMonth(n)),n}function Q8(e){let t=e.match(W8);if(!t)throw vD.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let n=xr(t[1],-9999,9999),i=n<1?"BC":"AD",o=new Ru(i,n<1?-n+1:n,xr(t[2],1,12),1,t[4]?xr(t[4],0,23):0,t[5]?xr(t[5],0,59):0,t[6]?xr(t[6],0,59):0,t[7]?xr(t[7],0,1/0)*1e3:0);return o.day=xr(t[3],0,o.calendar.getDaysInMonth(o)),o}function xr(e,t,n){let i=Number(e);if(i<t||i>n)throw new RangeError(`Value out of range: ${t} <= ${i} <= ${n}`);return i}function ED(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function SD(e){let t=Et(e,new pn),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function DD(e){return`${SD(e)}T${ED(e)}`}function J8(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),i=Math.floor(e%36e5/6e4),o=Math.floor(e%36e5%6e4/1e3),u=`${t}${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`;return o!==0&&(u+=`:${String(o).padStart(2,"0")}`),u}function X8(e){return`${DD(e)}${J8(e.offset)}[${e.timeZone}]`}function ry(e){let t=typeof e[0]=="object"?e.shift():new pn,n;if(typeof e[0]=="string")n=e.shift();else{let c=t.getEras();n=c[c.length-1]}let i=e.shift(),o=e.shift(),u=e.shift();return[t,n,i,o,u]}class Ot{#e;constructor(...t){let[n,i,o,u,c]=ry(t);this.calendar=n,this.era=i,this.year=o,this.month=u,this.day=c,Fi(this)}copy(){return this.era?new Ot(this.calendar,this.era,this.year,this.month,this.day):new Ot(this.calendar,this.year,this.month,this.day)}add(t){return Zd(this,t)}subtract(t){return pD(this,t)}set(t){return ey(this,t)}cycle(t,n,i){return ty(this,t,n,i)}toDate(t){return dD(this,t)}toString(){return SD(this)}compare(t){return aD(this,t)}}class ay{#e;constructor(t=0,n=0,i=0,o=0){this.hour=t,this.minute=n,this.second=i,this.millisecond=o,hD(this)}copy(){return new ay(this.hour,this.minute,this.second,this.millisecond)}add(t){return gD(this,t)}subtract(t){return G8(this,t)}set(t){return Mu(this,t)}cycle(t,n,i){return ny(this,t,n,i)}toString(){return ED(this)}compare(t){return iD(this,t)}}class Ru{#e;constructor(...t){let[n,i,o,u,c]=ry(t);this.calendar=n,this.era=i,this.year=o,this.month=u,this.day=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fi(this)}copy(){return this.era?new Ru(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ru(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Zd(this,t)}subtract(t){return pD(this,t)}set(t){return ey(Mu(this,t),t)}cycle(t,n,i){switch(t){case"era":case"year":case"month":case"day":return ty(this,t,n,i);default:return ny(this,t,n,i)}}toDate(t,n){return dD(this,t,n)}toString(){return DD(this)}compare(t){let n=aD(this,t);return n===0?iD(this,oa(t)):n}}class Ou{#e;constructor(...t){let[n,i,o,u,c]=ry(t),d=t.shift(),m=t.shift();this.calendar=n,this.era=i,this.year=o,this.month=u,this.day=c,this.timeZone=d,this.offset=m,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fi(this)}copy(){return this.era?new Ou(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ou(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return bD(this,t)}subtract(t){return Z8(this,t)}set(t,n){return q8(this,t,n)}cycle(t,n,i){return Y8(this,t,n,i)}toDate(){return z8(this)}toString(){return X8(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-j8(t,this.timeZone).toDate().getTime()}}const Ko=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],eM=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Uc=[1867,1911,1925,1988,2018],Fa=["meiji","taisho","showa","heisei","reiwa"];function K4(e){const t=Ko.findIndex(([n,i,o])=>e.year<n||e.year===n&&e.month<i||e.year===n&&e.month===i&&e.day<o);return t===-1?Ko.length-1:t===0?0:t-1}function Up(e){let t=Uc[Fa.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ot(e.year+t,e.month,e.day)}class tM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=K4(n);return new Ot(this,Fa[i],n.year-Uc[i],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Up(t))}balanceDate(t){let n=Up(t),i=K4(n);Fa[i]!==t.era&&(t.era=Fa[i],t.year=n.year-Uc[i]),this.constrainDate(t)}constrainDate(t){let n=Fa.indexOf(t.era),i=eM[n];if(i!=null){let[o,u,c]=i,d=o-Uc[n];t.year=Math.max(1,Math.min(d,t.year)),t.year===d&&(t.month=Math.min(u,t.month),t.month===u&&(t.day=Math.min(c,t.day)))}if(t.year===1&&n>=0){let[,o,u]=Ko[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(u,t.day))}}getEras(){return Fa}getYearsInEra(t){let n=Fa.indexOf(t.era),i=Ko[n],o=Ko[n+1];if(o==null)return 9999-i[0]+1;let u=o[0]-i[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&u++,u}getDaysInMonth(t){return super.getDaysInMonth(Up(t))}getMinimumMonthInYear(t){let n=W4(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=W4(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function W4(e){if(e.year===1){let t=Fa.indexOf(e.era);return Ko[t]}}const $D=-543;class nM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=Ku(n.era,n.year);return new Ot(this,i-$D,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Q4(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Q4(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Q4(e){let[t,n]=Hd(e.year+$D);return new Ot(t,n,e.month,e.day)}const sd=1911;function xD(e){return e.era==="minguo"?e.year+sd:1-e.year+sd}function J4(e){let t=e-sd;return t>0?["minguo",t]:["before_minguo",1-t]}class rM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=Ku(n.era,n.year),[o,u]=J4(i);return new Ot(this,o,u,n.month,n.day)}toJulianDay(t){return super.toJulianDay(X4(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,i]=J4(xD(t));t.era=n,t.year=i}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(X4(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-sd}constructor(...t){super(...t),this.identifier="roc"}}function X4(e){let[t,n]=Hd(xD(e));return new Ot(t,n,e.month,e.day)}const e1=1948320,t1=[0,31,62,93,124,155,186,216,246,276,306,336];class aM{fromJulianDay(t){let n=t-e1,i=1+Math.floor((33*n+3)/12053),o=365*(i-1)+Math.floor((8*i+21)/33),u=n-o,c=u<216?Math.floor(u/31):Math.floor((u-6)/30),d=u-t1[c]+1;return new Ot(this,i,c+1,d)}toJulianDay(t){let n=e1-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=t1[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||qo(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Hp=78,n1=80;class iM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=n.year-Hp,o=t-Ci(n.era,n.year,1,1),u;o<n1?(i--,u=Ha(n.year-1)?31:30,o+=u+155+90+10):(u=Ha(n.year)?31:30,o-=n1);let c,d;if(o<u)c=1,d=o+1;else{let m=o-u;m<155?(c=Math.floor(m/31)+2,d=m%31+1):(m-=155,c=Math.floor(m/30)+7,d=m%30+1)}return new Ot(this,i,c,d)}toJulianDay(t){let n=t.year+Hp,[i,o]=Hd(n),u,c;return Ha(o)?(u=31,c=Ci(i,o,3,21)):(u=30,c=Ci(i,o,3,22)),t.month===1?c+t.day-1:(c+=u+Math.min(t.month-2,5)*31,t.month>=8&&(c+=(t.month-7)*30),c+=t.day-1,c)}getDaysInMonth(t){return t.month===1&&Ha(t.year+Hp)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const cd=1948440,r1=1948439,nr=1300,Po=1600,oM=460322;function dd(e,t,n,i){return i+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function CD(e,t,n){let i=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+dd(t,i,1,1)))/29.5)+1),u=n-dd(t,i,o,1)+1;return new Ot(e,i,o,u)}function a1(e){return(14+11*e)%30<11}class iy{fromJulianDay(t){return CD(this,cd,t)}toJulianDay(t){return dd(cd,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&a1(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return a1(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lM extends iy{fromJulianDay(t){return CD(this,r1,t)}toJulianDay(t){return dd(r1,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const uM="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Kh,Wo;function Hc(e){return oM+Wo[e-nr]}function bu(e,t){let n=e-nr,i=1<<11-(t-1);return(Kh[n]&i)===0?29:30}function i1(e,t){let n=Hc(e);for(let i=1;i<t;i++)n+=bu(e,i);return n}function o1(e){return Wo[e+1-nr]-Wo[e-nr]}class sM extends iy{constructor(){if(super(),this.identifier="islamic-umalqura",Kh||(Kh=new Uint16Array(Uint8Array.from(atob(uM),t=>t.charCodeAt(0)).buffer)),!Wo){Wo=new Uint32Array(Po-nr+1);let t=0;for(let n=nr;n<=Po;n++){Wo[n-nr]=t;for(let i=1;i<=12;i++)t+=bu(n,i)}}}fromJulianDay(t){let n=t-cd,i=Hc(nr),o=Hc(Po);if(n<i||n>o)return super.fromJulianDay(t);{let u=nr-1,c=1,d=1;for(;d>0;){u++,d=n-Hc(u)+1;let m=o1(u);if(d===m){c=12;break}else if(d<m){let h=bu(u,c);for(c=1;d>h;)d-=h,c++,h=bu(u,c);break}}return new Ot(this,u,c,n-i1(u,c)+1)}}toJulianDay(t){return t.year<nr||t.year>Po?super.toJulianDay(t):cd+i1(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<nr||t.year>Po?super.getDaysInMonth(t):bu(t.year,t.month)}getDaysInYear(t){return t.year<nr||t.year>Po?super.getDaysInYear(t):o1(t.year)}}const l1=347997,AD=1080,wD=24*AD,cM=29,dM=12*AD+793,fM=cM*wD+dM;function $i(e){return qo(e*7+1,19)<7}function Vc(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,i=t*29+Math.floor(n/25920);return qo(3*(i+1),7)<3&&(i+=1),i}function mM(e){let t=Vc(e-1),n=Vc(e);return Vc(e+1)-n===356?2:n-t===382?1:0}function Du(e){return Vc(e)+mM(e)}function TD(e){return Du(e+1)-Du(e)}function pM(e){let t=TD(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function xc(e,t){if(t>=6&&!$i(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=pM(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$i(e)?30:0:30}class hM{fromJulianDay(t){let n=t-l1,i=n*wD/fM,o=Math.floor((19*i+234)/235)+1,u=Du(o),c=Math.floor(n-u);for(;c<1;)o--,u=Du(o),c=Math.floor(n-u);let d=1,m=0;for(;m<c;)m+=xc(o,d),d++;d--,m-=xc(o,d);let h=c-m;return new Ot(this,o,d,h)}toJulianDay(t){let n=Du(t.year);for(let i=1;i<t.month;i++)n+=xc(t.year,i);return n+t.day+l1}getDaysInMonth(t){return xc(t.year,t.month)}getMonthsInYear(t){return $i(t.year)?13:12}getDaysInYear(t){return TD(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($i(n.year)&&!$i(t.year)&&n.month>6?t.month--:!$i(n.year)&&$i(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Wh=1723856,u1=1824665,Qh=5500;function fd(e,t,n,i){return e+365*t+Math.floor(t/4)+30*(n-1)+i-1}function oy(e,t){let n=Math.floor(4*(t-e)/1461),i=1+Math.floor((t-fd(e,n,1,1))/30),o=t+1-fd(e,n,i,1);return[n,i,o]}function ND(e){return Math.floor(e%4/3)}function MD(e,t){return t%13!==0?30:ND(e)+5}class ly{fromJulianDay(t){let[n,i,o]=oy(Wh,t),u="AM";return n<=0&&(u="AA",n+=Qh),new Ot(this,u,n,i,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Qh),fd(Wh,n,t.month,t.day)}getDaysInMonth(t){return MD(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+ND(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class yM extends ly{fromJulianDay(t){let[n,i,o]=oy(Wh,t);return n+=Qh,new Ot(this,"AA",n,i,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class gM extends ly{fromJulianDay(t){let[n,i,o]=oy(u1,t),u="CE";return n<=0&&(u="BCE",n=1-n),new Ot(this,u,n,i,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),fd(u1,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),MD(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function RD(e){switch(e){case"buddhist":return new nM;case"ethiopic":return new ly;case"ethioaa":return new yM;case"coptic":return new gM;case"hebrew":return new hM;case"indian":return new iM;case"islamic-civil":return new iy;case"islamic-tbla":return new lM;case"islamic-umalqura":return new sM;case"japanese":return new tM;case"persian":return new aM;case"roc":return new rM;case"gregory":default:return new pn}}let Vp=new Map;class ra{constructor(t,n={}){this.formatter=OD(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let i=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...i.map(u=>({...u,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(u=>({...u,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return _M()&&(this.resolvedHourCycle||(this.resolvedHourCycle=EM(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const bM={true:{ja:"h11"},false:{}};function OD(e,t={}){if(typeof t.hour12=="boolean"&&vM()){t={...t};let o=bM[String(t.hour12)][e.split("-")[0]],u=t.hour12?"h12":"h23";t.hourCycle=o??u,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,u)=>o[0]<u[0]?-1:1).join():"");if(Vp.has(n))return Vp.get(n);let i=new Intl.DateTimeFormat(e,t);return Vp.set(n,i),i}let Gp=null;function vM(){return Gp==null&&(Gp=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Gp}let Zp=null;function _M(){return Zp==null&&(Zp=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Zp}function EM(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=OD(e,{...t,timeZone:void 0}),i=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(u=>u.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(u=>u.type==="hour").value,10);if(i===0&&o===23)return"h23";if(i===24&&o===23)return"h24";if(i===0&&o===11)return"h11";if(i===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}function or(e){e=eD(e??{},SM);let{locale:t}=un();return b.useMemo(()=>new ra(t,e),[t,e])}function SM(e,t){if(e===t)return!0;let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function kD(e){return e&&e.__esModule?e.default:e}const uy=new WeakMap;function ku(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function DM(e){let t=Xa(kD(qu),"@react-aria/calendar"),n,i;"highlightedRange"in e?{start:n,end:i}=e.highlightedRange||{}:(n=Array.isArray(e.value)?e.value[0]:e.value??void 0,i=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let o=or({weekday:"long",month:"long",year:"numeric",day:"numeric",era:ku(n)||ku(i),timeZone:e.timeZone}),{locale:u}=un(),c=b.useMemo(()=>new Intl.ListFormat(u),[u]),d="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!d&&n&&i){if(Ct(n,i)){let m=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:m})}else if("highlightedRange"in e){let m=Xh(o,t,n,i,e.timeZone);return t.format("selectedRangeDescription",{dateRange:m})}else if(Array.isArray(e.value)){let m=e.value.map(y=>o.format(y.toDate(e.timeZone))),h=c.format(m);return t.format("selectedDateDescription",{date:h})}}return""},[n,i,d,e,t,o,c])}function Jh(e,t,n,i){let o=Xa(kD(qu),"@react-aria/calendar"),u=ku(e)||ku(t),c=or({month:"long",year:"numeric",era:u,calendar:e.calendar.identifier,timeZone:n}),d=or({month:"long",year:"numeric",day:"numeric",era:u,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(Ct(e,Ii(e))){let m=e,h=t;if(e.calendar.getFormattableMonth&&(m=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(h=t.calendar.getFormattableMonth(t)),Ct(t,ud(e)))return c.format(m.toDate(n));if(Ct(t,ud(t)))return i?Xh(c,o,m,h,n):c.formatRange(m.toDate(n),h.toDate(n))}return i?Xh(d,o,e,t,n):d.formatRange(e.toDate(n),t.toDate(n))},[e,t,c,d,o,n,i])}function Xh(e,t,n,i,o){let u=e.formatRangeToParts(n.toDate(o),i.toDate(o)),c=-1;for(let h=0;h<u.length;h++){let y=u[h];if(y.source==="shared"&&y.type==="literal")c=h;else if(y.source==="endRange")break}let d="",m="";for(let h=0;h<u.length;h++)h<c?d+=u[h].value:h>c&&(m+=u[h].value);return t.format("dateRange",{startDate:d,endDate:m})}function s1(e,t){const n=b.useRef(!0),i=b.useRef(null);let o=Zt(e);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{let u=i.current;n.current?n.current=!1:(!u||t.some((c,d)=>!Object.is(c,u[d])))&&o(),i.current=t},t)}function $M(e){return e&&e.__esModule?e.default:e}function xM(e,t){let n=Xa($M(qu),"@react-aria/calendar"),i=sn(e),o=Jh(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),u=Jh(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);s1(()=>{t.isFocused||Tu(u)},[u]);let c=DM(t);s1(()=>{c&&Tu(c,"polite",4e3)},[c]);let d=rd([!!e.errorMessage,e.isInvalid,e.validationState]);uy.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:d,selectedDateDescription:c});let[m,h]=b.useState(!1),y=e.isDisabled||t.isNextVisibleRangeInvalid();y&&m&&(h(!1),t.setFocused(!0));let[g,E]=b.useState(!1),S=e.isDisabled||t.isPreviousVisibleRangeInvalid();S&&g&&(E(!1),t.setFocused(!0));let D=Vu({id:e.id,"aria-label":[e["aria-label"],u].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:pt(i,D,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:y,onFocusChange:h},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:S,onFocusChange:E},errorMessageProps:{id:d},title:o}}function CM(e,t){return xM(e,t)}function AM(e,t){let{startDate:n=t.visibleRange.start,endDate:i=t.visibleRange.end,firstDayOfWeek:o}=e,{direction:u}=un(),c=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),u==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),u==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},d=Jh(n,i,t.timeZone,!0),{ariaLabel:m,ariaLabelledBy:h}=uy.get(t),y=Vu({"aria-label":[m,d].filter(Boolean).join(", "),"aria-labelledby":h}),g=or({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:E}=un(),S=b.useMemo(()=>{let x=t.visibleDuration.days&&t.visibleDuration.days<7,w=x?n:Nu(J0(t.timeZone),E,o),R=x?t.visibleDuration.days:7;return[...new Array(R).keys()].map(I=>{let L=w.add({days:I}).toDate(t.timeZone);return g.format(L)})},[E,t.timeZone,g,o,n,t.visibleDuration.days]),D=t.getWeeksInMonth(n);return{gridProps:pt(y,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onKeyDown:c,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:S,weeksInMonth:D}}function md(e,t){if(!e)return!1;let n=window.getComputedStyle(e),i=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===i&&n.overflow!=="hidden"&&(o=!0),o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function Yd(e,t){let n=e;for(md(n,t)&&(n=n.parentElement);n&&!md(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Yp(e,t){let n=[],i=document.scrollingElement||document.documentElement;for(;e&&(md(e,t)&&n.push(e),e!==i);)e=e.parentElement;return n}function qp(e,t,n={}){let{block:i="nearest",inline:o="nearest"}=n;if(e===t)return;let u=e.scrollTop,c=e.scrollLeft,d=t.getBoundingClientRect(),m=e.getBoundingClientRect(),h=window.getComputedStyle(t),y=window.getComputedStyle(e),g=document.scrollingElement||document.documentElement,E=e===g,S=e===g?0:m.top,D=e===g?e.clientHeight:m.bottom,x=e===g?0:m.left,w=e===g?e.clientWidth:m.right,R=parseFloat(h.scrollMarginTop)||0,I=parseFloat(h.scrollMarginBottom)||0,A=parseFloat(h.scrollMarginLeft)||0,L=parseFloat(h.scrollMarginRight)||0,M=parseFloat(y.scrollPaddingTop)||0,Z=parseFloat(y.scrollPaddingBottom)||0,V=parseFloat(y.scrollPaddingLeft)||0,fe=parseFloat(y.scrollPaddingRight)||0,ne=parseFloat(y.borderTopWidth)||0,pe=parseFloat(y.borderBottomWidth)||0,J=parseFloat(y.borderLeftWidth)||0,ye=parseFloat(y.borderRightWidth)||0,Ae=d.top-R,j=d.bottom+I,de=d.left-A,k=d.right+L,B=e===g?0:J+ye,X=e===g?0:ne+pe,F=e===g?0:e.offsetWidth-e.clientWidth-B,G=e===g?0:e.offsetHeight-e.clientHeight-X,C=S+(E?0:ne)+M,U=D-(E?0:pe)-Z-G,W=x+(E?0:J)+V,Y=w-(E?0:ye)-fe;y.direction==="rtl"&&!Hu()?W+=F:Y-=F;let te=Ae<C||j>U,z=de<W||k>Y;if(te&&i==="start")u+=Ae-C;else if(te&&i==="center")u+=(Ae+j)/2-(C+U)/2;else if(te&&i==="end")u+=j-U;else if(te&&i==="nearest"){let T=Ae-C,N=j-U;u+=Math.abs(T)<=Math.abs(N)?T:N}if(z&&o==="start")c+=de-W;else if(z&&o==="center")c+=(de+k)/2-(W+Y)/2;else if(z&&o==="end")c+=k-Y;else if(z&&o==="nearest"){let T=de-W,N=k-Y;c+=Math.abs(T)<=Math.abs(N)?T:N}e.scrollTo({left:c,top:u})}function BD(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let{left:u,top:c}=e.getBoundingClientRect(),d=Yp(e,!0);for(let y of d)qp(y,e);let{left:m,top:h}=e.getBoundingClientRect();if(Math.abs(u-m)>1||Math.abs(c-h)>1){d=n?Yp(n,!0):[];for(let y of d)qp(y,n,{block:"center",inline:"center"});for(let y of Yp(e,!0))qp(y,e)}}else{let{left:u,top:c}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:d,top:m}=e.getBoundingClientRect();(Math.abs(u-d)>1||Math.abs(c-m)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let wM=0;const Kp=new Map;function sy(e){let[t,n]=b.useState();return ct(()=>{if(!e)return;let i=Kp.get(e);if(i)n(i.element.id);else{let o=`react-aria-description-${wM++}`;n(o);let u=document.createElement("div");u.id=o,u.style.display="none",u.textContent=e,document.body.appendChild(u),i={refCount:0,element:u},Kp.set(e,i)}return i.refCount++,()=>{i&&--i.refCount===0&&(i.element.remove(),Kp.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function TM(e){return e&&e.__esModule?e.default:e}function NM(e,t,n){let{date:i,isDisabled:o}=e,{errorMessageId:u,selectedDateDescription:c}=uy.get(t),d=Xa(TM(qu),"@react-aria/calendar"),m=or({weekday:"long",day:"numeric",month:"long",year:"numeric",era:ku(i),timeZone:t.timeZone}),h=t.isCellFocused(i)&&!e.isOutsideMonth;o=o||t.isCellDisabled(i)||!!e.isOutsideMonth;let y=t.isCellUnavailable(i),g=!o&&!y,E=t.isSelected(i)&&g,S=!1;t.isValueInvalid&&("highlightedRange"in t?S=!t.anchorDate&&t.highlightedRange!=null&&i.compare(t.highlightedRange.start)>=0&&i.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?S=t.value.some(J=>Ct(J,i)):t.value&&(S=Ct(t.value,i))),S&&!o&&(E=!0),i=eD(i,M8);let D=b.useMemo(()=>i.toDate(t.timeZone),[i,t.timeZone]),x=nD(i,t.timeZone),w=b.useMemo(()=>{let J="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ct(i,t.value.start)||Ct(i,t.value.end))&&(J=c+", "),J+=m.format(D),x?J=d.format(E?"todayDateSelected":"todayDate",{date:J}):E&&(J=d.format("dateSelected",{date:J})),t.minValue&&Ct(i,t.minValue)?J+=", "+d.format("minimumDate"):t.maxValue&&Ct(i,t.maxValue)&&(J+=", "+d.format("maximumDate")),J},[m,D,d,E,x,i,t,c]),R="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?R=d.format("finishRangeSelectionPrompt"):R=d.format("startRangeSelectionPrompt"));let I=sy(R),A=b.useRef(!1),L=b.useRef(!1),M=b.useRef(void 0),{pressProps:Z,isPressed:V}=Y0({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(J){if(t.isReadOnly){t.setFocusedDate(i),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&(J.pointerType==="mouse"||J.pointerType==="touch")){if(t.highlightedRange&&!S){if(Ct(i,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),L.current=!0;return}else if(Ct(i,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),L.current=!0;return}}let ye=()=>{t.setDragging(!0),M.current=void 0,t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0),A.current=!0};J.pointerType==="touch"?M.current=setTimeout(ye,200):ye()}},onPressEnd(){L.current=!1,A.current=!1,clearTimeout(M.current),M.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0))},onPressUp(J){t.isReadOnly||("anchorDate"in t&&M.current&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)),"anchorDate"in t&&(L.current?t.setAnchorDate(i):t.anchorDate&&!A.current?(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)):J.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(i),t.focusNearestAvailableDate(i)):J.pointerType==="virtual"&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0))))}}),fe;o||(fe=Ct(i,t.focusedDate)?0:-1),b.useEffect(()=>{h&&n.current&&(Bi(n.current),zd()!=="pointer"&&St()===n.current&&BD(n.current,{containingElement:Yd(n.current)}))},[h,n]);let ne=or({day:"numeric",timeZone:t.timeZone,calendar:i.calendar.identifier}),pe=b.useMemo(()=>ne.formatToParts(D).find(J=>J.type==="day").value,[ne,D]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":E||void 0,"aria-invalid":S||void 0},buttonProps:pt(Z,{onFocus(){o||(t.setFocusedDate(i),t.setFocused(!0))},tabIndex:fe,role:"button","aria-disabled":!g||void 0,"aria-label":w,"aria-invalid":S||void 0,"aria-describedby":[S?u:void 0,I["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(J){"highlightDate"in t&&(J.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(i)},onPointerDown(J){let ye=Pe(J);ye instanceof HTMLElement&&"releasePointerCapture"in ye&&("hasPointerCapture"in ye?ye.hasPointerCapture(J.pointerId)&&ye.releasePointerCapture(J.pointerId):ye.releasePointerCapture(J.pointerId))},onContextMenu(J){J.preventDefault()}}),isPressed:V,isFocused:h,isSelected:E,isDisabled:o,isUnavailable:y,isOutsideVisibleRange:i.compare(t.visibleRange.start)<0||i.compare(t.visibleRange.end)>0,isInvalid:S,formattedDate:pe}}function MM(e,t){let n=or({month:e.format||"short",calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),i=[],o=t.focusedDate.calendar.getMonthsInYear(t.focusedDate);for(let d=1;d<=o;d++){let m=t.focusedDate.set({month:d}),h=m.calendar.getFormattableMonth?m.calendar.getFormattableMonth(m):m;i.push({id:d,date:m,formatted:n.format(h.toDate(t.timeZone))})}let{locale:u}=un();return{"aria-label":b.useMemo(()=>new Intl.DisplayNames(u,{type:"dateTimeField"}).of("month"),[u]),value:t.focusedDate.month,onChange:d=>{d!=null&&t.setFocusedDate(i[Number(d)-1].date)},items:i}}function RM(e,t){let n=or({year:e.format?.year||"numeric",era:e.format?.era||(t.focusedDate.calendar.identifier==="gregory"&&t.focusedDate.era==="BC"?"short":void 0),calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),i=e.visibleYears||20,o=t.focusedDate.subtract({years:Math.floor(i/2)}),u=t.focusedDate.add({years:Math.ceil(i/2)-1});t.maxValue&&u.compare(t.maxValue)>0&&(u=mn(t.maxValue),o=u.subtract({years:i-1})),t.minValue&&o.compare(t.minValue)<0&&(o=mn(t.minValue),u=o.add({years:i-1}),t.maxValue&&u.compare(t.maxValue)>0&&(u=mn(t.maxValue)));let c=[],d=o,m=0;for(;d.compare(u)<=0;)N8(d,t.focusedDate)&&(m=c.length),c.push({id:c.length,date:d,formatted:n.format(d.toDate(t.timeZone))}),d=d.add({years:1});let{locale:h}=un();return{"aria-label":b.useMemo(()=>new Intl.DisplayNames(h,{type:"dateTimeField"}).of("year"),[h]),value:m,onChange:g=>{g!=null&&t.setFocusedDate(c[g].date)},items:c}}function Cc(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function c1(e,t,n,i,o){let u={};for(let d in t)u[d]=Math.floor(t[d]/2),u[d]>0&&t[d]%2===0&&u[d]--;let c=Ai(e,t,n).subtract(u);return Bu(e,c,t,n,i,o)}function Ai(e,t,n,i,o){let u=e;return t.years?u=Gh(e):t.months?u=Ii(e):(t.weeks||t.days&&t.days>7)&&(u=Nu(e,n)),Bu(e,u,t,n,i,o)}function e0(e,t,n,i,o){let u={...t};u.days?u.days--:u.weeks?u.weeks--:u.months?u.months--:u.years&&u.years--;let c=Ai(e,t,n).subtract(u);return Bu(e,c,t,n,i,o)}function Bu(e,t,n,i,o,u){if(o&&e.compare(o)>=0){let c=uD(t,Ai(mn(o),n,i));c&&(t=c)}if(u&&e.compare(u)<=0){let c=lD(t,e0(mn(u),n,i));c&&(t=c)}return t}function qr(e,t,n){if(t){let i=uD(e,mn(t));i&&(e=i)}if(n){let i=lD(e,mn(n));i&&(e=i)}return e}function OM(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function kM(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function BM(e){let t=b.useMemo(()=>new ra(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:i,createCalendar:o,visibleDuration:u={months:1},minValue:c,maxValue:d,selectionAlignment:m,isDateUnavailable:h,pageBehavior:y="visible",selectionMode:g="single",firstDayOfWeek:E,weeksInMonth:S}=e,D=b.useMemo(()=>o(n.calendar),[o,n.calendar]),[x,w]=Au(e.value,e.defaultValue??null,e.onChange),R=b.useMemo(()=>Array.isArray(x)?x.map(Y=>Et(mn(Y),D)):x?Et(mn(x),D):null,[x,D]),I=b.useMemo(()=>{let Y=Array.isArray(x)?x[0]:x;return Y&&"timeZone"in Y?Y.timeZone:n.timeZone},[x,n.timeZone]),A=b.useMemo(()=>e.focusedValue?qr(Et(mn(e.focusedValue),D),c,d):void 0,[e.focusedValue,D,c,d]),L=b.useMemo(()=>e.defaultFocusedValue?qr(Et(mn(e.defaultFocusedValue),D),c,d):qr(R?Array.isArray(R)?R[0]:R:Et(J0(I),D),c,d),[e.defaultFocusedValue,R,I,D,c,d]),[M,Z]=Au(A,L,e.onFocusChange),V=()=>{switch(m){case"start":return Ai(M,u,i,c,d);case"end":return e0(M,u,i,c,d);case"center":default:return c1(M,u,i,c,d)}},[fe,ne]=b.useState(V),[pe,J]=b.useState(e.autoFocus||!1),[ye,Ae]=b.useState(u);kM(u,ye)||(Ae(u),ne(V()));let j=b.useMemo(()=>{let Y={...u};return Y.days?Y.days--:Y.days=-1,fe.add(Y)},[fe,u]),[de,k]=b.useState(D);if(!Vd(D,de)){let Y=Et(M,D);ne(c1(Y,u,i,c,d)),Z(Y),k(D)}Cc(M,c,d)?Z(qr(M,c,d)):M.compare(fe)<0?ne(e0(M,u,i,c,d)):M.compare(j)>0&&ne(Ai(M,u,i,c,d));function B(Y){Y=qr(Y,c,d),Z(Y)}function X(Y){let te=qr(Y,c,d),z=OM(te,fe,h);if(!z)return null;let T=Array.isArray(x)?x[0]:x,N=Et(z,T?.calendar||new pn);return T&&"hour"in T?T.set(N):N}function F(Y){if(!e.isDisabled&&!e.isReadOnly){if(Y===null){w(g==="multiple"?[]:null);return}if(Array.isArray(Y))w(Y.map(X).filter(Boolean));else{let te=X(Y);te&&w(te)}}}let G=b.useMemo(()=>R?Array.isArray(R)?R.some(Y=>h?.(Y)||Cc(Y,c,d)):h?.(R)||Cc(R,c,d):!1,[R,h,c,d]),C=e.isInvalid||e.validationState==="invalid"||G,U=C?"invalid":null,W=b.useMemo(()=>y==="visible"?u:Wp(u),[y,u]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:R,setValue:F,selectionMode:g,visibleDuration:u,visibleRange:{start:fe,end:j},minValue:c,maxValue:d,focusedDate:M,timeZone:I,validationState:U,isValueInvalid:C,setFocusedDate(Y){B(Y)},focusNextDay(){B(M.add({days:1}))},focusPreviousDay(){B(M.subtract({days:1}))},focusNextRow(){u.days?this.focusNextPage():(u.weeks||u.months||u.years)&&B(M.add({weeks:1}))},focusPreviousRow(){u.days?this.focusPreviousPage():(u.weeks||u.months||u.years)&&B(M.subtract({weeks:1}))},focusNextPage(){let Y=fe.add(W);Z(qr(M.add(W),c,d)),ne(Ai(Bu(M,Y,W,i,c,d),W,i))},focusPreviousPage(){let Y=fe.subtract(W);Z(qr(M.subtract(W),c,d)),ne(Ai(Bu(M,Y,W,i,c,d),W,i))},focusSectionStart(){u.days?B(fe):u.weeks?B(Nu(M,i)):(u.months||u.years)&&B(Ii(M))},focusSectionEnd(){u.days?B(j):u.weeks?B(k8(M,i)):(u.months||u.years)&&B(ud(M))},focusNextSection(Y){if(!Y&&!u.days){B(M.add(Wp(u)));return}u.days?this.focusNextPage():u.weeks?B(M.add({months:1})):(u.months||u.years)&&B(M.add({years:1}))},focusPreviousSection(Y){if(!Y&&!u.days){B(M.subtract(Wp(u)));return}u.days?this.focusPreviousPage():u.weeks?B(M.subtract({months:1})):(u.months||u.years)&&B(M.subtract({years:1}))},selectFocusedDate(){h&&h(M)||this.selectDate(M)},selectDate(Y){if(!(e.isDisabled||e.isReadOnly))if(g==="multiple"&&Y!=null){let te=X(Y);if(!te)return;let z=[];Array.isArray(x)?z=x:x!=null&&(z=[x]);let T=z.findIndex(ie=>Ct(ie,te)),N=T>=0?z.slice(0,T).concat(z.slice(T+1)):[...z,te];w(N)}else F(Y)},isFocused:pe,setFocused:J,isInvalid(Y){return Cc(Y,c,d)},isSelected(Y){return!R||this.isCellDisabled(Y)||this.isCellUnavailable(Y)?!1:Array.isArray(R)?R.some(te=>Ct(te,Y)):Ct(Y,R)},isCellFocused(Y){return pe&&M&&Ct(Y,M)},isCellDisabled(Y){return e.isDisabled||Y.compare(fe)<0||Y.compare(j)>0||this.isInvalid(Y)},isCellUnavailable(Y){return e.isDateUnavailable?e.isDateUnavailable(Y):!1},isPreviousVisibleRangeInvalid(){let Y=fe.subtract({days:1});return Ct(Y,fe)||this.isInvalid(Y)},isNextVisibleRangeInvalid(){let Y=j.add({days:1});return Ct(Y,j)||this.isInvalid(Y)},getDatesInWeek(Y,te=fe){let z=te.add({weeks:Y}),T=[],N=u.days&&u.days<7?u.days:7;if(N===7){z=Nu(z,i,E);let ie=Q0(z,i,E);for(let ge=0;ge<ie;ge++)T.push(null)}for(;T.length<N;){T.push(z);let ie=z.add({days:1});if(Ct(z,ie))break;z=ie}for(;T.length<N;)T.push(null);return T},getWeeksInMonth(Y=fe){let te=S||P8(Y,i,E);return(u.weeks||u.days)&&(te=u.weeks??0,u.days&&(te+=Math.ceil(u.days/7))),te}}}function Wp(e){let t={...e};for(let n in e)t[n]=1;return t}const d1={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function LD(e={}){let{style:t,isFocusable:n}=e,[i,o]=b.useState(!1),{focusWithinProps:u}=Gu({isDisabled:!n,onFocusWithinChange:d=>o(d)}),c=b.useMemo(()=>i?t:t?{...d1,...t}:d1,[i]);return{visuallyHiddenProps:{...u,style:c}}}function t0(e){let{children:t,elementType:n="div",isFocusable:i,style:o,...u}=e,{visuallyHiddenProps:c}=LD(e);return ve.createElement(n,pt(u,c),t)}const pd=b.createContext(null),LM=b.createContext(null),dl=b.createContext(null),Wu=b.createContext(null),PM=b.forwardRef(function(t,n){[t,n]=ua(t,n,pd);let{locale:i}=un(),o=BM({...t,locale:i,createCalendar:t.createCalendar||RD}),{calendarProps:u,prevButtonProps:c,nextButtonProps:d,errorMessageProps:m,title:h}=CM(t,o),y=la({...t,values:{state:o,isDisabled:t.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-Calendar"}),g=sn(t,{global:!0});return ve.createElement(wn.div,{...pt(g,y,u),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},ve.createElement(Id,{values:[[Yu,{slots:{previous:c,next:d}}],[K0,{"aria-hidden":!0,level:2,children:h}],[dl,o],[pd,t],[W0,{slots:{errorMessage:m}}]]},ve.createElement(t0,null,ve.createElement("h2",null,u["aria-label"])),y.children,ve.createElement(t0,null,ve.createElement("button",{"aria-label":d["aria-label"],disabled:d.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}),qd=b.createContext(null),IM=b.forwardRef(function(t,n){let i=b.useContext(dl),o=b.useContext(Wu),u=ad(pd),c=ad(LM),d=i??o,m=d.visibleRange.start;t.offset&&(m=m.add(t.offset));let h=u?.firstDayOfWeek??c?.firstDayOfWeek,{gridProps:y,headerProps:g,weekDays:E,weeksInMonth:S}=AM({startDate:m,endDate:ud(m),weekdayStyle:t.weekdayStyle,firstDayOfWeek:h},d),D=sn(t,{global:!0});return ve.createElement(qd.Provider,{value:{headerProps:g,weekDays:E,startDate:m,weeksInMonth:S}},ve.createElement(wn.table,{render:t.render,...pt(D,y),ref:n,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:ve.createElement(ve.Fragment,null,ve.createElement(PD,null,x=>ve.createElement(ID,null,x)),ve.createElement(FD,null,t.children))))});function FM(e,t){let{children:n,style:i,className:o}=e,{headerProps:u,weekDays:c}=b.useContext(qd),d=sn(e,{global:!0});return ve.createElement(wn.thead,{render:e.render,...pt(d,u),ref:t,style:i,className:o??"react-aria-CalendarGridHeader"},ve.createElement("tr",null,c.map((m,h)=>ve.cloneElement(n(m),{key:h}))))}const PD=b.forwardRef(FM);function jM(e,t){let{children:n,style:i,className:o}=e,u=sn(e,{global:!0});return ve.createElement(wn.th,{render:e.render,...u,ref:t,style:i,className:o||"react-aria-CalendarHeaderCell"},n)}const ID=b.forwardRef(jM);function zM(e,t){let{children:n,style:i,className:o}=e,u=b.useContext(dl),c=b.useContext(Wu),d=u??c,{startDate:m,weeksInMonth:h}=b.useContext(qd),y=sn(e,{global:!0});return ve.createElement(wn.tbody,{render:e.render,...y,ref:t,style:i,className:o??"react-aria-CalendarGridBody"},[...new Array(h).keys()].map(g=>ve.createElement("tr",{key:g},d.getDatesInWeek(g,m).map((E,S)=>E?ve.cloneElement(n(E),{key:S}):ve.createElement("td",{key:S})))))}const FD=b.forwardRef(zM),UM=b.forwardRef(function({date:t,...n},i){let o=b.useContext(dl),u=b.useContext(Wu),c=o??u,{startDate:d}=b.useContext(qd)??{startDate:c.visibleRange.start},m=c.visibleDuration.days||c.visibleDuration.weeks?!1:!T8(d,t),h=nD(t,c.timeZone),y=b.useRef(null),{cellProps:g,buttonProps:E,...S}=NM({date:t,isOutsideMonth:m},c,y),{hoverProps:D,isHovered:x}=Zu({...n,isDisabled:S.isDisabled||S.isUnavailable}),{focusProps:w,isFocusVisible:R}=cl();R&&=S.isFocused;let I=!1,A=!1;"highlightedRange"in c&&c.highlightedRange&&(I=Ct(t,c.highlightedRange.start),A=Ct(t,c.highlightedRange.end));let L=la({...n,defaultChildren:S.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:x,isOutsideMonth:m,isFocusVisible:R,isSelectionStart:I,isSelectionEnd:A,isToday:h,...S}}),M={"data-focused":S.isFocused||void 0,"data-hovered":x||void 0,"data-pressed":S.isPressed||void 0,"data-unavailable":S.isUnavailable||void 0,"data-disabled":S.isDisabled||void 0,"data-focus-visible":R||void 0,"data-outside-visible-range":S.isOutsideVisibleRange||void 0,"data-outside-month":m||void 0,"data-selected":S.isSelected||void 0,"data-selection-start":I||void 0,"data-selection-end":A||void 0,"data-invalid":S.isInvalid||void 0,"data-today":h||void 0},Z=sn(n,{global:!0});return ve.createElement("td",{...g,ref:i},ve.createElement(wn.div,{...pt(Z,E,w,D,M,L),ref:y}))});function HM(e){let t=ve.useContext(dl),n=ve.useContext(Wu),o=RM(e,t||n);return e.children(o)}function VM(e){let t=ve.useContext(dl),n=ve.useContext(Wu),o=MM(e,t||n);return e.children(o)}const GM=b.createContext(null),jD={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},zD={...jD,customError:!0,valid:!1},su={isInvalid:!1,validationDetails:jD,validationErrors:[]},ZM=b.createContext({}),n0="__reactAriaFormValidationState";function UD(e){if(e[n0]){let{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:o,commitValidation:u}=e[n0];return{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:o,commitValidation:u}}return YM(e)}function YM(e){let{isInvalid:t,validationState:n,name:i,value:o,builtinValidation:u,validate:c,validationBehavior:d="aria"}=e;n&&(t||=n==="invalid");let m=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:zD}:null,h=b.useMemo(()=>{if(!c||o==null)return null;let pe=qM(c,o);return f1(pe)},[c,o]);u?.validationDetails.valid&&(u=void 0);let y=b.useContext(ZM),g=b.useMemo(()=>i?Array.isArray(i)?i.flatMap(pe=>r0(y[pe])):r0(y[i]):[],[y,i]),[E,S]=b.useState(y),[D,x]=b.useState(!1);y!==E&&(S(y),x(!1));let w=b.useMemo(()=>f1(D?[]:g),[D,g]),R=b.useRef(su),[I,A]=b.useState(su),L=b.useRef(su),M=()=>{if(!Z)return;V(!1);let pe=h||u||R.current;Qp(pe,L.current)||(L.current=pe,A(pe))},[Z,V]=b.useState(!1);return b.useEffect(M),{realtimeValidation:m||w||h||u||su,displayValidation:d==="native"?m||w||I:m||w||h||u||I,updateValidation(pe){d==="aria"&&!Qp(I,pe)?A(pe):R.current=pe},resetValidation(){let pe=su;Qp(pe,L.current)||(L.current=pe,A(pe)),d==="native"&&V(!1),x(!0)},commitValidation(){d==="native"&&V(!0),x(!0)}}}function r0(e){return e?Array.isArray(e)?e:[e]:[]}function qM(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return r0(n)}return[]}function f1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:zD}:null}function Qp(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,i)=>n===t.validationErrors[i])&&Object.entries(e.validationDetails).every(([n,i])=>t.validationDetails[n]===i)}const KM=b.createContext(null);function HD(e){let{description:t,errorMessage:n,isInvalid:i,validationState:o}=e,{labelProps:u,fieldProps:c}=m8(e),d=rd([!!t,!!n,i,o]),m=rd([!!t,!!n,i,o]);return c=pt(c,{"aria-describedby":[d,m,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:u,fieldProps:c,descriptionProps:{id:d},errorMessageProps:{id:m}}}function WM(e,t,n){let i=Zt(o=>{n&&!o.defaultPrevented&&n(t)});b.useEffect(()=>{let o=e?.current?.form;return o?.addEventListener("reset",i),()=>{o?.removeEventListener("reset",i)}},[e])}function QM(e,t,n){let{validationBehavior:i,focus:o}=e;ct(()=>{if(i==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let h=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(h),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(XM(n.current))}});let u=b.useRef(!1),c=Zt(()=>{u.current||t.resetValidation()}),d=Zt(h=>{t.displayValidation.isInvalid||t.commitValidation();let y=n?.current?.form;!h.defaultPrevented&&n&&y&&eR(y)===n.current&&(o?o():n.current?.focus(),RN("keyboard")),h.preventDefault()}),m=Zt(()=>{t.commitValidation()});b.useEffect(()=>{let h=n?.current;if(!h)return;let y=h.form,g=y?.reset;return y&&(y.reset=()=>{u.current=!window.event||window.event.type==="message"&&Pe(window.event)instanceof MessagePort,g?.call(y),u.current=!1}),h.addEventListener("invalid",d),h.addEventListener("change",m),y?.addEventListener("reset",c),()=>{h.removeEventListener("invalid",d),h.removeEventListener("change",m),y?.removeEventListener("reset",c),y&&(y.reset=g)}},[n,i])}function JM(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function XM(e){return{isInvalid:!e.validity.valid,validationDetails:JM(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function eR(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}const Kd=b.createContext({}),VD=b.forwardRef(function(t,n){[t,n]=ua(t,n,Kd);let{isDisabled:i,isInvalid:o,isReadOnly:u,onHoverStart:c,onHoverChange:d,onHoverEnd:m,...h}=t;i??=!!t["aria-disabled"]&&t["aria-disabled"]!=="false",o??=!!t["aria-invalid"]&&t["aria-invalid"]!=="false";let{hoverProps:y,isHovered:g}=Zu({onHoverStart:c,onHoverChange:d,onHoverEnd:m,isDisabled:i}),{isFocused:E,isFocusVisible:S,focusProps:D}=cl({within:!0}),x=la({...t,values:{isHovered:g,isFocusWithin:E,isFocusVisible:S,isDisabled:i,isInvalid:o},defaultClassName:"react-aria-Group"});return ve.createElement(wn.div,{...pt(h,D,y),...x,ref:n,role:t.role??"group",slot:t.slot??void 0,"data-focus-within":E||void 0,"data-hovered":g||void 0,"data-focus-visible":S||void 0,"data-disabled":i||void 0,"data-invalid":o||void 0,"data-readonly":u||void 0},x.children)}),GD=b.createContext({});let tR=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,...o}=e;return o};const nR=fS(function(t,n){[t,n]=ua(t,n,GD);let{hoverProps:i,isHovered:o}=Zu({...t,isDisabled:t.disabled}),{isFocused:u,isFocusVisible:c,focusProps:d}=cl({isTextInput:!0,autoFocus:t.autoFocus}),m=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",h=la({...t,values:{isHovered:o,isFocused:u,isFocusVisible:c,isDisabled:t.disabled||!1,isInvalid:m},defaultClassName:"react-aria-Input"});return ve.createElement(wn.input,{...pt(tR(t),d,i),...h,ref:n,"data-focused":u||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":c||void 0,"data-invalid":m||void 0})});var ZD={};ZD={Empty:"فارغ"};var YD={};YD={Empty:"Изпразни"};var qD={};qD={Empty:"Prázdné"};var KD={};KD={Empty:"Tom"};var WD={};WD={Empty:"Leer"};var QD={};QD={Empty:"Άδειο"};var JD={};JD={Empty:"Empty"};var XD={};XD={Empty:"Vacío"};var e$={};e$={Empty:"Tühjenda"};var t$={};t$={Empty:"Tyhjä"};var n$={};n$={Empty:"Vide"};var r$={};r$={Empty:"ריק"};var a$={};a$={Empty:"Prazno"};var i$={};i$={Empty:"Üres"};var o$={};o$={Empty:"Vuoto"};var l$={};l$={Empty:"空"};var u$={};u$={Empty:"비어 있음"};var s$={};s$={Empty:"Tuščias"};var c$={};c$={Empty:"Tukšs"};var d$={};d$={Empty:"Tom"};var f$={};f$={Empty:"Leeg"};var m$={};m$={Empty:"Pusty"};var p$={};p$={Empty:"Vazio"};var h$={};h$={Empty:"Vazio"};var y$={};y$={Empty:"Gol"};var g$={};g$={Empty:"Не заполнено"};var b$={};b$={Empty:"Prázdne"};var v$={};v$={Empty:"Prazen"};var _$={};_$={Empty:"Prazno"};var E$={};E$={Empty:"Tomt"};var S$={};S$={Empty:"Boş"};var D$={};D$={Empty:"Пусто"};var $$={};$$={Empty:"空"};var x$={};x$={Empty:"空白"};var C$={};C$={"ar-AE":ZD,"bg-BG":YD,"cs-CZ":qD,"da-DK":KD,"de-DE":WD,"el-GR":QD,"en-US":JD,"es-ES":XD,"et-EE":e$,"fi-FI":t$,"fr-FR":n$,"he-IL":r$,"hr-HR":a$,"hu-HU":i$,"it-IT":o$,"ja-JP":l$,"ko-KR":u$,"lt-LT":s$,"lv-LV":c$,"nb-NO":d$,"nl-NL":f$,"pl-PL":m$,"pt-BR":p$,"pt-PT":h$,"ro-RO":y$,"ru-RU":g$,"sk-SK":b$,"sl-SI":v$,"sr-SP":_$,"sv-SE":E$,"tr-TR":S$,"uk-UA":D$,"zh-CN":$$,"zh-TW":x$};function rR(e){return e&&e.__esModule?e.default:e}const m1=()=>{};function aR(e){const t=b.useRef(void 0);let{value:n,textValue:i,minValue:o,maxValue:u,isDisabled:c,isReadOnly:d,isRequired:m,onIncrement:h,onIncrementPage:y,onDecrement:g,onDecrementPage:E,onDecrementToMin:S,onIncrementToMax:D}=e;const x=Xa(rR(C$),"@react-aria/spinbutton");let w=b.useRef(!1);const R=b.useCallback(()=>{clearTimeout(t.current),w.current=!1},[]),I=Zt(()=>{R()});b.useEffect(()=>()=>I(),[]);let A=W=>{if(!(W.ctrlKey||W.metaKey||W.shiftKey||W.altKey||d||W.nativeEvent.isComposing))switch(W.key){case"PageUp":if(y){W.preventDefault(),y?.();break}case"ArrowUp":case"Up":h&&(W.preventDefault(),h?.());break;case"PageDown":if(E){W.preventDefault(),E?.();break}case"ArrowDown":case"Down":g&&(W.preventDefault(),g?.());break;case"Home":S&&(W.preventDefault(),S?.());break;case"End":D&&(W.preventDefault(),D?.());break}},L=b.useRef(!1),M=()=>{L.current=!0},Z=()=>{L.current=!1},V=i===""?x.format("Empty"):(i||`${n}`).replace("-","−");b.useEffect(()=>{L.current&&(E8("assertive"),Tu(V,"assertive"))},[V]);let fe=b.useCallback(()=>{R()},[R]);const ne=Zt(h??m1),pe=Zt(g??m1),J=Zt(()=>{(u===void 0||isNaN(u)||n===void 0||isNaN(n)||n<u)&&(ne(),ye(60))}),ye=Zt(W=>{I(),w.current=!0,t.current=window.setTimeout(J,W)}),Ae=Zt(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&(pe(),j(60))}),j=Zt(W=>{I(),w.current=!0,t.current=window.setTimeout(Ae,W)});let de=W=>{W.preventDefault()},{addGlobalListener:k,removeAllGlobalListeners:B}=Ud(),X=b.useRef(!1),[F,G]=b.useState(null);b.useEffect(()=>{F==="touch"?ye(600):F?ye(400):F||I()},[F]);let[C,U]=b.useState(null);return b.useEffect(()=>{C==="touch"?j(600):C?j(400):C||I()},[C]),{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":V,"aria-valuemin":o,"aria-valuemax":u,"aria-disabled":c||void 0,"aria-readonly":d||void 0,"aria-required":m||void 0,onKeyDown:A,onFocus:M,onBlur:Z},incrementButtonProps:{onPressStart:W=>{R(),W.pointerType!=="touch"?(h?.(),G("mouse")):(k(window,"pointercancel",fe,{capture:!0}),X.current=!1,G("touch")),k(window,"contextmenu",de)},onPressUp:W=>{R(),W.pointerType==="touch"&&(X.current=!0),B(),G(null)},onPressEnd:W=>{R(),W.pointerType==="touch"&&!w.current&&X.current&&h?.(),X.current=!1,G(null)},onFocus:M,onBlur:Z},decrementButtonProps:{onPressStart:W=>{R(),W.pointerType!=="touch"?(g?.(),U("mouse")):(k(window,"pointercancel",fe,{capture:!0}),X.current=!1,U("touch"))},onPressUp:W=>{R(),W.pointerType==="touch"&&(X.current=!0),B(),U(null)},onPressEnd:W=>{R(),W.pointerType==="touch"&&!w.current&&X.current&&g?.(),X.current=!1,U(null)},onFocus:M,onBlur:Z}}}class iR{constructor(t,n,i,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c.shadowRoot;if(d){const m=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(m),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(c);if(this.filter?.acceptNode)return this.filter.acceptNode(c);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=i??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,i,this._acceptNode));const u=n.shadowRoot;if(u){const c=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(c)}}get currentNode(){return this._currentNode}set currentNode(t){if(!ot(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let i=t,o=t;for(this._currentNode=t;i&&i!==this.root;)if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const c=i,d=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});n.push(d),d.currentNode=o,this._currentSetFor.add(d),i=o=c.host}else i=i.parentNode;const u=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(u),u.currentNode=o,this._currentSetFor.add(u),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ot(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(t):this.filter?.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(n):this.filter?.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let u=this.lastChild();return u&&(this.currentNode=u),u}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function A$(e,t,n,i){return Xr()?new iR(e,t,n,i):e.createTreeWalker(t,n,i)}const p1=ve.createContext(null),a0="react-aria-focus-scope-restore";let _t=null;function oR(e){let{children:t,contain:n,restoreFocus:i,autoFocus:o}=e,u=b.useRef(null),c=b.useRef(null),d=b.useRef([]),{parentNode:m}=b.useContext(p1)||{},h=b.useMemo(()=>new o0({scopeRef:d}),[d]);ct(()=>{let E=m||Ht.root;if(Ht.getTreeNode(E.scopeRef)&&_t&&!hd(_t,E.scopeRef)){let S=Ht.getTreeNode(_t);S&&(E=S)}E.addChild(h),Ht.addNode(h)},[h,m]),ct(()=>{let E=Ht.getTreeNode(d);E&&(E.contain=!!n)},[n]),ct(()=>{let E=u.current?.nextSibling,S=[],D=x=>x.stopPropagation();for(;E&&E!==c.current;)S.push(E),E.addEventListener(a0,D),E=E.nextSibling;return d.current=S,()=>{for(let x of S)x.removeEventListener(a0,D)}},[t]),mR(d,i,n),cR(d,n),pR(d,i,n),fR(d,o),b.useEffect(()=>{const E=St(nt(d.current?d.current[0]:void 0));let S=null;if(sr(E,d.current)){for(let D of Ht.traverse())D.scopeRef&&sr(E,D.scopeRef.current)&&(S=D);S===Ht.getTreeNode(d)&&(_t=S.scopeRef)}},[d]),ct(()=>()=>{let E=Ht.getTreeNode(d)?.parent?.scopeRef??null;(d===_t||hd(d,_t))&&(!E||Ht.getTreeNode(E))&&(_t=E),Ht.removeTreeNode(d)},[d]);let y=b.useMemo(()=>lR(d),[]),g=b.useMemo(()=>({focusManager:y,parentNode:h}),[h,y]);return ve.createElement(p1.Provider,{value:g},ve.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:u}),t,ve.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}function lR(e){return{focusNext(t={}){let n=e.current,{from:i,tabbable:o,wrap:u,accept:c}=t,d=i||St(nt(n[0]??void 0)),m=n[0].previousElementSibling,h=wi(n),y=An(h,{tabbable:o,accept:c},n);y.currentNode=sr(d,n)?d:m;let g=y.nextNode();return!g&&u&&(y.currentNode=m,g=y.nextNode()),g&&Cn(g,!0),g},focusPrevious(t={}){let n=e.current,{from:i,tabbable:o,wrap:u,accept:c}=t,d=i||St(nt(n[0]??void 0)),m=n[n.length-1].nextElementSibling,h=wi(n),y=An(h,{tabbable:o,accept:c},n);y.currentNode=sr(d,n)?d:m;let g=y.previousNode();return!g&&u&&(y.currentNode=m,g=y.previousNode()),g&&Cn(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:i,accept:o}=t,u=wi(n),c=An(u,{tabbable:i,accept:o},n);c.currentNode=n[0].previousElementSibling;let d=c.nextNode();return d&&Cn(d,!0),d},focusLast(t={}){let n=e.current,{tabbable:i,accept:o}=t,u=wi(n),c=An(u,{tabbable:i,accept:o},n);c.currentNode=n[n.length-1].nextElementSibling;let d=c.previousNode();return d&&Cn(d,!0),d}}}function wi(e){return e[0].parentElement}function vu(e){let t=Ht.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function uR(e){if(!e.form)return Array.from(nt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(i=>!i.form);const t=e.form.elements.namedItem(e.name);let n=hn(e);return t instanceof n.RadioNodeList?Array.from(t).filter(i=>i instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function sR(e){if(e.checked)return!0;const t=uR(e);return t.length>0&&!t.some(n=>n.checked)}function cR(e,t){let n=b.useRef(void 0),i=b.useRef(void 0);ct(()=>{let o=e.current;if(!t){i.current&&(cancelAnimationFrame(i.current),i.current=void 0);return}const u=nt(o?o[0]:void 0);let c=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!vu(e)||h.isComposing)return;let y=St(u),g=e.current;if(!g||!sr(y,g))return;let E=wi(g),S=An(E,{tabbable:!0},g);if(!y)return;S.currentNode=y;let D=h.shiftKey?S.previousNode():S.nextNode();D||(S.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,D=h.shiftKey?S.previousNode():S.nextNode()),h.preventDefault(),D&&(Cn(D,!0),D instanceof hn(D).HTMLInputElement&&D.select())},d=h=>{(!_t||hd(_t,e))&&sr(Pe(h),e.current)?(_t=e,n.current=Pe(h)):vu(e)&&!Va(Pe(h),e)?n.current?n.current.focus():_t&&_t.current&&i0(_t.current):vu(e)&&(n.current=Pe(h))},m=h=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{let y=zd(),g=(y==="virtual"||y===null)&&G0()&&JE(),E=St(u);if(!g&&E&&vu(e)&&!Va(E,e)){_t=e;let S=Pe(h);S&&S.isConnected?(n.current=S,n.current?.focus()):_t.current&&i0(_t.current)}})};return u.addEventListener("keydown",c,!1),u.addEventListener("focusin",d,!1),o?.forEach(h=>h.addEventListener("focusin",d,!1)),o?.forEach(h=>h.addEventListener("focusout",m,!1)),()=>{u.removeEventListener("keydown",c,!1),u.removeEventListener("focusin",d,!1),o?.forEach(h=>h.removeEventListener("focusin",d,!1)),o?.forEach(h=>h.removeEventListener("focusout",m,!1))}},[e,t]),ct(()=>()=>{i.current&&cancelAnimationFrame(i.current)},[i])}function w$(e){return Va(e)}function sr(e,t){return!e||!t?!1:t.some(n=>ot(n,e))}function Va(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ht.traverse(Ht.getTreeNode(t)))if(n&&sr(e,n.current))return!0;return!1}function dR(e){return Va(e,_t)}function hd(e,t){let n=Ht.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Cn(e,t=!1){if(e!=null&&!t)try{wu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function T$(e,t=!0){let n=e[0].previousElementSibling,i=wi(e),o=An(i,{tabbable:t},e);o.currentNode=n;let u=o.nextNode();return t&&!u&&(i=wi(e),o=An(i,{tabbable:!1},e),o.currentNode=n,u=o.nextNode()),u}function i0(e,t=!0){Cn(T$(e,t))}function fR(e,t){const n=ve.useRef(t);b.useEffect(()=>{if(n.current){_t=e;const i=nt(e.current?e.current[0]:void 0);!sr(St(i),_t.current)&&e.current&&i0(e.current)}n.current=!1},[e])}function mR(e,t,n){ct(()=>{if(t||n)return;let i=e.current;const o=nt(i?i[0]:void 0);let u=c=>{let d=Pe(c);sr(d,e.current)?_t=e:w$(d)||(_t=null)};return o.addEventListener("focusin",u,!1),i?.forEach(c=>c.addEventListener("focusin",u,!1)),()=>{o.removeEventListener("focusin",u,!1),i?.forEach(c=>c.removeEventListener("focusin",u,!1))}},[e,t,n])}function h1(e){let t=Ht.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function pR(e,t,n){const i=b.useRef(typeof document<"u"?St(nt(e.current?e.current[0]:void 0)):null);ct(()=>{let o=e.current;const u=nt(o?o[0]:void 0);if(!t||n)return;let c=()=>{(!_t||hd(_t,e))&&sr(St(u),e.current)&&(_t=e)};return u.addEventListener("focusin",c,!1),o?.forEach(d=>d.addEventListener("focusin",c,!1)),()=>{u.removeEventListener("focusin",c,!1),o?.forEach(d=>d.removeEventListener("focusin",c,!1))}},[e,n]),ct(()=>{const o=nt(e.current?e.current[0]:void 0);if(!t)return;let u=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!vu(e)||c.isComposing)return;let d=o.activeElement;if(!Va(d,e)||!h1(e))return;let m=Ht.getTreeNode(e);if(!m)return;let h=m.nodeToRestore,y=An(o.body,{tabbable:!0});y.currentNode=d;let g=c.shiftKey?y.previousNode():y.nextNode();if((!h||!h.isConnected||h===o.body)&&(h=void 0,m.nodeToRestore=void 0),(!g||!Va(g,e))&&h){y.currentNode=h;do g=c.shiftKey?y.previousNode():y.nextNode();while(Va(g,e));c.preventDefault(),c.stopPropagation(),g?Cn(g,!0):w$(h)?Cn(h,!0):d.blur()}};return n||o.addEventListener("keydown",u,!0),()=>{n||o.removeEventListener("keydown",u,!0)}},[e,t,n]),ct(()=>{const o=nt(e.current?e.current[0]:void 0);if(!t)return;let u=Ht.getTreeNode(e);if(u)return u.nodeToRestore=i.current??void 0,()=>{let c=Ht.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,m=St(o);if(t&&d&&(m&&Va(m,e)||m===o.body&&h1(e))){let h=Ht.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let y=h.getTreeNode(e);for(;y;){if(y.nodeToRestore&&y.nodeToRestore.isConnected){y1(y.nodeToRestore);return}y=y.parent}for(y=h.getTreeNode(e);y;){if(y.scopeRef&&y.scopeRef.current&&Ht.getTreeNode(y.scopeRef)){let g=T$(y.scopeRef.current,!0);y1(g);return}y=y.parent}}})}}},[e,t])}function y1(e){e.dispatchEvent(new CustomEvent(a0,{bubbles:!0,cancelable:!0}))&&Cn(e)}function An(e,t,n){let i=t?.tabbable?$N:ZE,o=e?.nodeType===Node.ELEMENT_NODE?e:null,u=nt(o),c=A$(u,e||u,NodeFilter.SHOW_ELEMENT,{acceptNode(d){return ot(t?.from,d)||t?.tabbable&&d.tagName==="INPUT"&&d.getAttribute("type")==="radio"&&(!sR(d)||c.currentNode.tagName==="INPUT"&&c.currentNode.type==="radio"&&c.currentNode.name===d.name)?NodeFilter.FILTER_REJECT:i(d)&&(!n||sr(d,n))&&(!t?.accept||t.accept(d))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(c.currentNode=t.from),c}function cy(e,t={}){return{focusNext(n={}){let i=e.current;if(!i)return null;let{from:o,tabbable:u=t.tabbable,wrap:c=t.wrap,accept:d=t.accept}=n,m=o||St(nt(i)),h=An(i,{tabbable:u,accept:d});ot(i,m)&&(h.currentNode=m);let y=h.nextNode();return!y&&c&&(h.currentNode=i,y=h.nextNode()),y&&Cn(y,!0),y},focusPrevious(n=t){let i=e.current;if(!i)return null;let{from:o,tabbable:u=t.tabbable,wrap:c=t.wrap,accept:d=t.accept}=n,m=o||St(nt(i)),h=An(i,{tabbable:u,accept:d});if(ot(i,m))h.currentNode=m;else{let g=Jp(h);return g&&Cn(g,!0),g??null}let y=h.previousNode();if(!y&&c){h.currentNode=i;let g=Jp(h);if(!g)return null;y=g}return y&&Cn(y,!0),y??null},focusFirst(n=t){let i=e.current;if(!i)return null;let{tabbable:o=t.tabbable,accept:u=t.accept}=n,d=An(i,{tabbable:o,accept:u}).nextNode();return d&&Cn(d,!0),d},focusLast(n=t){let i=e.current;if(!i)return null;let{tabbable:o=t.tabbable,accept:u=t.accept}=n,c=An(i,{tabbable:o,accept:u}),d=Jp(c);return d&&Cn(d,!0),d??null}}}function Jp(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class dy{constructor(){this.fastMap=new Map,this.root=new o0({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,i){let o=this.fastMap.get(n??null);if(!o)return;let u=new o0({scopeRef:t});o.addChild(u),u.parent=o,this.fastMap.set(t,u),i&&(u.nodeToRestore=i)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let i=n.parent;for(let u of this.traverse())u!==n&&n.nodeToRestore&&u.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&sr(u.nodeToRestore,n.scopeRef.current)&&(u.nodeToRestore=n.nodeToRestore);let o=n.children;i&&(i.removeChild(n),o.size>0&&o.forEach(u=>i&&i.addChild(u))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new dy;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}}class o0{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}}let Ht=new dy,Xp=new Map;function hR(e){let{locale:t}=un(),n=t+(e?Object.entries(e).sort((o,u)=>o[0]<u[0]?-1:1).join():"");if(Xp.has(n))return Xp.get(n);let i=new Intl.Collator(t,e);return Xp.set(n,i),i}const yR=b.createContext({placement:"bottom"}),gR=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function g1(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let cu=new WeakMap,xn=[];function bR(e,t){let n=hn(e?.[0]),i=t instanceof n.Element?{root:t}:t,o=i?.root??document.body,u=i?.shouldUseInert&&gR,c=new Set(e),d=new Set,m=w=>u&&w instanceof n.HTMLElement?w.inert:w.getAttribute("aria-hidden")==="true",h=(w,R)=>{u&&w instanceof n.HTMLElement?w.inert=R:R?w.setAttribute("aria-hidden","true"):(w.removeAttribute("aria-hidden"),w instanceof n.HTMLElement&&(w.inert=!1))},y=new Set;if(Xr())for(let w of e){let R=w;for(;R&&R!==o;){let I=R.getRootNode();"shadowRoot"in I&&y.add(I.shadowRoot),R=I.parentNode}}let g=w=>{for(let L of w.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))c.add(L);let R=L=>{if(d.has(L)||c.has(L)||L.parentElement&&d.has(L.parentElement)&&L.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let M of c)if(ot(L,M))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},I=A$(nt(w),w,NodeFilter.SHOW_ELEMENT,{acceptNode:R}),A=R(w);if(A===NodeFilter.FILTER_ACCEPT&&E(w),A!==NodeFilter.FILTER_REJECT){let L=I.nextNode();for(;L!=null;)E(L),L=I.nextNode()}},E=w=>{let R=cu.get(w)??0;m(w)&&R===0||(R===0&&h(w,!0),d.add(w),cu.set(w,R+1))};xn.length&&xn[xn.length-1].disconnect(),g(o);let S=new MutationObserver(w=>{for(let R of w)if(R.type==="childList"){if(R.target.isConnected&&![...c,...d].some(I=>ot(I,R.target)))for(let I of R.addedNodes)(I instanceof HTMLElement||I instanceof SVGElement)&&g1(I)?c.add(I):I instanceof Element&&g(I);if(Xr()){for(let I of y)if(!I.isConnected){S.disconnect();break}}}});S.observe(o,{childList:!0,subtree:!0});let D=new Set;if(Xr())for(let w of y){let R=new MutationObserver(I=>{for(let A of I)if(A.type==="childList"){if(A.target.isConnected&&![...c,...d].some(L=>ot(L,A.target)))for(let L of A.addedNodes)(L instanceof HTMLElement||L instanceof SVGElement)&&g1(L)?c.add(L):L instanceof Element&&g(L);if(Xr()){for(let L of y)if(!L.isConnected){S.disconnect();break}}}});R.observe(w,{childList:!0,subtree:!0}),D.add(R)}let x={visibleNodes:c,hiddenNodes:d,observe(){S.observe(o,{childList:!0,subtree:!0})},disconnect(){S.disconnect()}};return xn.push(x),()=>{if(S.disconnect(),Xr())for(let w of D)w.disconnect();for(let w of d){let R=cu.get(w);R!=null&&(R===1?(h(w,!1),cu.delete(w)):cu.set(w,R-1))}x===xn[xn.length-1]?(xn.pop(),xn.length&&xn[xn.length-1].observe()):xn.splice(xn.indexOf(x),1)}}function vR(e){let t=xn[xn.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}const ar={top:"top",bottom:"top",left:"left",right:"left"},yd={top:"bottom",bottom:"top",left:"right",right:"left"},_R={top:"left",left:"top"},l0={top:"height",left:"width"},N$={width:"totalWidth",height:"totalHeight"},Ac={};let ER=()=>typeof document<"u"?window.visualViewport:null;function b1(e,t){let n=0,i=0,o=0,u=0,c=0,d=0,m={},h=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let y=document.documentElement;o=y.clientWidth,u=y.clientHeight,n=t?.width??o,i=t?.height??u,m.top=y.scrollTop||e.scrollTop,m.left=y.scrollLeft||e.scrollLeft,t&&(c=t.offsetTop,d=t.offsetLeft)}else({width:n,height:i,top:c,left:d}=Lu(e,!1)),m.top=e.scrollTop,m.left=e.scrollLeft,o=n,u=i;return QE()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h&&(m.top=0,m.left=0,c=t?.pageTop??0,d=t?.pageLeft??0),{width:n,height:i,totalWidth:o,totalHeight:u,scroll:m,top:c,left:d}}function SR(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function v1(e,t,n,i,o,u,c){let d=o.scroll[e]??0,m=i[l0[e]],h=c[e]+i.scroll[ar[e]]+u,y=c[e]+i.scroll[ar[e]]+m-u,g=t-d+i.scroll[ar[e]]+c[e]-i[ar[e]],E=t-d+n+i.scroll[ar[e]]+c[e]-i[ar[e]];return g<h?h-g:E>y?Math.max(y-E,h-g):0}function DR(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function _1(e){if(Ac[e])return Ac[e];let[t,n]=e.split(" "),i=ar[t]||"right",o=_R[i];ar[n]||(n="center");let u=l0[i],c=l0[o];return Ac[e]={placement:t,crossPlacement:n,axis:i,crossAxis:o,size:u,crossSize:c},Ac[e]}function eh(e,t,n,i,o,u,c,d,m,h,y){let{placement:g,crossPlacement:E,axis:S,crossAxis:D,size:x,crossSize:w}=i,R={};R[D]=e[D]??0,E==="center"?R[D]+=((e[w]??0)-(n[w]??0))/2:E!==D&&(R[D]+=(e[w]??0)-(n[w]??0)),R[D]+=u;const I=e[D]-n[w]+m+h,A=e[D]+e[w]-m-h;if(R[D]=Vh(R[D],I,A),g===S){let L=d?y[x]:y[N$[x]];R[yd[S]]=Math.floor(L-e[S]+o)}else R[S]=Math.floor(e[S]+e[x]+o);return R}function $R(e,t,n,i,o,u,c,d,m,h,y){let g=(e.top!=null?e.top:m[N$.height]-(e.bottom??0)-c)-(m.scroll.top??0),E=h?n.top:0,S={top:Math.max(t.top+E,(y?.offsetTop??t.top)+E),bottom:Math.min(t.top+t.height+E,(y?.offsetTop??0)+(y?.height??0))};return d!=="top"?Math.max(0,S.bottom-g-((o.top??0)+(o.bottom??0)+u)):Math.max(0,g+c-S.top-((o.top??0)+(o.bottom??0)+u))}function E1(e,t,n,i,o,u,c,d){let{placement:m,axis:h,size:y}=u;return m===h?Math.max(0,n[h]-(c.scroll[h]??0)-(e[h]+(d?t[h]:0))-(i[h]??0)-i[yd[h]]-o):Math.max(0,e[y]+e[h]+(d?t[h]:0)-n[h]-n[y]+(c.scroll[h]??0)-(i[h]??0)-i[yd[h]]-o)}function xR(e,t,n,i,o,u,c,d,m,h,y,g,E,S,D,x,w,R){let I=_1(e),{size:A,crossAxis:L,crossSize:M,placement:Z,crossPlacement:V}=I,fe=eh(t,d,n,I,y,g,h,E,D,x,m),ne=y,pe=E1(d,h,t,o,u+y,I,m,w);if(c&&n[A]>pe){let te=_1(`${yd[Z]} ${V}`),z=eh(t,d,n,te,y,g,h,E,D,x,m);E1(d,h,t,o,u+y,te,m,w)>pe&&(I=te,fe=z,ne=y)}let J="bottom";I.axis==="top"?I.placement==="top"?J="top":I.placement==="bottom"&&(J="bottom"):I.crossAxis==="top"&&(I.crossPlacement==="top"?J="bottom":I.crossPlacement==="bottom"&&(J="top"));let ye=v1(L,fe[L],n[M],d,m,u,h);fe[L]+=ye;let Ae=$R(fe,d,h,E,o,u,n.height,J,m,w,R);S&&S<Ae&&(Ae=S),n.height=Math.min(n.height,Ae),fe=eh(t,d,n,I,ne,g,h,E,D,x,m),ye=v1(L,fe[L],n[M],d,m,u,h),fe[L]+=ye;let j={},de=t[L]-fe[L]-o[ar[L]],k=de+.5*t[M];const B=D/2+x,X=ar[L]==="left"?(o.left??0)+(o.right??0):(o.top??0)+(o.bottom??0),F=n[M]-X-D/2-x,G=t[L]+D/2-(fe[L]+o[ar[L]]),C=t[L]+t[M]-D/2-(fe[L]+o[ar[L]]),U=Vh(k,G,C);j[L]=Vh(U,B,F),{placement:Z,crossPlacement:V}=I,D?de=j[L]:V==="right"?de+=t[M]:V==="center"&&(de+=t[M]/2);let W=Z==="left"||Z==="top"?n[A]:0,Y={x:Z==="top"||Z==="bottom"?de:W,y:Z==="left"||Z==="right"?de:W};return{position:fe,maxHeight:Ae,arrowOffsetLeft:j.left,arrowOffsetTop:j.top,placement:Z,triggerAnchorPoint:Y}}function CR(e){let{placement:t,targetNode:n,overlayNode:i,scrollNode:o,padding:u,shouldFlip:c,boundaryElement:d,offset:m,crossOffset:h,maxHeight:y,arrowSize:g=0,arrowBoundaryOffset:E=0,targetRect:S}=e,D=ER(),x=i instanceof HTMLElement?AR(i):document.documentElement,w=x===document.documentElement;const R=window.getComputedStyle(x).position;let I=!!R&&R!=="static",A=w?Lu(n,!1,S):S1(n,x,!1,S);if(!w){let{marginTop:J,marginLeft:ye}=window.getComputedStyle(n);A.top+=parseInt(J,10)||0,A.left+=parseInt(ye,10)||0}let L=Lu(i,!0),M=DR(i);L.width+=(M.left??0)+(M.right??0),L.height+=(M.top??0)+(M.bottom??0);let Z=SR(o),V=b1(d,D),fe=b1(x,D),ne;if((d.tagName==="BODY"||d.tagName==="HTML")&&!w){let J=Wd(x,!1);ne={top:-(J.top-V.top),left:-(J.left-V.left),width:0,height:0}}else(d.tagName==="BODY"||d.tagName==="HTML")&&w?ne={top:0,left:0,width:0,height:0}:ne=S1(d,x,!1);let pe=ot(d,x);return xR(t,A,L,Z,M,u,c,V,fe,ne,m,h,I,y,g,E,pe,D)}function Wd(e,t){let{top:n,left:i,width:o,height:u}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,u=e.offsetHeight),{top:n,left:i,width:o,height:u}}function Lu(e,t,n){let{top:i,left:o,width:u,height:c}=n||Wd(e,t),{scrollTop:d,scrollLeft:m,clientTop:h,clientLeft:y}=document.documentElement;return{top:i+d-h,left:o+m-y,width:u,height:c}}function S1(e,t,n,i){let o=window.getComputedStyle(e),u;if(o.position==="fixed")u=i||Wd(e,n);else{u=Lu(e,n,i);let c=Lu(t,n),d=window.getComputedStyle(t);c.top+=(parseInt(d.borderTopWidth,10)||0)-t.scrollTop,c.left+=(parseInt(d.borderLeftWidth,10)||0)-t.scrollLeft,u.top-=c.top,u.left-=c.left}return u.top-=parseInt(o.marginTop,10)||0,u.left-=parseInt(o.marginLeft,10)||0,u}function AR(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!D1(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!D1(t);)t=t.parentElement;return t||document.documentElement}function D1(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const wR=new WeakMap;function TR(e){let{triggerRef:t,isOpen:n,onClose:i}=e;b.useEffect(()=>{if(!n||i===null)return;let o=u=>{let c=Pe(u);if(!t.current||c instanceof Node&&!ot(c,t.current)||c instanceof HTMLInputElement||c instanceof HTMLTextAreaElement)return;let d=i||wR.get(t.current);d&&d()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,i,t])}function NR(){return typeof window.ResizeObserver<"u"}function u0(e){const{ref:t,box:n,onResize:i}=e;let o=Zt(i);b.useEffect(()=>{let u=t?.current;if(u)if(NR()){const c=new window.ResizeObserver(d=>{d.length&&o()});return c.observe(u,{box:n}),()=>{u&&c.unobserve(u)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}let Si=typeof document<"u"?window.visualViewport:null;function MR(e){let{direction:t}=un(),{arrowSize:n,targetRef:i,overlayRef:o,arrowRef:u,scrollRef:c=o,placement:d="bottom",containerPadding:m=12,shouldFlip:h=!0,boundaryElement:y=typeof document<"u"?document.body:null,offset:g=0,crossOffset:E=0,shouldUpdatePosition:S=!0,isOpen:D=!0,onClose:x,maxHeight:w,arrowBoundaryOffset:R=0,getTargetRect:I}=e,[A,L]=b.useState(null),M=[S,d,o.current,i.current,u?.current,c.current,m,h,y,g,E,D,t,w,R,n],Z=b.useRef(Si?.scale);b.useEffect(()=>{D&&(Z.current=Si?.scale)},[D]);let V=b.useCallback(()=>{if(S===!1||!D||!o.current||!i.current||!y||Si?.scale!==Z.current)return;let pe=null;if(c.current&&j0(c.current)){let j=St()?.getBoundingClientRect(),de=c.current.getBoundingClientRect();pe={type:"top",offset:(j?.top??0)-de.top},pe.offset>de.height/2&&(pe.type="bottom",pe.offset=(j?.bottom??0)-de.bottom)}let J=o.current;!w&&o.current&&(J.style.top="0px",J.style.bottom="",J.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let ye=CR({placement:OR(d,t),overlayNode:o.current,targetNode:i.current,scrollNode:c.current||o.current,padding:m,shouldFlip:h,boundaryElement:y,offset:g,crossOffset:E,maxHeight:w,arrowSize:n??(u?.current?Wd(u.current,!0).width:0),arrowBoundaryOffset:R,targetRect:I?.(i.current)});if(!ye.position)return;J.style.top="",J.style.bottom="",J.style.left="",J.style.right="",Object.keys(ye.position).forEach(j=>J.style[j]=ye.position[j]+"px"),J.style.maxHeight=ye.maxHeight!=null?ye.maxHeight+"px":"";let Ae=St();if(pe&&Ae&&c.current){let j=Ae.getBoundingClientRect(),de=c.current.getBoundingClientRect(),k=j[pe.type]-de[pe.type];c.current.scrollTop+=k-pe.offset}L(ye)},M);ct(V,M),RR(V),u0({ref:o,onResize:V}),u0({ref:i,onResize:V});let fe=b.useRef(!1);ct(()=>{let pe,J=()=>{fe.current=!0,clearTimeout(pe),pe=setTimeout(()=>{fe.current=!1},500),V()},ye=()=>{fe.current&&J()};return Si?.addEventListener("resize",J),Si?.addEventListener("scroll",ye),()=>{Si?.removeEventListener("resize",J),Si?.removeEventListener("scroll",ye)}},[V]);let ne=b.useCallback(()=>{fe.current||x?.()},[x,fe]);return TR({triggerRef:i,isOpen:D,onClose:x&&ne}),{overlayProps:{style:{position:A?"absolute":"fixed",top:A?void 0:0,left:A?void 0:0,zIndex:1e5,...A?.position,maxHeight:A?.maxHeight??"100vh"}},placement:A?.placement??null,triggerAnchorPoint:A?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A?.arrowOffsetLeft,top:A?.arrowOffsetTop}},updatePosition:V}}function RR(e){ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function OR(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function kR(e){let{ref:t,onInteractOutside:n,isDisabled:i,onInteractOutsideStart:o}=e,u=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=Zt(m=>{n&&$1(m,t)&&(o&&o(m),u.current.isPointerDown=!0)}),d=Zt(m=>{n&&n(m)});b.useEffect(()=>{let m=u.current;if(i)return;const h=t.current,y=nt(h);if(typeof PointerEvent<"u"){let g=E=>{m.isPointerDown&&$1(E,t)&&d(E),m.isPointerDown=!1};return y.addEventListener("pointerdown",c,!0),y.addEventListener("click",g,!0),()=>{y.removeEventListener("pointerdown",c,!0),y.removeEventListener("click",g,!0)}}},[t,i])}function $1(e,t){if(e.button>0)return!1;let n=Pe(e);if(n){const i=n.ownerDocument;if(!i||!ot(i.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Dr=[];function BR(e,t){let{onClose:n,shouldCloseOnBlur:i,isOpen:o,isDismissable:u=!1,isKeyboardDismissDisabled:c=!1,shouldCloseOnInteractOutside:d}=e,m=b.useRef(void 0);b.useEffect(()=>{if(o&&!Dr.includes(t))return Dr.push(t),()=>{let D=Dr.indexOf(t);D>=0&&Dr.splice(D,1)}},[o,t]);let h=()=>{Dr[Dr.length-1]===t&&n&&n()},y=D=>{const x=Dr[Dr.length-1];m.current=x,(!d||d(Pe(D)))&&x===t&&D.stopPropagation()},g=D=>{(!d||d(Pe(D)))&&(Dr[Dr.length-1]===t&&D.stopPropagation(),m.current===t&&h()),m.current=void 0},E=D=>{D.key==="Escape"&&!c&&!D.nativeEvent.isComposing&&(D.stopPropagation(),D.preventDefault(),h())};kR({ref:t,onInteractOutside:u&&o?g:void 0,onInteractOutsideStart:y});let{focusWithinProps:S}=Gu({isDisabled:!i,onBlurWithin:D=>{!D.relatedTarget||dR(D.relatedTarget)||(!d||d(D.relatedTarget))&&n?.()}});return{overlayProps:{onKeyDown:E,...S},underlayProps:{}}}const $u=typeof document<"u"&&window.visualViewport;let wc=0,th;function LR(e={}){let{isDisabled:t}=e;ct(()=>{if(!t)return wc++,wc===1&&(Hu()?th=IR():th=PR()),()=>{wc--,wc===0&&th()}},[t])}function PR(){let e=window.innerWidth-document.documentElement.clientWidth;return Pd(e>0&&("scrollbarGutter"in document.documentElement.style?Gc(document.documentElement,"scrollbarGutter","stable"):Gc(document.documentElement,"paddingRight",`${e}px`)),Gc(document.documentElement,"overflow","hidden"))}function IR(){let e=Gc(document.documentElement,"overflow","hidden"),t,n=!1,i=y=>{let g=Pe(y);t=md(g)?g:Yd(g,!0),n=!1;let E=g.ownerDocument.defaultView.getSelection();E&&!E.isCollapsed&&E.containsNode(g,!0)&&(n=!0),y.composedPath().some(S=>S instanceof HTMLInputElement&&S.type==="range")&&(n=!0),"selectionStart"in g&&"selectionEnd"in g&&g.selectionStart<g.selectionEnd&&g.ownerDocument.activeElement===g&&(n=!0)},o=document.createElement("style"),u=pS();u&&(o.nonce=u),o.textContent=`
77
+ `.trim(),j.head.prepend(de)},[E]),b.useEffect(()=>{let j=w.current;return()=>{g||O4(j.target??void 0);for(let de of j.disposables)de();j.disposables=[]}},[g]),{isPressed:m||D,pressProps:pt(S,Ae,{[P4]:!0})}}function q0(e){return e.tagName==="A"&&e.hasAttribute("href")}function Lp(e,t){const{key:n,code:i}=e,o=t,s=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||i==="Space")&&!(o instanceof hn(o).HTMLInputElement&&!hS(o,n)||o instanceof hn(o).HTMLTextAreaElement||o.isContentEditable)&&!((s==="link"||!s&&q0(o))&&n!=="Enter")}function Ei(e,t){let n=t.clientX,i=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i,key:t.key}}function u8(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!q0(e)}function I4(e,t){return e instanceof HTMLInputElement?!hS(e,t):u8(e)}const c8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":c8.has(e.type)}function Gs(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:o}=e,s=b.useRef({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:d}=Ud(),m=b.useCallback(g=>{ot(g.currentTarget,Pe(g))&&s.current.isFocusWithin&&!ot(g.currentTarget,g.relatedTarget)&&(s.current.isFocusWithin=!1,d(),n&&n(g),o&&o(!1))},[n,o,s,d]),h=KE(m),y=b.useCallback(g=>{if(!ot(g.currentTarget,Pe(g)))return;let E=Pe(g);const S=nt(E),D=St(S);if(!s.current.isFocusWithin&&D===E){i&&i(g),o&&o(!0),s.current.isFocusWithin=!0,h(g);let x=g.currentTarget;c(S,"focus",w=>{let R=Pe(w);if(s.current.isFocusWithin&&!ot(x,R)){let I=new S.defaultView.FocusEvent("blur",{relatedTarget:R});qE(I,x);let A=H0(I);m(A)}},{capture:!0})}},[i,o,h,c,m]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:y,onBlur:m}}}function cl(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,o=b.useRef({isFocused:!1,isFocusVisible:t||Ph()}),[s,c]=b.useState(!1),[d,m]=b.useState(()=>o.current.isFocused&&o.current.isFocusVisible),h=b.useCallback(()=>m(o.current.isFocused&&o.current.isFocusVisible),[]),y=b.useCallback(S=>{o.current.isFocused=S,o.current.isFocusVisible=Ph(),c(S),h()},[h]);BN(S=>{o.current.isFocusVisible=S,h()},[n,s],{enabled:s,isTextInput:n});let{focusProps:g}=uS({isDisabled:i,onFocusChange:y}),{focusWithinProps:E}=Gs({isDisabled:!i,onFocusWithinChange:y});return{isFocused:s,isFocusVisible:d,focusProps:i?E:g}}let zh=!1,Dc=0;function d8(){zh=!0,setTimeout(()=>{zh=!1},500)}function F4(e){e.pointerType==="touch"&&d8()}function f8(){let e=nt(null);if(!(typeof e>"u"))return Dc===0&&typeof PointerEvent<"u"&&e.addEventListener("pointerup",F4),Dc++,()=>{Dc--,!(Dc>0)&&typeof PointerEvent<"u"&&e.removeEventListener("pointerup",F4)}}function Zs(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:o}=e,[s,c]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(f8,[]);let{addGlobalListener:m,removeAllGlobalListeners:h}=Ud(),{hoverProps:y,triggerHoverEnd:g}=b.useMemo(()=>{let E=(x,w)=>{if(d.pointerType=w,o||w==="touch"||d.isHovered||!ot(x.currentTarget,Pe(x)))return;d.isHovered=!0;let R=x.currentTarget;d.target=R,m(nt(Pe(x)),"pointerover",I=>{d.isHovered&&d.target&&!ot(d.target,Pe(I))&&S(I,I.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:R,pointerType:w}),n&&n(!0),c(!0)},S=(x,w)=>{let R=d.target;d.pointerType="",d.target=null,!(w==="touch"||!d.isHovered||!R)&&(d.isHovered=!1,h(),i&&i({type:"hoverend",target:R,pointerType:w}),n&&n(!1),c(!1))},D={};return typeof PointerEvent<"u"&&(D.onPointerEnter=x=>{zh&&x.pointerType==="mouse"||E(x,x.pointerType)},D.onPointerLeave=x=>{!o&&ot(x.currentTarget,Pe(x))&&S(x,x.pointerType)}),{hoverProps:D,triggerHoverEnd:S}},[t,n,i,o,d,m,h]);return b.useEffect(()=>{o&&g({currentTarget:d.target},d.pointerType)},[o]),{hoverProps:y,isHovered:s}}const yS=b.createContext({});function m8(e){let{id:t,label:n,"aria-labelledby":i,"aria-label":o,labelElementType:s="label"}=e;t=Ar(t);let c=Ar(),d={};n&&(i=i?`${c} ${i}`:c,d={id:c,htmlFor:s==="label"?t:void 0});let m=Vs({id:t,"aria-label":o,"aria-labelledby":i});return{labelProps:d,fieldProps:m}}let Pp=new Map,Uh=!1;try{Uh=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ld=!1;try{ld=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const gS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hh{constructor(t,n={}){this.numberFormatter=p8(t,n),this.options=n}format(t){let n="";if(!Uh&&this.options.signDisplay!=null?n=h8(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ld){let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return n;let c=gS[i]?.[o];n+=c[s]||c.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Uh&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ld&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function p8(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ld){let{unit:s,unitDisplay:c="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!gS[s]?.[c])throw new Error(`Unsupported unit ${s} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,c)=>s[0]<c[0]?-1:1).join():"");if(Pp.has(i))return Pp.get(i);let o=new Intl.NumberFormat(e,t);return Pp.set(i,o),o}function h8(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let i=!1;if(t==="always"?i=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):i=n>0),i){let o=e.format(-n),s=e.format(n),c=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...c].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(c,"+").replace("!!!",s)}else return e.format(n)}}const y8=new RegExp("^.*\\(.*\\).*$"),g8=["latn","arab","hanidec","deva","beng","fullwide"];class bS{constructor(t,n={}){this.locale=t,this.options=n}parse(t){return Ip(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,i){return Ip(this.locale,this.options,t).isValidPartialNumber(t,n,i)}getNumberingSystem(t){return Ip(this.locale,this.options,t).options.numberingSystem}}const j4=new Map;function Ip(e,t,n){let i=z4(e,t);if(!e.includes("-nu-")&&!i.isValidPartialNumber(n)){for(let o of g8)if(o!==i.options.numberingSystem){let s=z4(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(s.isValidPartialNumber(n))return s}}return i}function z4(e,t){let n=e+(t?Object.entries(t).sort((o,s)=>o[0]<s[0]?-1:1).join():""),i=j4.get(n);return i||(i=new b8(e,t),j4.set(n,i)),i}class b8{constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=v8(t,this.formatter,this.options,n),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let n=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(t);if(!n&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let c=i.indexOf(".");c===-1&&(c=i.length),i=i.replace(".",""),c-2===0?i=`0.${i}`:c-2===-1?i=`0.0${i}`:c-2===-2?i="0.00":i=`${i.slice(0,c-2)}.${i.slice(c-2)}`,s>-1&&(i=`-${i}`)}let o=i?+i:NaN;if(isNaN(o))return NaN;if(this.options.style==="percent"){let s={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new bS(this.locale,s).parse(new Hh(this.locale,s).format(o))}return this.options.currencySign==="accounting"&&y8.test(t)&&(o=-1*o),o}sanitize(t){let n=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(i=>i.unit===t)?this.symbols.noNumeralUnits.find(i=>i.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=ka(t,",",this.symbols.decimal),t=ka(t,"،",this.symbols.decimal)),this.symbols.group&&n&&(t=ka(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&n&&(t=ka(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("’")&&n&&(t=ka(t,"’",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&n&&(t=ka(t," ",this.symbols.group),t=ka(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,n=-1/0,i=1/0){let o=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&i>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&o&&(t=ka(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}}const U4=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),H4=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function v8(e,t,n,i){let o=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),s=o.formatToParts(-10000.111),c=o.formatToParts(10000.111),d=H4.map(Z=>o.formatToParts(Z)),m=d.map((Z,V)=>{let fe=Z.find(ne=>ne.type==="unit");return fe&&!Z.some(ne=>ne.type==="integer"||ne.type==="fraction")?{unit:fe.value,value:H4[V]}:null}).filter(Z=>!!Z),h=s.find(Z=>Z.type==="minusSign")?.value??"-",y=c.find(Z=>Z.type==="plusSign")?.value;!y&&(i?.signDisplay==="exceptZero"||i?.signDisplay==="always")&&(y="+");let E=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(Z=>Z.type==="decimal")?.value,S=s.find(Z=>Z.type==="group")?.value,D=s.filter(Z=>!U4.has(Z.type)).map(Z=>V4(Z.value)),x=d.flatMap(Z=>Z.filter(V=>!U4.has(V.type)).map(V=>V4(V.value))),w=[...new Set([...D,...x])].sort((Z,V)=>V.length-Z.length),R=w.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${w.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),I=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),A=new Map(I.map((Z,V)=>[Z,V])),L=new RegExp(`[${I.join("")}]`,"g");return{minusSign:h,plusSign:y,decimal:E,group:S,literals:R,numeral:L,numerals:I,index:Z=>String(A.get(Z)),noNumeralUnits:m}}function ka(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function V4(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Vh(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const _8=b.createContext(null),vS=7e3;let Ia=null;function Ts(e,t="assertive",n=vS){Ia?Ia.announce(e,t,n):(Ia=new S8,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ia.announce(e,t,n):setTimeout(()=>{Ia?.isAttached()&&Ia?.announce(e,t,n)},100))}function E8(e){Ia&&Ia.clear(e)}class S8{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",i=vS){if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?this.assertiveLog?.appendChild(o):this.politeLog?.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},i)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function D8(e,t){let{elementType:n="button",isDisabled:i,onPress:o,onPressStart:s,onPressEnd:c,onPressUp:d,onPressChange:m,preventFocusOnPress:h,allowFocusWhenDisabled:y,onClick:g,href:E,target:S,rel:D,type:x="button"}=e,w;n==="button"?w={type:x,disabled:i,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:w={role:"button",href:n==="a"&&!i?E:void 0,target:n==="a"?S:void 0,type:n==="input"?x:void 0,disabled:n==="input"?i:void 0,"aria-disabled":!i||n==="input"?void 0:i,rel:n==="a"?D:void 0};let{pressProps:R,isPressed:I}=Y0({onPressStart:s,onPressEnd:c,onPressChange:m,onPress:o,onPressUp:d,onClick:g,isDisabled:i,preventFocusOnPress:h,ref:t}),{focusableProps:A}=XN(e,t);y&&(A.tabIndex=i?-1:A.tabIndex);let L=pt(A,R,un(e,{labelable:!0}));return{isPressed:I,buttonProps:pt(w,L,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const Ys=b.createContext({}),Fp=fS(function(t,n){[t,n]=sa(t,n,Ys);let i=t,{isPending:o}=i,{buttonProps:s,isPressed:c}=D8(t,n);s=x8(s,o);let{focusProps:d,isFocused:m,isFocusVisible:h}=cl(t),{hoverProps:y,isHovered:g}=Zs({...t,isDisabled:t.isDisabled||o}),E={isHovered:g,isPressed:(i.isPressed||c)&&!o,isFocused:m,isFocusVisible:h,isDisabled:t.isDisabled||!1,isPending:o??!1},S=la({...t,values:E,defaultClassName:"react-aria-Button"}),D=Ar(s.id),x=Ar(),w=s["aria-labelledby"];o&&(w?w=`${w} ${x}`:s["aria-label"]&&(w=`${D} ${x}`));let R=b.useRef(o);b.useEffect(()=>{let A={"aria-labelledby":w||D};(!R.current&&m&&o||R.current&&m&&!o)&&Ts(A,"assertive"),R.current=o},[o,m,w,D]);let I=un(t,{global:!0});return delete I.onClick,ve.createElement(wn.button,{...pt(I,S,s,d,y),type:s.type==="submit"&&o?"button":s.type,id:D,ref:n,"aria-labelledby":w,slot:t.slot||void 0,"aria-disabled":o?"true":s["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":E.isPressed||void 0,"data-hovered":g||void 0,"data-focused":m||void 0,"data-pending":o||void 0,"data-focus-visible":h||void 0},ve.createElement(_8.Provider,{value:{id:x}},S.children))}),$8=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function x8(e,t){if(t){for(const n in e)n.startsWith("on")&&!$8.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const K0=b.createContext({}),C8=b.forwardRef(function(t,n){[t,n]=sa(t,n,K0);let{children:i,level:o=3,className:s,...c}=t,d=wn[`h${o}`];return ve.createElement(d,{...c,ref:n,className:s??"react-aria-Heading"},i)}),W0=b.createContext({});var _S={};_S={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var ES={};ES={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var SS={};SS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var DS={};DS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var $S={};$S={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var xS={};xS={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var CS={};CS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var AS={};AS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var wS={};wS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var TS={};TS={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var NS={};NS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var MS={};MS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var RS={};RS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var OS={};OS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var kS={};kS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var BS={};BS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var LS={};LS={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var PS={};PS={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var IS={};IS={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var FS={};FS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var jS={};jS={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var zS={};zS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var US={};US={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var HS={};HS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var VS={};VS={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var GS={};GS={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var ZS={};ZS={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var YS={};YS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var qS={};qS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var KS={};KS={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var WS={};WS={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var QS={};QS={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var JS={};JS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var XS={};XS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var qs={};qs={"ar-AE":_S,"bg-BG":ES,"cs-CZ":SS,"da-DK":DS,"de-DE":$S,"el-GR":xS,"en-US":CS,"es-ES":AS,"et-EE":wS,"fi-FI":TS,"fr-FR":NS,"he-IL":MS,"hr-HR":RS,"hu-HU":OS,"it-IT":kS,"ja-JP":BS,"ko-KR":LS,"lt-LT":PS,"lv-LV":IS,"nb-NO":FS,"nl-NL":jS,"pl-PL":zS,"pt-BR":US,"pt-PT":HS,"ro-RO":VS,"ru-RU":GS,"sk-SK":ZS,"sl-SI":YS,"sr-SP":qS,"sv-SE":KS,"tr-TR":WS,"uk-UA":QS,"zh-CN":JS,"zh-TW":XS};function eD(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function qo(e,t){return e-t*Math.floor(e/t)}const tD=1721426;function Ci(e,t,n,i){t=Ks(e,t);let o=t-1,s=-2;return n<=2?s=0:Ha(t)&&(s=-1),tD-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+s+i)}function Ha(e){return e%4===0&&(e%100!==0||e%400===0)}function Ks(e,t){return e==="BC"?1-t:t}function Hd(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const A8={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class pn{fromJulianDay(t){let n=t,i=n-tD,o=Math.floor(i/146097),s=qo(i,146097),c=Math.floor(s/36524),d=qo(s,36524),m=Math.floor(d/1461),h=qo(d,1461),y=Math.floor(h/365),g=o*400+c*100+m*4+y+(c!==4&&y!==4?1:0),[E,S]=Hd(g),D=n-Ci(E,S,1,1),x=2;n<Ci(E,S,3,1)?x=0:Ha(S)&&(x=1);let w=Math.floor(((D+x)*12+373)/367),R=n-Ci(E,S,w,1)+1;return new Ot(E,S,w,R)}toJulianDay(t){return Ci(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return A8[Ha(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ha(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const w8={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ct(e,t){return t=Et(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function T8(e,t){return t=Et(t,e.calendar),e=Ii(e),t=Ii(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function N8(e,t){return t=Et(t,e.calendar),e=Gh(e),t=Gh(t),e.era===t.era&&e.year===t.year}function M8(e,t){return Vd(e.calendar,t.calendar)&&Ct(e,t)}function Vd(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function nD(e,t){return Ct(e,J0(t))}const R8={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Q0(e,t,n){let i=e.calendar.toJulianDay(e),o=n?R8[n]:L8(t),s=Math.ceil(i+1-o)%7;return s<0&&(s+=7),s}function rD(e){return ta(Date.now(),e)}function J0(e){return mn(rD(e))}function aD(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function iD(e,t){return G4(e)-G4(t)}function G4(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let jp=null,O8=!1;function Gd(){return jp==null&&(jp=new Intl.DateTimeFormat().resolvedOptions().timeZone),jp}function oD(){return O8}function Ii(e){return e.subtract({days:e.day-1})}function sd(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Gh(e){return Ii(e.subtract({months:e.month-1}))}function Ns(e,t,n){let i=Q0(e,t,n);return e.subtract({days:i})}function k8(e,t,n){return Ns(e,t,n).add({days:6})}const Z4=new Map,zp=new Map;function B8(e){if(Intl.Locale){let n=Z4.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Z4.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function L8(e){let t=zp.get(e);if(!t){if(Intl.Locale){let i=new Intl.Locale(e);if("getWeekInfo"in i&&(t=i.getWeekInfo(),t))return zp.set(e,t),t.firstDay}let n=B8(e);if(e.includes("-fw-")){let i=e.split("-fw-")[1].split("-")[0];i==="mon"?t={firstDay:1}:i==="tue"?t={firstDay:2}:i==="wed"?t={firstDay:3}:i==="thu"?t={firstDay:4}:i==="fri"?t={firstDay:5}:i==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&w8[n]||0};zp.set(e,t)}return t.firstDay}function P8(e,t,n){let i=e.calendar.getDaysInMonth(e);return Math.ceil((Q0(Ii(e),t,n)+i)/7)}function lD(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function sD(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ol(e){e=Et(e,new pn);let t=Ks(e.era,e.year);return uD(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function uD(e,t,n,i,o,s,c){let d=new Date;return d.setUTCHours(i,o,s,c),d.setUTCFullYear(e,t-1,n),d.getTime()}function Zh(e,t){if(t==="UTC")return 0;if(e>0&&t===Gd()&&!oD())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:i,day:o,hour:s,minute:c,second:d}=cD(e,t);return uD(n,i,o,s,c,d,0)-Math.floor(e/1e3)*1e3}const Y4=new Map;function cD(e,t){let n=Y4.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Y4.set(t,n));let i=n.formatToParts(new Date(e)),o={};for(let s of i)s.type!=="literal"&&(o[s.type]=s.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const q4=864e5;function I8(e,t,n,i){return(n===i?[n]:[n,i]).filter(s=>F8(e,t,s))}function F8(e,t,n){let i=cD(n,t);return e.year===i.year&&e.month===i.month&&e.day===i.day&&e.hour===i.hour&&e.minute===i.minute&&e.second===i.second}function ea(e,t,n="compatible"){let i=oa(e);if(t==="UTC")return ol(i);if(t===Gd()&&n==="compatible"&&!oD()){i=Et(i,new pn);let m=new Date,h=Ks(i.era,i.year);return m.setFullYear(h,i.month-1,i.day),m.setHours(i.hour,i.minute,i.second,i.millisecond),m.getTime()}let o=ol(i),s=Zh(o-q4,t),c=Zh(o+q4,t),d=I8(i,t,o-s,o-c);if(d.length===1)return d[0];if(d.length>1)switch(n){case"compatible":case"earlier":return d[0];case"later":return d[d.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-s,o-c);case"compatible":case"later":return Math.max(o-s,o-c);case"reject":throw new RangeError("No such absolute time found")}}function dD(e,t,n="compatible"){return new Date(ea(e,t,n))}function ta(e,t){let n=Zh(e,t),i=new Date(e+n),o=i.getUTCFullYear(),s=i.getUTCMonth()+1,c=i.getUTCDate(),d=i.getUTCHours(),m=i.getUTCMinutes(),h=i.getUTCSeconds(),y=i.getUTCMilliseconds();return new Os(o<1?"BC":"AD",o<1?-o+1:o,s,c,t,n,d,m,h,y)}function mn(e){return new Ot(e.calendar,e.era,e.year,e.month,e.day)}function oa(e,t){let n=0,i=0,o=0,s=0;if("timeZone"in e)({hour:n,minute:i,second:o,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:i,second:o,millisecond:s}=t),new Rs(e.calendar,e.era,e.year,e.month,e.day,n,i,o,s)}function Et(e,t){if(Vd(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),i=e.copy();return i.calendar=t,i.era=n.era,i.year=n.year,i.month=n.month,i.day=n.day,Fi(i),i}function j8(e,t,n){if(e instanceof Os)return e.timeZone===t?e:fD(e,t);let i=ea(e,t,n);return ta(i,t)}function z8(e){let t=ol(e)-e.offset;return new Date(t)}function fD(e,t){let n=ol(e)-e.offset;return Et(ta(n,t),e.calendar)}function U8(e){return fD(e,Gd())}const ss=36e5;function Zd(e,t){let n=e.copy(),i="hour"in n?yD(n,t):0;Yh(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,qh(n),mD(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=i,H8(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){let c=n.calendar.isInverseEra?.(n);n.year=o,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Yh(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function qh(e){for(;e.month<1;)Yh(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Yh(e,1)}function H8(e){for(;e.day<1;)e.month--,qh(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,qh(e)}function mD(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Fi(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),mD(e)}function X0(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function pD(e,t){return Zd(e,X0(t))}function ey(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Fi(n),n}function Ms(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),hD(n),n}function V8(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=$c(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=$c(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=$c(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=$c(e.hour,24),t}function hD(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function $c(e,t){let n=e%t;return n<0&&(n+=t),n}function yD(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,V8(e)}function gD(e,t){let n=e.copy();return yD(n,t),n}function G8(e,t){return gD(e,X0(t))}function ty(e,t,n,i){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),c=s.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=na(c,n,0,s.length-1,i?.round),o.era=s[c],Fi(o);break}case"year":o.calendar.isInverseEra?.(o)&&(n=-n),o.year=na(e.year,n,-1/0,9999,i?.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=na(e.month,n,1,e.calendar.getMonthsInYear(e),i?.round);break;case"day":o.day=na(e.day,n,1,e.calendar.getDaysInMonth(e),i?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Fi(o),o}function ny(e,t,n,i){let o=e.copy();switch(t){case"hour":{let s=e.hour,c=0,d=23;if(i?.hourCycle===12){let m=s>=12;c=m?12:0,d=m?23:11}o.hour=na(s,n,c,d,i?.round);break}case"minute":o.minute=na(e.minute,n,0,59,i?.round);break;case"second":o.second=na(e.second,n,0,59,i?.round);break;case"millisecond":o.millisecond=na(e.millisecond,n,0,999,i?.round);break;default:throw new Error("Unsupported field "+t)}return o}function na(e,t,n,i,o=!1){if(o){e+=Math.sign(t),e<n&&(e=i);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>i&&(e=n)}else e+=t,e<n?e=i-(n-e-1):e>i&&(e=n+(e-i-1));return e}function bD(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=Zd(oa(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=ea(o,e.timeZone)}else n=ol(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let i=ta(n,e.timeZone);return Et(i,e.calendar)}function Z8(e,t){return bD(e,X0(t))}function Y8(e,t,n,i){switch(t){case"hour":{let o=0,s=23;if(i?.hourCycle===12){let D=e.hour>=12;o=D?12:0,s=D?23:11}let c=oa(e),d=Et(Ms(c,{hour:o}),new pn),m=[ea(d,e.timeZone,"earlier"),ea(d,e.timeZone,"later")].filter(D=>ta(D,e.timeZone).day===d.day)[0],h=Et(Ms(c,{hour:s}),new pn),y=[ea(h,e.timeZone,"earlier"),ea(h,e.timeZone,"later")].filter(D=>ta(D,e.timeZone).day===h.day).pop(),g=ol(e)-e.offset,E=Math.floor(g/ss),S=g%ss;return g=na(E,n,Math.floor(m/ss),Math.floor(y/ss),i?.round)*ss+S,Et(ta(g,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return ny(e,t,n,i);case"era":case"year":case"month":case"day":{let o=ty(oa(e),t,n,i),s=ea(o,e.timeZone);return Et(ta(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function q8(e,t,n){let i=oa(e),o=Ms(ey(i,t),t);if(o.compare(i)===0)return e;let s=ea(o,e.timeZone,n);return Et(ta(s,e.timeZone),e.calendar)}const K8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,W8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,vD=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function _D(e){let t=e.match(K8);if(!t)throw vD.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new Ot(xr(t[1],0,9999),xr(t[2],1,12),1);return n.day=xr(t[3],1,n.calendar.getDaysInMonth(n)),n}function Q8(e){let t=e.match(W8);if(!t)throw vD.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let n=xr(t[1],-9999,9999),i=n<1?"BC":"AD",o=new Rs(i,n<1?-n+1:n,xr(t[2],1,12),1,t[4]?xr(t[4],0,23):0,t[5]?xr(t[5],0,59):0,t[6]?xr(t[6],0,59):0,t[7]?xr(t[7],0,1/0)*1e3:0);return o.day=xr(t[3],0,o.calendar.getDaysInMonth(o)),o}function xr(e,t,n){let i=Number(e);if(i<t||i>n)throw new RangeError(`Value out of range: ${t} <= ${i} <= ${n}`);return i}function ED(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function SD(e){let t=Et(e,new pn),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function DD(e){return`${SD(e)}T${ED(e)}`}function J8(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),i=Math.floor(e%36e5/6e4),o=Math.floor(e%36e5%6e4/1e3),s=`${t}${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`;return o!==0&&(s+=`:${String(o).padStart(2,"0")}`),s}function X8(e){return`${DD(e)}${J8(e.offset)}[${e.timeZone}]`}function ry(e){let t=typeof e[0]=="object"?e.shift():new pn,n;if(typeof e[0]=="string")n=e.shift();else{let c=t.getEras();n=c[c.length-1]}let i=e.shift(),o=e.shift(),s=e.shift();return[t,n,i,o,s]}class Ot{#e;constructor(...t){let[n,i,o,s,c]=ry(t);this.calendar=n,this.era=i,this.year=o,this.month=s,this.day=c,Fi(this)}copy(){return this.era?new Ot(this.calendar,this.era,this.year,this.month,this.day):new Ot(this.calendar,this.year,this.month,this.day)}add(t){return Zd(this,t)}subtract(t){return pD(this,t)}set(t){return ey(this,t)}cycle(t,n,i){return ty(this,t,n,i)}toDate(t){return dD(this,t)}toString(){return SD(this)}compare(t){return aD(this,t)}}class ay{#e;constructor(t=0,n=0,i=0,o=0){this.hour=t,this.minute=n,this.second=i,this.millisecond=o,hD(this)}copy(){return new ay(this.hour,this.minute,this.second,this.millisecond)}add(t){return gD(this,t)}subtract(t){return G8(this,t)}set(t){return Ms(this,t)}cycle(t,n,i){return ny(this,t,n,i)}toString(){return ED(this)}compare(t){return iD(this,t)}}class Rs{#e;constructor(...t){let[n,i,o,s,c]=ry(t);this.calendar=n,this.era=i,this.year=o,this.month=s,this.day=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fi(this)}copy(){return this.era?new Rs(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Rs(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Zd(this,t)}subtract(t){return pD(this,t)}set(t){return ey(Ms(this,t),t)}cycle(t,n,i){switch(t){case"era":case"year":case"month":case"day":return ty(this,t,n,i);default:return ny(this,t,n,i)}}toDate(t,n){return dD(this,t,n)}toString(){return DD(this)}compare(t){let n=aD(this,t);return n===0?iD(this,oa(t)):n}}class Os{#e;constructor(...t){let[n,i,o,s,c]=ry(t),d=t.shift(),m=t.shift();this.calendar=n,this.era=i,this.year=o,this.month=s,this.day=c,this.timeZone=d,this.offset=m,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fi(this)}copy(){return this.era?new Os(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Os(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return bD(this,t)}subtract(t){return Z8(this,t)}set(t,n){return q8(this,t,n)}cycle(t,n,i){return Y8(this,t,n,i)}toDate(){return z8(this)}toString(){return X8(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-j8(t,this.timeZone).toDate().getTime()}}const Ko=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],eM=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Uc=[1867,1911,1925,1988,2018],Fa=["meiji","taisho","showa","heisei","reiwa"];function K4(e){const t=Ko.findIndex(([n,i,o])=>e.year<n||e.year===n&&e.month<i||e.year===n&&e.month===i&&e.day<o);return t===-1?Ko.length-1:t===0?0:t-1}function Up(e){let t=Uc[Fa.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ot(e.year+t,e.month,e.day)}class tM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=K4(n);return new Ot(this,Fa[i],n.year-Uc[i],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Up(t))}balanceDate(t){let n=Up(t),i=K4(n);Fa[i]!==t.era&&(t.era=Fa[i],t.year=n.year-Uc[i]),this.constrainDate(t)}constrainDate(t){let n=Fa.indexOf(t.era),i=eM[n];if(i!=null){let[o,s,c]=i,d=o-Uc[n];t.year=Math.max(1,Math.min(d,t.year)),t.year===d&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(c,t.day)))}if(t.year===1&&n>=0){let[,o,s]=Ko[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(s,t.day))}}getEras(){return Fa}getYearsInEra(t){let n=Fa.indexOf(t.era),i=Ko[n],o=Ko[n+1];if(o==null)return 9999-i[0]+1;let s=o[0]-i[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth(Up(t))}getMinimumMonthInYear(t){let n=W4(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=W4(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function W4(e){if(e.year===1){let t=Fa.indexOf(e.era);return Ko[t]}}const $D=-543;class nM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=Ks(n.era,n.year);return new Ot(this,i-$D,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Q4(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Q4(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Q4(e){let[t,n]=Hd(e.year+$D);return new Ot(t,n,e.month,e.day)}const ud=1911;function xD(e){return e.era==="minguo"?e.year+ud:1-e.year+ud}function J4(e){let t=e-ud;return t>0?["minguo",t]:["before_minguo",1-t]}class rM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=Ks(n.era,n.year),[o,s]=J4(i);return new Ot(this,o,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay(X4(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,i]=J4(xD(t));t.era=n,t.year=i}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(X4(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ud}constructor(...t){super(...t),this.identifier="roc"}}function X4(e){let[t,n]=Hd(xD(e));return new Ot(t,n,e.month,e.day)}const e1=1948320,t1=[0,31,62,93,124,155,186,216,246,276,306,336];class aM{fromJulianDay(t){let n=t-e1,i=1+Math.floor((33*n+3)/12053),o=365*(i-1)+Math.floor((8*i+21)/33),s=n-o,c=s<216?Math.floor(s/31):Math.floor((s-6)/30),d=s-t1[c]+1;return new Ot(this,i,c+1,d)}toJulianDay(t){let n=e1-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=t1[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||qo(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Hp=78,n1=80;class iM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=n.year-Hp,o=t-Ci(n.era,n.year,1,1),s;o<n1?(i--,s=Ha(n.year-1)?31:30,o+=s+155+90+10):(s=Ha(n.year)?31:30,o-=n1);let c,d;if(o<s)c=1,d=o+1;else{let m=o-s;m<155?(c=Math.floor(m/31)+2,d=m%31+1):(m-=155,c=Math.floor(m/30)+7,d=m%30+1)}return new Ot(this,i,c,d)}toJulianDay(t){let n=t.year+Hp,[i,o]=Hd(n),s,c;return Ha(o)?(s=31,c=Ci(i,o,3,21)):(s=30,c=Ci(i,o,3,22)),t.month===1?c+t.day-1:(c+=s+Math.min(t.month-2,5)*31,t.month>=8&&(c+=(t.month-7)*30),c+=t.day-1,c)}getDaysInMonth(t){return t.month===1&&Ha(t.year+Hp)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const cd=1948440,r1=1948439,nr=1300,Po=1600,oM=460322;function dd(e,t,n,i){return i+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function CD(e,t,n){let i=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+dd(t,i,1,1)))/29.5)+1),s=n-dd(t,i,o,1)+1;return new Ot(e,i,o,s)}function a1(e){return(14+11*e)%30<11}class iy{fromJulianDay(t){return CD(this,cd,t)}toJulianDay(t){return dd(cd,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&a1(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return a1(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lM extends iy{fromJulianDay(t){return CD(this,r1,t)}toJulianDay(t){return dd(r1,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const sM="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Kh,Wo;function Hc(e){return oM+Wo[e-nr]}function bs(e,t){let n=e-nr,i=1<<11-(t-1);return(Kh[n]&i)===0?29:30}function i1(e,t){let n=Hc(e);for(let i=1;i<t;i++)n+=bs(e,i);return n}function o1(e){return Wo[e+1-nr]-Wo[e-nr]}class uM extends iy{constructor(){if(super(),this.identifier="islamic-umalqura",Kh||(Kh=new Uint16Array(Uint8Array.from(atob(sM),t=>t.charCodeAt(0)).buffer)),!Wo){Wo=new Uint32Array(Po-nr+1);let t=0;for(let n=nr;n<=Po;n++){Wo[n-nr]=t;for(let i=1;i<=12;i++)t+=bs(n,i)}}}fromJulianDay(t){let n=t-cd,i=Hc(nr),o=Hc(Po);if(n<i||n>o)return super.fromJulianDay(t);{let s=nr-1,c=1,d=1;for(;d>0;){s++,d=n-Hc(s)+1;let m=o1(s);if(d===m){c=12;break}else if(d<m){let h=bs(s,c);for(c=1;d>h;)d-=h,c++,h=bs(s,c);break}}return new Ot(this,s,c,n-i1(s,c)+1)}}toJulianDay(t){return t.year<nr||t.year>Po?super.toJulianDay(t):cd+i1(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<nr||t.year>Po?super.getDaysInMonth(t):bs(t.year,t.month)}getDaysInYear(t){return t.year<nr||t.year>Po?super.getDaysInYear(t):o1(t.year)}}const l1=347997,AD=1080,wD=24*AD,cM=29,dM=12*AD+793,fM=cM*wD+dM;function $i(e){return qo(e*7+1,19)<7}function Vc(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,i=t*29+Math.floor(n/25920);return qo(3*(i+1),7)<3&&(i+=1),i}function mM(e){let t=Vc(e-1),n=Vc(e);return Vc(e+1)-n===356?2:n-t===382?1:0}function Ds(e){return Vc(e)+mM(e)}function TD(e){return Ds(e+1)-Ds(e)}function pM(e){let t=TD(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function xc(e,t){if(t>=6&&!$i(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=pM(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$i(e)?30:0:30}class hM{fromJulianDay(t){let n=t-l1,i=n*wD/fM,o=Math.floor((19*i+234)/235)+1,s=Ds(o),c=Math.floor(n-s);for(;c<1;)o--,s=Ds(o),c=Math.floor(n-s);let d=1,m=0;for(;m<c;)m+=xc(o,d),d++;d--,m-=xc(o,d);let h=c-m;return new Ot(this,o,d,h)}toJulianDay(t){let n=Ds(t.year);for(let i=1;i<t.month;i++)n+=xc(t.year,i);return n+t.day+l1}getDaysInMonth(t){return xc(t.year,t.month)}getMonthsInYear(t){return $i(t.year)?13:12}getDaysInYear(t){return TD(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($i(n.year)&&!$i(t.year)&&n.month>6?t.month--:!$i(n.year)&&$i(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Wh=1723856,s1=1824665,Qh=5500;function fd(e,t,n,i){return e+365*t+Math.floor(t/4)+30*(n-1)+i-1}function oy(e,t){let n=Math.floor(4*(t-e)/1461),i=1+Math.floor((t-fd(e,n,1,1))/30),o=t+1-fd(e,n,i,1);return[n,i,o]}function ND(e){return Math.floor(e%4/3)}function MD(e,t){return t%13!==0?30:ND(e)+5}class ly{fromJulianDay(t){let[n,i,o]=oy(Wh,t),s="AM";return n<=0&&(s="AA",n+=Qh),new Ot(this,s,n,i,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Qh),fd(Wh,n,t.month,t.day)}getDaysInMonth(t){return MD(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+ND(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class yM extends ly{fromJulianDay(t){let[n,i,o]=oy(Wh,t);return n+=Qh,new Ot(this,"AA",n,i,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class gM extends ly{fromJulianDay(t){let[n,i,o]=oy(s1,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Ot(this,s,n,i,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),fd(s1,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),MD(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function RD(e){switch(e){case"buddhist":return new nM;case"ethiopic":return new ly;case"ethioaa":return new yM;case"coptic":return new gM;case"hebrew":return new hM;case"indian":return new iM;case"islamic-civil":return new iy;case"islamic-tbla":return new lM;case"islamic-umalqura":return new uM;case"japanese":return new tM;case"persian":return new aM;case"roc":return new rM;case"gregory":default:return new pn}}let Vp=new Map;class ra{constructor(t,n={}){this.formatter=OD(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let i=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return _M()&&(this.resolvedHourCycle||(this.resolvedHourCycle=EM(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const bM={true:{ja:"h11"},false:{}};function OD(e,t={}){if(typeof t.hour12=="boolean"&&vM()){t={...t};let o=bM[String(t.hour12)][e.split("-")[0]],s=t.hour12?"h12":"h23";t.hourCycle=o??s,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(Vp.has(n))return Vp.get(n);let i=new Intl.DateTimeFormat(e,t);return Vp.set(n,i),i}let Gp=null;function vM(){return Gp==null&&(Gp=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Gp}let Zp=null;function _M(){return Zp==null&&(Zp=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Zp}function EM(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=OD(e,{...t,timeZone:void 0}),i=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(i===0&&o===23)return"h23";if(i===24&&o===23)return"h24";if(i===0&&o===11)return"h11";if(i===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}function or(e){e=eD(e??{},SM);let{locale:t}=sn();return b.useMemo(()=>new ra(t,e),[t,e])}function SM(e,t){if(e===t)return!0;let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function kD(e){return e&&e.__esModule?e.default:e}const sy=new WeakMap;function ks(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function DM(e){let t=Xa(kD(qs),"@react-aria/calendar"),n,i;"highlightedRange"in e?{start:n,end:i}=e.highlightedRange||{}:(n=Array.isArray(e.value)?e.value[0]:e.value??void 0,i=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let o=or({weekday:"long",month:"long",year:"numeric",day:"numeric",era:ks(n)||ks(i),timeZone:e.timeZone}),{locale:s}=sn(),c=b.useMemo(()=>new Intl.ListFormat(s),[s]),d="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!d&&n&&i){if(Ct(n,i)){let m=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:m})}else if("highlightedRange"in e){let m=Xh(o,t,n,i,e.timeZone);return t.format("selectedRangeDescription",{dateRange:m})}else if(Array.isArray(e.value)){let m=e.value.map(y=>o.format(y.toDate(e.timeZone))),h=c.format(m);return t.format("selectedDateDescription",{date:h})}}return""},[n,i,d,e,t,o,c])}function Jh(e,t,n,i){let o=Xa(kD(qs),"@react-aria/calendar"),s=ks(e)||ks(t),c=or({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n}),d=or({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(Ct(e,Ii(e))){let m=e,h=t;if(e.calendar.getFormattableMonth&&(m=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(h=t.calendar.getFormattableMonth(t)),Ct(t,sd(e)))return c.format(m.toDate(n));if(Ct(t,sd(t)))return i?Xh(c,o,m,h,n):c.formatRange(m.toDate(n),h.toDate(n))}return i?Xh(d,o,e,t,n):d.formatRange(e.toDate(n),t.toDate(n))},[e,t,c,d,o,n,i])}function Xh(e,t,n,i,o){let s=e.formatRangeToParts(n.toDate(o),i.toDate(o)),c=-1;for(let h=0;h<s.length;h++){let y=s[h];if(y.source==="shared"&&y.type==="literal")c=h;else if(y.source==="endRange")break}let d="",m="";for(let h=0;h<s.length;h++)h<c?d+=s[h].value:h>c&&(m+=s[h].value);return t.format("dateRange",{startDate:d,endDate:m})}function u1(e,t){const n=b.useRef(!0),i=b.useRef(null);let o=Zt(e);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{let s=i.current;n.current?n.current=!1:(!s||t.some((c,d)=>!Object.is(c,s[d])))&&o(),i.current=t},t)}function $M(e){return e&&e.__esModule?e.default:e}function xM(e,t){let n=Xa($M(qs),"@react-aria/calendar"),i=un(e),o=Jh(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=Jh(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);u1(()=>{t.isFocused||Ts(s)},[s]);let c=DM(t);u1(()=>{c&&Ts(c,"polite",4e3)},[c]);let d=rd([!!e.errorMessage,e.isInvalid,e.validationState]);sy.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:d,selectedDateDescription:c});let[m,h]=b.useState(!1),y=e.isDisabled||t.isNextVisibleRangeInvalid();y&&m&&(h(!1),t.setFocused(!0));let[g,E]=b.useState(!1),S=e.isDisabled||t.isPreviousVisibleRangeInvalid();S&&g&&(E(!1),t.setFocused(!0));let D=Vs({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:pt(i,D,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:y,onFocusChange:h},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:S,onFocusChange:E},errorMessageProps:{id:d},title:o}}function CM(e,t){return xM(e,t)}function AM(e,t){let{startDate:n=t.visibleRange.start,endDate:i=t.visibleRange.end,firstDayOfWeek:o}=e,{direction:s}=sn(),c=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},d=Jh(n,i,t.timeZone,!0),{ariaLabel:m,ariaLabelledBy:h}=sy.get(t),y=Vs({"aria-label":[m,d].filter(Boolean).join(", "),"aria-labelledby":h}),g=or({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:E}=sn(),S=b.useMemo(()=>{let x=t.visibleDuration.days&&t.visibleDuration.days<7,w=x?n:Ns(J0(t.timeZone),E,o),R=x?t.visibleDuration.days:7;return[...new Array(R).keys()].map(I=>{let L=w.add({days:I}).toDate(t.timeZone);return g.format(L)})},[E,t.timeZone,g,o,n,t.visibleDuration.days]),D=t.getWeeksInMonth(n);return{gridProps:pt(y,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onKeyDown:c,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:S,weeksInMonth:D}}function md(e,t){if(!e)return!1;let n=window.getComputedStyle(e),i=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===i&&n.overflow!=="hidden"&&(o=!0),o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function Yd(e,t){let n=e;for(md(n,t)&&(n=n.parentElement);n&&!md(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Yp(e,t){let n=[],i=document.scrollingElement||document.documentElement;for(;e&&(md(e,t)&&n.push(e),e!==i);)e=e.parentElement;return n}function qp(e,t,n={}){let{block:i="nearest",inline:o="nearest"}=n;if(e===t)return;let s=e.scrollTop,c=e.scrollLeft,d=t.getBoundingClientRect(),m=e.getBoundingClientRect(),h=window.getComputedStyle(t),y=window.getComputedStyle(e),g=document.scrollingElement||document.documentElement,E=e===g,S=e===g?0:m.top,D=e===g?e.clientHeight:m.bottom,x=e===g?0:m.left,w=e===g?e.clientWidth:m.right,R=parseFloat(h.scrollMarginTop)||0,I=parseFloat(h.scrollMarginBottom)||0,A=parseFloat(h.scrollMarginLeft)||0,L=parseFloat(h.scrollMarginRight)||0,M=parseFloat(y.scrollPaddingTop)||0,Z=parseFloat(y.scrollPaddingBottom)||0,V=parseFloat(y.scrollPaddingLeft)||0,fe=parseFloat(y.scrollPaddingRight)||0,ne=parseFloat(y.borderTopWidth)||0,pe=parseFloat(y.borderBottomWidth)||0,J=parseFloat(y.borderLeftWidth)||0,ye=parseFloat(y.borderRightWidth)||0,Ae=d.top-R,j=d.bottom+I,de=d.left-A,k=d.right+L,B=e===g?0:J+ye,X=e===g?0:ne+pe,F=e===g?0:e.offsetWidth-e.clientWidth-B,G=e===g?0:e.offsetHeight-e.clientHeight-X,C=S+(E?0:ne)+M,U=D-(E?0:pe)-Z-G,W=x+(E?0:J)+V,Y=w-(E?0:ye)-fe;y.direction==="rtl"&&!Hs()?W+=F:Y-=F;let te=Ae<C||j>U,z=de<W||k>Y;if(te&&i==="start")s+=Ae-C;else if(te&&i==="center")s+=(Ae+j)/2-(C+U)/2;else if(te&&i==="end")s+=j-U;else if(te&&i==="nearest"){let T=Ae-C,N=j-U;s+=Math.abs(T)<=Math.abs(N)?T:N}if(z&&o==="start")c+=de-W;else if(z&&o==="center")c+=(de+k)/2-(W+Y)/2;else if(z&&o==="end")c+=k-Y;else if(z&&o==="nearest"){let T=de-W,N=k-Y;c+=Math.abs(T)<=Math.abs(N)?T:N}e.scrollTo({left:c,top:s})}function BD(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let{left:s,top:c}=e.getBoundingClientRect(),d=Yp(e,!0);for(let y of d)qp(y,e);let{left:m,top:h}=e.getBoundingClientRect();if(Math.abs(s-m)>1||Math.abs(c-h)>1){d=n?Yp(n,!0):[];for(let y of d)qp(y,n,{block:"center",inline:"center"});for(let y of Yp(e,!0))qp(y,e)}}else{let{left:s,top:c}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:d,top:m}=e.getBoundingClientRect();(Math.abs(s-d)>1||Math.abs(c-m)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let wM=0;const Kp=new Map;function uy(e){let[t,n]=b.useState();return ct(()=>{if(!e)return;let i=Kp.get(e);if(i)n(i.element.id);else{let o=`react-aria-description-${wM++}`;n(o);let s=document.createElement("div");s.id=o,s.style.display="none",s.textContent=e,document.body.appendChild(s),i={refCount:0,element:s},Kp.set(e,i)}return i.refCount++,()=>{i&&--i.refCount===0&&(i.element.remove(),Kp.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function TM(e){return e&&e.__esModule?e.default:e}function NM(e,t,n){let{date:i,isDisabled:o}=e,{errorMessageId:s,selectedDateDescription:c}=sy.get(t),d=Xa(TM(qs),"@react-aria/calendar"),m=or({weekday:"long",day:"numeric",month:"long",year:"numeric",era:ks(i),timeZone:t.timeZone}),h=t.isCellFocused(i)&&!e.isOutsideMonth;o=o||t.isCellDisabled(i)||!!e.isOutsideMonth;let y=t.isCellUnavailable(i),g=!o&&!y,E=t.isSelected(i)&&g,S=!1;t.isValueInvalid&&("highlightedRange"in t?S=!t.anchorDate&&t.highlightedRange!=null&&i.compare(t.highlightedRange.start)>=0&&i.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?S=t.value.some(J=>Ct(J,i)):t.value&&(S=Ct(t.value,i))),S&&!o&&(E=!0),i=eD(i,M8);let D=b.useMemo(()=>i.toDate(t.timeZone),[i,t.timeZone]),x=nD(i,t.timeZone),w=b.useMemo(()=>{let J="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ct(i,t.value.start)||Ct(i,t.value.end))&&(J=c+", "),J+=m.format(D),x?J=d.format(E?"todayDateSelected":"todayDate",{date:J}):E&&(J=d.format("dateSelected",{date:J})),t.minValue&&Ct(i,t.minValue)?J+=", "+d.format("minimumDate"):t.maxValue&&Ct(i,t.maxValue)&&(J+=", "+d.format("maximumDate")),J},[m,D,d,E,x,i,t,c]),R="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?R=d.format("finishRangeSelectionPrompt"):R=d.format("startRangeSelectionPrompt"));let I=uy(R),A=b.useRef(!1),L=b.useRef(!1),M=b.useRef(void 0),{pressProps:Z,isPressed:V}=Y0({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(J){if(t.isReadOnly){t.setFocusedDate(i),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&(J.pointerType==="mouse"||J.pointerType==="touch")){if(t.highlightedRange&&!S){if(Ct(i,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),L.current=!0;return}else if(Ct(i,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),L.current=!0;return}}let ye=()=>{t.setDragging(!0),M.current=void 0,t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0),A.current=!0};J.pointerType==="touch"?M.current=setTimeout(ye,200):ye()}},onPressEnd(){L.current=!1,A.current=!1,clearTimeout(M.current),M.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0))},onPressUp(J){t.isReadOnly||("anchorDate"in t&&M.current&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)),"anchorDate"in t&&(L.current?t.setAnchorDate(i):t.anchorDate&&!A.current?(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)):J.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(i),t.focusNearestAvailableDate(i)):J.pointerType==="virtual"&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0))))}}),fe;o||(fe=Ct(i,t.focusedDate)?0:-1),b.useEffect(()=>{h&&n.current&&(Bi(n.current),zd()!=="pointer"&&St()===n.current&&BD(n.current,{containingElement:Yd(n.current)}))},[h,n]);let ne=or({day:"numeric",timeZone:t.timeZone,calendar:i.calendar.identifier}),pe=b.useMemo(()=>ne.formatToParts(D).find(J=>J.type==="day").value,[ne,D]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":E||void 0,"aria-invalid":S||void 0},buttonProps:pt(Z,{onFocus(){o||(t.setFocusedDate(i),t.setFocused(!0))},tabIndex:fe,role:"button","aria-disabled":!g||void 0,"aria-label":w,"aria-invalid":S||void 0,"aria-describedby":[S?s:void 0,I["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(J){"highlightDate"in t&&(J.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(i)},onPointerDown(J){let ye=Pe(J);ye instanceof HTMLElement&&"releasePointerCapture"in ye&&("hasPointerCapture"in ye?ye.hasPointerCapture(J.pointerId)&&ye.releasePointerCapture(J.pointerId):ye.releasePointerCapture(J.pointerId))},onContextMenu(J){J.preventDefault()}}),isPressed:V,isFocused:h,isSelected:E,isDisabled:o,isUnavailable:y,isOutsideVisibleRange:i.compare(t.visibleRange.start)<0||i.compare(t.visibleRange.end)>0,isInvalid:S,formattedDate:pe}}function MM(e,t){let n=or({month:e.format||"short",calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),i=[],o=t.focusedDate.calendar.getMonthsInYear(t.focusedDate);for(let d=1;d<=o;d++){let m=t.focusedDate.set({month:d}),h=m.calendar.getFormattableMonth?m.calendar.getFormattableMonth(m):m;i.push({id:d,date:m,formatted:n.format(h.toDate(t.timeZone))})}let{locale:s}=sn();return{"aria-label":b.useMemo(()=>new Intl.DisplayNames(s,{type:"dateTimeField"}).of("month"),[s]),value:t.focusedDate.month,onChange:d=>{d!=null&&t.setFocusedDate(i[Number(d)-1].date)},items:i}}function RM(e,t){let n=or({year:e.format?.year||"numeric",era:e.format?.era||(t.focusedDate.calendar.identifier==="gregory"&&t.focusedDate.era==="BC"?"short":void 0),calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),i=e.visibleYears||20,o=t.focusedDate.subtract({years:Math.floor(i/2)}),s=t.focusedDate.add({years:Math.ceil(i/2)-1});t.maxValue&&s.compare(t.maxValue)>0&&(s=mn(t.maxValue),o=s.subtract({years:i-1})),t.minValue&&o.compare(t.minValue)<0&&(o=mn(t.minValue),s=o.add({years:i-1}),t.maxValue&&s.compare(t.maxValue)>0&&(s=mn(t.maxValue)));let c=[],d=o,m=0;for(;d.compare(s)<=0;)N8(d,t.focusedDate)&&(m=c.length),c.push({id:c.length,date:d,formatted:n.format(d.toDate(t.timeZone))}),d=d.add({years:1});let{locale:h}=sn();return{"aria-label":b.useMemo(()=>new Intl.DisplayNames(h,{type:"dateTimeField"}).of("year"),[h]),value:m,onChange:g=>{g!=null&&t.setFocusedDate(c[g].date)},items:c}}function Cc(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function c1(e,t,n,i,o){let s={};for(let d in t)s[d]=Math.floor(t[d]/2),s[d]>0&&t[d]%2===0&&s[d]--;let c=Ai(e,t,n).subtract(s);return Bs(e,c,t,n,i,o)}function Ai(e,t,n,i,o){let s=e;return t.years?s=Gh(e):t.months?s=Ii(e):(t.weeks||t.days&&t.days>7)&&(s=Ns(e,n)),Bs(e,s,t,n,i,o)}function e0(e,t,n,i,o){let s={...t};s.days?s.days--:s.weeks?s.weeks--:s.months?s.months--:s.years&&s.years--;let c=Ai(e,t,n).subtract(s);return Bs(e,c,t,n,i,o)}function Bs(e,t,n,i,o,s){if(o&&e.compare(o)>=0){let c=sD(t,Ai(mn(o),n,i));c&&(t=c)}if(s&&e.compare(s)<=0){let c=lD(t,e0(mn(s),n,i));c&&(t=c)}return t}function qr(e,t,n){if(t){let i=sD(e,mn(t));i&&(e=i)}if(n){let i=lD(e,mn(n));i&&(e=i)}return e}function OM(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function kM(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function BM(e){let t=b.useMemo(()=>new ra(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:i,createCalendar:o,visibleDuration:s={months:1},minValue:c,maxValue:d,selectionAlignment:m,isDateUnavailable:h,pageBehavior:y="visible",selectionMode:g="single",firstDayOfWeek:E,weeksInMonth:S}=e,D=b.useMemo(()=>o(n.calendar),[o,n.calendar]),[x,w]=As(e.value,e.defaultValue??null,e.onChange),R=b.useMemo(()=>Array.isArray(x)?x.map(Y=>Et(mn(Y),D)):x?Et(mn(x),D):null,[x,D]),I=b.useMemo(()=>{let Y=Array.isArray(x)?x[0]:x;return Y&&"timeZone"in Y?Y.timeZone:n.timeZone},[x,n.timeZone]),A=b.useMemo(()=>e.focusedValue?qr(Et(mn(e.focusedValue),D),c,d):void 0,[e.focusedValue,D,c,d]),L=b.useMemo(()=>e.defaultFocusedValue?qr(Et(mn(e.defaultFocusedValue),D),c,d):qr(R?Array.isArray(R)?R[0]:R:Et(J0(I),D),c,d),[e.defaultFocusedValue,R,I,D,c,d]),[M,Z]=As(A,L,e.onFocusChange),V=()=>{switch(m){case"start":return Ai(M,s,i,c,d);case"end":return e0(M,s,i,c,d);case"center":default:return c1(M,s,i,c,d)}},[fe,ne]=b.useState(V),[pe,J]=b.useState(e.autoFocus||!1),[ye,Ae]=b.useState(s);kM(s,ye)||(Ae(s),ne(V()));let j=b.useMemo(()=>{let Y={...s};return Y.days?Y.days--:Y.days=-1,fe.add(Y)},[fe,s]),[de,k]=b.useState(D);if(!Vd(D,de)){let Y=Et(M,D);ne(c1(Y,s,i,c,d)),Z(Y),k(D)}Cc(M,c,d)?Z(qr(M,c,d)):M.compare(fe)<0?ne(e0(M,s,i,c,d)):M.compare(j)>0&&ne(Ai(M,s,i,c,d));function B(Y){Y=qr(Y,c,d),Z(Y)}function X(Y){let te=qr(Y,c,d),z=OM(te,fe,h);if(!z)return null;let T=Array.isArray(x)?x[0]:x,N=Et(z,T?.calendar||new pn);return T&&"hour"in T?T.set(N):N}function F(Y){if(!e.isDisabled&&!e.isReadOnly){if(Y===null){w(g==="multiple"?[]:null);return}if(Array.isArray(Y))w(Y.map(X).filter(Boolean));else{let te=X(Y);te&&w(te)}}}let G=b.useMemo(()=>R?Array.isArray(R)?R.some(Y=>h?.(Y)||Cc(Y,c,d)):h?.(R)||Cc(R,c,d):!1,[R,h,c,d]),C=e.isInvalid||e.validationState==="invalid"||G,U=C?"invalid":null,W=b.useMemo(()=>y==="visible"?s:Wp(s),[y,s]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:R,setValue:F,selectionMode:g,visibleDuration:s,visibleRange:{start:fe,end:j},minValue:c,maxValue:d,focusedDate:M,timeZone:I,validationState:U,isValueInvalid:C,setFocusedDate(Y){B(Y)},focusNextDay(){B(M.add({days:1}))},focusPreviousDay(){B(M.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&B(M.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&B(M.subtract({weeks:1}))},focusNextPage(){let Y=fe.add(W);Z(qr(M.add(W),c,d)),ne(Ai(Bs(M,Y,W,i,c,d),W,i))},focusPreviousPage(){let Y=fe.subtract(W);Z(qr(M.subtract(W),c,d)),ne(Ai(Bs(M,Y,W,i,c,d),W,i))},focusSectionStart(){s.days?B(fe):s.weeks?B(Ns(M,i)):(s.months||s.years)&&B(Ii(M))},focusSectionEnd(){s.days?B(j):s.weeks?B(k8(M,i)):(s.months||s.years)&&B(sd(M))},focusNextSection(Y){if(!Y&&!s.days){B(M.add(Wp(s)));return}s.days?this.focusNextPage():s.weeks?B(M.add({months:1})):(s.months||s.years)&&B(M.add({years:1}))},focusPreviousSection(Y){if(!Y&&!s.days){B(M.subtract(Wp(s)));return}s.days?this.focusPreviousPage():s.weeks?B(M.subtract({months:1})):(s.months||s.years)&&B(M.subtract({years:1}))},selectFocusedDate(){h&&h(M)||this.selectDate(M)},selectDate(Y){if(!(e.isDisabled||e.isReadOnly))if(g==="multiple"&&Y!=null){let te=X(Y);if(!te)return;let z=[];Array.isArray(x)?z=x:x!=null&&(z=[x]);let T=z.findIndex(ie=>Ct(ie,te)),N=T>=0?z.slice(0,T).concat(z.slice(T+1)):[...z,te];w(N)}else F(Y)},isFocused:pe,setFocused:J,isInvalid(Y){return Cc(Y,c,d)},isSelected(Y){return!R||this.isCellDisabled(Y)||this.isCellUnavailable(Y)?!1:Array.isArray(R)?R.some(te=>Ct(te,Y)):Ct(Y,R)},isCellFocused(Y){return pe&&M&&Ct(Y,M)},isCellDisabled(Y){return e.isDisabled||Y.compare(fe)<0||Y.compare(j)>0||this.isInvalid(Y)},isCellUnavailable(Y){return e.isDateUnavailable?e.isDateUnavailable(Y):!1},isPreviousVisibleRangeInvalid(){let Y=fe.subtract({days:1});return Ct(Y,fe)||this.isInvalid(Y)},isNextVisibleRangeInvalid(){let Y=j.add({days:1});return Ct(Y,j)||this.isInvalid(Y)},getDatesInWeek(Y,te=fe){let z=te.add({weeks:Y}),T=[],N=s.days&&s.days<7?s.days:7;if(N===7){z=Ns(z,i,E);let ie=Q0(z,i,E);for(let ge=0;ge<ie;ge++)T.push(null)}for(;T.length<N;){T.push(z);let ie=z.add({days:1});if(Ct(z,ie))break;z=ie}for(;T.length<N;)T.push(null);return T},getWeeksInMonth(Y=fe){let te=S||P8(Y,i,E);return(s.weeks||s.days)&&(te=s.weeks??0,s.days&&(te+=Math.ceil(s.days/7))),te}}}function Wp(e){let t={...e};for(let n in e)t[n]=1;return t}const d1={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function LD(e={}){let{style:t,isFocusable:n}=e,[i,o]=b.useState(!1),{focusWithinProps:s}=Gs({isDisabled:!n,onFocusWithinChange:d=>o(d)}),c=b.useMemo(()=>i?t:t?{...d1,...t}:d1,[i]);return{visuallyHiddenProps:{...s,style:c}}}function t0(e){let{children:t,elementType:n="div",isFocusable:i,style:o,...s}=e,{visuallyHiddenProps:c}=LD(e);return ve.createElement(n,pt(s,c),t)}const pd=b.createContext(null),LM=b.createContext(null),dl=b.createContext(null),Ws=b.createContext(null),PM=b.forwardRef(function(t,n){[t,n]=sa(t,n,pd);let{locale:i}=sn(),o=BM({...t,locale:i,createCalendar:t.createCalendar||RD}),{calendarProps:s,prevButtonProps:c,nextButtonProps:d,errorMessageProps:m,title:h}=CM(t,o),y=la({...t,values:{state:o,isDisabled:t.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-Calendar"}),g=un(t,{global:!0});return ve.createElement(wn.div,{...pt(g,y,s),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},ve.createElement(Id,{values:[[Ys,{slots:{previous:c,next:d}}],[K0,{"aria-hidden":!0,level:2,children:h}],[dl,o],[pd,t],[W0,{slots:{errorMessage:m}}]]},ve.createElement(t0,null,ve.createElement("h2",null,s["aria-label"])),y.children,ve.createElement(t0,null,ve.createElement("button",{"aria-label":d["aria-label"],disabled:d.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}),qd=b.createContext(null),IM=b.forwardRef(function(t,n){let i=b.useContext(dl),o=b.useContext(Ws),s=ad(pd),c=ad(LM),d=i??o,m=d.visibleRange.start;t.offset&&(m=m.add(t.offset));let h=s?.firstDayOfWeek??c?.firstDayOfWeek,{gridProps:y,headerProps:g,weekDays:E,weeksInMonth:S}=AM({startDate:m,endDate:sd(m),weekdayStyle:t.weekdayStyle,firstDayOfWeek:h},d),D=un(t,{global:!0});return ve.createElement(qd.Provider,{value:{headerProps:g,weekDays:E,startDate:m,weeksInMonth:S}},ve.createElement(wn.table,{render:t.render,...pt(D,y),ref:n,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:ve.createElement(ve.Fragment,null,ve.createElement(PD,null,x=>ve.createElement(ID,null,x)),ve.createElement(FD,null,t.children))))});function FM(e,t){let{children:n,style:i,className:o}=e,{headerProps:s,weekDays:c}=b.useContext(qd),d=un(e,{global:!0});return ve.createElement(wn.thead,{render:e.render,...pt(d,s),ref:t,style:i,className:o??"react-aria-CalendarGridHeader"},ve.createElement("tr",null,c.map((m,h)=>ve.cloneElement(n(m),{key:h}))))}const PD=b.forwardRef(FM);function jM(e,t){let{children:n,style:i,className:o}=e,s=un(e,{global:!0});return ve.createElement(wn.th,{render:e.render,...s,ref:t,style:i,className:o||"react-aria-CalendarHeaderCell"},n)}const ID=b.forwardRef(jM);function zM(e,t){let{children:n,style:i,className:o}=e,s=b.useContext(dl),c=b.useContext(Ws),d=s??c,{startDate:m,weeksInMonth:h}=b.useContext(qd),y=un(e,{global:!0});return ve.createElement(wn.tbody,{render:e.render,...y,ref:t,style:i,className:o??"react-aria-CalendarGridBody"},[...new Array(h).keys()].map(g=>ve.createElement("tr",{key:g},d.getDatesInWeek(g,m).map((E,S)=>E?ve.cloneElement(n(E),{key:S}):ve.createElement("td",{key:S})))))}const FD=b.forwardRef(zM),UM=b.forwardRef(function({date:t,...n},i){let o=b.useContext(dl),s=b.useContext(Ws),c=o??s,{startDate:d}=b.useContext(qd)??{startDate:c.visibleRange.start},m=c.visibleDuration.days||c.visibleDuration.weeks?!1:!T8(d,t),h=nD(t,c.timeZone),y=b.useRef(null),{cellProps:g,buttonProps:E,...S}=NM({date:t,isOutsideMonth:m},c,y),{hoverProps:D,isHovered:x}=Zs({...n,isDisabled:S.isDisabled||S.isUnavailable}),{focusProps:w,isFocusVisible:R}=cl();R&&=S.isFocused;let I=!1,A=!1;"highlightedRange"in c&&c.highlightedRange&&(I=Ct(t,c.highlightedRange.start),A=Ct(t,c.highlightedRange.end));let L=la({...n,defaultChildren:S.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:x,isOutsideMonth:m,isFocusVisible:R,isSelectionStart:I,isSelectionEnd:A,isToday:h,...S}}),M={"data-focused":S.isFocused||void 0,"data-hovered":x||void 0,"data-pressed":S.isPressed||void 0,"data-unavailable":S.isUnavailable||void 0,"data-disabled":S.isDisabled||void 0,"data-focus-visible":R||void 0,"data-outside-visible-range":S.isOutsideVisibleRange||void 0,"data-outside-month":m||void 0,"data-selected":S.isSelected||void 0,"data-selection-start":I||void 0,"data-selection-end":A||void 0,"data-invalid":S.isInvalid||void 0,"data-today":h||void 0},Z=un(n,{global:!0});return ve.createElement("td",{...g,ref:i},ve.createElement(wn.div,{...pt(Z,E,w,D,M,L),ref:y}))});function HM(e){let t=ve.useContext(dl),n=ve.useContext(Ws),o=RM(e,t||n);return e.children(o)}function VM(e){let t=ve.useContext(dl),n=ve.useContext(Ws),o=MM(e,t||n);return e.children(o)}const GM=b.createContext(null),jD={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},zD={...jD,customError:!0,valid:!1},us={isInvalid:!1,validationDetails:jD,validationErrors:[]},ZM=b.createContext({}),n0="__reactAriaFormValidationState";function UD(e){if(e[n0]){let{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:o,commitValidation:s}=e[n0];return{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:o,commitValidation:s}}return YM(e)}function YM(e){let{isInvalid:t,validationState:n,name:i,value:o,builtinValidation:s,validate:c,validationBehavior:d="aria"}=e;n&&(t||=n==="invalid");let m=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:zD}:null,h=b.useMemo(()=>{if(!c||o==null)return null;let pe=qM(c,o);return f1(pe)},[c,o]);s?.validationDetails.valid&&(s=void 0);let y=b.useContext(ZM),g=b.useMemo(()=>i?Array.isArray(i)?i.flatMap(pe=>r0(y[pe])):r0(y[i]):[],[y,i]),[E,S]=b.useState(y),[D,x]=b.useState(!1);y!==E&&(S(y),x(!1));let w=b.useMemo(()=>f1(D?[]:g),[D,g]),R=b.useRef(us),[I,A]=b.useState(us),L=b.useRef(us),M=()=>{if(!Z)return;V(!1);let pe=h||s||R.current;Qp(pe,L.current)||(L.current=pe,A(pe))},[Z,V]=b.useState(!1);return b.useEffect(M),{realtimeValidation:m||w||h||s||us,displayValidation:d==="native"?m||w||I:m||w||h||s||I,updateValidation(pe){d==="aria"&&!Qp(I,pe)?A(pe):R.current=pe},resetValidation(){let pe=us;Qp(pe,L.current)||(L.current=pe,A(pe)),d==="native"&&V(!1),x(!0)},commitValidation(){d==="native"&&V(!0),x(!0)}}}function r0(e){return e?Array.isArray(e)?e:[e]:[]}function qM(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return r0(n)}return[]}function f1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:zD}:null}function Qp(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,i)=>n===t.validationErrors[i])&&Object.entries(e.validationDetails).every(([n,i])=>t.validationDetails[n]===i)}const KM=b.createContext(null);function HD(e){let{description:t,errorMessage:n,isInvalid:i,validationState:o}=e,{labelProps:s,fieldProps:c}=m8(e),d=rd([!!t,!!n,i,o]),m=rd([!!t,!!n,i,o]);return c=pt(c,{"aria-describedby":[d,m,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:c,descriptionProps:{id:d},errorMessageProps:{id:m}}}function WM(e,t,n){let i=Zt(o=>{n&&!o.defaultPrevented&&n(t)});b.useEffect(()=>{let o=e?.current?.form;return o?.addEventListener("reset",i),()=>{o?.removeEventListener("reset",i)}},[e])}function QM(e,t,n){let{validationBehavior:i,focus:o}=e;ct(()=>{if(i==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let h=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(h),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(XM(n.current))}});let s=b.useRef(!1),c=Zt(()=>{s.current||t.resetValidation()}),d=Zt(h=>{t.displayValidation.isInvalid||t.commitValidation();let y=n?.current?.form;!h.defaultPrevented&&n&&y&&eR(y)===n.current&&(o?o():n.current?.focus(),RN("keyboard")),h.preventDefault()}),m=Zt(()=>{t.commitValidation()});b.useEffect(()=>{let h=n?.current;if(!h)return;let y=h.form,g=y?.reset;return y&&(y.reset=()=>{s.current=!window.event||window.event.type==="message"&&Pe(window.event)instanceof MessagePort,g?.call(y),s.current=!1}),h.addEventListener("invalid",d),h.addEventListener("change",m),y?.addEventListener("reset",c),()=>{h.removeEventListener("invalid",d),h.removeEventListener("change",m),y?.removeEventListener("reset",c),y&&(y.reset=g)}},[n,i])}function JM(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function XM(e){return{isInvalid:!e.validity.valid,validationDetails:JM(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function eR(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}const Kd=b.createContext({}),VD=b.forwardRef(function(t,n){[t,n]=sa(t,n,Kd);let{isDisabled:i,isInvalid:o,isReadOnly:s,onHoverStart:c,onHoverChange:d,onHoverEnd:m,...h}=t;i??=!!t["aria-disabled"]&&t["aria-disabled"]!=="false",o??=!!t["aria-invalid"]&&t["aria-invalid"]!=="false";let{hoverProps:y,isHovered:g}=Zs({onHoverStart:c,onHoverChange:d,onHoverEnd:m,isDisabled:i}),{isFocused:E,isFocusVisible:S,focusProps:D}=cl({within:!0}),x=la({...t,values:{isHovered:g,isFocusWithin:E,isFocusVisible:S,isDisabled:i,isInvalid:o},defaultClassName:"react-aria-Group"});return ve.createElement(wn.div,{...pt(h,D,y),...x,ref:n,role:t.role??"group",slot:t.slot??void 0,"data-focus-within":E||void 0,"data-hovered":g||void 0,"data-focus-visible":S||void 0,"data-disabled":i||void 0,"data-invalid":o||void 0,"data-readonly":s||void 0},x.children)}),GD=b.createContext({});let tR=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,...o}=e;return o};const nR=fS(function(t,n){[t,n]=sa(t,n,GD);let{hoverProps:i,isHovered:o}=Zs({...t,isDisabled:t.disabled}),{isFocused:s,isFocusVisible:c,focusProps:d}=cl({isTextInput:!0,autoFocus:t.autoFocus}),m=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",h=la({...t,values:{isHovered:o,isFocused:s,isFocusVisible:c,isDisabled:t.disabled||!1,isInvalid:m},defaultClassName:"react-aria-Input"});return ve.createElement(wn.input,{...pt(tR(t),d,i),...h,ref:n,"data-focused":s||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":c||void 0,"data-invalid":m||void 0})});var ZD={};ZD={Empty:"فارغ"};var YD={};YD={Empty:"Изпразни"};var qD={};qD={Empty:"Prázdné"};var KD={};KD={Empty:"Tom"};var WD={};WD={Empty:"Leer"};var QD={};QD={Empty:"Άδειο"};var JD={};JD={Empty:"Empty"};var XD={};XD={Empty:"Vacío"};var e$={};e$={Empty:"Tühjenda"};var t$={};t$={Empty:"Tyhjä"};var n$={};n$={Empty:"Vide"};var r$={};r$={Empty:"ריק"};var a$={};a$={Empty:"Prazno"};var i$={};i$={Empty:"Üres"};var o$={};o$={Empty:"Vuoto"};var l$={};l$={Empty:"空"};var s$={};s$={Empty:"비어 있음"};var u$={};u$={Empty:"Tuščias"};var c$={};c$={Empty:"Tukšs"};var d$={};d$={Empty:"Tom"};var f$={};f$={Empty:"Leeg"};var m$={};m$={Empty:"Pusty"};var p$={};p$={Empty:"Vazio"};var h$={};h$={Empty:"Vazio"};var y$={};y$={Empty:"Gol"};var g$={};g$={Empty:"Не заполнено"};var b$={};b$={Empty:"Prázdne"};var v$={};v$={Empty:"Prazen"};var _$={};_$={Empty:"Prazno"};var E$={};E$={Empty:"Tomt"};var S$={};S$={Empty:"Boş"};var D$={};D$={Empty:"Пусто"};var $$={};$$={Empty:"空"};var x$={};x$={Empty:"空白"};var C$={};C$={"ar-AE":ZD,"bg-BG":YD,"cs-CZ":qD,"da-DK":KD,"de-DE":WD,"el-GR":QD,"en-US":JD,"es-ES":XD,"et-EE":e$,"fi-FI":t$,"fr-FR":n$,"he-IL":r$,"hr-HR":a$,"hu-HU":i$,"it-IT":o$,"ja-JP":l$,"ko-KR":s$,"lt-LT":u$,"lv-LV":c$,"nb-NO":d$,"nl-NL":f$,"pl-PL":m$,"pt-BR":p$,"pt-PT":h$,"ro-RO":y$,"ru-RU":g$,"sk-SK":b$,"sl-SI":v$,"sr-SP":_$,"sv-SE":E$,"tr-TR":S$,"uk-UA":D$,"zh-CN":$$,"zh-TW":x$};function rR(e){return e&&e.__esModule?e.default:e}const m1=()=>{};function aR(e){const t=b.useRef(void 0);let{value:n,textValue:i,minValue:o,maxValue:s,isDisabled:c,isReadOnly:d,isRequired:m,onIncrement:h,onIncrementPage:y,onDecrement:g,onDecrementPage:E,onDecrementToMin:S,onIncrementToMax:D}=e;const x=Xa(rR(C$),"@react-aria/spinbutton");let w=b.useRef(!1);const R=b.useCallback(()=>{clearTimeout(t.current),w.current=!1},[]),I=Zt(()=>{R()});b.useEffect(()=>()=>I(),[]);let A=W=>{if(!(W.ctrlKey||W.metaKey||W.shiftKey||W.altKey||d||W.nativeEvent.isComposing))switch(W.key){case"PageUp":if(y){W.preventDefault(),y?.();break}case"ArrowUp":case"Up":h&&(W.preventDefault(),h?.());break;case"PageDown":if(E){W.preventDefault(),E?.();break}case"ArrowDown":case"Down":g&&(W.preventDefault(),g?.());break;case"Home":S&&(W.preventDefault(),S?.());break;case"End":D&&(W.preventDefault(),D?.());break}},L=b.useRef(!1),M=()=>{L.current=!0},Z=()=>{L.current=!1},V=i===""?x.format("Empty"):(i||`${n}`).replace("-","−");b.useEffect(()=>{L.current&&(E8("assertive"),Ts(V,"assertive"))},[V]);let fe=b.useCallback(()=>{R()},[R]);const ne=Zt(h??m1),pe=Zt(g??m1),J=Zt(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&(ne(),ye(60))}),ye=Zt(W=>{I(),w.current=!0,t.current=window.setTimeout(J,W)}),Ae=Zt(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&(pe(),j(60))}),j=Zt(W=>{I(),w.current=!0,t.current=window.setTimeout(Ae,W)});let de=W=>{W.preventDefault()},{addGlobalListener:k,removeAllGlobalListeners:B}=Ud(),X=b.useRef(!1),[F,G]=b.useState(null);b.useEffect(()=>{F==="touch"?ye(600):F?ye(400):F||I()},[F]);let[C,U]=b.useState(null);return b.useEffect(()=>{C==="touch"?j(600):C?j(400):C||I()},[C]),{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":V,"aria-valuemin":o,"aria-valuemax":s,"aria-disabled":c||void 0,"aria-readonly":d||void 0,"aria-required":m||void 0,onKeyDown:A,onFocus:M,onBlur:Z},incrementButtonProps:{onPressStart:W=>{R(),W.pointerType!=="touch"?(h?.(),G("mouse")):(k(window,"pointercancel",fe,{capture:!0}),X.current=!1,G("touch")),k(window,"contextmenu",de)},onPressUp:W=>{R(),W.pointerType==="touch"&&(X.current=!0),B(),G(null)},onPressEnd:W=>{R(),W.pointerType==="touch"&&!w.current&&X.current&&h?.(),X.current=!1,G(null)},onFocus:M,onBlur:Z},decrementButtonProps:{onPressStart:W=>{R(),W.pointerType!=="touch"?(g?.(),U("mouse")):(k(window,"pointercancel",fe,{capture:!0}),X.current=!1,U("touch"))},onPressUp:W=>{R(),W.pointerType==="touch"&&(X.current=!0),B(),U(null)},onPressEnd:W=>{R(),W.pointerType==="touch"&&!w.current&&X.current&&g?.(),X.current=!1,U(null)},onFocus:M,onBlur:Z}}}class iR{constructor(t,n,i,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c.shadowRoot;if(d){const m=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(m),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(c);if(this.filter?.acceptNode)return this.filter.acceptNode(c);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=i??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,i,this._acceptNode));const s=n.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(c)}}get currentNode(){return this._currentNode}set currentNode(t){if(!ot(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let i=t,o=t;for(this._currentNode=t;i&&i!==this.root;)if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const c=i,d=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});n.push(d),d.currentNode=o,this._currentSetFor.add(d),i=o=c.host}else i=i.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=o,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ot(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(t):this.filter?.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(n):this.filter?.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let s=this.lastChild();return s&&(this.currentNode=s),s}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function A$(e,t,n,i){return Xr()?new iR(e,t,n,i):e.createTreeWalker(t,n,i)}const p1=ve.createContext(null),a0="react-aria-focus-scope-restore";let _t=null;function oR(e){let{children:t,contain:n,restoreFocus:i,autoFocus:o}=e,s=b.useRef(null),c=b.useRef(null),d=b.useRef([]),{parentNode:m}=b.useContext(p1)||{},h=b.useMemo(()=>new o0({scopeRef:d}),[d]);ct(()=>{let E=m||Ht.root;if(Ht.getTreeNode(E.scopeRef)&&_t&&!hd(_t,E.scopeRef)){let S=Ht.getTreeNode(_t);S&&(E=S)}E.addChild(h),Ht.addNode(h)},[h,m]),ct(()=>{let E=Ht.getTreeNode(d);E&&(E.contain=!!n)},[n]),ct(()=>{let E=s.current?.nextSibling,S=[],D=x=>x.stopPropagation();for(;E&&E!==c.current;)S.push(E),E.addEventListener(a0,D),E=E.nextSibling;return d.current=S,()=>{for(let x of S)x.removeEventListener(a0,D)}},[t]),mR(d,i,n),cR(d,n),pR(d,i,n),fR(d,o),b.useEffect(()=>{const E=St(nt(d.current?d.current[0]:void 0));let S=null;if(ur(E,d.current)){for(let D of Ht.traverse())D.scopeRef&&ur(E,D.scopeRef.current)&&(S=D);S===Ht.getTreeNode(d)&&(_t=S.scopeRef)}},[d]),ct(()=>()=>{let E=Ht.getTreeNode(d)?.parent?.scopeRef??null;(d===_t||hd(d,_t))&&(!E||Ht.getTreeNode(E))&&(_t=E),Ht.removeTreeNode(d)},[d]);let y=b.useMemo(()=>lR(d),[]),g=b.useMemo(()=>({focusManager:y,parentNode:h}),[h,y]);return ve.createElement(p1.Provider,{value:g},ve.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,ve.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}function lR(e){return{focusNext(t={}){let n=e.current,{from:i,tabbable:o,wrap:s,accept:c}=t,d=i||St(nt(n[0]??void 0)),m=n[0].previousElementSibling,h=wi(n),y=An(h,{tabbable:o,accept:c},n);y.currentNode=ur(d,n)?d:m;let g=y.nextNode();return!g&&s&&(y.currentNode=m,g=y.nextNode()),g&&Cn(g,!0),g},focusPrevious(t={}){let n=e.current,{from:i,tabbable:o,wrap:s,accept:c}=t,d=i||St(nt(n[0]??void 0)),m=n[n.length-1].nextElementSibling,h=wi(n),y=An(h,{tabbable:o,accept:c},n);y.currentNode=ur(d,n)?d:m;let g=y.previousNode();return!g&&s&&(y.currentNode=m,g=y.previousNode()),g&&Cn(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:i,accept:o}=t,s=wi(n),c=An(s,{tabbable:i,accept:o},n);c.currentNode=n[0].previousElementSibling;let d=c.nextNode();return d&&Cn(d,!0),d},focusLast(t={}){let n=e.current,{tabbable:i,accept:o}=t,s=wi(n),c=An(s,{tabbable:i,accept:o},n);c.currentNode=n[n.length-1].nextElementSibling;let d=c.previousNode();return d&&Cn(d,!0),d}}}function wi(e){return e[0].parentElement}function vs(e){let t=Ht.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function sR(e){if(!e.form)return Array.from(nt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(i=>!i.form);const t=e.form.elements.namedItem(e.name);let n=hn(e);return t instanceof n.RadioNodeList?Array.from(t).filter(i=>i instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function uR(e){if(e.checked)return!0;const t=sR(e);return t.length>0&&!t.some(n=>n.checked)}function cR(e,t){let n=b.useRef(void 0),i=b.useRef(void 0);ct(()=>{let o=e.current;if(!t){i.current&&(cancelAnimationFrame(i.current),i.current=void 0);return}const s=nt(o?o[0]:void 0);let c=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!vs(e)||h.isComposing)return;let y=St(s),g=e.current;if(!g||!ur(y,g))return;let E=wi(g),S=An(E,{tabbable:!0},g);if(!y)return;S.currentNode=y;let D=h.shiftKey?S.previousNode():S.nextNode();D||(S.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,D=h.shiftKey?S.previousNode():S.nextNode()),h.preventDefault(),D&&(Cn(D,!0),D instanceof hn(D).HTMLInputElement&&D.select())},d=h=>{(!_t||hd(_t,e))&&ur(Pe(h),e.current)?(_t=e,n.current=Pe(h)):vs(e)&&!Va(Pe(h),e)?n.current?n.current.focus():_t&&_t.current&&i0(_t.current):vs(e)&&(n.current=Pe(h))},m=h=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{let y=zd(),g=(y==="virtual"||y===null)&&G0()&&JE(),E=St(s);if(!g&&E&&vs(e)&&!Va(E,e)){_t=e;let S=Pe(h);S&&S.isConnected?(n.current=S,n.current?.focus()):_t.current&&i0(_t.current)}})};return s.addEventListener("keydown",c,!1),s.addEventListener("focusin",d,!1),o?.forEach(h=>h.addEventListener("focusin",d,!1)),o?.forEach(h=>h.addEventListener("focusout",m,!1)),()=>{s.removeEventListener("keydown",c,!1),s.removeEventListener("focusin",d,!1),o?.forEach(h=>h.removeEventListener("focusin",d,!1)),o?.forEach(h=>h.removeEventListener("focusout",m,!1))}},[e,t]),ct(()=>()=>{i.current&&cancelAnimationFrame(i.current)},[i])}function w$(e){return Va(e)}function ur(e,t){return!e||!t?!1:t.some(n=>ot(n,e))}function Va(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ht.traverse(Ht.getTreeNode(t)))if(n&&ur(e,n.current))return!0;return!1}function dR(e){return Va(e,_t)}function hd(e,t){let n=Ht.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Cn(e,t=!1){if(e!=null&&!t)try{ws(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function T$(e,t=!0){let n=e[0].previousElementSibling,i=wi(e),o=An(i,{tabbable:t},e);o.currentNode=n;let s=o.nextNode();return t&&!s&&(i=wi(e),o=An(i,{tabbable:!1},e),o.currentNode=n,s=o.nextNode()),s}function i0(e,t=!0){Cn(T$(e,t))}function fR(e,t){const n=ve.useRef(t);b.useEffect(()=>{if(n.current){_t=e;const i=nt(e.current?e.current[0]:void 0);!ur(St(i),_t.current)&&e.current&&i0(e.current)}n.current=!1},[e])}function mR(e,t,n){ct(()=>{if(t||n)return;let i=e.current;const o=nt(i?i[0]:void 0);let s=c=>{let d=Pe(c);ur(d,e.current)?_t=e:w$(d)||(_t=null)};return o.addEventListener("focusin",s,!1),i?.forEach(c=>c.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),i?.forEach(c=>c.removeEventListener("focusin",s,!1))}},[e,t,n])}function h1(e){let t=Ht.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function pR(e,t,n){const i=b.useRef(typeof document<"u"?St(nt(e.current?e.current[0]:void 0)):null);ct(()=>{let o=e.current;const s=nt(o?o[0]:void 0);if(!t||n)return;let c=()=>{(!_t||hd(_t,e))&&ur(St(s),e.current)&&(_t=e)};return s.addEventListener("focusin",c,!1),o?.forEach(d=>d.addEventListener("focusin",c,!1)),()=>{s.removeEventListener("focusin",c,!1),o?.forEach(d=>d.removeEventListener("focusin",c,!1))}},[e,n]),ct(()=>{const o=nt(e.current?e.current[0]:void 0);if(!t)return;let s=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!vs(e)||c.isComposing)return;let d=o.activeElement;if(!Va(d,e)||!h1(e))return;let m=Ht.getTreeNode(e);if(!m)return;let h=m.nodeToRestore,y=An(o.body,{tabbable:!0});y.currentNode=d;let g=c.shiftKey?y.previousNode():y.nextNode();if((!h||!h.isConnected||h===o.body)&&(h=void 0,m.nodeToRestore=void 0),(!g||!Va(g,e))&&h){y.currentNode=h;do g=c.shiftKey?y.previousNode():y.nextNode();while(Va(g,e));c.preventDefault(),c.stopPropagation(),g?Cn(g,!0):w$(h)?Cn(h,!0):d.blur()}};return n||o.addEventListener("keydown",s,!0),()=>{n||o.removeEventListener("keydown",s,!0)}},[e,t,n]),ct(()=>{const o=nt(e.current?e.current[0]:void 0);if(!t)return;let s=Ht.getTreeNode(e);if(s)return s.nodeToRestore=i.current??void 0,()=>{let c=Ht.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,m=St(o);if(t&&d&&(m&&Va(m,e)||m===o.body&&h1(e))){let h=Ht.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let y=h.getTreeNode(e);for(;y;){if(y.nodeToRestore&&y.nodeToRestore.isConnected){y1(y.nodeToRestore);return}y=y.parent}for(y=h.getTreeNode(e);y;){if(y.scopeRef&&y.scopeRef.current&&Ht.getTreeNode(y.scopeRef)){let g=T$(y.scopeRef.current,!0);y1(g);return}y=y.parent}}})}}},[e,t])}function y1(e){e.dispatchEvent(new CustomEvent(a0,{bubbles:!0,cancelable:!0}))&&Cn(e)}function An(e,t,n){let i=t?.tabbable?$N:ZE,o=e?.nodeType===Node.ELEMENT_NODE?e:null,s=nt(o),c=A$(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(d){return ot(t?.from,d)||t?.tabbable&&d.tagName==="INPUT"&&d.getAttribute("type")==="radio"&&(!uR(d)||c.currentNode.tagName==="INPUT"&&c.currentNode.type==="radio"&&c.currentNode.name===d.name)?NodeFilter.FILTER_REJECT:i(d)&&(!n||ur(d,n))&&(!t?.accept||t.accept(d))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(c.currentNode=t.from),c}function cy(e,t={}){return{focusNext(n={}){let i=e.current;if(!i)return null;let{from:o,tabbable:s=t.tabbable,wrap:c=t.wrap,accept:d=t.accept}=n,m=o||St(nt(i)),h=An(i,{tabbable:s,accept:d});ot(i,m)&&(h.currentNode=m);let y=h.nextNode();return!y&&c&&(h.currentNode=i,y=h.nextNode()),y&&Cn(y,!0),y},focusPrevious(n=t){let i=e.current;if(!i)return null;let{from:o,tabbable:s=t.tabbable,wrap:c=t.wrap,accept:d=t.accept}=n,m=o||St(nt(i)),h=An(i,{tabbable:s,accept:d});if(ot(i,m))h.currentNode=m;else{let g=Jp(h);return g&&Cn(g,!0),g??null}let y=h.previousNode();if(!y&&c){h.currentNode=i;let g=Jp(h);if(!g)return null;y=g}return y&&Cn(y,!0),y??null},focusFirst(n=t){let i=e.current;if(!i)return null;let{tabbable:o=t.tabbable,accept:s=t.accept}=n,d=An(i,{tabbable:o,accept:s}).nextNode();return d&&Cn(d,!0),d},focusLast(n=t){let i=e.current;if(!i)return null;let{tabbable:o=t.tabbable,accept:s=t.accept}=n,c=An(i,{tabbable:o,accept:s}),d=Jp(c);return d&&Cn(d,!0),d??null}}}function Jp(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class dy{constructor(){this.fastMap=new Map,this.root=new o0({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,i){let o=this.fastMap.get(n??null);if(!o)return;let s=new o0({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),i&&(s.nodeToRestore=i)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let i=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ur(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let o=n.children;i&&(i.removeChild(n),o.size>0&&o.forEach(s=>i&&i.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new dy;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}}class o0{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}}let Ht=new dy,Xp=new Map;function hR(e){let{locale:t}=sn(),n=t+(e?Object.entries(e).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(Xp.has(n))return Xp.get(n);let i=new Intl.Collator(t,e);return Xp.set(n,i),i}const yR=b.createContext({placement:"bottom"}),gR=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function g1(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let cs=new WeakMap,xn=[];function bR(e,t){let n=hn(e?.[0]),i=t instanceof n.Element?{root:t}:t,o=i?.root??document.body,s=i?.shouldUseInert&&gR,c=new Set(e),d=new Set,m=w=>s&&w instanceof n.HTMLElement?w.inert:w.getAttribute("aria-hidden")==="true",h=(w,R)=>{s&&w instanceof n.HTMLElement?w.inert=R:R?w.setAttribute("aria-hidden","true"):(w.removeAttribute("aria-hidden"),w instanceof n.HTMLElement&&(w.inert=!1))},y=new Set;if(Xr())for(let w of e){let R=w;for(;R&&R!==o;){let I=R.getRootNode();"shadowRoot"in I&&y.add(I.shadowRoot),R=I.parentNode}}let g=w=>{for(let L of w.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))c.add(L);let R=L=>{if(d.has(L)||c.has(L)||L.parentElement&&d.has(L.parentElement)&&L.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let M of c)if(ot(L,M))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},I=A$(nt(w),w,NodeFilter.SHOW_ELEMENT,{acceptNode:R}),A=R(w);if(A===NodeFilter.FILTER_ACCEPT&&E(w),A!==NodeFilter.FILTER_REJECT){let L=I.nextNode();for(;L!=null;)E(L),L=I.nextNode()}},E=w=>{let R=cs.get(w)??0;m(w)&&R===0||(R===0&&h(w,!0),d.add(w),cs.set(w,R+1))};xn.length&&xn[xn.length-1].disconnect(),g(o);let S=new MutationObserver(w=>{for(let R of w)if(R.type==="childList"){if(R.target.isConnected&&![...c,...d].some(I=>ot(I,R.target)))for(let I of R.addedNodes)(I instanceof HTMLElement||I instanceof SVGElement)&&g1(I)?c.add(I):I instanceof Element&&g(I);if(Xr()){for(let I of y)if(!I.isConnected){S.disconnect();break}}}});S.observe(o,{childList:!0,subtree:!0});let D=new Set;if(Xr())for(let w of y){let R=new MutationObserver(I=>{for(let A of I)if(A.type==="childList"){if(A.target.isConnected&&![...c,...d].some(L=>ot(L,A.target)))for(let L of A.addedNodes)(L instanceof HTMLElement||L instanceof SVGElement)&&g1(L)?c.add(L):L instanceof Element&&g(L);if(Xr()){for(let L of y)if(!L.isConnected){S.disconnect();break}}}});R.observe(w,{childList:!0,subtree:!0}),D.add(R)}let x={visibleNodes:c,hiddenNodes:d,observe(){S.observe(o,{childList:!0,subtree:!0})},disconnect(){S.disconnect()}};return xn.push(x),()=>{if(S.disconnect(),Xr())for(let w of D)w.disconnect();for(let w of d){let R=cs.get(w);R!=null&&(R===1?(h(w,!1),cs.delete(w)):cs.set(w,R-1))}x===xn[xn.length-1]?(xn.pop(),xn.length&&xn[xn.length-1].observe()):xn.splice(xn.indexOf(x),1)}}function vR(e){let t=xn[xn.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}const ar={top:"top",bottom:"top",left:"left",right:"left"},yd={top:"bottom",bottom:"top",left:"right",right:"left"},_R={top:"left",left:"top"},l0={top:"height",left:"width"},N$={width:"totalWidth",height:"totalHeight"},Ac={};let ER=()=>typeof document<"u"?window.visualViewport:null;function b1(e,t){let n=0,i=0,o=0,s=0,c=0,d=0,m={},h=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let y=document.documentElement;o=y.clientWidth,s=y.clientHeight,n=t?.width??o,i=t?.height??s,m.top=y.scrollTop||e.scrollTop,m.left=y.scrollLeft||e.scrollLeft,t&&(c=t.offsetTop,d=t.offsetLeft)}else({width:n,height:i,top:c,left:d}=Ls(e,!1)),m.top=e.scrollTop,m.left=e.scrollLeft,o=n,s=i;return QE()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h&&(m.top=0,m.left=0,c=t?.pageTop??0,d=t?.pageLeft??0),{width:n,height:i,totalWidth:o,totalHeight:s,scroll:m,top:c,left:d}}function SR(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function v1(e,t,n,i,o,s,c){let d=o.scroll[e]??0,m=i[l0[e]],h=c[e]+i.scroll[ar[e]]+s,y=c[e]+i.scroll[ar[e]]+m-s,g=t-d+i.scroll[ar[e]]+c[e]-i[ar[e]],E=t-d+n+i.scroll[ar[e]]+c[e]-i[ar[e]];return g<h?h-g:E>y?Math.max(y-E,h-g):0}function DR(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function _1(e){if(Ac[e])return Ac[e];let[t,n]=e.split(" "),i=ar[t]||"right",o=_R[i];ar[n]||(n="center");let s=l0[i],c=l0[o];return Ac[e]={placement:t,crossPlacement:n,axis:i,crossAxis:o,size:s,crossSize:c},Ac[e]}function eh(e,t,n,i,o,s,c,d,m,h,y){let{placement:g,crossPlacement:E,axis:S,crossAxis:D,size:x,crossSize:w}=i,R={};R[D]=e[D]??0,E==="center"?R[D]+=((e[w]??0)-(n[w]??0))/2:E!==D&&(R[D]+=(e[w]??0)-(n[w]??0)),R[D]+=s;const I=e[D]-n[w]+m+h,A=e[D]+e[w]-m-h;if(R[D]=Vh(R[D],I,A),g===S){let L=d?y[x]:y[N$[x]];R[yd[S]]=Math.floor(L-e[S]+o)}else R[S]=Math.floor(e[S]+e[x]+o);return R}function $R(e,t,n,i,o,s,c,d,m,h,y){let g=(e.top!=null?e.top:m[N$.height]-(e.bottom??0)-c)-(m.scroll.top??0),E=h?n.top:0,S={top:Math.max(t.top+E,(y?.offsetTop??t.top)+E),bottom:Math.min(t.top+t.height+E,(y?.offsetTop??0)+(y?.height??0))};return d!=="top"?Math.max(0,S.bottom-g-((o.top??0)+(o.bottom??0)+s)):Math.max(0,g+c-S.top-((o.top??0)+(o.bottom??0)+s))}function E1(e,t,n,i,o,s,c,d){let{placement:m,axis:h,size:y}=s;return m===h?Math.max(0,n[h]-(c.scroll[h]??0)-(e[h]+(d?t[h]:0))-(i[h]??0)-i[yd[h]]-o):Math.max(0,e[y]+e[h]+(d?t[h]:0)-n[h]-n[y]+(c.scroll[h]??0)-(i[h]??0)-i[yd[h]]-o)}function xR(e,t,n,i,o,s,c,d,m,h,y,g,E,S,D,x,w,R){let I=_1(e),{size:A,crossAxis:L,crossSize:M,placement:Z,crossPlacement:V}=I,fe=eh(t,d,n,I,y,g,h,E,D,x,m),ne=y,pe=E1(d,h,t,o,s+y,I,m,w);if(c&&n[A]>pe){let te=_1(`${yd[Z]} ${V}`),z=eh(t,d,n,te,y,g,h,E,D,x,m);E1(d,h,t,o,s+y,te,m,w)>pe&&(I=te,fe=z,ne=y)}let J="bottom";I.axis==="top"?I.placement==="top"?J="top":I.placement==="bottom"&&(J="bottom"):I.crossAxis==="top"&&(I.crossPlacement==="top"?J="bottom":I.crossPlacement==="bottom"&&(J="top"));let ye=v1(L,fe[L],n[M],d,m,s,h);fe[L]+=ye;let Ae=$R(fe,d,h,E,o,s,n.height,J,m,w,R);S&&S<Ae&&(Ae=S),n.height=Math.min(n.height,Ae),fe=eh(t,d,n,I,ne,g,h,E,D,x,m),ye=v1(L,fe[L],n[M],d,m,s,h),fe[L]+=ye;let j={},de=t[L]-fe[L]-o[ar[L]],k=de+.5*t[M];const B=D/2+x,X=ar[L]==="left"?(o.left??0)+(o.right??0):(o.top??0)+(o.bottom??0),F=n[M]-X-D/2-x,G=t[L]+D/2-(fe[L]+o[ar[L]]),C=t[L]+t[M]-D/2-(fe[L]+o[ar[L]]),U=Vh(k,G,C);j[L]=Vh(U,B,F),{placement:Z,crossPlacement:V}=I,D?de=j[L]:V==="right"?de+=t[M]:V==="center"&&(de+=t[M]/2);let W=Z==="left"||Z==="top"?n[A]:0,Y={x:Z==="top"||Z==="bottom"?de:W,y:Z==="left"||Z==="right"?de:W};return{position:fe,maxHeight:Ae,arrowOffsetLeft:j.left,arrowOffsetTop:j.top,placement:Z,triggerAnchorPoint:Y}}function CR(e){let{placement:t,targetNode:n,overlayNode:i,scrollNode:o,padding:s,shouldFlip:c,boundaryElement:d,offset:m,crossOffset:h,maxHeight:y,arrowSize:g=0,arrowBoundaryOffset:E=0,targetRect:S}=e,D=ER(),x=i instanceof HTMLElement?AR(i):document.documentElement,w=x===document.documentElement;const R=window.getComputedStyle(x).position;let I=!!R&&R!=="static",A=w?Ls(n,!1,S):S1(n,x,!1,S);if(!w){let{marginTop:J,marginLeft:ye}=window.getComputedStyle(n);A.top+=parseInt(J,10)||0,A.left+=parseInt(ye,10)||0}let L=Ls(i,!0),M=DR(i);L.width+=(M.left??0)+(M.right??0),L.height+=(M.top??0)+(M.bottom??0);let Z=SR(o),V=b1(d,D),fe=b1(x,D),ne;if((d.tagName==="BODY"||d.tagName==="HTML")&&!w){let J=Wd(x,!1);ne={top:-(J.top-V.top),left:-(J.left-V.left),width:0,height:0}}else(d.tagName==="BODY"||d.tagName==="HTML")&&w?ne={top:0,left:0,width:0,height:0}:ne=S1(d,x,!1);let pe=ot(d,x);return xR(t,A,L,Z,M,s,c,V,fe,ne,m,h,I,y,g,E,pe,D)}function Wd(e,t){let{top:n,left:i,width:o,height:s}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,s=e.offsetHeight),{top:n,left:i,width:o,height:s}}function Ls(e,t,n){let{top:i,left:o,width:s,height:c}=n||Wd(e,t),{scrollTop:d,scrollLeft:m,clientTop:h,clientLeft:y}=document.documentElement;return{top:i+d-h,left:o+m-y,width:s,height:c}}function S1(e,t,n,i){let o=window.getComputedStyle(e),s;if(o.position==="fixed")s=i||Wd(e,n);else{s=Ls(e,n,i);let c=Ls(t,n),d=window.getComputedStyle(t);c.top+=(parseInt(d.borderTopWidth,10)||0)-t.scrollTop,c.left+=(parseInt(d.borderLeftWidth,10)||0)-t.scrollLeft,s.top-=c.top,s.left-=c.left}return s.top-=parseInt(o.marginTop,10)||0,s.left-=parseInt(o.marginLeft,10)||0,s}function AR(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!D1(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!D1(t);)t=t.parentElement;return t||document.documentElement}function D1(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const wR=new WeakMap;function TR(e){let{triggerRef:t,isOpen:n,onClose:i}=e;b.useEffect(()=>{if(!n||i===null)return;let o=s=>{let c=Pe(s);if(!t.current||c instanceof Node&&!ot(c,t.current)||c instanceof HTMLInputElement||c instanceof HTMLTextAreaElement)return;let d=i||wR.get(t.current);d&&d()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,i,t])}function NR(){return typeof window.ResizeObserver<"u"}function s0(e){const{ref:t,box:n,onResize:i}=e;let o=Zt(i);b.useEffect(()=>{let s=t?.current;if(s)if(NR()){const c=new window.ResizeObserver(d=>{d.length&&o()});return c.observe(s,{box:n}),()=>{s&&c.unobserve(s)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}let Si=typeof document<"u"?window.visualViewport:null;function MR(e){let{direction:t}=sn(),{arrowSize:n,targetRef:i,overlayRef:o,arrowRef:s,scrollRef:c=o,placement:d="bottom",containerPadding:m=12,shouldFlip:h=!0,boundaryElement:y=typeof document<"u"?document.body:null,offset:g=0,crossOffset:E=0,shouldUpdatePosition:S=!0,isOpen:D=!0,onClose:x,maxHeight:w,arrowBoundaryOffset:R=0,getTargetRect:I}=e,[A,L]=b.useState(null),M=[S,d,o.current,i.current,s?.current,c.current,m,h,y,g,E,D,t,w,R,n],Z=b.useRef(Si?.scale);b.useEffect(()=>{D&&(Z.current=Si?.scale)},[D]);let V=b.useCallback(()=>{if(S===!1||!D||!o.current||!i.current||!y||Si?.scale!==Z.current)return;let pe=null;if(c.current&&j0(c.current)){let j=St()?.getBoundingClientRect(),de=c.current.getBoundingClientRect();pe={type:"top",offset:(j?.top??0)-de.top},pe.offset>de.height/2&&(pe.type="bottom",pe.offset=(j?.bottom??0)-de.bottom)}let J=o.current;!w&&o.current&&(J.style.top="0px",J.style.bottom="",J.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let ye=CR({placement:OR(d,t),overlayNode:o.current,targetNode:i.current,scrollNode:c.current||o.current,padding:m,shouldFlip:h,boundaryElement:y,offset:g,crossOffset:E,maxHeight:w,arrowSize:n??(s?.current?Wd(s.current,!0).width:0),arrowBoundaryOffset:R,targetRect:I?.(i.current)});if(!ye.position)return;J.style.top="",J.style.bottom="",J.style.left="",J.style.right="",Object.keys(ye.position).forEach(j=>J.style[j]=ye.position[j]+"px"),J.style.maxHeight=ye.maxHeight!=null?ye.maxHeight+"px":"";let Ae=St();if(pe&&Ae&&c.current){let j=Ae.getBoundingClientRect(),de=c.current.getBoundingClientRect(),k=j[pe.type]-de[pe.type];c.current.scrollTop+=k-pe.offset}L(ye)},M);ct(V,M),RR(V),s0({ref:o,onResize:V}),s0({ref:i,onResize:V});let fe=b.useRef(!1);ct(()=>{let pe,J=()=>{fe.current=!0,clearTimeout(pe),pe=setTimeout(()=>{fe.current=!1},500),V()},ye=()=>{fe.current&&J()};return Si?.addEventListener("resize",J),Si?.addEventListener("scroll",ye),()=>{Si?.removeEventListener("resize",J),Si?.removeEventListener("scroll",ye)}},[V]);let ne=b.useCallback(()=>{fe.current||x?.()},[x,fe]);return TR({triggerRef:i,isOpen:D,onClose:x&&ne}),{overlayProps:{style:{position:A?"absolute":"fixed",top:A?void 0:0,left:A?void 0:0,zIndex:1e5,...A?.position,maxHeight:A?.maxHeight??"100vh"}},placement:A?.placement??null,triggerAnchorPoint:A?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A?.arrowOffsetLeft,top:A?.arrowOffsetTop}},updatePosition:V}}function RR(e){ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function OR(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function kR(e){let{ref:t,onInteractOutside:n,isDisabled:i,onInteractOutsideStart:o}=e,s=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=Zt(m=>{n&&$1(m,t)&&(o&&o(m),s.current.isPointerDown=!0)}),d=Zt(m=>{n&&n(m)});b.useEffect(()=>{let m=s.current;if(i)return;const h=t.current,y=nt(h);if(typeof PointerEvent<"u"){let g=E=>{m.isPointerDown&&$1(E,t)&&d(E),m.isPointerDown=!1};return y.addEventListener("pointerdown",c,!0),y.addEventListener("click",g,!0),()=>{y.removeEventListener("pointerdown",c,!0),y.removeEventListener("click",g,!0)}}},[t,i])}function $1(e,t){if(e.button>0)return!1;let n=Pe(e);if(n){const i=n.ownerDocument;if(!i||!ot(i.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Dr=[];function BR(e,t){let{onClose:n,shouldCloseOnBlur:i,isOpen:o,isDismissable:s=!1,isKeyboardDismissDisabled:c=!1,shouldCloseOnInteractOutside:d}=e,m=b.useRef(void 0);b.useEffect(()=>{if(o&&!Dr.includes(t))return Dr.push(t),()=>{let D=Dr.indexOf(t);D>=0&&Dr.splice(D,1)}},[o,t]);let h=()=>{Dr[Dr.length-1]===t&&n&&n()},y=D=>{const x=Dr[Dr.length-1];m.current=x,(!d||d(Pe(D)))&&x===t&&D.stopPropagation()},g=D=>{(!d||d(Pe(D)))&&(Dr[Dr.length-1]===t&&D.stopPropagation(),m.current===t&&h()),m.current=void 0},E=D=>{D.key==="Escape"&&!c&&!D.nativeEvent.isComposing&&(D.stopPropagation(),D.preventDefault(),h())};kR({ref:t,onInteractOutside:s&&o?g:void 0,onInteractOutsideStart:y});let{focusWithinProps:S}=Gs({isDisabled:!i,onBlurWithin:D=>{!D.relatedTarget||dR(D.relatedTarget)||(!d||d(D.relatedTarget))&&n?.()}});return{overlayProps:{onKeyDown:E,...S},underlayProps:{}}}const $s=typeof document<"u"&&window.visualViewport;let wc=0,th;function LR(e={}){let{isDisabled:t}=e;ct(()=>{if(!t)return wc++,wc===1&&(Hs()?th=IR():th=PR()),()=>{wc--,wc===0&&th()}},[t])}function PR(){let e=window.innerWidth-document.documentElement.clientWidth;return Pd(e>0&&("scrollbarGutter"in document.documentElement.style?Gc(document.documentElement,"scrollbarGutter","stable"):Gc(document.documentElement,"paddingRight",`${e}px`)),Gc(document.documentElement,"overflow","hidden"))}function IR(){let e=Gc(document.documentElement,"overflow","hidden"),t,n=!1,i=y=>{let g=Pe(y);t=md(g)?g:Yd(g,!0),n=!1;let E=g.ownerDocument.defaultView.getSelection();E&&!E.isCollapsed&&E.containsNode(g,!0)&&(n=!0),y.composedPath().some(S=>S instanceof HTMLInputElement&&S.type==="range")&&(n=!0),"selectionStart"in g&&"selectionEnd"in g&&g.selectionStart<g.selectionEnd&&g.ownerDocument.activeElement===g&&(n=!0)},o=document.createElement("style"),s=pS();s&&(o.nonce=s),o.textContent=`
78
78
  @layer {
79
79
  * {
80
80
  overscroll-behavior: contain;
81
81
  }
82
- }`.trim(),document.head.prepend(o);let c=y=>{if(!(y.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){y.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&y.preventDefault()}},d=y=>{let g=Pe(y),E=y.relatedTarget;E&&Op(E)?(E.focus({preventScroll:!0}),x1(E,Op(g))):E||g.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},m=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(y){let g=St(),E=g!=null&&Op(g);m.call(this,{...y,preventScroll:!0}),(!y||!y.preventScroll)&&x1(this,E)};let h=Pd(nh(document,"touchstart",i,{passive:!1,capture:!0}),nh(document,"touchmove",c,{passive:!1,capture:!0}),nh(document,"blur",d,!0));return()=>{e(),h(),o.remove(),HTMLElement.prototype.focus=m}}function Gc(e,t,n){let i=e.style[t];return e.style[t]=n,()=>{e.style[t]=i}}function nh(e,t,n,i){return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}function x1(e,t){t||!$u?C1(e):$u.addEventListener("resize",()=>C1(e),{once:!0})}function C1(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let i=Yd(n);if(i!==document.documentElement&&i!==document.body&&i!==n){let o=i.getBoundingClientRect(),u=n.getBoundingClientRect();if(u.top<o.top||u.bottom>o.top+n.clientHeight){let c=o.bottom;$u&&(c=Math.min(c,$u.offsetTop+$u.height));let d=u.top-o.top-((c-o.top)/2-u.height/2);i.scrollTo({top:Math.max(0,Math.min(i.scrollHeight-i.clientHeight,i.scrollTop+d)),behavior:"smooth"})}}n=i.parentElement}}function FR(e,t){let{triggerRef:n,popoverRef:i,groupRef:o,isNonModal:u,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d,...m}=e,h=m.trigger==="SubmenuTrigger",{overlayProps:y,underlayProps:g}=BR({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!u||h,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d},o??i),{overlayProps:E,arrowProps:S,placement:D,triggerAnchorPoint:x}=MR({...m,targetRef:n,overlayRef:i,isOpen:t.isOpen,onClose:u&&!h?t.close:null});return LR({isDisabled:u||!t.isOpen}),b.useEffect(()=>{if(t.isOpen&&i.current)return u?vR(o?.current??i.current):bR([o?.current??i.current],{shouldUseInert:!0})},[u,t.isOpen,i,o]),{popoverProps:pt(y,E),arrowProps:S,underlayProps:g,placement:D,triggerAnchorPoint:x}}var M$={};M$={dismiss:"تجاهل"};var R$={};R$={dismiss:"Отхвърляне"};var O$={};O$={dismiss:"Odstranit"};var k$={};k$={dismiss:"Luk"};var B$={};B$={dismiss:"Schließen"};var L$={};L$={dismiss:"Απόρριψη"};var P$={};P$={dismiss:"Dismiss"};var I$={};I$={dismiss:"Descartar"};var F$={};F$={dismiss:"Lõpeta"};var j$={};j$={dismiss:"Hylkää"};var z$={};z$={dismiss:"Rejeter"};var U$={};U$={dismiss:"התעלם"};var H$={};H$={dismiss:"Odbaci"};var V$={};V$={dismiss:"Elutasítás"};var G$={};G$={dismiss:"Ignora"};var Z$={};Z$={dismiss:"閉じる"};var Y$={};Y$={dismiss:"무시"};var q$={};q$={dismiss:"Atmesti"};var K$={};K$={dismiss:"Nerādīt"};var W$={};W$={dismiss:"Lukk"};var Q$={};Q$={dismiss:"Negeren"};var J$={};J$={dismiss:"Zignoruj"};var X$={};X$={dismiss:"Descartar"};var e2={};e2={dismiss:"Dispensar"};var t2={};t2={dismiss:"Revocare"};var n2={};n2={dismiss:"Пропустить"};var r2={};r2={dismiss:"Zrušiť"};var a2={};a2={dismiss:"Opusti"};var i2={};i2={dismiss:"Odbaci"};var o2={};o2={dismiss:"Avvisa"};var l2={};l2={dismiss:"Kapat"};var u2={};u2={dismiss:"Скасувати"};var s2={};s2={dismiss:"取消"};var c2={};c2={dismiss:"關閉"};var d2={};d2={"ar-AE":M$,"bg-BG":R$,"cs-CZ":O$,"da-DK":k$,"de-DE":B$,"el-GR":L$,"en-US":P$,"es-ES":I$,"et-EE":F$,"fi-FI":j$,"fr-FR":z$,"he-IL":U$,"hr-HR":H$,"hu-HU":V$,"it-IT":G$,"ja-JP":Z$,"ko-KR":Y$,"lt-LT":q$,"lv-LV":K$,"nb-NO":W$,"nl-NL":Q$,"pl-PL":J$,"pt-BR":X$,"pt-PT":e2,"ro-RO":t2,"ru-RU":n2,"sk-SK":r2,"sl-SI":a2,"sr-SP":i2,"sv-SE":o2,"tr-TR":l2,"uk-UA":u2,"zh-CN":s2,"zh-TW":c2};function jR(e){return e&&e.__esModule?e.default:e}function A1(e){let{onDismiss:t,...n}=e,i=Xa(jR(d2),"@react-aria/overlays"),o=Vu(n,i.format("dismiss")),u=()=>{t&&t()};return ve.createElement(t0,null,ve.createElement("button",{...o,tabIndex:-1,onClick:u,style:{width:1,height:1}}))}function zR({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return ve.createElement(Z0.Provider,{value:t},e)}const UR=b.createContext({});function HR(){return b.useContext(UR)??{}}const f2=ve.createContext(null);function w1(e){let t=I0(),{portalContainer:n=t?null:document.body,isExiting:i}=e,[o,u]=b.useState(!1),c=b.useMemo(()=>({contain:o,setContain:u}),[o,u]),{getContainer:d}=HR();if(!e.portalContainer&&d&&(n=d()),!n)return null;let m=e.children;return e.disableFocusManagement||(m=ve.createElement(oR,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!i},m)),m=ve.createElement(f2.Provider,{value:c},ve.createElement(zR,null,m)),t8.createPortal(m,n)}function VR(){let t=b.useContext(f2)?.setContain;ct(()=>{t?.(!0)},[t])}function m2(e){let[t,n]=Au(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=b.useCallback(()=>{n(!0)},[n]),o=b.useCallback(()=>{n(!1)},[n]),u=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:o,toggle:u}}function GR(e,t=!0){let[n,i]=b.useState(!0),o=n&&t;return ct(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let u of e.current.getAnimations())u instanceof CSSTransition&&u.cancel()},[e,o]),p2(e,o,b.useCallback(()=>i(!1),[])),o}function ZR(e,t){let[n,i]=b.useState(t?"open":"closed");switch(n){case"open":t||i("exiting");break;case"closed":case"exiting":t&&i("open");break}let o=n==="exiting";return p2(e,o,b.useCallback(()=>{i(u=>u==="exiting"?"closed":u)},[])),o}function p2(e,t,n){ct(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let i=e.current.getAnimations();if(i.length===0){n();return}let o=!1;return Promise.allSettled(i.map(u=>u.finished)).then(()=>{o||mS.flushSync(()=>{n()})}),()=>{o=!0}}},[e,t,n])}const h2=b.createContext(null),T1=b.createContext(null),YR=b.forwardRef(function(t,n){[t,n]=ua(t,n,h2);let i=b.useContext(fy),o=m2(t),u=t.isOpen!=null||t.defaultOpen!=null||!i?o:i,c=ZR(n,u.isOpen)||t.isExiting||!1,d=e8(),{direction:m}=un();if(d){let h=t.children;return typeof h=="function"&&(h=h({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),ve.createElement(ve.Fragment,null,h)}return u&&!u.isOpen&&!c?null:ve.createElement(qR,{...t,triggerRef:t.triggerRef,state:u,popoverRef:n,isExiting:c,dir:m})});function qR({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:i,...o}){let u=b.useRef(null),c=b.useRef(null),d=b.useContext(T1),m=d&&o.trigger==="SubmenuTrigger",{popoverProps:h,underlayProps:y,arrowProps:g,placement:E,triggerAnchorPoint:S}=FR({...o,offset:o.offset??8,arrowRef:u,groupRef:m?d:c},e),D=o.popoverRef,x=GR(D,!!E)||o.isEntering||!1,w=la({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:E,isEntering:x,isExiting:t}}),R=!o.isNonModal||o.trigger==="SubmenuTrigger",[I,A]=b.useState(!1);ct(()=>{D.current&&A(R&&!D.current.querySelector("[role=dialog]"))},[D,R]),b.useEffect(()=>{I&&(o.trigger!=="SubmenuTrigger"||zd()!=="pointer")&&D.current&&!j0(D.current)&&wu(D.current)},[I,D,o.trigger]);let L=b.useMemo(()=>{let pe=w.children;if(i)for(let J of i)pe=ve.createElement(J.Provider,{value:null},pe);return pe},[w.children,i]),[M,Z]=b.useState(null),V=b.useCallback(()=>{o.triggerRef.current&&Z(o.triggerRef.current.getBoundingClientRect().width+"px")},[o.triggerRef]);ct(V,[V]),u0({ref:w.style?.["--trigger-width"]?void 0:o.triggerRef,onResize:V});let fe={...h.style,"--trigger-anchor-point":S?`${S.x}px ${S.y}px`:void 0,...w.style,"--trigger-width":w.style?.["--trigger-width"]||M},ne=ve.createElement(wn.div,{...pt(sn(o,{global:!0}),h),...w,role:I?"dialog":void 0,tabIndex:I?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:D,slot:o.slot||void 0,style:fe,dir:o.dir,"data-trigger":o.trigger,"data-placement":E,"data-entering":x||void 0,"data-exiting":t||void 0},!o.isNonModal&&ve.createElement(A1,{onDismiss:e.close}),ve.createElement(yR.Provider,{value:{...g,placement:E,ref:u}},L),ve.createElement(A1,{onDismiss:e.close}));return m?ve.createElement(w1,{...o,shouldContainFocus:I,isExiting:t,portalContainer:n??d?.current??void 0},ne):ve.createElement(w1,{...o,shouldContainFocus:I,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&ve.createElement("div",{"data-testid":"underlay",...y,style:{position:"fixed",inset:0}}),ve.createElement("div",{ref:c,style:{display:"contents"}},ve.createElement(T1.Provider,{value:c},ne)))}function KR(e,t){let{role:n="dialog"}=e,i=rd();i=e["aria-label"]?void 0:i;let o=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!j0(t.current)){wu(t.current);let u=setTimeout(()=>{(St()===t.current||St()===document.body)&&(o.current=!0,t.current&&(t.current.blur(),wu(t.current)),o.current=!1)},500);return()=>{clearTimeout(u)}}},[t]),VR(),b.useRef(!1),b.useEffect(()=>{}),{dialogProps:{...sn(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||i,onBlur:u=>{o.current&&u.stopPropagation()}},titleProps:{id:i}}}const y2=b.createContext(null),fy=b.createContext(null),WR=b.forwardRef(function(t,n){let i=t["aria-labelledby"];[t,n]=ua(t,n,y2);let{dialogProps:o,titleProps:u}=KR({...t,"aria-labelledby":i},n),c=b.useContext(fy);!o["aria-label"]&&!o["aria-labelledby"]&&t["aria-labelledby"]&&(o["aria-labelledby"]=t["aria-labelledby"]);let d=la({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:c?.close||(()=>{})}}),m=sn(t,{global:!0});return ve.createElement(wn.section,{...pt(m,d,o),render:t.render,ref:n,slot:t.slot||void 0},ve.createElement(Id,{values:[[K0,{slots:{[Oh]:{},title:{...u,level:2}}}],[Yu,{slots:{[Oh]:{},close:{onPress:()=>c?.close()}}}]]},d.children))});function QR(e){let t=hR({usage:"search",...e}),n=b.useCallback((u,c)=>c.length===0?!0:(u=u.normalize("NFC"),c=c.normalize("NFC"),t.compare(u.slice(0,c.length),c)===0),[t]),i=b.useCallback((u,c)=>c.length===0?!0:(u=u.normalize("NFC"),c=c.normalize("NFC"),t.compare(u.slice(-c.length),c)===0),[t]),o=b.useCallback((u,c)=>{if(c.length===0)return!0;u=u.normalize("NFC"),c=c.normalize("NFC");let d=0,m=c.length;for(;d+m<=u.length;d++){let h=u.slice(d,d+m);if(t.compare(c,h)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:i,contains:o}),[n,i,o])}const JR=["day","month","year"],XR={hour:1,minute:2,second:3};function eO(e,t){let{autoComplete:n,isDisabled:i,name:o}=e,{visuallyHiddenProps:u}=LD({style:{position:"fixed",top:0,left:0}}),c=60;t.granularity==="second"?c=1:t.granularity==="hour"&&(c=3600);let d="";t.value&&(t.granularity==="day"?d=mn(t.value).toString():d=oa("timeZone"in t.value?U8(t.value):t.value).toString());let m=t.granularity==="day"?"date":"datetime-local",h=["hour","minute","second"],y=0;return h.includes(t.granularity)&&(y=XR[t.granularity],h=h.slice(0,y)),{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:i,type:m,form:"",name:o,step:c,value:d,onChange:g=>{let E=Pe(g).value.toString();if(E)try{let S=Q8(E);if(t.granularity==="day"&&(S=_D(E)),"setSegment"in t)for(let D in S)JR.includes(D)&&t.setSegment(D,S[D]),h.includes(D)&&t.setSegment(D,S[D]);t.setValue(S)}catch{}}}}}function tO(e){let{state:t}=e,{containerProps:n,inputProps:i}=eO({...e},t);return ve.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},ve.createElement("input",i))}var g2={};g2={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var b2={};b2={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var v2={};v2={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var _2={};_2={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var E2={};E2={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var S2={};S2={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var D2={};D2={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var $2={};$2={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var x2={};x2={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var C2={};C2={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var A2={};A2={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var w2={};w2={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var T2={};T2={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var N2={};N2={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var M2={};M2={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var R2={};R2={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var O2={};O2={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var k2={};k2={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var B2={};B2={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var L2={};L2={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var P2={};P2={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var I2={};I2={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var F2={};F2={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var j2={};j2={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var z2={};z2={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var U2={};U2={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var H2={};H2={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var V2={};V2={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var G2={};G2={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var Z2={};Z2={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var Y2={};Y2={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var q2={};q2={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var K2={};K2={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var W2={};W2={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Qd={};Qd={"ar-AE":g2,"bg-BG":b2,"cs-CZ":v2,"da-DK":_2,"de-DE":E2,"el-GR":S2,"en-US":D2,"es-ES":$2,"et-EE":x2,"fi-FI":C2,"fr-FR":A2,"he-IL":w2,"hr-HR":T2,"hu-HU":N2,"it-IT":M2,"ja-JP":R2,"ko-KR":O2,"lt-LT":k2,"lv-LV":B2,"nb-NO":L2,"nl-NL":P2,"pl-PL":I2,"pt-BR":F2,"pt-PT":j2,"ro-RO":z2,"ru-RU":U2,"sk-SK":H2,"sl-SI":V2,"sr-SP":G2,"sv-SE":Z2,"tr-TR":Y2,"uk-UA":q2,"zh-CN":K2,"zh-TW":W2};function Q2(e,t,n){let{direction:i}=un(),o=b.useMemo(()=>cy(t),[t]),u=m=>{if(ot(m.currentTarget,Pe(m))&&(m.altKey&&(m.key==="ArrowDown"||m.key==="ArrowUp")&&"setOpen"in e&&(m.preventDefault(),m.stopPropagation(),e.setOpen(!0)),!n))switch(m.key){case"ArrowLeft":if(m.preventDefault(),m.stopPropagation(),i==="rtl"){if(t.current){let h=Pe(m),y=N1(t.current,h.getBoundingClientRect().left,-1);y&&y.focus()}}else o.focusPrevious();break;case"ArrowRight":if(m.preventDefault(),m.stopPropagation(),i==="rtl"){if(t.current){let h=Pe(m),y=N1(t.current,h.getBoundingClientRect().left,1);y&&y.focus()}}else o.focusNext();break}},c=()=>{if(!t.current)return;let m=window.event?Pe(window.event):null,h=An(t.current,{tabbable:!0});if(m&&(h.currentNode=m,m=h.previousNode()),!m){let y;do y=h.lastChild(),y&&(m=y);while(y)}for(;m?.hasAttribute("data-placeholder");){let y=h.previousNode();if(y&&y.hasAttribute("data-placeholder"))m=y;else break}m&&m.focus()},{pressProps:d}=Y0({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(m){m.pointerType==="mouse"&&c()},onPress(m){(m.pointerType==="touch"||m.pointerType==="pen")&&c()}});return pt(d,{onKeyDown:u})}function N1(e,t,n){let i=An(e,{tabbable:!0}),o=i.nextNode(),u=null,c=1/0;for(;o;){let m=o.getBoundingClientRect().left-t,h=Math.abs(m);Math.sign(m)===n&&h<c&&(u=o,c=h),o=i.nextNode()}return u}function nO(e){return e&&e.__esModule?e.default:e}const J2=new WeakMap,Zc="__reactAriaDateFieldRole",rO="__reactAriaDateFieldFocusManager";function aO(e,t,n){let{isInvalid:i,validationErrors:o,validationDetails:u}=t.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:m,errorMessageProps:h}=HD({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),y=b.useRef(null),{focusWithinProps:g}=Gu({...e,onFocusWithin(ne){y.current=t.value,e.onFocus?.(ne)},onBlurWithin:ne=>{t.confirmPlaceholder(),t.value!==y.current&&t.commitValidation(),e.onBlur?.(ne)},onFocusWithinChange:e.onFocusChange}),E=Xa(nO(Qd),"@react-aria/datepicker"),S=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",D=t.maxGranularity==="hour"?"time":"date",x=t.value?E.format(S,{[D]:t.formatValue({month:"long"})}):"",w=sy(x),R=e[Zc]==="presentation"?d["aria-describedby"]:[w["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,I=e[rO],A=b.useMemo(()=>I||cy(n),[I,n]),L=Q2(t,n,e[Zc]==="presentation");J2.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:R,focusManager:A});let M=b.useRef(e.autoFocus),Z;e[Zc]==="presentation"?Z={role:"presentation"}:Z=pt(d,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":R}),b.useEffect(()=>{M.current&&A.focusFirst(),M.current=!1},[A]),WM(e.inputRef,t.defaultValue,t.setValue),QM({...e,focus(){A.focusFirst()}},t,e.inputRef);let V={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(V.type="text",V.hidden=!0,V.required=e.isRequired,V.onChange=()=>{});let fe=sn(e);return{labelProps:{...c,onClick:()=>{A.focusFirst()}},fieldProps:pt(fe,Z,L,g,{onKeyDown(ne){e.onKeyDown&&e.onKeyDown(ne)},onKeyUp(ne){e.onKeyUp&&e.onKeyUp(ne)},style:{unicodeBidi:"isolate"}}),inputProps:V,descriptionProps:m,errorMessageProps:h,isInvalid:i,validationErrors:o,validationDetails:u}}function iO(e){return e&&e.__esModule?e.default:e}function oO(){let{locale:e}=un(),t=lS(iO(Qd),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new lO(e,t)}},[e,t])}class lO{constructor(t,n){this.locale=t,this.dictionary=n}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function uO(e,t,n){let i=b.useRef(""),{locale:o,direction:u}=un(),c=oO(),{ariaLabel:d,ariaLabelledBy:m,ariaDescribedBy:h,focusManager:y}=J2.get(t),g=e.isPlaceholder?"":e.text,E=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),S=or({month:"long",timeZone:E.timeZone}),D=or({hour:"numeric",hour12:E.hour12,timeZone:E.timeZone});if(e.type==="month"&&!e.isPlaceholder){let G=S.format(t.dateValue);g=G!==g?`${g} – ${G}`:G}else e.type==="hour"&&!e.isPlaceholder&&(g=D.format(t.dateValue));let{spinButtonProps:x}=aR({value:e.value??void 0,textValue:g,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{i.current="",t.increment(e.type)},onDecrement:()=>{i.current="",t.decrement(e.type)},onIncrementPage:()=>{i.current="",t.incrementPage(e.type)},onDecrementPage:()=>{i.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{i.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{i.current="",t.decrementToMin(e.type)}}),w=b.useMemo(()=>new bS(o,{maximumFractionDigits:0}),[o]),R=()=>{if(e.text===e.placeholder&&y.focusPrevious(),w.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let G=e.text.slice(0,-1),C=w.parse(G);G=C===0?"":G,G.length===0||C===0?t.clearSegment(e.type):t.setSegment(e.type,C),i.current=G}else(e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type)},I=G=>{if(G.key==="a"&&(il()?G.metaKey:G.ctrlKey)&&G.preventDefault(),!(G.ctrlKey||G.metaKey||G.shiftKey||G.altKey))switch(G.key){case"Backspace":case"Delete":G.preventDefault(),G.stopPropagation(),R();break}},{startsWith:A}=QR({sensitivity:"base"}),L=or({hour:"numeric",hour12:!0}),M=b.useMemo(()=>{let G=new Date;return G.setHours(0),L.formatToParts(G).find(C=>C.type==="dayPeriod").value},[L]),Z=b.useMemo(()=>{let G=new Date;return G.setHours(12),L.formatToParts(G).find(C=>C.type==="dayPeriod").value},[L]),V=or({year:"numeric",era:"narrow",timeZone:"UTC"}),fe=b.useMemo(()=>{if(e.type!=="era")return[];let G=Et(new Ot(1,1,1),t.calendar),C=t.calendar.getEras().map(W=>{let Y=G.set({year:1,month:1,day:1,era:W}).toDate("UTC"),z=V.formatToParts(Y).find(T=>T.type==="era").value;return{era:W,formatted:z}}),U=sO(C.map(W=>W.formatted));if(U)for(let W of C)W.formatted=W.formatted.slice(U);return C},[V,t.calendar,e.type]),ne=G=>{if(t.isDisabled||t.isReadOnly)return;let C=i.current+G;switch(e.type){case"dayPeriod":if(A(M,G))t.setSegment("dayPeriod",0);else if(A(Z,G))t.setSegment("dayPeriod",1);else break;y.focusNext();break;case"era":{let U=fe.find(W=>A(W.formatted,G));U&&(t.setSegment("era",U.era),y.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!w.isValidPartialNumber(C))return;let U=w.parse(C),W=U;if(e.maxValue!==void 0&&U>e.maxValue&&(W=w.parse(G)),isNaN(U))return;t.setSegment(e.type,W),e.maxValue!==void 0&&(+(U+"0")>e.maxValue||C.length>=String(e.maxValue).length)?(i.current="",y.focusNext()):i.current=C;break}}},pe=()=>{i.current="",n.current&&BD(n.current,{containingElement:Yd(n.current)}),window.getSelection()?.collapse(n.current)},J=b.useRef(typeof document<"u"?document:null);kp(J,"selectionchange",()=>{let G=window.getSelection();G?.anchorNode&&ot(n.current,G?.anchorNode)&&G.collapse(n.current)});let ye=b.useRef("");kp(n,"beforeinput",G=>{if(n.current)switch(G.preventDefault(),G.inputType){case"deleteContentBackward":case"deleteContentForward":w.isValidPartialNumber(e.text)&&!t.isReadOnly&&R();break;case"insertCompositionText":ye.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:G.data!=null&&ne(G.data);break}}),kp(n,"input",G=>{let{inputType:C,data:U}=G;switch(C){case"insertCompositionText":n.current&&(n.current.textContent=ye.current),U!=null&&(A(M,U)||A(Z,U))&&ne(U);break}}),ct(()=>{let G=n.current;return()=>{St()===G&&(y.focusPrevious()||y.focusNext())}},[n,y]);let Ae=Hu()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},j=b.useMemo(()=>t.segments.find(G=>G.isEditable),[t.segments]);e!==j&&!t.isInvalid&&(h=void 0);let de=Ar(),k=!t.isDisabled&&!t.isReadOnly&&e.isEditable,B=e.type==="literal"?"":c.of(e.type),X=Vu({"aria-label":`${B}${d?`, ${d}`:""}${m?", ":""}`,"aria-labelledby":m});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if(u==="rtl"){F.unicodeBidi="embed";let G=E[e.type];(G==="numeric"||G==="2-digit")&&(F.direction="ltr")}return{segmentProps:pt(x,X,{id:de,...Ae,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":h,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:k,suppressContentEditableWarning:k,spellCheck:k?"false":void 0,autoCorrect:k?"off":void 0,[parseInt(ve.version,10)>=17?"enterKeyHint":"enterkeyhint"]:k?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!k?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:I,onFocus:pe,style:F,onPointerDown(G){G.stopPropagation()},onMouseDown(G){G.stopPropagation()}})}}function sO(e){e.sort();let t=e[0],n=e[e.length-1];for(let i=0;i<t.length;i++)if(t[i]!==n[i])return i;return 0}var X2={};X2={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var ex={};ex={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var tx={};tx={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var nx={};nx={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var rx={};rx={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var ax={};ax={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var ix={};ix={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var ox={};ox={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var lx={};lx={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var ux={};ux={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var sx={};sx={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var cx={};cx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var dx={};dx={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var fx={};fx={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var mx={};mx={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var px={};px={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var hx={};hx={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var yx={};yx={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var gx={};gx={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var bx={};bx={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var vx={};vx={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var _x={};_x={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Ex={};Ex={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Sx={};Sx={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Dx={};Dx={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var $x={};$x={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var xx={};xx={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Cx={};Cx={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var Ax={};Ax={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var wx={};wx={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var Tx={};Tx={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Nx={};Nx={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Mx={};Mx={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var Rx={};Rx={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var Ox={};Ox={"ar-AE":X2,"bg-BG":ex,"cs-CZ":tx,"da-DK":nx,"de-DE":rx,"el-GR":ax,"en-US":ix,"es-ES":ox,"et-EE":lx,"fi-FI":ux,"fr-FR":sx,"he-IL":cx,"hr-HR":dx,"hu-HU":fx,"it-IT":mx,"ja-JP":px,"ko-KR":hx,"lt-LT":yx,"lv-LV":gx,"nb-NO":bx,"nl-NL":vx,"pl-PL":_x,"pt-BR":Ex,"pt-PT":Sx,"ro-RO":Dx,"ru-RU":$x,"sk-SK":xx,"sl-SI":Cx,"sr-SP":Ax,"sv-SE":wx,"tr-TR":Tx,"uk-UA":Nx,"zh-CN":Mx,"zh-TW":Rx};function cO(e){return e&&e.__esModule?e.default:e}const dO=new Ki(cO(Ox));function fO(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function kx(e,t,n,i,o){let u=e!=null&&n!=null&&e.compare(n)>0,c=e!=null&&t!=null&&e.compare(t)<0,d=e!=null&&i?.(e)||!1,m=u||c||d,h=[];if(m){let y=fO(),g=Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||dO,E=new oS(y,g),S=new ra(y,Qo({},o)),D=S.resolvedOptions().timeZone;c&&t!=null&&h.push(E.format("rangeUnderflow",{minValue:S.format(t.toDate(D))})),u&&n!=null&&h.push(E.format("rangeOverflow",{maxValue:S.format(n.toDate(D))})),d&&h.push(E.format("unavailableDate"))}return{isInvalid:m,validationErrors:h,validationDetails:{badInput:d,customError:!1,patternMismatch:!1,rangeOverflow:u,rangeUnderflow:c,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!m}}}const mO={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},pO={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Qo(e,t){e={...t.shouldForceLeadingZeros?pO:mO,...e};let i=t.granularity||"minute",o=Object.keys(e),u=o.indexOf(t.maxGranularity??"year");u<0&&(u=0);let c=o.indexOf(i);if(c<0&&(c=2),u>c)throw new Error("maxGranularity must be greater than granularity");let d=o.slice(u,c+1).reduce((h,y)=>(h[y]=e[y],h),{});return t.hourCycle!=null&&(d.hour12=t.hourCycle===12),d.timeZone=t.timeZone||"UTC",(i==="hour"||i==="minute"||i==="second")&&t.timeZone&&!t.hideTimeZone&&(d.timeZoneName="short"),t.showEra&&u===0&&(d.era="short"),d}function M1(e){return e&&"hour"in e?e:new ay}function Bx(e,t){if(e===null)return null;if(e)return Et(e,t)}function hO(e,t,n,i){if(e)return Bx(e,n);let o=Et(rD(i??Gd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?mn(o):i?o:oa(o)}function Lx(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,i=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,u]=b.useState([i,n]);e&&(o[0]!==i||o[1]!==n)&&u([i,n]),t||(t=e?i:o[0]);let c=e?n:o[1];return[t,c]}const yO=new Ki({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function gO(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?yO.getStringForLocale(e,n):"––"}class $r{constructor(t,n,i){if(this.era=i?.era??null,this.calendar=t,this.year=i?.year??null,this.month=i?.month??null,this.day=i?.day??null,this.hour=i?.hour??null,this.hourCycle=n,this.dayPeriod=null,this.minute=i?.minute??null,this.second=i?.second??null,this.millisecond=i?.millisecond??null,this.offset="offset"in(i??{})?i.offset:null,this.hour!=null){let[o,u]=Io(this.hour,n);this.dayPeriod=o,this.hour=u}}copy(){let t=new $r(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(n=>this[n]!=null)}validate(t,n){return n.every(i=>{if((i==="hour"||i==="dayPeriod")&&"hour"in t){let[o,u]=Io(t.hour,this.hourCycle);return this.dayPeriod===o&&this.hour===u}return this[i]===t[i]})}isCleared(t){return t.every(n=>this[n]===null)}set(t,n,i){let o=this.copy();return o[t]=n,t==="hour"&&o.dayPeriod==null&&"hour"in i&&(o.dayPeriod=Io(i.hour,this.hourCycle)[0]),t==="year"&&o.era==null&&(o.era=i.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(o.offset=null),o}clear(t){let n=this.copy();return n[t]=null,t==="year"&&(n.era=null),n.offset=null,n}cycle(t,n,i,o){let u=this.copy();if(u[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in i){let[c,d]=Io(i.hour,this.hourCycle);u.dayPeriod=c,u.hour=d}else u[t]=i[t];return t==="year"&&u.era==null&&(u.era=i.era),u}switch(t){case"era":{let c=this.calendar.getEras(),d=c.indexOf(u.era);d=Di(d,n,0,c.length-1),u.era=c[d];break}case"year":{let c=new Ot(this.calendar,this.era??i.era,this.year??i.year,this.month??1,this.day??1);c=c.cycle(t,n,{round:t==="year"}),u.era=c.era,u.year=c.year;break}case"month":u.month=Di(u.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":u.day=Di(u.day??1,n,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let c=o.some(d=>["year","month","day"].includes(d));if("timeZone"in i&&(!c||u.year!=null&&u.month!=null&&u.day!=null)){let d=this.toValue(i);d=d.cycle("hour",n,{hourCycle:this.hourCycle==="h12"?12:24,round:!1});let[m,h]=Io(d.hour,this.hourCycle);u.hour=h,u.dayPeriod=m,u.offset=d.offset}else{let d=u.hour??0,m=this.getSegmentLimits("hour");u.hour=Di(d,n,m.minValue,m.maxValue),u.dayPeriod==null&&"hour"in i&&(u.dayPeriod=Io(i.hour,this.hourCycle)[0])}break}case"dayPeriod":u.dayPeriod=Di(u.dayPeriod??0,n,0,1);break;case"minute":u.minute=Di(u.minute??0,n,0,59,!0);break;case"second":u.second=Di(u.second??0,n,0,59,!0);break}return u}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=bO(n,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(n=this.dayPeriod===1?12:0);let i=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:n??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return"offset"in i&&this.offset!=null&&i.offset!==this.offset&&(i=i.add({milliseconds:i.offset-this.offset})),i}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case"era":{let n=this.calendar.getEras();return{value:this.era!=null?n.indexOf(this.era):n.length-1,minValue:0,maxValue:n.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let n=0,i=23;return this.hourCycle==="h12"?(n=1,i=12):this.hourCycle==="h11"&&(n=0,i=11),{value:this.hour,minValue:n,maxValue:i}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function Di(e,t,n,i,o=!1){if(o){e+=Math.sign(t),e<n&&(e=i);let u=Math.abs(t);t>0?e=Math.ceil(e/u)*u:e=Math.floor(e/u)*u,e>i&&(e=n)}else e+=t,e<n?e=i-(n-e-1):e>i&&(e=n+(e-i-1));return e}function Io(e,t){let n=e>=12?1:0;switch(t){case"h11":e>=12&&(e-=12);break;case"h12":e===0?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}function bO(e,t,n){switch(n){case"h11":t===1&&(e+=12);break;case"h12":e===12&&(e=0),t===1&&(e+=12);break;case"h24":e-=1;break}return e}const rh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},R1={year:5,month:2,day:7,hour:2,minute:15,second:15},vO={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function _O(e){let{locale:t,createCalendar:n,hideTimeZone:i,isDisabled:o=!1,isReadOnly:u=!1,isRequired:c=!1,minValue:d,maxValue:m,isDateUnavailable:h}=e,y=e.value||e.defaultValue||e.placeholderValue||null,[g,E]=Lx(y,e.granularity),S=E||"UTC";if(y&&!(g in y))throw new Error("Invalid granularity "+g+" for value "+y.toString());let[D,x]=b.useMemo(()=>{let N=new ra(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return[n(N.calendar),N.hourCycle]},[t,e.hourCycle,n]),[w,R]=Au(e.value,e.defaultValue??null,e.onChange),[I]=b.useState(w),A=b.useMemo(()=>Bx(w,D)??null,[w,D]),[L,M]=b.useState(()=>new $r(D,x,A)),Z=D.identifier==="gregory"&&L.era==="BC",V=b.useMemo(()=>({granularity:g,maxGranularity:e.maxGranularity??"year",timeZone:E,hideTimeZone:i,hourCycle:e.hourCycle,showEra:Z,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,g,e.hourCycle,e.shouldForceLeadingZeros,E,i,Z]),fe=b.useMemo(()=>Qo({},V),[V]),ne=b.useMemo(()=>new ra(t,fe),[t,fe]),pe=b.useMemo(()=>ne.resolvedOptions(),[ne]),J=b.useMemo(()=>hO(e.placeholderValue,g,D,E),[e.placeholderValue,g,D,E]),ye=b.useMemo(()=>{let T=x==="h11"||x==="h12",N=["era","year","month","day","hour",...T?["dayPeriod"]:[],"minute","second"],ie=N.indexOf(e.maxGranularity||"era"),ge=N.indexOf(g==="hour"&&T?"dayPeriod":g);return N.slice(ie,ge+1)},[e.maxGranularity,g,x]),[Ae,j]=b.useState(A),[de,k]=b.useState(D),[B,X]=b.useState(x);(A!==Ae||x!==B||!Vd(D,de))&&(L=new $r(D,x,A),j(A),k(D),X(x),M(L));let F=T=>{if(!(e.isDisabled||e.isReadOnly))if(T==null||T instanceof $r&&T.isCleared(ye))M(new $r(D,x,A)),R(null);else if(!(T instanceof $r))T=Et(T,y?.calendar||new pn),M(new $r(D,x,A)),R(T);else{if(T.isComplete(ye)){let N=T.toValue(A??J);if(T.validate(N,ye)){let ie=Et(N,y?.calendar||new pn);if(!w||ie.compare(w)!==0){M(new $r(D,x,A)),R(ie);return}}}M(T)}},G=b.useMemo(()=>L.toValue(A??J).toDate(S),[L,S,A,J]),C=b.useMemo(()=>EO(G,L,ne,pe,D,t,g),[G,ne,pe,L,D,t,g]),U=(T,N)=>{F(L.cycle(T,N,J,ye))},W=b.useMemo(()=>kx(w,d,m,h,V),[w,d,m,h,V]),Y=UD({...e,value:w,builtinValidation:W}),te=Y.displayValidation.isInvalid,z=e.validationState||(te?"invalid":null);return{...Y,value:A,defaultValue:e.defaultValue??I,dateValue:G,calendar:D,setValue:F,segments:C,dateFormatter:ne,validationState:z,isInvalid:te,granularity:g,maxGranularity:e.maxGranularity??"year",isDisabled:o,isReadOnly:u,isRequired:c,increment(T){U(T,1)},decrement(T){U(T,-1)},incrementPage(T){U(T,R1[T]||1)},decrementPage(T){U(T,-(R1[T]||1))},incrementToMax(T){let N=T==="hour"&&x==="h12"?11:L.getSegmentLimits(T).maxValue;F(L.set(T,N,J))},decrementToMin(T){let N=T==="hour"&&x==="h12"?12:L.getSegmentLimits(T).minValue;F(L.set(T,N,J))},setSegment(T,N){F(L.set(T,N,J))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&L.isComplete(ye)){let T=L.toValue(A??J),N=Et(T,y?.calendar||new pn);(!w||N.compare(w)!==0)&&R(N),M(new $r(D,x,A))}},clearSegment(T){let N=L;T!=="timeZoneName"&&T!=="literal"&&(N=L.clear(T)),F(N)},formatValue(T){if(!A)return"";let N=Qo(T,V);return new ra(t,N).format(G)},getDateFormatter(T,N){let ie={...V,...N},ge=Qo({},ie);return new ra(T,ge)}}}function EO(e,t,n,i,o,u,c){let d=["hour","minute","second"],m=n.formatToParts(e),h=new Hh(u,{useGrouping:!1}),y=new Hh(u,{useGrouping:!1,minimumIntegerDigits:2});for(let E of m)if(E.type==="year"||E.type==="month"||E.type==="day"||E.type==="hour"){let S=t[E.type]??0;i[E.type]==="2-digit"?E.value=y.format(S):E.value=h.format(S)}let g=[];for(let E of m){let S=vO[E.type]||E.type,D=rh[S];S==="era"&&o.getEras().length===1&&(D=!1);let x=rh[S]&&t[E.type]==null,w=rh[S]?gO(S,E.value,u):null,R={type:S,text:x?w:E.value,...t.getSegmentLimits(S),isPlaceholder:x,placeholder:w,isEditable:D};S==="hour"?(g.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),g.push(R),S===c&&g.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(S)&&S===c?(g.push(R),g.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):g.push(R)}return g}const Px=b.createContext(null),Jd=b.createContext(null),my=b.createContext(null),SO=b.forwardRef(function(t,n){let i=b.useContext(Jd),o=b.useContext(my);return i||o?ve.createElement(Ix,{...t,ref:n}):ve.createElement(DO,{...t,ref:n})}),DO=b.forwardRef((e,t)=>{let[n,i]=ua({slot:e.slot},t,Px),{locale:o}=un(),u=_O({...n,locale:o,createCalendar:RD}),c=b.useRef(null),{fieldProps:d,inputProps:m}=aO({...n,inputRef:c},u,i);return ve.createElement(Id,{values:[[Jd,u],[GD,{...m,ref:c}],[Kd,{...d,ref:i,isInvalid:u.isInvalid,isDisabled:u.isDisabled}]]},ve.createElement(Ix,e))}),Ix=b.forwardRef((e,t)=>{let{className:n,children:i}=e,o=b.useContext(Jd),u=b.useContext(my),c=o??u;return ve.createElement(ve.Fragment,null,ve.createElement(VD,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isReadOnly:c.isReadOnly,isInvalid:c.isInvalid,isDisabled:c.isDisabled},c.segments.map((d,m)=>b.cloneElement(i(d),{key:m}))),ve.createElement(nR,{className:""}))}),$O=b.forwardRef(function({segment:t,...n},i){let o=b.useContext(Jd),u=b.useContext(my),c=o??u,d=GE(i),{segmentProps:m}=uO(t,c,d),{focusProps:h,isFocused:y,isFocusVisible:g}=cl(),{hoverProps:E,isHovered:S}=Zu({...n,isDisabled:c.isDisabled||t.type==="literal"}),D=la({...n,values:{...t,isReadOnly:c.isReadOnly,isInvalid:c.isInvalid,isDisabled:c.isDisabled,isHovered:S,isFocused:y,isFocusVisible:g},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return ve.createElement(wn.span,{...pt(sn(n,{global:!0}),m,h,E),...D,style:m.style,ref:d,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":c.isInvalid||void 0,"data-readonly":c.isReadOnly||void 0,"data-disabled":c.isDisabled||void 0,"data-type":t.type,"data-hovered":S||void 0,"data-focused":y||void 0,"data-focus-visible":g||void 0})});function xO(e){return e&&e.__esModule?e.default:e}function CO(e,t,n){let i=Ar(),o=Ar(),u=Ar(),c=Xa(xO(Qd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:m,validationDetails:h}=t.displayValidation,{labelProps:y,fieldProps:g,descriptionProps:E,errorMessageProps:S}=HD({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||m}),D=Q2(t,n),x=g["aria-labelledby"]||g.id,{locale:w}=un(),R=t.formatValue(w,{month:"long"}),I=R?c.format("selectedDateDescription",{date:R}):"",A=sy(I),L=[A["aria-describedby"],g["aria-describedby"]].filter(Boolean).join(" ")||void 0,M=sn(e),Z=b.useMemo(()=>cy(n),[n]),V=b.useRef(!1),{focusWithinProps:fe}=Gu({...e,isDisabled:t.isOpen,onBlurWithin:ne=>{let pe=document.getElementById(o);ot(pe,ne.relatedTarget)||(V.current=!1,e.onBlur?.(ne),e.onFocusChange?.(!1))},onFocusWithin:ne=>{V.current||(V.current=!0,e.onFocus?.(ne),e.onFocusChange?.(!0))}});return{groupProps:pt(M,D,g,A,fe,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":L,onKeyDown(ne){t.isOpen||e.onKeyDown&&e.onKeyDown(ne)},onKeyUp(ne){t.isOpen||e.onKeyUp&&e.onKeyUp(ne)}}),labelProps:{...y,onClick:()=>{Z.focusFirst()}},fieldProps:{...g,id:u,[Zc]:"presentation","aria-describedby":L,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[n0]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:E,errorMessageProps:S,buttonProps:{...A,id:i,"aria-haspopup":"dialog","aria-label":c.format("calendar"),"aria-labelledby":`${i} ${x}`,"aria-describedby":L,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${i} ${x}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:d,validationErrors:m,validationDetails:h}}function AO(e){let t=m2(e),[n,i]=Au(e.value,e.defaultValue||null,e.onChange),[o]=b.useState(n),u=n||e.placeholderValue||null,[c,d]=Lx(u,e.granularity),m=n!=null?n.toDate(d??"UTC"):null,h=c==="hour"||c==="minute"||c==="second",y=e.shouldCloseOnSelect??!0,[g,E]=b.useState(null),[S,D]=b.useState(null);if(n&&(g=n,"hour"in n&&(S=n)),u&&!(c in u))throw new Error("Invalid granularity "+c+" for value "+u.toString());let x=n?.calendar.identifier==="gregory"&&n.era==="BC",w=b.useMemo(()=>({granularity:c,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[c,e.hourCycle,e.shouldForceLeadingZeros,d,e.hideTimeZone,x]),{minValue:R,maxValue:I,isDateUnavailable:A}=e,L=b.useMemo(()=>kx(n,R,I,A,w),[n,R,I,A,w]),M=UD({...e,value:n,builtinValidation:L}),Z=M.displayValidation.isInvalid,V=e.validationState||(Z?"invalid":null),fe=(J,ye)=>{i("timeZone"in ye?ye.set(mn(J)):oa(J,ye)),E(null),D(null),M.commitValidation()},ne=J=>{let ye=typeof y=="function"?y():y;h?S||ye?fe(J,S||M1(e.defaultValue||e.placeholderValue)):E(J):(i(J),M.commitValidation()),ye&&t.setOpen(!1)},pe=J=>{g&&J?fe(g,J):D(J)};return{...M,value:n,defaultValue:e.defaultValue??o,setValue:i,dateValue:g,timeValue:S,setDateValue:ne,setTimeValue:pe,granularity:c,hasTime:h,...t,setOpen(J){!J&&!n&&g&&h&&fe(g,S||M1(e.defaultValue||e.placeholderValue)),t.setOpen(J)},validationState:V,isInvalid:Z,formatValue(J,ye){if(!m)return"";let Ae=Qo(ye,w);return new ra(J,Ae).format(m)},getDateFormatter(J,ye){let Ae={...w,...ye},j=Qo({},Ae);return new ra(J,j)}}}const wO=b.createContext(null),TO=b.createContext(null),NO=[Kd,Yu,yS,W0],MO=b.forwardRef(function(t,n){[t,n]=ua(t,n,wO);let{validationBehavior:i}=ad(KM)||{},o=t.validationBehavior??i??"native",u=AO({...t,validationBehavior:o}),c=b.useRef(null),[d,m]=cN(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:h,labelProps:y,fieldProps:g,buttonProps:E,dialogProps:S,calendarProps:D,descriptionProps:x,errorMessageProps:w,...R}=CO({...dN(t),label:m,validationBehavior:o},u,c),{focusProps:I,isFocused:A,isFocusVisible:L}=cl({within:!0}),M=la({...t,values:{state:u,isFocusWithin:A,isFocusVisible:L,isDisabled:t.isDisabled||!1,isInvalid:u.isInvalid,isOpen:u.isOpen,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),Z=sn(t,{global:!0});return delete Z.id,ve.createElement(Id,{values:[[TO,u],[Kd,{...h,ref:c,isInvalid:u.isInvalid}],[Px,g],[Yu,{...E,isPressed:u.isOpen}],[yS,{...y,ref:d,elementType:"span"}],[pd,D],[fy,u],[h2,{trigger:"DatePicker",triggerRef:c,placement:"bottom start",clearContexts:NO}],[y2,S],[W0,{slots:{description:x,errorMessage:w}}],[GM,R]]},ve.createElement(wn.div,{...pt(Z,M,I),ref:n,slot:t.slot||void 0,"data-focus-within":A||void 0,"data-invalid":u.isInvalid||void 0,"data-focus-visible":L||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0,"data-open":u.isOpen||void 0}),ve.createElement(tO,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:u}))});function ah(e){if(typeof e!="string"||e.trim()==="")return null;try{return _D(e)}catch{return null}}function RO(e){return{currentTarget:{value:e},target:{value:e}}}function O1({label:e,value:t,items:n,onChange:i,className:o}){return v.jsx("select",{className:`date-picker-select ${o??""}`,"aria-label":e,value:String(t),onChange:u=>i(Number(u.currentTarget.value)),children:n.map(u=>v.jsx("option",{value:u.id,children:u.formatted},u.id))})}function OO({id:e,label:t,hint:n,error:i,required:o,className:u,min:c,max:d,disabled:m,onChange:h,onFocus:y,onBlur:g,value:E,autoComplete:S,...D}){const x=b.useRef(null),w=ah(E),R=ah(c),I=ah(d),A=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,L=`${e}-label`,M=e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),Z=["form-field",M?`form-field--${M}`:null,u].filter(Boolean).join(" ");return v.jsxs("div",{className:Z,"data-field-id":e,children:[v.jsxs("span",{id:L,className:"form-label form-field__label",children:[t,o&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-red-600","aria-hidden":"true",children:[" ","*"]}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsxs(MO,{className:"date-picker",value:w,minValue:R??void 0,maxValue:I??void 0,isDisabled:m,isRequired:o,isInvalid:!!i,autoComplete:S,"aria-labelledby":L,"aria-describedby":A,onFocus:V=>y?.(V),onBlur:V=>g?.(V),onChange:V=>h?.(RO(V?V.toString():"")),children:[v.jsxs(VD,{className:`date-picker-group form-input ${i?"input-error":""}`,"data-input-id":e,"aria-describedby":A,"aria-invalid":!!i,"aria-labelledby":L,onClick:V=>{!m&&!V.target.closest("button")&&x.current?.click()},children:[v.jsx(SO,{className:"date-picker-input",children:V=>v.jsx($O,{className:"date-picker-segment",segment:V})}),v.jsx(Fp,{ref:x,className:"date-picker-button","aria-label":`Open calendar for ${t}`,type:"button",children:v.jsx("span",{"aria-hidden":"true",children:"▾"})})]}),v.jsx("input",{id:`${e}-value`,type:"hidden",value:E??"",disabled:m,...D,readOnly:!0}),v.jsx(YR,{className:"date-picker-popover",placement:"bottom start",offset:6,shouldFlip:!0,children:v.jsx(WR,{className:"date-picker-dialog",children:v.jsxs(PM,{className:"date-picker-calendar",children:[v.jsxs("header",{className:"date-picker-calendar-header",children:[v.jsx(Fp,{className:"date-picker-nav-button",slot:"previous",type:"button",children:"‹"}),v.jsxs("div",{className:"date-picker-selects",children:[v.jsx(VM,{format:"long",children:({"aria-label":V,value:fe,items:ne,onChange:pe})=>v.jsx(O1,{label:V,value:fe,items:ne,onChange:pe,className:"date-picker-select--month"})}),v.jsx(HM,{visibleYears:120,children:({"aria-label":V,value:fe,items:ne,onChange:pe})=>v.jsx(O1,{label:V,value:fe,items:ne,onChange:pe,className:"date-picker-select--year"})}),v.jsx(C8,{className:"sr-only"})]}),v.jsx(Fp,{className:"date-picker-nav-button",slot:"next",type:"button",children:"›"})]}),v.jsxs(IM,{className:"date-picker-grid",children:[v.jsx(PD,{children:V=>v.jsx(ID,{className:"date-picker-header-cell",children:V})}),v.jsx(FD,{children:V=>v.jsx(UM,{className:"date-picker-cell",date:V})})]})]})})})]}),n&&v.jsx("p",{id:`${e}-hint`,className:"form-field__hint mt-1 text-sm text-slate-500",children:n}),i&&v.jsx("p",{id:`${e}-error`,className:"form-field__error mt-1 text-sm text-red-600",children:i})]})}function ji({id:e,label:t,className:n,...i}){return v.jsxs("label",{className:`checkbox-card ${n||""}`,htmlFor:e,children:[v.jsx("input",{id:e,type:"checkbox",className:"checkbox-input",...i}),v.jsx("span",{className:"checkbox-label",children:t})]})}function kO({onChoose:e,isSubmitting:t=!1}){const[n,i]=b.useState(!1),o=!n||t;return v.jsxs("div",{className:"communications-consent","data-testid":"communications-consent",children:[v.jsx("h3",{className:"text-lg font-semibold text-text-primary mb-3",children:"Communications Consent"}),v.jsx(ji,{id:"communications-consent-checkbox",className:"communications-consent-checkbox",checked:n,onChange:u=>i(u.target.checked),disabled:t,label:"I consent to communications from Credify Corporation (licensed insurance agency) and my selected carrier(s) at the phone number and email address I provided. This covers: support (including AI agents), carrier quote and service contact, automated rate shopping at or before renewal, policy renewal notifications, claims management, and Credify's newsletter (which we may send by email, or by text message with a link to read it)."}),v.jsxs("div",{className:"text-sm text-slate-600 mt-4 space-y-2",children:[v.jsx("p",{children:"These may use automated systems, emails or texts. Message frequency varies. Message & data rates may apply. Reply STOP to opt out of SMS; Reply HELP for help."}),v.jsx("p",{children:"Consent is not required to receive quotes or purchase insurance."}),v.jsxs("p",{children:["Credify Corporation – Texas #3309669."," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","|"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"})]})]}),v.jsxs("div",{className:"grid grid-cols-1 gap-3 mt-6 sm:grid-cols-2",children:[v.jsxs("button",{type:"button","data-testid":"communications-consent-accept",onClick:()=>e(!0),disabled:o,className:["form-wizard-next-btn","h-12 rounded-full text-white font-bold transition","disabled:cursor-not-allowed","flex items-center justify-center gap-2",o?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[t&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"I Consent"]}),v.jsx("button",{type:"button","data-testid":"communications-consent-decline",onClick:()=>e(!1),disabled:t,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"I Do Not Consent"})]})]})}function BO({name:e,value:t,checked:n,onChange:i,children:o}){return v.jsxs("label",{className:"radio-card",children:[v.jsx("input",{className:"radio-input",type:"radio",name:e,value:t,checked:n,onChange:i}),v.jsx("span",{className:"radio-label",children:o})]})}function LO({legend:e,children:t,className:n,legendClassName:i,required:o}){return v.jsxs("fieldset",{className:n,children:[v.jsxs("legend",{className:`form-label mb-4 ${i||""}`,children:[e,o&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-red-600 ml-1","aria-hidden":"true",children:"*"}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:t})]})}function PO({id:e,label:t,hint:n,error:i,required:o,className:u,placeholder:c="Select an option",options:d=[],value:m,onValueChange:h,onFocus:y,onBlur:g,disabled:E,...S}){const D=b.useRef(null),x=b.useRef(null),w=b.useRef(null),[R,I]=b.useState(!1),[A,L]=b.useState(""),[M,Z]=b.useState(-1),[V,fe]=b.useState("bottom"),ne=Array.isArray(m)?String(m[0]??""):String(m??""),pe=d.find(F=>F.value===ne),J=`${e}-listbox`,ye=M>=0?`${e}-option-${M}`:void 0,Ae=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,j=b.useMemo(()=>{const F=A.trim().toLowerCase();return!F||pe?.label===A?d:d.filter(G=>G.label.toLowerCase().includes(F)||G.value.toLowerCase().includes(F))},[d,A,pe?.label]);b.useEffect(()=>{L(pe?.label??"")},[pe?.label]),b.useEffect(()=>{if(!R)return;const F=G=>{D.current&&!D.current.contains(G.target)&&(I(!1),Z(-1),L(pe?.label??""))};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[R,pe?.label]),b.useEffect(()=>{if(!R)return;const F=()=>{const G=x.current;if(!G)return;const C=G.getBoundingClientRect(),U=window.innerHeight||document.documentElement.clientHeight,W=w.current?.scrollHeight??0,Y=Math.min(W>0?W:256,U*.42,256),te=8,z=U-C.bottom-te,T=C.top-te;fe(z<Y&&T>z?"top":"bottom")};return F(),window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)}},[j.length,R]);const de=()=>{if(E)return;I(!0);const F=j.findIndex(G=>G.value===ne);Z(F>=0?F:-1)},k=F=>{F.disabled||(h?.(F.value),L(F.label),I(!1),Z(-1),x.current?.focus())},B=F=>{if(!E)switch(F.key){case"ArrowDown":if(F.preventDefault(),!R){de();return}Z(G=>Math.min(G+1,j.length-1));break;case"ArrowUp":if(F.preventDefault(),!R){de();return}Z(G=>G>0?G-1:-1);break;case"Enter":R&&M>=0&&j[M]&&(F.preventDefault(),k(j[M]));break;case"Escape":R&&(F.preventDefault(),I(!1),Z(-1),L(pe?.label??""));break}},X=F=>{g?.(F)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsxs("div",{ref:D,className:"combobox-wrapper",children:[v.jsx("input",{ref:x,id:e,className:`form-input combobox-input ${i?"input-error":""}`,value:A,placeholder:c,disabled:E,required:o,role:"combobox","aria-autocomplete":"list","aria-expanded":R&&j.length>0,"aria-controls":R&&j.length>0?J:void 0,"aria-activedescendant":ye,"aria-invalid":!!i,"aria-describedby":Ae,autoComplete:"off",onFocus:F=>{y?.(F),de()},onClick:de,onChange:F=>{L(F.currentTarget.value),I(!0),Z(-1)},onKeyDown:B,onBlur:X,...S,type:"text"}),v.jsx("span",{className:"combobox-caret","aria-hidden":"true"}),R&&v.jsx("div",{ref:w,id:J,className:"combobox-listbox","data-placement":V,role:"listbox",children:j.length>0?j.map((F,G)=>v.jsx("div",{id:`${e}-option-${G}`,className:"combobox-option","data-highlighted":G===M?"true":void 0,"data-selected":F.value===ne?"true":void 0,tabIndex:-1,role:"option","aria-selected":F.value===ne,"aria-disabled":F.disabled||void 0,onMouseDown:C=>C.preventDefault(),onMouseEnter:()=>Z(G),onClick:()=>k(F),children:F.label},`${F.value}-${G}`)):v.jsx("div",{className:"combobox-empty",role:"status",children:"No matches"})})]})})}function du({id:e,label:t,hint:n,error:i,required:o,className:u,placeholder:c,options:d,children:m,...h}){const y=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,g=!!m;if(!g){const{onChange:E,value:S,defaultValue:D,disabled:x,onFocus:w,onBlur:R,name:I,autoFocus:A}=h,L=S??D??"";return v.jsx(PO,{id:e,label:t,hint:n,error:i,required:o,className:u,placeholder:c,options:d,value:L,disabled:x,name:I,autoFocus:A,"aria-required":h["aria-required"],onFocus:w,onBlur:R,onValueChange:M=>{E?.({currentTarget:{value:M},target:{value:M}})}})}return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsxs("select",{id:e,className:`form-input select-caret ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":y,required:o,...h,children:[c&&v.jsx("option",{value:"",disabled:!0,selected:!("value"in h),children:c}),g?m:d?.map(E=>v.jsx("option",{value:E.value,disabled:E.disabled,children:E.label},E.value))]})})}var k1={apiKey:""};function IO(){try{typeof k1<"u"&&k1?.apiKey}catch{}return""}function FO(){return new Promise((e,t)=>{if(window.google?.maps?.places){e();return}const n=document.querySelector('script[src*="maps.googleapis.com"]');if(n){n.addEventListener("load",()=>e()),n.addEventListener("error",()=>t(new Error("Failed to load Google Maps script")));return}const i=IO();if(!i){t(new Error("Google Maps API key not configured"));return}const o=document.createElement("script");o.src=`https://maps.googleapis.com/maps/api/js?key=${i}&libraries=places`,o.async=!0,o.defer=!0,o.onload=()=>e(),o.onerror=()=>t(new Error("Failed to load Google Maps script")),document.head.appendChild(o)})}function jO(e){const t={fullAddress:e.formatted_address};return e.address_components&&e.address_components.forEach(n=>{const i=n.types;i.includes("street_number")&&(t.streetNumber=n.long_name),i.includes("route")&&(t.streetName=n.long_name),i.includes("locality")&&(t.city=n.long_name),i.includes("administrative_area_level_1")&&(t.state=n.short_name),i.includes("postal_code")&&(t.zipCode=n.long_name),i.includes("country")&&(t.country=n.short_name)}),t}function zO({id:e,label:t,hint:n,error:i,required:o,className:u,onChange:c,onPlaceSelect:d,value:m,...h}){const y=b.useRef(null),g=b.useRef(null),E=b.useRef(null),S=b.useRef(null),[D,x]=b.useState(!0),[w,R]=b.useState(m||""),[I,A]=b.useState([]),[L,M]=b.useState(!1),[Z,V]=b.useState(-1),fe=`${e}-suggestions`,ne=Z>=0?`${e}-suggestion-${Z}`:void 0,pe=b.useRef([]),J=b.useRef(!1),ye=b.useRef(-1);b.useEffect(()=>{pe.current=I},[I]),b.useEffect(()=>{J.current=L},[L]),b.useEffect(()=>{ye.current=Z},[Z]),b.useEffect(()=>{m!==void 0&&R(String(m))},[m]);const Ae=b.useRef(null);b.useEffect(()=>{if(!y.current)return;let B=!0;return FO().then(()=>{!B||!y.current||(g.current=new google.maps.places.AutocompleteService,E.current=new google.maps.places.PlacesService(document.createElement("div")),x(!1))}).catch(X=>{console.error("Error loading Google Maps:",X),x(!1)}),()=>{B=!1,Ae.current&&clearTimeout(Ae.current)}},[]);const j=B=>{const X=B.target.value;if(R(X),c?.(X),Ae.current&&clearTimeout(Ae.current),X.length<3){A([]),M(!1);return}Ae.current=setTimeout(()=>{g.current&&g.current.getPlacePredictions({input:X,types:["address"]},(F,G)=>{G===google.maps.places.PlacesServiceStatus.OK&&F?(A(F),M(!0),V(-1)):(A([]),M(!1))})},300)},de=B=>{if(!J.current||pe.current.length===0){B.key==="Escape"&&(M(!1),J.current=!1);return}switch(B.key){case"ArrowDown":B.preventDefault(),V(X=>{const F=X<pe.current.length-1?X+1:X;return ye.current=F,F});break;case"ArrowUp":B.preventDefault(),V(X=>{const F=X>0?X-1:-1;return ye.current=F,F});break;case"Enter":B.preventDefault(),ye.current>=0&&ye.current<pe.current.length&&k(pe.current[ye.current]);break;case"Escape":B.preventDefault(),M(!1),J.current=!1;break}};b.useEffect(()=>{const B=X=>{S.current&&!S.current.contains(X.target)&&y.current&&!y.current.contains(X.target)&&(M(!1),J.current=!1)};if(L)return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[L]);const k=B=>{E.current&&E.current.getDetails({placeId:B.place_id,fields:["address_components","formatted_address","geometry"]},(X,F)=>{if(F===google.maps.places.PlacesServiceStatus.OK&&X){const G=X.formatted_address||"";R(G),M(!1),A([]),J.current=!1;const C=jO(X);c?.(G,C),d?.(X)}})};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:u,children:v.jsxs("div",{className:"relative",children:[v.jsx("input",{ref:y,id:e,type:"text",className:`form-input ${i?"input-error":""}`,value:w,onChange:j,onKeyDown:de,role:"combobox","aria-autocomplete":"list","aria-expanded":L&&I.length>0,"aria-controls":L&&I.length>0?fe:void 0,"aria-activedescendant":ne,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,autoComplete:"street-address",placeholder:h.placeholder||"Enter an address",disabled:D||h.disabled,...h}),D&&v.jsx("p",{className:"mt-1 text-sm text-slate-500",role:"status","aria-live":"polite",children:"Loading address suggestions..."}),L&&I.length>0&&v.jsx("div",{id:fe,ref:S,className:"absolute z-50 w-full mt-1 bg-white border border-slate-200 rounded-lg shadow-lg max-h-60 overflow-y-auto",role:"listbox",children:I.map((B,X)=>v.jsxs("div",{id:`${e}-suggestion-${X}`,className:`px-4 py-3 cursor-pointer transition-colors ${X===Z?"bg-blue-50 text-slate-900":"bg-white text-slate-900 hover:bg-slate-50"} ${X<I.length-1?"border-b border-slate-100":""}`,role:"option","aria-selected":X===Z,onMouseDown:F=>F.preventDefault(),onClick:()=>k(B),onMouseEnter:()=>V(X),children:[v.jsx("div",{className:"font-medium text-slate-900",children:B.structured_formatting.main_text}),B.structured_formatting.secondary_text&&v.jsx("div",{className:"text-sm text-slate-500 mt-0.5",children:B.structured_formatting.secondary_text})]},B.place_id))})]})})}function py(e){const t=(n,i)=>n.map((o,u)=>{const c=i.length?i.join("__"):"root",d=o.key??`${c}__q${u}_${String(o.question).slice(0,24).replace(/\W+/g,"-")||"field"}`,h=(o.conditionals??[]).map((y,g)=>{const E=y.conditionalQuestions?t(y.conditionalQuestions,[...i,`${d}__c${g}`]):void 0;return{...y,conditionalQuestions:E}});return{...o,key:d,conditionals:h}});return t(e,[])}function se(e,t,n){function i(d,m){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,m);const h=c.prototype,y=Object.keys(h);for(let g=0;g<y.length;g++){const E=y[g];E in d||(d[E]=h[E].bind(d))}}const o=n?.Parent??Object;class u extends o{}Object.defineProperty(u,"name",{value:e});function c(d){var m;const h=n?.Parent?new u:this;i(h,d),(m=h._zod).deferred??(m.deferred=[]);for(const y of h._zod.deferred)y();return h}return Object.defineProperty(c,"init",{value:i}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>n?.Parent&&d instanceof n.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class Jo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Fx extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const jx={};function zi(e){return jx}function zx(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,o])=>t.indexOf(+i)===-1).map(([i,o])=>o)}function s0(e,t){return typeof t=="bigint"?t.toString():t}function hy(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function yy(e){return e==null}function gy(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function UO(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){const m=i.match(/\d?e-(\d?)/);m?.[1]&&(o=Number.parseInt(m[1]))}const u=n>o?n:o,c=Number.parseInt(e.toFixed(u).replace(".","")),d=Number.parseInt(t.toFixed(u).replace(".",""));return c%d/10**u}const B1=Symbol("evaluating");function mt(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==B1)return i===void 0&&(i=B1,i=n()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Wi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ei(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function L1(e){return JSON.stringify(e)}function HO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Ux="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const VO=hy(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Pu(e){if(gd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(gd(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Hx(e){return Pu(e)?{...e}:Array.isArray(e)?[...e]:e}const GO=new Set(["string","number","symbol"]);function ll(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ti(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Le(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ZO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const YO={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function qO(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const u=ei(e._zod.def,{get shape(){const c={};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(c[d]=n.shape[d])}return Wi(this,"shape",c),c},checks:[]});return ti(e,u)}function KO(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const u=ei(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete c[d]}return Wi(this,"shape",c),c},checks:[]});return ti(e,u)}function WO(e,t){if(!Pu(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const u=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(u,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=ei(e._zod.def,{get shape(){const u={...e._zod.def.shape,...t};return Wi(this,"shape",u),u}});return ti(e,o)}function QO(e,t){if(!Pu(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ei(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Wi(this,"shape",i),i}});return ti(e,n)}function JO(e,t){const n=ei(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Wi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return ti(e,n)}function XO(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=ei(t._zod.def,{get shape(){const d=t._zod.def.shape,m={...d};if(n)for(const h in n){if(!(h in d))throw new Error(`Unrecognized key: "${h}"`);n[h]&&(m[h]=e?new e({type:"optional",innerType:d[h]}):d[h])}else for(const h in d)m[h]=e?new e({type:"optional",innerType:d[h]}):d[h];return Wi(this,"shape",m),m},checks:[]});return ti(t,c)}function ek(e,t,n){const i=ei(t._zod.def,{get shape(){const o=t._zod.def.shape,u={...o};if(n)for(const c in n){if(!(c in u))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(u[c]=new e({type:"nonoptional",innerType:o[c]}))}else for(const c in o)u[c]=new e({type:"nonoptional",innerType:o[c]});return Wi(this,"shape",u),u}});return ti(t,i)}function Vo(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Vx(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Tc(e){return typeof e=="string"?e:e?.message}function Ui(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const o=Tc(e.inst?._zod.def?.error?.(e))??Tc(t?.error?.(e))??Tc(n.customError?.(e))??Tc(n.localeError?.(e))??"Invalid input";i.message=o}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function by(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Iu(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const Gx=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,s0,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Zx=se("$ZodError",Gx),Yx=se("$ZodError",Gx,{Parent:Error});function tk(e,t=n=>n.message){const n={},i=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:n}}function nk(e,t=n=>n.message){const n={_errors:[]},i=o=>{for(const u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c}));else if(u.code==="invalid_key")i({issues:u.issues});else if(u.code==="invalid_element")i({issues:u.issues});else if(u.path.length===0)n._errors.push(t(u));else{let c=n,d=0;for(;d<u.path.length;){const m=u.path[d];d===u.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(t(u))):c[m]=c[m]||{_errors:[]},c=c[m],d++}}};return i(e),n}const vy=e=>(t,n,i,o)=>{const u=i?Object.assign(i,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},u);if(c instanceof Promise)throw new Jo;if(c.issues.length){const d=new(o?.Err??e)(c.issues.map(m=>Ui(m,u,zi())));throw Ux(d,o?.callee),d}return c.value},_y=e=>async(t,n,i,o)=>{const u=i?Object.assign(i,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},u);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new(o?.Err??e)(c.issues.map(m=>Ui(m,u,zi())));throw Ux(d,o?.callee),d}return c.value},Xd=e=>(t,n,i)=>{const o=i?{...i,async:!1}:{async:!1},u=t._zod.run({value:n,issues:[]},o);if(u instanceof Promise)throw new Jo;return u.issues.length?{success:!1,error:new(e??Zx)(u.issues.map(c=>Ui(c,o,zi())))}:{success:!0,data:u.value}},rk=Xd(Yx),ef=e=>async(t,n,i)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let u=t._zod.run({value:n,issues:[]},o);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(c=>Ui(c,o,zi())))}:{success:!0,data:u.value}},ak=ef(Yx),ik=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vy(e)(t,n,o)},ok=e=>(t,n,i)=>vy(e)(t,n,i),lk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _y(e)(t,n,o)},uk=e=>async(t,n,i)=>_y(e)(t,n,i),sk=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Xd(e)(t,n,o)},ck=e=>(t,n,i)=>Xd(e)(t,n,i),dk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ef(e)(t,n,o)},fk=e=>async(t,n,i)=>ef(e)(t,n,i),mk=/^[cC][^\s-]{8,}$/,pk=/^[0-9a-z]+$/,hk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,yk=/^[0-9a-vA-V]{20}$/,gk=/^[A-Za-z0-9]{27}$/,bk=/^[a-zA-Z0-9_-]{21}$/,vk=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_k=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,P1=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ek=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Sk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dk(){return new RegExp(Sk,"u")}const $k=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,xk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ck=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ak=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qx=/^[A-Za-z0-9_-]*$/,Tk=/^\+[1-9]\d{6,14}$/,Kx="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Nk=new RegExp(`^${Kx}$`);function Wx(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Mk(e){return new RegExp(`^${Wx(e)}$`)}function Rk(e){const t=Wx({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Kx}T(?:${i})$`)}const Ok=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},kk=/^-?\d+$/,Bk=/^-?\d+(?:\.\d+)?$/,Lk=/^(?:true|false)$/i,Pk=/^[^A-Z]*$/,Ik=/^[^a-z]*$/,Tn=se("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qx={number:"number",bigint:"bigint",object:"date"},Jx=se("$ZodCheckLessThan",(e,t)=>{Tn.init(e,t);const n=Qx[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,u=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<u&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xx=se("$ZodCheckGreaterThan",(e,t)=>{Tn.init(e,t);const n=Qx[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,u=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>u&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fk=se("$ZodCheckMultipleOf",(e,t)=>{Tn.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):UO(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),jk=se("$ZodCheckNumberFormat",(e,t)=>{Tn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[o,u]=YO[t.format];e._zod.onattach.push(c=>{const d=c._zod.bag;d.format=t.format,d.minimum=o,d.maximum=u,n&&(d.pattern=kk)}),e._zod.check=c=>{const d=c.value;if(n){if(!Number.isInteger(d)){c.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?c.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):c.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}d<o&&c.issues.push({origin:"number",input:d,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),d>u&&c.issues.push({origin:"number",input:d,code:"too_big",maximum:u,inclusive:!0,inst:e,continue:!t.abort})}}),zk=se("$ZodCheckMaxLength",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const o=i.value;if(o.length<=t.maximum)return;const c=by(o);i.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Uk=se("$ZodCheckMinLength",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const o=i.value;if(o.length>=t.minimum)return;const c=by(o);i.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Hk=se("$ZodCheckLengthEquals",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=i=>{const o=i.value,u=o.length;if(u===t.length)return;const c=by(o),d=u>t.length;i.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),tf=se("$ZodCheckStringFormat",(e,t)=>{var n,i;Tn.init(e,t),e._zod.onattach.push(o=>{const u=o._zod.bag;u.format=t.format,t.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Vk=se("$ZodCheckRegex",(e,t)=>{tf.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Gk=se("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Pk),tf.init(e,t)}),Zk=se("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ik),tf.init(e,t)}),Yk=se("$ZodCheckIncludes",(e,t)=>{Tn.init(e,t);const n=ll(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(o=>{const u=o._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(i)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),qk=se("$ZodCheckStartsWith",(e,t)=>{Tn.init(e,t);const n=new RegExp(`^${ll(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Kk=se("$ZodCheckEndsWith",(e,t)=>{Tn.init(e,t);const n=new RegExp(`.*${ll(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),Wk=se("$ZodCheckOverwrite",(e,t)=>{Tn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Qk{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
83
- `).filter(c=>c),o=Math.min(...i.map(c=>c.length-c.trimStart().length)),u=i.map(c=>c.slice(o)).map(c=>" ".repeat(this.indent*2)+c);for(const c of u)this.content.push(c)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(u=>` ${u}`)];return new t(...n,o.join(`
84
- `))}}const Jk={major:4,minor:3,patch:6},kt=se("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jk;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const u of o._zod.onattach)u(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,d,m)=>{let h=Vo(c),y;for(const g of d){if(g._zod.def.when){if(!g._zod.def.when(c))continue}else if(h)continue;const E=c.issues.length,S=g._zod.check(c);if(S instanceof Promise&&m?.async===!1)throw new Jo;if(y||S instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await S,c.issues.length!==E&&(h||(h=Vo(c,E)))});else{if(c.issues.length===E)continue;h||(h=Vo(c,E))}}return y?y.then(()=>c):c},u=(c,d,m)=>{if(Vo(c))return c.aborted=!0,c;const h=o(d,i,m);if(h instanceof Promise){if(m.async===!1)throw new Jo;return h.then(y=>e._zod.parse(y,m))}return e._zod.parse(h,m)};e._zod.run=(c,d)=>{if(d.skipChecks)return e._zod.parse(c,d);if(d.direction==="backward"){const h=e._zod.parse({value:c.value,issues:[]},{...d,skipChecks:!0});return h instanceof Promise?h.then(y=>u(y,c,d)):u(h,c,d)}const m=e._zod.parse(c,d);if(m instanceof Promise){if(d.async===!1)throw new Jo;return m.then(h=>o(h,i,d))}return o(m,i,d)}}mt(e,"~standard",()=>({validate:o=>{try{const u=rk(e,o);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return ak(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),Ey=se("$ZodString",(e,t)=>{kt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ok(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),At=se("$ZodStringFormat",(e,t)=>{tf.init(e,t),Ey.init(e,t)}),Xk=se("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=_k),At.init(e,t)}),eB=se("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=P1(i))}else t.pattern??(t.pattern=P1());At.init(e,t)}),tB=se("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ek),At.init(e,t)}),nB=se("$ZodURL",(e,t)=>{At.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),o=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),rB=se("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Dk()),At.init(e,t)}),aB=se("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=bk),At.init(e,t)}),iB=se("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=mk),At.init(e,t)}),oB=se("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=pk),At.init(e,t)}),lB=se("$ZodULID",(e,t)=>{t.pattern??(t.pattern=hk),At.init(e,t)}),uB=se("$ZodXID",(e,t)=>{t.pattern??(t.pattern=yk),At.init(e,t)}),sB=se("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=gk),At.init(e,t)}),cB=se("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Rk(t)),At.init(e,t)}),dB=se("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Nk),At.init(e,t)}),fB=se("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Mk(t)),At.init(e,t)}),mB=se("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=vk),At.init(e,t)}),pB=se("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$k),At.init(e,t),e._zod.bag.format="ipv4"}),hB=se("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=xk),At.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),yB=se("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ck),At.init(e,t)}),gB=se("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ak),At.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[o,u]=i;if(!u)throw new Error;const c=Number(u);if(`${c}`!==u)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function e5(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const bB=se("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=wk),At.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{e5(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function vB(e){if(!qx.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return e5(n)}const _B=se("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=qx),At.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{vB(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),EB=se("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Tk),At.init(e,t)});function SB(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const o=JSON.parse(atob(i));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const DB=se("$ZodJWT",(e,t)=>{At.init(e,t),e._zod.check=n=>{SB(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),t5=se("$ZodNumber",(e,t)=>{kt.init(e,t),e._zod.pattern=e._zod.bag.pattern??Bk,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const u=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...u?{received:u}:{}}),n}}),$B=se("$ZodNumberFormat",(e,t)=>{jk.init(e,t),t5.init(e,t)}),xB=se("$ZodBoolean",(e,t)=>{kt.init(e,t),e._zod.pattern=Lk,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),CB=se("$ZodUnknown",(e,t)=>{kt.init(e,t),e._zod.parse=n=>n}),AB=se("$ZodNever",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function I1(e,t,n){e.issues.length&&t.issues.push(...Vx(n,e.issues)),t.value[n]=e.value}const wB=se("$ZodArray",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const u=[];for(let c=0;c<o.length;c++){const d=o[c],m=t.element._zod.run({value:d,issues:[]},i);m instanceof Promise?u.push(m.then(h=>I1(h,n,c))):I1(m,n,c)}return u.length?Promise.all(u).then(()=>n):n}});function bd(e,t,n,i,o){if(e.issues.length){if(o&&!(n in i))return;t.issues.push(...Vx(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function n5(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=ZO(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function r5(e,t,n,i,o,u){const c=[],d=o.keySet,m=o.catchall._zod,h=m.def.type,y=m.optout==="optional";for(const g in t){if(d.has(g))continue;if(h==="never"){c.push(g);continue}const E=m.run({value:t[g],issues:[]},i);E instanceof Promise?e.push(E.then(S=>bd(S,n,g,t,y))):bd(E,n,g,t,y)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:u}),e.length?Promise.all(e).then(()=>n):n}const TB=se("$ZodObject",(e,t)=>{if(kt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const m={...d};return Object.defineProperty(t,"shape",{value:m}),m}})}const i=hy(()=>n5(t));mt(e._zod,"propValues",()=>{const d=t.shape,m={};for(const h in d){const y=d[h]._zod;if(y.values){m[h]??(m[h]=new Set);for(const g of y.values)m[h].add(g)}}return m});const o=gd,u=t.catchall;let c;e._zod.parse=(d,m)=>{c??(c=i.value);const h=d.value;if(!o(h))return d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d;d.value={};const y=[],g=c.shape;for(const E of c.keys){const S=g[E],D=S._zod.optout==="optional",x=S._zod.run({value:h[E],issues:[]},m);x instanceof Promise?y.push(x.then(w=>bd(w,d,E,h,D))):bd(x,d,E,h,D)}return u?r5(y,h,d,m,i.value,e):y.length?Promise.all(y).then(()=>d):d}}),NB=se("$ZodObjectJIT",(e,t)=>{TB.init(e,t);const n=e._zod.parse,i=hy(()=>n5(t)),o=E=>{const S=new Qk(["shape","payload","ctx"]),D=i.value,x=A=>{const L=L1(A);return`shape[${L}]._zod.run({ value: input[${L}], issues: [] }, ctx)`};S.write("const input = payload.value;");const w=Object.create(null);let R=0;for(const A of D.keys)w[A]=`key_${R++}`;S.write("const newResult = {};");for(const A of D.keys){const L=w[A],M=L1(A),V=E[A]?._zod?.optout==="optional";S.write(`const ${L} = ${x(A)};`),V?S.write(`
82
+ }`.trim(),document.head.prepend(o);let c=y=>{if(!(y.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){y.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&y.preventDefault()}},d=y=>{let g=Pe(y),E=y.relatedTarget;E&&Op(E)?(E.focus({preventScroll:!0}),x1(E,Op(g))):E||g.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},m=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(y){let g=St(),E=g!=null&&Op(g);m.call(this,{...y,preventScroll:!0}),(!y||!y.preventScroll)&&x1(this,E)};let h=Pd(nh(document,"touchstart",i,{passive:!1,capture:!0}),nh(document,"touchmove",c,{passive:!1,capture:!0}),nh(document,"blur",d,!0));return()=>{e(),h(),o.remove(),HTMLElement.prototype.focus=m}}function Gc(e,t,n){let i=e.style[t];return e.style[t]=n,()=>{e.style[t]=i}}function nh(e,t,n,i){return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}function x1(e,t){t||!$s?C1(e):$s.addEventListener("resize",()=>C1(e),{once:!0})}function C1(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let i=Yd(n);if(i!==document.documentElement&&i!==document.body&&i!==n){let o=i.getBoundingClientRect(),s=n.getBoundingClientRect();if(s.top<o.top||s.bottom>o.top+n.clientHeight){let c=o.bottom;$s&&(c=Math.min(c,$s.offsetTop+$s.height));let d=s.top-o.top-((c-o.top)/2-s.height/2);i.scrollTo({top:Math.max(0,Math.min(i.scrollHeight-i.clientHeight,i.scrollTop+d)),behavior:"smooth"})}}n=i.parentElement}}function FR(e,t){let{triggerRef:n,popoverRef:i,groupRef:o,isNonModal:s,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d,...m}=e,h=m.trigger==="SubmenuTrigger",{overlayProps:y,underlayProps:g}=BR({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||h,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d},o??i),{overlayProps:E,arrowProps:S,placement:D,triggerAnchorPoint:x}=MR({...m,targetRef:n,overlayRef:i,isOpen:t.isOpen,onClose:s&&!h?t.close:null});return LR({isDisabled:s||!t.isOpen}),b.useEffect(()=>{if(t.isOpen&&i.current)return s?vR(o?.current??i.current):bR([o?.current??i.current],{shouldUseInert:!0})},[s,t.isOpen,i,o]),{popoverProps:pt(y,E),arrowProps:S,underlayProps:g,placement:D,triggerAnchorPoint:x}}var M$={};M$={dismiss:"تجاهل"};var R$={};R$={dismiss:"Отхвърляне"};var O$={};O$={dismiss:"Odstranit"};var k$={};k$={dismiss:"Luk"};var B$={};B$={dismiss:"Schließen"};var L$={};L$={dismiss:"Απόρριψη"};var P$={};P$={dismiss:"Dismiss"};var I$={};I$={dismiss:"Descartar"};var F$={};F$={dismiss:"Lõpeta"};var j$={};j$={dismiss:"Hylkää"};var z$={};z$={dismiss:"Rejeter"};var U$={};U$={dismiss:"התעלם"};var H$={};H$={dismiss:"Odbaci"};var V$={};V$={dismiss:"Elutasítás"};var G$={};G$={dismiss:"Ignora"};var Z$={};Z$={dismiss:"閉じる"};var Y$={};Y$={dismiss:"무시"};var q$={};q$={dismiss:"Atmesti"};var K$={};K$={dismiss:"Nerādīt"};var W$={};W$={dismiss:"Lukk"};var Q$={};Q$={dismiss:"Negeren"};var J$={};J$={dismiss:"Zignoruj"};var X$={};X$={dismiss:"Descartar"};var e2={};e2={dismiss:"Dispensar"};var t2={};t2={dismiss:"Revocare"};var n2={};n2={dismiss:"Пропустить"};var r2={};r2={dismiss:"Zrušiť"};var a2={};a2={dismiss:"Opusti"};var i2={};i2={dismiss:"Odbaci"};var o2={};o2={dismiss:"Avvisa"};var l2={};l2={dismiss:"Kapat"};var s2={};s2={dismiss:"Скасувати"};var u2={};u2={dismiss:"取消"};var c2={};c2={dismiss:"關閉"};var d2={};d2={"ar-AE":M$,"bg-BG":R$,"cs-CZ":O$,"da-DK":k$,"de-DE":B$,"el-GR":L$,"en-US":P$,"es-ES":I$,"et-EE":F$,"fi-FI":j$,"fr-FR":z$,"he-IL":U$,"hr-HR":H$,"hu-HU":V$,"it-IT":G$,"ja-JP":Z$,"ko-KR":Y$,"lt-LT":q$,"lv-LV":K$,"nb-NO":W$,"nl-NL":Q$,"pl-PL":J$,"pt-BR":X$,"pt-PT":e2,"ro-RO":t2,"ru-RU":n2,"sk-SK":r2,"sl-SI":a2,"sr-SP":i2,"sv-SE":o2,"tr-TR":l2,"uk-UA":s2,"zh-CN":u2,"zh-TW":c2};function jR(e){return e&&e.__esModule?e.default:e}function A1(e){let{onDismiss:t,...n}=e,i=Xa(jR(d2),"@react-aria/overlays"),o=Vs(n,i.format("dismiss")),s=()=>{t&&t()};return ve.createElement(t0,null,ve.createElement("button",{...o,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}function zR({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return ve.createElement(Z0.Provider,{value:t},e)}const UR=b.createContext({});function HR(){return b.useContext(UR)??{}}const f2=ve.createContext(null);function w1(e){let t=I0(),{portalContainer:n=t?null:document.body,isExiting:i}=e,[o,s]=b.useState(!1),c=b.useMemo(()=>({contain:o,setContain:s}),[o,s]),{getContainer:d}=HR();if(!e.portalContainer&&d&&(n=d()),!n)return null;let m=e.children;return e.disableFocusManagement||(m=ve.createElement(oR,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!i},m)),m=ve.createElement(f2.Provider,{value:c},ve.createElement(zR,null,m)),t8.createPortal(m,n)}function VR(){let t=b.useContext(f2)?.setContain;ct(()=>{t?.(!0)},[t])}function m2(e){let[t,n]=As(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=b.useCallback(()=>{n(!0)},[n]),o=b.useCallback(()=>{n(!1)},[n]),s=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:o,toggle:s}}function GR(e,t=!0){let[n,i]=b.useState(!0),o=n&&t;return ct(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let s of e.current.getAnimations())s instanceof CSSTransition&&s.cancel()},[e,o]),p2(e,o,b.useCallback(()=>i(!1),[])),o}function ZR(e,t){let[n,i]=b.useState(t?"open":"closed");switch(n){case"open":t||i("exiting");break;case"closed":case"exiting":t&&i("open");break}let o=n==="exiting";return p2(e,o,b.useCallback(()=>{i(s=>s==="exiting"?"closed":s)},[])),o}function p2(e,t,n){ct(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let i=e.current.getAnimations();if(i.length===0){n();return}let o=!1;return Promise.allSettled(i.map(s=>s.finished)).then(()=>{o||mS.flushSync(()=>{n()})}),()=>{o=!0}}},[e,t,n])}const h2=b.createContext(null),T1=b.createContext(null),YR=b.forwardRef(function(t,n){[t,n]=sa(t,n,h2);let i=b.useContext(fy),o=m2(t),s=t.isOpen!=null||t.defaultOpen!=null||!i?o:i,c=ZR(n,s.isOpen)||t.isExiting||!1,d=e8(),{direction:m}=sn();if(d){let h=t.children;return typeof h=="function"&&(h=h({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),ve.createElement(ve.Fragment,null,h)}return s&&!s.isOpen&&!c?null:ve.createElement(qR,{...t,triggerRef:t.triggerRef,state:s,popoverRef:n,isExiting:c,dir:m})});function qR({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:i,...o}){let s=b.useRef(null),c=b.useRef(null),d=b.useContext(T1),m=d&&o.trigger==="SubmenuTrigger",{popoverProps:h,underlayProps:y,arrowProps:g,placement:E,triggerAnchorPoint:S}=FR({...o,offset:o.offset??8,arrowRef:s,groupRef:m?d:c},e),D=o.popoverRef,x=GR(D,!!E)||o.isEntering||!1,w=la({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:E,isEntering:x,isExiting:t}}),R=!o.isNonModal||o.trigger==="SubmenuTrigger",[I,A]=b.useState(!1);ct(()=>{D.current&&A(R&&!D.current.querySelector("[role=dialog]"))},[D,R]),b.useEffect(()=>{I&&(o.trigger!=="SubmenuTrigger"||zd()!=="pointer")&&D.current&&!j0(D.current)&&ws(D.current)},[I,D,o.trigger]);let L=b.useMemo(()=>{let pe=w.children;if(i)for(let J of i)pe=ve.createElement(J.Provider,{value:null},pe);return pe},[w.children,i]),[M,Z]=b.useState(null),V=b.useCallback(()=>{o.triggerRef.current&&Z(o.triggerRef.current.getBoundingClientRect().width+"px")},[o.triggerRef]);ct(V,[V]),s0({ref:w.style?.["--trigger-width"]?void 0:o.triggerRef,onResize:V});let fe={...h.style,"--trigger-anchor-point":S?`${S.x}px ${S.y}px`:void 0,...w.style,"--trigger-width":w.style?.["--trigger-width"]||M},ne=ve.createElement(wn.div,{...pt(un(o,{global:!0}),h),...w,role:I?"dialog":void 0,tabIndex:I?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:D,slot:o.slot||void 0,style:fe,dir:o.dir,"data-trigger":o.trigger,"data-placement":E,"data-entering":x||void 0,"data-exiting":t||void 0},!o.isNonModal&&ve.createElement(A1,{onDismiss:e.close}),ve.createElement(yR.Provider,{value:{...g,placement:E,ref:s}},L),ve.createElement(A1,{onDismiss:e.close}));return m?ve.createElement(w1,{...o,shouldContainFocus:I,isExiting:t,portalContainer:n??d?.current??void 0},ne):ve.createElement(w1,{...o,shouldContainFocus:I,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&ve.createElement("div",{"data-testid":"underlay",...y,style:{position:"fixed",inset:0}}),ve.createElement("div",{ref:c,style:{display:"contents"}},ve.createElement(T1.Provider,{value:c},ne)))}function KR(e,t){let{role:n="dialog"}=e,i=rd();i=e["aria-label"]?void 0:i;let o=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!j0(t.current)){ws(t.current);let s=setTimeout(()=>{(St()===t.current||St()===document.body)&&(o.current=!0,t.current&&(t.current.blur(),ws(t.current)),o.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),VR(),b.useRef(!1),b.useEffect(()=>{}),{dialogProps:{...un(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||i,onBlur:s=>{o.current&&s.stopPropagation()}},titleProps:{id:i}}}const y2=b.createContext(null),fy=b.createContext(null),WR=b.forwardRef(function(t,n){let i=t["aria-labelledby"];[t,n]=sa(t,n,y2);let{dialogProps:o,titleProps:s}=KR({...t,"aria-labelledby":i},n),c=b.useContext(fy);!o["aria-label"]&&!o["aria-labelledby"]&&t["aria-labelledby"]&&(o["aria-labelledby"]=t["aria-labelledby"]);let d=la({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:c?.close||(()=>{})}}),m=un(t,{global:!0});return ve.createElement(wn.section,{...pt(m,d,o),render:t.render,ref:n,slot:t.slot||void 0},ve.createElement(Id,{values:[[K0,{slots:{[Oh]:{},title:{...s,level:2}}}],[Ys,{slots:{[Oh]:{},close:{onPress:()=>c?.close()}}}]]},d.children))});function QR(e){let t=hR({usage:"search",...e}),n=b.useCallback((s,c)=>c.length===0?!0:(s=s.normalize("NFC"),c=c.normalize("NFC"),t.compare(s.slice(0,c.length),c)===0),[t]),i=b.useCallback((s,c)=>c.length===0?!0:(s=s.normalize("NFC"),c=c.normalize("NFC"),t.compare(s.slice(-c.length),c)===0),[t]),o=b.useCallback((s,c)=>{if(c.length===0)return!0;s=s.normalize("NFC"),c=c.normalize("NFC");let d=0,m=c.length;for(;d+m<=s.length;d++){let h=s.slice(d,d+m);if(t.compare(c,h)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:i,contains:o}),[n,i,o])}const JR=["day","month","year"],XR={hour:1,minute:2,second:3};function eO(e,t){let{autoComplete:n,isDisabled:i,name:o}=e,{visuallyHiddenProps:s}=LD({style:{position:"fixed",top:0,left:0}}),c=60;t.granularity==="second"?c=1:t.granularity==="hour"&&(c=3600);let d="";t.value&&(t.granularity==="day"?d=mn(t.value).toString():d=oa("timeZone"in t.value?U8(t.value):t.value).toString());let m=t.granularity==="day"?"date":"datetime-local",h=["hour","minute","second"],y=0;return h.includes(t.granularity)&&(y=XR[t.granularity],h=h.slice(0,y)),{containerProps:{...s,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:i,type:m,form:"",name:o,step:c,value:d,onChange:g=>{let E=Pe(g).value.toString();if(E)try{let S=Q8(E);if(t.granularity==="day"&&(S=_D(E)),"setSegment"in t)for(let D in S)JR.includes(D)&&t.setSegment(D,S[D]),h.includes(D)&&t.setSegment(D,S[D]);t.setValue(S)}catch{}}}}}function tO(e){let{state:t}=e,{containerProps:n,inputProps:i}=eO({...e},t);return ve.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},ve.createElement("input",i))}var g2={};g2={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var b2={};b2={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var v2={};v2={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var _2={};_2={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var E2={};E2={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var S2={};S2={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var D2={};D2={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var $2={};$2={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var x2={};x2={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var C2={};C2={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var A2={};A2={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var w2={};w2={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var T2={};T2={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var N2={};N2={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var M2={};M2={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var R2={};R2={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var O2={};O2={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var k2={};k2={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var B2={};B2={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var L2={};L2={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var P2={};P2={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var I2={};I2={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var F2={};F2={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var j2={};j2={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var z2={};z2={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var U2={};U2={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var H2={};H2={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var V2={};V2={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var G2={};G2={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var Z2={};Z2={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var Y2={};Y2={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var q2={};q2={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var K2={};K2={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var W2={};W2={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Qd={};Qd={"ar-AE":g2,"bg-BG":b2,"cs-CZ":v2,"da-DK":_2,"de-DE":E2,"el-GR":S2,"en-US":D2,"es-ES":$2,"et-EE":x2,"fi-FI":C2,"fr-FR":A2,"he-IL":w2,"hr-HR":T2,"hu-HU":N2,"it-IT":M2,"ja-JP":R2,"ko-KR":O2,"lt-LT":k2,"lv-LV":B2,"nb-NO":L2,"nl-NL":P2,"pl-PL":I2,"pt-BR":F2,"pt-PT":j2,"ro-RO":z2,"ru-RU":U2,"sk-SK":H2,"sl-SI":V2,"sr-SP":G2,"sv-SE":Z2,"tr-TR":Y2,"uk-UA":q2,"zh-CN":K2,"zh-TW":W2};function Q2(e,t,n){let{direction:i}=sn(),o=b.useMemo(()=>cy(t),[t]),s=m=>{if(ot(m.currentTarget,Pe(m))&&(m.altKey&&(m.key==="ArrowDown"||m.key==="ArrowUp")&&"setOpen"in e&&(m.preventDefault(),m.stopPropagation(),e.setOpen(!0)),!n))switch(m.key){case"ArrowLeft":if(m.preventDefault(),m.stopPropagation(),i==="rtl"){if(t.current){let h=Pe(m),y=N1(t.current,h.getBoundingClientRect().left,-1);y&&y.focus()}}else o.focusPrevious();break;case"ArrowRight":if(m.preventDefault(),m.stopPropagation(),i==="rtl"){if(t.current){let h=Pe(m),y=N1(t.current,h.getBoundingClientRect().left,1);y&&y.focus()}}else o.focusNext();break}},c=()=>{if(!t.current)return;let m=window.event?Pe(window.event):null,h=An(t.current,{tabbable:!0});if(m&&(h.currentNode=m,m=h.previousNode()),!m){let y;do y=h.lastChild(),y&&(m=y);while(y)}for(;m?.hasAttribute("data-placeholder");){let y=h.previousNode();if(y&&y.hasAttribute("data-placeholder"))m=y;else break}m&&m.focus()},{pressProps:d}=Y0({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(m){m.pointerType==="mouse"&&c()},onPress(m){(m.pointerType==="touch"||m.pointerType==="pen")&&c()}});return pt(d,{onKeyDown:s})}function N1(e,t,n){let i=An(e,{tabbable:!0}),o=i.nextNode(),s=null,c=1/0;for(;o;){let m=o.getBoundingClientRect().left-t,h=Math.abs(m);Math.sign(m)===n&&h<c&&(s=o,c=h),o=i.nextNode()}return s}function nO(e){return e&&e.__esModule?e.default:e}const J2=new WeakMap,Zc="__reactAriaDateFieldRole",rO="__reactAriaDateFieldFocusManager";function aO(e,t,n){let{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:m,errorMessageProps:h}=HD({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),y=b.useRef(null),{focusWithinProps:g}=Gs({...e,onFocusWithin(ne){y.current=t.value,e.onFocus?.(ne)},onBlurWithin:ne=>{t.confirmPlaceholder(),t.value!==y.current&&t.commitValidation(),e.onBlur?.(ne)},onFocusWithinChange:e.onFocusChange}),E=Xa(nO(Qd),"@react-aria/datepicker"),S=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",D=t.maxGranularity==="hour"?"time":"date",x=t.value?E.format(S,{[D]:t.formatValue({month:"long"})}):"",w=uy(x),R=e[Zc]==="presentation"?d["aria-describedby"]:[w["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,I=e[rO],A=b.useMemo(()=>I||cy(n),[I,n]),L=Q2(t,n,e[Zc]==="presentation");J2.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:R,focusManager:A});let M=b.useRef(e.autoFocus),Z;e[Zc]==="presentation"?Z={role:"presentation"}:Z=pt(d,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":R}),b.useEffect(()=>{M.current&&A.focusFirst(),M.current=!1},[A]),WM(e.inputRef,t.defaultValue,t.setValue),QM({...e,focus(){A.focusFirst()}},t,e.inputRef);let V={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(V.type="text",V.hidden=!0,V.required=e.isRequired,V.onChange=()=>{});let fe=un(e);return{labelProps:{...c,onClick:()=>{A.focusFirst()}},fieldProps:pt(fe,Z,L,g,{onKeyDown(ne){e.onKeyDown&&e.onKeyDown(ne)},onKeyUp(ne){e.onKeyUp&&e.onKeyUp(ne)},style:{unicodeBidi:"isolate"}}),inputProps:V,descriptionProps:m,errorMessageProps:h,isInvalid:i,validationErrors:o,validationDetails:s}}function iO(e){return e&&e.__esModule?e.default:e}function oO(){let{locale:e}=sn(),t=lS(iO(Qd),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new lO(e,t)}},[e,t])}class lO{constructor(t,n){this.locale=t,this.dictionary=n}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function sO(e,t,n){let i=b.useRef(""),{locale:o,direction:s}=sn(),c=oO(),{ariaLabel:d,ariaLabelledBy:m,ariaDescribedBy:h,focusManager:y}=J2.get(t),g=e.isPlaceholder?"":e.text,E=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),S=or({month:"long",timeZone:E.timeZone}),D=or({hour:"numeric",hour12:E.hour12,timeZone:E.timeZone});if(e.type==="month"&&!e.isPlaceholder){let G=S.format(t.dateValue);g=G!==g?`${g} – ${G}`:G}else e.type==="hour"&&!e.isPlaceholder&&(g=D.format(t.dateValue));let{spinButtonProps:x}=aR({value:e.value??void 0,textValue:g,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{i.current="",t.increment(e.type)},onDecrement:()=>{i.current="",t.decrement(e.type)},onIncrementPage:()=>{i.current="",t.incrementPage(e.type)},onDecrementPage:()=>{i.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{i.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{i.current="",t.decrementToMin(e.type)}}),w=b.useMemo(()=>new bS(o,{maximumFractionDigits:0}),[o]),R=()=>{if(e.text===e.placeholder&&y.focusPrevious(),w.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let G=e.text.slice(0,-1),C=w.parse(G);G=C===0?"":G,G.length===0||C===0?t.clearSegment(e.type):t.setSegment(e.type,C),i.current=G}else(e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type)},I=G=>{if(G.key==="a"&&(il()?G.metaKey:G.ctrlKey)&&G.preventDefault(),!(G.ctrlKey||G.metaKey||G.shiftKey||G.altKey))switch(G.key){case"Backspace":case"Delete":G.preventDefault(),G.stopPropagation(),R();break}},{startsWith:A}=QR({sensitivity:"base"}),L=or({hour:"numeric",hour12:!0}),M=b.useMemo(()=>{let G=new Date;return G.setHours(0),L.formatToParts(G).find(C=>C.type==="dayPeriod").value},[L]),Z=b.useMemo(()=>{let G=new Date;return G.setHours(12),L.formatToParts(G).find(C=>C.type==="dayPeriod").value},[L]),V=or({year:"numeric",era:"narrow",timeZone:"UTC"}),fe=b.useMemo(()=>{if(e.type!=="era")return[];let G=Et(new Ot(1,1,1),t.calendar),C=t.calendar.getEras().map(W=>{let Y=G.set({year:1,month:1,day:1,era:W}).toDate("UTC"),z=V.formatToParts(Y).find(T=>T.type==="era").value;return{era:W,formatted:z}}),U=uO(C.map(W=>W.formatted));if(U)for(let W of C)W.formatted=W.formatted.slice(U);return C},[V,t.calendar,e.type]),ne=G=>{if(t.isDisabled||t.isReadOnly)return;let C=i.current+G;switch(e.type){case"dayPeriod":if(A(M,G))t.setSegment("dayPeriod",0);else if(A(Z,G))t.setSegment("dayPeriod",1);else break;y.focusNext();break;case"era":{let U=fe.find(W=>A(W.formatted,G));U&&(t.setSegment("era",U.era),y.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!w.isValidPartialNumber(C))return;let U=w.parse(C),W=U;if(e.maxValue!==void 0&&U>e.maxValue&&(W=w.parse(G)),isNaN(U))return;t.setSegment(e.type,W),e.maxValue!==void 0&&(+(U+"0")>e.maxValue||C.length>=String(e.maxValue).length)?(i.current="",y.focusNext()):i.current=C;break}}},pe=()=>{i.current="",n.current&&BD(n.current,{containingElement:Yd(n.current)}),window.getSelection()?.collapse(n.current)},J=b.useRef(typeof document<"u"?document:null);kp(J,"selectionchange",()=>{let G=window.getSelection();G?.anchorNode&&ot(n.current,G?.anchorNode)&&G.collapse(n.current)});let ye=b.useRef("");kp(n,"beforeinput",G=>{if(n.current)switch(G.preventDefault(),G.inputType){case"deleteContentBackward":case"deleteContentForward":w.isValidPartialNumber(e.text)&&!t.isReadOnly&&R();break;case"insertCompositionText":ye.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:G.data!=null&&ne(G.data);break}}),kp(n,"input",G=>{let{inputType:C,data:U}=G;switch(C){case"insertCompositionText":n.current&&(n.current.textContent=ye.current),U!=null&&(A(M,U)||A(Z,U))&&ne(U);break}}),ct(()=>{let G=n.current;return()=>{St()===G&&(y.focusPrevious()||y.focusNext())}},[n,y]);let Ae=Hs()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},j=b.useMemo(()=>t.segments.find(G=>G.isEditable),[t.segments]);e!==j&&!t.isInvalid&&(h=void 0);let de=Ar(),k=!t.isDisabled&&!t.isReadOnly&&e.isEditable,B=e.type==="literal"?"":c.of(e.type),X=Vs({"aria-label":`${B}${d?`, ${d}`:""}${m?", ":""}`,"aria-labelledby":m});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if(s==="rtl"){F.unicodeBidi="embed";let G=E[e.type];(G==="numeric"||G==="2-digit")&&(F.direction="ltr")}return{segmentProps:pt(x,X,{id:de,...Ae,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":h,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:k,suppressContentEditableWarning:k,spellCheck:k?"false":void 0,autoCorrect:k?"off":void 0,[parseInt(ve.version,10)>=17?"enterKeyHint":"enterkeyhint"]:k?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!k?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:I,onFocus:pe,style:F,onPointerDown(G){G.stopPropagation()},onMouseDown(G){G.stopPropagation()}})}}function uO(e){e.sort();let t=e[0],n=e[e.length-1];for(let i=0;i<t.length;i++)if(t[i]!==n[i])return i;return 0}var X2={};X2={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var ex={};ex={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var tx={};tx={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var nx={};nx={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var rx={};rx={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var ax={};ax={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var ix={};ix={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var ox={};ox={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var lx={};lx={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var sx={};sx={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var ux={};ux={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var cx={};cx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var dx={};dx={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var fx={};fx={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var mx={};mx={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var px={};px={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var hx={};hx={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var yx={};yx={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var gx={};gx={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var bx={};bx={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var vx={};vx={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var _x={};_x={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Ex={};Ex={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Sx={};Sx={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Dx={};Dx={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var $x={};$x={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var xx={};xx={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Cx={};Cx={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var Ax={};Ax={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var wx={};wx={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var Tx={};Tx={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Nx={};Nx={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Mx={};Mx={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var Rx={};Rx={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var Ox={};Ox={"ar-AE":X2,"bg-BG":ex,"cs-CZ":tx,"da-DK":nx,"de-DE":rx,"el-GR":ax,"en-US":ix,"es-ES":ox,"et-EE":lx,"fi-FI":sx,"fr-FR":ux,"he-IL":cx,"hr-HR":dx,"hu-HU":fx,"it-IT":mx,"ja-JP":px,"ko-KR":hx,"lt-LT":yx,"lv-LV":gx,"nb-NO":bx,"nl-NL":vx,"pl-PL":_x,"pt-BR":Ex,"pt-PT":Sx,"ro-RO":Dx,"ru-RU":$x,"sk-SK":xx,"sl-SI":Cx,"sr-SP":Ax,"sv-SE":wx,"tr-TR":Tx,"uk-UA":Nx,"zh-CN":Mx,"zh-TW":Rx};function cO(e){return e&&e.__esModule?e.default:e}const dO=new Ki(cO(Ox));function fO(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function kx(e,t,n,i,o){let s=e!=null&&n!=null&&e.compare(n)>0,c=e!=null&&t!=null&&e.compare(t)<0,d=e!=null&&i?.(e)||!1,m=s||c||d,h=[];if(m){let y=fO(),g=Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||dO,E=new oS(y,g),S=new ra(y,Qo({},o)),D=S.resolvedOptions().timeZone;c&&t!=null&&h.push(E.format("rangeUnderflow",{minValue:S.format(t.toDate(D))})),s&&n!=null&&h.push(E.format("rangeOverflow",{maxValue:S.format(n.toDate(D))})),d&&h.push(E.format("unavailableDate"))}return{isInvalid:m,validationErrors:h,validationDetails:{badInput:d,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:c,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!m}}}const mO={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},pO={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Qo(e,t){e={...t.shouldForceLeadingZeros?pO:mO,...e};let i=t.granularity||"minute",o=Object.keys(e),s=o.indexOf(t.maxGranularity??"year");s<0&&(s=0);let c=o.indexOf(i);if(c<0&&(c=2),s>c)throw new Error("maxGranularity must be greater than granularity");let d=o.slice(s,c+1).reduce((h,y)=>(h[y]=e[y],h),{});return t.hourCycle!=null&&(d.hour12=t.hourCycle===12),d.timeZone=t.timeZone||"UTC",(i==="hour"||i==="minute"||i==="second")&&t.timeZone&&!t.hideTimeZone&&(d.timeZoneName="short"),t.showEra&&s===0&&(d.era="short"),d}function M1(e){return e&&"hour"in e?e:new ay}function Bx(e,t){if(e===null)return null;if(e)return Et(e,t)}function hO(e,t,n,i){if(e)return Bx(e,n);let o=Et(rD(i??Gd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?mn(o):i?o:oa(o)}function Lx(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,i=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,s]=b.useState([i,n]);e&&(o[0]!==i||o[1]!==n)&&s([i,n]),t||(t=e?i:o[0]);let c=e?n:o[1];return[t,c]}const yO=new Ki({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function gO(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?yO.getStringForLocale(e,n):"––"}class $r{constructor(t,n,i){if(this.era=i?.era??null,this.calendar=t,this.year=i?.year??null,this.month=i?.month??null,this.day=i?.day??null,this.hour=i?.hour??null,this.hourCycle=n,this.dayPeriod=null,this.minute=i?.minute??null,this.second=i?.second??null,this.millisecond=i?.millisecond??null,this.offset="offset"in(i??{})?i.offset:null,this.hour!=null){let[o,s]=Io(this.hour,n);this.dayPeriod=o,this.hour=s}}copy(){let t=new $r(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(n=>this[n]!=null)}validate(t,n){return n.every(i=>{if((i==="hour"||i==="dayPeriod")&&"hour"in t){let[o,s]=Io(t.hour,this.hourCycle);return this.dayPeriod===o&&this.hour===s}return this[i]===t[i]})}isCleared(t){return t.every(n=>this[n]===null)}set(t,n,i){let o=this.copy();return o[t]=n,t==="hour"&&o.dayPeriod==null&&"hour"in i&&(o.dayPeriod=Io(i.hour,this.hourCycle)[0]),t==="year"&&o.era==null&&(o.era=i.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(o.offset=null),o}clear(t){let n=this.copy();return n[t]=null,t==="year"&&(n.era=null),n.offset=null,n}cycle(t,n,i,o){let s=this.copy();if(s[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in i){let[c,d]=Io(i.hour,this.hourCycle);s.dayPeriod=c,s.hour=d}else s[t]=i[t];return t==="year"&&s.era==null&&(s.era=i.era),s}switch(t){case"era":{let c=this.calendar.getEras(),d=c.indexOf(s.era);d=Di(d,n,0,c.length-1),s.era=c[d];break}case"year":{let c=new Ot(this.calendar,this.era??i.era,this.year??i.year,this.month??1,this.day??1);c=c.cycle(t,n,{round:t==="year"}),s.era=c.era,s.year=c.year;break}case"month":s.month=Di(s.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":s.day=Di(s.day??1,n,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let c=o.some(d=>["year","month","day"].includes(d));if("timeZone"in i&&(!c||s.year!=null&&s.month!=null&&s.day!=null)){let d=this.toValue(i);d=d.cycle("hour",n,{hourCycle:this.hourCycle==="h12"?12:24,round:!1});let[m,h]=Io(d.hour,this.hourCycle);s.hour=h,s.dayPeriod=m,s.offset=d.offset}else{let d=s.hour??0,m=this.getSegmentLimits("hour");s.hour=Di(d,n,m.minValue,m.maxValue),s.dayPeriod==null&&"hour"in i&&(s.dayPeriod=Io(i.hour,this.hourCycle)[0])}break}case"dayPeriod":s.dayPeriod=Di(s.dayPeriod??0,n,0,1);break;case"minute":s.minute=Di(s.minute??0,n,0,59,!0);break;case"second":s.second=Di(s.second??0,n,0,59,!0);break}return s}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=bO(n,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(n=this.dayPeriod===1?12:0);let i=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:n??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return"offset"in i&&this.offset!=null&&i.offset!==this.offset&&(i=i.add({milliseconds:i.offset-this.offset})),i}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case"era":{let n=this.calendar.getEras();return{value:this.era!=null?n.indexOf(this.era):n.length-1,minValue:0,maxValue:n.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let n=0,i=23;return this.hourCycle==="h12"?(n=1,i=12):this.hourCycle==="h11"&&(n=0,i=11),{value:this.hour,minValue:n,maxValue:i}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function Di(e,t,n,i,o=!1){if(o){e+=Math.sign(t),e<n&&(e=i);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>i&&(e=n)}else e+=t,e<n?e=i-(n-e-1):e>i&&(e=n+(e-i-1));return e}function Io(e,t){let n=e>=12?1:0;switch(t){case"h11":e>=12&&(e-=12);break;case"h12":e===0?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}function bO(e,t,n){switch(n){case"h11":t===1&&(e+=12);break;case"h12":e===12&&(e=0),t===1&&(e+=12);break;case"h24":e-=1;break}return e}const rh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},R1={year:5,month:2,day:7,hour:2,minute:15,second:15},vO={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function _O(e){let{locale:t,createCalendar:n,hideTimeZone:i,isDisabled:o=!1,isReadOnly:s=!1,isRequired:c=!1,minValue:d,maxValue:m,isDateUnavailable:h}=e,y=e.value||e.defaultValue||e.placeholderValue||null,[g,E]=Lx(y,e.granularity),S=E||"UTC";if(y&&!(g in y))throw new Error("Invalid granularity "+g+" for value "+y.toString());let[D,x]=b.useMemo(()=>{let N=new ra(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return[n(N.calendar),N.hourCycle]},[t,e.hourCycle,n]),[w,R]=As(e.value,e.defaultValue??null,e.onChange),[I]=b.useState(w),A=b.useMemo(()=>Bx(w,D)??null,[w,D]),[L,M]=b.useState(()=>new $r(D,x,A)),Z=D.identifier==="gregory"&&L.era==="BC",V=b.useMemo(()=>({granularity:g,maxGranularity:e.maxGranularity??"year",timeZone:E,hideTimeZone:i,hourCycle:e.hourCycle,showEra:Z,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,g,e.hourCycle,e.shouldForceLeadingZeros,E,i,Z]),fe=b.useMemo(()=>Qo({},V),[V]),ne=b.useMemo(()=>new ra(t,fe),[t,fe]),pe=b.useMemo(()=>ne.resolvedOptions(),[ne]),J=b.useMemo(()=>hO(e.placeholderValue,g,D,E),[e.placeholderValue,g,D,E]),ye=b.useMemo(()=>{let T=x==="h11"||x==="h12",N=["era","year","month","day","hour",...T?["dayPeriod"]:[],"minute","second"],ie=N.indexOf(e.maxGranularity||"era"),ge=N.indexOf(g==="hour"&&T?"dayPeriod":g);return N.slice(ie,ge+1)},[e.maxGranularity,g,x]),[Ae,j]=b.useState(A),[de,k]=b.useState(D),[B,X]=b.useState(x);(A!==Ae||x!==B||!Vd(D,de))&&(L=new $r(D,x,A),j(A),k(D),X(x),M(L));let F=T=>{if(!(e.isDisabled||e.isReadOnly))if(T==null||T instanceof $r&&T.isCleared(ye))M(new $r(D,x,A)),R(null);else if(!(T instanceof $r))T=Et(T,y?.calendar||new pn),M(new $r(D,x,A)),R(T);else{if(T.isComplete(ye)){let N=T.toValue(A??J);if(T.validate(N,ye)){let ie=Et(N,y?.calendar||new pn);if(!w||ie.compare(w)!==0){M(new $r(D,x,A)),R(ie);return}}}M(T)}},G=b.useMemo(()=>L.toValue(A??J).toDate(S),[L,S,A,J]),C=b.useMemo(()=>EO(G,L,ne,pe,D,t,g),[G,ne,pe,L,D,t,g]),U=(T,N)=>{F(L.cycle(T,N,J,ye))},W=b.useMemo(()=>kx(w,d,m,h,V),[w,d,m,h,V]),Y=UD({...e,value:w,builtinValidation:W}),te=Y.displayValidation.isInvalid,z=e.validationState||(te?"invalid":null);return{...Y,value:A,defaultValue:e.defaultValue??I,dateValue:G,calendar:D,setValue:F,segments:C,dateFormatter:ne,validationState:z,isInvalid:te,granularity:g,maxGranularity:e.maxGranularity??"year",isDisabled:o,isReadOnly:s,isRequired:c,increment(T){U(T,1)},decrement(T){U(T,-1)},incrementPage(T){U(T,R1[T]||1)},decrementPage(T){U(T,-(R1[T]||1))},incrementToMax(T){let N=T==="hour"&&x==="h12"?11:L.getSegmentLimits(T).maxValue;F(L.set(T,N,J))},decrementToMin(T){let N=T==="hour"&&x==="h12"?12:L.getSegmentLimits(T).minValue;F(L.set(T,N,J))},setSegment(T,N){F(L.set(T,N,J))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&L.isComplete(ye)){let T=L.toValue(A??J),N=Et(T,y?.calendar||new pn);(!w||N.compare(w)!==0)&&R(N),M(new $r(D,x,A))}},clearSegment(T){let N=L;T!=="timeZoneName"&&T!=="literal"&&(N=L.clear(T)),F(N)},formatValue(T){if(!A)return"";let N=Qo(T,V);return new ra(t,N).format(G)},getDateFormatter(T,N){let ie={...V,...N},ge=Qo({},ie);return new ra(T,ge)}}}function EO(e,t,n,i,o,s,c){let d=["hour","minute","second"],m=n.formatToParts(e),h=new Hh(s,{useGrouping:!1}),y=new Hh(s,{useGrouping:!1,minimumIntegerDigits:2});for(let E of m)if(E.type==="year"||E.type==="month"||E.type==="day"||E.type==="hour"){let S=t[E.type]??0;i[E.type]==="2-digit"?E.value=y.format(S):E.value=h.format(S)}let g=[];for(let E of m){let S=vO[E.type]||E.type,D=rh[S];S==="era"&&o.getEras().length===1&&(D=!1);let x=rh[S]&&t[E.type]==null,w=rh[S]?gO(S,E.value,s):null,R={type:S,text:x?w:E.value,...t.getSegmentLimits(S),isPlaceholder:x,placeholder:w,isEditable:D};S==="hour"?(g.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),g.push(R),S===c&&g.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(S)&&S===c?(g.push(R),g.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):g.push(R)}return g}const Px=b.createContext(null),Jd=b.createContext(null),my=b.createContext(null),SO=b.forwardRef(function(t,n){let i=b.useContext(Jd),o=b.useContext(my);return i||o?ve.createElement(Ix,{...t,ref:n}):ve.createElement(DO,{...t,ref:n})}),DO=b.forwardRef((e,t)=>{let[n,i]=sa({slot:e.slot},t,Px),{locale:o}=sn(),s=_O({...n,locale:o,createCalendar:RD}),c=b.useRef(null),{fieldProps:d,inputProps:m}=aO({...n,inputRef:c},s,i);return ve.createElement(Id,{values:[[Jd,s],[GD,{...m,ref:c}],[Kd,{...d,ref:i,isInvalid:s.isInvalid,isDisabled:s.isDisabled}]]},ve.createElement(Ix,e))}),Ix=b.forwardRef((e,t)=>{let{className:n,children:i}=e,o=b.useContext(Jd),s=b.useContext(my),c=o??s;return ve.createElement(ve.Fragment,null,ve.createElement(VD,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isReadOnly:c.isReadOnly,isInvalid:c.isInvalid,isDisabled:c.isDisabled},c.segments.map((d,m)=>b.cloneElement(i(d),{key:m}))),ve.createElement(nR,{className:""}))}),$O=b.forwardRef(function({segment:t,...n},i){let o=b.useContext(Jd),s=b.useContext(my),c=o??s,d=GE(i),{segmentProps:m}=sO(t,c,d),{focusProps:h,isFocused:y,isFocusVisible:g}=cl(),{hoverProps:E,isHovered:S}=Zs({...n,isDisabled:c.isDisabled||t.type==="literal"}),D=la({...n,values:{...t,isReadOnly:c.isReadOnly,isInvalid:c.isInvalid,isDisabled:c.isDisabled,isHovered:S,isFocused:y,isFocusVisible:g},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return ve.createElement(wn.span,{...pt(un(n,{global:!0}),m,h,E),...D,style:m.style,ref:d,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":c.isInvalid||void 0,"data-readonly":c.isReadOnly||void 0,"data-disabled":c.isDisabled||void 0,"data-type":t.type,"data-hovered":S||void 0,"data-focused":y||void 0,"data-focus-visible":g||void 0})});function xO(e){return e&&e.__esModule?e.default:e}function CO(e,t,n){let i=Ar(),o=Ar(),s=Ar(),c=Xa(xO(Qd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:m,validationDetails:h}=t.displayValidation,{labelProps:y,fieldProps:g,descriptionProps:E,errorMessageProps:S}=HD({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||m}),D=Q2(t,n),x=g["aria-labelledby"]||g.id,{locale:w}=sn(),R=t.formatValue(w,{month:"long"}),I=R?c.format("selectedDateDescription",{date:R}):"",A=uy(I),L=[A["aria-describedby"],g["aria-describedby"]].filter(Boolean).join(" ")||void 0,M=un(e),Z=b.useMemo(()=>cy(n),[n]),V=b.useRef(!1),{focusWithinProps:fe}=Gs({...e,isDisabled:t.isOpen,onBlurWithin:ne=>{let pe=document.getElementById(o);ot(pe,ne.relatedTarget)||(V.current=!1,e.onBlur?.(ne),e.onFocusChange?.(!1))},onFocusWithin:ne=>{V.current||(V.current=!0,e.onFocus?.(ne),e.onFocusChange?.(!0))}});return{groupProps:pt(M,D,g,A,fe,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":L,onKeyDown(ne){t.isOpen||e.onKeyDown&&e.onKeyDown(ne)},onKeyUp(ne){t.isOpen||e.onKeyUp&&e.onKeyUp(ne)}}),labelProps:{...y,onClick:()=>{Z.focusFirst()}},fieldProps:{...g,id:s,[Zc]:"presentation","aria-describedby":L,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[n0]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:E,errorMessageProps:S,buttonProps:{...A,id:i,"aria-haspopup":"dialog","aria-label":c.format("calendar"),"aria-labelledby":`${i} ${x}`,"aria-describedby":L,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${i} ${x}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:d,validationErrors:m,validationDetails:h}}function AO(e){let t=m2(e),[n,i]=As(e.value,e.defaultValue||null,e.onChange),[o]=b.useState(n),s=n||e.placeholderValue||null,[c,d]=Lx(s,e.granularity),m=n!=null?n.toDate(d??"UTC"):null,h=c==="hour"||c==="minute"||c==="second",y=e.shouldCloseOnSelect??!0,[g,E]=b.useState(null),[S,D]=b.useState(null);if(n&&(g=n,"hour"in n&&(S=n)),s&&!(c in s))throw new Error("Invalid granularity "+c+" for value "+s.toString());let x=n?.calendar.identifier==="gregory"&&n.era==="BC",w=b.useMemo(()=>({granularity:c,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[c,e.hourCycle,e.shouldForceLeadingZeros,d,e.hideTimeZone,x]),{minValue:R,maxValue:I,isDateUnavailable:A}=e,L=b.useMemo(()=>kx(n,R,I,A,w),[n,R,I,A,w]),M=UD({...e,value:n,builtinValidation:L}),Z=M.displayValidation.isInvalid,V=e.validationState||(Z?"invalid":null),fe=(J,ye)=>{i("timeZone"in ye?ye.set(mn(J)):oa(J,ye)),E(null),D(null),M.commitValidation()},ne=J=>{let ye=typeof y=="function"?y():y;h?S||ye?fe(J,S||M1(e.defaultValue||e.placeholderValue)):E(J):(i(J),M.commitValidation()),ye&&t.setOpen(!1)},pe=J=>{g&&J?fe(g,J):D(J)};return{...M,value:n,defaultValue:e.defaultValue??o,setValue:i,dateValue:g,timeValue:S,setDateValue:ne,setTimeValue:pe,granularity:c,hasTime:h,...t,setOpen(J){!J&&!n&&g&&h&&fe(g,S||M1(e.defaultValue||e.placeholderValue)),t.setOpen(J)},validationState:V,isInvalid:Z,formatValue(J,ye){if(!m)return"";let Ae=Qo(ye,w);return new ra(J,Ae).format(m)},getDateFormatter(J,ye){let Ae={...w,...ye},j=Qo({},Ae);return new ra(J,j)}}}const wO=b.createContext(null),TO=b.createContext(null),NO=[Kd,Ys,yS,W0],MO=b.forwardRef(function(t,n){[t,n]=sa(t,n,wO);let{validationBehavior:i}=ad(KM)||{},o=t.validationBehavior??i??"native",s=AO({...t,validationBehavior:o}),c=b.useRef(null),[d,m]=cN(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:h,labelProps:y,fieldProps:g,buttonProps:E,dialogProps:S,calendarProps:D,descriptionProps:x,errorMessageProps:w,...R}=CO({...dN(t),label:m,validationBehavior:o},s,c),{focusProps:I,isFocused:A,isFocusVisible:L}=cl({within:!0}),M=la({...t,values:{state:s,isFocusWithin:A,isFocusVisible:L,isDisabled:t.isDisabled||!1,isInvalid:s.isInvalid,isOpen:s.isOpen,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),Z=un(t,{global:!0});return delete Z.id,ve.createElement(Id,{values:[[TO,s],[Kd,{...h,ref:c,isInvalid:s.isInvalid}],[Px,g],[Ys,{...E,isPressed:s.isOpen}],[yS,{...y,ref:d,elementType:"span"}],[pd,D],[fy,s],[h2,{trigger:"DatePicker",triggerRef:c,placement:"bottom start",clearContexts:NO}],[y2,S],[W0,{slots:{description:x,errorMessage:w}}],[GM,R]]},ve.createElement(wn.div,{...pt(Z,M,I),ref:n,slot:t.slot||void 0,"data-focus-within":A||void 0,"data-invalid":s.isInvalid||void 0,"data-focus-visible":L||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0,"data-open":s.isOpen||void 0}),ve.createElement(tO,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:s}))});function ah(e){if(typeof e!="string"||e.trim()==="")return null;try{return _D(e)}catch{return null}}function RO(e){return{currentTarget:{value:e},target:{value:e}}}function O1({label:e,value:t,items:n,onChange:i,className:o}){return v.jsx("select",{className:`date-picker-select ${o??""}`,"aria-label":e,value:String(t),onChange:s=>i(Number(s.currentTarget.value)),children:n.map(s=>v.jsx("option",{value:s.id,children:s.formatted},s.id))})}function OO({id:e,label:t,hint:n,error:i,required:o,className:s,min:c,max:d,disabled:m,onChange:h,onFocus:y,onBlur:g,value:E,autoComplete:S,...D}){const x=b.useRef(null),w=ah(E),R=ah(c),I=ah(d),A=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,L=`${e}-label`,M=e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),Z=["form-field",M?`form-field--${M}`:null,s].filter(Boolean).join(" ");return v.jsxs("div",{className:Z,"data-field-id":e,children:[v.jsxs("span",{id:L,className:"form-label form-field__label",children:[t,o&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-red-600","aria-hidden":"true",children:[" ","*"]}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsxs(MO,{className:"date-picker",value:w,minValue:R??void 0,maxValue:I??void 0,isDisabled:m,isRequired:o,isInvalid:!!i,autoComplete:S,"aria-labelledby":L,"aria-describedby":A,onFocus:V=>y?.(V),onBlur:V=>g?.(V),onChange:V=>h?.(RO(V?V.toString():"")),children:[v.jsxs(VD,{className:`date-picker-group form-input ${i?"input-error":""}`,"data-input-id":e,"aria-describedby":A,"aria-invalid":!!i,"aria-labelledby":L,onClick:V=>{!m&&!V.target.closest("button")&&x.current?.click()},children:[v.jsx(SO,{className:"date-picker-input",children:V=>v.jsx($O,{className:"date-picker-segment",segment:V})}),v.jsx(Fp,{ref:x,className:"date-picker-button","aria-label":`Open calendar for ${t}`,type:"button",children:v.jsx("span",{"aria-hidden":"true",children:"▾"})})]}),v.jsx("input",{id:`${e}-value`,type:"hidden",value:E??"",disabled:m,...D,readOnly:!0}),v.jsx(YR,{className:"date-picker-popover",placement:"bottom start",offset:6,shouldFlip:!0,children:v.jsx(WR,{className:"date-picker-dialog",children:v.jsxs(PM,{className:"date-picker-calendar",children:[v.jsxs("header",{className:"date-picker-calendar-header",children:[v.jsx(Fp,{className:"date-picker-nav-button",slot:"previous",type:"button",children:"‹"}),v.jsxs("div",{className:"date-picker-selects",children:[v.jsx(VM,{format:"long",children:({"aria-label":V,value:fe,items:ne,onChange:pe})=>v.jsx(O1,{label:V,value:fe,items:ne,onChange:pe,className:"date-picker-select--month"})}),v.jsx(HM,{visibleYears:120,children:({"aria-label":V,value:fe,items:ne,onChange:pe})=>v.jsx(O1,{label:V,value:fe,items:ne,onChange:pe,className:"date-picker-select--year"})}),v.jsx(C8,{className:"sr-only"})]}),v.jsx(Fp,{className:"date-picker-nav-button",slot:"next",type:"button",children:"›"})]}),v.jsxs(IM,{className:"date-picker-grid",children:[v.jsx(PD,{children:V=>v.jsx(ID,{className:"date-picker-header-cell",children:V})}),v.jsx(FD,{children:V=>v.jsx(UM,{className:"date-picker-cell",date:V})})]})]})})})]}),n&&v.jsx("p",{id:`${e}-hint`,className:"form-field__hint mt-1 text-sm text-slate-500",children:n}),i&&v.jsx("p",{id:`${e}-error`,className:"form-field__error mt-1 text-sm text-red-600",children:i})]})}function ji({id:e,label:t,className:n,...i}){return v.jsxs("label",{className:`checkbox-card ${n||""}`,htmlFor:e,children:[v.jsx("input",{id:e,type:"checkbox",className:"checkbox-input",...i}),v.jsx("span",{className:"checkbox-label",children:t})]})}function kO({onChoose:e,isSubmitting:t=!1}){const[n,i]=b.useState(!1),o=!n||t;return v.jsxs("div",{className:"communications-consent","data-testid":"communications-consent",children:[v.jsx("h3",{className:"text-lg font-semibold text-text-primary mb-3",children:"Communications Consent"}),v.jsx(ji,{id:"communications-consent-checkbox",className:"communications-consent-checkbox",checked:n,onChange:s=>i(s.target.checked),disabled:t,label:"I consent to communications from Credify Corporation (licensed insurance agency) and my selected carrier(s) at the phone number and email address I provided. This covers: support (including AI agents), carrier quote and service contact, automated rate shopping at or before renewal, policy renewal notifications, claims management, and Credify's newsletter (which we may send by email, or by text message with a link to read it)."}),v.jsxs("div",{className:"text-sm text-slate-600 mt-4 space-y-2",children:[v.jsx("p",{children:"These may use automated systems, emails or texts. Message frequency varies. Message & data rates may apply. Reply STOP to opt out of SMS; Reply HELP for help."}),v.jsx("p",{children:"Consent is not required to receive quotes or purchase insurance."}),v.jsxs("p",{children:["Credify Corporation – Texas #3309669."," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","|"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"})]})]}),v.jsxs("div",{className:"grid grid-cols-1 gap-3 mt-6 sm:grid-cols-2",children:[v.jsxs("button",{type:"button","data-testid":"communications-consent-accept",onClick:()=>e(!0),disabled:o,className:["form-wizard-next-btn","h-12 rounded-full text-white font-bold transition","disabled:cursor-not-allowed","flex items-center justify-center gap-2",o?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[t&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"I Consent"]}),v.jsx("button",{type:"button","data-testid":"communications-consent-decline",onClick:()=>e(!1),disabled:t,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"I Do Not Consent"})]})]})}function BO({name:e,value:t,checked:n,onChange:i,children:o}){return v.jsxs("label",{className:"radio-card",children:[v.jsx("input",{className:"radio-input",type:"radio",name:e,value:t,checked:n,onChange:i}),v.jsx("span",{className:"radio-label",children:o})]})}function LO({legend:e,children:t,className:n,legendClassName:i,required:o}){return v.jsxs("fieldset",{className:n,children:[v.jsxs("legend",{className:`form-label mb-4 ${i||""}`,children:[e,o&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-red-600 ml-1","aria-hidden":"true",children:"*"}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:t})]})}function PO({id:e,label:t,hint:n,error:i,required:o,className:s,placeholder:c="Select an option",options:d=[],value:m,onValueChange:h,onFocus:y,onBlur:g,disabled:E,...S}){const D=b.useRef(null),x=b.useRef(null),w=b.useRef(null),[R,I]=b.useState(!1),[A,L]=b.useState(""),[M,Z]=b.useState(-1),[V,fe]=b.useState("bottom"),ne=Array.isArray(m)?String(m[0]??""):String(m??""),pe=d.find(F=>F.value===ne),J=`${e}-listbox`,ye=M>=0?`${e}-option-${M}`:void 0,Ae=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,j=b.useMemo(()=>{const F=A.trim().toLowerCase();return!F||pe?.label===A?d:d.filter(G=>G.label.toLowerCase().includes(F)||G.value.toLowerCase().includes(F))},[d,A,pe?.label]);b.useEffect(()=>{L(pe?.label??"")},[pe?.label]),b.useEffect(()=>{if(!R)return;const F=G=>{D.current&&!D.current.contains(G.target)&&(I(!1),Z(-1),L(pe?.label??""))};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[R,pe?.label]),b.useEffect(()=>{if(!R)return;const F=()=>{const G=x.current;if(!G)return;const C=G.getBoundingClientRect(),U=window.innerHeight||document.documentElement.clientHeight,W=w.current?.scrollHeight??0,Y=Math.min(W>0?W:256,U*.42,256),te=8,z=U-C.bottom-te,T=C.top-te;fe(z<Y&&T>z?"top":"bottom")};return F(),window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)}},[j.length,R]);const de=()=>{if(E)return;I(!0);const F=j.findIndex(G=>G.value===ne);Z(F>=0?F:-1)},k=F=>{F.disabled||(h?.(F.value),L(F.label),I(!1),Z(-1),x.current?.focus())},B=F=>{if(!E)switch(F.key){case"ArrowDown":if(F.preventDefault(),!R){de();return}Z(G=>Math.min(G+1,j.length-1));break;case"ArrowUp":if(F.preventDefault(),!R){de();return}Z(G=>G>0?G-1:-1);break;case"Enter":R&&M>=0&&j[M]&&(F.preventDefault(),k(j[M]));break;case"Escape":R&&(F.preventDefault(),I(!1),Z(-1),L(pe?.label??""));break}},X=F=>{g?.(F)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsxs("div",{ref:D,className:"combobox-wrapper",children:[v.jsx("input",{ref:x,id:e,className:`form-input combobox-input ${i?"input-error":""}`,value:A,placeholder:c,disabled:E,required:o,role:"combobox","aria-autocomplete":"list","aria-expanded":R&&j.length>0,"aria-controls":R&&j.length>0?J:void 0,"aria-activedescendant":ye,"aria-invalid":!!i,"aria-describedby":Ae,autoComplete:"off",onFocus:F=>{y?.(F),de()},onClick:de,onChange:F=>{L(F.currentTarget.value),I(!0),Z(-1)},onKeyDown:B,onBlur:X,...S,type:"text"}),v.jsx("span",{className:"combobox-caret","aria-hidden":"true"}),R&&v.jsx("div",{ref:w,id:J,className:"combobox-listbox","data-placement":V,role:"listbox",children:j.length>0?j.map((F,G)=>v.jsx("div",{id:`${e}-option-${G}`,className:"combobox-option","data-highlighted":G===M?"true":void 0,"data-selected":F.value===ne?"true":void 0,tabIndex:-1,role:"option","aria-selected":F.value===ne,"aria-disabled":F.disabled||void 0,onMouseDown:C=>C.preventDefault(),onMouseEnter:()=>Z(G),onClick:()=>k(F),children:F.label},`${F.value}-${G}`)):v.jsx("div",{className:"combobox-empty",role:"status",children:"No matches"})})]})})}function ds({id:e,label:t,hint:n,error:i,required:o,className:s,placeholder:c,options:d,children:m,...h}){const y=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,g=!!m;if(!g){const{onChange:E,value:S,defaultValue:D,disabled:x,onFocus:w,onBlur:R,name:I,autoFocus:A}=h,L=S??D??"";return v.jsx(PO,{id:e,label:t,hint:n,error:i,required:o,className:s,placeholder:c,options:d,value:L,disabled:x,name:I,autoFocus:A,"aria-required":h["aria-required"],onFocus:w,onBlur:R,onValueChange:M=>{E?.({currentTarget:{value:M},target:{value:M}})}})}return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsxs("select",{id:e,className:`form-input select-caret ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":y,required:o,...h,children:[c&&v.jsx("option",{value:"",disabled:!0,selected:!("value"in h),children:c}),g?m:d?.map(E=>v.jsx("option",{value:E.value,disabled:E.disabled,children:E.label},E.value))]})})}var k1={apiKey:""};function IO(){try{typeof k1<"u"&&k1?.apiKey}catch{}return""}function FO(){return new Promise((e,t)=>{if(window.google?.maps?.places){e();return}const n=document.querySelector('script[src*="maps.googleapis.com"]');if(n){n.addEventListener("load",()=>e()),n.addEventListener("error",()=>t(new Error("Failed to load Google Maps script")));return}const i=IO();if(!i){t(new Error("Google Maps API key not configured"));return}const o=document.createElement("script");o.src=`https://maps.googleapis.com/maps/api/js?key=${i}&libraries=places`,o.async=!0,o.defer=!0,o.onload=()=>e(),o.onerror=()=>t(new Error("Failed to load Google Maps script")),document.head.appendChild(o)})}function jO(e){const t={fullAddress:e.formatted_address};return e.address_components&&e.address_components.forEach(n=>{const i=n.types;i.includes("street_number")&&(t.streetNumber=n.long_name),i.includes("route")&&(t.streetName=n.long_name),i.includes("locality")&&(t.city=n.long_name),i.includes("administrative_area_level_1")&&(t.state=n.short_name),i.includes("postal_code")&&(t.zipCode=n.long_name),i.includes("country")&&(t.country=n.short_name)}),t}function zO({id:e,label:t,hint:n,error:i,required:o,className:s,onChange:c,onPlaceSelect:d,value:m,...h}){const y=b.useRef(null),g=b.useRef(null),E=b.useRef(null),S=b.useRef(null),[D,x]=b.useState(!0),[w,R]=b.useState(m||""),[I,A]=b.useState([]),[L,M]=b.useState(!1),[Z,V]=b.useState(-1),fe=`${e}-suggestions`,ne=Z>=0?`${e}-suggestion-${Z}`:void 0,pe=b.useRef([]),J=b.useRef(!1),ye=b.useRef(-1);b.useEffect(()=>{pe.current=I},[I]),b.useEffect(()=>{J.current=L},[L]),b.useEffect(()=>{ye.current=Z},[Z]),b.useEffect(()=>{m!==void 0&&R(String(m))},[m]);const Ae=b.useRef(null);b.useEffect(()=>{if(!y.current)return;let B=!0;return FO().then(()=>{!B||!y.current||(g.current=new google.maps.places.AutocompleteService,E.current=new google.maps.places.PlacesService(document.createElement("div")),x(!1))}).catch(X=>{console.error("Error loading Google Maps:",X),x(!1)}),()=>{B=!1,Ae.current&&clearTimeout(Ae.current)}},[]);const j=B=>{const X=B.target.value;if(R(X),c?.(X),Ae.current&&clearTimeout(Ae.current),X.length<3){A([]),M(!1);return}Ae.current=setTimeout(()=>{g.current&&g.current.getPlacePredictions({input:X,types:["address"]},(F,G)=>{G===google.maps.places.PlacesServiceStatus.OK&&F?(A(F),M(!0),V(-1)):(A([]),M(!1))})},300)},de=B=>{if(!J.current||pe.current.length===0){B.key==="Escape"&&(M(!1),J.current=!1);return}switch(B.key){case"ArrowDown":B.preventDefault(),V(X=>{const F=X<pe.current.length-1?X+1:X;return ye.current=F,F});break;case"ArrowUp":B.preventDefault(),V(X=>{const F=X>0?X-1:-1;return ye.current=F,F});break;case"Enter":B.preventDefault(),ye.current>=0&&ye.current<pe.current.length&&k(pe.current[ye.current]);break;case"Escape":B.preventDefault(),M(!1),J.current=!1;break}};b.useEffect(()=>{const B=X=>{S.current&&!S.current.contains(X.target)&&y.current&&!y.current.contains(X.target)&&(M(!1),J.current=!1)};if(L)return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[L]);const k=B=>{E.current&&E.current.getDetails({placeId:B.place_id,fields:["address_components","formatted_address","geometry"]},(X,F)=>{if(F===google.maps.places.PlacesServiceStatus.OK&&X){const G=X.formatted_address||"";R(G),M(!1),A([]),J.current=!1;const C=jO(X);c?.(G,C),d?.(X)}})};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsxs("div",{className:"relative",children:[v.jsx("input",{ref:y,id:e,type:"text",className:`form-input ${i?"input-error":""}`,value:w,onChange:j,onKeyDown:de,role:"combobox","aria-autocomplete":"list","aria-expanded":L&&I.length>0,"aria-controls":L&&I.length>0?fe:void 0,"aria-activedescendant":ne,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,autoComplete:"street-address",placeholder:h.placeholder||"Enter an address",disabled:D||h.disabled,...h}),D&&v.jsx("p",{className:"mt-1 text-sm text-slate-500",role:"status","aria-live":"polite",children:"Loading address suggestions..."}),L&&I.length>0&&v.jsx("div",{id:fe,ref:S,className:"absolute z-50 w-full mt-1 bg-white border border-slate-200 rounded-lg shadow-lg max-h-60 overflow-y-auto",role:"listbox",children:I.map((B,X)=>v.jsxs("div",{id:`${e}-suggestion-${X}`,className:`px-4 py-3 cursor-pointer transition-colors ${X===Z?"bg-blue-50 text-slate-900":"bg-white text-slate-900 hover:bg-slate-50"} ${X<I.length-1?"border-b border-slate-100":""}`,role:"option","aria-selected":X===Z,onMouseDown:F=>F.preventDefault(),onClick:()=>k(B),onMouseEnter:()=>V(X),children:[v.jsx("div",{className:"font-medium text-slate-900",children:B.structured_formatting.main_text}),B.structured_formatting.secondary_text&&v.jsx("div",{className:"text-sm text-slate-500 mt-0.5",children:B.structured_formatting.secondary_text})]},B.place_id))})]})})}function py(e){const t=(n,i)=>n.map((o,s)=>{const c=i.length?i.join("__"):"root",d=o.key??`${c}__q${s}_${String(o.question).slice(0,24).replace(/\W+/g,"-")||"field"}`,h=(o.conditionals??[]).map((y,g)=>{const E=y.conditionalQuestions?t(y.conditionalQuestions,[...i,`${d}__c${g}`]):void 0;return{...y,conditionalQuestions:E}});return{...o,key:d,conditionals:h}});return t(e,[])}function ue(e,t,n){function i(d,m){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,m);const h=c.prototype,y=Object.keys(h);for(let g=0;g<y.length;g++){const E=y[g];E in d||(d[E]=h[E].bind(d))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function c(d){var m;const h=n?.Parent?new s:this;i(h,d),(m=h._zod).deferred??(m.deferred=[]);for(const y of h._zod.deferred)y();return h}return Object.defineProperty(c,"init",{value:i}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>n?.Parent&&d instanceof n.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class Jo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Fx extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const jx={};function zi(e){return jx}function zx(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,o])=>t.indexOf(+i)===-1).map(([i,o])=>o)}function u0(e,t){return typeof t=="bigint"?t.toString():t}function hy(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function yy(e){return e==null}function gy(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function UO(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){const m=i.match(/\d?e-(\d?)/);m?.[1]&&(o=Number.parseInt(m[1]))}const s=n>o?n:o,c=Number.parseInt(e.toFixed(s).replace(".","")),d=Number.parseInt(t.toFixed(s).replace(".",""));return c%d/10**s}const B1=Symbol("evaluating");function mt(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==B1)return i===void 0&&(i=B1,i=n()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Wi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ei(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function L1(e){return JSON.stringify(e)}function HO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Ux="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const VO=hy(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ps(e){if(gd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(gd(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Hx(e){return Ps(e)?{...e}:Array.isArray(e)?[...e]:e}const GO=new Set(["string","number","symbol"]);function ll(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ti(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Le(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ZO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const YO={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function qO(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=ei(e._zod.def,{get shape(){const c={};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(c[d]=n.shape[d])}return Wi(this,"shape",c),c},checks:[]});return ti(e,s)}function KO(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=ei(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete c[d]}return Wi(this,"shape",c),c},checks:[]});return ti(e,s)}function WO(e,t){if(!Ps(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(s,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=ei(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Wi(this,"shape",s),s}});return ti(e,o)}function QO(e,t){if(!Ps(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ei(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Wi(this,"shape",i),i}});return ti(e,n)}function JO(e,t){const n=ei(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Wi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return ti(e,n)}function XO(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=ei(t._zod.def,{get shape(){const d=t._zod.def.shape,m={...d};if(n)for(const h in n){if(!(h in d))throw new Error(`Unrecognized key: "${h}"`);n[h]&&(m[h]=e?new e({type:"optional",innerType:d[h]}):d[h])}else for(const h in d)m[h]=e?new e({type:"optional",innerType:d[h]}):d[h];return Wi(this,"shape",m),m},checks:[]});return ti(t,c)}function ek(e,t,n){const i=ei(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const c in n){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=new e({type:"nonoptional",innerType:o[c]}))}else for(const c in o)s[c]=new e({type:"nonoptional",innerType:o[c]});return Wi(this,"shape",s),s}});return ti(t,i)}function Vo(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Vx(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Tc(e){return typeof e=="string"?e:e?.message}function Ui(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const o=Tc(e.inst?._zod.def?.error?.(e))??Tc(t?.error?.(e))??Tc(n.customError?.(e))??Tc(n.localeError?.(e))??"Invalid input";i.message=o}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function by(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Is(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const Gx=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,u0,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Zx=ue("$ZodError",Gx),Yx=ue("$ZodError",Gx,{Parent:Error});function tk(e,t=n=>n.message){const n={},i=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:n}}function nk(e,t=n=>n.message){const n={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>i({issues:c}));else if(s.code==="invalid_key")i({issues:s.issues});else if(s.code==="invalid_element")i({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let c=n,d=0;for(;d<s.path.length;){const m=s.path[d];d===s.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(t(s))):c[m]=c[m]||{_errors:[]},c=c[m],d++}}};return i(e),n}const vy=e=>(t,n,i,o)=>{const s=i?Object.assign(i,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise)throw new Jo;if(c.issues.length){const d=new(o?.Err??e)(c.issues.map(m=>Ui(m,s,zi())));throw Ux(d,o?.callee),d}return c.value},_y=e=>async(t,n,i,o)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new(o?.Err??e)(c.issues.map(m=>Ui(m,s,zi())));throw Ux(d,o?.callee),d}return c.value},Xd=e=>(t,n,i)=>{const o=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Jo;return s.issues.length?{success:!1,error:new(e??Zx)(s.issues.map(c=>Ui(c,o,zi())))}:{success:!0,data:s.value}},rk=Xd(Yx),ef=e=>async(t,n,i)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>Ui(c,o,zi())))}:{success:!0,data:s.value}},ak=ef(Yx),ik=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vy(e)(t,n,o)},ok=e=>(t,n,i)=>vy(e)(t,n,i),lk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _y(e)(t,n,o)},sk=e=>async(t,n,i)=>_y(e)(t,n,i),uk=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Xd(e)(t,n,o)},ck=e=>(t,n,i)=>Xd(e)(t,n,i),dk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ef(e)(t,n,o)},fk=e=>async(t,n,i)=>ef(e)(t,n,i),mk=/^[cC][^\s-]{8,}$/,pk=/^[0-9a-z]+$/,hk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,yk=/^[0-9a-vA-V]{20}$/,gk=/^[A-Za-z0-9]{27}$/,bk=/^[a-zA-Z0-9_-]{21}$/,vk=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_k=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,P1=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ek=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Sk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dk(){return new RegExp(Sk,"u")}const $k=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,xk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ck=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ak=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qx=/^[A-Za-z0-9_-]*$/,Tk=/^\+[1-9]\d{6,14}$/,Kx="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Nk=new RegExp(`^${Kx}$`);function Wx(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Mk(e){return new RegExp(`^${Wx(e)}$`)}function Rk(e){const t=Wx({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Kx}T(?:${i})$`)}const Ok=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},kk=/^-?\d+$/,Bk=/^-?\d+(?:\.\d+)?$/,Lk=/^(?:true|false)$/i,Pk=/^[^A-Z]*$/,Ik=/^[^a-z]*$/,Tn=ue("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qx={number:"number",bigint:"bigint",object:"date"},Jx=ue("$ZodCheckLessThan",(e,t)=>{Tn.init(e,t);const n=Qx[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xx=ue("$ZodCheckGreaterThan",(e,t)=>{Tn.init(e,t);const n=Qx[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fk=ue("$ZodCheckMultipleOf",(e,t)=>{Tn.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):UO(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),jk=ue("$ZodCheckNumberFormat",(e,t)=>{Tn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[o,s]=YO[t.format];e._zod.onattach.push(c=>{const d=c._zod.bag;d.format=t.format,d.minimum=o,d.maximum=s,n&&(d.pattern=kk)}),e._zod.check=c=>{const d=c.value;if(n){if(!Number.isInteger(d)){c.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?c.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):c.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}d<o&&c.issues.push({origin:"number",input:d,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),d>s&&c.issues.push({origin:"number",input:d,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),zk=ue("$ZodCheckMaxLength",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const o=i.value;if(o.length<=t.maximum)return;const c=by(o);i.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Uk=ue("$ZodCheckMinLength",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const o=i.value;if(o.length>=t.minimum)return;const c=by(o);i.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Hk=ue("$ZodCheckLengthEquals",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=i=>{const o=i.value,s=o.length;if(s===t.length)return;const c=by(o),d=s>t.length;i.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),tf=ue("$ZodCheckStringFormat",(e,t)=>{var n,i;Tn.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Vk=ue("$ZodCheckRegex",(e,t)=>{tf.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Gk=ue("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Pk),tf.init(e,t)}),Zk=ue("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ik),tf.init(e,t)}),Yk=ue("$ZodCheckIncludes",(e,t)=>{Tn.init(e,t);const n=ll(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(i)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),qk=ue("$ZodCheckStartsWith",(e,t)=>{Tn.init(e,t);const n=new RegExp(`^${ll(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Kk=ue("$ZodCheckEndsWith",(e,t)=>{Tn.init(e,t);const n=new RegExp(`.*${ll(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),Wk=ue("$ZodCheckOverwrite",(e,t)=>{Tn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Qk{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
83
+ `).filter(c=>c),o=Math.min(...i.map(c=>c.length-c.trimStart().length)),s=i.map(c=>c.slice(o)).map(c=>" ".repeat(this.indent*2)+c);for(const c of s)this.content.push(c)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
84
+ `))}}const Jk={major:4,minor:3,patch:6},kt=ue("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jk;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,d,m)=>{let h=Vo(c),y;for(const g of d){if(g._zod.def.when){if(!g._zod.def.when(c))continue}else if(h)continue;const E=c.issues.length,S=g._zod.check(c);if(S instanceof Promise&&m?.async===!1)throw new Jo;if(y||S instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await S,c.issues.length!==E&&(h||(h=Vo(c,E)))});else{if(c.issues.length===E)continue;h||(h=Vo(c,E))}}return y?y.then(()=>c):c},s=(c,d,m)=>{if(Vo(c))return c.aborted=!0,c;const h=o(d,i,m);if(h instanceof Promise){if(m.async===!1)throw new Jo;return h.then(y=>e._zod.parse(y,m))}return e._zod.parse(h,m)};e._zod.run=(c,d)=>{if(d.skipChecks)return e._zod.parse(c,d);if(d.direction==="backward"){const h=e._zod.parse({value:c.value,issues:[]},{...d,skipChecks:!0});return h instanceof Promise?h.then(y=>s(y,c,d)):s(h,c,d)}const m=e._zod.parse(c,d);if(m instanceof Promise){if(d.async===!1)throw new Jo;return m.then(h=>o(h,i,d))}return o(m,i,d)}}mt(e,"~standard",()=>({validate:o=>{try{const s=rk(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return ak(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),Ey=ue("$ZodString",(e,t)=>{kt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ok(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),At=ue("$ZodStringFormat",(e,t)=>{tf.init(e,t),Ey.init(e,t)}),Xk=ue("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=_k),At.init(e,t)}),eB=ue("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=P1(i))}else t.pattern??(t.pattern=P1());At.init(e,t)}),tB=ue("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ek),At.init(e,t)}),nB=ue("$ZodURL",(e,t)=>{At.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),o=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),rB=ue("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Dk()),At.init(e,t)}),aB=ue("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=bk),At.init(e,t)}),iB=ue("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=mk),At.init(e,t)}),oB=ue("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=pk),At.init(e,t)}),lB=ue("$ZodULID",(e,t)=>{t.pattern??(t.pattern=hk),At.init(e,t)}),sB=ue("$ZodXID",(e,t)=>{t.pattern??(t.pattern=yk),At.init(e,t)}),uB=ue("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=gk),At.init(e,t)}),cB=ue("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Rk(t)),At.init(e,t)}),dB=ue("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Nk),At.init(e,t)}),fB=ue("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Mk(t)),At.init(e,t)}),mB=ue("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=vk),At.init(e,t)}),pB=ue("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$k),At.init(e,t),e._zod.bag.format="ipv4"}),hB=ue("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=xk),At.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),yB=ue("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ck),At.init(e,t)}),gB=ue("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ak),At.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[o,s]=i;if(!s)throw new Error;const c=Number(s);if(`${c}`!==s)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function e5(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const bB=ue("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=wk),At.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{e5(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function vB(e){if(!qx.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return e5(n)}const _B=ue("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=qx),At.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{vB(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),EB=ue("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Tk),At.init(e,t)});function SB(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const o=JSON.parse(atob(i));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const DB=ue("$ZodJWT",(e,t)=>{At.init(e,t),e._zod.check=n=>{SB(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),t5=ue("$ZodNumber",(e,t)=>{kt.init(e,t),e._zod.pattern=e._zod.bag.pattern??Bk,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),$B=ue("$ZodNumberFormat",(e,t)=>{jk.init(e,t),t5.init(e,t)}),xB=ue("$ZodBoolean",(e,t)=>{kt.init(e,t),e._zod.pattern=Lk,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),CB=ue("$ZodUnknown",(e,t)=>{kt.init(e,t),e._zod.parse=n=>n}),AB=ue("$ZodNever",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function I1(e,t,n){e.issues.length&&t.issues.push(...Vx(n,e.issues)),t.value[n]=e.value}const wB=ue("$ZodArray",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let c=0;c<o.length;c++){const d=o[c],m=t.element._zod.run({value:d,issues:[]},i);m instanceof Promise?s.push(m.then(h=>I1(h,n,c))):I1(m,n,c)}return s.length?Promise.all(s).then(()=>n):n}});function bd(e,t,n,i,o){if(e.issues.length){if(o&&!(n in i))return;t.issues.push(...Vx(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function n5(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=ZO(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function r5(e,t,n,i,o,s){const c=[],d=o.keySet,m=o.catchall._zod,h=m.def.type,y=m.optout==="optional";for(const g in t){if(d.has(g))continue;if(h==="never"){c.push(g);continue}const E=m.run({value:t[g],issues:[]},i);E instanceof Promise?e.push(E.then(S=>bd(S,n,g,t,y))):bd(E,n,g,t,y)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const TB=ue("$ZodObject",(e,t)=>{if(kt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const m={...d};return Object.defineProperty(t,"shape",{value:m}),m}})}const i=hy(()=>n5(t));mt(e._zod,"propValues",()=>{const d=t.shape,m={};for(const h in d){const y=d[h]._zod;if(y.values){m[h]??(m[h]=new Set);for(const g of y.values)m[h].add(g)}}return m});const o=gd,s=t.catchall;let c;e._zod.parse=(d,m)=>{c??(c=i.value);const h=d.value;if(!o(h))return d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d;d.value={};const y=[],g=c.shape;for(const E of c.keys){const S=g[E],D=S._zod.optout==="optional",x=S._zod.run({value:h[E],issues:[]},m);x instanceof Promise?y.push(x.then(w=>bd(w,d,E,h,D))):bd(x,d,E,h,D)}return s?r5(y,h,d,m,i.value,e):y.length?Promise.all(y).then(()=>d):d}}),NB=ue("$ZodObjectJIT",(e,t)=>{TB.init(e,t);const n=e._zod.parse,i=hy(()=>n5(t)),o=E=>{const S=new Qk(["shape","payload","ctx"]),D=i.value,x=A=>{const L=L1(A);return`shape[${L}]._zod.run({ value: input[${L}], issues: [] }, ctx)`};S.write("const input = payload.value;");const w=Object.create(null);let R=0;for(const A of D.keys)w[A]=`key_${R++}`;S.write("const newResult = {};");for(const A of D.keys){const L=w[A],M=L1(A),V=E[A]?._zod?.optout==="optional";S.write(`const ${L} = ${x(A)};`),V?S.write(`
85
85
  if (${L}.issues.length) {
86
86
  if (${M} in input) {
87
87
  payload.issues = payload.issues.concat(${L}.issues.map(iss => ({
@@ -115,10 +115,10 @@ Url: ${nd(e)}`),!0)}function jT(e,t){return e.type||!t||!t.length?!1:VT(e).some(
115
115
  newResult[${M}] = ${L}.value;
116
116
  }
117
117
 
118
- `)}S.write("payload.value = newResult;"),S.write("return payload;");const I=S.compile();return(A,L)=>I(E,A,L)};let u;const c=gd,d=!jx.jitless,h=d&&VO.value,y=t.catchall;let g;e._zod.parse=(E,S)=>{g??(g=i.value);const D=E.value;return c(D)?d&&h&&S?.async===!1&&S.jitless!==!0?(u||(u=o(t.shape)),E=u(E,S),y?r5([],D,E,S,g,e):E):n(E,S):(E.issues.push({expected:"object",code:"invalid_type",input:D,inst:e}),E)}});function F1(e,t,n,i){for(const u of e)if(u.issues.length===0)return t.value=u.value,t;const o=e.filter(u=>!Vo(u));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(u=>u.issues.map(c=>Ui(c,i,zi())))}),t)}const MB=se("$ZodUnion",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),mt(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),mt(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),mt(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(u=>u._zod.pattern);return new RegExp(`^(${o.map(u=>gy(u.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(o,u)=>{if(n)return i(o,u);let c=!1;const d=[];for(const m of t.options){const h=m._zod.run({value:o.value,issues:[]},u);if(h instanceof Promise)d.push(h),c=!0;else{if(h.issues.length===0)return h;d.push(h)}}return c?Promise.all(d).then(m=>F1(m,o,e,u)):F1(d,o,e,u)}}),RB=se("$ZodIntersection",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const o=n.value,u=t.left._zod.run({value:o,issues:[]},i),c=t.right._zod.run({value:o,issues:[]},i);return u instanceof Promise||c instanceof Promise?Promise.all([u,c]).then(([m,h])=>j1(n,m,h)):j1(n,u,c)}});function c0(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Pu(e)&&Pu(t)){const n=Object.keys(t),i=Object.keys(e).filter(u=>n.indexOf(u)!==-1),o={...e,...t};for(const u of i){const c=c0(e[u],t[u]);if(!c.valid)return{valid:!1,mergeErrorPath:[u,...c.mergeErrorPath]};o[u]=c.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const o=e[i],u=t[i],c=c0(o,u);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};n.push(c.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function j1(e,t,n){const i=new Map;let o;for(const d of t.issues)if(d.code==="unrecognized_keys"){o??(o=d);for(const m of d.keys)i.has(m)||i.set(m,{}),i.get(m).l=!0}else e.issues.push(d);for(const d of n.issues)if(d.code==="unrecognized_keys")for(const m of d.keys)i.has(m)||i.set(m,{}),i.get(m).r=!0;else e.issues.push(d);const u=[...i].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(u.length&&o&&e.issues.push({...o,keys:u}),Vo(e))return e;const c=c0(t.value,n.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const OB=se("$ZodEnum",(e,t)=>{kt.init(e,t);const n=zx(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>GO.has(typeof o)).map(o=>typeof o=="string"?ll(o):o.toString()).join("|")})$`),e._zod.parse=(o,u)=>{const c=o.value;return i.has(c)||o.issues.push({code:"invalid_value",values:n,input:c,inst:e}),o}}),kB=se("$ZodLiteral",(e,t)=>{if(kt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?ll(i):i?ll(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,o)=>{const u=i.value;return n.has(u)||i.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),i}}),BB=se("$ZodTransform",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Fx(e.constructor.name);const o=t.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(c=>(n.value=c,n));if(o instanceof Promise)throw new Jo;return n.value=o,n}});function z1(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const a5=se("$ZodOptional",(e,t)=>{kt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",mt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),mt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gy(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(u=>z1(u,n.value)):z1(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),LB=se("$ZodExactOptional",(e,t)=>{a5.init(e,t),mt(e._zod,"values",()=>t.innerType._zod.values),mt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),PB=se("$ZodNullable",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.innerType._zod.optin),mt(e._zod,"optout",()=>t.innerType._zod.optout),mt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gy(n.source)}|null)$`):void 0}),mt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),IB=se("$ZodDefault",(e,t)=>{kt.init(e,t),e._zod.optin="optional",mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(u=>U1(u,t)):U1(o,t)}});function U1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const FB=se("$ZodPrefault",(e,t)=>{kt.init(e,t),e._zod.optin="optional",mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),jB=se("$ZodNonOptional",(e,t)=>{kt.init(e,t),mt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(u=>H1(u,e)):H1(o,e)}});function H1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const zB=se("$ZodCatch",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.innerType._zod.optin),mt(e._zod,"optout",()=>t.innerType._zod.optout),mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(u=>(n.value=u.value,u.issues.length&&(n.value=t.catchValue({...n,error:{issues:u.issues.map(c=>Ui(c,i,zi()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(u=>Ui(u,i,zi()))},input:n.value}),n.issues=[]),n)}}),UB=se("$ZodPipe",(e,t)=>{kt.init(e,t),mt(e._zod,"values",()=>t.in._zod.values),mt(e._zod,"optin",()=>t.in._zod.optin),mt(e._zod,"optout",()=>t.out._zod.optout),mt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const u=t.out._zod.run(n,i);return u instanceof Promise?u.then(c=>Nc(c,t.in,i)):Nc(u,t.in,i)}const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(u=>Nc(u,t.out,i)):Nc(o,t.out,i)}});function Nc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const HB=se("$ZodReadonly",(e,t)=>{kt.init(e,t),mt(e._zod,"propValues",()=>t.innerType._zod.propValues),mt(e._zod,"values",()=>t.innerType._zod.values),mt(e._zod,"optin",()=>t.innerType?._zod?.optin),mt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(V1):V1(o)}});function V1(e){return e.value=Object.freeze(e.value),e}const VB=se("$ZodCustom",(e,t)=>{Tn.init(e,t),kt.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,o=t.fn(i);if(o instanceof Promise)return o.then(u=>G1(u,n,i,e));G1(o,n,i,e)}});function G1(e,t,n,i){if(!e){const o={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),t.issues.push(Iu(o))}}var Z1;class GB{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const o={...i,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ZB(){return new GB}(Z1=globalThis).__zod_globalRegistry??(Z1.__zod_globalRegistry=ZB());const _u=globalThis.__zod_globalRegistry;function YB(e,t){return new e({type:"string",...Le(t)})}function qB(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Le(t)})}function Y1(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Le(t)})}function KB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Le(t)})}function WB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Le(t)})}function QB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Le(t)})}function JB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Le(t)})}function XB(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Le(t)})}function eL(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Le(t)})}function tL(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Le(t)})}function nL(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Le(t)})}function rL(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Le(t)})}function aL(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Le(t)})}function iL(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Le(t)})}function oL(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Le(t)})}function lL(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Le(t)})}function uL(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Le(t)})}function sL(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Le(t)})}function cL(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Le(t)})}function dL(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Le(t)})}function fL(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Le(t)})}function mL(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Le(t)})}function pL(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Le(t)})}function hL(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Le(t)})}function yL(e,t){return new e({type:"string",format:"date",check:"string_format",...Le(t)})}function gL(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Le(t)})}function bL(e,t){return new e({type:"string",format:"duration",check:"string_format",...Le(t)})}function vL(e,t){return new e({type:"number",coerce:!0,checks:[],...Le(t)})}function _L(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Le(t)})}function EL(e,t){return new e({type:"boolean",...Le(t)})}function SL(e){return new e({type:"unknown"})}function DL(e,t){return new e({type:"never",...Le(t)})}function q1(e,t){return new Jx({check:"less_than",...Le(t),value:e,inclusive:!1})}function ih(e,t){return new Jx({check:"less_than",...Le(t),value:e,inclusive:!0})}function K1(e,t){return new Xx({check:"greater_than",...Le(t),value:e,inclusive:!1})}function oh(e,t){return new Xx({check:"greater_than",...Le(t),value:e,inclusive:!0})}function W1(e,t){return new Fk({check:"multiple_of",...Le(t),value:e})}function i5(e,t){return new zk({check:"max_length",...Le(t),maximum:e})}function vd(e,t){return new Uk({check:"min_length",...Le(t),minimum:e})}function o5(e,t){return new Hk({check:"length_equals",...Le(t),length:e})}function $L(e,t){return new Vk({check:"string_format",format:"regex",...Le(t),pattern:e})}function xL(e){return new Gk({check:"string_format",format:"lowercase",...Le(e)})}function CL(e){return new Zk({check:"string_format",format:"uppercase",...Le(e)})}function AL(e,t){return new Yk({check:"string_format",format:"includes",...Le(t),includes:e})}function wL(e,t){return new qk({check:"string_format",format:"starts_with",...Le(t),prefix:e})}function TL(e,t){return new Kk({check:"string_format",format:"ends_with",...Le(t),suffix:e})}function fl(e){return new Wk({check:"overwrite",tx:e})}function NL(e){return fl(t=>t.normalize(e))}function ML(){return fl(e=>e.trim())}function RL(){return fl(e=>e.toLowerCase())}function OL(){return fl(e=>e.toUpperCase())}function kL(){return fl(e=>HO(e))}function BL(e,t,n){return new e({type:"array",element:t,...Le(n)})}function LL(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Le(n)})}function PL(e){const t=IL(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Iu(i,n.value,t._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Iu(o))}},e(n.value,n)));return t}function IL(e,t){const n=new Tn({check:"custom",...Le(t)});return n._zod.check=e,n}function l5(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??_u,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function an(e,t,n={path:[],schemaPath:[]}){var i;const o=e._zod.def,u=t.seen.get(e);if(u)return u.count++,n.schemaPath.includes(e)&&(u.cycle=n.path),u.schema;const c={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,c);const d=e._zod.toJSONSchema?.();if(d)c.schema=d;else{const y={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,y);else{const E=c.schema,S=t.processors[o.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);S(e,t,E,y)}const g=e._zod.parent;g&&(c.ref||(c.ref=g),an(g,t,y),t.seen.get(g).isParent=!0)}const m=t.metadataRegistry.get(e);return m&&Object.assign(c.schema,m),t.io==="input"&&dn(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((i=c.schema).default??(i.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function u5(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const c of e.seen.entries()){const d=e.metadataRegistry.get(c[0])?.id;if(d){const m=i.get(d);if(m&&m!==c[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(d,c[0])}}const o=c=>{const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(c[0])?.id,E=e.external.uri??(D=>D);if(g)return{ref:E(g)};const S=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=S,{defId:S,ref:`${E("__shared")}#/${d}/${S}`}}if(c[1]===n)return{ref:"#"};const h=`#/${d}/`,y=c[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:h+y}},u=c=>{if(c[1].schema.$ref)return;const d=c[1],{ref:m,defId:h}=o(c);d.def={...d.schema},h&&(d.defId=h);const y=d.schema;for(const g in y)delete y[g];y.$ref=m};if(e.cycles==="throw")for(const c of e.seen.entries()){const d=c[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
118
+ `)}S.write("payload.value = newResult;"),S.write("return payload;");const I=S.compile();return(A,L)=>I(E,A,L)};let s;const c=gd,d=!jx.jitless,h=d&&VO.value,y=t.catchall;let g;e._zod.parse=(E,S)=>{g??(g=i.value);const D=E.value;return c(D)?d&&h&&S?.async===!1&&S.jitless!==!0?(s||(s=o(t.shape)),E=s(E,S),y?r5([],D,E,S,g,e):E):n(E,S):(E.issues.push({expected:"object",code:"invalid_type",input:D,inst:e}),E)}});function F1(e,t,n,i){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!Vo(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(c=>Ui(c,i,zi())))}),t)}const MB=ue("$ZodUnion",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),mt(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),mt(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),mt(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>gy(s.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return i(o,s);let c=!1;const d=[];for(const m of t.options){const h=m._zod.run({value:o.value,issues:[]},s);if(h instanceof Promise)d.push(h),c=!0;else{if(h.issues.length===0)return h;d.push(h)}}return c?Promise.all(d).then(m=>F1(m,o,e,s)):F1(d,o,e,s)}}),RB=ue("$ZodIntersection",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},i),c=t.right._zod.run({value:o,issues:[]},i);return s instanceof Promise||c instanceof Promise?Promise.all([s,c]).then(([m,h])=>j1(n,m,h)):j1(n,s,c)}});function c0(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ps(e)&&Ps(t)){const n=Object.keys(t),i=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of i){const c=c0(e[s],t[s]);if(!c.valid)return{valid:!1,mergeErrorPath:[s,...c.mergeErrorPath]};o[s]=c.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],c=c0(o,s);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};n.push(c.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function j1(e,t,n){const i=new Map;let o;for(const d of t.issues)if(d.code==="unrecognized_keys"){o??(o=d);for(const m of d.keys)i.has(m)||i.set(m,{}),i.get(m).l=!0}else e.issues.push(d);for(const d of n.issues)if(d.code==="unrecognized_keys")for(const m of d.keys)i.has(m)||i.set(m,{}),i.get(m).r=!0;else e.issues.push(d);const s=[...i].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(s.length&&o&&e.issues.push({...o,keys:s}),Vo(e))return e;const c=c0(t.value,n.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const OB=ue("$ZodEnum",(e,t)=>{kt.init(e,t);const n=zx(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>GO.has(typeof o)).map(o=>typeof o=="string"?ll(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const c=o.value;return i.has(c)||o.issues.push({code:"invalid_value",values:n,input:c,inst:e}),o}}),kB=ue("$ZodLiteral",(e,t)=>{if(kt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?ll(i):i?ll(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,o)=>{const s=i.value;return n.has(s)||i.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),i}}),BB=ue("$ZodTransform",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Fx(e.constructor.name);const o=t.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(c=>(n.value=c,n));if(o instanceof Promise)throw new Jo;return n.value=o,n}});function z1(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const a5=ue("$ZodOptional",(e,t)=>{kt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",mt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),mt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gy(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>z1(s,n.value)):z1(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),LB=ue("$ZodExactOptional",(e,t)=>{a5.init(e,t),mt(e._zod,"values",()=>t.innerType._zod.values),mt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),PB=ue("$ZodNullable",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.innerType._zod.optin),mt(e._zod,"optout",()=>t.innerType._zod.optout),mt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gy(n.source)}|null)$`):void 0}),mt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),IB=ue("$ZodDefault",(e,t)=>{kt.init(e,t),e._zod.optin="optional",mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>U1(s,t)):U1(o,t)}});function U1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const FB=ue("$ZodPrefault",(e,t)=>{kt.init(e,t),e._zod.optin="optional",mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),jB=ue("$ZodNonOptional",(e,t)=>{kt.init(e,t),mt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>H1(s,e)):H1(o,e)}});function H1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const zB=ue("$ZodCatch",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.innerType._zod.optin),mt(e._zod,"optout",()=>t.innerType._zod.optout),mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(c=>Ui(c,i,zi()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>Ui(s,i,zi()))},input:n.value}),n.issues=[]),n)}}),UB=ue("$ZodPipe",(e,t)=>{kt.init(e,t),mt(e._zod,"values",()=>t.in._zod.values),mt(e._zod,"optin",()=>t.in._zod.optin),mt(e._zod,"optout",()=>t.out._zod.optout),mt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const s=t.out._zod.run(n,i);return s instanceof Promise?s.then(c=>Nc(c,t.in,i)):Nc(s,t.in,i)}const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(s=>Nc(s,t.out,i)):Nc(o,t.out,i)}});function Nc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const HB=ue("$ZodReadonly",(e,t)=>{kt.init(e,t),mt(e._zod,"propValues",()=>t.innerType._zod.propValues),mt(e._zod,"values",()=>t.innerType._zod.values),mt(e._zod,"optin",()=>t.innerType?._zod?.optin),mt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(V1):V1(o)}});function V1(e){return e.value=Object.freeze(e.value),e}const VB=ue("$ZodCustom",(e,t)=>{Tn.init(e,t),kt.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,o=t.fn(i);if(o instanceof Promise)return o.then(s=>G1(s,n,i,e));G1(o,n,i,e)}});function G1(e,t,n,i){if(!e){const o={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),t.issues.push(Is(o))}}var Z1;class GB{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const o={...i,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ZB(){return new GB}(Z1=globalThis).__zod_globalRegistry??(Z1.__zod_globalRegistry=ZB());const _s=globalThis.__zod_globalRegistry;function YB(e,t){return new e({type:"string",...Le(t)})}function qB(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Le(t)})}function Y1(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Le(t)})}function KB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Le(t)})}function WB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Le(t)})}function QB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Le(t)})}function JB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Le(t)})}function XB(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Le(t)})}function eL(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Le(t)})}function tL(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Le(t)})}function nL(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Le(t)})}function rL(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Le(t)})}function aL(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Le(t)})}function iL(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Le(t)})}function oL(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Le(t)})}function lL(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Le(t)})}function sL(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Le(t)})}function uL(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Le(t)})}function cL(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Le(t)})}function dL(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Le(t)})}function fL(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Le(t)})}function mL(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Le(t)})}function pL(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Le(t)})}function hL(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Le(t)})}function yL(e,t){return new e({type:"string",format:"date",check:"string_format",...Le(t)})}function gL(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Le(t)})}function bL(e,t){return new e({type:"string",format:"duration",check:"string_format",...Le(t)})}function vL(e,t){return new e({type:"number",coerce:!0,checks:[],...Le(t)})}function _L(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Le(t)})}function EL(e,t){return new e({type:"boolean",...Le(t)})}function SL(e){return new e({type:"unknown"})}function DL(e,t){return new e({type:"never",...Le(t)})}function q1(e,t){return new Jx({check:"less_than",...Le(t),value:e,inclusive:!1})}function ih(e,t){return new Jx({check:"less_than",...Le(t),value:e,inclusive:!0})}function K1(e,t){return new Xx({check:"greater_than",...Le(t),value:e,inclusive:!1})}function oh(e,t){return new Xx({check:"greater_than",...Le(t),value:e,inclusive:!0})}function W1(e,t){return new Fk({check:"multiple_of",...Le(t),value:e})}function i5(e,t){return new zk({check:"max_length",...Le(t),maximum:e})}function vd(e,t){return new Uk({check:"min_length",...Le(t),minimum:e})}function o5(e,t){return new Hk({check:"length_equals",...Le(t),length:e})}function $L(e,t){return new Vk({check:"string_format",format:"regex",...Le(t),pattern:e})}function xL(e){return new Gk({check:"string_format",format:"lowercase",...Le(e)})}function CL(e){return new Zk({check:"string_format",format:"uppercase",...Le(e)})}function AL(e,t){return new Yk({check:"string_format",format:"includes",...Le(t),includes:e})}function wL(e,t){return new qk({check:"string_format",format:"starts_with",...Le(t),prefix:e})}function TL(e,t){return new Kk({check:"string_format",format:"ends_with",...Le(t),suffix:e})}function fl(e){return new Wk({check:"overwrite",tx:e})}function NL(e){return fl(t=>t.normalize(e))}function ML(){return fl(e=>e.trim())}function RL(){return fl(e=>e.toLowerCase())}function OL(){return fl(e=>e.toUpperCase())}function kL(){return fl(e=>HO(e))}function BL(e,t,n){return new e({type:"array",element:t,...Le(n)})}function LL(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Le(n)})}function PL(e){const t=IL(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Is(i,n.value,t._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Is(o))}},e(n.value,n)));return t}function IL(e,t){const n=new Tn({check:"custom",...Le(t)});return n._zod.check=e,n}function l5(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??_s,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function an(e,t,n={path:[],schemaPath:[]}){var i;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const c={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,c);const d=e._zod.toJSONSchema?.();if(d)c.schema=d;else{const y={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,y);else{const E=c.schema,S=t.processors[o.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);S(e,t,E,y)}const g=e._zod.parent;g&&(c.ref||(c.ref=g),an(g,t,y),t.seen.get(g).isParent=!0)}const m=t.metadataRegistry.get(e);return m&&Object.assign(c.schema,m),t.io==="input"&&dn(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((i=c.schema).default??(i.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function s5(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const c of e.seen.entries()){const d=e.metadataRegistry.get(c[0])?.id;if(d){const m=i.get(d);if(m&&m!==c[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(d,c[0])}}const o=c=>{const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(c[0])?.id,E=e.external.uri??(D=>D);if(g)return{ref:E(g)};const S=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=S,{defId:S,ref:`${E("__shared")}#/${d}/${S}`}}if(c[1]===n)return{ref:"#"};const h=`#/${d}/`,y=c[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:h+y}},s=c=>{if(c[1].schema.$ref)return;const d=c[1],{ref:m,defId:h}=o(c);d.def={...d.schema},h&&(d.defId=h);const y=d.schema;for(const g in y)delete y[g];y.$ref=m};if(e.cycles==="throw")for(const c of e.seen.entries()){const d=c[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
119
119
 
120
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const d=c[1];if(t===c[0]){u(c);continue}if(e.external){const h=e.external.registry.get(c[0])?.id;if(t!==c[0]&&h){u(c);continue}}if(e.metadataRegistry.get(c[0])?.id){u(c);continue}if(d.cycle){u(c);continue}if(d.count>1&&e.reused==="ref"){u(c);continue}}}function s5(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=c=>{const d=e.seen.get(c);if(d.ref===null)return;const m=d.def??d.schema,h={...m},y=d.ref;if(d.ref=null,y){i(y);const E=e.seen.get(y),S=E.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(S)):Object.assign(m,S),Object.assign(m,h),c._zod.parent===y)for(const x in m)x==="$ref"||x==="allOf"||x in h||delete m[x];if(S.$ref&&E.def)for(const x in m)x==="$ref"||x==="allOf"||x in E.def&&JSON.stringify(m[x])===JSON.stringify(E.def[x])&&delete m[x]}const g=c._zod.parent;if(g&&g!==y){i(g);const E=e.seen.get(g);if(E?.schema.$ref&&(m.$ref=E.schema.$ref,E.def))for(const S in m)S==="$ref"||S==="allOf"||S in E.def&&JSON.stringify(m[S])===JSON.stringify(E.def[S])&&delete m[S]}e.override({zodSchema:c,jsonSchema:m,path:d.path??[]})};for(const c of[...e.seen.entries()].reverse())i(c[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}Object.assign(o,n.def??n.schema);const u=e.external?.defs??{};for(const c of e.seen.entries()){const d=c[1];d.def&&d.defId&&(u[d.defId]=d.def)}e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?o.$defs=u:o.definitions=u);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:_d(t,"input",e.processors),output:_d(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function dn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return dn(i.element,n);if(i.type==="set")return dn(i.valueType,n);if(i.type==="lazy")return dn(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return dn(i.innerType,n);if(i.type==="intersection")return dn(i.left,n)||dn(i.right,n);if(i.type==="record"||i.type==="map")return dn(i.keyType,n)||dn(i.valueType,n);if(i.type==="pipe")return dn(i.in,n)||dn(i.out,n);if(i.type==="object"){for(const o in i.shape)if(dn(i.shape[o],n))return!0;return!1}if(i.type==="union"){for(const o of i.options)if(dn(o,n))return!0;return!1}if(i.type==="tuple"){for(const o of i.items)if(dn(o,n))return!0;return!!(i.rest&&dn(i.rest,n))}return!1}const FL=(e,t={})=>n=>{const i=l5({...n,processors:t});return an(e,i),u5(i,e),s5(i,e)},_d=(e,t,n={})=>i=>{const{libraryOptions:o,target:u}=i??{},c=l5({...o??{},target:u,io:t,processors:n});return an(e,c),u5(c,e),s5(c,e)},jL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zL=(e,t,n,i)=>{const o=n;o.type="string";const{minimum:u,maximum:c,format:d,patterns:m,contentEncoding:h}=e._zod.bag;if(typeof u=="number"&&(o.minLength=u),typeof c=="number"&&(o.maxLength=c),d&&(o.format=jL[d]??d,o.format===""&&delete o.format,d==="time"&&delete o.format),h&&(o.contentEncoding=h),m&&m.size>0){const y=[...m];y.length===1?o.pattern=y[0].source:y.length>1&&(o.allOf=[...y.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},UL=(e,t,n,i)=>{const o=n,{minimum:u,maximum:c,format:d,multipleOf:m,exclusiveMaximum:h,exclusiveMinimum:y}=e._zod.bag;typeof d=="string"&&d.includes("int")?o.type="integer":o.type="number",typeof y=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=y,o.exclusiveMinimum=!0):o.exclusiveMinimum=y),typeof u=="number"&&(o.minimum=u,typeof y=="number"&&t.target!=="draft-04"&&(y>=u?delete o.minimum:delete o.exclusiveMinimum)),typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=h,o.exclusiveMaximum=!0):o.exclusiveMaximum=h),typeof c=="number"&&(o.maximum=c,typeof h=="number"&&t.target!=="draft-04"&&(h<=c?delete o.maximum:delete o.exclusiveMaximum)),typeof m=="number"&&(o.multipleOf=m)},HL=(e,t,n,i)=>{n.type="boolean"},VL=(e,t,n,i)=>{n.not={}},GL=(e,t,n,i)=>{},ZL=(e,t,n,i)=>{const o=e._zod.def,u=zx(o.entries);u.every(c=>typeof c=="number")&&(n.type="number"),u.every(c=>typeof c=="string")&&(n.type="string"),n.enum=u},YL=(e,t,n,i)=>{const o=e._zod.def,u=[];for(const c of o.values)if(c===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof c=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");u.push(Number(c))}else u.push(c);if(u.length!==0)if(u.length===1){const c=u[0];n.type=c===null?"null":typeof c,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[c]:n.const=c}else u.every(c=>typeof c=="number")&&(n.type="number"),u.every(c=>typeof c=="string")&&(n.type="string"),u.every(c=>typeof c=="boolean")&&(n.type="boolean"),u.every(c=>c===null)&&(n.type="null"),n.enum=u},qL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},KL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},WL=(e,t,n,i)=>{const o=n,u=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof d=="number"&&(o.maxItems=d),o.type="array",o.items=an(u.element,t,{...i,path:[...i.path,"items"]})},QL=(e,t,n,i)=>{const o=n,u=e._zod.def;o.type="object",o.properties={};const c=u.shape;for(const h in c)o.properties[h]=an(c[h],t,{...i,path:[...i.path,"properties",h]});const d=new Set(Object.keys(c)),m=new Set([...d].filter(h=>{const y=u.shape[h]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));m.size>0&&(o.required=Array.from(m)),u.catchall?._zod.def.type==="never"?o.additionalProperties=!1:u.catchall?u.catchall&&(o.additionalProperties=an(u.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},JL=(e,t,n,i)=>{const o=e._zod.def,u=o.inclusive===!1,c=o.options.map((d,m)=>an(d,t,{...i,path:[...i.path,u?"oneOf":"anyOf",m]}));u?n.oneOf=c:n.anyOf=c},XL=(e,t,n,i)=>{const o=e._zod.def,u=an(o.left,t,{...i,path:[...i.path,"allOf",0]}),c=an(o.right,t,{...i,path:[...i.path,"allOf",1]}),d=h=>"allOf"in h&&Object.keys(h).length===1,m=[...d(u)?u.allOf:[u],...d(c)?c.allOf:[c]];n.allOf=m},eP=(e,t,n,i)=>{const o=e._zod.def,u=an(o.innerType,t,i),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=o.innerType,n.nullable=!0):n.anyOf=[u,{type:"null"}]},tP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const u=t.seen.get(e);u.ref=o.innerType},nP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const u=t.seen.get(e);u.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},rP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const u=t.seen.get(e);u.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},aP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const u=t.seen.get(e);u.ref=o.innerType;let c;try{c=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=c},iP=(e,t,n,i)=>{const o=e._zod.def,u=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;an(u,t,i);const c=t.seen.get(e);c.ref=u},oP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const u=t.seen.get(e);u.ref=o.innerType,n.readOnly=!0},c5=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const u=t.seen.get(e);u.ref=o.innerType},lP=se("ZodISODateTime",(e,t)=>{cB.init(e,t),wt.init(e,t)});function uP(e){return hL(lP,e)}const sP=se("ZodISODate",(e,t)=>{dB.init(e,t),wt.init(e,t)});function cP(e){return yL(sP,e)}const dP=se("ZodISOTime",(e,t)=>{fB.init(e,t),wt.init(e,t)});function fP(e){return gL(dP,e)}const mP=se("ZodISODuration",(e,t)=>{mB.init(e,t),wt.init(e,t)});function pP(e){return bL(mP,e)}const hP=(e,t)=>{Zx.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>nk(e,n)},flatten:{value:n=>tk(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,s0,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,s0,2)}},isEmpty:{get(){return e.issues.length===0}}})},cr=se("ZodError",hP,{Parent:Error}),yP=vy(cr),gP=_y(cr),bP=Xd(cr),vP=ef(cr),_P=ik(cr),EP=ok(cr),SP=lk(cr),DP=uk(cr),$P=sk(cr),xP=ck(cr),CP=dk(cr),AP=fk(cr),Bt=se("ZodType",(e,t)=>(kt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:_d(e,"input"),output:_d(e,"output")}}),e.toJSONSchema=FL(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ei(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>ti(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>yP(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>bP(e,n,i),e.parseAsync=async(n,i)=>gP(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>vP(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>_P(e,n,i),e.decode=(n,i)=>EP(e,n,i),e.encodeAsync=async(n,i)=>SP(e,n,i),e.decodeAsync=async(n,i)=>DP(e,n,i),e.safeEncode=(n,i)=>$P(e,n,i),e.safeDecode=(n,i)=>xP(e,n,i),e.safeEncodeAsync=async(n,i)=>CP(e,n,i),e.safeDecodeAsync=async(n,i)=>AP(e,n,i),e.refine=(n,i)=>e.check(DI(n,i)),e.superRefine=n=>e.check($I(n)),e.overwrite=n=>e.check(fl(n)),e.optional=()=>e3(e),e.exactOptional=()=>cI(e),e.nullable=()=>t3(e),e.nullish=()=>e3(t3(e)),e.nonoptional=n=>yI(e,n),e.array=()=>XP(e),e.or=n=>m5([e,n]),e.and=n=>aI(e,n),e.transform=n=>n3(e,uI(n)),e.default=n=>mI(e,n),e.prefault=n=>hI(e,n),e.catch=n=>bI(e,n),e.pipe=n=>n3(e,n),e.readonly=()=>EI(e),e.describe=n=>{const i=e.clone();return _u.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return _u.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return _u.get(e);const i=e.clone();return _u.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),d5=se("_ZodString",(e,t)=>{Ey.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,u)=>zL(e,i,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check($L(...i)),e.includes=(...i)=>e.check(AL(...i)),e.startsWith=(...i)=>e.check(wL(...i)),e.endsWith=(...i)=>e.check(TL(...i)),e.min=(...i)=>e.check(vd(...i)),e.max=(...i)=>e.check(i5(...i)),e.length=(...i)=>e.check(o5(...i)),e.nonempty=(...i)=>e.check(vd(1,...i)),e.lowercase=i=>e.check(xL(i)),e.uppercase=i=>e.check(CL(i)),e.trim=()=>e.check(ML()),e.normalize=(...i)=>e.check(NL(...i)),e.toLowerCase=()=>e.check(RL()),e.toUpperCase=()=>e.check(OL()),e.slugify=()=>e.check(kL())}),wP=se("ZodString",(e,t)=>{Ey.init(e,t),d5.init(e,t),e.email=n=>e.check(qB(TP,n)),e.url=n=>e.check(XB(NP,n)),e.jwt=n=>e.check(pL(GP,n)),e.emoji=n=>e.check(eL(MP,n)),e.guid=n=>e.check(Y1(Q1,n)),e.uuid=n=>e.check(KB(Mc,n)),e.uuidv4=n=>e.check(WB(Mc,n)),e.uuidv6=n=>e.check(QB(Mc,n)),e.uuidv7=n=>e.check(JB(Mc,n)),e.nanoid=n=>e.check(tL(RP,n)),e.guid=n=>e.check(Y1(Q1,n)),e.cuid=n=>e.check(nL(OP,n)),e.cuid2=n=>e.check(rL(kP,n)),e.ulid=n=>e.check(aL(BP,n)),e.base64=n=>e.check(dL(UP,n)),e.base64url=n=>e.check(fL(HP,n)),e.xid=n=>e.check(iL(LP,n)),e.ksuid=n=>e.check(oL(PP,n)),e.ipv4=n=>e.check(lL(IP,n)),e.ipv6=n=>e.check(uL(FP,n)),e.cidrv4=n=>e.check(sL(jP,n)),e.cidrv6=n=>e.check(cL(zP,n)),e.e164=n=>e.check(mL(VP,n)),e.datetime=n=>e.check(uP(n)),e.date=n=>e.check(cP(n)),e.time=n=>e.check(fP(n)),e.duration=n=>e.check(pP(n))});function ja(e){return YB(wP,e)}const wt=se("ZodStringFormat",(e,t)=>{At.init(e,t),d5.init(e,t)}),TP=se("ZodEmail",(e,t)=>{tB.init(e,t),wt.init(e,t)}),Q1=se("ZodGUID",(e,t)=>{Xk.init(e,t),wt.init(e,t)}),Mc=se("ZodUUID",(e,t)=>{eB.init(e,t),wt.init(e,t)}),NP=se("ZodURL",(e,t)=>{nB.init(e,t),wt.init(e,t)}),MP=se("ZodEmoji",(e,t)=>{rB.init(e,t),wt.init(e,t)}),RP=se("ZodNanoID",(e,t)=>{aB.init(e,t),wt.init(e,t)}),OP=se("ZodCUID",(e,t)=>{iB.init(e,t),wt.init(e,t)}),kP=se("ZodCUID2",(e,t)=>{oB.init(e,t),wt.init(e,t)}),BP=se("ZodULID",(e,t)=>{lB.init(e,t),wt.init(e,t)}),LP=se("ZodXID",(e,t)=>{uB.init(e,t),wt.init(e,t)}),PP=se("ZodKSUID",(e,t)=>{sB.init(e,t),wt.init(e,t)}),IP=se("ZodIPv4",(e,t)=>{pB.init(e,t),wt.init(e,t)}),FP=se("ZodIPv6",(e,t)=>{hB.init(e,t),wt.init(e,t)}),jP=se("ZodCIDRv4",(e,t)=>{yB.init(e,t),wt.init(e,t)}),zP=se("ZodCIDRv6",(e,t)=>{gB.init(e,t),wt.init(e,t)}),UP=se("ZodBase64",(e,t)=>{bB.init(e,t),wt.init(e,t)}),HP=se("ZodBase64URL",(e,t)=>{_B.init(e,t),wt.init(e,t)}),VP=se("ZodE164",(e,t)=>{EB.init(e,t),wt.init(e,t)}),GP=se("ZodJWT",(e,t)=>{DB.init(e,t),wt.init(e,t)}),f5=se("ZodNumber",(e,t)=>{t5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,u)=>UL(e,i,o),e.gt=(i,o)=>e.check(K1(i,o)),e.gte=(i,o)=>e.check(oh(i,o)),e.min=(i,o)=>e.check(oh(i,o)),e.lt=(i,o)=>e.check(q1(i,o)),e.lte=(i,o)=>e.check(ih(i,o)),e.max=(i,o)=>e.check(ih(i,o)),e.int=i=>e.check(J1(i)),e.safe=i=>e.check(J1(i)),e.positive=i=>e.check(K1(0,i)),e.nonnegative=i=>e.check(oh(0,i)),e.negative=i=>e.check(q1(0,i)),e.nonpositive=i=>e.check(ih(0,i)),e.multipleOf=(i,o)=>e.check(W1(i,o)),e.step=(i,o)=>e.check(W1(i,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),ZP=se("ZodNumberFormat",(e,t)=>{$B.init(e,t),f5.init(e,t)});function J1(e){return _L(ZP,e)}const YP=se("ZodBoolean",(e,t)=>{xB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>HL(e,n,i)});function qP(e){return EL(YP,e)}const KP=se("ZodUnknown",(e,t)=>{CB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>GL()});function X1(){return SL(KP)}const WP=se("ZodNever",(e,t)=>{AB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>VL(e,n,i)});function QP(e){return DL(WP,e)}const JP=se("ZodArray",(e,t)=>{wB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>WL(e,n,i,o),e.element=t.element,e.min=(n,i)=>e.check(vd(n,i)),e.nonempty=n=>e.check(vd(1,n)),e.max=(n,i)=>e.check(i5(n,i)),e.length=(n,i)=>e.check(o5(n,i)),e.unwrap=()=>e.element});function XP(e,t){return BL(JP,e,t)}const eI=se("ZodObject",(e,t)=>{NB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>QL(e,n,i,o),mt(e,"shape",()=>t.shape),e.keyof=()=>zo(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:X1()}),e.loose=()=>e.clone({...e._zod.def,catchall:X1()}),e.strict=()=>e.clone({...e._zod.def,catchall:QP()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>WO(e,n),e.safeExtend=n=>QO(e,n),e.merge=n=>JO(e,n),e.pick=n=>qO(e,n),e.omit=n=>KO(e,n),e.partial=(...n)=>XO(p5,e,n[0]),e.required=(...n)=>ek(h5,e,n[0])});function tI(e,t){const n={type:"object",shape:e??{},...Le(t)};return new eI(n)}const nI=se("ZodUnion",(e,t)=>{MB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>JL(e,n,i,o),e.options=t.options});function m5(e,t){return new nI({type:"union",options:e,...Le(t)})}const rI=se("ZodIntersection",(e,t)=>{RB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>XL(e,n,i,o)});function aI(e,t){return new rI({type:"intersection",left:e,right:t})}const d0=se("ZodEnum",(e,t)=>{OB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,u)=>ZL(e,i,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,o)=>{const u={};for(const c of i)if(n.has(c))u[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new d0({...t,checks:[],...Le(o),entries:u})},e.exclude=(i,o)=>{const u={...t.entries};for(const c of i)if(n.has(c))delete u[c];else throw new Error(`Key ${c} not found in enum`);return new d0({...t,checks:[],...Le(o),entries:u})}});function zo(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new d0({type:"enum",entries:n,...Le(t)})}const iI=se("ZodLiteral",(e,t)=>{kB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>YL(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function oI(e,t){return new iI({type:"literal",values:Array.isArray(e)?e:[e],...Le(t)})}const lI=se("ZodTransform",(e,t)=>{BB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>KL(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Fx(e.constructor.name);n.addIssue=u=>{if(typeof u=="string")n.issues.push(Iu(u,n.value,t));else{const c=u;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=n.value),c.inst??(c.inst=e),n.issues.push(Iu(c))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(u=>(n.value=u,n)):(n.value=o,n)}});function uI(e){return new lI({type:"transform",transform:e})}const p5=se("ZodOptional",(e,t)=>{a5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>c5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function e3(e){return new p5({type:"optional",innerType:e})}const sI=se("ZodExactOptional",(e,t)=>{LB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>c5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function cI(e){return new sI({type:"optional",innerType:e})}const dI=se("ZodNullable",(e,t)=>{PB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>eP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function t3(e){return new dI({type:"nullable",innerType:e})}const fI=se("ZodDefault",(e,t)=>{IB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>nP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mI(e,t){return new fI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Hx(t)}})}const pI=se("ZodPrefault",(e,t)=>{FB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>rP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function hI(e,t){return new pI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Hx(t)}})}const h5=se("ZodNonOptional",(e,t)=>{jB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>tP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function yI(e,t){return new h5({type:"nonoptional",innerType:e,...Le(t)})}const gI=se("ZodCatch",(e,t)=>{zB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>aP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bI(e,t){return new gI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const vI=se("ZodPipe",(e,t)=>{UB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>iP(e,n,i,o),e.in=t.in,e.out=t.out});function n3(e,t){return new vI({type:"pipe",in:e,out:t})}const _I=se("ZodReadonly",(e,t)=>{HB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>oP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function EI(e){return new _I({type:"readonly",innerType:e})}const SI=se("ZodCustom",(e,t)=>{VB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>qL(e,n)});function DI(e,t={}){return LL(SI,e,t)}function $I(e){return PL(e)}const f0={custom:"custom"};function Gt(e){return vL(f5,e)}const xI=["additional_pip","tort_threshold","pip_coverage_type","extended_medical","policy_pip_deductible"],CI=new Set([...xI,"is_corporation"]);tI({additional_pip:zo(["cov100_10400_LIMITED","cov125_13000_LIMITED","cov175_18200_LIMITED","cov250_26000_LIMITED","cov400_41600_LIMITED","cov500_52000_LIMITED","cov600_62400_LIMITED","cov700_72800_LIMITED","cov100_UNLIMITED","cov125_UNLIMITED","cov175_UNLIMITED","cov250_UNLIMITED","cov400_UNLIMITED","cov500_UNLIMITED","cov600_UNLIMITED","cov700_UNLIMITED"]),tort_threshold:zo(["Verbal_Threshold","Zero_Threshold"]),pip_coverage_type:zo(["Primary","Secondary"]),extended_medical:zo(["cov1000","cov10000"]),policy_pip_deductible:zo(["cov250","cov500","cov1000","cov2000","cov2500"]),has_health_insurance_auto_accident:qP().nullable().optional()}).superRefine((e,t)=>{e.pip_coverage_type==="Secondary"&&e.has_health_insurance_auto_accident!==!0&&t.addIssue({code:f0.custom,path:["pip_coverage_type"],message:"Secondary PIP coverage requires health insurance that covers auto accidents."})});const AI=new Set(["Home","HomeConstruction","HomeFeatures","Demographics"]),wI=new Set(["HomePolicy","BundlePolicy"]),TI=new Set(["HomeCustomer","BundleCustomer","Demographics"]);function Ed(e){if(typeof e!="string"||!e.trim())return!1;const t=e.trim().toLowerCase();return t==="nj"||t==="n.j."||t==="n.j"||t==="new jersey"}function r3(e){return e?Ed(e.state??e.State):!1}function nf(e,t,n){return e==="has_health_insurance_auto_accident"?t==="BundleCustomer"||t==="Demographics"?!1:!r3(n):CI.has(e)?!r3(n):e==="household_size"?!(t&&AI.has(t)):e==="number_of_mortgagees"?!(t&&wI.has(t)):(e==="has_co_applicant"||e==="co_applicant_middle_name"||e==="co_applicant_relationship")&&t&&TI.has(t)?!1:e==="multi_policy_discount"&&t==="HomePolicy"?!0:NI.has(e)}const NI=new Set(["anti_theft_type","passive_restraint_type","anti_lock_brakes","daytime_running_lights","vehicle_full_glass","vehicle_loan_lease","percent_to_work","stated_value_amount_cents","vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor","vehicle_transportation_expense","accident_prevention_course","driver_accidents","driver_violations","losses","middle_name","ssn_display","auto_current_annual_premium_cents","has_co_applicant","co_applicant_middle_name","co_applicant_relationship"]),y5=new Date().getUTCFullYear(),Rc=ja().trim().min(1,"Required").regex(/^[A-Za-z\s]+$/,"Only alphabetic characters are allowed."),a3=m5([oI(""),ja().trim().regex(/^[A-Za-z\s]*$/,"Only alphabetic characters are allowed.")]).optional(),MI=(e,t,n)=>Gt({error:`${e} must be a number.`}).min(t,`${e} must be between ${t.toLocaleString("en-US")} and ${n.toLocaleString("en-US")}.`).max(n,`${e} must be between ${t.toLocaleString("en-US")} and ${n.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`),Fo=(e,t)=>Gt({error:`${e} must be a number.`}).min(0,`${e} must be between 0 and ${t.toLocaleString("en-US")}.`).max(t,`${e} must be between 0 and ${t.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`),Oc=(e,t=1600)=>Gt({error:`${e} must be a valid 4-digit year.`}).int(`${e} must be a whole number.`).min(t,`${e} should be between ${t} and the current year.`).max(y5,`${e} cannot be in the future.`),kc=e=>Gt({error:`${e} must be a number.`}).int(`${e} must be a whole number.`).min(0,`${e} must be between 0 and 99.`).max(99,`${e} must be between 0 and 99.`),fu=(e,t,n=0)=>{const i=Math.pow(10,t)-1,o=i.toLocaleString("en-US"),u=n.toLocaleString("en-US");return Gt({error:`${e} must be a number.`}).min(n,`${e}: Value must be between ${u} and ${o}.`).max(i,`${e}: Value must be between ${u} and ${o}.`).int(`${e} must be a whole number.`)},RI={email:ja().trim().min(1,"Required").email("Please enter a valid email address."),phone:ja().trim().min(1,"Required").refine(e=>{let t=e.replace(/\D/g,"");return t.length===11&&t.startsWith("1")&&(t=t.slice(1)),t.length===10},"Please enter a valid 10-digit US phone number."),social_security_number:ja().trim().refine(e=>e===""||/^\d{3}-\d{2}-\d{4}$/.test(e),"Social Security Number must be in the format XXX-XX-XXXX.").optional(),sms_code:ja().trim().min(1,"Required").regex(/^\d{6}$/,"Please enter the 6-digit code."),first_name:Rc,last_name:Rc,middle_name:a3,co_applicant_first_name:Rc,co_applicant_last_name:Rc,co_applicant_middle_name:a3,year_built:Oc("Year built",1800),year_roof_updated:Gt({error:"Please enter a valid 4-digit year."}).int("Year must be a whole number.").min(1e3,"Please enter a valid 4-digit year.").max(9999,"Please enter a valid 4-digit year."),heating_update_year:Oc("Heating update year"),plumbing_update_year:Oc("Plumbing update year"),electrical_update_year:Oc("Electrical update year"),total_area_sq_ft:MI("Square footage",1,999999),sale_price_cents:Gt({error:"Purchase Price must be a number."}).min(1,"Purchase Price must be between 1 and 21,474,836.").max(21474836,"Purchase Price must be between 1 and 21,474,836.").int("Purchase Price must be a whole number."),home_prior_years:kc("Number of years with your prior carrier"),home_continuous_coverage_years:kc("How long you have had continuous home coverage"),household_size:Gt({error:"Household size must be a number."}).min(1,"Occupants must be between 1 and 8.").max(8,"Occupants must be between 1 and 8.").int("Occupants must be between 1 and 8."),number_of_mortgagees:Gt({error:"Number of mortgagees must be a number."}).int().min(0,"Number of mortgagees cannot be negative.").max(3,"Number of mortgagees must be between 0 and 3."),dwelling_replacement_cost:fu("Replacement cost",9,1),other_structures_coverage:fu("Other structures",9),personal_property_coverage:fu("Personal property",7),loss_of_use_coverage:fu("Loss of use coverage",8),years_at_address:Gt({error:"Years at address must be a number."}).int().min(0,"Years at address cannot be negative.").max(100,"Years at address must be 100 or less."),months_at_address:Gt({error:"Months at address must be a number."}).int().min(0,"Months at address cannot be negative.").max(11,"Months at address must be between 0 and 11."),years_at_prior_address:Gt({error:"Years at prior address must be a number."}).int().min(0,"Years at prior address cannot be negative.").max(100,"Years at prior address must be 100 or less."),number_of_units:Gt({error:"Number of units must be a number."}).int().min(1,"Number of units/apartments should be greater than 0.").max(99,"Number of units/apartments must be between 1 and 99."),number_of_families:Gt({error:"Number of families must be a number."}).int("Number of families must be a whole number.").refine(e=>e>=1&&e<=5,{message:"Number of families must be between 1 and 5."}),number_of_dogs:Gt({error:"Number of dogs must be a number."}).int().min(0,"Number of dogs must be between 0 and 99.").max(99,"Number of dogs must be between 0 and 99."),distance_to_coast_miles:Gt({error:"Distance to coast must be a number."}).int().min(0,"Distance to coast cannot be negative.").max(9999,"Distance to coast must be at most 4 digits."),amount_paid_cents:fu("Amount paid",7),license_number:ja().trim().min(1,"Required").max(20,"License number must be 20 characters or fewer.").regex(/^[A-Z0-9]+$/i,"License number must contain only letters and numbers."),vin:ja().superRefine((e,t)=>{if(typeof e!="string"||e.trim()==="")return;if(/\s/.test(e)){t.addIssue({code:f0.custom,message:"VIN cannot contain spaces."});return}const n=e.trim();/^[A-HJ-NPR-Z0-9]{17}$/i.test(n)||t.addIssue({code:f0.custom,message:"VIN must be exactly 17 letters and numbers (excluding I, O, and Q)."})}),annual_mileage:Gt({error:"Annual mileage must be a number."}).int("Annual mileage must be a whole number.").min(1e3,"Vehicle annual use should be between 1,000 & 100,000 miles.").max(1e5,"Vehicle annual use should be between 1,000 & 100,000 miles."),miles_to_work:Gt({error:"Miles driven to work/school must be a number."}).int("Miles driven to work/school must be a whole number.").min(1,"Please enter a value greater than 0.").max(9999,"Miles driven to work/school must be between 1 and 9,999."),custom_equipment_value_cents:Fo("Modifications value",9999999),cost_new_value_cents:Fo("Cost new value",9999999),stated_value_amount_cents:Fo("Stated Value Amount",9999999),property_damage_amount_paid_cents:Fo("Property damage amount paid",9999999),personal_injury_amount_paid_cents:Fo("Personal injury amount paid",9999999),auto_current_annual_premium_cents:Fo("Current annual premium",9999999),auto_prior_years:kc("Years with prior auto carrier"),auto_prior_months:Gt({error:"Months with prior carrier must be a number."}).int().min(0,"Months with prior carrier must be between 0 and 11.").max(11,"Months with prior carrier must be between 0 and 11."),auto_continuous_coverage_years:kc("Years with continuous auto coverage")};function It(e){return new Date(`${e}T00:00:00Z`)}function nn(){const e=new Date;return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function Ba(e,t){let n=t.getUTCFullYear()-e.getUTCFullYear();const i=t.getUTCMonth()-e.getUTCMonth();return(i<0||i===0&&t.getUTCDate()<e.getUTCDate())&&n--,n}const g5=[{targetKey:"social_security_number",dependsOn:["social_security_number","state"],validate:e=>{if(!("social_security_number"in e)||!Ed(e.state))return;const t=e.social_security_number;return(typeof t=="string"?t.trim():"")===""?"Social Security Number is required in New Jersey.":void 0}},{targetKey:"date_of_birth",dependsOn:["date_of_birth"],validate:e=>{const t=e.date_of_birth;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":Ba(n,nn())<18?"Applicant can't be under the age of 18.":void 0}},{targetKey:"co_applicant_date_of_birth",dependsOn:["co_applicant_date_of_birth"],validate:e=>{const t=e.co_applicant_date_of_birth;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":Ba(n,nn())<16?"Co-applicant can't be under the age of 16.":void 0}},{targetKey:"year_roof_updated",dependsOn:["year_roof_updated","year_built"],validate:e=>{const t=Number(e.year_roof_updated),n=Number(e.year_built);if(isNaN(t))return;const i=isNaN(n)?1e3:n;if(t<i||t>y5)return"Roof renovation/replacement year must be between the home's build year and the current year."}},{targetKey:"move_in_date",dependsOn:["move_in_date","year_built"],validate:e=>{const t=e.move_in_date,n=e.year_built;if(!t||n==null)return;const i=It(String(t));if(isNaN(i.getTime()))return;const o=Number(n);if(!isNaN(o))return i.getUTCFullYear()<o?"Purchase date cannot be prior to the year the building was originally constructed.":void 0}},{targetKey:"date_first_licensed",dependsOn:["date_first_licensed"],validate:e=>{const t=e.date_first_licensed;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Date first licensed cannot be in the future.":void 0}},{targetKey:"date_first_licensed",dependsOn:["date_first_licensed","date_of_birth"],validate:e=>{const t=e.date_first_licensed,n=e.date_of_birth;if(!t||typeof t!="string"||!n||typeof n!="string")return;const i=It(n),o=It(t);if(isNaN(i.getTime())||isNaN(o.getTime()))return;if(o<i)return"Date licensed cannot be before driver date of birth.";const u=new Date(Date.UTC(i.getUTCFullYear()+16,i.getUTCMonth(),i.getUTCDate()));return o<u?"Driver must be at least 16 years old at the date first licensed.":void 0}},{targetKey:"occurred_at",dependsOn:["occurred_at"],validate:e=>{const t=e.occurred_at;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Incident date cannot be in the future.":void 0}},{targetKey:"accident_prevention_course_date",dependsOn:["accident_prevention_course_date"],validate:e=>{const t=e.accident_prevention_course_date;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Course date cannot be in the future.":void 0}},{targetKey:"effective_date",dependsOn:["effective_date"],validate:e=>{const t=e.effective_date;if(!t||typeof t!="string")return;const n=It(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth()+3,i.getUTCDate()));if(n<i)return"Insurance start date cannot be in the past.";if(n>o)return"Insurance must begin within 3 months from today."}},{targetKey:"years_at_address",dependsOn:["years_at_address","date_of_birth"],validate:e=>{const t=e.years_at_address,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const u=Ba(o,nn());return i>u?"Time at address cannot be greater than the applicant age.":void 0}},{targetKey:"years_at_prior_address",dependsOn:["years_at_prior_address","date_of_birth"],validate:e=>{const t=e.years_at_prior_address,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const u=Ba(o,nn());return i>u?"Years at prior address cannot be greater than the applicant age.":void 0}},{targetKey:"home_prior_years",dependsOn:["home_prior_years","home_continuous_coverage_years"],validate:e=>{const t=e.home_prior_years,n=e.home_continuous_coverage_years;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o)))return i>o?"Years with prior carrier cannot be higher than years with continuous coverage.":void 0}},{targetKey:"home_prior_years",dependsOn:["home_prior_years","date_of_birth"],validate:e=>{const t=e.home_prior_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const u=Ba(o,nn());return i>u?"Years with prior carrier cannot be greater than the Applicant's age.":void 0}},{targetKey:"home_continuous_coverage_years",dependsOn:["home_continuous_coverage_years","date_of_birth"],validate:e=>{const t=e.home_continuous_coverage_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const u=Ba(o,nn());return i>u?"Years with continuous home coverage cannot be greater than the Applicant's age.":void 0}},{targetKey:"move_in_date",dependsOn:["move_in_date"],validate:e=>{const t=e.move_in_date;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Purchase date cannot be in the future.":void 0}},{targetKey:"date_of_incident",dependsOn:["date_of_incident"],validate:e=>{const t=e.date_of_incident;if(!t||typeof t!="string")return;const n=It(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn();return n>i?"Loss date cannot be in the future.":void 0}},{targetKey:"home_prior_expiration_date",dependsOn:["home_prior_expiration_date"],validate:e=>{const t=e.home_prior_expiration_date;if(!t||typeof t!="string")return;const n=It(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear()-1,i.getUTCMonth(),i.getUTCDate())),u=new Date(Date.UTC(i.getUTCFullYear()+1,i.getUTCMonth(),i.getUTCDate()));if(n<o||n>u)return"Policy expiration date must be between 1 year ago and 1 year from now."}},{targetKey:"purchase_date",dependsOn:["purchase_date"],validate:e=>{const t=e.purchase_date;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Vehicle purchase date cannot be in the future.":void 0}},{targetKey:"purchase_date",dependsOn:["purchase_date","year"],validate:e=>{const t=e.purchase_date,n=e.year;if(!t||typeof t!="string"||n==null)return;const i=It(t);if(isNaN(i.getTime()))return;const o=Number(n);if(!isNaN(o))return i.getUTCFullYear()<o?"The year the vehicle was purchased is not valid with the model year.":void 0}},{targetKey:"auto_prior_expiration_date",dependsOn:["auto_prior_expiration_date"],validate:e=>{const t=e.auto_prior_expiration_date;if(!t||typeof t!="string")return;const n=It(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear()-1,i.getUTCMonth(),i.getUTCDate())),u=new Date(Date.UTC(i.getUTCFullYear()+1,i.getUTCMonth(),i.getUTCDate()));if(n<o||n>u)return"Auto policy expiration date must be between 1 year ago and 1 year from now."}},{targetKey:"auto_prior_years",dependsOn:["auto_prior_years","auto_continuous_coverage_years"],validate:e=>{const t=e.auto_prior_years,n=e.auto_continuous_coverage_years;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o)))return i>o?"Years with prior auto carrier cannot be higher than years with continuous coverage.":void 0}},{targetKey:"auto_prior_years",dependsOn:["auto_prior_years","date_of_birth"],validate:e=>{const t=e.auto_prior_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const u=Ba(o,nn());return i>u?"Years with prior auto carrier cannot be greater than the Applicant's age.":void 0}},{targetKey:"auto_continuous_coverage_years",dependsOn:["auto_continuous_coverage_years","date_of_birth"],validate:e=>{const t=e.auto_continuous_coverage_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const u=Ba(o,nn());return i>u?"Years with continuous auto coverage cannot be greater than the Applicant's age.":void 0}},{targetKey:"vehicle_coll_deductible",dependsOn:["vehicle_coll_deductible","vehicle_comp_deductible"],validate:e=>{const t=e.vehicle_coll_deductible,n=e.vehicle_comp_deductible;if(!(!t||typeof t!="string"||!n||typeof n!="string")&&n==="NoCoverage"&&t!=="NoCoverage")return"Collision Coverage cannot be chosen if Comprehensive is No Coverage."}},{targetKey:"policy_um",dependsOn:["policy_um","policy_bi"],validate:e=>{const t=e.policy_um,n=e.policy_bi;if(!t||typeof t!="string"||!n||typeof n!="string"||t==="Reject"||n==="Dontknow")return;const i=h=>h.endsWith("CSL"),o=i(t),u=i(n);if(o&&!u)return"A Combined Single Limit cannot be selected for Uninsured/Underinsured Motorist unless a Combined Single Limit has also been selected for Liability.";const c={cov30to60:30,cov50to100:50,cov100to100:100,cov100to300:100,cov250to500:250,cov300to300:300,cov500to500:500,cov100CSL:100,cov300CSL:300,cov500CSL:500},d=c[t],m=c[n];if(d!=null&&m!=null&&d>m)return"Uninsured/Underinsured Motorist Limit value cannot be greater than Bodily Injury Limit value."}},{targetKey:"policy_umpd",dependsOn:["policy_umpd","policy_pd"],validate:e=>{const t=e.policy_umpd,n=e.policy_pd;if(!t||typeof t!="string"||!n||typeof n!="string"||t==="NoCoverage"||n==="Dontknow")return;const i=c=>{if(!c.startsWith("cov"))return null;const d=parseInt(c.replace("cov",""),10);return isNaN(d)?null:d},o=i(t),u=i(n);if(o!=null&&u!=null&&o>u)return"Uninsured Motorist Property Damage Limit value cannot be greater than Liability Property Damage Limit value."}},{targetKey:"custom_equipment_value_cents",dependsOn:["custom_equipment_value_cents","stated_value_amount_cents"],validate:e=>{const t=e.custom_equipment_value_cents,n=e.stated_value_amount_cents;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o))&&o>0&&i>0)return"Modifications should be included in the stated value of the vehicle. If a stated value quote is not required, remove the stated value."}}];function m0(e,t){const n=RI[e];if(!n)return;const i=n.safeParse(t);return i.success?void 0:i.error.issues[0].message}function i3(e){if(/\s/.test(e))return!1;const t=e.trim();return t.length===17&&/^[A-HJ-NPR-Z0-9]{17}$/i.test(t)}function OI(e,t){const n={};for(const i of g5){if(t?.has(i.targetKey))continue;const o=i.validate(e);o&&(n[i.targetKey]=o)}return n}function Sd(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function Ya(e,t){return e.key??`${Sd(e.question)}-${t}`}function Cr(e,t){return t==="number"?e==null||typeof e=="string"&&e.trim()==="":t==="checkbox"?e!==!0:e==null||typeof e=="string"&&e.trim()===""}function Fu(e,t){const n={};e.forEach((c,d)=>{const m=Ya(c,d),h=t[m];if(c.required&&Cr(h,c.inputType)){n[m]="Required";return}if(!Cr(h,c.inputType)){const y=m0(m,h);if(y){n[m]=y;return}}});const i={...t};e.forEach((c,d)=>{const m=Ya(c,d);m in i||(i[m]="")});const o=new Set(Object.keys(n).filter(c=>n[c])),u=OI(i,o);for(const[c,d]of Object.entries(u))n[c]=d;return n}function kI(e){if(e===""||e===null||e===void 0)return;const t=Number(e);return Number.isNaN(t)?void 0:t}const BI={NoPriorInsurance:"No Prior Insurance",TwentyFirstCentury:"21st Century",ACentral:"A.Central",AAA:"AAA",AARP:"AARP",Acadia:"Acadia",Ace:"Ace",Acuity:"Acuity",AdirondackInsExchange:"Adirondack Ins Exchange",Aegis:"Aegis",AIC:"AIC",AIG:"AIG",AlfaAlliance:"Alfa Alliance",Allied:"Allied",Allstate:"Allstate",AmericaFirst:"America First",AmericanCommerce:"American Commerce",AmericanFamily:"American Family",Amica:"Amica",ASILloyds:"ASI Lloyds",AustinMutual:"Austin Mutual",Autoone:"Autoone",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bankers:"Bankers",BeaconNational:"Beacon National",BrethernMutual:"Brethern Mutual",BristolWest:"Bristol West",CapitalInsuranceGroup:"Capital Insurance Group",Celina:"Celina",CentralMutualOfOH:"Central Mutual of OH",Chubb:"Chubb",Cincinnati:"Cincinnati",Clearcover:"Clearcover",CNA:"CNA",ColonialPenn:"Colonial Penn",ColoradoCasualty:"Colorado Casualty",Columbia:"Columbia",CommerceWest:"Commerce West",CommonwealthCasualty:"Commonwealth Casualty",Ameriprise:"CONNECT",ConstitutionalCasualty:"Constitutional Casualty",Cornerstone:"Cornerstone",Countrywide:"Countrywide",CSE:"CSE",Cumberland:"Cumberland",Dairyland:"Dairyland",Deerbrook:"Deerbrook",Direct:"Direct",Donegal:"Donegal",Drive:"Drive",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",Explorer:"Explorer",FarmBureau:"Farm Bureau",Farmers:"Farmers",FiremansFund:"Firemans Fund",FirstAmerican:"First American",Foremost:"Foremost",Geico:"Geico",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",GreatAmerican:"Great American",Grinnell:"Grinnell",GuideOne:"Guide One",Hanover:"Hanover",Harbor:"Harbor",Harleysville:"Harleysville",HartfordOMNI:"Hartford OMNI",Hartford:"Hartford",HastingsMutual:"Hastings Mutual",HawkeyeSecurity:"Hawkeye Security",HDI:"HDI",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",IFA:"IFA",ImperialCasualty:"Imperial Casualty",IndianaFarmers:"Indiana Farmers",Indiana:"Indiana",Infinity:"Infinity",Insurequest:"Insurequest",Integon:"Integon",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",MainStreetAmerica:"Main Street America",Mapfre:"Mapfre",Mendota:"Mendota",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",Metropolitan:"Metropolitan",MidContinent:"Mid-Continent",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MtWashington:"Mt. Washington",MutualBenefit:"Mutual Benefit",NationalGeneral:"National General",Nationwide:"Nationwide",NewYorkCentralMutual:"New York Central Mutual",NJManufacturers:"NJ Manufacturers",NJSkylands:"NJ Skylands",Northstar:"Northstar",Occidental:"Occidental",OhioCasualty:"Ohio Casualty",OmahaPC:"Omaha P/C",OneBeacon:"One Beacon",OregonMutual:"Oregon Mutual",Palisades:"Palisades",PeerlessMontgomery:"Peerless/Montgomery",Pekin:"Pekin",Pemco:"Pemco",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Proformance:"Proformance",Progressive:"Progressive",Prudential:"Prudential",Republic:"Republic",RockfordMutual:"Rockford Mutual",RoyalAndSunAlliance:"Royal and Sun Alliance",Safeco:"Safeco",SECURA:"SECURA",Selective:"Selective",SouthernCounty:"Southern County",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul/Travelers",StandardMutual:"Standard Mutual",StarCasualty:"Star Casualty",StateAuto:"State Auto",StateFarm:"State Farm",Fidelity:"Stillwater",Travelers:"Travelers",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire and Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Victoria:"Victoria",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve Group",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Windsor:"Windsor",Zurich:"Zurich",OtherStandard:"Other Standard",OtherNonStandard:"Other Non-Standard"},LI={OwnHome:"Own Home",OwnCondo:"Own Condo",RentHome:"Rent Home",RentCondo:"Rent Condo",RentApartment:"Rent Apartment",LiveWithParents:"Live With Parents"},PI={TwentyFirstCentury:"21st Century",AAA:"AAA",Acuity:"Acuity",AdirondackInsExchange:"Adirondack Ins Exchange",AIG:"AIG",AlfaAlliance:"Alfa Alliance",AllianzOfAmerica:"Allianz of America",AllianzOfAmericaJefferson:"Allianz of America-Jefferson",Allied:"Allied",Allmerica:"Allmerica",Allstate:"Allstate",AmericaFirst:"America First",AmericanFamily:"American Family",AmericanCommerce:"American Commerce",Amica:"Amica",ASILloyds:"ASI Lloyds",Assurant:"Assurant",AtlasGeneralAgency:"Atlas General Agency",AustinMutual:"Austin Mutual",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bamboo:"Bamboo",BeaconNational:"Beacon National",BunkerHill:"Bunker Hill",CapitalInsuranceGroup:"Capital Insurance Group",CentralMutualOfOH:"Central Mutual of OH",ChubbInsurance:"Chubb",Cincinnati:"Cincinnati",Citizens:"Citizens",ColoradoCasualty:"Colorado Casualty",Ameriprise:"CONNECT",CSE:"CSE",Cumberland:"Cumberland",Cypress:"Cypress",Dairyland:"Dairyland",Donegal:"Donegal",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",ExcelsiorInsuranceCompany:"Excelsior Insurance Company",FairPlan:"Fair Plan",FarmBureau:"Farm Bureau",Farmers:"Farmers",FiremansFund:"Firemans Fund",FirstAmerican:"First American",ForemostInsuranceCompany:"Foremost Insurance Company",Geico:"Geico",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",Grinnell:"Grinnell",GuideOne:"Guide One",Hanover:"Hanover",Harleysville:"Harleysville",Hartford:"Hartford",HartfordOMNI:"Hartford OMNI",HawkeyeSecurity:"Hawkeye Security",HippoInsuranceCompany:"Hippo Insurance Company",HomeownersOfAmerica:"Homeowners of America",Homesite:"Homesite",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",Indiana:"Indiana",IndianaFarmers:"Indiana Farmers",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",Lloyds:"Lloyds",MainStreetAmerica:"Main Street America",MarkelInsuranceCompany:"Markel Insurance Company",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MutualBenefit:"Mutual Benefit",Tower:"National General",NatGenPremier:"NatGen Premier",Nationwide:"Nationwide",NationwideScottsdale:"Nationwide-Scottsdale",NewYorkCentralMutual:"New York Central Mutual",NJSkylands:"NJ Skylands",Northstar:"Northstar",OhioCasualty:"Ohio Casualty",OneBeacon:"One Beacon",OregonMutual:"Oregon Mutual",PeerlessMontgomery:"Peerless/Montgomery",Pekin:"Pekin",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Prudential:"Prudential",PureHighValue:"Pure High Value",Republic:"Republic",RoyalAndSunAlliance:"Royal and Sun Alliance",Safeco:"Safeco",SECURA:"SECURA",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul/Travelers",StandardMutual:"Standard Mutual",StateAuto:"State Auto",StateFarm:"State Farm",StateFarmFloridaInsuranceCompany:"State Farm Florida Insurance Company",Fidelity:"Stillwater",SunshineStateInsuranceCompany:"Sunshine State Insurance Company",Travelers:"Travelers",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire and Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Wellington:"Wellington",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve Group",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Zurich:"Zurich",Other:"Other",OtherNonStandard:"Other Non-Standard",OtherStandard:"Other Standard"},II={Business:"Business",Pleasure:"Pleasure",Farming:"Farming",To_FromWork:"To/From Work",To_FromSchool:"To/From School"},FI={Dontknow:"Don't Know",ThirtyToSixty:"30/60",FiftyToHundred:"50/100",HundredToHundred:"100/100",HundredToThreeHundred:"100/300",TwoHundredFiftyToFiveHundred:"250/500",ThreeHundredToThreeHundred:"300/300",FiveHundredToFiveHundred:"500/500",HundredCSL:"100CSL",ThreeHundredCSL:"300CSL",FiveHundredCSL:"500CSL"},jI={ActiveMilitaryDuty:"Active Military Duty",DrivingCompanyCar:"Driving A Company Car",DrivingCarOwnedByRelative:"Driving A Car Owned By A Relative",HasNotOwnedOrOperatedVehicle:"Has Not Owned Or Operated A Vehicle",OwnedVehParkedStoredOffRoadNotDriven:"Owned Veh Parked/Stored Off Road/Not Driven",NonPayment:"Non-Payment",Other:"Other"},zI={Dontknow:"Don't Know",cov30to60:"30/60",cov35to70:"35/70",cov50to100:"50/100",cov100to100:"100/100",cov100to300:"100/300",cov250to500:"250/500",cov300to300:"300/300",cov500to500:"500/500",cov100CSL:"100 CSL",cov300CSL:"300 CSL",cov500CSL:"500 CSL"},UI={Reject:"Reject",cov30to60:"30/60",cov35to70:"35/70",cov50to100:"50/100",cov100to100:"100/100",cov100to300:"100/300",cov250to500:"250/500",cov300to300:"300/300",cov500to500:"500/500",cov100CSL:"100 CSL",cov300CSL:"300 CSL",cov500CSL:"500 CSL"},HI={Dontknow:"Don't know",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov500000:"500,000"},VI={None:"None",cov500:"500",cov1000:"1,000",cov2000:"2,000",cov2500:"2,500",cov5000:"5,000",cov10000:"10,000",cov15000:"15,000",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000"},GI={cov25000:"25,000",cov35000:"35,000",cov50000:"50,000",cov100000:"100,000",cov200000:"200,000",cov250000:"250,000",cov300000:"300,000",cov500000:"500,000"},ZI={cov15000:"15,000",cov2500:"2,500",cov5000:"5,000",cov10000:"10,000",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov75000:"75,000",cov150000:"150,000"},YI={NoCoverage:"No Coverage",cov5000:"5,000",cov10000:"10,000"},p0={NoCoverage:"No Coverage",Zero:"0",Fifty:"50",Hundred:"100",TwoHunderd:"200",TwoHundredfifty:"250",FiveHundred:"500",SeventyFiveHundred:"750",Thousand:"1,000",TwoThousand:"2,000"},qI=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","SeventyFiveHundred","Thousand","TwoThousand"],KI=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","Thousand","TwoThousand"],h0={NoCoverage:"No Coverage",TwentyFive:"25",Forty:"40",Fifty:"50",SeventyFive:"75",Eighty:"80",Hundred:"100",TwelveHundred:"120",TwoHundred:"200",Unlimited:"Unlimited"},WI=["NoCoverage","TwentyFive","Fifty","SeventyFive","Hundred","TwoHundred","Unlimited"],b5={NoCoverage:"No Coverage",cov20to600:"20/600",cov25to750:"25/750",cov30to900:"30/900",cov40to1200:"40/1,200",cov50to1500:"50/1,500",cov100to3000:"100/3,000"},QI=["NoCoverage","cov20to600","cov25to750","cov30to900","cov40to1200","cov50to1500","cov100to3000"],JI=["NoCoverage","cov20to600","cov30to900","cov40to1200","cov50to1500"],v5={NoHighSchoolDiploma:"No High School Diploma",HighSchoolDiploma:"High School Diploma",SomeCollegeNoDegree:"Some College - No Degree",VocationalTechnicalDegree:"Vocational Technical Degree",AssociatesDegree:"Associates Degree",Bachelors:"Bachelors",Masters:"Masters",Phd:"Phd",MedicalDegree:"Medical Degree",LawDegree:"Law Degree"},XI={TwoFamilyHome:"2-Family Home",American4square:"American 4-square",Basic:"Basic",BiLevel:"Bi-Level",Bungalow:"Bungalow",CapeCod:"Cape Cod",Colonial:"Colonial",ColonialSpanish:"Colonial - Spanish",CompletelyCustom:"Completely Custom",Contemporary:"Contemporary",ContractorModern:"Contractor Modern",Farmhouse:"Farmhouse",Folk:"Folk",Log:"Log",Mediterranean:"Mediterranean",Ranch:"Ranch",TriLevel:"Tri-Level",Tudor:"Tudor",Vernacular:"Vernacular",Victorian:"Victorian"},eF={SingleFamilyHouse:"Single Family House",Townhouse:"Townhouse",Rowhouse:"Rowhouse",Duplex:"Duplex/Two Family Unit",Triplex:"Tri-plex/Three Family Unit",Fourplex:"Four-plex/Four Family Unit",MultFamily:"Multi-family (more than four units)"},tF={OwnerPrimary:"Owner Primary",OwnerSecondary:"Owner Secondary",OwnerSeasonal:"Owner Seasonal"},nF={Basic:"Basic",Modest:"Modest",Average:"Average",AboveAverage:"Above Average",Expensive:"Expensive",VeryExpensive:"Very Expensive",Opulent:"Opulent"},rF={Frame:"Frame",Masonry:"Masonry",MasonryVeneer:"Masonry Veneer",Log:"Log",Asbestos:"Asbestos",EFIS:"EFIS",HardiPlank:"HardiPlank",SuperiorFireResistive:"Superior Fire Resistive",SuperiorMasonryNonCombustible:"Superior Masonry Non Combustible",SuperiorNonCombustible:"Superior Non Combustible"},aF={Slab:"Slab",Basement:"Basement",CrawlSpace:"Crawl Space",PartialBasement:"Partial Basement",PiersPostsPiles:"Piers / Posts / Piles",Open:"Open"},iF={NotOverWater:"No",PartiallyOverWater:"Partially Over Water",FullyOrEntirelyOverWater:"Fully or Entirely Over Water"},oF={One:"1",OneHalf:"1.5",Two:"2",TwoHalf:"2.5",Three:"3",ThreeHalf:"3.5",Four:"4",BiLevel:"Bi-Level",TriLevel:"Tri-Level"},lF={VinylSiding:"Vinyl Siding",WoodFraming:"Wood Framing",BrickVeneer:"Brick Veneer",Stucco:"Stucco",AdobeBlock:"Adobe Block",AluminumSiding:"Aluminum Siding",CementFiberShingles:"Cement Fiber Shingles",Clapboard:"Clapboard",ConcreteBlock:"Concrete Block",HardboardSiding:"Hardboard Siding",InsulatedConcreteForms:"Insulated Concrete Forms",LightGaugeSteelFraming:"Light Gauge Steel Framing",LogsSolid:"Logs (Solid)",MasoniteSiding:"Masonite Siding",PreEngineeredMetal:"Pre-Engineered Metal",SolidBrickConstruction:"Solid Brick Construction",SolidConcrete:"Solid Concrete",StandardPoleFramed:"Standard Pole Framed",Stone:"Stone",StructuralInsulatedPanels:"Structural Insulated Panels",TimberFraming:"Timber Framing"},uF={ASPHALT_SHINGLES:"Asphalt Shingles",ARCHITECTURAL_SHINGLES:"Architectural Shingles",METAL:"Metal",TILE_CONCRETE:"Tile (Concrete)",ASBESTOS:"Asbestos",BUILT_UP:"Built-Up",COMPOSITION:"Composition",CONCRETE:"Concrete",COPPER:"Copper",CORRUGATED_STEEL:"Corrugated Steel",FIBERGLASS:"Fiberglass",FOAM:"Foam",GRAVEL:"Gravel",MEMBRANE:"Membrane",MINERAL_FIBER_SHAKE:"Mineral Fiber Shake",PLASTIC:"Plastic",ROCK:"Rock",ROLLED_PAPER:"Rolled Paper",RUBBER:"Rubber",SLATE:"Slate",TAR:"Tar",TAR_GRAVEL:"Tar and Gravel",TILE_CLAY:"Tile (Clay)",TILE_MISSION:"Tile (Mission)",TILE_SPANISH:"Tile (Spanish)",TIN:"Tin",WOOD_FIBERGLASS_SHINGLES:"Wood/Fiberglass Shingles",WOOD_SHAKE:"Wood Shake",WOOD_SHINGLES:"Wood Shingles",OTHER:"Other"},sF={B_Gable:"Gable",C_Hip:"Hip",A_Flat:"Flat",D_Other:"Other"},cF={NotUpdated:"Not Updated",PartialUpdate:"Partial Update",CompleteUpdate:"Complete Update"},dF={Electric:"Electric",Gas:"Gas",GasForcedAir:"Gas - Forced Air",GasHotWater:"Gas - Hot Water",Oil:"Oil",OilForcedAir:"Oil - Forced Air",OilHotWater:"Oil - Hot Water",SolidFuel:"Solid Fuel",HeatPump:"Heat Pump",Other:"Other"},fF={AboveGround:"Above Ground",BelowGround:"Below Ground"},mF={Basement:"Below Grade Basement",SplitLevelBasement:"Split Level Basement",WalkoutBasement:"Walkout Basement"},pF={EntirelyCopper:"Entirely Copper",EntirelyGalvanized:"Entirely Galvanized",EntirelyPEX:"Entirely PEX",EntirelyPVC:"Entirely PVC",Polybutylene:"Polybutylene"},hF={TwentyFive:"$25,000",Fifty:"$50,000",OneHundred:"$100,000",TwoHundred:"$200,000",ThreeHundred:"$300,000",FourHundred:"$400,000",FiveHundred:"$500,000"},yF={cov1000:"$1,000",cov2000:"$2,000",cov3000:"$3,000",cov4000:"$4,000",cov5000:"$5,000"},gF={TwoHundredFifty:"$250",FiveHundred:"$500",SevenHundredFifty:"$750",OneThousand:"$1,000",OneThousandFiveHundred:"$1,500",TwoThousand:"$2,000",TwoThousandFiveHundred:"$2,500",ThreeThousands:"$3,000",FourThousands:"$4,000",FiveThousands:"$5,000",OnePercent:"1%",TwoPercent:"2%",ThreePercent:"3%",FourPercent:"4%",FivePercent:"5%"},bF={None:"None",OnePercent:"1%",TwoPercent:"2%",FivePercent:"5%",TenPercent:"10%"},vF={_0_500ft:"0-500 Feet",_501_1000ft:"501-1000 Feet",_1001ftAndGreater:"1001 Feet And Greater"},_F={Lessthan5miles:"Less Than 5 Miles",Over5miles:"Over 5 Miles",NotAvailable:"Not Available"},o3={"Agriclt/Forestry/Fish":"Agriculture/Forestry/Fishing","Art/Design/Media":"Art/Design/Media","Banking/Finance/RE":"Banking/Finance/Real Estate","Business/Sales/Offi":"Business/Sales/Office","Construct/EnrgyTrds":"Construction/Energy Trades",Disabled:"Disabled","Education/Library":"Education/Library","Engr/Archt/Sci/Math":"Engineer/Architect/Science/Math","Government/Military":"Government/Military","Homemaker/Houseprsn":"Homemaker/House Person","Info Tech":"Information Technology",Insurance:"Insurance","Lgl/Law Enfcmt/Sec":"Legal/Law Enforcement/Security","Maint/Rpr/Hsekeep":"Maintenance/Repair/Housekeeping","Mfg/Production":"Manufacturing/Production","Med/Soc Svcs/Relig":"Medical/Social Services/Religion",Other:"Other","Person.Care/Service":"Personal Care/Service","Rest/Hotel Services":"Restaurant/Hotel Services",Retired:"Retired","Sports/Recreation":"Sports/Recreation",Student:"Student","Trvl/Trnsprt/Warehs":"Travel/Transportation/Warehousing",Unemployed:"Unemployed"},l3={Single:"Single",Married:"Married",Seperated:"Separated",Divorced:"Divorced",Widowed:"Widowed",DomesticPartner:"Domestic Partner"},u3={Female:"Female",Male:"Male"},_5={"Agriclt/Forestry/Fish":"Agriculture/Forestry/Fishing","Art/Design/Media":"Art/Design/Media","Banking/Finance/RE":"Banking/Finance/Real Estate","Business/Sales/Offi":"Business/Sales/Office","Construct/EnrgyTrds":"Construction/Energy Trades",Disabled:"Disabled","Education/Library":"Education/Library","Engr/Archt/Sci/Math":"Engineer/Architect/Science/Math","Government/Military":"Government/Military","Homemaker/Houseprsn":"Homemaker/House person","Info Tech":"Information Technology",Insurance:"Insurance","Lgl/Law Enfcmt/Sec":"Legal/Law Enforcement/Security","Maint/Rpr/Hsekeep":"Maintenance/Repair/Housekeeping","Mfg/Production":"Manufacturing/Production","Med/Soc Svcs/Relig":"Medical/Social Services/Religion",Other:"Other","Person.Care/Service":"Personal Care/Service","Rest/Hotel Services":"Restaurant/Hotel Services",Retired:"Retired","Sports/Recreation":"Sports/Recreation",Student:"Student","Trvl/Trnsprt/Warehs":"Travel/Transportation/Warehousing",Unemployed:"Unemployed"},EF={CONTAMINATION:"Contamination",CREDITCARD:"Credit Card",DAMAGETOPROPERTYOFOTHERS:"Damage To Property Of Others",DOGBITELIABILITY:"Dog Bite",EARTHMOVEMENT:"Earth Movement",EARTHQUAKE:"Earthquake",EXTENDEDCOVERAGEPERILS:"Extended Coverage Perils",FIRE:"Fire",FLOOD:"Flood",FREEZINGWATERINCLUDINGBURSTPIPES:"Freezing Water",HAIL:"Hail",HURRICANE:"Hurricane",LIABILITYALLOTHER:"Liability",LIGHTNING:"Lightning",MEDICALPAYMENTS:"Medical Payments",MYSTERIOUSDISAPPEARANCE:"Mysterious Disappearance",MYSTERIOUSDISAPPEARANCESCHEDULEDPROPERTY:"Mysterious Disappearance - Scheduled Property",PHYSICALDAMAGEALLOTHER:"Physical Damage",SINKHOLE:"Sinkhole",SLIPFALLLIABILITY:"Slip/Fall",SMOKE:"Smoke",THEFTSCHEDULEDPROPERTY:"Theft - Scheduled Property",THEFTBURGLARY:"Theft - Burglary",TORNADO:"Tornado",VANDALISMMALICIOUSMISCHIEF:"Vandalism",WATERDAMAGE:"Water Damage",WIND:"Wind",WORKERSCOMPENSATION:"Workers Compensation",ALLOTHER:"All Other"},SF={Verbal_Threshold:"Limited right to sue",Zero_Threshold:"Unlimited right to sue"},DF={Primary:"Primary",Secondary:"Secondary"},$F={cov1000:"$1,000",cov10000:"$10,000"},xF={cov100_10400_LIMITED:"100 - 10,400/ LIMITED",cov125_13000_LIMITED:"125 - 13,000/ LIMITED",cov175_18200_LIMITED:"175 - 18,200/ LIMITED",cov250_26000_LIMITED:"250 - 26,000/ LIMITED",cov400_41600_LIMITED:"400 - 41,600/ LIMITED",cov500_52000_LIMITED:"500 - 52,000/ LIMITED",cov600_62400_LIMITED:"600 - 62,400/ LIMITED",cov700_72800_LIMITED:"700 - 72,800/ LIMITED",cov100_UNLIMITED:"100/UNLIMITED",cov125_UNLIMITED:"125/UNLIMITED",cov175_UNLIMITED:"175/UNLIMITED",cov250_UNLIMITED:"250/UNLIMITED",cov400_UNLIMITED:"400/UNLIMITED",cov500_UNLIMITED:"500/UNLIMITED",cov600_UNLIMITED:"600/UNLIMITED",cov700_UNLIMITED:"700/UNLIMITED"},CF={cov250:"$250",cov500:"$500",cov1000:"$1,000",cov2000:"$2,000",cov2500:"$2,500"},AF={"Agriclt/Forestry/Fish":["Agr Inspect/Grader","Arborist","Clerk","Equip. Operator","Farm/Ranch Owner","Farm/Ranch Worker","Fisherman","Florist","Laborer/Worker","Landscape/NursryWkr","Landscaper","Logger","Millworker","Other","Ranger","Supervisor","Timber Grader/Scale"],"Art/Design/Media":["Actor","Admin Assist","Announcer/Broadcstr","Artist/Animator","Author/Writer","Choreography/Dancer","Clerk","Composer/Director","Curator","Designer","Editor","Journalist/Reporter","Musician/Singer","Other","Printer","Producer","Production Crew","Projectionist","Receptionist/Sec","Ticket Sales/Usher"],"Banking/Finance/RE":["Accountant/Auditor","Admin Assist","Analyst/Broker","Bookkeeper","Branch Manager","Clerk","Collections","Consultant","Controller","CSR/Teller","Director/Administr","Executive","Financial Advisor","Investment Banker","Investor","Loan/EscrowProcess","Mgr-Credit/Loan","Mgr-Portfolio/Prod.","Mgr-Property","Other","Realtor","Receptionist/Sec","SalesAgt/Represent.","Trader,Finan Instru","Underwriter"],"Business/Sales/Offi":["Account Executive","Admin Assist","Buyer","Clerk-Office","Consultant","CSR","Director/Administr","Executive","H.R. Representative","Marketing Researchr","Messenger/Courier","Mgr - District","Mgr - Finance","Mgr-Dept/Store","Mgr-General Opers","Mgr-H.R./PublicRel","Mgr-Mkt/Sales","Mgr/Supervisr-Offic","Other","Receptionist/Sec","Sales-Counter/Rentl","Sales-Home Based","Sales-Mfg Rep","Sales-Retail/Whlsle","Sales-Route/Vendor"],"Construct/EnrgyTrds":["Boiler Oper/Maker","Bricklayer/Mason","Carpenter","Carpet Installer","Concrete Worker","Constrct Proj Mgr","Contractor","Crane Operator","Electrician/Linesmn","ElevatorTech/Instl","Equip. Operator","FloorLayer/Finisher","Foreman/Supervisor","Handyman","Heat/Air Technician","Inspector","Laborer/Worker","Metalworker","Miner","Oil/GasDril/RigOpr","Other","Painter","Plstr/Drywall/Stuc","Plumber","Roofer"],Disabled:["Disabled"],"Education/Library":["Admin Assist","Audio-Visual Tech.","Child/DayCare Wrker","Clerk","Counselor","Grad. Teaching/Asst","Instructor-Vocation","Librarian/Curator","Other","Professor, College","Receptionist/Sec","Superintendent","Teacher, College","Teacher, K-12","Teaching Asst/Aide","Tutor"],"Engr/Archt/Sci/Math":["Actuary","Admin Assist","Analyst","Architect","Clerk","Clinical Data Coord.","Drafter","Engineer","Manager-Project","Manager-R&D","Mathematician","Other","Receptionist/Sec","Research Prog. Dir.","Researcher","Scientist","Sociologist","Surveyor/Mapmaker","Technician"],"Government/Military":["Accountant/Auditor","Admin Assist","Analyst","Attorney","Chief Executive","Clerk","Commissioner","Council member","Director/Administr","Enlst Mil Prsnl E1-4","Legislator","Mayor/City Manager","Meter Reader","NCO (E5-9)","Officer-Commissiond","Officer-Warrant","Other","Park Ranger","Planner","Postmaster","Receptionist/Sec","Regulator","US Postal Worker"],"Homemaker/Houseprsn":["Homemaker/Houseprsn"],"Info Tech":["Admin Assist","Analyst","Clerk","Director/Administr","Engineer-Hardware","Engineer-Software","Engineer-Systems","Executive","Manager-Systems","Network Admin","Other","Programmer","Project Coordinator","Receptionist/Sec","Support Technician","Systems Security","Technical Writer","Web Developer"],Insurance:["Accountant/Auditor","Actuarial Clerk","Actuary","Admin Assist","Agent/Broker","Analyst","Attorney","Claims Adjuster","Clerk","Commissioner","CSR","Director/Administr","Executive","Other","Product Manager","Receptionist/Sec","Sales Rep","Underwriter"],"Lgl/Law Enfcmt/Sec":["Airport Sec Ofcr","Animal Control Ofcr","Attorney","Bailiff","Corrections Officer","Court Clrk/Reporter","Deputy Sheriff","Dispatcher","Examiner","Fed Agt/Marshall","Fire Chief","Fire Fighter/Supv.","Gaming Ofcr/Invest","Highway Patrol Ofcr","Judge/Hearing Ofcr","Legal Asst./Sec","Other","Paralegal/Law Clerk","Police Chief","Police Det/Investgr","Police Offcr/Supvr","Process Server","Prvt Invest/Detec.","Security Guard","Sheriff"],"Maint/Rpr/Hsekeep":["Bldg Maint Engineer","Custodian/Janitor","Electrician","Field Service Tech.","Handyman","Heat/AirCond Repair","Housekeeper/Maid","Lndscpe/Grnds Maint","Maint Mechanic","Mechanic","Other"],"Mfg/Production":["Admin Assist","Clerk","Factory Worker","Foreman/Supervisor","Furniture Finisher","Inspector","Jeweler","Machine Operator","Other","Packer","Plant Manager","Printer/Bookbinder","Quality Control","Receptionist/Sec","Refining Operator","Shoemaker","Tailor/Custom Sewer","Textile Worker","Upholsterer"],"Med/Soc Svcs/Relig":["Admin Assist","Assist-Med/Dent/Vet","Clergy","Clerk","Client Care Worker","Dental Hygenist","Dentist","Doctor","Hospice Volunteer","Mortician","Nurse - C.N.A.","Nurse - LPN","Nurse - RN","Nurse Practitioner","Optometrist","Other","Paramedic/EM Tech","Pharmacist","Receptionist/Sec","Social Worker","Support Services","Technician","Therapist","Veterinarian"],Other:["Other"],"Person.Care/Service":["Caregiver","Dry Cleaner/Laundry","Hair Stylist/Barber","Housekeeper","Manicurist","Masseuse","Nanny","Other","Pet Services","Receptionist/Sec"],"Rest/Hotel Services":["Baker","Bartender","Bellhop","Bus Person","Caterer","Chef","Concessionaire","Concierge","Cook-Rest/Cafeteria","Cook/Wrkr-Fast Food","Delivery Person","Desk Clerk","Dishwasher","Food Prod/Packing","Host/Maitre d","Housekeeper/Maid","Manager","Other","Valet","Waiter/Waitress","Wine Steward"],Retired:["Retired"],"Sports/Recreation":["Activity/Recre.Asst","Admin Assist","Agent","Athlete","CampCounselor/Lead","Clerk","Coach","Concessionaire","Director, Program","Event Mgr/Promoter","Life Guard","Mgr - Fitness Club","Other","Park Ranger","Receptionist/Sec","Sales-Tkt/Mmbrshp","SportsBrdcstr/Journ","Trainer/Instructor","Umpire/Referee"],Student:["Graduate Student","High school","Other","Undergraduate"],"Trvl/Trnsprt/Warehs":["Admin Assist","Air Traffic Control","Airport Ops Crew","Bellhop/Porter","Clerk","Crane Loader/Oper","Dispatcher","Driver-Bus/Strcar","Driver-Taxi/Limo","Driver-Truck/Delvry","Flight Attendant","Forklift Operator","Laborer","Longshoreman","Mate/Sailor","Mgr Warehse/Dist","Other","Parking Lot Attend","Pilot/Capt/Eng","Railroad Worker","Receptionist/Sec","Shipping/RecClk","Subway/LgtRail Oper","Ticket Agent","Transportation Spec"],Unemployed:["Unemployed"]},wF={"Agr Inspect/Grader":"Agriculture Inspector/Grader",Arborist:"Arborist",Clerk:"Clerk","Equip. Operator":"Equipment Operator","Farm/Ranch Owner":"Farm/Ranch Owner","Farm/Ranch Worker":"Farm/Ranch Worker",Fisherman:"Fisherman",Florist:"Florist","Laborer/Worker":"Laborer/Worker","Landscape/NursryWkr":"Landscaper/Nursery Worker",Landscaper:"Landscaper",Logger:"Logger",Millworker:"Mill worker",Other:"Other",Ranger:"Ranger",Supervisor:"Supervisor","Timber Grader/Scale":"Timber Grader/Scale",Actor:"Actor","Admin Assist":"Administrative Assistant","Announcer/Broadcstr":"Announcer/Broadcaster","Artist/Animator":"Artist/Animator","Author/Writer":"Author/Writer","Choreography/Dancer":"Choreography/Dancer","Composer/Director":"Composer/Director",Curator:"Curator",Designer:"Designer",Editor:"Editor","Journalist/Reporter":"Journalist/Reporter","Musician/Singer":"Musician/Singer",Printer:"Printer",Producer:"Producer","Production Crew":"Production Crew",Projectionist:"Projectionist","Receptionist/Sec":"Receptionist/Secretary","Ticket Sales/Usher":"Ticket Sales/Usher","Accountant/Auditor":"Accountant/Auditor","Analyst/Broker":"Analyst/Broker",Bookkeeper:"Bookkeeper","Branch Manager":"Branch Manager",Collections:"Collections",Consultant:"Consultant",Controller:"Controller","CSR/Teller":"CSR/Teller","Director/Administr":"Director/Administrator",Executive:"Executive","Financial Advisor":"Financial Advisor","Investment Banker":"Investment Banker",Investor:"Investor","Loan/EscrowProcess":"Loan/Escrow Processor","Mgr-Credit/Loan":"Manager-Credit/Loan","Mgr-Portfolio/Prod.":"Manager-Portfolio/Production","Mgr-Property":"Manager-Property",Realtor:"Realtor","SalesAgt/Represent.":"Sales Agent/Representative","Trader,Finan Instru":"Trader, Financial Instruments",Underwriter:"Underwriter","Account Executive":"Account Executive",Buyer:"Buyer","Clerk-Office":"Clerk-Office",CSR:"Customer Service Representative","H.R. Representative":"H.R. Representative","Marketing Researchr":"Marketing Researcher","Messenger/Courier":"Messenger/Courier","Mgr - District":"Manager - District","Mgr - Finance":"Manager - Finance","Mgr-Dept/Store":"Manager - Department/Store","Mgr-General Opers":"Manager - General Operations","Mgr-H.R./PublicRel":"Manager - H.R./Public Relations","Mgr-Mkt/Sales":"Manager - Marketing/Sales","Mgr/Supervisr-Offic":"Manager/Supervisor - Office","Sales-Counter/Rentl":"Sales-Counter/Rental","Sales-Home Based":"Sales-Home Based","Sales-Mfg Rep":"Sales-Manufacture Rep","Sales-Retail/Whlsle":"Sales-Retail/Wholesale","Sales-Route/Vendor":"Sales-Route/Vendor","Boiler Oper/Maker":"Boiler Operator/Maker","Bricklayer/Mason":"Bricklayer/Mason",Carpenter:"Carpenter","Carpet Installer":"Carpet Installer","Concrete Worker":"Concrete Worker","Constrct Proj Mgr":"Construction - Project Manager",Contractor:"Contractor","Crane Operator":"Crane Operator","Electrician/Linesmn":"Electrician/Linesman","ElevatorTech/Instl":"Elevator Technician/Installer","FloorLayer/Finisher":"Floor Layer/Finisher","Foreman/Supervisor":"Foreman/Supervisor",Handyman:"Handyman","Heat/Air Technician":"Heat/Air Technician",Inspector:"Inspector",Metalworker:"Metalworker",Miner:"Miner","Oil/GasDril/RigOpr":"Oil/Gas Driller/Rig Operator",Painter:"Painter","Plstr/Drywall/Stuc":"Plaster/Drywall/Stucco",Plumber:"Plumber",Roofer:"Roofer",Disabled:"Disabled","Audio-Visual Tech.":"Audio-Visual Tech.","Child/DayCare Wrker":"Child/Daycare Worker",Counselor:"Counselor","Grad. Teaching/Asst":"Graduate Teaching Assistant","Instructor-Vocation":"Instructor-Vocation","Librarian/Curator":"Librarian/Curator","Professor, College":"Professor, College",Superintendent:"Superintendent","Teacher, College":"Teacher, College","Teacher, K-12":"Teacher, K-12","Teaching Asst/Aide":"Teaching Assistant/Aide",Tutor:"Tutor",Actuary:"Actuary",Analyst:"Analyst",Architect:"Architect","Clinical Data Coord.":"Clinical Data Coordinator",Drafter:"Drafter",Engineer:"Engineer","Manager-Project":"Manager-Project","Manager-R&D":"Manager-R&D",Mathematician:"Mathematician","Research Prog. Dir.":"Research Program Director",Researcher:"Researcher",Scientist:"Scientist",Sociologist:"Sociologist","Surveyor/Mapmaker":"Surveyor/Mapmaker",Technician:"Technician",Attorney:"Attorney","Chief Executive":"Chief Executive",Commissioner:"Commissioner","Council member":"Council member","Enlst Mil Prsnl E1-4":"Enlisted Military Personnel (E1-4)",Legislator:"Legislator","Mayor/City Manager":"Mayor/City Manager","Meter Reader":"Meter Reader","NCO (E5-9)":"NCO (E5-9)","Officer-Commissiond":"Officer-Commissioned","Officer-Warrant":"Officer-Warrant","Park Ranger":"Park Ranger",Planner:"Planner",Postmaster:"Postmaster",Regulator:"Regulator","US Postal Worker":"US Postal Worker","Homemaker/Houseprsn":"Homemaker/House person","Engineer-Hardware":"Engineer-Hardware","Engineer-Software":"Engineer-Software","Engineer-Systems":"Engineer-Systems","Manager-Systems":"Manager-Systems","Network Admin":"Network Administrator",Programmer:"Programmer","Project Coordinator":"Project Coordinator","Support Technician":"Support Technician","Systems Security":"Systems Security","Technical Writer":"Technical Writer","Web Developer":"Web Developer","Actuarial Clerk":"Actuarial Clerk","Agent/Broker":"Agent/Broker","Claims Adjuster":"Claims Adjuster","Product Manager":"Product Manager","Sales Rep":"Sales Representative","Airport Sec Ofcr":"Airport Security Officer","Animal Control Ofcr":"Animal Control Officer",Bailiff:"Bailiff","Corrections Officer":"Corrections Officer","Court Clrk/Reporter":"Court Clerk/Reporter","Deputy Sheriff":"Deputy Sheriff",Dispatcher:"Dispatcher",Examiner:"Examiner","Fed Agt/Marshall":"Federal Agent/Marshall","Fire Chief":"Fire Chief","Fire Fighter/Supv.":"Fire Fighter/Supervisor","Gaming Ofcr/Invest":"Gaming Officer/Investigator","Highway Patrol Ofcr":"Highway Patrol Officer","Judge/Hearing Ofcr":"Judge/Hearing Officer","Legal Asst./Sec":"Legal Assistant/Secretary","Paralegal/Law Clerk":"Paralegal/Law Clerk","Police Chief":"Police Chief","Police Det/Investgr":"Police Detective/Investigator","Police Offcr/Supvr":"Police Officer/Supervisor","Process Server":"Process Server","Prvt Invest/Detec.":"Private Investigator/Detective","Security Guard":"Security Guard",Sheriff:"Sheriff","Bldg Maint Engineer":"Building Maintenance Engineer","Custodian/Janitor":"Custodian/Janitor",Electrician:"Electrician","Field Service Tech.":"Field Service Technician","Heat/AirCond Repair":"Heat/Air Conditioner Repairman","Housekeeper/Maid":"Housekeeper/Maid","Lndscpe/Grnds Maint":"Landscape/Grounds Maintenance","Maint Mechanic":"Maintenance Mechanic",Mechanic:"Mechanic","Factory Worker":"Factory Worker","Furniture Finisher":"Furniture Finisher",Jeweler:"Jeweler","Machine Operator":"Machine Operator",Packer:"Packer","Plant Manager":"Plant Manager","Printer/Bookbinder":"Printer/Bookbinder","Quality Control":"Quality Control","Refining Operator":"Refining Operator",Shoemaker:"Shoemaker","Tailor/Custom Sewer":"Tailor/Custom Sewer","Textile Worker":"Textile Worker",Upholsterer:"Upholsterer","Assist-Med/Dent/Vet":"Assistant - Medic/Dent/Vet",Clergy:"Clergy","Client Care Worker":"Client Care Worker","Dental Hygenist":"Dental Hygienist",Dentist:"Dentist",Doctor:"Doctor","Hospice Volunteer":"Hospice Volunteer",Mortician:"Mortician","Nurse - C.N.A.":"Nurse - C.N.A.","Nurse - LPN":"Nurse - LPN","Nurse - RN":"Nurse - RN","Nurse Practitioner":"Nurse Practitioner",Optometrist:"Optometrist","Paramedic/EM Tech":"Paramedic/E.M. Technician",Pharmacist:"Pharmacist","Social Worker":"Social Worker","Support Services":"Support Services",Therapist:"Therapist",Veterinarian:"Veterinarian",Caregiver:"Caregiver","Dry Cleaner/Laundry":"Dry Cleaner/Laundry","Hair Stylist/Barber":"Hair Stylist/Barber",Housekeeper:"Housekeeper",Manicurist:"Manicurist",Masseuse:"Masseuse",Nanny:"Nanny","Pet Services":"Pet Services",Baker:"Baker",Bartender:"Bartender",Bellhop:"Bellhop","Bus Person":"Bus Person",Caterer:"Caterer",Chef:"Chef",Concessionaire:"Concessionaire",Concierge:"Concierge","Cook-Rest/Cafeteria":"Cook - Restaurant/Cafeteria","Cook/Wrkr-Fast Food":"Cook/Worker-Fast Food","Delivery Person":"Delivery Person","Desk Clerk":"Desk Clerk",Dishwasher:"Dishwasher","Food Prod/Packing":"Food Production/Packing","Host/Maitre d":"Host/Maitre d",Manager:"Manager",Valet:"Valet","Waiter/Waitress":"Waiter/Waitress","Wine Steward":"Wine Steward",Retired:"Retired","Activity/Recre.Asst":"Activity/Recreational Assistant",Agent:"Agent",Athlete:"Athlete","CampCounselor/Lead":"Camp Counselor/Lead",Coach:"Coach","Director, Program":"Director, Program","Event Mgr/Promoter":"Event Manager/Promoter","Life Guard":"Life Guard","Mgr - Fitness Club":"Manager - Fitness Club","Sales-Tkt/Mmbrshp":"Sales-Ticket/Membership","SportsBrdcstr/Journ":"Sports Broadcaster/Journalist","Trainer/Instructor":"Trainer/Instructor","Umpire/Referee":"Umpire/Referee","Graduate Student":"Graduate Student","High school":"High school",Undergraduate:"Undergraduate","Air Traffic Control":"Air Traffic Control","Airport Ops Crew":"Airport Operations Crew","Bellhop/Porter":"Bellhop/Porter","Crane Loader/Oper":"Crane Loader/Operator","Driver-Bus/Strcar":"Driver - Bus/Streetcar","Driver-Taxi/Limo":"Driver-Taxi/Limo","Driver-Truck/Delvry":"Driver-Truck/Delivery","Flight Attendant":"Flight Attendant","Forklift Operator":"Forklift Operator",Laborer:"Laborer",Longshoreman:"Longshoreman","Mate/Sailor":"Mate/Sailor","Mgr Warehse/Dist":"Manager - Warehouse/District","Parking Lot Attend":"Parking Lot Attendant","Pilot/Capt/Eng":"Pilot/Captain/Engineer","Railroad Worker":"Railroad Worker","Shipping/RecClk":"Shipping/Receiving Clerk","Subway/LgtRail Oper":"Subway/Light Rail Operator","Ticket Agent":"Ticket Agent","Transportation Spec":"Transportation Specialist",Unemployed:"Unemployed"},s3=AF,E5=wF;function Sy(e,t){if(typeof e!="string")return e;const n=e.trim();if(!n)return e;if(t[n])return n;const i=n.toLowerCase();return Object.keys(t).find(u=>u.toLowerCase()===i||t[u]?.toLowerCase()===i)??e}function Dd(e){return Sy(e,_5)}function S5(e){return Sy(e,v5)}function D5(e){return Sy(e,E5)}function TF(e){return e.trim().toLowerCase()}function c3(e){if(typeof e!="string")return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;const n=Number(t[1]),i=Number(t[2]),o=Number(t[3]);if(!Number.isFinite(n)||!Number.isFinite(i)||!Number.isFinite(o)||i<1||i>12||o<1||o>31)return null;const u=new Date(Date.UTC(n,i-1,o));return u.getUTCFullYear()!==n||u.getUTCMonth()!==i-1||u.getUTCDate()!==o?null:u.getTime()}function Xo(e,t){if(!t.effectiveDateKey||!t.expirationDateKey)return!1;const n=c3(e[t.expirationDateKey]),i=c3(e[t.effectiveDateKey]);return n==null||i==null?!1:n<i}const NF=new Set(["HomePolicy","BundlePolicy"]);function Yc(e,t,n){return String(e.key??"")!=="lapse_in_coverage"||!n||!NF.has(n)?!0:t.home_prior_carrier_name!=="NoPriorInsurance"}function Dy(e){let t=null,n=null,i=null;const o=new Set,u=new Set,c=m=>{const h=String(m.key??""),y=TF(String(m.question??""));!t&&(h==="auto_prior_carrier_name"||h==="home_prior_carrier_name"||y.includes("current auto insurance company"))&&(t=h),!n&&(h==="effective_date"||y.includes("when do you need your insurance to begin"))&&(n=h),!i&&(h==="auto_prior_expiration_date"||h==="home_prior_expiration_date"||y.includes("when does the current policy expire"))&&(i=h),(h==="auto_reason_for_no_insurance"||y.includes("reason you are not currently insured")||y.includes("reason for lapse in coverage"))&&o.add(h),(h==="auto_prior_years"||h==="auto_prior_months"||h==="auto_continuous_coverage_years"||h==="auto_prior_expiration_date"||h==="auto_current_annual_premium_cents"||h==="auto_prior_liability_limit")&&u.add(h)};e.forEach(c);const d=m=>{m.forEach(h=>{(h.conditionals??[]).forEach(y=>{const g=y.conditionalQuestions??[];g.forEach(c),d(g)})})};return d(e),{currentCarrierKey:t,effectiveDateKey:n,expirationDateKey:i,noInsuranceReasonKeys:o,hideWhenNoPriorInsuranceKeys:u}}function xu(e,t){return t.currentCarrierKey==="home_prior_carrier_name"&&e.home_prior_carrier_name==="NoPriorInsurance"&&e.auto_prior_carrier_name!=="NoPriorInsurance"?!1:(t.currentCarrierKey?e[t.currentCarrierKey]:void 0)==="NoPriorInsurance"?!0:!t.effectiveDateKey||!t.expirationDateKey||t.expirationDateKey==="home_prior_expiration_date"&&Xo(e,t)?!1:Xo(e,t)}function qc(e,t,n){const i=String(e.key??"");if(n.noInsuranceReasonKeys.has(i)&&n.currentCarrierKey==="home_prior_carrier_name"&&t.home_prior_carrier_name==="NoPriorInsurance"&&t.auto_prior_carrier_name!=="NoPriorInsurance")return!1;const u=(n.currentCarrierKey?t[n.currentCarrierKey]:void 0)==="NoPriorInsurance";return u&&n.hideWhenNoPriorInsuranceKeys.has(i)?!1:!n.noInsuranceReasonKeys.has(i)||u?!0:xu(t,n)}function Kc(e,t){const n=String(e.key??"");return t.noInsuranceReasonKeys.has(n)}const d3=["ACURA","ALFA ROMEO","ASTON MARTIN","AUDI","BENTLEY","BMW","BUGATTI","BUICK","CADILLAC","CHEVROLET","CHRYSLER","CRUISE","DODGE","FERRARI","FIAT","FORD","FREIGHTLINER","GENESIS","GLOBAL ELECTRIC MOTORS","GMC","HONDA","HYUNDAI","INFINITI","JAGUAR","JEEP","KARMA AUTOMOTIVE","KIA","LAMBORGHINI","LAND ROVER","LEXUS","LINCOLN","LOTUS","MASERATI","MAZDA","MCLAREN AUTOMOTIVE","MERCEDES-BENZ","MINI","MITSUBISHI","NISSAN","POLESTAR","PORSCHE","RAM","ROLLS-ROYCE","SUBARU","TESLA","TOYOTA","VOLKSWAGEN","VOLVO"],$y="credify_quote_id",xy="credify_auth_token";function f3(e){try{localStorage.setItem($y,e)}catch(t){console.error("Failed to save quoteId to localStorage:",t)}}function rf(){try{return localStorage.getItem($y)}catch(e){return console.error("Failed to load quoteId from localStorage:",e),null}}function $5(){try{localStorage.removeItem($y)}catch(e){console.error("Failed to clear quoteId from localStorage:",e)}}function MF(e){try{localStorage.setItem(xy,e)}catch(t){console.error("Failed to save authToken to localStorage:",t)}}function RF(){try{return localStorage.getItem(xy)}catch(e){return console.error("Failed to load authToken from localStorage:",e),null}}function x5(){try{localStorage.removeItem(xy)}catch(e){console.error("Failed to clear authToken from localStorage:",e)}}function OF(){$5(),x5()}const kF="credify-insurance-widget",BF="1.0",C5=25,A5=64*1024,LF=`
121
- …[truncated]`;let m3=!1,p3=null,h3="",w5=C5,y0=A5,Cu=[];function PF(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function IF(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function y3(e){if(!e)return[];const t=[];if(Array.isArray(e))for(const[n,i]of e)t.push({name:n,value:String(i)});else if(typeof e.forEach=="function")e.forEach((n,i)=>t.push({name:i,value:n}));else for(const[n,i]of Object.entries(e))t.push({name:n,value:String(i)});return t}function FF(e){try{const t=[];return new URL(e).searchParams.forEach((n,i)=>t.push({name:i,value:n})),t}catch{return[]}}function jF(e,t){const n=t?.body;return typeof n!="string"||n.length===0?void 0:{mimeType:e.find(o=>o.name.toLowerCase()==="content-type")?.value??"application/json",text:n}}function zF(e){const t=e.length;return t<=y0?{text:e,size:t}:{text:e.slice(0,y0)+LF,size:t}}function UF(e){Cu.push(e),Cu.length>w5&&Cu.shift()}function HF(e){if(m3)return!0;if(typeof window>"u"||typeof window.fetch!="function")return!1;h3=e.baseUrl,w5=e.maxEntries??C5,y0=e.maxBodyBytes??A5,p3=window.fetch.bind(window);const t=p3;return window.fetch=async(n,i)=>{let o;try{o=PF(n)}catch{return t(n,i)}if(!o.startsWith(h3))return t(n,i);const u=y3(i?.headers??(typeof n!="string"&&!(n instanceof URL)?n.headers:void 0)),c={startedDateTime:new Date().toISOString(),time:-1,request:{method:IF(n,i),url:o,httpVersion:"HTTP/1.1",headers:u,queryString:FF(o),cookies:[],headersSize:-1,bodySize:typeof i?.body=="string"?i.body.length:-1,postData:jF(u,i)},response:VF(),cache:{},timings:{send:0,wait:-1,receive:0}};UF(c);const d=typeof performance<"u"?performance.now():0;let m;try{m=await t(n,i)}catch(y){const g=(typeof performance<"u"?performance.now():0)-d;throw c.time=Math.round(g),c.timings.wait=Math.round(g),c.response._error=y instanceof Error?y.message:String(y),y}const h=(typeof performance<"u"?performance.now():0)-d;c.time=Math.round(h),c.timings.wait=Math.round(h),c.response.status=m.status,c.response.statusText=m.statusText,c.response.headers=y3(m.headers),c.response.content.mimeType=typeof m.headers?.get=="function"&&m.headers.get("content-type")||"";try{m.clone().text().then(g=>{const{text:E,size:S}=zF(g);c.response.content.text=E,c.response.content.size=S,c.response.bodySize=S}).catch(()=>{})}catch{}return m},m3=!0,!0}function VF(){return{status:0,statusText:"",httpVersion:"HTTP/1.1",headers:[],cookies:[],content:{size:0,mimeType:""},redirectURL:"",headersSize:-1,bodySize:-1}}function GF(){return{log:{version:"1.2",creator:{name:kF,version:BF},entries:Cu.map(e=>({...e}))}}}function ZF(){return Cu.length}const YF=[/ssn/i,/social.?security/i,/(driver.?licen[cs]e|^dln$|^dl$)/i,/(date.?of.?birth|^dob$)/i,/^vin$/i,/(sms.?code|^otp$|^code$|verification.?code)/i,/phone/i,/^email$/i,/(first.?name|last.?name|full.?name)/i,/(^address$|street|^zip$|postal)/i,/(jwt|^token$|authorization|^auth$|api.?key|secret|password|credential)/i,/cookie/i],qF=[/\b\d{3}-?\d{2}-?\d{4}\b/g,/\b[A-HJ-NPR-Z0-9]{17}\b/g,/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g,/\bsk_[A-Za-z0-9]{16,}\b/g,/\bBearer\s+[A-Za-z0-9._-]+/gi],qa="[REDACTED]",KF=8;function af(e){for(const t of YF)if(t.test(e))return!0;return!1}function Ka(e){let t=e;for(const n of qF)t=t.replace(n,qa);return t}function Ua(e,t=0,n=new WeakSet){if(t>KF)return qa;if(e==null)return e;if(typeof e=="string")return Ka(e);if(typeof e!="object")return e;if(n.has(e))return qa;if(n.add(e),Array.isArray(e))return e.map(u=>Ua(u,t+1,n));const i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)return e;const o={};for(const[u,c]of Object.entries(e)){if(af(u)){o[u]=qa;continue}o[u]=Ua(c,t+1,n)}return o}function g3(e){if(e.request&&(e.request.data!==void 0&&(e.request.data=Ua(e.request.data)),e.request.cookies!==void 0&&(e.request.cookies=qa),e.request.headers)){const t=e.request.headers;for(const n of Object.keys(t))af(n)&&(t[n]=qa)}if(e.extra&&(e.extra=Ua(e.extra)),e.contexts&&(e.contexts=Ua(e.contexts)),e.tags&&(e.tags=Ua(e.tags)),e.user){const{id:t,email:n,username:i}=e.user;e.user={...typeof t=="string"?{id:t}:{},...typeof n=="string"?{email:n}:{},...typeof i=="string"?{username:i}:{}}}if(Array.isArray(e.breadcrumbs))for(const t of e.breadcrumbs)t.data!==void 0&&(t.data=Ua(t.data)),typeof t.message=="string"&&(t.message=Ka(t.message));return typeof e.message=="string"&&(e.message=Ka(e.message)),e}function b3(e){for(const t of e)t.value=af(t.name)?qa:Ka(t.value)}function v3(e){try{return JSON.stringify(Ua(JSON.parse(e)))}catch{return Ka(e)}}function WF(e){const t=JSON.parse(JSON.stringify(e));for(const n of t.log.entries){b3(n.request.headers),b3(n.response.headers);for(const i of n.request.queryString)i.value=af(i.name)?qa:Ka(i.value);n.request.postData?.text&&(n.request.postData.text=v3(n.request.postData.text)),n.response.content.text&&(n.response.content.text=v3(n.response.content.text)),n.request.url=Ka(n.request.url),n.response._error&&(n.response._error=Ka(n.response._error))}return t}function Uo(e,t={}){try{M0(n=>{n.setTag("failure_type","quote"),t.stage&&n.setTag("stage",t.stage),t.quoteId&&n.setTag("quote_id",t.quoteId),t.phase&&n.setTag("phase",t.phase),t.endpoint&&n.setTag("endpoint",t.endpoint),typeof t.statusCode=="number"&&n.setTag("status_code",String(t.statusCode));try{ZF()>0&&n.addAttachment({filename:"quote-failure.har",data:JSON.stringify(WF(GF())),contentType:"application/json"})}catch{}const i=e instanceof Error?e:new Error(t.message??"Quote failed");Ld(i)})}catch{}}const Rt="https://api.getcredify.com";let ul=null;const QF=6e4,_3=new Map;function JF(e){try{return new URL(e).pathname}catch{return e}}function E3(e,t,n){if(!(n>=500&&n<600)&&!(n===0))return;e.__sentryReported=!0;const u=JF(t),c=`${u}:${n}`,d=Date.now(),m=_3.get(c);m&&d-m<QF||(_3.set(c,d),Uo(e,{phase:"api_request",endpoint:u,statusCode:n}))}function Wc(e){ul=e,MF(e)}function Jr(){return ul}function Qc(){const e=RF();e&&(ul=e)}function T5(){ul=null,x5()}async function qt(e,t){const n={"Content-Type":"application/json"};ul&&(n.Authorization=`Bearer ${ul}`);let i;try{i=await fetch(e,{method:"POST",headers:n,body:JSON.stringify(t)})}catch(o){const u=o instanceof Error?o:new Error(String(o));throw E3(u,e,0),o}if(!i.ok){let o=`Request failed with status ${i.status}`;try{o=(await i.json()).error||o}catch{o=i.statusText||o}const u=new Error(o);throw u.statusCode=i.status,E3(u,e,i.status),u}return i}async function Qu(e){try{return await e.json()}catch{return{}}}async function XF(e,t){const n=t?{stage:e,quoteId:t}:{stage:e};return await(await qt(`${Rt}/get-questions-by-stage`,n)).json()}async function Bc(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-stages-for-quote`,t)).json()}async function ej(e,t=!1){const n=t?{postal_code:e,is_test:!0}:{postal_code:e},o=await(await qt(`${Rt}/create-quote`,n)).json();if(!o||typeof o!="object"||!o.quoteId)throw new Error(`Invalid createQuote response: ${JSON.stringify(o)}`);return o}async function N5(e,t){return await(await qt(`${Rt}/verify-quote`,{action:"send",quoteId:e,phone:t})).json()}async function La(e,t,n){const i={payload:e,getRates:t};n&&typeof n=="string"&&n.trim()!==""&&(i.quoteId=n);const o=await qt(`${Rt}/update-quote`,i),u=await Qu(o);return!u||typeof u!="object"||!("status"in u)||u.status==null?{status:"success"}:u}async function g0(e,t){return await(await qt(`${Rt}/verify-quote`,{quoteId:e,smsCode:t})).json()}async function tj(e){return await(await qt(`${Rt}/verify-quote`,{action:"resume",resumeToken:e})).json()}async function M5(e,t){const n={state:e};return t&&typeof t=="string"&&t.trim()!==""&&(n.quoteId=t),await(await qt(`${Rt}/is-supported-state`,n)).json()}async function lh(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-rates`,t)).json()}async function S3(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-quote`,t)).json()}async function R5(e){return(await qt(`${Rt}/get-vehicle-options`,e)).json()}async function nj(e){return(await qt(`${Rt}/get-vehicle-options`,{...e,action:"vinDecode"})).json()}async function rj(e){const t=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"vehiclePrefillSuggestions"}),n=await Qu(t);return{suggestions:Array.isArray(n.suggestions)?n.suggestions:[]}}async function aj(e,t){const n=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"applyVehiclePrefill",selectedIds:t}),i=await Qu(n);return{items:Array.isArray(i.items)?i.items:[]}}async function ij(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissVehiclePrefill"})}async function oj(e){const t=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"driverPrefillSuggestions"}),n=await Qu(t);return{suggestions:Array.isArray(n.suggestions)?n.suggestions:[]}}async function lj(e,t){const n=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"applyDriverPrefill",selectedIds:t}),i=await Qu(n);return{items:Array.isArray(i.items)?i.items:[]}}async function uj(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissDriverPrefill"})}async function sj(e,t){const i=await(await qt(`${Rt}/request-bind`,{quoteRateId:e,privacyNoticeAcknowledged:t})).json();return i&&typeof i=="object"&&"success"in i?i:{success:!0}}const uh=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function b0(e){return Sd(String(e??"")).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function cj(e){const t=b0(e??"unknown-stage");return["form-area",`form-area--${t}`,`formArea-${t}`].join(" ")}function sh(e,t,n){const i=b0(t??"unknown-stage"),o=b0(e);return["form-section","form-question",`form-section--${o}`,`form-question--${o}`,`formQuestion-${i}_${o}`,n&&n.length>0?"form-question--scoped":null].filter(Boolean).join(" ")}const dj={None:"None","30000/60000/25000":"30/60k","30000/60000/30000":"30/60k","50000/100000/30000":"50/100k","50000/100000/50000":"50/100k","100000/300000/50000":"100/300k","100000/300000/100000":"100/300k","250000/500000/100000":"250/500k","250000/500000/250000":"250/500k","300000/500000/250000":"300/500k","300000/500000/300000":"300/500k","500000/500000/300000":"500k CSL","500000/500000/500000":"500k CSL","500000/1000000/300000":"500k/1M","500000/1000000/500000":"500k/1M"},D3={auto_prior_carrier_name:BI,auto_prior_liability_limit:FI,auto_reason_for_no_insurance:jI,residence_type:LI,home_prior_carrier_name:PI,policy_bi:zI,policy_um:UI,policy_pd:HI,policy_mp:VI,policy_umpd:GI,policy_pip:ZI,policy_auto_death_indemnity:YI,vehicle_comp_deductible:p0,vehicle_coll_deductible:p0,vehicle_towing_and_labor:h0,vehicle_transportation_expense:b5,education_level:v5,industry:_5,occupation:E5,usage:II,architectural_style:XI,dwelling_type:eF,occupancy_type:tF,construction_quality:nF,construction_type:rF,foundation_type:aF,located_over_water:iF,number_of_stories:oF,exterior_wall_type:lF,roof_material_type:uF,roof_shape:sF,roof_updated_type:cF,heating_type:dF,oil_tank_location:fF,basement_type:mF,plumbing_type:pF,personal_liability:hF,dwelling_medical_payments:yF,all_perils_deductible:gF,windstorm_deductible:bF,distance_from_fire_hydrant_ft:vF,distance_from_fire_station_miles:_F,employment_industry:o3,marital_status:l3,gender:u3,co_applicant_employment_industry:o3,co_applicant_marital_status:l3,co_applicant_gender:u3,description:EF,tort_threshold:SF,pip_coverage_type:DF,extended_medical:$F,additional_pip:xF,policy_pip_deductible:CF},$3=["OTHER / NOT LISTED"],x3=["SEDAN","SUV","COUPE","HATCHBACK","PICKUP","VAN","WAGON","OTHER"],fj=["Other"];function jn(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,"0"),i=String(e.getUTCDate()).padStart(2,"0");return`${t}-${n}-${i}`}function C3(e){const t=e.replace(/\D+/g,"");if(t!=="")return kI(t)}function mj(e){return e==="-"||e==="+"||e==="."||e==="e"||e==="E"}const pj={year_built:4,year_roof_updated:4,heating_update_year:4,plumbing_update_year:4,electrical_update_year:4,total_area_sq_ft:6,sale_price_cents:9,dwelling_replacement_cost:9,other_structures_coverage:9,personal_property_coverage:7,amount_paid_cents:7,loss_of_use_coverage:8,home_prior_years:2,home_continuous_coverage_years:2,number_of_dogs:2,number_of_units:2,months_at_address:2,years_at_address:3,years_at_prior_address:3,distance_to_coast_miles:4,household_size:1,number_of_families:1,number_of_mortgagees:1,annual_mileage:6,miles_to_work:4,custom_equipment_value_cents:7,cost_new_value_cents:7,stated_value_amount_cents:7,property_damage_amount_paid_cents:7,personal_injury_amount_paid_cents:7,auto_current_annual_premium_cents:7,auto_prior_years:2,auto_prior_months:2,auto_continuous_coverage_years:2},A3=new Set(["sale_price_cents","dwelling_replacement_cost","other_structures_coverage","personal_property_coverage","loss_of_use_coverage","custom_equipment_value_cents","cost_new_value_cents","stated_value_amount_cents","property_damage_amount_paid_cents","personal_injury_amount_paid_cents","auto_current_annual_premium_cents","amount_paid_cents"]),hj=new Set(["total_area_sq_ft","annual_mileage","miles_to_work","distance_to_coast_miles"]),Lc={first_name:"given-name",last_name:"family-name",co_applicant_first_name:"given-name",co_applicant_last_name:"family-name",date_of_birth:"bday",co_applicant_date_of_birth:"bday",sms_code:"one-time-code",vin:"off",license_number:"off",effective_date:"off"},yj={license_number:20};function gj(e){const t=new Date,n=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));if(e==="effective_date"){const i=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth()+3,n.getUTCDate()));return{min:jn(n),max:jn(i)}}if(e==="home_prior_expiration_date"){const i=new Date(Date.UTC(n.getUTCFullYear()-1,n.getUTCMonth(),n.getUTCDate())),o=new Date(Date.UTC(n.getUTCFullYear()+1,n.getUTCMonth(),n.getUTCDate()));return{min:jn(i),max:jn(o)}}if(e==="date_of_incident")return{max:jn(n)};if(e==="move_in_date")return{max:jn(n)};if(e==="purchase_date")return{max:jn(n)};if(e==="date_of_birth")return{max:jn(n)};if(e==="date_first_licensed")return{max:jn(n)};if(e==="occurred_at")return{max:jn(n)};if(e==="accident_prevention_course_date")return{max:jn(n)};if(e==="auto_prior_expiration_date"){const i=new Date(Date.UTC(n.getUTCFullYear()-1,n.getUTCMonth(),n.getUTCDate())),o=new Date(Date.UTC(n.getUTCFullYear()+1,n.getUTCMonth(),n.getUTCDate()));return{min:jn(i),max:jn(o)}}return{}}const bj=new Set(["Disabled","Retired","Unemployed","Other"]);function ch(e,t,n){const i=String(e.key??"");if(i!=="occupation"&&i!=="co_applicant_occupation"||i==="co_applicant_occupation")return!0;const o=rn(t,n,"industry"),u=rn(t,n,"employment_industry"),c=String(o??u??"").trim();return!bj.has(c)}function dh(e,t,n,i){return nf(e,i,n)}function Jc(e){return e.inputType!=="radio"||!e.options||e.options.length!==1||e.options[0]!=="Yes"?!1:(e.conditionals??[]).some(n=>n.conditionalQuestionsAllowMultiple&&n.conditionalType==="equals"&&n.conditionalValue==="Yes")}function w3(e,t){return Jc(e)?"Yes":t}function T3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function N3(e){if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.getTime();if(typeof e=="string"){const t=Date.parse(e);return Number.isNaN(t)?null:t}return null}function M3(e,t){const n=T3(e),i=T3(t);if(n!=null&&i!=null)return n-i;const o=N3(e),u=N3(t);return o!=null&&u!=null?o-u:e==null||t==null?null:String(e).localeCompare(String(t))}function vj(e,t){return Array.isArray(e)?e.some(n=>n===t):typeof e=="string"?t!=null&&e.includes(String(t)):!1}function mu(e,t,n){switch(t){case"equals":return e===n;case"notEquals":return e!==n&&e!==""&&e!=null;case"lessThan":{const i=M3(e,n);return i!=null&&i<0}case"greaterThan":{const i=M3(e,n);return i!=null&&i>0}case"contains":return vj(e,n);case"startsWith":return e!=null&&n!=null&&String(e).startsWith(String(n));case"endsWith":return e!=null&&n!=null&&String(e).endsWith(String(n));default:return!1}}function Eu(e,t){return t.reduce((n,i)=>n?.[i],e)}function tr(e,t,n){if(t.length===0)return e;const[i,...o]=t;if(o.length===0){if(typeof i=="number"){const h=(Array.isArray(e)?e:[]).slice();return h[i]=n,h}return{...e,[i]:n}}const u=e?.[i],c=typeof o[0]=="number"?Array.isArray(u)?u:[]:u&&typeof u=="object"?u:{},d=tr(c,o,n);if(typeof i=="number"){const h=(Array.isArray(e)?e:[]).slice();return h[i]=d,h}return{...e,[i]:d}}function rn(e,t,n){return Eu(e,[...t??[],n])}function ln(e,t,n,i){return tr(e,[...t??[],n],i)}function _j(e,t){return e?.length?`${e.join("-")}-${t}`:t}const Ej="__items",Pc=e=>`${e}${Ej}`;function Dn(e){return e==null?"":typeof e=="string"?e:String(e)}function R3(e){return e==null?"":typeof e=="number"&&Number.isFinite(e)||typeof e=="string"?e:""}function Sj(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:String(e)}function O5({questions:e,initialValues:t,controlledValues:n,onChangeValues:i,onSubmit:o,quoteId:u,widgetStageKey:c,validationAttempt:d=0,invalidValueKeys:m,fetchVehicleOptions:h}){const y=b.useMemo(()=>h??(z=>R5({quoteId:u,...z})),[h,u]),g=b.useMemo(()=>py(e),[e]),E=b.useMemo(()=>Dy(g),[g]),S=b.useMemo(()=>c==="BundlePolicy"?!0:g.some(z=>String(z.key)==="home_prior_carrier_name")&&g.some(z=>String(z.key)==="driver_vehicle_assignments"),[c,g]),D=b.useMemo(()=>{const z={};return t&&Object.assign(z,t),z},[t]),[x,w]=b.useState(D);b.useEffect(()=>{w(D)},[D]);const[R,I]=b.useState({}),A=b.useMemo(()=>({...R,...n??x}),[R,n,x]);b.useEffect(()=>{n&&I(z=>({...z,...n}))},[n]);const[L,M]=b.useState({}),Z=b.useRef(new Map),V=b.useRef(new Set),[,fe]=b.useState({}),[ne,pe]=b.useState({}),J=b.useRef(!1);b.useEffect(()=>{!u||J.current||!g.some(T=>T.key==="year"||T.key==="make"||T.key==="model"||T.key==="body_style")||(J.current=!0,y({}).catch(()=>{}))},[u,g,y]);const[ye,Ae]=b.useState({}),[j,de]=b.useState({}),k=b.useCallback(async(z,T)=>{if(!u||!i3(T))return;const N=z?z.join("-"):"_root";Ae(ie=>({...ie,[N]:!0})),de(ie=>({...ie,[N]:null}));try{const ie=await nj({quoteId:u,vin:T});if(ie.error){de(Se=>({...Se,[N]:ie.error}));return}let ge=A;ie.year&&(ge=ln(ge,z,"year",String(ie.year))),ie.make&&(ge=ln(ge,z,"make",ie.make)),ie.model&&(ge=ln(ge,z,"model",ie.model)),ie.bodyStyle&&(ge=ln(ge,z,"body_style",ie.bodyStyle)),n&&i?i(ge):w(ge),I(ge),Z.current.clear(),V.current.clear(),fe({})}catch{de(ie=>({...ie,[N]:"VIN lookup failed — please enter vehicle details manually"}))}finally{Ae(ie=>({...ie,[N]:!1}))}},[u,A,n,i]),B=b.useCallback(z=>{const T=`${z.year}|${z.make??""}|${z.model??""}`,N=z.model?"bodyStyles":z.make?"models":"makes",ie=Z.current.get(T);return ie?ie[N]??[]:void 0},[]),X=b.useCallback((z,T)=>{if(!u)return;const N=`${T.year}|${T.make??""}|${T.model??""}`,ie=T.model?"bodyStyles":T.make?"models":"makes",ge=`${z}:${ie}`;Z.current.has(N)||V.current.has(N)||(V.current.add(N),pe(Se=>({...Se,[ge]:!0})),y(T).then(Se=>{Z.current.set(N,Se),fe(he=>({...he,[ge]:Se[ie]??[]}))}).catch(()=>{Z.current.set(N,{}),fe(Se=>({...Se,[ge]:[]}))}).finally(()=>{V.current.delete(N),pe(Se=>({...Se,[ge]:!1}))}))},[u,y]);function F(z,T,N){const ie=A,ge=z?Eu(A,z)??{}:ie;return z?{state:ie.state,...ge,[T]:N}:{...ge,[T]:N}}function G(z,T){const N=g5.filter(ge=>ge.targetKey===z||ge.dependsOn.includes(z)),ie={[z]:void 0};for(const ge of N){const Se=ge.validate(T);ge.targetKey in ie?Se!==void 0&&(ie[ge.targetKey]=Se):ie[ge.targetKey]=Se}M(ge=>({...ge,...ie}))}const C=(z,T,N)=>{const ie=rn(A,N,z);if(Cr(ie,T)){L[z]&&M(Se=>({...Se,[z]:void 0}));return}const ge=m0(z,ie);if(ge){M(Se=>({...Se,[z]:ge}));return}G(z,F(N,z,ie))};b.useEffect(()=>{let z=A,T=!1;g.forEach(N=>{if(!Jc(N))return;const ie=String(N.key);rn(z,void 0,ie)!=="Yes"&&(z=ln(z,void 0,ie,"Yes"),T=!0)}),T&&(n&&i?i(z):w(z),I(z))},[g,A,n,i]);function U(z,T){const N=z.key;if((N==="relationship_to_insured"||N==="is_registered_owner")&&T){const me=T[T.length-1];if(typeof me=="number"&&me===0)return null}if((N==="purchase_date"||N==="cost_new_value_cents")&&T)return null;if(N==="custom_equipment_value_cents"&&T){const me=rn(A,T,"vehicle_has_modifications");if(me!=="Yes"&&me!==!0)return null}const ie=N==="auto_reason_for_no_insurance"&&E.currentCarrierKey?A[E.currentCarrierKey]==="NoPriorInsurance"?"Reason you are not currently insured":"Reason for lapse in coverage":z.question,ge=z.hint,Se=rn(A,T,N),he=Kc(z,E)?xu(A,E):N==="social_security_number"&&Ed(A.state??A.State)?!0:z.required,we=L[N],Ie=me=>{let De=ln(A,T,N,me);if(z.inputType==="radio"&&z.conditionals){const ue=z.conditionals??[];for(const _e of ue){const be=rn(A,T,N),xe=mu(be,_e.conditionalType,_e.conditionalValue),$e=mu(me,_e.conditionalType,_e.conditionalValue);if(xe&&!$e&&_e.conditionalQuestionsAllowMultiple){const Me=_e.conditionalQuestions??[];if(Me.length>0){const re=Pc(N);De=tr(De,[...T??[],re],[]);const oe=(Ce,Ee)=>{Ce.forEach(Te=>{(Te.conditionals??[]).forEach(ke=>{if(ke.conditionalQuestionsAllowMultiple){const Ue=Pc(Te.key);De=tr(De,[...Ee,Ue],[])}const qe=ke.conditionalQuestions??[];qe.length>0&&oe(qe,Ee)})})};oe(Me,[...T??[],re])}}}}n&&i?i(De):w(De),I(De)};if(N==="vehicle_policy_selections"){const me=A.vehicles__items??[],De=A.drivers__items??[];if(me.length===0)return v.jsx("p",{style:{color:"#666",fontStyle:"italic"},children:"Add vehicles first to configure coverage selections."},N);const ue=A.driver_vehicle_assignments??{},_e=De.length>1,be=Ue=>Object.entries(Ue).map(([ze,tt])=>({value:ze,label:tt})),xe=Ed(A.state??A.State),$e=(Ue,ze)=>Object.fromEntries(Ue.filter(tt=>tt in ze).map(tt=>[tt,ze[tt]])),re=be($e(xe?qI:KI,p0)),oe=xe?$e(WI,h0):h0,Ce=be(oe),Te=be($e(xe?QI:JI,b5)),Re=(Ue,ze,tt)=>{const rt=tr(A,["vehicles__items",Ue,ze],tt);n&&i?i(rt):w(rt),I(rt)},ke=(Ue,ze,tt)=>{const rt={...ue},Tt=`v${Ue}`;rt[Tt]={...rt[Tt]??{}},rt[Tt][`d${ze}`]=tt;const Ye=tr(A,["driver_vehicle_assignments"],rt);n&&i?i(Ye):w(Ye),I(Ye)},qe=Ue=>{if(!_e)return null;const ze=ue[`v${Ue}`];if(!ze)return null;const tt=De.map((Ye,Hn)=>ze[`d${Hn}`]??0),rt=tt.filter(Ye=>Ye>0);if(rt.length>=2&&rt.every(Ye=>Ye===rt[0])&&rt[0]===50)return`Assignments for Vehicle ${Ue+1} cannot be 50 percent for both Drivers.`;const Tt=tt.reduce((Ye,Hn)=>Ye+Hn,0);return Tt>0&&Tt!==100?`Driver percentages for this vehicle must add up to 100% (currently ${Tt}%).`:null};return v.jsx("div",{children:me.map((Ue,ze)=>{const tt=[Ue.year,Ue.make,Ue.model].filter(Boolean).join(" ")||`Vehicle ${ze+1}`,rt=qe(ze),Tt=Ye=>typeof Ue[Ye]=="string"?Ue[Ye]:"";return v.jsxs("fieldset",{style:{border:`1px solid ${rt?"#dc3545":"#ddd"}`,borderRadius:"8px",padding:"16px",marginBottom:"16px"},children:[v.jsx("legend",{style:{fontWeight:600,padding:"0 8px"},children:tt}),v.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:"12px"},children:[v.jsx(du,{id:`veh-${ze}-comp`,label:"Comprehensive deductible",required:!0,placeholder:"Select...",options:re,value:Tt("vehicle_comp_deductible"),onChange:Ye=>Re(ze,"vehicle_comp_deductible",Ye.currentTarget.value)}),v.jsx(du,{id:`veh-${ze}-coll`,label:"Collision deductible",required:!0,placeholder:"Select...",options:re,value:Tt("vehicle_coll_deductible"),onChange:Ye=>Re(ze,"vehicle_coll_deductible",Ye.currentTarget.value)}),v.jsx(du,{id:`veh-${ze}-tow`,label:"Towing and Labor",required:!0,placeholder:"Select...",options:Ce,value:Tt("vehicle_towing_and_labor"),onChange:Ye=>Re(ze,"vehicle_towing_and_labor",Ye.currentTarget.value)}),v.jsx(du,{id:`veh-${ze}-trans`,label:"Transportation expense",required:!0,placeholder:"Select...",options:Te,value:Tt("vehicle_transportation_expense"),onChange:Ye=>Re(ze,"vehicle_transportation_expense",Ye.currentTarget.value)})]}),_e&&v.jsxs("div",{style:{marginTop:"16px"},children:[v.jsx("p",{style:{fontWeight:600,margin:"0 0 8px"},children:"Drivers usage (%)"}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:De.map((Ye,Hn)=>{const ml=[Ye.first_name,Ye.last_name].filter(Boolean).join(" ")||`Driver ${Hn+1}`,Nn=ue[`v${ze}`]?.[`d${Hn}`];return v.jsx("div",{style:{flex:"0 0 140px"},children:v.jsx(Tp,{id:`assignment-v${ze}-d${Hn}`,label:`${ml} %`,value:Nn??"",min:0,max:100,step:1,inputMode:"numeric",onChange:gr=>{const Mn=gr.currentTarget.value.replace(/\D+/g,"");ke(ze,Hn,Mn===""?0:Math.min(100,parseInt(Mn,10)))}})},`${ze}-${Hn}`)})}),rt&&v.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:rt})]})]},ze)})},N)}if(N==="driver_vehicle_assignments"){const me=A.vehicles__items??[],De=A.drivers__items??[];if(S&&De.length<=1)return null;if(me.length===0||De.length===0)return v.jsx("p",{style:{color:"#666",fontStyle:"italic"},children:"Add vehicles and drivers first to configure driver usage percentages."},N);const ue=A.driver_vehicle_assignments??{},_e=(xe,$e,Me)=>{const re={...ue},oe=`v${xe}`;re[oe]={...re[oe]??{}},re[oe][`d${$e}`]=Me,Ie(re)},be=xe=>{if(De.length<2)return null;const $e=ue[`v${xe}`];if(!$e)return null;const Me=De.map((Ce,Ee)=>$e[`d${Ee}`]??0),re=Me.filter(Ce=>Ce>0);if(re.length>=2&&re.every(Ce=>Ce===re[0])&&re[0]===50)return`Assignments for Vehicle ${xe+1} cannot be 50 percent for both Drivers.`;const oe=Me.reduce((Ce,Ee)=>Ce+Ee,0);return oe>0&&oe!==100?`Driver percentages for this vehicle must add up to 100% (currently ${oe}%).`:null};return v.jsxs("div",{children:[v.jsx("h4",{style:{marginBottom:"12px"},children:ie}),me.map((xe,$e)=>{const Me=[xe.year,xe.make,xe.model].filter(Boolean).join(" ")||`Vehicle ${$e+1}`,re=be($e);return v.jsxs("fieldset",{style:{border:`1px solid ${re?"#dc3545":"#ddd"}`,borderRadius:"8px",padding:"16px",marginBottom:"16px"},children:[v.jsx("legend",{style:{fontWeight:600,padding:"0 8px"},children:Me}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:De.map((oe,Ce)=>{const Ee=[oe.first_name,oe.last_name].filter(Boolean).join(" ")||`Driver ${Ce+1}`,Te=ue[`v${$e}`]?.[`d${Ce}`];return v.jsx("div",{style:{flex:"0 0 140px"},children:v.jsx(Tp,{id:`assignment-v${$e}-d${Ce}`,label:`${Ee} %`,value:Te??"",min:0,max:100,step:1,inputMode:"numeric",onChange:Re=>{const ke=Re.currentTarget.value.replace(/\D+/g,"");_e($e,Ce,ke===""?0:Math.min(100,parseInt(ke,10)))}})},`${$e}-${Ce}`)})}),re&&v.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:re})]},$e)})]},N)}switch(z.inputType){case"text":{if(N==="vin"&&u){const me=T?T.join("-"):"_root",De=ye[me]??!1,ue=j[me]??null,_e=[ge?`${N}-hint`:null,we?`${N}-error`:null,ue?`${N}-vin-error`:null].filter(Boolean).join(" ");return v.jsxs("div",{children:[v.jsx(Un,{id:N,label:ie,hint:ge,error:we,required:he,children:v.jsxs("div",{className:"flex items-end gap-2",children:[v.jsx("div",{className:"flex-1 min-w-0",children:v.jsx("input",{id:N,className:`form-input ${we?"input-error":""}`,"aria-invalid":!!we,"aria-describedby":_e||void 0,"aria-required":he||void 0,required:he,value:Dn(Se),maxLength:17,onChange:be=>Ie(be.currentTarget.value),onBlur:()=>C(N,"text",T),autoComplete:Lc[N],type:"text"})}),v.jsx("button",{type:"button",disabled:De||!i3(Dn(Se)),className:"btn btn-outline shrink-0 self-end !w-auto min-w-[8.5rem] px-4 whitespace-nowrap disabled:opacity-50",onClick:()=>k(T,Dn(Se)),children:De?"Looking up...":"Verify VIN"})]})}),ue&&v.jsx("p",{id:`${N}-vin-error`,className:"text-sm text-red-600 mt-1",children:ue})]},N)}if(N==="sms_code"){const me=Dn(Se);return v.jsx(jc,{id:N,label:ie,hint:ge,value:me,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,onChange:De=>{const ue=De.currentTarget.value.replace(/\D+/g,"").slice(0,6);Ie(ue)},onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:Lc[N]},N)}if(N==="license_number")return v.jsx(jc,{id:N,label:ie,hint:ge,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value.replace(/[^A-Z0-9]/gi,"").slice(0,20)),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:"off",maxLength:20},N);if(N==="social_security_number"){const me=rn(A,T,"ssn_display"),De=typeof me=="string"?me:"",ue=De?`${De}. Re-enter to update.${ge?` ${ge}`:""}`:ge;return v.jsx(Y7,{id:N,label:ie,hint:ue,value:Dn(Se),onChange:_e=>Ie(_e.currentTarget.value),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we},N)}return v.jsx(jc,{id:N,label:ie,hint:ge,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:Lc[N],maxLength:yj[N]},N)}case"email":return v.jsx(q7,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"email",T),"aria-required":he||void 0,error:we},N);case"password":return v.jsx(W7,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"password",T),"aria-required":he||void 0,error:we},N);case"tel":return v.jsxs(v.Fragment,{children:[v.jsx(zE,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"tel",T),"aria-required":he||void 0,error:we},N),N==="phone"&&v.jsxs("div",{className:"mt-3 text-xs text-slate-600 space-y-1",children:[v.jsx("p",{children:"Enter your mobile number to continue to your quotes. If you choose to pursue a quote, you'll verify this number with a 6-digit text — we won't text you now."}),v.jsx("p",{children:"Message & data rates may apply. One message per request."}),v.jsxs("p",{children:["See our"," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","and"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"}),"."]})]})]});case"url":return v.jsx(K7,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"url",T),"aria-required":he||void 0,error:we},N);case"number":{const me=pj[N];return A3.has(N)||hj.has(N)?v.jsx(Z7,{id:N,label:ie,hint:ge,value:R3(Se),isCurrency:A3.has(N),maxDigits:me,onChange:De=>Ie(C3(De.currentTarget.value)),onBlur:()=>C(N,"number",T),"aria-required":he||void 0,error:we},N):v.jsx(Tp,{id:N,label:ie,hint:ge,value:R3(Se),inputMode:"numeric",pattern:"[0-9]*",onKeyDown:De=>{if(mj(De.key)){De.preventDefault();return}me!==void 0&&/^\d$/.test(De.key)&&String(De.currentTarget.value).replace(/\D/g,"").length>=me&&De.preventDefault()},onChange:De=>{let ue=De.currentTarget.value;me!==void 0&&(ue=ue.slice(0,me)),Ie(C3(ue))},onBlur:()=>C(N,"number",T),"aria-required":he||void 0,error:we},N)}case"textarea":return v.jsx(Q7,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"textarea",T),"aria-required":he||void 0,error:we,rows:4},N);case"date":{const{min:me,max:De}=gj(N);return v.jsx(OO,{id:N,label:ie,hint:ge,value:Dn(Se),min:me,max:De,onChange:ue=>{const _e=ue.currentTarget.value;Ie(_e),!Cr(_e,"date")&&!m0(N,_e)&&G(N,F(T,N,_e))},onBlur:()=>C(N,"date",T),"aria-required":he||void 0,error:we,autoComplete:Lc[N]},N)}case"checkbox":{if(z.options){const me=Array.isArray(Se)?Se:[],De=`${N}-error`;return v.jsxs("fieldset",{className:"space-y-2","aria-describedby":we?De:void 0,children:[v.jsxs("legend",{className:"form-label",children:[ie,he&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-red-600 ml-1","aria-hidden":"true",children:"*"}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:z.options.map(ue=>{const _e=`${N}-${Sd(ue)}`,be=me.includes(ue);return v.jsx(ji,{id:_e,label:ue,checked:be,onChange:xe=>{const $e=new Set(me);xe.currentTarget.checked?$e.add(ue):$e.delete(ue),Ie(Array.from($e))},"aria-required":he||void 0,"aria-describedby":we?De:void 0},_e)})}),we&&v.jsx("p",{id:De,className:"mt-1 text-sm text-red-600",children:we})]},N)}return v.jsx(ji,{id:N,label:he?`${ie} *`:ie,checked:!!Se,onChange:me=>Ie(me.currentTarget.checked),"aria-required":he||void 0},N)}case"radio":{if(Jc(z))return null;const me=z.options??[],De=T&&T.length>0?`${N}__${T.join("__")}`:N;return v.jsx(LO,{legend:ie,required:he,children:me.map(ue=>v.jsx(BO,{name:De,value:ue,checked:Se===ue,onChange:()=>{Ie(ue),G(N,F(T,N,ue))},children:D3[N]?.[ue]??ue},`${N}-${Sd(ue)}`))},N)}case"select":{let me=z.options??[];N==="quote_vehicle_id"&&(me=n?.vehicles__items?.map(Me=>Me.vin)??[]);let De=!1,ue,_e,be;if(N==="year"||N==="make"||N==="model"||N==="body_style"){const Me=T?T.join("-"):"_root";ye[Me]&&(De=!0,ue="Looking up VIN...")}if(!De&&(N==="make"||N==="model"||N==="body_style")){const Me=T?T.join("-"):"_root";be=Me;const re=rn(A,T,"year"),oe=typeof re=="number"?re:Number(re);if(N==="make"){const Ce=`${Me}:makes`;if(!oe||!Number.isFinite(oe))De=!0,ue="Select a year first";else{_e={year:oe};const Ee=B(_e);Ee&&Ee.length>0?me=Ee:ne[Ce]?(ue="Loading makes...",me=[...d3]):me=[...d3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else if(N==="model"){const Ce=`${Me}:models`,Ee=String(rn(A,T,"make")??"");if(!Ee)De=!0,ue="Select a make first";else if(oe&&Number.isFinite(oe)){_e={year:oe,make:Ee};const Te=B(_e);Te&&Te.length>0?me=Te:ne[Ce]?(ue="Loading models...",me=[...$3]):me=[...$3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else{const Ce=`${Me}:bodyStyles`,Ee=String(rn(A,T,"make")??""),Te=String(rn(A,T,"model")??"");if(!Te)De=!0,ue="Select a model first";else if(oe&&Number.isFinite(oe)&&Ee){_e={year:oe,make:Ee,model:Te};const Re=B(_e);Re&&Re.length>0?me=Re:ne[Ce]?(ue="Loading body styles...",me=[...x3]):me=[...x3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}}if(N==="occupation"||N==="co_applicant_occupation"){const Me=N==="co_applicant_occupation"?"co_applicant_employment_industry":void 0,re=Me?void 0:rn(A,T,"industry"),oe=rn(A,T,Me??"employment_industry"),Ee=String(Dd(re??oe)??"").trim();me=[...s3[Ee]??fj],typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}const xe=_j(T,N),$e=m?.has([...T??[],N].join("."))??!1;return v.jsx(du,{id:xe,label:ue?`${ie} — ${ue}`:ie,"aria-required":he||void 0,error:we,disabled:De,value:$e?"":Sj(Se),onChange:Me=>{const re=Me.currentTarget.value;if(N!=="year"&&N!=="make"&&N!=="model"&&N!=="industry"&&N!=="employment_industry"&&N!=="co_applicant_employment_industry"){Ie(re),G(N,F(T,N,re));return}let oe=ln(A,T,N,re);if(N==="year")oe=ln(oe,T,"make",""),oe=ln(oe,T,"model",""),oe=ln(oe,T,"body_style","");else if(N==="make")oe=ln(oe,T,"model",""),oe=ln(oe,T,"body_style","");else if(N==="model")oe=ln(oe,T,"body_style","");else if(N==="industry"||N==="employment_industry")oe=ln(oe,T,"occupation","");else if(N==="co_applicant_employment_industry"){const Ee=String(Dd(re)??"").trim(),Te=s3[Ee]??[],Re=Te.find(ke=>ke===Ee)??Te[0]??"";oe=ln(oe,T,"co_applicant_occupation",Re??"")}n&&i?i(oe):w(oe),I(oe);const Ce=T?Eu(oe,T)??{}:oe;G(N,{...Ce,[N]:re})},placeholder:ue??"Select an option",onFocus:_e&&be?()=>X(be,_e):void 0,options:me.map(Me=>({value:Me,label:D3[N]?.[Me]??dj[Me]??Me}))},xe)}case"address":return v.jsx(zO,{id:N,label:ie,value:Dn(Se),onChange:(me,De)=>{let ue=ln(A,T,N,me);const _e=De?.state??(typeof me=="string"?me.match(/,\s*([A-Z]{2})\s+\d{5}\b/)?.[1]:void 0);if(_e){const be=T?[...T,"state"]:["state"];ue=tr(ue,be,_e)}if(!T){const be=De?.zipCode??(typeof me=="string"?me.match(/,\s*[A-Z]{2}\s+(\d{5})(?:-\d{4})?\b/)?.[1]:void 0);be&&(ue=tr(ue,["postal_code"],be))}n&&i?i(ue):w(ue),I(ue)},onBlur:()=>C(N,"address",T),required:he,"aria-required":he||void 0,error:we},N);default:return null}}function W(z,T){const N=z.some(ge=>String(ge.key)==="years_at_address"),ie=z.find(ge=>String(ge.key)==="months_at_address");return z.map((ge,Se)=>{const he=String(ge.key);if(he==="months_at_address"&&N||!qc(ge,A,E)||!ch(ge,A,T)||!Yc(ge,A,c))return null;if(dh(he,ge,A,c)){const be=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!(be&&be!=="NoPriorInsurance"&&Xo(A,E)&&uh.has(he)))return null}const we=U(ge,T),Ie=he==="years_at_address"&&ie?U(ie,T):null,me=ge.conditionals??[];if(!me.length)return c==="BundlePolicy"&&he==="policy_bi"?v.jsxs("div",{className:sh(he,c,T),"data-question-key":he,children:[v.jsx("h3",{className:"text-lg font-semibold mt-6 mb-3",children:"Vehicle Coverage Information"}),we]},`wrap-${he}-${Se}`):v.jsxs("div",{className:sh(he,c,T),"data-question-key":he,children:[we,Ie]},`wrap-${he}-${Se}`);const De=w3(ge,rn(A,T,he)),ue=me.filter(be=>mu(De,be.conditionalType,be.conditionalValue)),_e=ue.length>1&&!ue.some(be=>be.conditionalQuestionsAllowMultiple)?ue.slice(0,1):ue;return v.jsxs("div",{className:sh(he,c,T),"data-question-key":he,children:[we,Ie,_e.map((be,xe)=>{const $e=be.conditionalQuestions??[];if(!$e.length)return null;if(!be.conditionalQuestionsAllowMultiple)return v.jsx("div",{className:"mt-3",children:W($e,T)},`branch-${he}-${xe}`);const Me=Pc(he),re=Eu(A,[...T??[],Me])??[],oe=Math.max(1,re.length||1),Ce=()=>{const Re=tr(A,[...T??[],Me,re.length],{});n&&i?i(Re):w(Re),I(Re)},Ee=()=>{const Re=re.slice(0,Math.max(0,re.length-1)),ke=tr(A,[...T??[],Me],Re);n&&i?i(ke):w(ke),I(ke)},Te=`${he}__c${xe}`;return v.jsxs("div",{className:"mt-3",children:[v.jsxs("div",{className:"repeatable-controls flex items-center justify-between mb-2 gap-2",children:[v.jsx("div",{className:"text-sm font-medium opacity-75",children:"Add one or more entries"}),v.jsxs("div",{className:"repeatable-actions space-x-2",children:[v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Ce,children:"Add another"}),oe>1&&v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Ee,children:"Remove last"})]})]}),Array.from({length:oe}).map((Re,ke)=>{const qe=[...T??[],Me,ke],Ue=`${Te}__i${ke}`,ze=re[ke]??{},tt=he==="drivers",Ye=tt?`Driver #${ke+1}`:he==="vehicles"?`Vehicle #${ke+1}`:he==="home_losses"||he==="losses"?`Loss #${ke+1}`:`Entry #${ke+1}`,ml=tt&&typeof ze.ssn_display=="string"&&ze.ssn_display?` — ${ze.ssn_display}`:"";return v.jsxs("div",{className:"rounded-lg border p-3 mb-3",children:[v.jsxs("div",{className:"text-sm font-semibold mb-2",children:[Ye,ml]}),$e.map(Nn=>{const gr=String(Nn.key);if(!qc(Nn,A,E)||!ch(Nn,A,qe)||!Yc(Nn,A,c))return null;if(dh(gr,Nn,A,c)){const Mn=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!(Mn&&Mn!=="NoPriorInsurance"&&Xo(A,E)&&uh.has(gr)))return null}return v.jsxs("div",{className:"mt-3",children:[U(Nn,qe),(()=>{const Mn=Nn.conditionals??[];if(!Mn.length)return null;const ri=rn(A,qe,Nn.key),Vn=Mn.filter(Rn=>mu(ri,Rn.conditionalType,Rn.conditionalValue));return(Vn.length>1&&!Vn.some(Rn=>Rn.conditionalQuestionsAllowMultiple)?Vn.slice(0,1):Vn).map((Rn,hl)=>{const Qi=Rn.conditionalQuestions??[];if(!Qi.length)return null;if(!Rn.conditionalQuestionsAllowMultiple)return v.jsx("div",{className:"mt-3",children:W(Qi,qe)},`nested-${Ue}-${hl}`);const sa=Pc(Nn.key),br=Eu(A,[...qe,sa])??[],Ju=Math.max(1,br.length||1),Xu=()=>{const Tr=tr(A,[...qe,sa,br.length],{});n&&i?i(Tr):w(Tr),I(Tr)},es=()=>{const Tr=br.slice(0,Math.max(0,br.length-1)),dr=tr(A,[...qe,sa],Tr);n&&i?i(dr):w(dr),I(dr)};return v.jsxs("div",{className:"mt-3",children:[v.jsxs("div",{className:"repeatable-controls flex items-center justify-between mb-2 gap-2",children:[v.jsx("div",{className:"text-sm font-medium opacity-75",children:"Add one or more entries"}),v.jsxs("div",{className:"repeatable-actions space-x-2",children:[v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Xu,children:"Add another"}),Ju>1&&v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:es,children:"Remove last"})]})]}),Array.from({length:Ju}).map((Tr,dr)=>{const yl=[...qe,sa,dr];return v.jsxs("div",{className:"rounded-lg border p-3 mb-3",children:[v.jsxs("div",{className:"text-sm font-semibold mb-2",children:["Entry #",dr+1]}),W(Qi,yl)]},`nested-item-${Ue}-${hl}-${dr}`)})]},`nested-repeat-${Ue}-${hl}`)})})()]},`${Ue}-${gr}`)})]},`group-${Ue}`)})]},`branch-${he}-${xe}`)})]},`wrap-${he}-${Se}`)})}const Y=b.useMemo(()=>{const z=[],T=(N,ie)=>{N.forEach(ge=>{if(!qc(ge,A,E)||!ch(ge,A,ie)||!Yc(ge,A,c))return;const Se=String(ge.key);if(dh(Se,ge,A,c)){const De=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!(De&&De!=="NoPriorInsurance"&&Xo(A,E)&&uh.has(Se)))return}Jc(ge)||z.push(ge);const he=ge.conditionals??[];if(!he.length)return;const we=w3(ge,rn(A,ie,Se)),Ie=he.filter(De=>mu(we,De.conditionalType,De.conditionalValue));(Ie.length>1&&!Ie.some(De=>De.conditionalQuestionsAllowMultiple)?Ie.slice(0,1):Ie).forEach(De=>{const ue=De.conditionalQuestions??[];ue.length&&(De.conditionalQuestionsAllowMultiple||T(ue,ie))})})};return T(g),z},[g,A,E,c]);b.useEffect(()=>{if(d<=0)return;const z=xu(A,E),T=Y.map(N=>Kc(N,E)?{...N,required:z}:N);M(Fu(T,A))},[d,Y,A,E]);function te(z){z.preventDefault();const T=xu(A,E),N=Y.map(ge=>Kc(ge,E)?{...ge,required:T}:ge),ie=Fu(N,A);if(M(ie),Object.keys(ie).length>0){const ge=Y.findIndex(Se=>ie[Se.key]);ge>=0&&document.getElementById(Y[ge].key)?.focus();return}o(A)}return v.jsx("form",{className:cj(c),"data-form-area":c??"unknown-stage",onSubmit:te,noValidate:!0,children:W(g)})}function O3({title:e,description:t,applyLabel:n,dismissLabel:i,alreadyOnApplicationNote:o,suggestions:u,isApplying:c,onApply:d,onDismiss:m}){const[h,y]=b.useState(new Set),g=u.length>0&&u.every(x=>h.has(x.id)),E=b.useMemo(()=>u.some(x=>x.alreadyOnApplication),[u]),S=x=>{y(w=>{const R=new Set(w);return R.has(x)?R.delete(x):R.add(x),R})},D=()=>{y(g?new Set:new Set(u.map(x=>x.id)))};return v.jsxs("div",{className:"prefill-suggestions-modal fixed inset-0 z-[10000] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-labelledby":"prefill-suggestions-title",children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsxs("div",{className:"modal-panel bg-white relative w-full max-w-lg max-h-[85vh] overflow-y-auto",role:"document",children:[v.jsxs("div",{className:"text-center mb-6",children:[v.jsx("h2",{id:"prefill-suggestions-title",className:"h1-title",children:e}),v.jsx("p",{className:"text-sm text-slate-600 mt-3",children:t})]}),v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 text-left mb-4",children:[u.map(x=>v.jsx(ji,{id:`prefill-suggestion-${x.id}`,label:x.alreadyOnApplication?`${x.label} *`:x.label,checked:h.has(x.id),disabled:c,onChange:()=>S(x.id)},x.id)),u.length>1&&v.jsx(ji,{id:"prefill-suggestion-select-all",label:"Select All",checked:g,disabled:c,onChange:D})]}),E&&v.jsx("p",{className:"text-xs text-slate-500 mb-4 text-left",children:o??"* This entry is already on the application; selecting it will fill in available data that does not exist on the application."}),v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mt-6",children:[v.jsx("button",{type:"button","data-widget-ctrl":"prefill-dismiss",onClick:m,disabled:c,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:i}),v.jsxs("button",{type:"button","data-widget-ctrl":"prefill-apply",onClick:()=>d(Array.from(h)),disabled:h.size===0||c,className:["form-wizard-next-btn","h-12 rounded-full text-white transition","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",h.size===0||c?"bg-gray-300":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[c&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),n]})]})]})]})}const Dj="https://getcredify.com/privacy-policy";function $j(){return v.jsx("a",{href:Dj,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})}function k3(){return v.jsxs(v.Fragment,{children:["See our ",v.jsx($j,{})," for how we use your information."]})}const xj=new Set(["Product","Name","Home","HomeConstruction","HomeFeatures","Vehicle","Driver","Demographics","Customer","HomeCustomer","BundleCustomer"]),Cj=new Set(["AutoCurrentCarrier","HomeCurrentCarrier","HomePolicy","BundlePolicy","AutoPolicy"]);function Aj(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function jo(e){return`stage-footer-hint stage-footer-hint--${Aj(e)}`}function k5({stageKey:e}){return e?e==="Zip"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"No credit card required."}):e==="Email"?v.jsxs("div",{className:jo(e),"data-stage-key":e,children:[v.jsx("p",{children:"We'll send your quotes and updates here, and save your progress so you can return anytime."}),v.jsx("p",{children:v.jsx(k3,{})})]}):Cj.has(e)?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"Tell us about your current coverage. Carriers ask about your coverage history to put together accurate quotes — it's a standard step on any application. Coverage gaps are common, so just enter things as they are. You're almost there: your quotes are almost ready."}):e==="Ssn"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"Your SSN is required by some carriers for fraud prevention, underwriting and to generate a quote. It's entered directly into our secure, encrypted form."}):e==="SMSVerification"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"You'll receive a text from Credify shortly."}):xj.has(e)?v.jsx("p",{className:jo(e),"data-stage-key":e,children:v.jsx(k3,{})}):null:null}function B5(e){const t=new Map,n=new Map,i=o=>{let u=t.get(o);return u||(u=e(o).then(c=>(n.set(o,c.suggestions),c.suggestions)).catch(c=>{throw t.delete(o),c}),t.set(o,u)),u};return{fetch:i,peek:o=>n.get(o),prefetch:o=>{i(o).catch(()=>{})},reset:()=>{t.clear(),n.clear()}}}const Cy=B5(rj),Ay=B5(oj),wj=Cy.fetch,Tj=Cy.peek,Nj=Cy.prefetch,Mj=Ay.fetch,Rj=Ay.peek,Oj=Ay.prefetch,kj=["vin","year","make","model"];function Bj(e){if(!e||typeof e!="object")return!0;const t=e;return kj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function Lj(e,t){if(t.length===0)return e;const n=e.vehicles__items??[],i=n.filter(c=>!Bj(c)),o=new Set(i.map(c=>String(c.vin??"").trim().toUpperCase()).filter(c=>c!=="")),u=t.filter(c=>{const d=String(c.vin??"").trim().toUpperCase();return d===""||!o.has(d)});return u.length===0&&i.length===n.length?e:{...e,vehicles:"Yes",vehicles__items:[...i,...u]}}const Pj=["first_name","last_name","date_of_birth"];function L5(e){if(!e||typeof e!="object")return!0;const t=e;return Pj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function B3(e){return`${String(e.first_name??"").trim()} ${String(e.last_name??"").trim()}`.trim().toUpperCase()}function Ij(e,t){if(t.length===0)return e;const n=e.drivers__items??[],i=n.filter(c=>!L5(c)),o=new Set(i.map(B3).filter(c=>c!=="")),u=t.filter(c=>{const d=B3(c);return d===""||!o.has(d)});return u.length===0&&i.length===n.length?e:{...e,drivers:"Yes",drivers__items:[...i,...u]}}function Fj(e){return(e.drivers__items??[]).some(n=>!L5(n))}const jj=["widgetOpened","widgetClosed","stageViewed","stageCompleted","flowCompleted","ratesViewed","ratesBack","submissionFailed"],$d={};function zj(e){let t=$d[e];return t||(t=new Set,$d[e]=t),t}function P5(e,t){zj(e).add(t)}function I5(e,t){$d[e]?.delete(t)}function ni(e,...t){const n=$d[e];if(!n||n.size===0)return;const i=t[0],o={quoteId:rf(),timestamp:Date.now()};for(const u of[...n])try{u(i,o)}catch(c){Ld(c,{tags:{source:"widget-event-listener",event:e}})}}function Uj(){ni("widgetOpened")}function Hj(){ni("widgetClosed")}function Vj(e){ni("stageViewed",e)}function L3(e){ni("stageCompleted",e)}function Gj(){ni("flowCompleted")}function Zj(e){ni("ratesViewed",e)}function Yj(){ni("ratesBack")}function pu(e){ni("submissionFailed",e)}const F5=new Set(["Disabled","Retired","Unemployed","Other"]);function qj(e,t){const n=String(e.key??"");if(n==="co_applicant_occupation"||n!=="occupation")return!0;const i=t.industry,o=t.employment_industry,u=String(i??o??"").trim();return!F5.has(u)}function Kj(e,t){const n=String(e.key??"");if(n==="co_applicant_occupation"||n!=="occupation")return!0;const i=t.industry,o=t.employment_industry,u=String(i??o??"").trim();return!F5.has(u)}function j5(e){return e.inputType!=="radio"||!e.options||e.options.length!==1||e.options[0]!=="Yes"?!1:(e.conditionals??[]).some(n=>n.conditionalQuestionsAllowMultiple&&n.conditionalType==="equals"&&n.conditionalValue==="Yes")}function wy(e,t){return j5(e)?"Yes":t}function P3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function I3(e){if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.getTime();if(typeof e=="string"){const t=Date.parse(e);return Number.isNaN(t)?null:t}return null}function F3(e,t){const n=P3(e),i=P3(t);if(n!=null&&i!=null)return n-i;const o=I3(e),u=I3(t);return o!=null&&u!=null?o-u:e==null||t==null?null:String(e).localeCompare(String(t))}function Wj(e,t){return Array.isArray(e)?e.some(n=>n===t):typeof e=="string"?t!=null&&e.includes(String(t)):!1}function Ty(e,t,n){switch(t){case"equals":return e===n;case"notEquals":return e!==n&&e!==""&&e!=null;case"lessThan":{const i=F3(e,n);return i!=null&&i<0}case"greaterThan":{const i=F3(e,n);return i!=null&&i>0}case"contains":return Wj(e,n);case"startsWith":return e!=null&&n!=null&&String(e).startsWith(String(n));case"endsWith":return e!=null&&n!=null&&String(e).endsWith(String(n));default:return!1}}const Qj=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function Jj(e){return String(e??"").trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function of(e,t,n){const i=py([...e]),o=Dy(i),u=[],c=d=>{d.forEach(m=>{if(!qc(m,t,o)||!qj(m,t)||!Yc(m,t,n))return;const h=String(m.key);if(nf(h,n,t)){const D=o.currentCarrierKey?t[o.currentCarrierKey]:void 0;if(!(D&&D!=="NoPriorInsurance"&&Xo(t,o)&&Qj.has(h)))return}j5(m)||u.push(m);const y=wy(m,t[h]),g=m.conditionals??[];if(!g.length)return;const E=g.filter(D=>Ty(y,D.conditionalType,D.conditionalValue));(E.length>1&&!E.some(D=>D.conditionalQuestionsAllowMultiple)?E.slice(0,1):E).forEach(D=>{const x=D.conditionalQuestions??[];x.length&&(D.conditionalQuestionsAllowMultiple||c(x))})})};return c(i),u}const z5="__items",xd=e=>`${e}${z5}`;function Xj(e,t){if(e.key==="relationship_to_insured"||e.key==="is_registered_owner"){const n=t[t.length-1];return typeof n=="number"&&n===0}return!1}function Cd(e,t,n,i=[],o=void 0,u=t){for(const c of e){const d=String(c.key),m=wy(c,t[d]),h=c.conditionals??[];if(!h.length)continue;const y=h.filter(E=>Ty(m,E.conditionalType,E.conditionalValue)),g=y.length>1&&!y.some(E=>E.conditionalQuestionsAllowMultiple)?y.slice(0,1):y;for(const E of g){const S=E.conditionalQuestions??[];if(!S.length)continue;if(!E.conditionalQuestionsAllowMultiple){Cd(S,t,n,i,o,u);continue}if(nf(d,o,u))continue;const D=t[xd(d)]??[];if(D.length===0){n.push({groupKey:d,index:-1,fieldKey:"",fieldLabel:"",message:"At least one entry is required"});continue}for(const[x,w]of D.entries()){const R=[...i,xd(d),x],I=of(S,w,o).filter(Z=>!(Xj(Z,R)||!Kj(Z,w))),A={state:u.state,...w},L=Fu(I,A),M=new Map(I.map((Z,V)=>[Ya(Z,V),Z.question??""]));for(const[Z,V]of Object.entries(L))V&&n.push({groupKey:d,index:x,fieldKey:Z,fieldLabel:M.get(Z)??Z,message:V});Cd(S,w,n,R,o,u)}}}}function ez(e,t,n){const i=[];return Cd(e,t,i,[],n,t),i}function tz(e,t,n){const i=[];return Cd(e,t,i,[],n,t),i.length>0}function v0(e,t,n,i){for(const o of e){const u=String(o.key),c=wy(o,t[u]),d=o.conditionals??[];if(!d.length)continue;const m=d.filter(y=>Ty(c,y.conditionalType,y.conditionalValue)),h=m.length>1&&!m.some(y=>y.conditionalQuestionsAllowMultiple)?m.slice(0,1):m;for(const y of h){const g=y.conditionalQuestions??[];if(!g.length)continue;if(!y.conditionalQuestionsAllowMultiple){v0(g,t,n,i);continue}if(nf(u,n,t))continue;const E=t[xd(u)]??[];for(const[S,D]of E.entries())typeof D!="object"||D===null||(i(of(g,D,n),D,{groupKey:u,index:S}),v0(g,D,n,i))}}}function U5(e){const t=e.vehicles__items??[];if(!Array.isArray(t)||t.length===0)return!1;for(const n of t)if(Cr(n.vehicle_comp_deductible,"select")||Cr(n.vehicle_coll_deductible,"select")||Cr(n.vehicle_towing_and_labor,"select")||Cr(n.vehicle_transportation_expense,"select"))return!0;return!1}function j3({targetStage:e,stageKey:t,quoteId:n,fetchSuggestions:i,peekSuggestions:o,applySelection:u,dismissSelection:c,mergeItems:d,setAllValues:m,shouldSkip:h}){const[y,g]=b.useState(null),[E,S]=b.useState(!1),[D,x]=b.useState(!1),w=b.useRef(new Set);return b.useEffect(()=>{if(t!==e||!n||w.current.has(n))return;if(h?.()){w.current.add(n);return}const A=o(n);if(A!==void 0){A.length>0?g(A):w.current.add(n);return}let L=!1;return x(!0),i(n).then(M=>{M.length===0&&w.current.add(n),!L&&M.length>0&&g(M)}).catch(()=>{w.current.add(n)}).finally(()=>{L||x(!1)}),()=>{L=!0,x(!1)}},[t,n,e]),{suggestions:y,isApplying:E,isPending:D,handleApply:async A=>{if(n){S(!0);try{const{items:L}=await u(n,A);L.length>0&&m(M=>d(M,L))}catch{}finally{w.current.add(n),S(!1),g(null)}}},handleDismiss:()=>{n&&(w.current.add(n),c(n).catch(()=>{})),g(null)}}}function nz({stages:e,onStageComplete:t,onComplete:n,initialValues:i,initialActive:o,quoteId:u,nonTerminalStageKeys:c}){const[d,m]=b.useState(o??0),[h,y]=b.useState(i??{}),[g,E]=b.useState({}),[S,D]=b.useState(!1),[x,w]=b.useState(!1),[R,I]=b.useState(null),[A,L]=b.useState(0),[M,Z]=b.useState([]),[V,fe]=b.useState(o??0),ne=b.useRef({}),pe=b.useRef([]),J=b.useRef(null),ye=b.useRef(e),Ae=Array.isArray(e)&&e.length>0,j=Ae?Math.min(d,e.length-1):0,de=Ae?e[j]:null,k=de?.key??null,B=b.useRef(h);B.current=h;const X=j3({targetStage:"Vehicle",stageKey:k,quoteId:u,fetchSuggestions:wj,peekSuggestions:Tj,applySelection:aj,dismissSelection:ij,mergeItems:Lj,setAllValues:y}),F=j3({targetStage:"Driver",stageKey:k,quoteId:u,fetchSuggestions:Mj,peekSuggestions:Rj,applySelection:lj,dismissSelection:uj,mergeItems:Ij,setAllValues:y,shouldSkip:()=>Fj(B.current)}),G=k==="Vehicle"&&X.isPending||k==="Driver"&&F.isPending;b.useEffect(()=>{o!==void 0&&(m(o),fe(he=>Math.max(he,o)))},[o]),ye.current=e;const C=b.useMemo(()=>{const he=j>=e.length-1;return he&&k&&c?.has(k)?!1:!!(he||e.slice(j+1).every(Ie=>Ie.key==="AutoPolicy")&&(h.drivers__items??[]).length<=1)},[j,e,h,k,c]);b.useEffect(()=>{Ae&&d>=e.length&&m(e.length-1)},[d,e.length,Ae]),b.useEffect(()=>{L(0),Z([])},[k]),b.useEffect(()=>{const he=pe.current[j];he&&he.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[j]),b.useEffect(()=>{i!==void 0&&y(i)},[i]),b.useEffect(()=>{if(!de||!k){D(!1),I(null);return}if(g[k]){D(!1),I(null);return}let he=!1;return D(!0),I(null),Promise.resolve(de.loadQuestions()).then(we=>{if(!he){if(!Array.isArray(we))throw new Error(`loadQuestions("${k}") did not return an array`);E(Ie=>({...Ie,[k]:we}))}}).catch(we=>{he||I(`Failed to load stage "${de?.title??""}": ${we?.message??"Unknown error"}`)}).finally(()=>{he||D(!1)}),()=>{he=!0}},[de,k,g]);const U=k?g[k]:void 0,W=b.useMemo(()=>Dy(py(U??[])),[U]);b.useEffect(()=>{de&&k&&U&&Vj({stageKey:k,stageTitle:de.title??k,stepIndex:d+1,totalSteps:e.length})},[k,d,e.length,de,U]);const Y=b.useMemo(()=>{if(!U)return{};const he={};(me=>{const De=[],ue=_e=>{_e.forEach((be,xe)=>{const $e=Ya(be,xe);De.push($e);const Me=xd($e);De.push(Me),(be.conditionals??[]).forEach(oe=>{const Ce=oe.conditionalQuestions??[];Ce.length>0&&ue(Ce)})})};return ue(me),De})(U).forEach(me=>{me in h&&(he[me]=h[me])});for(const me of["state","State","address","product"])me in h&&(he[me]=h[me]);for(const[me,De]of Object.entries(h))me.endsWith(z5)&&!(me in he)&&(he[me]=De);return he},[U,h]),te=he=>{y(we=>({...we,...he}))},z=()=>{m(he=>he>0?he-1:0),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"})},T=he=>{he<0||he>=e.length||he>V||he===j||(m(he),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"}))},N=async()=>{if(!U||!de||S||R||x||G)return;const he=of(U,Y,k??void 0),we=xu(h,W),Ie=he.map(Ee=>Kc(Ee,W)?{...Ee,required:we}:Ee),me=Fu(Ie,Y),De=new Set(Ie.map((Ee,Te)=>Ya(Ee,Te))),ue=Object.entries(me).some(([Ee,Te])=>Te&&De.has(Ee)),_e=tz(U,h,k??void 0),xe=he.some(Ee=>String(Ee.key??"")==="vehicle_policy_selections")?U5(h):!1,$e=h.driver_vehicle_assignments,Me=h.drivers__items??[];let re=!1;if($e&&Me.length>=2){const Ee=h.vehicles__items??[];for(let Te=0;Te<Ee.length;Te++){const Re=$e[`v${Te}`];if(!Re)continue;const ke=Me.map((ze,tt)=>Re[`d${tt}`]??0),qe=ke.filter(ze=>ze>0);if(qe.length>=2&&qe.every(ze=>ze===50)){re=!0;break}const Ue=ke.reduce((ze,tt)=>ze+tt,0);if(Ue>0&&Ue!==100){re=!0;break}}}if(ue||_e||xe||re){const Ee=new Map(Ie.map((ke,qe)=>[Ya(ke,qe),ke])),Re=[...Object.entries(me).filter(([ke,qe])=>!!qe&&De.has(ke)).map(([ke,qe])=>{const Ue=qe,ze=Ee.get(ke)?.question;return Ue==="Required"&&ze?`${ze} is required`:Ue}),_e?"Complete all required repeated entries before continuing.":null,xe?"Complete the vehicle policy selections before continuing.":null,re?"Driver usage percentages must be valid before continuing.":null].filter(ke=>!!ke);L(ke=>ke+1),Z(Re.length>0?Re:["Review the highlighted fields before continuing."]),window.setTimeout(()=>{J.current?.focus()},0);return}Z([]);const oe=JSON.stringify(Y);if(!C&&j<V&&ne.current[k??""]===oe){m(Ee=>Math.min(Ee+1,e.length-1)),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"});return}w(!0);try{const Ee=C,Te=Ee?await n(h,k??""):await t(Y,k??""),{success:Re,error:ke}=Te;if(!Re){I(ke??"An error occurred");return}if(!Ee){const qe=Te.latestStages??ye.current,Ue=qe.findIndex(tt=>tt.key===k),ze=Ue>=0?Math.min(Ue+1,qe.length-1):Math.min(d+1,qe.length-1);ne.current[k??""]=oe,fe(tt=>Math.max(tt,ze)),m(ze)}}finally{w(!1)}},ie=b.useMemo(()=>!!(!U||S||R||x||G),[U,S,R,x,G]),ge=e.length>0?(j+1)/e.length*100:0,Se=Jj(k??"unknown-stage");return Ae?v.jsxs("div",{className:`form-wizard-shell form-wizard-shell--${Se}`,"data-stage-key":k??void 0,children:[k==="Vehicle"&&X.suggestions&&X.suggestions.length>0&&v.jsx(O3,{title:"Select your vehicles",description:"We found the vehicles below at your address. Select the ones you'd like to add to your quote, or add them manually.",applyLabel:"Add selected vehicles",dismissLabel:"Add manually",alreadyOnApplicationNote:"* This vehicle is already on the application; selecting it will fill in available data that does not exist on the application.",suggestions:X.suggestions,isApplying:X.isApplying,onApply:X.handleApply,onDismiss:X.handleDismiss}),k==="Driver"&&F.suggestions&&F.suggestions.length>0&&v.jsx(O3,{title:"Additional drivers",description:"We found the drivers below at your address. Select the ones you'd like to add to your quote, or add them manually.",applyLabel:"Add selected drivers",dismissLabel:"Add manually",alreadyOnApplicationNote:"* This driver is already on the application; selecting them will fill in available data that does not exist on the application.",suggestions:F.suggestions,isApplying:F.isApplying,onApply:F.handleApply,onDismiss:F.handleDismiss}),v.jsx("div",{className:`form-wizard-steps-header form-wizard-steps-header--${Se}`,children:v.jsx("div",{className:"form-wizard-steps-scroll",children:v.jsx("ol",{className:"form-wizard-steps flex gap-2 text-xs overflow-x-auto flex-1 pb-1 scrollbar-hide items-center",style:{scrollbarWidth:"none",msOverflowStyle:"none"},tabIndex:0,"aria-label":"Quote steps",children:e.flatMap((he,we)=>[v.jsx("li",{ref:Ie=>{pe.current[we]=Ie},className:"flex-shrink-0",children:v.jsx("button",{type:"button",className:"form-wizard-step-pill px-2.5 py-1 rounded-full border whitespace-nowrap","data-step-state":we<j?"complete":we===j?"current":"upcoming",onClick:()=>T(we),disabled:we>V,"aria-current":we===j?"step":void 0,"aria-label":`${he.title}, step ${we+1} of ${e.length}${we>V?", not available yet":""}`,children:he.title})},he.key??`stage-${we}`),...we<e.length-1?[v.jsx("li",{className:"form-wizard-step-arrow text-slate-400 flex-shrink-0","aria-hidden":"true",children:"›"},`arrow-${he.key??we}`)]:[]])})})}),v.jsxs("div",{className:`form-wizard-card form-wizard-card--${Se}`,style:{"--form-wizard-progress":`${ge}%`},children:[v.jsxs("div",{className:`form-wizard-content form-wizard-content--${Se}`,children:[S&&v.jsx("div",{className:"text-slate-500",role:"status","aria-live":"polite",children:"Loading…"}),G&&v.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",role:"status","aria-live":"polite",children:[v.jsxs("svg",{className:"animate-spin h-8 w-8 text-blue-600 mb-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),v.jsx("div",{className:"text-text-primary font-semibold",children:k==="Driver"?"Looking up additional drivers at your address…":"Looking up vehicles at your address…"}),v.jsx("div",{className:"text-sm text-slate-500 mt-1",children:"This can take a few moments."})]}),!G&&M.length>0&&v.jsxs("div",{ref:J,className:"mb-4 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700",role:"alert",tabIndex:-1,children:[v.jsx("p",{className:"font-semibold",children:"Please fix the following before continuing:"}),v.jsx("ul",{className:"mt-2 list-disc space-y-1 pl-5",children:M.map((he,we)=>v.jsx("li",{children:he},`${he}-${we}`))})]}),de&&!G&&v.jsx(O5,{questions:U??[],controlledValues:Y,onChangeValues:te,onSubmit:()=>N(),quoteId:u,widgetStageKey:k??void 0,validationAttempt:A},de.key),!S&&R&&v.jsxs("div",{className:"text-red-600 text-sm -mt-4",role:"alert",children:[v.jsx("div",{children:R}),de&&v.jsx("button",{type:"button",className:"credify-retry-btn underline mt-1 font-bold",onClick:()=>{E(he=>{if(!k)return he;const we={...he};return delete we[k],we})},children:"Retry"})]}),v.jsx(k5,{stageKey:k})]}),v.jsxs("div",{className:j>0?"form-wizard-actions grid grid-cols-2 gap-3":"form-wizard-actions",children:[j>0&&v.jsx("button",{type:"button",onClick:z,disabled:S,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",children:"Back"}),v.jsxs("button",{type:"button","data-widget-ctrl":"next",onClick:N,disabled:ie,className:["form-wizard-next-btn",j>0?"":"w-full","h-12 rounded-full text-white transition","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",ie?"bg-gray-300":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[x&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),C?"Finish":"Next"]})]})]})]}):v.jsx("div",{className:"text-slate-600",children:"Loading..."})}const H5={SafecoPersonal:{name:"Safeco",abbr:"SFC",color:"#0F337A"},SafecoPersoanl:{name:"Safeco",abbr:"SFC",color:"#0F337A"},AssuranceAmerica:{name:"Assurance America",abbr:"AA",color:"#2768B5"},CommonWealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#2D69EC"},Alinsco:{name:"Alinsco",abbr:"AL",color:"#20395D"},ACORDBOLTPersonalAuto:{name:"Bolt Auto",abbr:"BLT",color:"#1F2937"},ACORDBOLTPersonalHome:{name:"Bolt Home",abbr:"BLT",color:"#1F2937"},TwentyFirstCentury:{name:"21st Century",abbr:"21C",color:"#B2392A"},ACentral:{name:"A-Central",abbr:"ACT",color:"#EAAD1D"},AAA:{name:"AAA",abbr:"AAA",color:"#DB461C"},AARP:{name:"AARP",abbr:"ARP",color:"#DB4724"},Acadia:{name:"Acadia",abbr:"ACD",color:"#386B61"},Ace:{name:"ACE",abbr:"ACE",color:"#457D48"},Acuity:{name:"Acuity",abbr:"ACU",color:"#D74630"},AdirondackInsExchange:{name:"Adirondack",abbr:"ADK",color:"#1F5490"},Aegis:{name:"Aegis",abbr:"AEG",color:"#1A4675"},AIC:{name:"AIC",abbr:"AIC",color:"#508F47"},AIG:{name:"AIG",abbr:"AIG",color:"#223572"},AlfaAlliance:{name:"Alfa Alliance",abbr:"ALF",color:"#C13D17"},AllianzOfAmerica:{name:"Allianz",abbr:"ALZ",color:"#003781"},AllianzOfAmericaJefferson:{name:"Allianz Jefferson",abbr:"ALZ",color:"#003781"},Allied:{name:"Allied",abbr:"ALD",color:"#0047BB"},Allmerica:{name:"Allmerica",abbr:"ALM",color:"#003DA5"},Allstate:{name:"Allstate",abbr:"ALS",color:"#002F87"},AmericaFirst:{name:"America First",abbr:"AMF",color:"#003DA5"},AmericanCommerce:{name:"American Commerce",abbr:"ACM",color:"#003DA5"},AmericanFamily:{name:"American Family",abbr:"AMF",color:"#0033A0"},Amica:{name:"Amica",abbr:"AMI",color:"#003DA5"},Ameriprise:{name:"Ameriprise",abbr:"AMP",color:"#003DA5"},ASILloyds:{name:"ASI Lloyds",abbr:"ASI",color:"#003DA5"},Assurant:{name:"Assurant",abbr:"ASR",color:"#0033A0"},AtlasGeneralAgency:{name:"Atlas General",abbr:"ATL",color:"#1F3864"},AustinMutual:{name:"Austin Mutual",abbr:"AUS",color:"#1F3864"},Autoone:{name:"AutoOne",abbr:"AON",color:"#003DA5"},AutoOwners:{name:"Auto-Owners",abbr:"AO",color:"#C8102E"},BadgerMutual:{name:"Badger Mutual",abbr:"BDG",color:"#003DA5"},Balboa:{name:"Balboa",abbr:"BAL",color:"#1F3864"},Bamboo:{name:"Bamboo",abbr:"BMB",color:"#0F4C3A"},Bankers:{name:"Bankers",abbr:"BNK",color:"#1F3864"},BeaconNational:{name:"Beacon National",abbr:"BCN",color:"#003DA5"},BrethernMutual:{name:"Brethren Mutual",abbr:"BRT",color:"#1F3864"},BristolWest:{name:"Bristol West",abbr:"BW",color:"#003DA5"},BunkerHill:{name:"Bunker Hill",abbr:"BHL",color:"#1F3864"},CapitalInsuranceGroup:{name:"Capital Insurance",abbr:"CIG",color:"#003DA5"},Celina:{name:"Celina",abbr:"CEL",color:"#1F3864"},CentralMutualOfOH:{name:"Central Mutual",abbr:"CMO",color:"#003DA5"},Chubb:{name:"Chubb",abbr:"CHB",color:"#000000"},ChubbInsurance:{name:"Chubb",abbr:"CHB",color:"#000000"},Cincinnati:{name:"Cincinnati",abbr:"CIN",color:"#003DA5"},Citizens:{name:"Citizens",abbr:"CTZ",color:"#003DA5"},Clearcover:{name:"Clearcover",abbr:"CC",color:"#00B5E2"},CNA:{name:"CNA",abbr:"CNA",color:"#CC3232"},ColonialPenn:{name:"Colonial Penn",abbr:"CPN",color:"#0072CE"},ColoradoCasualty:{name:"Colorado Casualty",abbr:"COC",color:"#1F3864"},Columbia:{name:"Columbia",abbr:"CLM",color:"#003DA5"},CommerceWest:{name:"Commerce West",abbr:"CMW",color:"#003DA5"},CommonwealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#1F3864"},ConstitutionalCasualty:{name:"Constitutional Casualty",abbr:"CON",color:"#1F3864"},Cornerstone:{name:"Cornerstone",abbr:"CRN",color:"#1F3864"},Countrywide:{name:"Countrywide",abbr:"CTW",color:"#003DA5"},CSE:{name:"CSE",abbr:"CSE",color:"#003DA5"},Cumberland:{name:"Cumberland",abbr:"CMB",color:"#1F3864"},Cypress:{name:"Cypress",abbr:"CYP",color:"#0F4C3A"},Dairyland:{name:"Dairyland",abbr:"DL",color:"#0072CE"},Deerbrook:{name:"Deerbrook",abbr:"DBK",color:"#1F3864"},Direct:{name:"Direct",abbr:"DIR",color:"#D52B1E"},Donegal:{name:"Donegal",abbr:"DON",color:"#003DA5"},Drive:{name:"Drive",abbr:"DRV",color:"#1F3864"},Electric:{name:"Electric",abbr:"ELC",color:"#003DA5"},EMC:{name:"EMC",abbr:"EMC",color:"#003DA5"},Encompass:{name:"Encompass",abbr:"ENC",color:"#002F87"},Erie:{name:"Erie",abbr:"ERI",color:"#005FAC"},Esurance:{name:"Esurance",abbr:"ESU",color:"#00A6CE"},ExcelsiorInsuranceCompany:{name:"Excelsior",abbr:"EXC",color:"#1F3864"},Explorer:{name:"Explorer",abbr:"EXP",color:"#1F3864"},FairPlan:{name:"FAIR Plan",abbr:"FPN",color:"#1F3864"},FarmBureau:{name:"Farm Bureau",abbr:"FB",color:"#00843D"},Farmers:{name:"Farmers",abbr:"FRM",color:"#1C428B"},Fidelity:{name:"Fidelity",abbr:"FID",color:"#00833F"},FiremansFund:{name:"Fireman's Fund",abbr:"FF",color:"#E31837"},FirstAmerican:{name:"First American",abbr:"FAM",color:"#003DA5"},Foremost:{name:"Foremost",abbr:"FOR",color:"#E31837"},ForemostInsuranceCompany:{name:"Foremost",abbr:"FOR",color:"#E31837"},Geico:{name:"GEICO",abbr:"GEI",color:"#0F4293"},GeneralCasualty:{name:"General Casualty",abbr:"GC",color:"#1F3864"},GermantownMutual:{name:"Germantown Mutual",abbr:"GTM",color:"#1F3864"},GMAC:{name:"GMAC",abbr:"GMA",color:"#003DA5"},Grange:{name:"Grange",abbr:"GRG",color:"#003DA5"},GreatAmerican:{name:"Great American",abbr:"GA",color:"#003DA5"},Grinnell:{name:"Grinnell Mutual",abbr:"GRN",color:"#E31837"},GuideOne:{name:"GuideOne",abbr:"GO",color:"#0072CE"},Hanover:{name:"Hanover",abbr:"HAN",color:"#003DA5"},Harbor:{name:"Harbor",abbr:"HBR",color:"#1F3864"},Harleysville:{name:"Harleysville",abbr:"HRL",color:"#003DA5"},Hartford:{name:"The Hartford",abbr:"HFD",color:"#7F1734"},HartfordOMNI:{name:"Hartford OMNI",abbr:"HOM",color:"#7F1734"},HastingsMutual:{name:"Hastings Mutual",abbr:"HST",color:"#1F3864"},HawkeyeSecurity:{name:"Hawkeye Security",abbr:"HWK",color:"#1F3864"},HDI:{name:"HDI",abbr:"HDI",color:"#00563F"},HippoInsuranceCompany:{name:"Hippo",abbr:"HPO",color:"#00C9A7"},HomeownersOfAmerica:{name:"Homeowners of America",abbr:"HOA",color:"#003DA5"},Homesite:{name:"Homesite",abbr:"HMS",color:"#0033A0"},HoraceMann:{name:"Horace Mann",abbr:"HM",color:"#003DA5"},HoustonGeneral:{name:"Houston General",abbr:"HG",color:"#1F3864"},IFA:{name:"IFA",abbr:"IFA",color:"#003DA5"},ImperialCasualty:{name:"Imperial Casualty",abbr:"IMP",color:"#1F3864"},Indiana:{name:"Indiana Insurance",abbr:"IND",color:"#003DA5"},IndianaFarmers:{name:"Indiana Farmers",abbr:"IFM",color:"#00843D"},Infinity:{name:"Infinity",abbr:"INF",color:"#E31837"},Insurequest:{name:"Insurequest",abbr:"INQ",color:"#1F3864"},Integon:{name:"Integon",abbr:"ITG",color:"#003DA5"},Integrity:{name:"Integrity",abbr:"ITY",color:"#1F3864"},Kemper:{name:"Kemper",abbr:"KMP",color:"#0033A0"},LibertyMutual:{name:"Liberty Mutual",abbr:"LM",color:"#FFD000"},LibertyNorthwest:{name:"Liberty Northwest",abbr:"LNW",color:"#FFD000"},Lloyds:{name:"Lloyd's",abbr:"LLY",color:"#003DA5"},MainStreetAmerica:{name:"Main Street America",abbr:"MSA",color:"#003DA5"},Mapfre:{name:"MAPFRE",abbr:"MAP",color:"#E31837"},MarkelInsuranceCompany:{name:"Markel",abbr:"MKL",color:"#003DA5"},Mendota:{name:"Mendota",abbr:"MND",color:"#1F3864"},MerchantsGroup:{name:"Merchants Group",abbr:"MRC",color:"#003DA5"},Mercury:{name:"Mercury",abbr:"MER",color:"#ED1C24"},Metlife:{name:"MetLife",abbr:"MET",color:"#0090DA"},Metropolitan:{name:"Metropolitan",abbr:"MTP",color:"#0090DA"},MidContinent:{name:"Mid-Continent",abbr:"MC",color:"#003DA5"},MidwesternIndemnity:{name:"Midwestern Indemnity",abbr:"MWI",color:"#003DA5"},Montgomery:{name:"Montgomery",abbr:"MTG",color:"#1F3864"},MSA:{name:"MSA",abbr:"MSA",color:"#003DA5"},MtWashington:{name:"Mt. Washington",abbr:"MTW",color:"#1F3864"},MutualBenefit:{name:"Mutual Benefit",abbr:"MB",color:"#1F3864"},NatGenPremier:{name:"NatGen Premier",abbr:"NGP",color:"#0033A0"},NationalGeneral:{name:"National General",abbr:"NG",color:"#0033A0"},Nationwide:{name:"Nationwide",abbr:"NW",color:"#204D9B"},NationwideScottsdale:{name:"Nationwide Scottsdale",abbr:"NWS",color:"#204D9B"},NewYorkCentralMutual:{name:"NY Central Mutual",abbr:"NYC",color:"#003DA5"},NJManufacturers:{name:"NJM Insurance",abbr:"NJM",color:"#003DA5"},NJSkylands:{name:"NJ Skylands",abbr:"NJS",color:"#003DA5"},Northstar:{name:"Northstar",abbr:"NST",color:"#1F3864"},Occidental:{name:"Occidental",abbr:"OCC",color:"#1F3864"},OhioCasualty:{name:"Ohio Casualty",abbr:"OHC",color:"#003DA5"},OmahaPC:{name:"Omaha P&C",abbr:"OMA",color:"#003DA5"},OneBeacon:{name:"OneBeacon",abbr:"OB",color:"#003DA5"},OregonMutual:{name:"Oregon Mutual",abbr:"ORE",color:"#003DA5"},Palisades:{name:"Palisades",abbr:"PAL",color:"#1F3864"},PeerlessMontgomery:{name:"Peerless Montgomery",abbr:"PRM",color:"#1F3864"},Pekin:{name:"Pekin",abbr:"PEK",color:"#003DA5"},Pemco:{name:"PEMCO",abbr:"PMC",color:"#0072CE"},PennNational:{name:"Penn National",abbr:"PN",color:"#003DA5"},PlymouthRock:{name:"Plymouth Rock",abbr:"PLR",color:"#003DA5"},PreferredMutual:{name:"Preferred Mutual",abbr:"PFM",color:"#003DA5"},Proformance:{name:"Proformance",abbr:"PRF",color:"#1F3864"},Progressive:{name:"Progressive",abbr:"PRG",color:"#0053BA"},Prudential:{name:"Prudential",abbr:"PRU",color:"#0033A0"},PureHighValue:{name:"PURE",abbr:"PUR",color:"#003DA5"},Republic:{name:"Republic",abbr:"REP",color:"#003DA5"},RockfordMutual:{name:"Rockford Mutual",abbr:"RKF",color:"#1F3864"},RoyalAndSunAlliance:{name:"Royal & SunAlliance",abbr:"RSA",color:"#003DA5"},Safeco:{name:"Safeco",abbr:"SFC",color:"#E4002B"},SECURA:{name:"SECURA",abbr:"SEC",color:"#003DA5"},Selective:{name:"Selective",abbr:"SEL",color:"#003DA5"},SouthernCounty:{name:"Southern County",abbr:"SCM",color:"#1F3864"},SouthernMutual:{name:"Southern Mutual",abbr:"SM",color:"#1F3864"},SouthernTrust:{name:"Southern Trust",abbr:"ST",color:"#1F3864"},StPaulTravelers:{name:"St. Paul Travelers",abbr:"SPT",color:"#C8102E"},StandardMutual:{name:"Standard Mutual",abbr:"STM",color:"#1F3864"},StarCasualty:{name:"Star Casualty",abbr:"SC",color:"#1F3864"},StateAuto:{name:"State Auto",abbr:"SA",color:"#003DA5"},StateFarm:{name:"State Farm",abbr:"SF",color:"#CC0717"},StateFarmFloridaInsuranceCompany:{name:"State Farm Florida",abbr:"SFF",color:"#CC0717"},SunshineStateInsuranceCompany:{name:"Sunshine State",abbr:"SSS",color:"#FFC72C"},Travelers:{name:"Travelers",abbr:"TRV",color:"#C8102E"},Tower:{name:"Tower",abbr:"TWR",color:"#1F3864"},TWFG:{name:"TWFG",abbr:"TWF",color:"#003DA5"},Unigard:{name:"Unigard",abbr:"UNG",color:"#1F3864"},UnitedFireAndCasualty:{name:"United Fire & Casualty",abbr:"UFC",color:"#003DA5"},Unitrin:{name:"Unitrin",abbr:"UTN",color:"#003DA5"},Universal:{name:"Universal",abbr:"UNV",color:"#003DA5"},USAA:{name:"USAA",abbr:"USA",color:"#1A3258"},UticaNational:{name:"Utica National",abbr:"UTC",color:"#003DA5"},Victoria:{name:"Victoria",abbr:"VIC",color:"#1F3864"},Wellington:{name:"Wellington",abbr:"WLG",color:"#1F3864"},WestBend:{name:"West Bend",abbr:"WB",color:"#003DA5"},WesternNational:{name:"Western National",abbr:"WN",color:"#003DA5"},WesternReserveGroup:{name:"Western Reserve",abbr:"WR",color:"#003DA5"},Westfield:{name:"Westfield",abbr:"WF",color:"#F05136"},WhiteMountains:{name:"White Mountains",abbr:"WM",color:"#1F3864"},WilsonMutual:{name:"Wilson Mutual",abbr:"WLM",color:"#1F3864"},Windsor:{name:"Windsor",abbr:"WIN",color:"#1F3864"},Zurich:{name:"Zurich",abbr:"ZUR",color:"#003399"}},z3=["#0369A1","#1D4ED8","#0F766E","#7C3AED","#B45309","#DC2626","#0891B2","#9333EA"];function rz(e){return e.replace(/[^A-Za-z0-9]/g,"").slice(0,3).toUpperCase()||"CAR"}function V5(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim()}function Ti(e){if(!e)return e;const t=H5[e];return t?t.name:V5(e)}function az(e){const t=new Set,n=[];return e.forEach((i,o)=>{const c=H5[i]??{name:V5(i),abbr:rz(i),color:z3[o%z3.length]};t.has(c.name)||(t.add(c.name),n.push(c))}),n}function iz(e,t){if(!e)return[];const n=[];return(t==="Auto"||t==="Bundle")&&Array.isArray(e.PersonalAuto)&&n.push(...e.PersonalAuto),(t==="Home"||t==="Bundle")&&Array.isArray(e.PersonalHome)&&n.push(...e.PersonalHome),az(n)}const oz="https://getcredify.com/privacy-policy";function lz({acknowledged:e,onChange:t,disabled:n=!1}){return v.jsx("div",{className:"privacy-notice-ack rounded-xl border border-slate-200 bg-slate-50 p-4","data-testid":"privacy-notice-acknowledgment",children:v.jsx(ji,{id:"privacy-notice-ack-checkbox",className:"privacy-notice-ack-checkbox",checked:e,onChange:i=>t(i.target.checked),disabled:n,label:v.jsxs(v.Fragment,{children:["I acknowledge I have received Credify’s"," ",v.jsx("a",{href:oz,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Notice"}),"."]})})})}function uz({carrierName:e,formattedPremium:t,lobLabel:n,acknowledged:i,onAcknowledgeChange:o,onCancel:u,onProceed:c,isProcessing:d,hasError:m}){const h=!i||d;return v.jsxs("div",{className:"bind-confirmation","data-testid":"bind-confirmation",role:"group","aria-label":"Confirm your bind request",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Confirm your bind request"}),v.jsxs("div",{className:"mt-4 rounded-xl border border-slate-200 bg-white p-4",children:[n&&v.jsx("div",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-slate-500",children:n}),v.jsx("p",{className:"font-semibold text-slate-900",children:e}),v.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:[t,v.jsx("span",{className:"ml-1 text-sm font-medium text-slate-500",children:"/month"})]})]}),v.jsx("div",{className:"mt-4",children:v.jsx(lz,{acknowledged:i,onChange:o,disabled:d})}),m&&v.jsx("p",{className:"mt-3 text-sm text-red-600",role:"alert",children:"Something went wrong while processing your bind request. Please try again."}),v.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[v.jsx("button",{type:"button","data-testid":"bind-confirmation-cancel",onClick:u,disabled:d,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"Cancel"}),v.jsxs("button",{type:"button","data-testid":"bind-confirmation-proceed",onClick:c,disabled:h,className:["h-12 rounded-full text-white font-bold transition","flex items-center justify-center gap-2","disabled:cursor-not-allowed",h?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[d&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),d?"Processing…":"Proceed"]})]})]})}const G5=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function Z5(e){const t=Number.isFinite(e.term_months)&&e.term_months>0?e.term_months:1;return e.monthly_premium_cents!=null?e.monthly_premium_cents:Math.round((e.premium_cents||0)/t)}const Ad={PersonalHome:"Homeowners",PersonalAuto:"Personal Auto",Flood:"Flood",ExcessFlood:"Excess Flood",_other:"Other"},wd=["PersonalHome","PersonalAuto","Flood","ExcessFlood"];function sz(e){if(e.length===0)return[];const t=(i,o)=>Ti(i.carrier_name).localeCompare(Ti(o.carrier_name));if(!e.some(i=>i.lob))return[{lob:null,title:"Not Quoted",rates:[...e].sort(t)}];const n=new Map;for(const i of e){const o=i.lob||"_other",u=n.get(o);u?u.push(i):n.set(o,[i])}return[...n.entries()].sort(([i],[o])=>{const u=wd.indexOf(i),c=wd.indexOf(o);return(u===-1?999:u)-(c===-1?999:c)}).map(([i,o])=>({lob:i,title:Ad[i]??i,rates:[...o].sort(t)}))}const Kr={admitted:{tab:"rates-tab-admitted",panel:"rates-panel-admitted"},non_admitted:{tab:"rates-tab-non-admitted",panel:"rates-panel-non-admitted"},not_quoted:{tab:"rates-tab-not-quoted",panel:"rates-panel-not-quoted"}};function U3({onBack:e}){const t=()=>{Yj(),e?.()};return v.jsx("button",{type:"button",onClick:t,className:"credify-btn-back credify-btn-back-rates h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition w-full",children:"Back"})}function cz({rate:e,status:t,onRequestBind:n,disabled:i,showLobLabel:o=!0,className:u}){const c=Z5(e)/100,d=G5.format(c),m=t==="loading",h=t==="success",y=!!i||m||h,g=!!(e.effective_date&&e.policy_end_date),E=e.lob?Ad[e.lob]||e.lob:null,S=(e.coverages??[]).filter(D=>!!D&&typeof D.label=="string"&&D.label.trim()!==""&&typeof D.value=="string"&&D.value.trim()!=="");return v.jsxs("div",{className:`flex h-full w-full flex-col rounded-xl border border-slate-200 bg-white p-6 shadow-sm transition hover:shadow-md${u?` ${u}`:""}`,children:[o&&E&&v.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-slate-500",children:E}),v.jsxs("div",{className:"mb-4 flex flex-col items-start gap-2",children:[e.carrier_logo_base64?v.jsx("img",{src:`data:image/png;base64,${e.carrier_logo_base64}`,alt:Ti(e.carrier_name),className:"h-12 w-auto max-w-full object-contain"}):v.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500",children:Ti(e.carrier_name).charAt(0).toUpperCase()}),v.jsx("h4",{className:"w-full break-words text-left font-semibold text-slate-900",children:Ti(e.carrier_name)})]}),v.jsx("div",{className:"mb-2",children:v.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:[d,v.jsx("span",{className:"ml-1 text-sm font-medium text-slate-500",children:"/month"})]})}),g&&v.jsx("div",{className:"mb-2",children:v.jsxs("p",{className:"text-xs text-slate-500",children:["Effective ",e.effective_date," - ",e.policy_end_date]})}),e.carrier_quote_id&&v.jsx("div",{className:"mb-4",children:v.jsxs("p",{className:"text-xs text-slate-400",children:["Quote ID: ",e.carrier_quote_id]})}),S.length>0&&v.jsx("div",{className:"mb-2 border-t border-slate-200 pt-3",children:v.jsx("dl",{children:S.map((D,x)=>v.jsxs("div",{className:"flex items-baseline justify-between gap-2 py-1",children:[v.jsx("dt",{className:"text-xs text-slate-600",children:D.label}),v.jsx("dd",{className:"text-right text-xs font-semibold text-slate-900",children:D.value})]},`${D.label}-${x}`))})}),v.jsxs("div",{className:"mt-auto pt-4",children:[v.jsx("button",{type:"button",onClick:n,disabled:y,className:`rates-bind-btn w-full cursor-pointer rounded-full px-4 py-2.5 text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 disabled:cursor-not-allowed ${h?"rates-bind-btn-requested":"hover:bg-blue-600/90 disabled:bg-slate-300 disabled:text-slate-500"}`,children:m?"Requesting…":h?"Requested":"Request Bind"}),t==="error"&&v.jsx("p",{className:"mt-2 text-xs text-red-600",role:"alert",children:"Something went wrong. Please try again."}),t==="success"&&v.jsx("p",{className:"mt-2 text-xs text-emerald-600",role:"status","aria-live":"polite",children:"We received your bind request."})]})]})}function dz({item:e}){const t=Ti(e.carrier_name),n=(e.decline_reasons??[]).filter(Boolean);return v.jsxs("div",{className:"flex w-full gap-4 rounded-xl border border-slate-200 bg-white p-4 shadow-sm",children:[v.jsx("div",{className:"shrink-0",children:e.carrier_logo_base64?v.jsx("img",{src:`data:image/png;base64,${e.carrier_logo_base64}`,alt:t,className:"h-10 w-auto max-w-[7rem] object-contain"}):v.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500",children:t.charAt(0).toUpperCase()})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("div",{className:"flex flex-wrap items-center gap-2",children:v.jsx("h4",{className:"break-words font-semibold text-slate-900",children:t})}),n.length>0?v.jsx("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-sm text-slate-600",children:n.map((i,o)=>v.jsx("li",{children:i},o))}):v.jsx("p",{className:"mt-2 text-sm text-slate-500",children:"This carrier did not return a quote."})]})]})}function fz({rates:e,onBack:t,isBundleFlow:n=!1,quoteId:i,initialPhone:o="",requirePursueVerification:u=!1,onSubScreenChange:c}){const d=b.useMemo(()=>Array.isArray(e)?e:[],[e]),m=d.length>0,[h,y]=b.useState({}),[g,E]=b.useState("admitted"),[S,D]=b.useState(!1),[x,w]=b.useState(null),[R,I]=b.useState(!1),[A,L]=b.useState(null),[M,Z]=b.useState(!1),[V,fe]=b.useState(o),[ne,pe]=b.useState(""),[J,ye]=b.useState("phone"),[Ae,j]=b.useState("idle"),[de,k]=b.useState(null),B=!!(A||x);b.useEffect(()=>{c?.(B)},[B,c]),b.useEffect(()=>()=>c?.(!1),[c]);const X=b.useMemo(()=>d.some(re=>re.lob==="PersonalAuto"),[d]),F=b.useMemo(()=>d.some(re=>re.lob==="PersonalHome"),[d]),G=b.useMemo(()=>{if(!n)return[];const re=[];return X&&re.push("PersonalAuto"),F&&re.push("PersonalHome"),re},[n,X,F]),C=b.useMemo(()=>{const re=new Set;for(const oe of d){const Ce=oe.lob??null;Ce&&h[oe.quote_rate_id]==="success"&&re.add(Ce)}return re},[d,h]),U=b.useMemo(()=>Object.values(h).some(re=>re==="success"),[h]),W=b.useMemo(()=>S?!0:!n||G.length===0?U:G.every(re=>C.has(re)),[S,n,U,G,C]),Y=b.useMemo(()=>m?d.filter(re=>(re.admitted_status??"admitted")==="admitted"):[],[d,m]),te=b.useMemo(()=>m?d.filter(re=>re.admitted_status==="non_admitted"):[],[d,m]),z=b.useMemo(()=>m?d.filter(re=>re.admitted_status==="not_quoted"):[],[d,m]),T=Y.length,N=te.length,ie=z.length,ge=T+N>0,Se=ge||ie>0,he=b.useMemo(()=>sz(z),[z]);b.useEffect(()=>{Se&&g==="admitted"&&T===0&&(N>0?E("non_admitted"):ie>0&&E("not_quoted"))},[g,T,N,ie,Se]);const we=b.useMemo(()=>ge?g==="admitted"?Y:g==="non_admitted"?te:[]:[],[ge,g,Y,te]),Ie=re=>{if(re.key!=="ArrowLeft"&&re.key!=="ArrowRight"&&re.key!=="Home"&&re.key!=="End")return;re.preventDefault();const oe=re.key==="Home"?"admitted":re.key==="End"||g==="admitted"?"non_admitted":"admitted";E(oe),window.setTimeout(()=>document.getElementById(Kr[oe].tab)?.focus(),0)};b.useEffect(()=>{Qc()},[]),b.useEffect(()=>{!W||S||(OF(),T5(),D(!0))},[W,S]);const me=b.useMemo(()=>{if(we.length===0)return[];if(!we.some(Ee=>Ee.lob))return[{lob:null,title:"Rates",rates:[...we].sort((Te,Re)=>{const ke=Number.isFinite(Te.term_months)&&Te.term_months>0?Te.term_months:1,qe=Number.isFinite(Re.term_months)&&Re.term_months>0?Re.term_months:1,Ue=Te.monthly_premium_cents??Math.round((Te.premium_cents||0)/ke),ze=Re.monthly_premium_cents??Math.round((Re.premium_cents||0)/qe);return Ue-ze})}];const oe=new Map;for(const Ee of we){const Te=Ee.lob||"_other",Re=oe.get(Te);Re?Re.push(Ee):oe.set(Te,[Ee])}return[...oe.entries()].sort(([Ee],[Te])=>{const Re=wd.indexOf(Ee),ke=wd.indexOf(Te);return(Re===-1?999:Re)-(ke===-1?999:ke)}).map(([Ee,Te])=>({lob:Ee,title:Ad[Ee]??Ee,rates:[...Te].sort((Re,ke)=>{const qe=Number.isFinite(Re.term_months)&&Re.term_months>0?Re.term_months:1,Ue=Number.isFinite(ke.term_months)&&ke.term_months>0?ke.term_months:1,ze=Re.monthly_premium_cents??Math.round((Re.premium_cents||0)/qe),tt=ke.monthly_premium_cents??Math.round((ke.premium_cents||0)/Ue);return ze-tt})}))},[we]),De=b.useMemo(()=>{if(!n)return[];const re=d.some(Ee=>Ee.lob==="PersonalAuto"),oe=d.some(Ee=>Ee.lob==="PersonalHome"),Ce=[];return re||Ce.push("Sorry, no rates found for Personal Auto."),oe||Ce.push("Sorry, no rates found for Homeowners."),Ce},[n,d]);if(!Se)return v.jsxs("section",{className:"mt-8",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Rates"}),v.jsx("p",{className:"mt-2 text-sm text-slate-500",children:"Sorry, no rates are available at this time."}),t&&v.jsx(U3,{onBack:t})]});const ue=re=>{if(y(oe=>({...oe,[re.quote_rate_id]:"idle"})),I(!1),Qc(),!M&&(u||!Jr())){fe(o),pe(""),ye("phone"),j("idle"),k(null),L({cardKey:re.quote_rate_id,rate:re});return}w({cardKey:re.quote_rate_id,rate:re})},_e=()=>{w(null),I(!1)},be=()=>{L(null),k(null),j("idle")},xe=async()=>{if(!A||!i)return;const re=V.trim();if(!re){k("Please enter your phone number.");return}j("sending"),k(null);try{await N5(i,re),ye("code"),j("sent")}catch{j("idle"),k("We could not send a code to that number. Please check it and try again.")}},$e=async()=>{if(!A||!i)return;const re=ne.trim();if(!re){k("Please enter the code we texted you.");return}j("verifying"),k(null);try{const{isVerified:oe,token:Ce}=await g0(i,re);if(!oe||!Ce){j("sent"),k("That code was incorrect. Please try again.");return}Wc(Ce);const Ee=A;Z(!0),L(null),j("idle"),w(Ee)}catch{j("sent"),k("Something went wrong verifying your code. Please try again.")}},Me=async()=>{if(!x||!R)return;const re=x.cardKey;y(oe=>({...oe,[re]:"loading"}));try{if(Qc(),!Jr())throw new Error("Authentication required. Please verify your phone number first.");if(!((await sj(re,!0))?.success!==!1))throw new Error("Request failed");y(Te=>({...Te,[re]:"success"})),w(null),I(!1)}catch{y(oe=>({...oe,[re]:"error"}))}};if(A){const re=Ae==="sending"||Ae==="verifying",oe=["h-12 rounded-full text-white font-bold transition","flex items-center justify-center gap-2","disabled:cursor-not-allowed",re?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),Ce="credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed";return v.jsx("section",{className:"mt-8",children:J==="phone"?v.jsxs(v.Fragment,{children:[v.jsx(zE,{id:"phone",label:"What is your phone number?",value:V,onChange:Ee=>fe(Ee.currentTarget.value),error:de??void 0}),v.jsxs("div",{className:"mt-3 text-xs text-slate-600 space-y-1",children:[v.jsx("p",{children:"We'll text you a 6-digit code to confirm your number. This is just to confirm your number, not a sales call."}),v.jsx("p",{children:"Message & data rates may apply. One message per request."}),v.jsxs("p",{children:["See our"," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","and"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"}),"."]})]}),v.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[v.jsx("button",{type:"button",onClick:be,className:Ce,children:"Back to rates"}),v.jsx("button",{type:"button",onClick:xe,disabled:re,className:oe,children:Ae==="sending"?"Sending…":"Send code"})]})]}):v.jsxs(v.Fragment,{children:[v.jsx(jc,{id:"sms_code",label:"Please enter the code we sent to your phone number.",value:ne,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,autoComplete:"one-time-code",onChange:Ee=>pe(Ee.currentTarget.value.replace(/\D+/g,"").slice(0,6)),error:de??void 0}),v.jsx(k5,{stageKey:"SMSVerification"}),v.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[v.jsx("button",{type:"button",onClick:()=>{ye("phone"),k(null)},className:Ce,children:"Change number"}),v.jsx("button",{type:"button",onClick:$e,disabled:re,className:oe,children:Ae==="verifying"?"Verifying…":"Verify & continue"})]})]})})}if(x){const re=x.rate.lob?Ad[x.rate.lob]||x.rate.lob:null;return v.jsx("section",{className:"mt-8",children:v.jsx(uz,{carrierName:Ti(x.rate.carrier_name),formattedPremium:G5.format(Z5(x.rate)/100),lobLabel:re,acknowledged:R,onAcknowledgeChange:I,onCancel:_e,onProceed:Me,isProcessing:h[x.cardKey]==="loading",hasError:h[x.cardKey]==="error"})})}return v.jsxs("section",{className:"mt-8",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Rates"}),De.length>0&&v.jsx("div",{className:"mt-3 space-y-1",children:De.map(re=>v.jsx("p",{className:"text-sm text-slate-600",children:re},re))}),v.jsx("div",{className:"mt-4 border-b border-slate-200",children:v.jsxs("div",{className:"flex items-center gap-6",role:"tablist","aria-label":"Rate market type",children:[v.jsxs("button",{id:Kr.admitted.tab,type:"button",role:"tab","aria-selected":g==="admitted","aria-controls":Kr.admitted.panel,onClick:()=>E("admitted"),onKeyDown:Ie,className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="admitted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Admitted (",T,")"]}),v.jsxs("button",{id:Kr.non_admitted.tab,type:"button",role:"tab","aria-selected":g==="non_admitted","aria-controls":Kr.non_admitted.panel,onClick:()=>E("non_admitted"),onKeyDown:Ie,className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="non_admitted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Non-admitted (",N,")"]}),ie>0&&v.jsxs("button",{id:Kr.not_quoted.tab,type:"button",role:"tab","aria-selected":g==="not_quoted","aria-controls":Kr.not_quoted.panel,onClick:()=>E("not_quoted"),className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="not_quoted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Not Quoted (",ie,")"]})]})}),v.jsx("div",{id:Kr[g].panel,role:"tabpanel","aria-labelledby":Kr[g].tab,tabIndex:0,children:g==="not_quoted"?he.map(re=>v.jsxs("div",{className:"mt-6",children:[re.lob!=null&&v.jsx("h4",{className:"mb-3 text-center text-base font-semibold text-slate-800",children:re.title}),v.jsx("div",{className:"space-y-3",children:re.rates.map(oe=>v.jsx(dz,{item:oe},oe.quote_rate_id))})]},re.lob??"all")):v.jsxs(v.Fragment,{children:[we.length===0&&v.jsx("p",{className:"mt-4 text-sm text-slate-500",children:g==="admitted"?"Sorry, no admitted rates are available at this time.":"Sorry, no non-admitted rates are available at this time."}),we.length>0&&me.map(re=>v.jsxs("div",{className:"mt-6",children:[v.jsx("h4",{className:"mb-3 text-center text-base font-semibold text-slate-800",children:re.title}),v.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:re.rates.map(oe=>v.jsx("div",{className:"w-full min-w-0 sm:w-[calc(50%-0.5rem)] lg:w-[calc(33.333%-0.667rem)] xl:w-[calc(25%-0.75rem)]",children:v.jsx(cz,{rate:oe,showLobLabel:re.lob==null,status:h[oe.quote_rate_id]??"idle",disabled:W||(n?!!(oe.lob&&G.includes(oe.lob)&&C.has(oe.lob)):U),onRequestBind:()=>ue(oe)})},oe.quote_rate_id))})]},re.lob??"all"))]})}),t&&v.jsx(U3,{onBack:t})]})}function mz({stageKey:e,title:t,questions:n,values:i,onChangeValues:o,review:u,quoteId:c,fetchVehicleOptions:d}){const m=b.useMemo(()=>new Set(Object.keys(u.errorsByKey)),[u.errorsByKey]);return v.jsxs("section",{id:`review-section-${e}`,"data-testid":`review-section-${e}`,className:`review-section rounded-lg border p-4 ${u.hasIssues?"border-amber-300 bg-amber-50/40":"border-slate-200"}`,children:[v.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[v.jsx("h3",{className:"text-base font-semibold text-text-primary",children:t}),u.hasIssues?v.jsxs("span",{"data-testid":`review-section-${e}-badge`,className:"shrink-0 rounded-full bg-amber-100 border border-amber-300 text-amber-800 text-xs font-semibold px-2.5 py-1",children:[u.issues.length," ",u.issues.length===1?"field needs":"fields need"," attention"]}):v.jsx("svg",{"data-testid":`review-section-${e}-ok`,className:"h-5 w-5 shrink-0 text-emerald-600",viewBox:"0 0 20 20",fill:"currentColor",role:"img","aria-label":"Section complete",children:v.jsx("path",{fillRule:"evenodd",d:"M16.704 5.29a1 1 0 010 1.415l-7.5 7.5a1 1 0 01-1.415 0l-3.5-3.5a1 1 0 011.415-1.415l2.792 2.793 6.793-6.793a1 1 0 011.415 0z",clipRule:"evenodd"})})]}),u.hasIssues&&v.jsx("ul",{className:"mb-3 list-disc list-inside space-y-0.5 text-sm text-amber-800","data-testid":`review-section-${e}-issues`,children:u.issues.map(h=>v.jsxs("li",{children:[h.label,": ",h.message]},h.key))}),v.jsx(O5,{questions:n,controlledValues:i,onChangeValues:o,onSubmit:()=>{},quoteId:c,widgetStageKey:e,invalidValueKeys:m,fetchVehicleOptions:d})]})}const H3=new Set(["make","model","body_style","occupation","co_applicant_occupation","quote_vehicle_id"]),V3={vehicles:"Vehicle",drivers:"Driver",driver_accidents:"Accident",driver_violations:"Violation",losses:"Loss",home_losses:"Loss"};function G3(e){const t=e.options;return Array.isArray(t)?t.map(n=>n&&typeof n=="object"&&"value"in n?String(n.value):String(n)):[]}const pz=new Set(["SMSVerification","CanopyConnect","Phone"]);function hz({stageKey:e,questions:t,values:n}){const i=of(t,n,e),o=Fu(i,n),u=new Map(i.map((h,y)=>[Ya(h,y),h])),c={},d=[];for(const[h,y]of Object.entries(o))!y||!u.has(h)||(c[h]=y,d.push({key:h,label:u.get(h)?.question??h,message:y}));i.forEach((h,y)=>{const g=Ya(h,y);if(c[g]||h.inputType!=="select"&&h.inputType!=="radio"||H3.has(String(h.key??"")))return;const E=G3(h);if(E.length===0)return;const S=n[g];Cr(S,h.inputType)||E.includes(String(S))||(c[g]="Not a valid option",d.push({key:g,label:h.question??g,message:"Choose a valid option from the list"}))}),v0(t,n,e,(h,y,g)=>{h.forEach(E=>{if(E.inputType!=="select"&&E.inputType!=="radio")return;const S=String(E.key??"");if(!S||H3.has(S))return;const D=G3(E);if(D.length===0)return;const x=y[S];if(!Cr(x,E.inputType)&&!D.includes(String(x))){const w=V3[g.groupKey]??g.groupKey,R=`${g.groupKey}__items.${g.index}.${S}`;c[R]="Not a valid option",d.push({key:R,label:`${w} ${g.index+1} — ${E.question??S}`,message:"Choose a valid option from the list"})}})});for(const h of ez(t,n,e)){const y=V3[h.groupKey]??h.groupKey;if(h.index<0){d.push({key:`${h.groupKey}__missing`,label:y,message:"Add at least one entry"});continue}const g=`${h.groupKey}__items.${h.index}.${h.fieldKey}`;if(c[g])continue;c[g]=h.message;const E=h.fieldLabel?`${y} ${h.index+1} — ${h.fieldLabel}`:`${y} ${h.index+1}`;d.push({key:g,label:E,message:h.message})}if(i.some(h=>String(h.key??"")==="vehicle_policy_selections")&&U5(n)&&d.push({key:"__vehicle_policy",label:"Vehicle coverage selections",message:"Coverage selections are incomplete"}),_z(n,i)&&d.push({key:"__dva",label:"Driver usage",message:"Driver usage percentages must total 100% (50/50 is not allowed)"}),i.some(h=>h.inputType==="address"&&String(h.key??"")==="address")){const h=vz(n);h&&d.push(h)}return{stageKey:e,errorsByKey:c,issues:d,hasIssues:d.length>0}}async function yz(e,t){const n=e.vehicles__items??[];if(!Array.isArray(n)||n.length===0)return[];const i=[];for(const[o,u]of n.entries()){if(typeof u!="object"||u===null)continue;const c=Number(u.year),d=typeof u.make=="string"?u.make.trim():"",m=typeof u.model=="string"?u.model.trim():"",h=typeof u.body_style=="string"?u.body_style.trim():"";if(!(!Number.isFinite(c)||!c||!d))try{const{makes:y}=await t({year:c});if(Array.isArray(y)&&y.length>0&&!y.includes(d)){i.push({key:`vehicles__items.${o}.make`,label:`Vehicle ${o+1} — Make`,message:`"${d}" isn't available for ${c} — choose the make from the list`});continue}if(!m)continue;const{models:g}=await t({year:c,make:d});if(Array.isArray(g)&&g.length>0&&!g.includes(m)){i.push({key:`vehicles__items.${o}.model`,label:`Vehicle ${o+1} — Model`,message:`"${m}" isn't a listed model for the ${c} ${d} — choose the model from the list`});continue}if(!h)continue;const{bodyStyles:E}=await t({year:c,make:d,model:m});Array.isArray(E)&&E.length>0&&!E.includes(h)&&i.push({key:`vehicles__items.${o}.body_style`,label:`Vehicle ${o+1} — Body style`,message:"Choose the body style from the list"})}catch{}}return i}const gz=/^[A-Z]{2}$/,bz=/^\d{5}(-\d{4})?$/;function vz(e){if(!(typeof e.address=="string"?e.address.trim():""))return null;const n=typeof e.state=="string"?e.state.trim().toUpperCase():"",i=e.postal_code==null?"":String(e.postal_code).trim();return gz.test(n)&&bz.test(i)?null:{key:"__address",label:"Property address",message:"Select your address from the dropdown suggestions so we can verify the state and ZIP code"}}function _z(e,t){if(!t.some(u=>String(u.key??"")==="driver_vehicle_assignments"||String(u.key??"")==="vehicle_policy_selections"))return!1;const n=e.driver_vehicle_assignments,i=e.drivers__items??[];if(!n||i.length<2)return!1;const o=e.vehicles__items??[];for(let u=0;u<o.length;u++){const c=n[`v${u}`];if(!c)continue;const d=i.map((y,g)=>c[`d${g}`]??0),m=d.filter(y=>y>0);if(m.length>=2&&m.every(y=>y===50))return!0;const h=d.reduce((y,g)=>y+g,0);if(h>0&&h!==100)return!0}return!1}function xi(e){const t={},n=h=>{if(typeof h=="string"){if(h==="Yes")return!0;if(h==="No")return!1}return h},i=Object.keys(e).filter(h=>!h.includes("__items")),o=new Set,u=new Set;for(const[h,y]of Object.entries(e))if(h.endsWith("__items")&&Array.isArray(y)){const g=h.replace("__items","");u.add(g),i.includes(g)&&y.forEach(E=>{typeof E=="object"&&E!==null&&Object.keys(E).forEach(S=>{o.add(S)})})}for(const[h,y]of Object.entries(e))if(h.endsWith("__items")){const g=h.replace("__items","");if(i.includes(g)){const S=Array.isArray(y)?y.map(D=>xi(D)):y;t[g]=S}}else if(!h.includes("__items")){if(u.has(h))continue;o.has(h)||(t[h]=n(y))}const c=t.auto_prior_carrier_name;if(typeof c=="string"&&c.trim()!==""){const h=c==="NoPriorInsurance";t.auto_has_prior_insurance=!h,h&&(delete t.auto_prior_years,delete t.auto_prior_months,delete t.auto_prior_expiration_date,delete t.auto_prior_liability_limit,delete t.auto_continuous_coverage_years,delete t.auto_cancelled_declined_refused_to_renew,delete t.auto_current_annual_premium_cents)}const d=t.home_prior_carrier_name;if(typeof d=="string"&&d.trim()!==""){const h=d==="NoPriorInsurance";t.home_has_prior_insurance=!h,h&&(delete t.home_prior_years,delete t.home_continuous_coverage_years,delete t.home_prior_expiration_date,delete t.property_insurance_cancelled)}Array.isArray(t.drivers)&&(t.drivers=t.drivers.map(h=>{if(!h||typeof h!="object")return h;const y={...h};return y.industry=Dd(y.industry),y.education_level=S5(y.education_level),y.occupation=D5(y.occupation),y}));const m=21474836;if("sale_price_cents"in t){const h=t.sale_price_cents;if(typeof h=="number"&&Number.isFinite(h)){const y=Math.trunc(h);if(y>=1){const g=Math.min(y,m);t.sale_price_cents=g*100}}}return Array.isArray(t.home_losses)&&(t.home_losses=t.home_losses.map(h=>{if(!h||typeof h!="object")return h;const y=h,g=y.amount_paid_cents;if(typeof g!="number"||!Number.isFinite(g))return y;const E=Math.trunc(g),S=Math.min(Math.max(E,0),m);return{...y,amount_paid_cents:S*100}})),t}const Ez={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming",PR:"Puerto Rico"};function Y5(e){const t=e?.trim().toUpperCase();if(!t)return"your state";const n=Ez[t];return n?`${n} (${t})`:"your state"}const Sz=1500,Dz=800;function $z(e){const t=e.vehicles__items??[];return Array.isArray(t)?t.map(n=>[n?.year,n?.make,n?.model,n?.body_style].map(i=>String(i??"")).join("|")).join(";"):""}function xz({stages:e,initialValues:t,quoteId:n,isSubmitting:i,onConfirmed:o}){const u=b.useMemo(()=>e.filter(te=>!pz.has(String(te.key))),[e]),[c,d]=b.useState(t),[m,h]=b.useState({}),[y,g]=b.useState(null),[E,S]=b.useState(!0),[D,x]=b.useState(0),[w,R]=b.useState(!1),[I,A]=b.useState(null),[L,M]=b.useState(!1);b.useEffect(()=>{let te=!1;return S(!0),g(null),Promise.all(u.map(async z=>{const T=await z.loadQuestions();return[String(z.key),[...T]]})).then(z=>{te||h(Object.fromEntries(z))}).catch(z=>{te||g(z instanceof Error?z.message:"Failed to load your review")}).finally(()=>{te||S(!1)}),()=>{te=!0}},[u,D]);const Z=b.useRef(null),V=b.useRef(!0);b.useEffect(()=>{if(V.current){V.current=!1;return}return Z.current&&window.clearTimeout(Z.current),Z.current=window.setTimeout(()=>{La(xi(c),!1).catch(te=>{console.warn("Review autosave failed (will retry on next edit / submit)",te)})},Sz),()=>{Z.current&&window.clearTimeout(Z.current)}},[c]);const fe=b.useCallback(te=>{d(z=>({...z,...te}))},[]),ne=b.useMemo(()=>{for(const[te,z]of Object.entries(m))if(z.some(T=>String(T.key??"")==="vehicles"))return te;return null},[m]),[pe,J]=b.useState([]),[ye,Ae]=b.useState(!1),j=b.useRef(0),de=$z(c),k=b.useRef(new Map),B=b.useRef(Promise.resolve()),X=b.useCallback(te=>{const z=`${te.year??""}|${te.make??""}|${te.model??""}`,T=k.current,N=T.get(z);if(N)return N;const ie=B.current.catch(()=>{}).then(()=>R5({quoteId:n,...te}));B.current=ie.catch(()=>{});const ge=ie.catch(Se=>{throw T.delete(z),Se});return T.set(z,ge),ge},[n]);b.useEffect(()=>{if(!ne||!de){J([]),Ae(!1);return}const te=++j.current;Ae(!0);const z=window.setTimeout(()=>{yz(c,X).then(T=>{j.current===te&&J(T)}).finally(()=>{j.current===te&&Ae(!1)})},Dz);return()=>window.clearTimeout(z)},[ne,de,n,X]);const F=b.useMemo(()=>{const te={};for(const z of u){const T=String(z.key),N=m[T];N&&(te[T]=hz({stageKey:T,questions:N,values:c}))}if(ne&&te[ne]&&pe.length>0){const z=te[ne];te[ne]={...z,errorsByKey:{...z.errorsByKey,...Object.fromEntries(pe.map(T=>[T.key,T.message]))},issues:[...z.issues,...pe],hasIssues:!0}}return te},[u,m,c,ne,pe]),G=b.useMemo(()=>Object.values(F).reduce((te,z)=>te+z.issues.length,0),[F]),C=i||L,U=!E&&!y&&G===0&&w&&!C&&!ye,W=b.useCallback(()=>{const te=u.find(z=>F[String(z.key)]?.hasIssues);te&&document.getElementById(`review-section-${String(te.key)}`)?.scrollIntoView({behavior:"smooth",block:"start"})},[u,F]),Y=b.useCallback(async()=>{if(U){A(null),M(!0);try{const te=typeof c.state=="string"?c.state:"";if(te){const{isSupported:z}=await M5(te);if(!z){A(`Sorry, Credify Corporation doesn't currently offer insurance in ${Y5(te)}. We're expanding our coverage and hope to serve your state soon.`);return}}await o(c)}catch{A("Oops, something went wrong. Please try again later.")}finally{M(!1)}}},[U,c,o]);return E?v.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"review-loading",children:v.jsx("div",{className:"text-slate-600",children:"Loading your details..."})}):y?v.jsxs("div",{className:"text-red-600 text-sm","data-testid":"review-load-error",children:[v.jsx("div",{children:y}),v.jsx("button",{type:"button",className:"credify-retry-btn underline mt-1 font-bold",onClick:()=>x(te=>te+1),children:"Retry"})]}):v.jsxs("div",{className:"space-y-6","data-testid":"review-screen",children:[v.jsxs("div",{className:"text-center",children:[v.jsx("h3",{className:"text-lg font-semibold text-text-primary",children:"Review your information"}),v.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Here's what we collected during your conversation. Please review each section, fix anything we got wrong, and fill in anything missing — then confirm below to see your quotes."})]}),G>0&&v.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between gap-3 rounded-md border border-amber-300 bg-amber-50 px-4 py-2.5 text-sm text-amber-800",role:"status","data-testid":"review-issue-summary",children:[v.jsxs("span",{children:[G," ",G===1?"field needs":"fields need"," your attention before you can continue."]}),v.jsx("button",{type:"button",onClick:W,className:"shrink-0 font-bold underline text-amber-800 hover:text-amber-900",children:"Show me"})]}),u.map(te=>{const z=String(te.key),T=m[z],N=F[z];return!T||!N?null:v.jsx(mz,{stageKey:z,title:te.title,questions:T,values:c,onChangeValues:fe,review:N,quoteId:n,fetchVehicleOptions:X},z)}),v.jsxs("div",{className:"rounded-lg border border-slate-200 p-4 space-y-4","data-testid":"review-consent-block",children:[v.jsx(ji,{id:"review-terms-checkbox","data-testid":"review-terms-checkbox",checked:w,onChange:te=>R(te.target.checked),disabled:i,label:"I have reviewed my information and confirm it is accurate, and I agree to the Terms of Service and Privacy Policy."}),v.jsxs("p",{className:"text-sm text-slate-600",children:["Credify Corporation – Texas #3309669."," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","|"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"})]})]}),I&&v.jsx("div",{className:"text-red-600 text-sm",role:"alert","data-testid":"review-submit-error",children:I}),v.jsxs("button",{type:"button","data-testid":"review-submit","data-widget-ctrl":"review-submit",onClick:Y,disabled:!U,className:["form-wizard-next-btn w-full","h-12 rounded-full text-white font-bold transition","cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",U?"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40":"bg-gray-300"].join(" "),children:[C&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Confirm & See My Quotes"]})]})}const fh=["Validating your details...","Checking underwriting rules...","Applying eligible discounts...","Reviewing your risk profile...","Calculating premium...","Check complete"],Z3={Auto:{label:"Auto Policy",icon:"🚗",accent:"#0369A1"},Home:{label:"Home Policy",icon:"🏠",accent:"#059669"},Bundle:{label:"Home + Auto Bundle",icon:"🔗",accent:"#7C3AED"}},Y3={Auto:6e4,Home:9e4,Bundle:12e4};function Cz({progress:e,color:t,size:n=80}){const i=(n-10)/2,o=2*Math.PI*i,u=o-e/100*o;return v.jsxs("svg",{width:n,height:n,style:{transform:"rotate(-90deg)"},"aria-hidden":"true",children:[v.jsx("circle",{cx:n/2,cy:n/2,r:i,fill:"none",stroke:"#F1F5F9",strokeWidth:6}),v.jsx("circle",{cx:n/2,cy:n/2,r:i,fill:"none",stroke:t,strokeWidth:6,strokeLinecap:"round",strokeDasharray:o,strokeDashoffset:u,style:{transition:"stroke-dashoffset 0.2s linear"}})]})}function Az({providers:e=[],totalTime:t=6e4,flow:n="Auto",isComplete:i=!1,onComplete:o}){const u=Z3[n]??Z3.Auto,c=Y3[n]??Y3.Auto,d=e.length>0?Math.floor(c/e.length):t,[m,h]=b.useState(0),[y,g]=b.useState(0),[E,S]=b.useState(0),[D,x]=b.useState(0),[w,R]=b.useState(!0),I=b.useRef(i),A=b.useRef(o),L=b.useRef(m),M=b.useRef(e.length),Z=b.useRef(!1),V=b.useRef(!1);b.useEffect(()=>{I.current=i,i&&e.length===0&&!Z.current&&(Z.current=!0,A.current?.())},[i,e.length]),b.useEffect(()=>{A.current=o},[o]),b.useEffect(()=>{L.current=m},[m]),b.useEffect(()=>{M.current=e.length,e.length>0&&(V.current=!1,h(0),g(0),S(0),x(0),R(!0))},[e.length]),b.useEffect(()=>{if(e.length===0){I.current&&!Z.current&&(Z.current=!0,A.current?.());return}V.current=!1;const J=100,ye=100/(d/J),Ae=setInterval(()=>{S(j=>{if(V.current||Z.current)return j;const de=j+ye;return de<100?de:(V.current=!0,setTimeout(()=>{if(I.current){if(Z.current)return;Z.current=!0,A.current?.();return}const B=L.current===M.current-1;R(!1),setTimeout(()=>{B?(h(0),g(X=>X+1)):h(X=>X+1),S(0),x(0),R(!0)},300)},400),100)})},J);return()=>clearInterval(Ae)},[m,d,e.length]),b.useEffect(()=>{if(e.length===0)return;const J=Math.floor(d/fh.length),ye=setInterval(()=>x(Ae=>Math.min(Ae+1,fh.length-1)),J);return()=>clearInterval(ye)},[m,d,e.length]);const fe=e.length===0,ne=fe?null:e[Math.min(m,e.length-1)],pe=y>0;return v.jsxs(v.Fragment,{children:[v.jsx("style",{children:`
120
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const d=c[1];if(t===c[0]){s(c);continue}if(e.external){const h=e.external.registry.get(c[0])?.id;if(t!==c[0]&&h){s(c);continue}}if(e.metadataRegistry.get(c[0])?.id){s(c);continue}if(d.cycle){s(c);continue}if(d.count>1&&e.reused==="ref"){s(c);continue}}}function u5(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=c=>{const d=e.seen.get(c);if(d.ref===null)return;const m=d.def??d.schema,h={...m},y=d.ref;if(d.ref=null,y){i(y);const E=e.seen.get(y),S=E.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(S)):Object.assign(m,S),Object.assign(m,h),c._zod.parent===y)for(const x in m)x==="$ref"||x==="allOf"||x in h||delete m[x];if(S.$ref&&E.def)for(const x in m)x==="$ref"||x==="allOf"||x in E.def&&JSON.stringify(m[x])===JSON.stringify(E.def[x])&&delete m[x]}const g=c._zod.parent;if(g&&g!==y){i(g);const E=e.seen.get(g);if(E?.schema.$ref&&(m.$ref=E.schema.$ref,E.def))for(const S in m)S==="$ref"||S==="allOf"||S in E.def&&JSON.stringify(m[S])===JSON.stringify(E.def[S])&&delete m[S]}e.override({zodSchema:c,jsonSchema:m,path:d.path??[]})};for(const c of[...e.seen.entries()].reverse())i(c[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}Object.assign(o,n.def??n.schema);const s=e.external?.defs??{};for(const c of e.seen.entries()){const d=c[1];d.def&&d.defId&&(s[d.defId]=d.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:_d(t,"input",e.processors),output:_d(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function dn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return dn(i.element,n);if(i.type==="set")return dn(i.valueType,n);if(i.type==="lazy")return dn(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return dn(i.innerType,n);if(i.type==="intersection")return dn(i.left,n)||dn(i.right,n);if(i.type==="record"||i.type==="map")return dn(i.keyType,n)||dn(i.valueType,n);if(i.type==="pipe")return dn(i.in,n)||dn(i.out,n);if(i.type==="object"){for(const o in i.shape)if(dn(i.shape[o],n))return!0;return!1}if(i.type==="union"){for(const o of i.options)if(dn(o,n))return!0;return!1}if(i.type==="tuple"){for(const o of i.items)if(dn(o,n))return!0;return!!(i.rest&&dn(i.rest,n))}return!1}const FL=(e,t={})=>n=>{const i=l5({...n,processors:t});return an(e,i),s5(i,e),u5(i,e)},_d=(e,t,n={})=>i=>{const{libraryOptions:o,target:s}=i??{},c=l5({...o??{},target:s,io:t,processors:n});return an(e,c),s5(c,e),u5(c,e)},jL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zL=(e,t,n,i)=>{const o=n;o.type="string";const{minimum:s,maximum:c,format:d,patterns:m,contentEncoding:h}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof c=="number"&&(o.maxLength=c),d&&(o.format=jL[d]??d,o.format===""&&delete o.format,d==="time"&&delete o.format),h&&(o.contentEncoding=h),m&&m.size>0){const y=[...m];y.length===1?o.pattern=y[0].source:y.length>1&&(o.allOf=[...y.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},UL=(e,t,n,i)=>{const o=n,{minimum:s,maximum:c,format:d,multipleOf:m,exclusiveMaximum:h,exclusiveMinimum:y}=e._zod.bag;typeof d=="string"&&d.includes("int")?o.type="integer":o.type="number",typeof y=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=y,o.exclusiveMinimum=!0):o.exclusiveMinimum=y),typeof s=="number"&&(o.minimum=s,typeof y=="number"&&t.target!=="draft-04"&&(y>=s?delete o.minimum:delete o.exclusiveMinimum)),typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=h,o.exclusiveMaximum=!0):o.exclusiveMaximum=h),typeof c=="number"&&(o.maximum=c,typeof h=="number"&&t.target!=="draft-04"&&(h<=c?delete o.maximum:delete o.exclusiveMaximum)),typeof m=="number"&&(o.multipleOf=m)},HL=(e,t,n,i)=>{n.type="boolean"},VL=(e,t,n,i)=>{n.not={}},GL=(e,t,n,i)=>{},ZL=(e,t,n,i)=>{const o=e._zod.def,s=zx(o.entries);s.every(c=>typeof c=="number")&&(n.type="number"),s.every(c=>typeof c=="string")&&(n.type="string"),n.enum=s},YL=(e,t,n,i)=>{const o=e._zod.def,s=[];for(const c of o.values)if(c===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof c=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(c))}else s.push(c);if(s.length!==0)if(s.length===1){const c=s[0];n.type=c===null?"null":typeof c,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[c]:n.const=c}else s.every(c=>typeof c=="number")&&(n.type="number"),s.every(c=>typeof c=="string")&&(n.type="string"),s.every(c=>typeof c=="boolean")&&(n.type="boolean"),s.every(c=>c===null)&&(n.type="null"),n.enum=s},qL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},KL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},WL=(e,t,n,i)=>{const o=n,s=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof d=="number"&&(o.maxItems=d),o.type="array",o.items=an(s.element,t,{...i,path:[...i.path,"items"]})},QL=(e,t,n,i)=>{const o=n,s=e._zod.def;o.type="object",o.properties={};const c=s.shape;for(const h in c)o.properties[h]=an(c[h],t,{...i,path:[...i.path,"properties",h]});const d=new Set(Object.keys(c)),m=new Set([...d].filter(h=>{const y=s.shape[h]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));m.size>0&&(o.required=Array.from(m)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=an(s.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},JL=(e,t,n,i)=>{const o=e._zod.def,s=o.inclusive===!1,c=o.options.map((d,m)=>an(d,t,{...i,path:[...i.path,s?"oneOf":"anyOf",m]}));s?n.oneOf=c:n.anyOf=c},XL=(e,t,n,i)=>{const o=e._zod.def,s=an(o.left,t,{...i,path:[...i.path,"allOf",0]}),c=an(o.right,t,{...i,path:[...i.path,"allOf",1]}),d=h=>"allOf"in h&&Object.keys(h).length===1,m=[...d(s)?s.allOf:[s],...d(c)?c.allOf:[c]];n.allOf=m},eP=(e,t,n,i)=>{const o=e._zod.def,s=an(o.innerType,t,i),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},tP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},nP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},rP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},aP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType;let c;try{c=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=c},iP=(e,t,n,i)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;an(s,t,i);const c=t.seen.get(e);c.ref=s},oP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},c5=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},lP=ue("ZodISODateTime",(e,t)=>{cB.init(e,t),wt.init(e,t)});function sP(e){return hL(lP,e)}const uP=ue("ZodISODate",(e,t)=>{dB.init(e,t),wt.init(e,t)});function cP(e){return yL(uP,e)}const dP=ue("ZodISOTime",(e,t)=>{fB.init(e,t),wt.init(e,t)});function fP(e){return gL(dP,e)}const mP=ue("ZodISODuration",(e,t)=>{mB.init(e,t),wt.init(e,t)});function pP(e){return bL(mP,e)}const hP=(e,t)=>{Zx.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>nk(e,n)},flatten:{value:n=>tk(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,u0,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,u0,2)}},isEmpty:{get(){return e.issues.length===0}}})},cr=ue("ZodError",hP,{Parent:Error}),yP=vy(cr),gP=_y(cr),bP=Xd(cr),vP=ef(cr),_P=ik(cr),EP=ok(cr),SP=lk(cr),DP=sk(cr),$P=uk(cr),xP=ck(cr),CP=dk(cr),AP=fk(cr),Bt=ue("ZodType",(e,t)=>(kt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:_d(e,"input"),output:_d(e,"output")}}),e.toJSONSchema=FL(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ei(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>ti(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>yP(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>bP(e,n,i),e.parseAsync=async(n,i)=>gP(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>vP(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>_P(e,n,i),e.decode=(n,i)=>EP(e,n,i),e.encodeAsync=async(n,i)=>SP(e,n,i),e.decodeAsync=async(n,i)=>DP(e,n,i),e.safeEncode=(n,i)=>$P(e,n,i),e.safeDecode=(n,i)=>xP(e,n,i),e.safeEncodeAsync=async(n,i)=>CP(e,n,i),e.safeDecodeAsync=async(n,i)=>AP(e,n,i),e.refine=(n,i)=>e.check(DI(n,i)),e.superRefine=n=>e.check($I(n)),e.overwrite=n=>e.check(fl(n)),e.optional=()=>e3(e),e.exactOptional=()=>cI(e),e.nullable=()=>t3(e),e.nullish=()=>e3(t3(e)),e.nonoptional=n=>yI(e,n),e.array=()=>XP(e),e.or=n=>m5([e,n]),e.and=n=>aI(e,n),e.transform=n=>n3(e,sI(n)),e.default=n=>mI(e,n),e.prefault=n=>hI(e,n),e.catch=n=>bI(e,n),e.pipe=n=>n3(e,n),e.readonly=()=>EI(e),e.describe=n=>{const i=e.clone();return _s.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return _s.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return _s.get(e);const i=e.clone();return _s.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),d5=ue("_ZodString",(e,t)=>{Ey.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>zL(e,i,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check($L(...i)),e.includes=(...i)=>e.check(AL(...i)),e.startsWith=(...i)=>e.check(wL(...i)),e.endsWith=(...i)=>e.check(TL(...i)),e.min=(...i)=>e.check(vd(...i)),e.max=(...i)=>e.check(i5(...i)),e.length=(...i)=>e.check(o5(...i)),e.nonempty=(...i)=>e.check(vd(1,...i)),e.lowercase=i=>e.check(xL(i)),e.uppercase=i=>e.check(CL(i)),e.trim=()=>e.check(ML()),e.normalize=(...i)=>e.check(NL(...i)),e.toLowerCase=()=>e.check(RL()),e.toUpperCase=()=>e.check(OL()),e.slugify=()=>e.check(kL())}),wP=ue("ZodString",(e,t)=>{Ey.init(e,t),d5.init(e,t),e.email=n=>e.check(qB(TP,n)),e.url=n=>e.check(XB(NP,n)),e.jwt=n=>e.check(pL(GP,n)),e.emoji=n=>e.check(eL(MP,n)),e.guid=n=>e.check(Y1(Q1,n)),e.uuid=n=>e.check(KB(Mc,n)),e.uuidv4=n=>e.check(WB(Mc,n)),e.uuidv6=n=>e.check(QB(Mc,n)),e.uuidv7=n=>e.check(JB(Mc,n)),e.nanoid=n=>e.check(tL(RP,n)),e.guid=n=>e.check(Y1(Q1,n)),e.cuid=n=>e.check(nL(OP,n)),e.cuid2=n=>e.check(rL(kP,n)),e.ulid=n=>e.check(aL(BP,n)),e.base64=n=>e.check(dL(UP,n)),e.base64url=n=>e.check(fL(HP,n)),e.xid=n=>e.check(iL(LP,n)),e.ksuid=n=>e.check(oL(PP,n)),e.ipv4=n=>e.check(lL(IP,n)),e.ipv6=n=>e.check(sL(FP,n)),e.cidrv4=n=>e.check(uL(jP,n)),e.cidrv6=n=>e.check(cL(zP,n)),e.e164=n=>e.check(mL(VP,n)),e.datetime=n=>e.check(sP(n)),e.date=n=>e.check(cP(n)),e.time=n=>e.check(fP(n)),e.duration=n=>e.check(pP(n))});function ja(e){return YB(wP,e)}const wt=ue("ZodStringFormat",(e,t)=>{At.init(e,t),d5.init(e,t)}),TP=ue("ZodEmail",(e,t)=>{tB.init(e,t),wt.init(e,t)}),Q1=ue("ZodGUID",(e,t)=>{Xk.init(e,t),wt.init(e,t)}),Mc=ue("ZodUUID",(e,t)=>{eB.init(e,t),wt.init(e,t)}),NP=ue("ZodURL",(e,t)=>{nB.init(e,t),wt.init(e,t)}),MP=ue("ZodEmoji",(e,t)=>{rB.init(e,t),wt.init(e,t)}),RP=ue("ZodNanoID",(e,t)=>{aB.init(e,t),wt.init(e,t)}),OP=ue("ZodCUID",(e,t)=>{iB.init(e,t),wt.init(e,t)}),kP=ue("ZodCUID2",(e,t)=>{oB.init(e,t),wt.init(e,t)}),BP=ue("ZodULID",(e,t)=>{lB.init(e,t),wt.init(e,t)}),LP=ue("ZodXID",(e,t)=>{sB.init(e,t),wt.init(e,t)}),PP=ue("ZodKSUID",(e,t)=>{uB.init(e,t),wt.init(e,t)}),IP=ue("ZodIPv4",(e,t)=>{pB.init(e,t),wt.init(e,t)}),FP=ue("ZodIPv6",(e,t)=>{hB.init(e,t),wt.init(e,t)}),jP=ue("ZodCIDRv4",(e,t)=>{yB.init(e,t),wt.init(e,t)}),zP=ue("ZodCIDRv6",(e,t)=>{gB.init(e,t),wt.init(e,t)}),UP=ue("ZodBase64",(e,t)=>{bB.init(e,t),wt.init(e,t)}),HP=ue("ZodBase64URL",(e,t)=>{_B.init(e,t),wt.init(e,t)}),VP=ue("ZodE164",(e,t)=>{EB.init(e,t),wt.init(e,t)}),GP=ue("ZodJWT",(e,t)=>{DB.init(e,t),wt.init(e,t)}),f5=ue("ZodNumber",(e,t)=>{t5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>UL(e,i,o),e.gt=(i,o)=>e.check(K1(i,o)),e.gte=(i,o)=>e.check(oh(i,o)),e.min=(i,o)=>e.check(oh(i,o)),e.lt=(i,o)=>e.check(q1(i,o)),e.lte=(i,o)=>e.check(ih(i,o)),e.max=(i,o)=>e.check(ih(i,o)),e.int=i=>e.check(J1(i)),e.safe=i=>e.check(J1(i)),e.positive=i=>e.check(K1(0,i)),e.nonnegative=i=>e.check(oh(0,i)),e.negative=i=>e.check(q1(0,i)),e.nonpositive=i=>e.check(ih(0,i)),e.multipleOf=(i,o)=>e.check(W1(i,o)),e.step=(i,o)=>e.check(W1(i,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),ZP=ue("ZodNumberFormat",(e,t)=>{$B.init(e,t),f5.init(e,t)});function J1(e){return _L(ZP,e)}const YP=ue("ZodBoolean",(e,t)=>{xB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>HL(e,n,i)});function qP(e){return EL(YP,e)}const KP=ue("ZodUnknown",(e,t)=>{CB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>GL()});function X1(){return SL(KP)}const WP=ue("ZodNever",(e,t)=>{AB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>VL(e,n,i)});function QP(e){return DL(WP,e)}const JP=ue("ZodArray",(e,t)=>{wB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>WL(e,n,i,o),e.element=t.element,e.min=(n,i)=>e.check(vd(n,i)),e.nonempty=n=>e.check(vd(1,n)),e.max=(n,i)=>e.check(i5(n,i)),e.length=(n,i)=>e.check(o5(n,i)),e.unwrap=()=>e.element});function XP(e,t){return BL(JP,e,t)}const eI=ue("ZodObject",(e,t)=>{NB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>QL(e,n,i,o),mt(e,"shape",()=>t.shape),e.keyof=()=>zo(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:X1()}),e.loose=()=>e.clone({...e._zod.def,catchall:X1()}),e.strict=()=>e.clone({...e._zod.def,catchall:QP()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>WO(e,n),e.safeExtend=n=>QO(e,n),e.merge=n=>JO(e,n),e.pick=n=>qO(e,n),e.omit=n=>KO(e,n),e.partial=(...n)=>XO(p5,e,n[0]),e.required=(...n)=>ek(h5,e,n[0])});function tI(e,t){const n={type:"object",shape:e??{},...Le(t)};return new eI(n)}const nI=ue("ZodUnion",(e,t)=>{MB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>JL(e,n,i,o),e.options=t.options});function m5(e,t){return new nI({type:"union",options:e,...Le(t)})}const rI=ue("ZodIntersection",(e,t)=>{RB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>XL(e,n,i,o)});function aI(e,t){return new rI({type:"intersection",left:e,right:t})}const d0=ue("ZodEnum",(e,t)=>{OB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>ZL(e,i,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,o)=>{const s={};for(const c of i)if(n.has(c))s[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new d0({...t,checks:[],...Le(o),entries:s})},e.exclude=(i,o)=>{const s={...t.entries};for(const c of i)if(n.has(c))delete s[c];else throw new Error(`Key ${c} not found in enum`);return new d0({...t,checks:[],...Le(o),entries:s})}});function zo(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new d0({type:"enum",entries:n,...Le(t)})}const iI=ue("ZodLiteral",(e,t)=>{kB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>YL(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function oI(e,t){return new iI({type:"literal",values:Array.isArray(e)?e:[e],...Le(t)})}const lI=ue("ZodTransform",(e,t)=>{BB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>KL(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Fx(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Is(s,n.value,t));else{const c=s;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=n.value),c.inst??(c.inst=e),n.issues.push(Is(c))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function sI(e){return new lI({type:"transform",transform:e})}const p5=ue("ZodOptional",(e,t)=>{a5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>c5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function e3(e){return new p5({type:"optional",innerType:e})}const uI=ue("ZodExactOptional",(e,t)=>{LB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>c5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function cI(e){return new uI({type:"optional",innerType:e})}const dI=ue("ZodNullable",(e,t)=>{PB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>eP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function t3(e){return new dI({type:"nullable",innerType:e})}const fI=ue("ZodDefault",(e,t)=>{IB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>nP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mI(e,t){return new fI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Hx(t)}})}const pI=ue("ZodPrefault",(e,t)=>{FB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>rP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function hI(e,t){return new pI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Hx(t)}})}const h5=ue("ZodNonOptional",(e,t)=>{jB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>tP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function yI(e,t){return new h5({type:"nonoptional",innerType:e,...Le(t)})}const gI=ue("ZodCatch",(e,t)=>{zB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>aP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bI(e,t){return new gI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const vI=ue("ZodPipe",(e,t)=>{UB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>iP(e,n,i,o),e.in=t.in,e.out=t.out});function n3(e,t){return new vI({type:"pipe",in:e,out:t})}const _I=ue("ZodReadonly",(e,t)=>{HB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>oP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function EI(e){return new _I({type:"readonly",innerType:e})}const SI=ue("ZodCustom",(e,t)=>{VB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>qL(e,n)});function DI(e,t={}){return LL(SI,e,t)}function $I(e){return PL(e)}const f0={custom:"custom"};function Gt(e){return vL(f5,e)}const xI=["additional_pip","tort_threshold","pip_coverage_type","extended_medical","policy_pip_deductible"],CI=new Set([...xI,"is_corporation"]);tI({additional_pip:zo(["cov100_10400_LIMITED","cov125_13000_LIMITED","cov175_18200_LIMITED","cov250_26000_LIMITED","cov400_41600_LIMITED","cov500_52000_LIMITED","cov600_62400_LIMITED","cov700_72800_LIMITED","cov100_UNLIMITED","cov125_UNLIMITED","cov175_UNLIMITED","cov250_UNLIMITED","cov400_UNLIMITED","cov500_UNLIMITED","cov600_UNLIMITED","cov700_UNLIMITED"]),tort_threshold:zo(["Verbal_Threshold","Zero_Threshold"]),pip_coverage_type:zo(["Primary","Secondary"]),extended_medical:zo(["cov1000","cov10000"]),policy_pip_deductible:zo(["cov250","cov500","cov1000","cov2000","cov2500"]),has_health_insurance_auto_accident:qP().nullable().optional()}).superRefine((e,t)=>{e.pip_coverage_type==="Secondary"&&e.has_health_insurance_auto_accident!==!0&&t.addIssue({code:f0.custom,path:["pip_coverage_type"],message:"Secondary PIP coverage requires health insurance that covers auto accidents."})});const AI=new Set(["Home","HomeConstruction","HomeFeatures","Demographics"]),wI=new Set(["HomePolicy","BundlePolicy"]),TI=new Set(["HomeCustomer","BundleCustomer","Demographics"]);function Ed(e){if(typeof e!="string"||!e.trim())return!1;const t=e.trim().toLowerCase();return t==="nj"||t==="n.j."||t==="n.j"||t==="new jersey"}function r3(e){return e?Ed(e.state??e.State):!1}function nf(e,t,n){return e==="has_health_insurance_auto_accident"?t==="BundleCustomer"||t==="Demographics"?!1:!r3(n):CI.has(e)?!r3(n):e==="household_size"?!(t&&AI.has(t)):e==="number_of_mortgagees"?!(t&&wI.has(t)):(e==="has_co_applicant"||e==="co_applicant_middle_name"||e==="co_applicant_relationship")&&t&&TI.has(t)?!1:e==="multi_policy_discount"&&t==="HomePolicy"?!0:NI.has(e)}const NI=new Set(["anti_theft_type","passive_restraint_type","anti_lock_brakes","daytime_running_lights","vehicle_full_glass","vehicle_loan_lease","percent_to_work","stated_value_amount_cents","vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor","vehicle_transportation_expense","accident_prevention_course","driver_accidents","driver_violations","losses","middle_name","ssn_display","auto_current_annual_premium_cents","has_co_applicant","co_applicant_middle_name","co_applicant_relationship"]),y5=new Date().getUTCFullYear(),Rc=ja().trim().min(1,"Required").regex(/^[A-Za-z\s]+$/,"Only alphabetic characters are allowed."),a3=m5([oI(""),ja().trim().regex(/^[A-Za-z\s]*$/,"Only alphabetic characters are allowed.")]).optional(),MI=(e,t,n)=>Gt({error:`${e} must be a number.`}).min(t,`${e} must be between ${t.toLocaleString("en-US")} and ${n.toLocaleString("en-US")}.`).max(n,`${e} must be between ${t.toLocaleString("en-US")} and ${n.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`),Fo=(e,t)=>Gt({error:`${e} must be a number.`}).min(0,`${e} must be between 0 and ${t.toLocaleString("en-US")}.`).max(t,`${e} must be between 0 and ${t.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`),Oc=(e,t=1600)=>Gt({error:`${e} must be a valid 4-digit year.`}).int(`${e} must be a whole number.`).min(t,`${e} should be between ${t} and the current year.`).max(y5,`${e} cannot be in the future.`),kc=e=>Gt({error:`${e} must be a number.`}).int(`${e} must be a whole number.`).min(0,`${e} must be between 0 and 99.`).max(99,`${e} must be between 0 and 99.`),fs=(e,t,n=0)=>{const i=Math.pow(10,t)-1,o=i.toLocaleString("en-US"),s=n.toLocaleString("en-US");return Gt({error:`${e} must be a number.`}).min(n,`${e}: Value must be between ${s} and ${o}.`).max(i,`${e}: Value must be between ${s} and ${o}.`).int(`${e} must be a whole number.`)},RI={email:ja().trim().min(1,"Required").email("Please enter a valid email address."),phone:ja().trim().min(1,"Required").refine(e=>{let t=e.replace(/\D/g,"");return t.length===11&&t.startsWith("1")&&(t=t.slice(1)),t.length===10},"Please enter a valid 10-digit US phone number."),social_security_number:ja().trim().refine(e=>e===""||/^\d{3}-\d{2}-\d{4}$/.test(e),"Social Security Number must be in the format XXX-XX-XXXX.").optional(),sms_code:ja().trim().min(1,"Required").regex(/^\d{6}$/,"Please enter the 6-digit code."),first_name:Rc,last_name:Rc,middle_name:a3,co_applicant_first_name:Rc,co_applicant_last_name:Rc,co_applicant_middle_name:a3,year_built:Oc("Year built",1800),year_roof_updated:Gt({error:"Please enter a valid 4-digit year."}).int("Year must be a whole number.").min(1e3,"Please enter a valid 4-digit year.").max(9999,"Please enter a valid 4-digit year."),heating_update_year:Oc("Heating update year"),plumbing_update_year:Oc("Plumbing update year"),electrical_update_year:Oc("Electrical update year"),total_area_sq_ft:MI("Square footage",1,999999),sale_price_cents:Gt({error:"Purchase Price must be a number."}).min(1,"Purchase Price must be between 1 and 21,474,836.").max(21474836,"Purchase Price must be between 1 and 21,474,836.").int("Purchase Price must be a whole number."),home_prior_years:kc("Number of years with your prior carrier"),home_continuous_coverage_years:kc("How long you have had continuous home coverage"),household_size:Gt({error:"Household size must be a number."}).min(1,"Occupants must be between 1 and 8.").max(8,"Occupants must be between 1 and 8.").int("Occupants must be between 1 and 8."),number_of_mortgagees:Gt({error:"Number of mortgagees must be a number."}).int().min(0,"Number of mortgagees cannot be negative.").max(3,"Number of mortgagees must be between 0 and 3."),dwelling_replacement_cost:fs("Replacement cost",9,1),other_structures_coverage:fs("Other structures",9),personal_property_coverage:fs("Personal property",7),loss_of_use_coverage:fs("Loss of use coverage",8),years_at_address:Gt({error:"Years at address must be a number."}).int().min(0,"Years at address cannot be negative.").max(100,"Years at address must be 100 or less."),months_at_address:Gt({error:"Months at address must be a number."}).int().min(0,"Months at address cannot be negative.").max(11,"Months at address must be between 0 and 11."),years_at_prior_address:Gt({error:"Years at prior address must be a number."}).int().min(0,"Years at prior address cannot be negative.").max(100,"Years at prior address must be 100 or less."),number_of_units:Gt({error:"Number of units must be a number."}).int().min(1,"Number of units/apartments should be greater than 0.").max(99,"Number of units/apartments must be between 1 and 99."),number_of_families:Gt({error:"Number of families must be a number."}).int("Number of families must be a whole number.").refine(e=>e>=1&&e<=5,{message:"Number of families must be between 1 and 5."}),number_of_dogs:Gt({error:"Number of dogs must be a number."}).int().min(0,"Number of dogs must be between 0 and 99.").max(99,"Number of dogs must be between 0 and 99."),distance_to_coast_miles:Gt({error:"Distance to coast must be a number."}).int().min(0,"Distance to coast cannot be negative.").max(9999,"Distance to coast must be at most 4 digits."),amount_paid_cents:fs("Amount paid",7),license_number:ja().trim().min(1,"Required").max(20,"License number must be 20 characters or fewer.").regex(/^[A-Z0-9]+$/i,"License number must contain only letters and numbers."),vin:ja().superRefine((e,t)=>{if(typeof e!="string"||e.trim()==="")return;if(/\s/.test(e)){t.addIssue({code:f0.custom,message:"VIN cannot contain spaces."});return}const n=e.trim();/^[A-HJ-NPR-Z0-9]{17}$/i.test(n)||t.addIssue({code:f0.custom,message:"VIN must be exactly 17 letters and numbers (excluding I, O, and Q)."})}),annual_mileage:Gt({error:"Annual mileage must be a number."}).int("Annual mileage must be a whole number.").min(1e3,"Vehicle annual use should be between 1,000 & 100,000 miles.").max(1e5,"Vehicle annual use should be between 1,000 & 100,000 miles."),miles_to_work:Gt({error:"Miles driven to work/school must be a number."}).int("Miles driven to work/school must be a whole number.").min(1,"Please enter a value greater than 0.").max(9999,"Miles driven to work/school must be between 1 and 9,999."),custom_equipment_value_cents:Fo("Modifications value",9999999),cost_new_value_cents:Fo("Cost new value",9999999),stated_value_amount_cents:Fo("Stated Value Amount",9999999),property_damage_amount_paid_cents:Fo("Property damage amount paid",9999999),personal_injury_amount_paid_cents:Fo("Personal injury amount paid",9999999),auto_current_annual_premium_cents:Fo("Current annual premium",9999999),auto_prior_years:kc("Years with prior auto carrier"),auto_prior_months:Gt({error:"Months with prior carrier must be a number."}).int().min(0,"Months with prior carrier must be between 0 and 11.").max(11,"Months with prior carrier must be between 0 and 11."),auto_continuous_coverage_years:kc("Years with continuous auto coverage")};function It(e){return new Date(`${e}T00:00:00Z`)}function nn(){const e=new Date;return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function Ba(e,t){let n=t.getUTCFullYear()-e.getUTCFullYear();const i=t.getUTCMonth()-e.getUTCMonth();return(i<0||i===0&&t.getUTCDate()<e.getUTCDate())&&n--,n}const g5=[{targetKey:"social_security_number",dependsOn:["social_security_number","state"],validate:e=>{if(!("social_security_number"in e)||!Ed(e.state))return;const t=e.social_security_number;return(typeof t=="string"?t.trim():"")===""?"Social Security Number is required in New Jersey.":void 0}},{targetKey:"date_of_birth",dependsOn:["date_of_birth"],validate:e=>{const t=e.date_of_birth;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":Ba(n,nn())<18?"Applicant can't be under the age of 18.":void 0}},{targetKey:"co_applicant_date_of_birth",dependsOn:["co_applicant_date_of_birth"],validate:e=>{const t=e.co_applicant_date_of_birth;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":Ba(n,nn())<16?"Co-applicant can't be under the age of 16.":void 0}},{targetKey:"year_roof_updated",dependsOn:["year_roof_updated","year_built"],validate:e=>{const t=Number(e.year_roof_updated),n=Number(e.year_built);if(isNaN(t))return;const i=isNaN(n)?1e3:n;if(t<i||t>y5)return"Roof renovation/replacement year must be between the home's build year and the current year."}},{targetKey:"move_in_date",dependsOn:["move_in_date","year_built"],validate:e=>{const t=e.move_in_date,n=e.year_built;if(!t||n==null)return;const i=It(String(t));if(isNaN(i.getTime()))return;const o=Number(n);if(!isNaN(o))return i.getUTCFullYear()<o?"Purchase date cannot be prior to the year the building was originally constructed.":void 0}},{targetKey:"date_first_licensed",dependsOn:["date_first_licensed"],validate:e=>{const t=e.date_first_licensed;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Date first licensed cannot be in the future.":void 0}},{targetKey:"date_first_licensed",dependsOn:["date_first_licensed","date_of_birth"],validate:e=>{const t=e.date_first_licensed,n=e.date_of_birth;if(!t||typeof t!="string"||!n||typeof n!="string")return;const i=It(n),o=It(t);if(isNaN(i.getTime())||isNaN(o.getTime()))return;if(o<i)return"Date licensed cannot be before driver date of birth.";const s=new Date(Date.UTC(i.getUTCFullYear()+16,i.getUTCMonth(),i.getUTCDate()));return o<s?"Driver must be at least 16 years old at the date first licensed.":void 0}},{targetKey:"occurred_at",dependsOn:["occurred_at"],validate:e=>{const t=e.occurred_at;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Incident date cannot be in the future.":void 0}},{targetKey:"accident_prevention_course_date",dependsOn:["accident_prevention_course_date"],validate:e=>{const t=e.accident_prevention_course_date;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Course date cannot be in the future.":void 0}},{targetKey:"effective_date",dependsOn:["effective_date"],validate:e=>{const t=e.effective_date;if(!t||typeof t!="string")return;const n=It(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth()+3,i.getUTCDate()));if(n<i)return"Insurance start date cannot be in the past.";if(n>o)return"Insurance must begin within 3 months from today."}},{targetKey:"years_at_address",dependsOn:["years_at_address","date_of_birth"],validate:e=>{const t=e.years_at_address,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Time at address cannot be greater than the applicant age.":void 0}},{targetKey:"years_at_prior_address",dependsOn:["years_at_prior_address","date_of_birth"],validate:e=>{const t=e.years_at_prior_address,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years at prior address cannot be greater than the applicant age.":void 0}},{targetKey:"home_prior_years",dependsOn:["home_prior_years","home_continuous_coverage_years"],validate:e=>{const t=e.home_prior_years,n=e.home_continuous_coverage_years;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o)))return i>o?"Years with prior carrier cannot be higher than years with continuous coverage.":void 0}},{targetKey:"home_prior_years",dependsOn:["home_prior_years","date_of_birth"],validate:e=>{const t=e.home_prior_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years with prior carrier cannot be greater than the Applicant's age.":void 0}},{targetKey:"home_continuous_coverage_years",dependsOn:["home_continuous_coverage_years","date_of_birth"],validate:e=>{const t=e.home_continuous_coverage_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years with continuous home coverage cannot be greater than the Applicant's age.":void 0}},{targetKey:"move_in_date",dependsOn:["move_in_date"],validate:e=>{const t=e.move_in_date;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Purchase date cannot be in the future.":void 0}},{targetKey:"date_of_incident",dependsOn:["date_of_incident"],validate:e=>{const t=e.date_of_incident;if(!t||typeof t!="string")return;const n=It(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn();return n>i?"Loss date cannot be in the future.":void 0}},{targetKey:"home_prior_expiration_date",dependsOn:["home_prior_expiration_date"],validate:e=>{const t=e.home_prior_expiration_date;if(!t||typeof t!="string")return;const n=It(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear()-1,i.getUTCMonth(),i.getUTCDate())),s=new Date(Date.UTC(i.getUTCFullYear()+1,i.getUTCMonth(),i.getUTCDate()));if(n<o||n>s)return"Policy expiration date must be between 1 year ago and 1 year from now."}},{targetKey:"purchase_date",dependsOn:["purchase_date"],validate:e=>{const t=e.purchase_date;if(!t||typeof t!="string")return;const n=It(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Vehicle purchase date cannot be in the future.":void 0}},{targetKey:"purchase_date",dependsOn:["purchase_date","year"],validate:e=>{const t=e.purchase_date,n=e.year;if(!t||typeof t!="string"||n==null)return;const i=It(t);if(isNaN(i.getTime()))return;const o=Number(n);if(!isNaN(o))return i.getUTCFullYear()<o?"The year the vehicle was purchased is not valid with the model year.":void 0}},{targetKey:"auto_prior_expiration_date",dependsOn:["auto_prior_expiration_date"],validate:e=>{const t=e.auto_prior_expiration_date;if(!t||typeof t!="string")return;const n=It(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear()-1,i.getUTCMonth(),i.getUTCDate())),s=new Date(Date.UTC(i.getUTCFullYear()+1,i.getUTCMonth(),i.getUTCDate()));if(n<o||n>s)return"Auto policy expiration date must be between 1 year ago and 1 year from now."}},{targetKey:"auto_prior_years",dependsOn:["auto_prior_years","auto_continuous_coverage_years"],validate:e=>{const t=e.auto_prior_years,n=e.auto_continuous_coverage_years;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o)))return i>o?"Years with prior auto carrier cannot be higher than years with continuous coverage.":void 0}},{targetKey:"auto_prior_years",dependsOn:["auto_prior_years","date_of_birth"],validate:e=>{const t=e.auto_prior_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years with prior auto carrier cannot be greater than the Applicant's age.":void 0}},{targetKey:"auto_continuous_coverage_years",dependsOn:["auto_continuous_coverage_years","date_of_birth"],validate:e=>{const t=e.auto_continuous_coverage_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=It(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years with continuous auto coverage cannot be greater than the Applicant's age.":void 0}},{targetKey:"vehicle_coll_deductible",dependsOn:["vehicle_coll_deductible","vehicle_comp_deductible"],validate:e=>{const t=e.vehicle_coll_deductible,n=e.vehicle_comp_deductible;if(!(!t||typeof t!="string"||!n||typeof n!="string")&&n==="NoCoverage"&&t!=="NoCoverage")return"Collision Coverage cannot be chosen if Comprehensive is No Coverage."}},{targetKey:"policy_um",dependsOn:["policy_um","policy_bi"],validate:e=>{const t=e.policy_um,n=e.policy_bi;if(!t||typeof t!="string"||!n||typeof n!="string"||t==="Reject"||n==="Dontknow")return;const i=h=>h.endsWith("CSL"),o=i(t),s=i(n);if(o&&!s)return"A Combined Single Limit cannot be selected for Uninsured/Underinsured Motorist unless a Combined Single Limit has also been selected for Liability.";const c={cov30to60:30,cov50to100:50,cov100to100:100,cov100to300:100,cov250to500:250,cov300to300:300,cov500to500:500,cov100CSL:100,cov300CSL:300,cov500CSL:500},d=c[t],m=c[n];if(d!=null&&m!=null&&d>m)return"Uninsured/Underinsured Motorist Limit value cannot be greater than Bodily Injury Limit value."}},{targetKey:"policy_umpd",dependsOn:["policy_umpd","policy_pd"],validate:e=>{const t=e.policy_umpd,n=e.policy_pd;if(!t||typeof t!="string"||!n||typeof n!="string"||t==="NoCoverage"||n==="Dontknow")return;const i=c=>{if(!c.startsWith("cov"))return null;const d=parseInt(c.replace("cov",""),10);return isNaN(d)?null:d},o=i(t),s=i(n);if(o!=null&&s!=null&&o>s)return"Uninsured Motorist Property Damage Limit value cannot be greater than Liability Property Damage Limit value."}},{targetKey:"custom_equipment_value_cents",dependsOn:["custom_equipment_value_cents","stated_value_amount_cents"],validate:e=>{const t=e.custom_equipment_value_cents,n=e.stated_value_amount_cents;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o))&&o>0&&i>0)return"Modifications should be included in the stated value of the vehicle. If a stated value quote is not required, remove the stated value."}}];function m0(e,t){const n=RI[e];if(!n)return;const i=n.safeParse(t);return i.success?void 0:i.error.issues[0].message}function i3(e){if(/\s/.test(e))return!1;const t=e.trim();return t.length===17&&/^[A-HJ-NPR-Z0-9]{17}$/i.test(t)}function OI(e,t){const n={};for(const i of g5){if(t?.has(i.targetKey))continue;const o=i.validate(e);o&&(n[i.targetKey]=o)}return n}function Sd(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function Ya(e,t){return e.key??`${Sd(e.question)}-${t}`}function Cr(e,t){return t==="number"?e==null||typeof e=="string"&&e.trim()==="":t==="checkbox"?e!==!0:e==null||typeof e=="string"&&e.trim()===""}function Fs(e,t){const n={};e.forEach((c,d)=>{const m=Ya(c,d),h=t[m];if(c.required&&Cr(h,c.inputType)){n[m]="Required";return}if(!Cr(h,c.inputType)){const y=m0(m,h);if(y){n[m]=y;return}}});const i={...t};e.forEach((c,d)=>{const m=Ya(c,d);m in i||(i[m]="")});const o=new Set(Object.keys(n).filter(c=>n[c])),s=OI(i,o);for(const[c,d]of Object.entries(s))n[c]=d;return n}function kI(e){if(e===""||e===null||e===void 0)return;const t=Number(e);return Number.isNaN(t)?void 0:t}const BI={NoPriorInsurance:"No Prior Insurance",TwentyFirstCentury:"21st Century",ACentral:"A.Central",AAA:"AAA",AARP:"AARP",Acadia:"Acadia",Ace:"Ace",Acuity:"Acuity",AdirondackInsExchange:"Adirondack Ins Exchange",Aegis:"Aegis",AIC:"AIC",AIG:"AIG",AlfaAlliance:"Alfa Alliance",Allied:"Allied",Allstate:"Allstate",AmericaFirst:"America First",AmericanCommerce:"American Commerce",AmericanFamily:"American Family",Amica:"Amica",ASILloyds:"ASI Lloyds",AustinMutual:"Austin Mutual",Autoone:"Autoone",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bankers:"Bankers",BeaconNational:"Beacon National",BrethernMutual:"Brethern Mutual",BristolWest:"Bristol West",CapitalInsuranceGroup:"Capital Insurance Group",Celina:"Celina",CentralMutualOfOH:"Central Mutual of OH",Chubb:"Chubb",Cincinnati:"Cincinnati",Clearcover:"Clearcover",CNA:"CNA",ColonialPenn:"Colonial Penn",ColoradoCasualty:"Colorado Casualty",Columbia:"Columbia",CommerceWest:"Commerce West",CommonwealthCasualty:"Commonwealth Casualty",Ameriprise:"CONNECT",ConstitutionalCasualty:"Constitutional Casualty",Cornerstone:"Cornerstone",Countrywide:"Countrywide",CSE:"CSE",Cumberland:"Cumberland",Dairyland:"Dairyland",Deerbrook:"Deerbrook",Direct:"Direct",Donegal:"Donegal",Drive:"Drive",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",Explorer:"Explorer",FarmBureau:"Farm Bureau",Farmers:"Farmers",FiremansFund:"Firemans Fund",FirstAmerican:"First American",Foremost:"Foremost",Geico:"Geico",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",GreatAmerican:"Great American",Grinnell:"Grinnell",GuideOne:"Guide One",Hanover:"Hanover",Harbor:"Harbor",Harleysville:"Harleysville",HartfordOMNI:"Hartford OMNI",Hartford:"Hartford",HastingsMutual:"Hastings Mutual",HawkeyeSecurity:"Hawkeye Security",HDI:"HDI",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",IFA:"IFA",ImperialCasualty:"Imperial Casualty",IndianaFarmers:"Indiana Farmers",Indiana:"Indiana",Infinity:"Infinity",Insurequest:"Insurequest",Integon:"Integon",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",MainStreetAmerica:"Main Street America",Mapfre:"Mapfre",Mendota:"Mendota",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",Metropolitan:"Metropolitan",MidContinent:"Mid-Continent",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MtWashington:"Mt. Washington",MutualBenefit:"Mutual Benefit",NationalGeneral:"National General",Nationwide:"Nationwide",NewYorkCentralMutual:"New York Central Mutual",NJManufacturers:"NJ Manufacturers",NJSkylands:"NJ Skylands",Northstar:"Northstar",Occidental:"Occidental",OhioCasualty:"Ohio Casualty",OmahaPC:"Omaha P/C",OneBeacon:"One Beacon",OregonMutual:"Oregon Mutual",Palisades:"Palisades",PeerlessMontgomery:"Peerless/Montgomery",Pekin:"Pekin",Pemco:"Pemco",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Proformance:"Proformance",Progressive:"Progressive",Prudential:"Prudential",Republic:"Republic",RockfordMutual:"Rockford Mutual",RoyalAndSunAlliance:"Royal and Sun Alliance",Safeco:"Safeco",SECURA:"SECURA",Selective:"Selective",SouthernCounty:"Southern County",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul/Travelers",StandardMutual:"Standard Mutual",StarCasualty:"Star Casualty",StateAuto:"State Auto",StateFarm:"State Farm",Fidelity:"Stillwater",Travelers:"Travelers",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire and Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Victoria:"Victoria",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve Group",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Windsor:"Windsor",Zurich:"Zurich",OtherStandard:"Other Standard",OtherNonStandard:"Other Non-Standard"},LI={OwnHome:"Own Home",OwnCondo:"Own Condo",RentHome:"Rent Home",RentCondo:"Rent Condo",RentApartment:"Rent Apartment",LiveWithParents:"Live With Parents"},PI={TwentyFirstCentury:"21st Century",AAA:"AAA",Acuity:"Acuity",AdirondackInsExchange:"Adirondack Ins Exchange",AIG:"AIG",AlfaAlliance:"Alfa Alliance",AllianzOfAmerica:"Allianz of America",AllianzOfAmericaJefferson:"Allianz of America-Jefferson",Allied:"Allied",Allmerica:"Allmerica",Allstate:"Allstate",AmericaFirst:"America First",AmericanFamily:"American Family",AmericanCommerce:"American Commerce",Amica:"Amica",ASILloyds:"ASI Lloyds",Assurant:"Assurant",AtlasGeneralAgency:"Atlas General Agency",AustinMutual:"Austin Mutual",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bamboo:"Bamboo",BeaconNational:"Beacon National",BunkerHill:"Bunker Hill",CapitalInsuranceGroup:"Capital Insurance Group",CentralMutualOfOH:"Central Mutual of OH",ChubbInsurance:"Chubb",Cincinnati:"Cincinnati",Citizens:"Citizens",ColoradoCasualty:"Colorado Casualty",Ameriprise:"CONNECT",CSE:"CSE",Cumberland:"Cumberland",Cypress:"Cypress",Dairyland:"Dairyland",Donegal:"Donegal",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",ExcelsiorInsuranceCompany:"Excelsior Insurance Company",FairPlan:"Fair Plan",FarmBureau:"Farm Bureau",Farmers:"Farmers",FiremansFund:"Firemans Fund",FirstAmerican:"First American",ForemostInsuranceCompany:"Foremost Insurance Company",Geico:"Geico",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",Grinnell:"Grinnell",GuideOne:"Guide One",Hanover:"Hanover",Harleysville:"Harleysville",Hartford:"Hartford",HartfordOMNI:"Hartford OMNI",HawkeyeSecurity:"Hawkeye Security",HippoInsuranceCompany:"Hippo Insurance Company",HomeownersOfAmerica:"Homeowners of America",Homesite:"Homesite",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",Indiana:"Indiana",IndianaFarmers:"Indiana Farmers",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",Lloyds:"Lloyds",MainStreetAmerica:"Main Street America",MarkelInsuranceCompany:"Markel Insurance Company",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MutualBenefit:"Mutual Benefit",Tower:"National General",NatGenPremier:"NatGen Premier",Nationwide:"Nationwide",NationwideScottsdale:"Nationwide-Scottsdale",NewYorkCentralMutual:"New York Central Mutual",NJSkylands:"NJ Skylands",Northstar:"Northstar",OhioCasualty:"Ohio Casualty",OneBeacon:"One Beacon",OregonMutual:"Oregon Mutual",PeerlessMontgomery:"Peerless/Montgomery",Pekin:"Pekin",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Prudential:"Prudential",PureHighValue:"Pure High Value",Republic:"Republic",RoyalAndSunAlliance:"Royal and Sun Alliance",Safeco:"Safeco",SECURA:"SECURA",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul/Travelers",StandardMutual:"Standard Mutual",StateAuto:"State Auto",StateFarm:"State Farm",StateFarmFloridaInsuranceCompany:"State Farm Florida Insurance Company",Fidelity:"Stillwater",SunshineStateInsuranceCompany:"Sunshine State Insurance Company",Travelers:"Travelers",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire and Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Wellington:"Wellington",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve Group",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Zurich:"Zurich",Other:"Other",OtherNonStandard:"Other Non-Standard",OtherStandard:"Other Standard"},II={Business:"Business",Pleasure:"Pleasure",Farming:"Farming",To_FromWork:"To/From Work",To_FromSchool:"To/From School"},FI={Dontknow:"Don't Know",ThirtyToSixty:"30/60",FiftyToHundred:"50/100",HundredToHundred:"100/100",HundredToThreeHundred:"100/300",TwoHundredFiftyToFiveHundred:"250/500",ThreeHundredToThreeHundred:"300/300",FiveHundredToFiveHundred:"500/500",HundredCSL:"100CSL",ThreeHundredCSL:"300CSL",FiveHundredCSL:"500CSL"},jI={ActiveMilitaryDuty:"Active Military Duty",DrivingCompanyCar:"Driving A Company Car",DrivingCarOwnedByRelative:"Driving A Car Owned By A Relative",HasNotOwnedOrOperatedVehicle:"Has Not Owned Or Operated A Vehicle",OwnedVehParkedStoredOffRoadNotDriven:"Owned Veh Parked/Stored Off Road/Not Driven",NonPayment:"Non-Payment",Other:"Other"},zI={Dontknow:"Don't Know",cov30to60:"30/60",cov35to70:"35/70",cov50to100:"50/100",cov100to100:"100/100",cov100to300:"100/300",cov250to500:"250/500",cov300to300:"300/300",cov500to500:"500/500",cov100CSL:"100 CSL",cov300CSL:"300 CSL",cov500CSL:"500 CSL"},UI={Reject:"Reject",cov30to60:"30/60",cov35to70:"35/70",cov50to100:"50/100",cov100to100:"100/100",cov100to300:"100/300",cov250to500:"250/500",cov300to300:"300/300",cov500to500:"500/500",cov100CSL:"100 CSL",cov300CSL:"300 CSL",cov500CSL:"500 CSL"},HI={Dontknow:"Don't know",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov500000:"500,000"},VI={None:"None",cov500:"500",cov1000:"1,000",cov2000:"2,000",cov2500:"2,500",cov5000:"5,000",cov10000:"10,000",cov15000:"15,000",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000"},GI={cov25000:"25,000",cov35000:"35,000",cov50000:"50,000",cov100000:"100,000",cov200000:"200,000",cov250000:"250,000",cov300000:"300,000",cov500000:"500,000"},ZI={cov15000:"15,000",cov2500:"2,500",cov5000:"5,000",cov10000:"10,000",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov75000:"75,000",cov150000:"150,000"},YI={NoCoverage:"No Coverage",cov5000:"5,000",cov10000:"10,000"},p0={NoCoverage:"No Coverage",Zero:"0",Fifty:"50",Hundred:"100",TwoHunderd:"200",TwoHundredfifty:"250",FiveHundred:"500",SeventyFiveHundred:"750",Thousand:"1,000",TwoThousand:"2,000"},qI=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","SeventyFiveHundred","Thousand","TwoThousand"],KI=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","Thousand","TwoThousand"],h0={NoCoverage:"No Coverage",TwentyFive:"25",Forty:"40",Fifty:"50",SeventyFive:"75",Eighty:"80",Hundred:"100",TwelveHundred:"120",TwoHundred:"200",Unlimited:"Unlimited"},WI=["NoCoverage","TwentyFive","Fifty","SeventyFive","Hundred","TwoHundred","Unlimited"],b5={NoCoverage:"No Coverage",cov20to600:"20/600",cov25to750:"25/750",cov30to900:"30/900",cov40to1200:"40/1,200",cov50to1500:"50/1,500",cov100to3000:"100/3,000"},QI=["NoCoverage","cov20to600","cov25to750","cov30to900","cov40to1200","cov50to1500","cov100to3000"],JI=["NoCoverage","cov20to600","cov30to900","cov40to1200","cov50to1500"],v5={NoHighSchoolDiploma:"No High School Diploma",HighSchoolDiploma:"High School Diploma",SomeCollegeNoDegree:"Some College - No Degree",VocationalTechnicalDegree:"Vocational Technical Degree",AssociatesDegree:"Associates Degree",Bachelors:"Bachelors",Masters:"Masters",Phd:"Phd",MedicalDegree:"Medical Degree",LawDegree:"Law Degree"},XI={TwoFamilyHome:"2-Family Home",American4square:"American 4-square",Basic:"Basic",BiLevel:"Bi-Level",Bungalow:"Bungalow",CapeCod:"Cape Cod",Colonial:"Colonial",ColonialSpanish:"Colonial - Spanish",CompletelyCustom:"Completely Custom",Contemporary:"Contemporary",ContractorModern:"Contractor Modern",Farmhouse:"Farmhouse",Folk:"Folk",Log:"Log",Mediterranean:"Mediterranean",Ranch:"Ranch",TriLevel:"Tri-Level",Tudor:"Tudor",Vernacular:"Vernacular",Victorian:"Victorian"},eF={SingleFamilyHouse:"Single Family House",Townhouse:"Townhouse",Rowhouse:"Rowhouse",Duplex:"Duplex/Two Family Unit",Triplex:"Tri-plex/Three Family Unit",Fourplex:"Four-plex/Four Family Unit",MultFamily:"Multi-family (more than four units)"},tF={OwnerPrimary:"Owner Primary",OwnerSecondary:"Owner Secondary",OwnerSeasonal:"Owner Seasonal"},nF={Basic:"Basic",Modest:"Modest",Average:"Average",AboveAverage:"Above Average",Expensive:"Expensive",VeryExpensive:"Very Expensive",Opulent:"Opulent"},rF={Frame:"Frame",Masonry:"Masonry",MasonryVeneer:"Masonry Veneer",Log:"Log",Asbestos:"Asbestos",EFIS:"EFIS",HardiPlank:"HardiPlank",SuperiorFireResistive:"Superior Fire Resistive",SuperiorMasonryNonCombustible:"Superior Masonry Non Combustible",SuperiorNonCombustible:"Superior Non Combustible"},aF={Slab:"Slab",Basement:"Basement",CrawlSpace:"Crawl Space",PartialBasement:"Partial Basement",PiersPostsPiles:"Piers / Posts / Piles",Open:"Open"},iF={NotOverWater:"No",PartiallyOverWater:"Partially Over Water",FullyOrEntirelyOverWater:"Fully or Entirely Over Water"},oF={One:"1",OneHalf:"1.5",Two:"2",TwoHalf:"2.5",Three:"3",ThreeHalf:"3.5",Four:"4",BiLevel:"Bi-Level",TriLevel:"Tri-Level"},lF={VinylSiding:"Vinyl Siding",WoodFraming:"Wood Framing",BrickVeneer:"Brick Veneer",Stucco:"Stucco",AdobeBlock:"Adobe Block",AluminumSiding:"Aluminum Siding",CementFiberShingles:"Cement Fiber Shingles",Clapboard:"Clapboard",ConcreteBlock:"Concrete Block",HardboardSiding:"Hardboard Siding",InsulatedConcreteForms:"Insulated Concrete Forms",LightGaugeSteelFraming:"Light Gauge Steel Framing",LogsSolid:"Logs (Solid)",MasoniteSiding:"Masonite Siding",PreEngineeredMetal:"Pre-Engineered Metal",SolidBrickConstruction:"Solid Brick Construction",SolidConcrete:"Solid Concrete",StandardPoleFramed:"Standard Pole Framed",Stone:"Stone",StructuralInsulatedPanels:"Structural Insulated Panels",TimberFraming:"Timber Framing"},sF={ASPHALT_SHINGLES:"Asphalt Shingles",ARCHITECTURAL_SHINGLES:"Architectural Shingles",METAL:"Metal",TILE_CONCRETE:"Tile (Concrete)",ASBESTOS:"Asbestos",BUILT_UP:"Built-Up",COMPOSITION:"Composition",CONCRETE:"Concrete",COPPER:"Copper",CORRUGATED_STEEL:"Corrugated Steel",FIBERGLASS:"Fiberglass",FOAM:"Foam",GRAVEL:"Gravel",MEMBRANE:"Membrane",MINERAL_FIBER_SHAKE:"Mineral Fiber Shake",PLASTIC:"Plastic",ROCK:"Rock",ROLLED_PAPER:"Rolled Paper",RUBBER:"Rubber",SLATE:"Slate",TAR:"Tar",TAR_GRAVEL:"Tar and Gravel",TILE_CLAY:"Tile (Clay)",TILE_MISSION:"Tile (Mission)",TILE_SPANISH:"Tile (Spanish)",TIN:"Tin",WOOD_FIBERGLASS_SHINGLES:"Wood/Fiberglass Shingles",WOOD_SHAKE:"Wood Shake",WOOD_SHINGLES:"Wood Shingles",OTHER:"Other"},uF={B_Gable:"Gable",C_Hip:"Hip",A_Flat:"Flat",D_Other:"Other"},cF={NotUpdated:"Not Updated",PartialUpdate:"Partial Update",CompleteUpdate:"Complete Update"},dF={Electric:"Electric",Gas:"Gas",GasForcedAir:"Gas - Forced Air",GasHotWater:"Gas - Hot Water",Oil:"Oil",OilForcedAir:"Oil - Forced Air",OilHotWater:"Oil - Hot Water",SolidFuel:"Solid Fuel",HeatPump:"Heat Pump",Other:"Other"},fF={AboveGround:"Above Ground",BelowGround:"Below Ground"},mF={Basement:"Below Grade Basement",SplitLevelBasement:"Split Level Basement",WalkoutBasement:"Walkout Basement"},pF={EntirelyCopper:"Entirely Copper",EntirelyGalvanized:"Entirely Galvanized",EntirelyPEX:"Entirely PEX",EntirelyPVC:"Entirely PVC",Polybutylene:"Polybutylene"},hF={TwentyFive:"$25,000",Fifty:"$50,000",OneHundred:"$100,000",TwoHundred:"$200,000",ThreeHundred:"$300,000",FourHundred:"$400,000",FiveHundred:"$500,000"},yF={cov1000:"$1,000",cov2000:"$2,000",cov3000:"$3,000",cov4000:"$4,000",cov5000:"$5,000"},gF={TwoHundredFifty:"$250",FiveHundred:"$500",SevenHundredFifty:"$750",OneThousand:"$1,000",OneThousandFiveHundred:"$1,500",TwoThousand:"$2,000",TwoThousandFiveHundred:"$2,500",ThreeThousands:"$3,000",FourThousands:"$4,000",FiveThousands:"$5,000",OnePercent:"1%",TwoPercent:"2%",ThreePercent:"3%",FourPercent:"4%",FivePercent:"5%"},bF={None:"None",OnePercent:"1%",TwoPercent:"2%",FivePercent:"5%",TenPercent:"10%"},vF={_0_500ft:"0-500 Feet",_501_1000ft:"501-1000 Feet",_1001ftAndGreater:"1001 Feet And Greater"},_F={Lessthan5miles:"Less Than 5 Miles",Over5miles:"Over 5 Miles",NotAvailable:"Not Available"},o3={"Agriclt/Forestry/Fish":"Agriculture/Forestry/Fishing","Art/Design/Media":"Art/Design/Media","Banking/Finance/RE":"Banking/Finance/Real Estate","Business/Sales/Offi":"Business/Sales/Office","Construct/EnrgyTrds":"Construction/Energy Trades",Disabled:"Disabled","Education/Library":"Education/Library","Engr/Archt/Sci/Math":"Engineer/Architect/Science/Math","Government/Military":"Government/Military","Homemaker/Houseprsn":"Homemaker/House Person","Info Tech":"Information Technology",Insurance:"Insurance","Lgl/Law Enfcmt/Sec":"Legal/Law Enforcement/Security","Maint/Rpr/Hsekeep":"Maintenance/Repair/Housekeeping","Mfg/Production":"Manufacturing/Production","Med/Soc Svcs/Relig":"Medical/Social Services/Religion",Other:"Other","Person.Care/Service":"Personal Care/Service","Rest/Hotel Services":"Restaurant/Hotel Services",Retired:"Retired","Sports/Recreation":"Sports/Recreation",Student:"Student","Trvl/Trnsprt/Warehs":"Travel/Transportation/Warehousing",Unemployed:"Unemployed"},l3={Single:"Single",Married:"Married",Seperated:"Separated",Divorced:"Divorced",Widowed:"Widowed",DomesticPartner:"Domestic Partner"},s3={Female:"Female",Male:"Male"},_5={"Agriclt/Forestry/Fish":"Agriculture/Forestry/Fishing","Art/Design/Media":"Art/Design/Media","Banking/Finance/RE":"Banking/Finance/Real Estate","Business/Sales/Offi":"Business/Sales/Office","Construct/EnrgyTrds":"Construction/Energy Trades",Disabled:"Disabled","Education/Library":"Education/Library","Engr/Archt/Sci/Math":"Engineer/Architect/Science/Math","Government/Military":"Government/Military","Homemaker/Houseprsn":"Homemaker/House person","Info Tech":"Information Technology",Insurance:"Insurance","Lgl/Law Enfcmt/Sec":"Legal/Law Enforcement/Security","Maint/Rpr/Hsekeep":"Maintenance/Repair/Housekeeping","Mfg/Production":"Manufacturing/Production","Med/Soc Svcs/Relig":"Medical/Social Services/Religion",Other:"Other","Person.Care/Service":"Personal Care/Service","Rest/Hotel Services":"Restaurant/Hotel Services",Retired:"Retired","Sports/Recreation":"Sports/Recreation",Student:"Student","Trvl/Trnsprt/Warehs":"Travel/Transportation/Warehousing",Unemployed:"Unemployed"},EF={CONTAMINATION:"Contamination",CREDITCARD:"Credit Card",DAMAGETOPROPERTYOFOTHERS:"Damage To Property Of Others",DOGBITELIABILITY:"Dog Bite",EARTHMOVEMENT:"Earth Movement",EARTHQUAKE:"Earthquake",EXTENDEDCOVERAGEPERILS:"Extended Coverage Perils",FIRE:"Fire",FLOOD:"Flood",FREEZINGWATERINCLUDINGBURSTPIPES:"Freezing Water",HAIL:"Hail",HURRICANE:"Hurricane",LIABILITYALLOTHER:"Liability",LIGHTNING:"Lightning",MEDICALPAYMENTS:"Medical Payments",MYSTERIOUSDISAPPEARANCE:"Mysterious Disappearance",MYSTERIOUSDISAPPEARANCESCHEDULEDPROPERTY:"Mysterious Disappearance - Scheduled Property",PHYSICALDAMAGEALLOTHER:"Physical Damage",SINKHOLE:"Sinkhole",SLIPFALLLIABILITY:"Slip/Fall",SMOKE:"Smoke",THEFTSCHEDULEDPROPERTY:"Theft - Scheduled Property",THEFTBURGLARY:"Theft - Burglary",TORNADO:"Tornado",VANDALISMMALICIOUSMISCHIEF:"Vandalism",WATERDAMAGE:"Water Damage",WIND:"Wind",WORKERSCOMPENSATION:"Workers Compensation",ALLOTHER:"All Other"},SF={Verbal_Threshold:"Limited right to sue",Zero_Threshold:"Unlimited right to sue"},DF={Primary:"Primary",Secondary:"Secondary"},$F={cov1000:"$1,000",cov10000:"$10,000"},xF={cov100_10400_LIMITED:"100 - 10,400/ LIMITED",cov125_13000_LIMITED:"125 - 13,000/ LIMITED",cov175_18200_LIMITED:"175 - 18,200/ LIMITED",cov250_26000_LIMITED:"250 - 26,000/ LIMITED",cov400_41600_LIMITED:"400 - 41,600/ LIMITED",cov500_52000_LIMITED:"500 - 52,000/ LIMITED",cov600_62400_LIMITED:"600 - 62,400/ LIMITED",cov700_72800_LIMITED:"700 - 72,800/ LIMITED",cov100_UNLIMITED:"100/UNLIMITED",cov125_UNLIMITED:"125/UNLIMITED",cov175_UNLIMITED:"175/UNLIMITED",cov250_UNLIMITED:"250/UNLIMITED",cov400_UNLIMITED:"400/UNLIMITED",cov500_UNLIMITED:"500/UNLIMITED",cov600_UNLIMITED:"600/UNLIMITED",cov700_UNLIMITED:"700/UNLIMITED"},CF={cov250:"$250",cov500:"$500",cov1000:"$1,000",cov2000:"$2,000",cov2500:"$2,500"},AF={"Agriclt/Forestry/Fish":["Agr Inspect/Grader","Arborist","Clerk","Equip. Operator","Farm/Ranch Owner","Farm/Ranch Worker","Fisherman","Florist","Laborer/Worker","Landscape/NursryWkr","Landscaper","Logger","Millworker","Other","Ranger","Supervisor","Timber Grader/Scale"],"Art/Design/Media":["Actor","Admin Assist","Announcer/Broadcstr","Artist/Animator","Author/Writer","Choreography/Dancer","Clerk","Composer/Director","Curator","Designer","Editor","Journalist/Reporter","Musician/Singer","Other","Printer","Producer","Production Crew","Projectionist","Receptionist/Sec","Ticket Sales/Usher"],"Banking/Finance/RE":["Accountant/Auditor","Admin Assist","Analyst/Broker","Bookkeeper","Branch Manager","Clerk","Collections","Consultant","Controller","CSR/Teller","Director/Administr","Executive","Financial Advisor","Investment Banker","Investor","Loan/EscrowProcess","Mgr-Credit/Loan","Mgr-Portfolio/Prod.","Mgr-Property","Other","Realtor","Receptionist/Sec","SalesAgt/Represent.","Trader,Finan Instru","Underwriter"],"Business/Sales/Offi":["Account Executive","Admin Assist","Buyer","Clerk-Office","Consultant","CSR","Director/Administr","Executive","H.R. Representative","Marketing Researchr","Messenger/Courier","Mgr - District","Mgr - Finance","Mgr-Dept/Store","Mgr-General Opers","Mgr-H.R./PublicRel","Mgr-Mkt/Sales","Mgr/Supervisr-Offic","Other","Receptionist/Sec","Sales-Counter/Rentl","Sales-Home Based","Sales-Mfg Rep","Sales-Retail/Whlsle","Sales-Route/Vendor"],"Construct/EnrgyTrds":["Boiler Oper/Maker","Bricklayer/Mason","Carpenter","Carpet Installer","Concrete Worker","Constrct Proj Mgr","Contractor","Crane Operator","Electrician/Linesmn","ElevatorTech/Instl","Equip. Operator","FloorLayer/Finisher","Foreman/Supervisor","Handyman","Heat/Air Technician","Inspector","Laborer/Worker","Metalworker","Miner","Oil/GasDril/RigOpr","Other","Painter","Plstr/Drywall/Stuc","Plumber","Roofer"],Disabled:["Disabled"],"Education/Library":["Admin Assist","Audio-Visual Tech.","Child/DayCare Wrker","Clerk","Counselor","Grad. Teaching/Asst","Instructor-Vocation","Librarian/Curator","Other","Professor, College","Receptionist/Sec","Superintendent","Teacher, College","Teacher, K-12","Teaching Asst/Aide","Tutor"],"Engr/Archt/Sci/Math":["Actuary","Admin Assist","Analyst","Architect","Clerk","Clinical Data Coord.","Drafter","Engineer","Manager-Project","Manager-R&D","Mathematician","Other","Receptionist/Sec","Research Prog. Dir.","Researcher","Scientist","Sociologist","Surveyor/Mapmaker","Technician"],"Government/Military":["Accountant/Auditor","Admin Assist","Analyst","Attorney","Chief Executive","Clerk","Commissioner","Council member","Director/Administr","Enlst Mil Prsnl E1-4","Legislator","Mayor/City Manager","Meter Reader","NCO (E5-9)","Officer-Commissiond","Officer-Warrant","Other","Park Ranger","Planner","Postmaster","Receptionist/Sec","Regulator","US Postal Worker"],"Homemaker/Houseprsn":["Homemaker/Houseprsn"],"Info Tech":["Admin Assist","Analyst","Clerk","Director/Administr","Engineer-Hardware","Engineer-Software","Engineer-Systems","Executive","Manager-Systems","Network Admin","Other","Programmer","Project Coordinator","Receptionist/Sec","Support Technician","Systems Security","Technical Writer","Web Developer"],Insurance:["Accountant/Auditor","Actuarial Clerk","Actuary","Admin Assist","Agent/Broker","Analyst","Attorney","Claims Adjuster","Clerk","Commissioner","CSR","Director/Administr","Executive","Other","Product Manager","Receptionist/Sec","Sales Rep","Underwriter"],"Lgl/Law Enfcmt/Sec":["Airport Sec Ofcr","Animal Control Ofcr","Attorney","Bailiff","Corrections Officer","Court Clrk/Reporter","Deputy Sheriff","Dispatcher","Examiner","Fed Agt/Marshall","Fire Chief","Fire Fighter/Supv.","Gaming Ofcr/Invest","Highway Patrol Ofcr","Judge/Hearing Ofcr","Legal Asst./Sec","Other","Paralegal/Law Clerk","Police Chief","Police Det/Investgr","Police Offcr/Supvr","Process Server","Prvt Invest/Detec.","Security Guard","Sheriff"],"Maint/Rpr/Hsekeep":["Bldg Maint Engineer","Custodian/Janitor","Electrician","Field Service Tech.","Handyman","Heat/AirCond Repair","Housekeeper/Maid","Lndscpe/Grnds Maint","Maint Mechanic","Mechanic","Other"],"Mfg/Production":["Admin Assist","Clerk","Factory Worker","Foreman/Supervisor","Furniture Finisher","Inspector","Jeweler","Machine Operator","Other","Packer","Plant Manager","Printer/Bookbinder","Quality Control","Receptionist/Sec","Refining Operator","Shoemaker","Tailor/Custom Sewer","Textile Worker","Upholsterer"],"Med/Soc Svcs/Relig":["Admin Assist","Assist-Med/Dent/Vet","Clergy","Clerk","Client Care Worker","Dental Hygenist","Dentist","Doctor","Hospice Volunteer","Mortician","Nurse - C.N.A.","Nurse - LPN","Nurse - RN","Nurse Practitioner","Optometrist","Other","Paramedic/EM Tech","Pharmacist","Receptionist/Sec","Social Worker","Support Services","Technician","Therapist","Veterinarian"],Other:["Other"],"Person.Care/Service":["Caregiver","Dry Cleaner/Laundry","Hair Stylist/Barber","Housekeeper","Manicurist","Masseuse","Nanny","Other","Pet Services","Receptionist/Sec"],"Rest/Hotel Services":["Baker","Bartender","Bellhop","Bus Person","Caterer","Chef","Concessionaire","Concierge","Cook-Rest/Cafeteria","Cook/Wrkr-Fast Food","Delivery Person","Desk Clerk","Dishwasher","Food Prod/Packing","Host/Maitre d","Housekeeper/Maid","Manager","Other","Valet","Waiter/Waitress","Wine Steward"],Retired:["Retired"],"Sports/Recreation":["Activity/Recre.Asst","Admin Assist","Agent","Athlete","CampCounselor/Lead","Clerk","Coach","Concessionaire","Director, Program","Event Mgr/Promoter","Life Guard","Mgr - Fitness Club","Other","Park Ranger","Receptionist/Sec","Sales-Tkt/Mmbrshp","SportsBrdcstr/Journ","Trainer/Instructor","Umpire/Referee"],Student:["Graduate Student","High school","Other","Undergraduate"],"Trvl/Trnsprt/Warehs":["Admin Assist","Air Traffic Control","Airport Ops Crew","Bellhop/Porter","Clerk","Crane Loader/Oper","Dispatcher","Driver-Bus/Strcar","Driver-Taxi/Limo","Driver-Truck/Delvry","Flight Attendant","Forklift Operator","Laborer","Longshoreman","Mate/Sailor","Mgr Warehse/Dist","Other","Parking Lot Attend","Pilot/Capt/Eng","Railroad Worker","Receptionist/Sec","Shipping/RecClk","Subway/LgtRail Oper","Ticket Agent","Transportation Spec"],Unemployed:["Unemployed"]},wF={"Agr Inspect/Grader":"Agriculture Inspector/Grader",Arborist:"Arborist",Clerk:"Clerk","Equip. Operator":"Equipment Operator","Farm/Ranch Owner":"Farm/Ranch Owner","Farm/Ranch Worker":"Farm/Ranch Worker",Fisherman:"Fisherman",Florist:"Florist","Laborer/Worker":"Laborer/Worker","Landscape/NursryWkr":"Landscaper/Nursery Worker",Landscaper:"Landscaper",Logger:"Logger",Millworker:"Mill worker",Other:"Other",Ranger:"Ranger",Supervisor:"Supervisor","Timber Grader/Scale":"Timber Grader/Scale",Actor:"Actor","Admin Assist":"Administrative Assistant","Announcer/Broadcstr":"Announcer/Broadcaster","Artist/Animator":"Artist/Animator","Author/Writer":"Author/Writer","Choreography/Dancer":"Choreography/Dancer","Composer/Director":"Composer/Director",Curator:"Curator",Designer:"Designer",Editor:"Editor","Journalist/Reporter":"Journalist/Reporter","Musician/Singer":"Musician/Singer",Printer:"Printer",Producer:"Producer","Production Crew":"Production Crew",Projectionist:"Projectionist","Receptionist/Sec":"Receptionist/Secretary","Ticket Sales/Usher":"Ticket Sales/Usher","Accountant/Auditor":"Accountant/Auditor","Analyst/Broker":"Analyst/Broker",Bookkeeper:"Bookkeeper","Branch Manager":"Branch Manager",Collections:"Collections",Consultant:"Consultant",Controller:"Controller","CSR/Teller":"CSR/Teller","Director/Administr":"Director/Administrator",Executive:"Executive","Financial Advisor":"Financial Advisor","Investment Banker":"Investment Banker",Investor:"Investor","Loan/EscrowProcess":"Loan/Escrow Processor","Mgr-Credit/Loan":"Manager-Credit/Loan","Mgr-Portfolio/Prod.":"Manager-Portfolio/Production","Mgr-Property":"Manager-Property",Realtor:"Realtor","SalesAgt/Represent.":"Sales Agent/Representative","Trader,Finan Instru":"Trader, Financial Instruments",Underwriter:"Underwriter","Account Executive":"Account Executive",Buyer:"Buyer","Clerk-Office":"Clerk-Office",CSR:"Customer Service Representative","H.R. Representative":"H.R. Representative","Marketing Researchr":"Marketing Researcher","Messenger/Courier":"Messenger/Courier","Mgr - District":"Manager - District","Mgr - Finance":"Manager - Finance","Mgr-Dept/Store":"Manager - Department/Store","Mgr-General Opers":"Manager - General Operations","Mgr-H.R./PublicRel":"Manager - H.R./Public Relations","Mgr-Mkt/Sales":"Manager - Marketing/Sales","Mgr/Supervisr-Offic":"Manager/Supervisor - Office","Sales-Counter/Rentl":"Sales-Counter/Rental","Sales-Home Based":"Sales-Home Based","Sales-Mfg Rep":"Sales-Manufacture Rep","Sales-Retail/Whlsle":"Sales-Retail/Wholesale","Sales-Route/Vendor":"Sales-Route/Vendor","Boiler Oper/Maker":"Boiler Operator/Maker","Bricklayer/Mason":"Bricklayer/Mason",Carpenter:"Carpenter","Carpet Installer":"Carpet Installer","Concrete Worker":"Concrete Worker","Constrct Proj Mgr":"Construction - Project Manager",Contractor:"Contractor","Crane Operator":"Crane Operator","Electrician/Linesmn":"Electrician/Linesman","ElevatorTech/Instl":"Elevator Technician/Installer","FloorLayer/Finisher":"Floor Layer/Finisher","Foreman/Supervisor":"Foreman/Supervisor",Handyman:"Handyman","Heat/Air Technician":"Heat/Air Technician",Inspector:"Inspector",Metalworker:"Metalworker",Miner:"Miner","Oil/GasDril/RigOpr":"Oil/Gas Driller/Rig Operator",Painter:"Painter","Plstr/Drywall/Stuc":"Plaster/Drywall/Stucco",Plumber:"Plumber",Roofer:"Roofer",Disabled:"Disabled","Audio-Visual Tech.":"Audio-Visual Tech.","Child/DayCare Wrker":"Child/Daycare Worker",Counselor:"Counselor","Grad. Teaching/Asst":"Graduate Teaching Assistant","Instructor-Vocation":"Instructor-Vocation","Librarian/Curator":"Librarian/Curator","Professor, College":"Professor, College",Superintendent:"Superintendent","Teacher, College":"Teacher, College","Teacher, K-12":"Teacher, K-12","Teaching Asst/Aide":"Teaching Assistant/Aide",Tutor:"Tutor",Actuary:"Actuary",Analyst:"Analyst",Architect:"Architect","Clinical Data Coord.":"Clinical Data Coordinator",Drafter:"Drafter",Engineer:"Engineer","Manager-Project":"Manager-Project","Manager-R&D":"Manager-R&D",Mathematician:"Mathematician","Research Prog. Dir.":"Research Program Director",Researcher:"Researcher",Scientist:"Scientist",Sociologist:"Sociologist","Surveyor/Mapmaker":"Surveyor/Mapmaker",Technician:"Technician",Attorney:"Attorney","Chief Executive":"Chief Executive",Commissioner:"Commissioner","Council member":"Council member","Enlst Mil Prsnl E1-4":"Enlisted Military Personnel (E1-4)",Legislator:"Legislator","Mayor/City Manager":"Mayor/City Manager","Meter Reader":"Meter Reader","NCO (E5-9)":"NCO (E5-9)","Officer-Commissiond":"Officer-Commissioned","Officer-Warrant":"Officer-Warrant","Park Ranger":"Park Ranger",Planner:"Planner",Postmaster:"Postmaster",Regulator:"Regulator","US Postal Worker":"US Postal Worker","Homemaker/Houseprsn":"Homemaker/House person","Engineer-Hardware":"Engineer-Hardware","Engineer-Software":"Engineer-Software","Engineer-Systems":"Engineer-Systems","Manager-Systems":"Manager-Systems","Network Admin":"Network Administrator",Programmer:"Programmer","Project Coordinator":"Project Coordinator","Support Technician":"Support Technician","Systems Security":"Systems Security","Technical Writer":"Technical Writer","Web Developer":"Web Developer","Actuarial Clerk":"Actuarial Clerk","Agent/Broker":"Agent/Broker","Claims Adjuster":"Claims Adjuster","Product Manager":"Product Manager","Sales Rep":"Sales Representative","Airport Sec Ofcr":"Airport Security Officer","Animal Control Ofcr":"Animal Control Officer",Bailiff:"Bailiff","Corrections Officer":"Corrections Officer","Court Clrk/Reporter":"Court Clerk/Reporter","Deputy Sheriff":"Deputy Sheriff",Dispatcher:"Dispatcher",Examiner:"Examiner","Fed Agt/Marshall":"Federal Agent/Marshall","Fire Chief":"Fire Chief","Fire Fighter/Supv.":"Fire Fighter/Supervisor","Gaming Ofcr/Invest":"Gaming Officer/Investigator","Highway Patrol Ofcr":"Highway Patrol Officer","Judge/Hearing Ofcr":"Judge/Hearing Officer","Legal Asst./Sec":"Legal Assistant/Secretary","Paralegal/Law Clerk":"Paralegal/Law Clerk","Police Chief":"Police Chief","Police Det/Investgr":"Police Detective/Investigator","Police Offcr/Supvr":"Police Officer/Supervisor","Process Server":"Process Server","Prvt Invest/Detec.":"Private Investigator/Detective","Security Guard":"Security Guard",Sheriff:"Sheriff","Bldg Maint Engineer":"Building Maintenance Engineer","Custodian/Janitor":"Custodian/Janitor",Electrician:"Electrician","Field Service Tech.":"Field Service Technician","Heat/AirCond Repair":"Heat/Air Conditioner Repairman","Housekeeper/Maid":"Housekeeper/Maid","Lndscpe/Grnds Maint":"Landscape/Grounds Maintenance","Maint Mechanic":"Maintenance Mechanic",Mechanic:"Mechanic","Factory Worker":"Factory Worker","Furniture Finisher":"Furniture Finisher",Jeweler:"Jeweler","Machine Operator":"Machine Operator",Packer:"Packer","Plant Manager":"Plant Manager","Printer/Bookbinder":"Printer/Bookbinder","Quality Control":"Quality Control","Refining Operator":"Refining Operator",Shoemaker:"Shoemaker","Tailor/Custom Sewer":"Tailor/Custom Sewer","Textile Worker":"Textile Worker",Upholsterer:"Upholsterer","Assist-Med/Dent/Vet":"Assistant - Medic/Dent/Vet",Clergy:"Clergy","Client Care Worker":"Client Care Worker","Dental Hygenist":"Dental Hygienist",Dentist:"Dentist",Doctor:"Doctor","Hospice Volunteer":"Hospice Volunteer",Mortician:"Mortician","Nurse - C.N.A.":"Nurse - C.N.A.","Nurse - LPN":"Nurse - LPN","Nurse - RN":"Nurse - RN","Nurse Practitioner":"Nurse Practitioner",Optometrist:"Optometrist","Paramedic/EM Tech":"Paramedic/E.M. Technician",Pharmacist:"Pharmacist","Social Worker":"Social Worker","Support Services":"Support Services",Therapist:"Therapist",Veterinarian:"Veterinarian",Caregiver:"Caregiver","Dry Cleaner/Laundry":"Dry Cleaner/Laundry","Hair Stylist/Barber":"Hair Stylist/Barber",Housekeeper:"Housekeeper",Manicurist:"Manicurist",Masseuse:"Masseuse",Nanny:"Nanny","Pet Services":"Pet Services",Baker:"Baker",Bartender:"Bartender",Bellhop:"Bellhop","Bus Person":"Bus Person",Caterer:"Caterer",Chef:"Chef",Concessionaire:"Concessionaire",Concierge:"Concierge","Cook-Rest/Cafeteria":"Cook - Restaurant/Cafeteria","Cook/Wrkr-Fast Food":"Cook/Worker-Fast Food","Delivery Person":"Delivery Person","Desk Clerk":"Desk Clerk",Dishwasher:"Dishwasher","Food Prod/Packing":"Food Production/Packing","Host/Maitre d":"Host/Maitre d",Manager:"Manager",Valet:"Valet","Waiter/Waitress":"Waiter/Waitress","Wine Steward":"Wine Steward",Retired:"Retired","Activity/Recre.Asst":"Activity/Recreational Assistant",Agent:"Agent",Athlete:"Athlete","CampCounselor/Lead":"Camp Counselor/Lead",Coach:"Coach","Director, Program":"Director, Program","Event Mgr/Promoter":"Event Manager/Promoter","Life Guard":"Life Guard","Mgr - Fitness Club":"Manager - Fitness Club","Sales-Tkt/Mmbrshp":"Sales-Ticket/Membership","SportsBrdcstr/Journ":"Sports Broadcaster/Journalist","Trainer/Instructor":"Trainer/Instructor","Umpire/Referee":"Umpire/Referee","Graduate Student":"Graduate Student","High school":"High school",Undergraduate:"Undergraduate","Air Traffic Control":"Air Traffic Control","Airport Ops Crew":"Airport Operations Crew","Bellhop/Porter":"Bellhop/Porter","Crane Loader/Oper":"Crane Loader/Operator","Driver-Bus/Strcar":"Driver - Bus/Streetcar","Driver-Taxi/Limo":"Driver-Taxi/Limo","Driver-Truck/Delvry":"Driver-Truck/Delivery","Flight Attendant":"Flight Attendant","Forklift Operator":"Forklift Operator",Laborer:"Laborer",Longshoreman:"Longshoreman","Mate/Sailor":"Mate/Sailor","Mgr Warehse/Dist":"Manager - Warehouse/District","Parking Lot Attend":"Parking Lot Attendant","Pilot/Capt/Eng":"Pilot/Captain/Engineer","Railroad Worker":"Railroad Worker","Shipping/RecClk":"Shipping/Receiving Clerk","Subway/LgtRail Oper":"Subway/Light Rail Operator","Ticket Agent":"Ticket Agent","Transportation Spec":"Transportation Specialist",Unemployed:"Unemployed"},u3=AF,E5=wF;function Sy(e,t){if(typeof e!="string")return e;const n=e.trim();if(!n)return e;if(t[n])return n;const i=n.toLowerCase();return Object.keys(t).find(s=>s.toLowerCase()===i||t[s]?.toLowerCase()===i)??e}function Dd(e){return Sy(e,_5)}function S5(e){return Sy(e,v5)}function D5(e){return Sy(e,E5)}function TF(e){return e.trim().toLowerCase()}function c3(e){if(typeof e!="string")return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;const n=Number(t[1]),i=Number(t[2]),o=Number(t[3]);if(!Number.isFinite(n)||!Number.isFinite(i)||!Number.isFinite(o)||i<1||i>12||o<1||o>31)return null;const s=new Date(Date.UTC(n,i-1,o));return s.getUTCFullYear()!==n||s.getUTCMonth()!==i-1||s.getUTCDate()!==o?null:s.getTime()}function Xo(e,t){if(!t.effectiveDateKey||!t.expirationDateKey)return!1;const n=c3(e[t.expirationDateKey]),i=c3(e[t.effectiveDateKey]);return n==null||i==null?!1:n<i}const NF=new Set(["HomePolicy","BundlePolicy"]);function Yc(e,t,n){return String(e.key??"")!=="lapse_in_coverage"||!n||!NF.has(n)?!0:t.home_prior_carrier_name!=="NoPriorInsurance"}function Dy(e){let t=null,n=null,i=null;const o=new Set,s=new Set,c=m=>{const h=String(m.key??""),y=TF(String(m.question??""));!t&&(h==="auto_prior_carrier_name"||h==="home_prior_carrier_name"||y.includes("current auto insurance company"))&&(t=h),!n&&(h==="effective_date"||y.includes("when do you need your insurance to begin"))&&(n=h),!i&&(h==="auto_prior_expiration_date"||h==="home_prior_expiration_date"||y.includes("when does the current policy expire"))&&(i=h),(h==="auto_reason_for_no_insurance"||y.includes("reason you are not currently insured")||y.includes("reason for lapse in coverage"))&&o.add(h),(h==="auto_prior_years"||h==="auto_prior_months"||h==="auto_continuous_coverage_years"||h==="auto_prior_expiration_date"||h==="auto_current_annual_premium_cents"||h==="auto_prior_liability_limit")&&s.add(h)};e.forEach(c);const d=m=>{m.forEach(h=>{(h.conditionals??[]).forEach(y=>{const g=y.conditionalQuestions??[];g.forEach(c),d(g)})})};return d(e),{currentCarrierKey:t,effectiveDateKey:n,expirationDateKey:i,noInsuranceReasonKeys:o,hideWhenNoPriorInsuranceKeys:s}}function xs(e,t){return t.currentCarrierKey==="home_prior_carrier_name"&&e.home_prior_carrier_name==="NoPriorInsurance"&&e.auto_prior_carrier_name!=="NoPriorInsurance"?!1:(t.currentCarrierKey?e[t.currentCarrierKey]:void 0)==="NoPriorInsurance"?!0:!t.effectiveDateKey||!t.expirationDateKey||t.expirationDateKey==="home_prior_expiration_date"&&Xo(e,t)?!1:Xo(e,t)}function qc(e,t,n){const i=String(e.key??"");if(n.noInsuranceReasonKeys.has(i)&&n.currentCarrierKey==="home_prior_carrier_name"&&t.home_prior_carrier_name==="NoPriorInsurance"&&t.auto_prior_carrier_name!=="NoPriorInsurance")return!1;const s=(n.currentCarrierKey?t[n.currentCarrierKey]:void 0)==="NoPriorInsurance";return s&&n.hideWhenNoPriorInsuranceKeys.has(i)?!1:!n.noInsuranceReasonKeys.has(i)||s?!0:xs(t,n)}function Kc(e,t){const n=String(e.key??"");return t.noInsuranceReasonKeys.has(n)}const d3=["ACURA","ALFA ROMEO","ASTON MARTIN","AUDI","BENTLEY","BMW","BUGATTI","BUICK","CADILLAC","CHEVROLET","CHRYSLER","CRUISE","DODGE","FERRARI","FIAT","FORD","FREIGHTLINER","GENESIS","GLOBAL ELECTRIC MOTORS","GMC","HONDA","HYUNDAI","INFINITI","JAGUAR","JEEP","KARMA AUTOMOTIVE","KIA","LAMBORGHINI","LAND ROVER","LEXUS","LINCOLN","LOTUS","MASERATI","MAZDA","MCLAREN AUTOMOTIVE","MERCEDES-BENZ","MINI","MITSUBISHI","NISSAN","POLESTAR","PORSCHE","RAM","ROLLS-ROYCE","SUBARU","TESLA","TOYOTA","VOLKSWAGEN","VOLVO"],$y="credify_quote_id",xy="credify_auth_token";function f3(e){try{localStorage.setItem($y,e)}catch(t){console.error("Failed to save quoteId to localStorage:",t)}}function rf(){try{return localStorage.getItem($y)}catch(e){return console.error("Failed to load quoteId from localStorage:",e),null}}function $5(){try{localStorage.removeItem($y)}catch(e){console.error("Failed to clear quoteId from localStorage:",e)}}function MF(e){try{localStorage.setItem(xy,e)}catch(t){console.error("Failed to save authToken to localStorage:",t)}}function RF(){try{return localStorage.getItem(xy)}catch(e){return console.error("Failed to load authToken from localStorage:",e),null}}function x5(){try{localStorage.removeItem(xy)}catch(e){console.error("Failed to clear authToken from localStorage:",e)}}function OF(){$5(),x5()}const kF="credify-insurance-widget",BF="1.0",C5=25,A5=64*1024,LF=`
121
+ …[truncated]`;let m3=!1,p3=null,h3="",w5=C5,y0=A5,Cs=[];function PF(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function IF(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function y3(e){if(!e)return[];const t=[];if(Array.isArray(e))for(const[n,i]of e)t.push({name:n,value:String(i)});else if(typeof e.forEach=="function")e.forEach((n,i)=>t.push({name:i,value:n}));else for(const[n,i]of Object.entries(e))t.push({name:n,value:String(i)});return t}function FF(e){try{const t=[];return new URL(e).searchParams.forEach((n,i)=>t.push({name:i,value:n})),t}catch{return[]}}function jF(e,t){const n=t?.body;return typeof n!="string"||n.length===0?void 0:{mimeType:e.find(o=>o.name.toLowerCase()==="content-type")?.value??"application/json",text:n}}function zF(e){const t=e.length;return t<=y0?{text:e,size:t}:{text:e.slice(0,y0)+LF,size:t}}function UF(e){Cs.push(e),Cs.length>w5&&Cs.shift()}function HF(e){if(m3)return!0;if(typeof window>"u"||typeof window.fetch!="function")return!1;h3=e.baseUrl,w5=e.maxEntries??C5,y0=e.maxBodyBytes??A5,p3=window.fetch.bind(window);const t=p3;return window.fetch=async(n,i)=>{let o;try{o=PF(n)}catch{return t(n,i)}if(!o.startsWith(h3))return t(n,i);const s=y3(i?.headers??(typeof n!="string"&&!(n instanceof URL)?n.headers:void 0)),c={startedDateTime:new Date().toISOString(),time:-1,request:{method:IF(n,i),url:o,httpVersion:"HTTP/1.1",headers:s,queryString:FF(o),cookies:[],headersSize:-1,bodySize:typeof i?.body=="string"?i.body.length:-1,postData:jF(s,i)},response:VF(),cache:{},timings:{send:0,wait:-1,receive:0}};UF(c);const d=typeof performance<"u"?performance.now():0;let m;try{m=await t(n,i)}catch(y){const g=(typeof performance<"u"?performance.now():0)-d;throw c.time=Math.round(g),c.timings.wait=Math.round(g),c.response._error=y instanceof Error?y.message:String(y),y}const h=(typeof performance<"u"?performance.now():0)-d;c.time=Math.round(h),c.timings.wait=Math.round(h),c.response.status=m.status,c.response.statusText=m.statusText,c.response.headers=y3(m.headers),c.response.content.mimeType=typeof m.headers?.get=="function"&&m.headers.get("content-type")||"";try{m.clone().text().then(g=>{const{text:E,size:S}=zF(g);c.response.content.text=E,c.response.content.size=S,c.response.bodySize=S}).catch(()=>{})}catch{}return m},m3=!0,!0}function VF(){return{status:0,statusText:"",httpVersion:"HTTP/1.1",headers:[],cookies:[],content:{size:0,mimeType:""},redirectURL:"",headersSize:-1,bodySize:-1}}function GF(){return{log:{version:"1.2",creator:{name:kF,version:BF},entries:Cs.map(e=>({...e}))}}}function ZF(){return Cs.length}const YF=[/ssn/i,/social.?security/i,/(driver.?licen[cs]e|^dln$|^dl$)/i,/(date.?of.?birth|^dob$)/i,/^vin$/i,/(sms.?code|^otp$|^code$|verification.?code)/i,/phone/i,/^email$/i,/(first.?name|last.?name|full.?name)/i,/(^address$|street|^zip$|postal)/i,/(jwt|^token$|authorization|^auth$|api.?key|secret|password|credential)/i,/cookie/i],qF=[/\b\d{3}-?\d{2}-?\d{4}\b/g,/\b[A-HJ-NPR-Z0-9]{17}\b/g,/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g,/\bsk_[A-Za-z0-9]{16,}\b/g,/\bBearer\s+[A-Za-z0-9._-]+/gi],qa="[REDACTED]",KF=8;function af(e){for(const t of YF)if(t.test(e))return!0;return!1}function Ka(e){let t=e;for(const n of qF)t=t.replace(n,qa);return t}function Ua(e,t=0,n=new WeakSet){if(t>KF)return qa;if(e==null)return e;if(typeof e=="string")return Ka(e);if(typeof e!="object")return e;if(n.has(e))return qa;if(n.add(e),Array.isArray(e))return e.map(s=>Ua(s,t+1,n));const i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)return e;const o={};for(const[s,c]of Object.entries(e)){if(af(s)){o[s]=qa;continue}o[s]=Ua(c,t+1,n)}return o}function g3(e){if(e.request&&(e.request.data!==void 0&&(e.request.data=Ua(e.request.data)),e.request.cookies!==void 0&&(e.request.cookies=qa),e.request.headers)){const t=e.request.headers;for(const n of Object.keys(t))af(n)&&(t[n]=qa)}if(e.extra&&(e.extra=Ua(e.extra)),e.contexts&&(e.contexts=Ua(e.contexts)),e.tags&&(e.tags=Ua(e.tags)),e.user){const{id:t,email:n,username:i}=e.user;e.user={...typeof t=="string"?{id:t}:{},...typeof n=="string"?{email:n}:{},...typeof i=="string"?{username:i}:{}}}if(Array.isArray(e.breadcrumbs))for(const t of e.breadcrumbs)t.data!==void 0&&(t.data=Ua(t.data)),typeof t.message=="string"&&(t.message=Ka(t.message));return typeof e.message=="string"&&(e.message=Ka(e.message)),e}function b3(e){for(const t of e)t.value=af(t.name)?qa:Ka(t.value)}function v3(e){try{return JSON.stringify(Ua(JSON.parse(e)))}catch{return Ka(e)}}function WF(e){const t=JSON.parse(JSON.stringify(e));for(const n of t.log.entries){b3(n.request.headers),b3(n.response.headers);for(const i of n.request.queryString)i.value=af(i.name)?qa:Ka(i.value);n.request.postData?.text&&(n.request.postData.text=v3(n.request.postData.text)),n.response.content.text&&(n.response.content.text=v3(n.response.content.text)),n.request.url=Ka(n.request.url),n.response._error&&(n.response._error=Ka(n.response._error))}return t}function Uo(e,t={}){try{M0(n=>{n.setTag("failure_type","quote"),t.stage&&n.setTag("stage",t.stage),t.quoteId&&n.setTag("quote_id",t.quoteId),t.phase&&n.setTag("phase",t.phase),t.endpoint&&n.setTag("endpoint",t.endpoint),typeof t.statusCode=="number"&&n.setTag("status_code",String(t.statusCode));try{ZF()>0&&n.addAttachment({filename:"quote-failure.har",data:JSON.stringify(WF(GF())),contentType:"application/json"})}catch{}const i=e instanceof Error?e:new Error(t.message??"Quote failed");Ld(i)})}catch{}}const Rt="https://api.getcredify.com";let sl=null;const QF=6e4,_3=new Map;function JF(e){try{return new URL(e).pathname}catch{return e}}function E3(e,t,n){if(!(n>=500&&n<600)&&!(n===0))return;e.__sentryReported=!0;const s=JF(t),c=`${s}:${n}`,d=Date.now(),m=_3.get(c);m&&d-m<QF||(_3.set(c,d),Uo(e,{phase:"api_request",endpoint:s,statusCode:n}))}function Wc(e){sl=e,MF(e)}function Jr(){return sl}function Qc(){const e=RF();e&&(sl=e)}function T5(){sl=null,x5()}async function qt(e,t){const n={"Content-Type":"application/json"};sl&&(n.Authorization=`Bearer ${sl}`);let i;try{i=await fetch(e,{method:"POST",headers:n,body:JSON.stringify(t)})}catch(o){const s=o instanceof Error?o:new Error(String(o));throw E3(s,e,0),o}if(!i.ok){let o=`Request failed with status ${i.status}`;try{o=(await i.json()).error||o}catch{o=i.statusText||o}const s=new Error(o);throw s.statusCode=i.status,E3(s,e,i.status),s}return i}async function Qs(e){try{return await e.json()}catch{return{}}}async function XF(e,t){const n=t?{stage:e,quoteId:t}:{stage:e};return await(await qt(`${Rt}/get-questions-by-stage`,n)).json()}async function Bc(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-stages-for-quote`,t)).json()}async function ej(e,t=!1){const n=t?{postal_code:e,is_test:!0}:{postal_code:e},o=await(await qt(`${Rt}/create-quote`,n)).json();if(!o||typeof o!="object"||!o.quoteId)throw new Error(`Invalid createQuote response: ${JSON.stringify(o)}`);return o}async function N5(e,t){return await(await qt(`${Rt}/verify-quote`,{action:"send",quoteId:e,phone:t})).json()}async function La(e,t,n){const i={payload:e,getRates:t};n&&typeof n=="string"&&n.trim()!==""&&(i.quoteId=n);const o=await qt(`${Rt}/update-quote`,i),s=await Qs(o);return!s||typeof s!="object"||!("status"in s)||s.status==null?{status:"success"}:s}async function g0(e,t){return await(await qt(`${Rt}/verify-quote`,{quoteId:e,smsCode:t})).json()}async function tj(e){return await(await qt(`${Rt}/verify-quote`,{action:"resume",resumeToken:e})).json()}async function M5(e,t){const n={state:e};return t&&typeof t=="string"&&t.trim()!==""&&(n.quoteId=t),await(await qt(`${Rt}/is-supported-state`,n)).json()}async function lh(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-rates`,t)).json()}async function S3(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-quote`,t)).json()}async function R5(e){return(await qt(`${Rt}/get-vehicle-options`,e)).json()}async function nj(e){return(await qt(`${Rt}/get-vehicle-options`,{...e,action:"vinDecode"})).json()}async function rj(e){const t=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"vehiclePrefillSuggestions"}),n=await Qs(t);return{suggestions:Array.isArray(n.suggestions)?n.suggestions:[]}}async function aj(e,t){const n=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"applyVehiclePrefill",selectedIds:t}),i=await Qs(n);return{items:Array.isArray(i.items)?i.items:[]}}async function ij(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissVehiclePrefill"})}async function oj(e){const t=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"driverPrefillSuggestions"}),n=await Qs(t);return{suggestions:Array.isArray(n.suggestions)?n.suggestions:[]}}async function lj(e,t){const n=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"applyDriverPrefill",selectedIds:t}),i=await Qs(n);return{items:Array.isArray(i.items)?i.items:[]}}async function sj(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissDriverPrefill"})}async function uj(e,t){const i=await(await qt(`${Rt}/request-bind`,{quoteRateId:e,privacyNoticeAcknowledged:t})).json();return i&&typeof i=="object"&&"success"in i?i:{success:!0}}const sh=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function b0(e){return Sd(String(e??"")).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function cj(e){const t=b0(e??"unknown-stage");return["form-area",`form-area--${t}`,`formArea-${t}`].join(" ")}function uh(e,t,n){const i=b0(t??"unknown-stage"),o=b0(e);return["form-section","form-question",`form-section--${o}`,`form-question--${o}`,`formQuestion-${i}_${o}`,n&&n.length>0?"form-question--scoped":null].filter(Boolean).join(" ")}const dj={None:"None","30000/60000/25000":"30/60k","30000/60000/30000":"30/60k","50000/100000/30000":"50/100k","50000/100000/50000":"50/100k","100000/300000/50000":"100/300k","100000/300000/100000":"100/300k","250000/500000/100000":"250/500k","250000/500000/250000":"250/500k","300000/500000/250000":"300/500k","300000/500000/300000":"300/500k","500000/500000/300000":"500k CSL","500000/500000/500000":"500k CSL","500000/1000000/300000":"500k/1M","500000/1000000/500000":"500k/1M"},D3={auto_prior_carrier_name:BI,auto_prior_liability_limit:FI,auto_reason_for_no_insurance:jI,residence_type:LI,home_prior_carrier_name:PI,policy_bi:zI,policy_um:UI,policy_pd:HI,policy_mp:VI,policy_umpd:GI,policy_pip:ZI,policy_auto_death_indemnity:YI,vehicle_comp_deductible:p0,vehicle_coll_deductible:p0,vehicle_towing_and_labor:h0,vehicle_transportation_expense:b5,education_level:v5,industry:_5,occupation:E5,usage:II,architectural_style:XI,dwelling_type:eF,occupancy_type:tF,construction_quality:nF,construction_type:rF,foundation_type:aF,located_over_water:iF,number_of_stories:oF,exterior_wall_type:lF,roof_material_type:sF,roof_shape:uF,roof_updated_type:cF,heating_type:dF,oil_tank_location:fF,basement_type:mF,plumbing_type:pF,personal_liability:hF,dwelling_medical_payments:yF,all_perils_deductible:gF,windstorm_deductible:bF,distance_from_fire_hydrant_ft:vF,distance_from_fire_station_miles:_F,employment_industry:o3,marital_status:l3,gender:s3,co_applicant_employment_industry:o3,co_applicant_marital_status:l3,co_applicant_gender:s3,description:EF,tort_threshold:SF,pip_coverage_type:DF,extended_medical:$F,additional_pip:xF,policy_pip_deductible:CF},$3=["OTHER / NOT LISTED"],x3=["SEDAN","SUV","COUPE","HATCHBACK","PICKUP","VAN","WAGON","OTHER"],fj=["Other"];function jn(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,"0"),i=String(e.getUTCDate()).padStart(2,"0");return`${t}-${n}-${i}`}function C3(e){const t=e.replace(/\D+/g,"");if(t!=="")return kI(t)}function mj(e){return e==="-"||e==="+"||e==="."||e==="e"||e==="E"}const pj={year_built:4,year_roof_updated:4,heating_update_year:4,plumbing_update_year:4,electrical_update_year:4,total_area_sq_ft:6,sale_price_cents:9,dwelling_replacement_cost:9,other_structures_coverage:9,personal_property_coverage:7,amount_paid_cents:7,loss_of_use_coverage:8,home_prior_years:2,home_continuous_coverage_years:2,number_of_dogs:2,number_of_units:2,months_at_address:2,years_at_address:3,years_at_prior_address:3,distance_to_coast_miles:4,household_size:1,number_of_families:1,number_of_mortgagees:1,annual_mileage:6,miles_to_work:4,custom_equipment_value_cents:7,cost_new_value_cents:7,stated_value_amount_cents:7,property_damage_amount_paid_cents:7,personal_injury_amount_paid_cents:7,auto_current_annual_premium_cents:7,auto_prior_years:2,auto_prior_months:2,auto_continuous_coverage_years:2},A3=new Set(["sale_price_cents","dwelling_replacement_cost","other_structures_coverage","personal_property_coverage","loss_of_use_coverage","custom_equipment_value_cents","cost_new_value_cents","stated_value_amount_cents","property_damage_amount_paid_cents","personal_injury_amount_paid_cents","auto_current_annual_premium_cents","amount_paid_cents"]),hj=new Set(["total_area_sq_ft","annual_mileage","miles_to_work","distance_to_coast_miles"]),Lc={first_name:"given-name",last_name:"family-name",co_applicant_first_name:"given-name",co_applicant_last_name:"family-name",date_of_birth:"bday",co_applicant_date_of_birth:"bday",sms_code:"one-time-code",vin:"off",license_number:"off",effective_date:"off"},yj={license_number:20};function gj(e){const t=new Date,n=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));if(e==="effective_date"){const i=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth()+3,n.getUTCDate()));return{min:jn(n),max:jn(i)}}if(e==="home_prior_expiration_date"){const i=new Date(Date.UTC(n.getUTCFullYear()-1,n.getUTCMonth(),n.getUTCDate())),o=new Date(Date.UTC(n.getUTCFullYear()+1,n.getUTCMonth(),n.getUTCDate()));return{min:jn(i),max:jn(o)}}if(e==="date_of_incident")return{max:jn(n)};if(e==="move_in_date")return{max:jn(n)};if(e==="purchase_date")return{max:jn(n)};if(e==="date_of_birth")return{max:jn(n)};if(e==="date_first_licensed")return{max:jn(n)};if(e==="occurred_at")return{max:jn(n)};if(e==="accident_prevention_course_date")return{max:jn(n)};if(e==="auto_prior_expiration_date"){const i=new Date(Date.UTC(n.getUTCFullYear()-1,n.getUTCMonth(),n.getUTCDate())),o=new Date(Date.UTC(n.getUTCFullYear()+1,n.getUTCMonth(),n.getUTCDate()));return{min:jn(i),max:jn(o)}}return{}}const bj=new Set(["Disabled","Retired","Unemployed","Other"]);function ch(e,t,n){const i=String(e.key??"");if(i!=="occupation"&&i!=="co_applicant_occupation"||i==="co_applicant_occupation")return!0;const o=rn(t,n,"industry"),s=rn(t,n,"employment_industry"),c=String(o??s??"").trim();return!bj.has(c)}function dh(e,t,n,i){return nf(e,i,n)}function Jc(e){return e.inputType!=="radio"||!e.options||e.options.length!==1||e.options[0]!=="Yes"?!1:(e.conditionals??[]).some(n=>n.conditionalQuestionsAllowMultiple&&n.conditionalType==="equals"&&n.conditionalValue==="Yes")}function w3(e,t){return Jc(e)?"Yes":t}function T3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function N3(e){if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.getTime();if(typeof e=="string"){const t=Date.parse(e);return Number.isNaN(t)?null:t}return null}function M3(e,t){const n=T3(e),i=T3(t);if(n!=null&&i!=null)return n-i;const o=N3(e),s=N3(t);return o!=null&&s!=null?o-s:e==null||t==null?null:String(e).localeCompare(String(t))}function vj(e,t){return Array.isArray(e)?e.some(n=>n===t):typeof e=="string"?t!=null&&e.includes(String(t)):!1}function ms(e,t,n){switch(t){case"equals":return e===n;case"notEquals":return e!==n&&e!==""&&e!=null;case"lessThan":{const i=M3(e,n);return i!=null&&i<0}case"greaterThan":{const i=M3(e,n);return i!=null&&i>0}case"contains":return vj(e,n);case"startsWith":return e!=null&&n!=null&&String(e).startsWith(String(n));case"endsWith":return e!=null&&n!=null&&String(e).endsWith(String(n));default:return!1}}function Es(e,t){return t.reduce((n,i)=>n?.[i],e)}function tr(e,t,n){if(t.length===0)return e;const[i,...o]=t;if(o.length===0){if(typeof i=="number"){const h=(Array.isArray(e)?e:[]).slice();return h[i]=n,h}return{...e,[i]:n}}const s=e?.[i],c=typeof o[0]=="number"?Array.isArray(s)?s:[]:s&&typeof s=="object"?s:{},d=tr(c,o,n);if(typeof i=="number"){const h=(Array.isArray(e)?e:[]).slice();return h[i]=d,h}return{...e,[i]:d}}function rn(e,t,n){return Es(e,[...t??[],n])}function ln(e,t,n,i){return tr(e,[...t??[],n],i)}function _j(e,t){return e?.length?`${e.join("-")}-${t}`:t}const Ej="__items",Pc=e=>`${e}${Ej}`;function Dn(e){return e==null?"":typeof e=="string"?e:String(e)}function R3(e){return e==null?"":typeof e=="number"&&Number.isFinite(e)||typeof e=="string"?e:""}function Sj(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:String(e)}function O5({questions:e,initialValues:t,controlledValues:n,onChangeValues:i,onSubmit:o,quoteId:s,widgetStageKey:c,validationAttempt:d=0,invalidValueKeys:m,fetchVehicleOptions:h}){const y=b.useMemo(()=>h??(z=>R5({quoteId:s,...z})),[h,s]),g=b.useMemo(()=>py(e),[e]),E=b.useMemo(()=>Dy(g),[g]),S=b.useMemo(()=>c==="BundlePolicy"?!0:g.some(z=>String(z.key)==="home_prior_carrier_name")&&g.some(z=>String(z.key)==="driver_vehicle_assignments"),[c,g]),D=b.useMemo(()=>{const z={};return t&&Object.assign(z,t),z},[t]),[x,w]=b.useState(D);b.useEffect(()=>{w(D)},[D]);const[R,I]=b.useState({}),A=b.useMemo(()=>({...R,...n??x}),[R,n,x]);b.useEffect(()=>{n&&I(z=>({...z,...n}))},[n]);const[L,M]=b.useState({}),Z=b.useRef(new Map),V=b.useRef(new Set),[,fe]=b.useState({}),[ne,pe]=b.useState({}),J=b.useRef(!1);b.useEffect(()=>{!s||J.current||!g.some(T=>T.key==="year"||T.key==="make"||T.key==="model"||T.key==="body_style")||(J.current=!0,y({}).catch(()=>{}))},[s,g,y]);const[ye,Ae]=b.useState({}),[j,de]=b.useState({}),k=b.useCallback(async(z,T)=>{if(!s||!i3(T))return;const N=z?z.join("-"):"_root";Ae(ie=>({...ie,[N]:!0})),de(ie=>({...ie,[N]:null}));try{const ie=await nj({quoteId:s,vin:T});if(ie.error){de(Se=>({...Se,[N]:ie.error}));return}let ge=A;ie.year&&(ge=ln(ge,z,"year",String(ie.year))),ie.make&&(ge=ln(ge,z,"make",ie.make)),ie.model&&(ge=ln(ge,z,"model",ie.model)),ie.bodyStyle&&(ge=ln(ge,z,"body_style",ie.bodyStyle)),n&&i?i(ge):w(ge),I(ge),Z.current.clear(),V.current.clear(),fe({})}catch{de(ie=>({...ie,[N]:"VIN lookup failed — please enter vehicle details manually"}))}finally{Ae(ie=>({...ie,[N]:!1}))}},[s,A,n,i]),B=b.useCallback(z=>{const T=`${z.year}|${z.make??""}|${z.model??""}`,N=z.model?"bodyStyles":z.make?"models":"makes",ie=Z.current.get(T);return ie?ie[N]??[]:void 0},[]),X=b.useCallback((z,T)=>{if(!s)return;const N=`${T.year}|${T.make??""}|${T.model??""}`,ie=T.model?"bodyStyles":T.make?"models":"makes",ge=`${z}:${ie}`;Z.current.has(N)||V.current.has(N)||(V.current.add(N),pe(Se=>({...Se,[ge]:!0})),y(T).then(Se=>{Z.current.set(N,Se),fe(he=>({...he,[ge]:Se[ie]??[]}))}).catch(()=>{Z.current.set(N,{}),fe(Se=>({...Se,[ge]:[]}))}).finally(()=>{V.current.delete(N),pe(Se=>({...Se,[ge]:!1}))}))},[s,y]);function F(z,T,N){const ie=A,ge=z?Es(A,z)??{}:ie;return z?{state:ie.state,...ge,[T]:N}:{...ge,[T]:N}}function G(z,T){const N=g5.filter(ge=>ge.targetKey===z||ge.dependsOn.includes(z)),ie={[z]:void 0};for(const ge of N){const Se=ge.validate(T);ge.targetKey in ie?Se!==void 0&&(ie[ge.targetKey]=Se):ie[ge.targetKey]=Se}M(ge=>({...ge,...ie}))}const C=(z,T,N)=>{const ie=rn(A,N,z);if(Cr(ie,T)){L[z]&&M(Se=>({...Se,[z]:void 0}));return}const ge=m0(z,ie);if(ge){M(Se=>({...Se,[z]:ge}));return}G(z,F(N,z,ie))};b.useEffect(()=>{let z=A,T=!1;g.forEach(N=>{if(!Jc(N))return;const ie=String(N.key);rn(z,void 0,ie)!=="Yes"&&(z=ln(z,void 0,ie,"Yes"),T=!0)}),T&&(n&&i?i(z):w(z),I(z))},[g,A,n,i]);function U(z,T){const N=z.key;if((N==="relationship_to_insured"||N==="is_registered_owner")&&T){const me=T[T.length-1];if(typeof me=="number"&&me===0)return null}if((N==="purchase_date"||N==="cost_new_value_cents")&&T)return null;if(N==="custom_equipment_value_cents"&&T){const me=rn(A,T,"vehicle_has_modifications");if(me!=="Yes"&&me!==!0)return null}const ie=N==="auto_reason_for_no_insurance"&&E.currentCarrierKey?A[E.currentCarrierKey]==="NoPriorInsurance"?"Reason you are not currently insured":"Reason for lapse in coverage":z.question,ge=z.hint,Se=rn(A,T,N),he=Kc(z,E)?xs(A,E):N==="social_security_number"&&Ed(A.state??A.State)?!0:z.required,we=L[N],Ie=me=>{let De=ln(A,T,N,me);if(z.inputType==="radio"&&z.conditionals){const se=z.conditionals??[];for(const _e of se){const be=rn(A,T,N),xe=ms(be,_e.conditionalType,_e.conditionalValue),$e=ms(me,_e.conditionalType,_e.conditionalValue);if(xe&&!$e&&_e.conditionalQuestionsAllowMultiple){const Me=_e.conditionalQuestions??[];if(Me.length>0){const re=Pc(N);De=tr(De,[...T??[],re],[]);const oe=(Ce,Ee)=>{Ce.forEach(Te=>{(Te.conditionals??[]).forEach(ke=>{if(ke.conditionalQuestionsAllowMultiple){const Ue=Pc(Te.key);De=tr(De,[...Ee,Ue],[])}const qe=ke.conditionalQuestions??[];qe.length>0&&oe(qe,Ee)})})};oe(Me,[...T??[],re])}}}}n&&i?i(De):w(De),I(De)};if(N==="vehicle_policy_selections"){const me=A.vehicles__items??[],De=A.drivers__items??[];if(me.length===0)return v.jsx("p",{style:{color:"#666",fontStyle:"italic"},children:"Add vehicles first to configure coverage selections."},N);const se=A.driver_vehicle_assignments??{},_e=De.length>1,be=Ue=>Object.entries(Ue).map(([ze,tt])=>({value:ze,label:tt})),xe=Ed(A.state??A.State),$e=(Ue,ze)=>Object.fromEntries(Ue.filter(tt=>tt in ze).map(tt=>[tt,ze[tt]])),re=be($e(xe?qI:KI,p0)),oe=xe?$e(WI,h0):h0,Ce=be(oe),Te=be($e(xe?QI:JI,b5)),Re=(Ue,ze,tt)=>{const rt=tr(A,["vehicles__items",Ue,ze],tt);n&&i?i(rt):w(rt),I(rt)},ke=(Ue,ze,tt)=>{const rt={...se},Tt=`v${Ue}`;rt[Tt]={...rt[Tt]??{}},rt[Tt][`d${ze}`]=tt;const Ye=tr(A,["driver_vehicle_assignments"],rt);n&&i?i(Ye):w(Ye),I(Ye)},qe=Ue=>{if(!_e)return null;const ze=se[`v${Ue}`];if(!ze)return null;const tt=De.map((Ye,Hn)=>ze[`d${Hn}`]??0),rt=tt.filter(Ye=>Ye>0);if(rt.length>=2&&rt.every(Ye=>Ye===rt[0])&&rt[0]===50)return`Assignments for Vehicle ${Ue+1} cannot be 50 percent for both Drivers.`;const Tt=tt.reduce((Ye,Hn)=>Ye+Hn,0);return Tt>0&&Tt!==100?`Driver percentages for this vehicle must add up to 100% (currently ${Tt}%).`:null};return v.jsx("div",{children:me.map((Ue,ze)=>{const tt=[Ue.year,Ue.make,Ue.model].filter(Boolean).join(" ")||`Vehicle ${ze+1}`,rt=qe(ze),Tt=Ye=>typeof Ue[Ye]=="string"?Ue[Ye]:"";return v.jsxs("fieldset",{style:{border:`1px solid ${rt?"#dc3545":"#ddd"}`,borderRadius:"8px",padding:"16px",marginBottom:"16px"},children:[v.jsx("legend",{style:{fontWeight:600,padding:"0 8px"},children:tt}),v.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:"12px"},children:[v.jsx(ds,{id:`veh-${ze}-comp`,label:"Comprehensive deductible",required:!0,placeholder:"Select...",options:re,value:Tt("vehicle_comp_deductible"),onChange:Ye=>Re(ze,"vehicle_comp_deductible",Ye.currentTarget.value)}),v.jsx(ds,{id:`veh-${ze}-coll`,label:"Collision deductible",required:!0,placeholder:"Select...",options:re,value:Tt("vehicle_coll_deductible"),onChange:Ye=>Re(ze,"vehicle_coll_deductible",Ye.currentTarget.value)}),v.jsx(ds,{id:`veh-${ze}-tow`,label:"Towing and Labor",required:!0,placeholder:"Select...",options:Ce,value:Tt("vehicle_towing_and_labor"),onChange:Ye=>Re(ze,"vehicle_towing_and_labor",Ye.currentTarget.value)}),v.jsx(ds,{id:`veh-${ze}-trans`,label:"Transportation expense",required:!0,placeholder:"Select...",options:Te,value:Tt("vehicle_transportation_expense"),onChange:Ye=>Re(ze,"vehicle_transportation_expense",Ye.currentTarget.value)})]}),_e&&v.jsxs("div",{style:{marginTop:"16px"},children:[v.jsx("p",{style:{fontWeight:600,margin:"0 0 8px"},children:"Drivers usage (%)"}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:De.map((Ye,Hn)=>{const ml=[Ye.first_name,Ye.last_name].filter(Boolean).join(" ")||`Driver ${Hn+1}`,Nn=se[`v${ze}`]?.[`d${Hn}`];return v.jsx("div",{style:{flex:"0 0 140px"},children:v.jsx(Tp,{id:`assignment-v${ze}-d${Hn}`,label:`${ml} %`,value:Nn??"",min:0,max:100,step:1,inputMode:"numeric",onChange:gr=>{const Mn=gr.currentTarget.value.replace(/\D+/g,"");ke(ze,Hn,Mn===""?0:Math.min(100,parseInt(Mn,10)))}})},`${ze}-${Hn}`)})}),rt&&v.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:rt})]})]},ze)})},N)}if(N==="driver_vehicle_assignments"){const me=A.vehicles__items??[],De=A.drivers__items??[];if(S&&De.length<=1)return null;if(me.length===0||De.length===0)return v.jsx("p",{style:{color:"#666",fontStyle:"italic"},children:"Add vehicles and drivers first to configure driver usage percentages."},N);const se=A.driver_vehicle_assignments??{},_e=(xe,$e,Me)=>{const re={...se},oe=`v${xe}`;re[oe]={...re[oe]??{}},re[oe][`d${$e}`]=Me,Ie(re)},be=xe=>{if(De.length<2)return null;const $e=se[`v${xe}`];if(!$e)return null;const Me=De.map((Ce,Ee)=>$e[`d${Ee}`]??0),re=Me.filter(Ce=>Ce>0);if(re.length>=2&&re.every(Ce=>Ce===re[0])&&re[0]===50)return`Assignments for Vehicle ${xe+1} cannot be 50 percent for both Drivers.`;const oe=Me.reduce((Ce,Ee)=>Ce+Ee,0);return oe>0&&oe!==100?`Driver percentages for this vehicle must add up to 100% (currently ${oe}%).`:null};return v.jsxs("div",{children:[v.jsx("h4",{style:{marginBottom:"12px"},children:ie}),me.map((xe,$e)=>{const Me=[xe.year,xe.make,xe.model].filter(Boolean).join(" ")||`Vehicle ${$e+1}`,re=be($e);return v.jsxs("fieldset",{style:{border:`1px solid ${re?"#dc3545":"#ddd"}`,borderRadius:"8px",padding:"16px",marginBottom:"16px"},children:[v.jsx("legend",{style:{fontWeight:600,padding:"0 8px"},children:Me}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:De.map((oe,Ce)=>{const Ee=[oe.first_name,oe.last_name].filter(Boolean).join(" ")||`Driver ${Ce+1}`,Te=se[`v${$e}`]?.[`d${Ce}`];return v.jsx("div",{style:{flex:"0 0 140px"},children:v.jsx(Tp,{id:`assignment-v${$e}-d${Ce}`,label:`${Ee} %`,value:Te??"",min:0,max:100,step:1,inputMode:"numeric",onChange:Re=>{const ke=Re.currentTarget.value.replace(/\D+/g,"");_e($e,Ce,ke===""?0:Math.min(100,parseInt(ke,10)))}})},`${$e}-${Ce}`)})}),re&&v.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:re})]},$e)})]},N)}switch(z.inputType){case"text":{if(N==="vin"&&s){const me=T?T.join("-"):"_root",De=ye[me]??!1,se=j[me]??null,_e=[ge?`${N}-hint`:null,we?`${N}-error`:null,se?`${N}-vin-error`:null].filter(Boolean).join(" ");return v.jsxs("div",{children:[v.jsx(Un,{id:N,label:ie,hint:ge,error:we,required:he,children:v.jsxs("div",{className:"flex items-end gap-2",children:[v.jsx("div",{className:"flex-1 min-w-0",children:v.jsx("input",{id:N,className:`form-input ${we?"input-error":""}`,"aria-invalid":!!we,"aria-describedby":_e||void 0,"aria-required":he||void 0,required:he,value:Dn(Se),maxLength:17,onChange:be=>Ie(be.currentTarget.value),onBlur:()=>C(N,"text",T),autoComplete:Lc[N],type:"text"})}),v.jsx("button",{type:"button",disabled:De||!i3(Dn(Se)),className:"btn btn-outline shrink-0 self-end !w-auto min-w-[8.5rem] px-4 whitespace-nowrap disabled:opacity-50",onClick:()=>k(T,Dn(Se)),children:De?"Looking up...":"Verify VIN"})]})}),se&&v.jsx("p",{id:`${N}-vin-error`,className:"text-sm text-red-600 mt-1",children:se})]},N)}if(N==="sms_code"){const me=Dn(Se);return v.jsx(jc,{id:N,label:ie,hint:ge,value:me,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,onChange:De=>{const se=De.currentTarget.value.replace(/\D+/g,"").slice(0,6);Ie(se)},onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:Lc[N]},N)}if(N==="license_number")return v.jsx(jc,{id:N,label:ie,hint:ge,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value.replace(/[^A-Z0-9]/gi,"").slice(0,20)),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:"off",maxLength:20},N);if(N==="social_security_number"){const me=rn(A,T,"ssn_display"),De=typeof me=="string"?me:"",se=De?`${De}. Re-enter to update.${ge?` ${ge}`:""}`:ge;return v.jsx(Y7,{id:N,label:ie,hint:se,value:Dn(Se),onChange:_e=>Ie(_e.currentTarget.value),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we},N)}return v.jsx(jc,{id:N,label:ie,hint:ge,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:Lc[N],maxLength:yj[N]},N)}case"email":return v.jsx(q7,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"email",T),"aria-required":he||void 0,error:we},N);case"password":return v.jsx(W7,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"password",T),"aria-required":he||void 0,error:we},N);case"tel":return v.jsxs(v.Fragment,{children:[v.jsx(zE,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"tel",T),"aria-required":he||void 0,error:we},N),N==="phone"&&v.jsxs("div",{className:"mt-3 text-xs text-slate-600 space-y-1",children:[v.jsx("p",{children:"Enter your mobile number to continue to your quotes. If you choose to pursue a quote, you'll verify this number with a 6-digit text — we won't text you now."}),v.jsx("p",{children:"Message & data rates may apply. One message per request."}),v.jsxs("p",{children:["See our"," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","and"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"}),"."]})]})]});case"url":return v.jsx(K7,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"url",T),"aria-required":he||void 0,error:we},N);case"number":{const me=pj[N];return A3.has(N)||hj.has(N)?v.jsx(Z7,{id:N,label:ie,hint:ge,value:R3(Se),isCurrency:A3.has(N),maxDigits:me,onChange:De=>Ie(C3(De.currentTarget.value)),onBlur:()=>C(N,"number",T),"aria-required":he||void 0,error:we},N):v.jsx(Tp,{id:N,label:ie,hint:ge,value:R3(Se),inputMode:"numeric",pattern:"[0-9]*",onKeyDown:De=>{if(mj(De.key)){De.preventDefault();return}me!==void 0&&/^\d$/.test(De.key)&&String(De.currentTarget.value).replace(/\D/g,"").length>=me&&De.preventDefault()},onChange:De=>{let se=De.currentTarget.value;me!==void 0&&(se=se.slice(0,me)),Ie(C3(se))},onBlur:()=>C(N,"number",T),"aria-required":he||void 0,error:we},N)}case"textarea":return v.jsx(Q7,{id:N,label:ie,value:Dn(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"textarea",T),"aria-required":he||void 0,error:we,rows:4},N);case"date":{const{min:me,max:De}=gj(N);return v.jsx(OO,{id:N,label:ie,hint:ge,value:Dn(Se),min:me,max:De,onChange:se=>{const _e=se.currentTarget.value;Ie(_e),!Cr(_e,"date")&&!m0(N,_e)&&G(N,F(T,N,_e))},onBlur:()=>C(N,"date",T),"aria-required":he||void 0,error:we,autoComplete:Lc[N]},N)}case"checkbox":{if(z.options){const me=Array.isArray(Se)?Se:[],De=`${N}-error`;return v.jsxs("fieldset",{className:"space-y-2","aria-describedby":we?De:void 0,children:[v.jsxs("legend",{className:"form-label",children:[ie,he&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-red-600 ml-1","aria-hidden":"true",children:"*"}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:z.options.map(se=>{const _e=`${N}-${Sd(se)}`,be=me.includes(se);return v.jsx(ji,{id:_e,label:se,checked:be,onChange:xe=>{const $e=new Set(me);xe.currentTarget.checked?$e.add(se):$e.delete(se),Ie(Array.from($e))},"aria-required":he||void 0,"aria-describedby":we?De:void 0},_e)})}),we&&v.jsx("p",{id:De,className:"mt-1 text-sm text-red-600",children:we})]},N)}return v.jsx(ji,{id:N,label:he?`${ie} *`:ie,checked:!!Se,onChange:me=>Ie(me.currentTarget.checked),"aria-required":he||void 0},N)}case"radio":{if(Jc(z))return null;const me=z.options??[],De=T&&T.length>0?`${N}__${T.join("__")}`:N;return v.jsx(LO,{legend:ie,required:he,children:me.map(se=>v.jsx(BO,{name:De,value:se,checked:Se===se,onChange:()=>{Ie(se),G(N,F(T,N,se))},children:D3[N]?.[se]??se},`${N}-${Sd(se)}`))},N)}case"select":{let me=z.options??[];N==="quote_vehicle_id"&&(me=n?.vehicles__items?.map(Me=>Me.vin)??[]);let De=!1,se,_e,be;if(N==="year"||N==="make"||N==="model"||N==="body_style"){const Me=T?T.join("-"):"_root";ye[Me]&&(De=!0,se="Looking up VIN...")}if(!De&&(N==="make"||N==="model"||N==="body_style")){const Me=T?T.join("-"):"_root";be=Me;const re=rn(A,T,"year"),oe=typeof re=="number"?re:Number(re);if(N==="make"){const Ce=`${Me}:makes`;if(!oe||!Number.isFinite(oe))De=!0,se="Select a year first";else{_e={year:oe};const Ee=B(_e);Ee&&Ee.length>0?me=Ee:ne[Ce]?(se="Loading makes...",me=[...d3]):me=[...d3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else if(N==="model"){const Ce=`${Me}:models`,Ee=String(rn(A,T,"make")??"");if(!Ee)De=!0,se="Select a make first";else if(oe&&Number.isFinite(oe)){_e={year:oe,make:Ee};const Te=B(_e);Te&&Te.length>0?me=Te:ne[Ce]?(se="Loading models...",me=[...$3]):me=[...$3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else{const Ce=`${Me}:bodyStyles`,Ee=String(rn(A,T,"make")??""),Te=String(rn(A,T,"model")??"");if(!Te)De=!0,se="Select a model first";else if(oe&&Number.isFinite(oe)&&Ee){_e={year:oe,make:Ee,model:Te};const Re=B(_e);Re&&Re.length>0?me=Re:ne[Ce]?(se="Loading body styles...",me=[...x3]):me=[...x3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}}if(N==="occupation"||N==="co_applicant_occupation"){const Me=N==="co_applicant_occupation"?"co_applicant_employment_industry":void 0,re=Me?void 0:rn(A,T,"industry"),oe=rn(A,T,Me??"employment_industry"),Ee=String(Dd(re??oe)??"").trim();me=[...u3[Ee]??fj],typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}const xe=_j(T,N),$e=m?.has([...T??[],N].join("."))??!1;return v.jsx(ds,{id:xe,label:se?`${ie} — ${se}`:ie,"aria-required":he||void 0,error:we,disabled:De,value:$e?"":Sj(Se),onChange:Me=>{const re=Me.currentTarget.value;if(N!=="year"&&N!=="make"&&N!=="model"&&N!=="industry"&&N!=="employment_industry"&&N!=="co_applicant_employment_industry"){Ie(re),G(N,F(T,N,re));return}let oe=ln(A,T,N,re);if(N==="year")oe=ln(oe,T,"make",""),oe=ln(oe,T,"model",""),oe=ln(oe,T,"body_style","");else if(N==="make")oe=ln(oe,T,"model",""),oe=ln(oe,T,"body_style","");else if(N==="model")oe=ln(oe,T,"body_style","");else if(N==="industry"||N==="employment_industry")oe=ln(oe,T,"occupation","");else if(N==="co_applicant_employment_industry"){const Ee=String(Dd(re)??"").trim(),Te=u3[Ee]??[],Re=Te.find(ke=>ke===Ee)??Te[0]??"";oe=ln(oe,T,"co_applicant_occupation",Re??"")}n&&i?i(oe):w(oe),I(oe);const Ce=T?Es(oe,T)??{}:oe;G(N,{...Ce,[N]:re})},placeholder:se??"Select an option",onFocus:_e&&be?()=>X(be,_e):void 0,options:me.map(Me=>({value:Me,label:D3[N]?.[Me]??dj[Me]??Me}))},xe)}case"address":return v.jsx(zO,{id:N,label:ie,value:Dn(Se),onChange:(me,De)=>{let se=ln(A,T,N,me);const _e=De?.state??(typeof me=="string"?me.match(/,\s*([A-Z]{2})\s+\d{5}\b/)?.[1]:void 0);if(_e){const be=T?[...T,"state"]:["state"];se=tr(se,be,_e)}if(!T){const be=De?.zipCode??(typeof me=="string"?me.match(/,\s*[A-Z]{2}\s+(\d{5})(?:-\d{4})?\b/)?.[1]:void 0);be&&(se=tr(se,["postal_code"],be))}n&&i?i(se):w(se),I(se)},onBlur:()=>C(N,"address",T),required:he,"aria-required":he||void 0,error:we},N);default:return null}}function W(z,T){const N=z.some(ge=>String(ge.key)==="years_at_address"),ie=z.find(ge=>String(ge.key)==="months_at_address");return z.map((ge,Se)=>{const he=String(ge.key);if(he==="months_at_address"&&N||!qc(ge,A,E)||!ch(ge,A,T)||!Yc(ge,A,c))return null;if(dh(he,ge,A,c)){const be=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!(be&&be!=="NoPriorInsurance"&&Xo(A,E)&&sh.has(he)))return null}const we=U(ge,T),Ie=he==="years_at_address"&&ie?U(ie,T):null,me=ge.conditionals??[];if(!me.length)return c==="BundlePolicy"&&he==="policy_bi"?v.jsxs("div",{className:uh(he,c,T),"data-question-key":he,children:[v.jsx("h3",{className:"text-lg font-semibold mt-6 mb-3",children:"Vehicle Coverage Information"}),we]},`wrap-${he}-${Se}`):v.jsxs("div",{className:uh(he,c,T),"data-question-key":he,children:[we,Ie]},`wrap-${he}-${Se}`);const De=w3(ge,rn(A,T,he)),se=me.filter(be=>ms(De,be.conditionalType,be.conditionalValue)),_e=se.length>1&&!se.some(be=>be.conditionalQuestionsAllowMultiple)?se.slice(0,1):se;return v.jsxs("div",{className:uh(he,c,T),"data-question-key":he,children:[we,Ie,_e.map((be,xe)=>{const $e=be.conditionalQuestions??[];if(!$e.length)return null;if(!be.conditionalQuestionsAllowMultiple)return v.jsx("div",{className:"mt-3",children:W($e,T)},`branch-${he}-${xe}`);const Me=Pc(he),re=Es(A,[...T??[],Me])??[],oe=Math.max(1,re.length||1),Ce=()=>{const Re=tr(A,[...T??[],Me,re.length],{});n&&i?i(Re):w(Re),I(Re)},Ee=()=>{const Re=re.slice(0,Math.max(0,re.length-1)),ke=tr(A,[...T??[],Me],Re);n&&i?i(ke):w(ke),I(ke)},Te=`${he}__c${xe}`;return v.jsxs("div",{className:"mt-3",children:[v.jsxs("div",{className:"repeatable-controls flex items-center justify-between mb-2 gap-2",children:[v.jsx("div",{className:"text-sm font-medium opacity-75",children:"Add one or more entries"}),v.jsxs("div",{className:"repeatable-actions space-x-2",children:[v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Ce,children:"Add another"}),oe>1&&v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Ee,children:"Remove last"})]})]}),Array.from({length:oe}).map((Re,ke)=>{const qe=[...T??[],Me,ke],Ue=`${Te}__i${ke}`,ze=re[ke]??{},tt=he==="drivers",Ye=tt?`Driver #${ke+1}`:he==="vehicles"?`Vehicle #${ke+1}`:he==="home_losses"||he==="losses"?`Loss #${ke+1}`:`Entry #${ke+1}`,ml=tt&&typeof ze.ssn_display=="string"&&ze.ssn_display?` — ${ze.ssn_display}`:"";return v.jsxs("div",{className:"rounded-lg border p-3 mb-3",children:[v.jsxs("div",{className:"text-sm font-semibold mb-2",children:[Ye,ml]}),$e.map(Nn=>{const gr=String(Nn.key);if(!qc(Nn,A,E)||!ch(Nn,A,qe)||!Yc(Nn,A,c))return null;if(dh(gr,Nn,A,c)){const Mn=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!(Mn&&Mn!=="NoPriorInsurance"&&Xo(A,E)&&sh.has(gr)))return null}return v.jsxs("div",{className:"mt-3",children:[U(Nn,qe),(()=>{const Mn=Nn.conditionals??[];if(!Mn.length)return null;const ri=rn(A,qe,Nn.key),Vn=Mn.filter(Rn=>ms(ri,Rn.conditionalType,Rn.conditionalValue));return(Vn.length>1&&!Vn.some(Rn=>Rn.conditionalQuestionsAllowMultiple)?Vn.slice(0,1):Vn).map((Rn,hl)=>{const Qi=Rn.conditionalQuestions??[];if(!Qi.length)return null;if(!Rn.conditionalQuestionsAllowMultiple)return v.jsx("div",{className:"mt-3",children:W(Qi,qe)},`nested-${Ue}-${hl}`);const ua=Pc(Nn.key),br=Es(A,[...qe,ua])??[],Js=Math.max(1,br.length||1),Xs=()=>{const Tr=tr(A,[...qe,ua,br.length],{});n&&i?i(Tr):w(Tr),I(Tr)},eu=()=>{const Tr=br.slice(0,Math.max(0,br.length-1)),dr=tr(A,[...qe,ua],Tr);n&&i?i(dr):w(dr),I(dr)};return v.jsxs("div",{className:"mt-3",children:[v.jsxs("div",{className:"repeatable-controls flex items-center justify-between mb-2 gap-2",children:[v.jsx("div",{className:"text-sm font-medium opacity-75",children:"Add one or more entries"}),v.jsxs("div",{className:"repeatable-actions space-x-2",children:[v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Xs,children:"Add another"}),Js>1&&v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:eu,children:"Remove last"})]})]}),Array.from({length:Js}).map((Tr,dr)=>{const yl=[...qe,ua,dr];return v.jsxs("div",{className:"rounded-lg border p-3 mb-3",children:[v.jsxs("div",{className:"text-sm font-semibold mb-2",children:["Entry #",dr+1]}),W(Qi,yl)]},`nested-item-${Ue}-${hl}-${dr}`)})]},`nested-repeat-${Ue}-${hl}`)})})()]},`${Ue}-${gr}`)})]},`group-${Ue}`)})]},`branch-${he}-${xe}`)})]},`wrap-${he}-${Se}`)})}const Y=b.useMemo(()=>{const z=[],T=(N,ie)=>{N.forEach(ge=>{if(!qc(ge,A,E)||!ch(ge,A,ie)||!Yc(ge,A,c))return;const Se=String(ge.key);if(dh(Se,ge,A,c)){const De=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!(De&&De!=="NoPriorInsurance"&&Xo(A,E)&&sh.has(Se)))return}Jc(ge)||z.push(ge);const he=ge.conditionals??[];if(!he.length)return;const we=w3(ge,rn(A,ie,Se)),Ie=he.filter(De=>ms(we,De.conditionalType,De.conditionalValue));(Ie.length>1&&!Ie.some(De=>De.conditionalQuestionsAllowMultiple)?Ie.slice(0,1):Ie).forEach(De=>{const se=De.conditionalQuestions??[];se.length&&(De.conditionalQuestionsAllowMultiple||T(se,ie))})})};return T(g),z},[g,A,E,c]);b.useEffect(()=>{if(d<=0)return;const z=xs(A,E),T=Y.map(N=>Kc(N,E)?{...N,required:z}:N);M(Fs(T,A))},[d,Y,A,E]);function te(z){z.preventDefault();const T=xs(A,E),N=Y.map(ge=>Kc(ge,E)?{...ge,required:T}:ge),ie=Fs(N,A);if(M(ie),Object.keys(ie).length>0){const ge=Y.findIndex(Se=>ie[Se.key]);ge>=0&&document.getElementById(Y[ge].key)?.focus();return}o(A)}return v.jsx("form",{className:cj(c),"data-form-area":c??"unknown-stage",onSubmit:te,noValidate:!0,children:W(g)})}function O3({title:e,description:t,applyLabel:n,dismissLabel:i,alreadyOnApplicationNote:o,suggestions:s,isApplying:c,onApply:d,onDismiss:m}){const[h,y]=b.useState(new Set),g=s.length>0&&s.every(x=>h.has(x.id)),E=b.useMemo(()=>s.some(x=>x.alreadyOnApplication),[s]),S=x=>{y(w=>{const R=new Set(w);return R.has(x)?R.delete(x):R.add(x),R})},D=()=>{y(g?new Set:new Set(s.map(x=>x.id)))};return v.jsxs("div",{className:"prefill-suggestions-modal fixed inset-0 z-[10000] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-labelledby":"prefill-suggestions-title",children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsxs("div",{className:"modal-panel bg-white relative w-full max-w-lg max-h-[85vh] overflow-y-auto",role:"document",children:[v.jsxs("div",{className:"text-center mb-6",children:[v.jsx("h2",{id:"prefill-suggestions-title",className:"h1-title",children:e}),v.jsx("p",{className:"text-sm text-slate-600 mt-3",children:t})]}),v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 text-left mb-4",children:[s.map(x=>v.jsx(ji,{id:`prefill-suggestion-${x.id}`,label:x.alreadyOnApplication?`${x.label} *`:x.label,checked:h.has(x.id),disabled:c,onChange:()=>S(x.id)},x.id)),s.length>1&&v.jsx(ji,{id:"prefill-suggestion-select-all",label:"Select All",checked:g,disabled:c,onChange:D})]}),E&&v.jsx("p",{className:"text-xs text-slate-500 mb-4 text-left",children:o??"* This entry is already on the application; selecting it will fill in available data that does not exist on the application."}),v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mt-6",children:[v.jsx("button",{type:"button","data-widget-ctrl":"prefill-dismiss",onClick:m,disabled:c,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:i}),v.jsxs("button",{type:"button","data-widget-ctrl":"prefill-apply",onClick:()=>d(Array.from(h)),disabled:h.size===0||c,className:["form-wizard-next-btn","h-12 rounded-full text-white transition","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",h.size===0||c?"bg-gray-300":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[c&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),n]})]})]})]})}const Dj="https://getcredify.com/privacy-policy";function $j(){return v.jsx("a",{href:Dj,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})}function k3(){return v.jsxs(v.Fragment,{children:["See our ",v.jsx($j,{})," for how we use your information."]})}const xj=new Set(["Product","Name","Home","HomeConstruction","HomeFeatures","Vehicle","Driver","Demographics","Customer","HomeCustomer","BundleCustomer"]),Cj=new Set(["AutoCurrentCarrier","HomeCurrentCarrier","HomePolicy","BundlePolicy","AutoPolicy"]);function Aj(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function jo(e){return`stage-footer-hint stage-footer-hint--${Aj(e)}`}function k5({stageKey:e}){return e?e==="Zip"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"No credit card required."}):e==="Email"?v.jsxs("div",{className:jo(e),"data-stage-key":e,children:[v.jsx("p",{children:"We'll send your quotes and updates here, and save your progress so you can return anytime."}),v.jsx("p",{children:v.jsx(k3,{})})]}):Cj.has(e)?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"Tell us about your current coverage. Carriers ask about your coverage history to put together accurate quotes — it's a standard step on any application. Coverage gaps are common, so just enter things as they are. You're almost there: your quotes are almost ready."}):e==="Ssn"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"Your SSN is required by some carriers for fraud prevention, underwriting and to generate a quote. It's entered directly into our secure, encrypted form."}):e==="SMSVerification"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"You'll receive a text from Credify shortly."}):xj.has(e)?v.jsx("p",{className:jo(e),"data-stage-key":e,children:v.jsx(k3,{})}):null:null}function B5(e){const t=new Map,n=new Map,i=o=>{let s=t.get(o);return s||(s=e(o).then(c=>(n.set(o,c.suggestions),c.suggestions)).catch(c=>{throw t.delete(o),c}),t.set(o,s)),s};return{fetch:i,peek:o=>n.get(o),prefetch:o=>{i(o).catch(()=>{})},reset:()=>{t.clear(),n.clear()}}}const Cy=B5(rj),Ay=B5(oj),wj=Cy.fetch,Tj=Cy.peek,Nj=Cy.prefetch,Mj=Ay.fetch,Rj=Ay.peek,Oj=Ay.prefetch,kj=["vin","year","make","model"];function Bj(e){if(!e||typeof e!="object")return!0;const t=e;return kj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function Lj(e,t){if(t.length===0)return e;const n=e.vehicles__items??[],i=n.filter(c=>!Bj(c)),o=new Set(i.map(c=>String(c.vin??"").trim().toUpperCase()).filter(c=>c!=="")),s=t.filter(c=>{const d=String(c.vin??"").trim().toUpperCase();return d===""||!o.has(d)});return s.length===0&&i.length===n.length?e:{...e,vehicles:"Yes",vehicles__items:[...i,...s]}}const Pj=["first_name","last_name","date_of_birth"];function L5(e){if(!e||typeof e!="object")return!0;const t=e;return Pj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function B3(e){return`${String(e.first_name??"").trim()} ${String(e.last_name??"").trim()}`.trim().toUpperCase()}function Ij(e,t){if(t.length===0)return e;const n=e.drivers__items??[],i=n.filter(c=>!L5(c)),o=new Set(i.map(B3).filter(c=>c!=="")),s=t.filter(c=>{const d=B3(c);return d===""||!o.has(d)});return s.length===0&&i.length===n.length?e:{...e,drivers:"Yes",drivers__items:[...i,...s]}}function Fj(e){return(e.drivers__items??[]).some(n=>!L5(n))}const jj=["widgetOpened","widgetClosed","stageViewed","stageCompleted","flowCompleted","ratesViewed","ratesBack","submissionFailed"],$d={};function zj(e){let t=$d[e];return t||(t=new Set,$d[e]=t),t}function P5(e,t){zj(e).add(t)}function I5(e,t){$d[e]?.delete(t)}function ni(e,...t){const n=$d[e];if(!n||n.size===0)return;const i=t[0],o={quoteId:rf(),timestamp:Date.now()};for(const s of[...n])try{s(i,o)}catch(c){Ld(c,{tags:{source:"widget-event-listener",event:e}})}}function Uj(){ni("widgetOpened")}function Hj(){ni("widgetClosed")}function Vj(e){ni("stageViewed",e)}function L3(e){ni("stageCompleted",e)}function Gj(){ni("flowCompleted")}function Zj(e){ni("ratesViewed",e)}function Yj(){ni("ratesBack")}function ps(e){ni("submissionFailed",e)}const F5=new Set(["Disabled","Retired","Unemployed","Other"]);function qj(e,t){const n=String(e.key??"");if(n==="co_applicant_occupation"||n!=="occupation")return!0;const i=t.industry,o=t.employment_industry,s=String(i??o??"").trim();return!F5.has(s)}function Kj(e,t){const n=String(e.key??"");if(n==="co_applicant_occupation"||n!=="occupation")return!0;const i=t.industry,o=t.employment_industry,s=String(i??o??"").trim();return!F5.has(s)}function j5(e){return e.inputType!=="radio"||!e.options||e.options.length!==1||e.options[0]!=="Yes"?!1:(e.conditionals??[]).some(n=>n.conditionalQuestionsAllowMultiple&&n.conditionalType==="equals"&&n.conditionalValue==="Yes")}function wy(e,t){return j5(e)?"Yes":t}function P3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function I3(e){if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.getTime();if(typeof e=="string"){const t=Date.parse(e);return Number.isNaN(t)?null:t}return null}function F3(e,t){const n=P3(e),i=P3(t);if(n!=null&&i!=null)return n-i;const o=I3(e),s=I3(t);return o!=null&&s!=null?o-s:e==null||t==null?null:String(e).localeCompare(String(t))}function Wj(e,t){return Array.isArray(e)?e.some(n=>n===t):typeof e=="string"?t!=null&&e.includes(String(t)):!1}function Ty(e,t,n){switch(t){case"equals":return e===n;case"notEquals":return e!==n&&e!==""&&e!=null;case"lessThan":{const i=F3(e,n);return i!=null&&i<0}case"greaterThan":{const i=F3(e,n);return i!=null&&i>0}case"contains":return Wj(e,n);case"startsWith":return e!=null&&n!=null&&String(e).startsWith(String(n));case"endsWith":return e!=null&&n!=null&&String(e).endsWith(String(n));default:return!1}}const Qj=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function Jj(e){return String(e??"").trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function of(e,t,n){const i=py([...e]),o=Dy(i),s=[],c=d=>{d.forEach(m=>{if(!qc(m,t,o)||!qj(m,t)||!Yc(m,t,n))return;const h=String(m.key);if(nf(h,n,t)){const D=o.currentCarrierKey?t[o.currentCarrierKey]:void 0;if(!(D&&D!=="NoPriorInsurance"&&Xo(t,o)&&Qj.has(h)))return}j5(m)||s.push(m);const y=wy(m,t[h]),g=m.conditionals??[];if(!g.length)return;const E=g.filter(D=>Ty(y,D.conditionalType,D.conditionalValue));(E.length>1&&!E.some(D=>D.conditionalQuestionsAllowMultiple)?E.slice(0,1):E).forEach(D=>{const x=D.conditionalQuestions??[];x.length&&(D.conditionalQuestionsAllowMultiple||c(x))})})};return c(i),s}const z5="__items",xd=e=>`${e}${z5}`;function Xj(e,t){if(e.key==="relationship_to_insured"||e.key==="is_registered_owner"){const n=t[t.length-1];return typeof n=="number"&&n===0}return!1}function Cd(e,t,n,i=[],o=void 0,s=t){for(const c of e){const d=String(c.key),m=wy(c,t[d]),h=c.conditionals??[];if(!h.length)continue;const y=h.filter(E=>Ty(m,E.conditionalType,E.conditionalValue)),g=y.length>1&&!y.some(E=>E.conditionalQuestionsAllowMultiple)?y.slice(0,1):y;for(const E of g){const S=E.conditionalQuestions??[];if(!S.length)continue;if(!E.conditionalQuestionsAllowMultiple){Cd(S,t,n,i,o,s);continue}if(nf(d,o,s))continue;const D=t[xd(d)]??[];if(D.length===0){n.push({groupKey:d,index:-1,fieldKey:"",fieldLabel:"",message:"At least one entry is required"});continue}for(const[x,w]of D.entries()){const R=[...i,xd(d),x],I=of(S,w,o).filter(Z=>!(Xj(Z,R)||!Kj(Z,w))),A={state:s.state,...w},L=Fs(I,A),M=new Map(I.map((Z,V)=>[Ya(Z,V),Z.question??""]));for(const[Z,V]of Object.entries(L))V&&n.push({groupKey:d,index:x,fieldKey:Z,fieldLabel:M.get(Z)??Z,message:V});Cd(S,w,n,R,o,s)}}}}function ez(e,t,n){const i=[];return Cd(e,t,i,[],n,t),i}function tz(e,t,n){const i=[];return Cd(e,t,i,[],n,t),i.length>0}function v0(e,t,n,i){for(const o of e){const s=String(o.key),c=wy(o,t[s]),d=o.conditionals??[];if(!d.length)continue;const m=d.filter(y=>Ty(c,y.conditionalType,y.conditionalValue)),h=m.length>1&&!m.some(y=>y.conditionalQuestionsAllowMultiple)?m.slice(0,1):m;for(const y of h){const g=y.conditionalQuestions??[];if(!g.length)continue;if(!y.conditionalQuestionsAllowMultiple){v0(g,t,n,i);continue}if(nf(s,n,t))continue;const E=t[xd(s)]??[];for(const[S,D]of E.entries())typeof D!="object"||D===null||(i(of(g,D,n),D,{groupKey:s,index:S}),v0(g,D,n,i))}}}function U5(e){const t=e.vehicles__items??[];if(!Array.isArray(t)||t.length===0)return!1;for(const n of t)if(Cr(n.vehicle_comp_deductible,"select")||Cr(n.vehicle_coll_deductible,"select")||Cr(n.vehicle_towing_and_labor,"select")||Cr(n.vehicle_transportation_expense,"select"))return!0;return!1}function j3({targetStage:e,stageKey:t,quoteId:n,fetchSuggestions:i,peekSuggestions:o,applySelection:s,dismissSelection:c,mergeItems:d,setAllValues:m,shouldSkip:h}){const[y,g]=b.useState(null),[E,S]=b.useState(!1),[D,x]=b.useState(!1),w=b.useRef(new Set);return b.useEffect(()=>{if(t!==e||!n||w.current.has(n))return;if(h?.()){w.current.add(n);return}const A=o(n);if(A!==void 0){A.length>0?g(A):w.current.add(n);return}let L=!1;return x(!0),i(n).then(M=>{M.length===0&&w.current.add(n),!L&&M.length>0&&g(M)}).catch(()=>{w.current.add(n)}).finally(()=>{L||x(!1)}),()=>{L=!0,x(!1)}},[t,n,e]),{suggestions:y,isApplying:E,isPending:D,handleApply:async A=>{if(n){S(!0);try{const{items:L}=await s(n,A);L.length>0&&m(M=>d(M,L))}catch{}finally{w.current.add(n),S(!1),g(null)}}},handleDismiss:()=>{n&&(w.current.add(n),c(n).catch(()=>{})),g(null)}}}function nz({stages:e,onStageComplete:t,onComplete:n,initialValues:i,initialActive:o,quoteId:s,nonTerminalStageKeys:c}){const[d,m]=b.useState(o??0),[h,y]=b.useState(i??{}),[g,E]=b.useState({}),[S,D]=b.useState(!1),[x,w]=b.useState(!1),[R,I]=b.useState(null),[A,L]=b.useState(0),[M,Z]=b.useState([]),[V,fe]=b.useState(o??0),ne=b.useRef({}),pe=b.useRef([]),J=b.useRef(null),ye=b.useRef(e),Ae=Array.isArray(e)&&e.length>0,j=Ae?Math.min(d,e.length-1):0,de=Ae?e[j]:null,k=de?.key??null,B=b.useRef(h);B.current=h;const X=j3({targetStage:"Vehicle",stageKey:k,quoteId:s,fetchSuggestions:wj,peekSuggestions:Tj,applySelection:aj,dismissSelection:ij,mergeItems:Lj,setAllValues:y}),F=j3({targetStage:"Driver",stageKey:k,quoteId:s,fetchSuggestions:Mj,peekSuggestions:Rj,applySelection:lj,dismissSelection:sj,mergeItems:Ij,setAllValues:y,shouldSkip:()=>Fj(B.current)}),G=k==="Vehicle"&&X.isPending||k==="Driver"&&F.isPending;b.useEffect(()=>{o!==void 0&&(m(o),fe(he=>Math.max(he,o)))},[o]),ye.current=e;const C=b.useMemo(()=>{const he=j>=e.length-1;return he&&k&&c?.has(k)?!1:!!(he||e.slice(j+1).every(Ie=>Ie.key==="AutoPolicy")&&(h.drivers__items??[]).length<=1)},[j,e,h,k,c]);b.useEffect(()=>{Ae&&d>=e.length&&m(e.length-1)},[d,e.length,Ae]),b.useEffect(()=>{L(0),Z([])},[k]),b.useEffect(()=>{const he=pe.current[j];he&&he.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[j]),b.useEffect(()=>{i!==void 0&&y(i)},[i]),b.useEffect(()=>{if(!de||!k){D(!1),I(null);return}if(g[k]){D(!1),I(null);return}let he=!1;return D(!0),I(null),Promise.resolve(de.loadQuestions()).then(we=>{if(!he){if(!Array.isArray(we))throw new Error(`loadQuestions("${k}") did not return an array`);E(Ie=>({...Ie,[k]:we}))}}).catch(we=>{he||I(`Failed to load stage "${de?.title??""}": ${we?.message??"Unknown error"}`)}).finally(()=>{he||D(!1)}),()=>{he=!0}},[de,k,g]);const U=k?g[k]:void 0,W=b.useMemo(()=>Dy(py(U??[])),[U]);b.useEffect(()=>{de&&k&&U&&Vj({stageKey:k,stageTitle:de.title??k,stepIndex:d+1,totalSteps:e.length})},[k,d,e.length,de,U]);const Y=b.useMemo(()=>{if(!U)return{};const he={};(me=>{const De=[],se=_e=>{_e.forEach((be,xe)=>{const $e=Ya(be,xe);De.push($e);const Me=xd($e);De.push(Me),(be.conditionals??[]).forEach(oe=>{const Ce=oe.conditionalQuestions??[];Ce.length>0&&se(Ce)})})};return se(me),De})(U).forEach(me=>{me in h&&(he[me]=h[me])});for(const me of["state","State","address","product"])me in h&&(he[me]=h[me]);for(const[me,De]of Object.entries(h))me.endsWith(z5)&&!(me in he)&&(he[me]=De);return he},[U,h]),te=he=>{y(we=>({...we,...he}))},z=()=>{m(he=>he>0?he-1:0),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"})},T=he=>{he<0||he>=e.length||he>V||he===j||(m(he),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"}))},N=async()=>{if(!U||!de||S||R||x||G)return;const he=of(U,Y,k??void 0),we=xs(h,W),Ie=he.map(Ee=>Kc(Ee,W)?{...Ee,required:we}:Ee),me=Fs(Ie,Y),De=new Set(Ie.map((Ee,Te)=>Ya(Ee,Te))),se=Object.entries(me).some(([Ee,Te])=>Te&&De.has(Ee)),_e=tz(U,h,k??void 0),xe=he.some(Ee=>String(Ee.key??"")==="vehicle_policy_selections")?U5(h):!1,$e=h.driver_vehicle_assignments,Me=h.drivers__items??[];let re=!1;if($e&&Me.length>=2){const Ee=h.vehicles__items??[];for(let Te=0;Te<Ee.length;Te++){const Re=$e[`v${Te}`];if(!Re)continue;const ke=Me.map((ze,tt)=>Re[`d${tt}`]??0),qe=ke.filter(ze=>ze>0);if(qe.length>=2&&qe.every(ze=>ze===50)){re=!0;break}const Ue=ke.reduce((ze,tt)=>ze+tt,0);if(Ue>0&&Ue!==100){re=!0;break}}}if(se||_e||xe||re){const Ee=new Map(Ie.map((ke,qe)=>[Ya(ke,qe),ke])),Re=[...Object.entries(me).filter(([ke,qe])=>!!qe&&De.has(ke)).map(([ke,qe])=>{const Ue=qe,ze=Ee.get(ke)?.question;return Ue==="Required"&&ze?`${ze} is required`:Ue}),_e?"Complete all required repeated entries before continuing.":null,xe?"Complete the vehicle policy selections before continuing.":null,re?"Driver usage percentages must be valid before continuing.":null].filter(ke=>!!ke);L(ke=>ke+1),Z(Re.length>0?Re:["Review the highlighted fields before continuing."]),window.setTimeout(()=>{J.current?.focus()},0);return}Z([]);const oe=JSON.stringify(Y);if(!C&&j<V&&ne.current[k??""]===oe){m(Ee=>Math.min(Ee+1,e.length-1)),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"});return}w(!0);try{const Ee=C,Te=Ee?await n(h,k??""):await t(Y,k??""),{success:Re,error:ke}=Te;if(!Re){I(ke??"An error occurred");return}if(!Ee){const qe=Te.latestStages??ye.current,Ue=qe.findIndex(tt=>tt.key===k),ze=Ue>=0?Math.min(Ue+1,qe.length-1):Math.min(d+1,qe.length-1);ne.current[k??""]=oe,fe(tt=>Math.max(tt,ze)),m(ze)}}finally{w(!1)}},ie=b.useMemo(()=>!!(!U||S||R||x||G),[U,S,R,x,G]),ge=e.length>0?(j+1)/e.length*100:0,Se=Jj(k??"unknown-stage");return Ae?v.jsxs("div",{className:`form-wizard-shell form-wizard-shell--${Se}`,"data-stage-key":k??void 0,children:[k==="Vehicle"&&X.suggestions&&X.suggestions.length>0&&v.jsx(O3,{title:"Select your vehicles",description:"We found the vehicles below at your address. Select the ones you'd like to add to your quote, or add them manually.",applyLabel:"Add selected vehicles",dismissLabel:"Add manually",alreadyOnApplicationNote:"* This vehicle is already on the application; selecting it will fill in available data that does not exist on the application.",suggestions:X.suggestions,isApplying:X.isApplying,onApply:X.handleApply,onDismiss:X.handleDismiss}),k==="Driver"&&F.suggestions&&F.suggestions.length>0&&v.jsx(O3,{title:"Additional drivers",description:"We found the drivers below at your address. Select the ones you'd like to add to your quote, or add them manually.",applyLabel:"Add selected drivers",dismissLabel:"Add manually",alreadyOnApplicationNote:"* This driver is already on the application; selecting them will fill in available data that does not exist on the application.",suggestions:F.suggestions,isApplying:F.isApplying,onApply:F.handleApply,onDismiss:F.handleDismiss}),v.jsx("div",{className:`form-wizard-steps-header form-wizard-steps-header--${Se}`,children:v.jsx("div",{className:"form-wizard-steps-scroll",children:v.jsx("ol",{className:"form-wizard-steps flex gap-2 text-xs overflow-x-auto flex-1 pb-1 scrollbar-hide items-center",style:{scrollbarWidth:"none",msOverflowStyle:"none"},tabIndex:0,"aria-label":"Quote steps",children:e.flatMap((he,we)=>[v.jsx("li",{ref:Ie=>{pe.current[we]=Ie},className:"flex-shrink-0",children:v.jsx("button",{type:"button",className:"form-wizard-step-pill px-2.5 py-1 rounded-full border whitespace-nowrap","data-step-state":we<j?"complete":we===j?"current":"upcoming",onClick:()=>T(we),disabled:we>V,"aria-current":we===j?"step":void 0,"aria-label":`${he.title}, step ${we+1} of ${e.length}${we>V?", not available yet":""}`,children:he.title})},he.key??`stage-${we}`),...we<e.length-1?[v.jsx("li",{className:"form-wizard-step-arrow text-slate-400 flex-shrink-0","aria-hidden":"true",children:"›"},`arrow-${he.key??we}`)]:[]])})})}),v.jsxs("div",{className:`form-wizard-card form-wizard-card--${Se}`,style:{"--form-wizard-progress":`${ge}%`},children:[v.jsxs("div",{className:`form-wizard-content form-wizard-content--${Se}`,children:[S&&v.jsx("div",{className:"text-slate-500",role:"status","aria-live":"polite",children:"Loading…"}),G&&v.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",role:"status","aria-live":"polite",children:[v.jsxs("svg",{className:"animate-spin h-8 w-8 text-blue-600 mb-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),v.jsx("div",{className:"text-text-primary font-semibold",children:k==="Driver"?"Looking up additional drivers at your address…":"Looking up vehicles at your address…"}),v.jsx("div",{className:"text-sm text-slate-500 mt-1",children:"This can take a few moments."})]}),!G&&M.length>0&&v.jsxs("div",{ref:J,className:"mb-4 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700",role:"alert",tabIndex:-1,children:[v.jsx("p",{className:"font-semibold",children:"Please fix the following before continuing:"}),v.jsx("ul",{className:"mt-2 list-disc space-y-1 pl-5",children:M.map((he,we)=>v.jsx("li",{children:he},`${he}-${we}`))})]}),de&&!G&&v.jsx(O5,{questions:U??[],controlledValues:Y,onChangeValues:te,onSubmit:()=>N(),quoteId:s,widgetStageKey:k??void 0,validationAttempt:A},de.key),!S&&R&&v.jsxs("div",{className:"text-red-600 text-sm -mt-4",role:"alert",children:[v.jsx("div",{children:R}),de&&v.jsx("button",{type:"button",className:"credify-retry-btn underline mt-1 font-bold",onClick:()=>{E(he=>{if(!k)return he;const we={...he};return delete we[k],we})},children:"Retry"})]}),v.jsx(k5,{stageKey:k})]}),v.jsxs("div",{className:j>0?"form-wizard-actions grid grid-cols-2 gap-3":"form-wizard-actions",children:[j>0&&v.jsx("button",{type:"button",onClick:z,disabled:S,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",children:"Back"}),v.jsxs("button",{type:"button","data-widget-ctrl":"next",onClick:N,disabled:ie,className:["form-wizard-next-btn",j>0?"":"w-full","h-12 rounded-full text-white transition","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",ie?"bg-gray-300":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[x&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),C?"Finish":"Next"]})]})]})]}):v.jsx("div",{className:"text-slate-600",children:"Loading..."})}const H5={SafecoPersonal:{name:"Safeco",abbr:"SFC",color:"#0F337A"},SafecoPersoanl:{name:"Safeco",abbr:"SFC",color:"#0F337A"},AssuranceAmerica:{name:"Assurance America",abbr:"AA",color:"#2768B5"},CommonWealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#2D69EC"},Alinsco:{name:"Alinsco",abbr:"AL",color:"#20395D"},ACORDBOLTPersonalAuto:{name:"Bolt Auto",abbr:"BLT",color:"#1F2937"},ACORDBOLTPersonalHome:{name:"Bolt Home",abbr:"BLT",color:"#1F2937"},TwentyFirstCentury:{name:"21st Century",abbr:"21C",color:"#B2392A"},ACentral:{name:"A-Central",abbr:"ACT",color:"#EAAD1D"},AAA:{name:"AAA",abbr:"AAA",color:"#DB461C"},AARP:{name:"AARP",abbr:"ARP",color:"#DB4724"},Acadia:{name:"Acadia",abbr:"ACD",color:"#386B61"},Ace:{name:"ACE",abbr:"ACE",color:"#457D48"},Acuity:{name:"Acuity",abbr:"ACU",color:"#D74630"},AdirondackInsExchange:{name:"Adirondack",abbr:"ADK",color:"#1F5490"},Aegis:{name:"Aegis",abbr:"AEG",color:"#1A4675"},AIC:{name:"AIC",abbr:"AIC",color:"#508F47"},AIG:{name:"AIG",abbr:"AIG",color:"#223572"},AlfaAlliance:{name:"Alfa Alliance",abbr:"ALF",color:"#C13D17"},AllianzOfAmerica:{name:"Allianz",abbr:"ALZ",color:"#003781"},AllianzOfAmericaJefferson:{name:"Allianz Jefferson",abbr:"ALZ",color:"#003781"},Allied:{name:"Allied",abbr:"ALD",color:"#0047BB"},Allmerica:{name:"Allmerica",abbr:"ALM",color:"#003DA5"},Allstate:{name:"Allstate",abbr:"ALS",color:"#002F87"},AmericaFirst:{name:"America First",abbr:"AMF",color:"#003DA5"},AmericanCommerce:{name:"American Commerce",abbr:"ACM",color:"#003DA5"},AmericanFamily:{name:"American Family",abbr:"AMF",color:"#0033A0"},Amica:{name:"Amica",abbr:"AMI",color:"#003DA5"},Ameriprise:{name:"Ameriprise",abbr:"AMP",color:"#003DA5"},ASILloyds:{name:"ASI Lloyds",abbr:"ASI",color:"#003DA5"},Assurant:{name:"Assurant",abbr:"ASR",color:"#0033A0"},AtlasGeneralAgency:{name:"Atlas General",abbr:"ATL",color:"#1F3864"},AustinMutual:{name:"Austin Mutual",abbr:"AUS",color:"#1F3864"},Autoone:{name:"AutoOne",abbr:"AON",color:"#003DA5"},AutoOwners:{name:"Auto-Owners",abbr:"AO",color:"#C8102E"},BadgerMutual:{name:"Badger Mutual",abbr:"BDG",color:"#003DA5"},Balboa:{name:"Balboa",abbr:"BAL",color:"#1F3864"},Bamboo:{name:"Bamboo",abbr:"BMB",color:"#0F4C3A"},Bankers:{name:"Bankers",abbr:"BNK",color:"#1F3864"},BeaconNational:{name:"Beacon National",abbr:"BCN",color:"#003DA5"},BrethernMutual:{name:"Brethren Mutual",abbr:"BRT",color:"#1F3864"},BristolWest:{name:"Bristol West",abbr:"BW",color:"#003DA5"},BunkerHill:{name:"Bunker Hill",abbr:"BHL",color:"#1F3864"},CapitalInsuranceGroup:{name:"Capital Insurance",abbr:"CIG",color:"#003DA5"},Celina:{name:"Celina",abbr:"CEL",color:"#1F3864"},CentralMutualOfOH:{name:"Central Mutual",abbr:"CMO",color:"#003DA5"},Chubb:{name:"Chubb",abbr:"CHB",color:"#000000"},ChubbInsurance:{name:"Chubb",abbr:"CHB",color:"#000000"},Cincinnati:{name:"Cincinnati",abbr:"CIN",color:"#003DA5"},Citizens:{name:"Citizens",abbr:"CTZ",color:"#003DA5"},Clearcover:{name:"Clearcover",abbr:"CC",color:"#00B5E2"},CNA:{name:"CNA",abbr:"CNA",color:"#CC3232"},ColonialPenn:{name:"Colonial Penn",abbr:"CPN",color:"#0072CE"},ColoradoCasualty:{name:"Colorado Casualty",abbr:"COC",color:"#1F3864"},Columbia:{name:"Columbia",abbr:"CLM",color:"#003DA5"},CommerceWest:{name:"Commerce West",abbr:"CMW",color:"#003DA5"},CommonwealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#1F3864"},ConstitutionalCasualty:{name:"Constitutional Casualty",abbr:"CON",color:"#1F3864"},Cornerstone:{name:"Cornerstone",abbr:"CRN",color:"#1F3864"},Countrywide:{name:"Countrywide",abbr:"CTW",color:"#003DA5"},CSE:{name:"CSE",abbr:"CSE",color:"#003DA5"},Cumberland:{name:"Cumberland",abbr:"CMB",color:"#1F3864"},Cypress:{name:"Cypress",abbr:"CYP",color:"#0F4C3A"},Dairyland:{name:"Dairyland",abbr:"DL",color:"#0072CE"},Deerbrook:{name:"Deerbrook",abbr:"DBK",color:"#1F3864"},Direct:{name:"Direct",abbr:"DIR",color:"#D52B1E"},Donegal:{name:"Donegal",abbr:"DON",color:"#003DA5"},Drive:{name:"Drive",abbr:"DRV",color:"#1F3864"},Electric:{name:"Electric",abbr:"ELC",color:"#003DA5"},EMC:{name:"EMC",abbr:"EMC",color:"#003DA5"},Encompass:{name:"Encompass",abbr:"ENC",color:"#002F87"},Erie:{name:"Erie",abbr:"ERI",color:"#005FAC"},Esurance:{name:"Esurance",abbr:"ESU",color:"#00A6CE"},ExcelsiorInsuranceCompany:{name:"Excelsior",abbr:"EXC",color:"#1F3864"},Explorer:{name:"Explorer",abbr:"EXP",color:"#1F3864"},FairPlan:{name:"FAIR Plan",abbr:"FPN",color:"#1F3864"},FarmBureau:{name:"Farm Bureau",abbr:"FB",color:"#00843D"},Farmers:{name:"Farmers",abbr:"FRM",color:"#1C428B"},Fidelity:{name:"Fidelity",abbr:"FID",color:"#00833F"},FiremansFund:{name:"Fireman's Fund",abbr:"FF",color:"#E31837"},FirstAmerican:{name:"First American",abbr:"FAM",color:"#003DA5"},Foremost:{name:"Foremost",abbr:"FOR",color:"#E31837"},ForemostInsuranceCompany:{name:"Foremost",abbr:"FOR",color:"#E31837"},Geico:{name:"GEICO",abbr:"GEI",color:"#0F4293"},GeneralCasualty:{name:"General Casualty",abbr:"GC",color:"#1F3864"},GermantownMutual:{name:"Germantown Mutual",abbr:"GTM",color:"#1F3864"},GMAC:{name:"GMAC",abbr:"GMA",color:"#003DA5"},Grange:{name:"Grange",abbr:"GRG",color:"#003DA5"},GreatAmerican:{name:"Great American",abbr:"GA",color:"#003DA5"},Grinnell:{name:"Grinnell Mutual",abbr:"GRN",color:"#E31837"},GuideOne:{name:"GuideOne",abbr:"GO",color:"#0072CE"},Hanover:{name:"Hanover",abbr:"HAN",color:"#003DA5"},Harbor:{name:"Harbor",abbr:"HBR",color:"#1F3864"},Harleysville:{name:"Harleysville",abbr:"HRL",color:"#003DA5"},Hartford:{name:"The Hartford",abbr:"HFD",color:"#7F1734"},HartfordOMNI:{name:"Hartford OMNI",abbr:"HOM",color:"#7F1734"},HastingsMutual:{name:"Hastings Mutual",abbr:"HST",color:"#1F3864"},HawkeyeSecurity:{name:"Hawkeye Security",abbr:"HWK",color:"#1F3864"},HDI:{name:"HDI",abbr:"HDI",color:"#00563F"},HippoInsuranceCompany:{name:"Hippo",abbr:"HPO",color:"#00C9A7"},HomeownersOfAmerica:{name:"Homeowners of America",abbr:"HOA",color:"#003DA5"},Homesite:{name:"Homesite",abbr:"HMS",color:"#0033A0"},HoraceMann:{name:"Horace Mann",abbr:"HM",color:"#003DA5"},HoustonGeneral:{name:"Houston General",abbr:"HG",color:"#1F3864"},IFA:{name:"IFA",abbr:"IFA",color:"#003DA5"},ImperialCasualty:{name:"Imperial Casualty",abbr:"IMP",color:"#1F3864"},Indiana:{name:"Indiana Insurance",abbr:"IND",color:"#003DA5"},IndianaFarmers:{name:"Indiana Farmers",abbr:"IFM",color:"#00843D"},Infinity:{name:"Infinity",abbr:"INF",color:"#E31837"},Insurequest:{name:"Insurequest",abbr:"INQ",color:"#1F3864"},Integon:{name:"Integon",abbr:"ITG",color:"#003DA5"},Integrity:{name:"Integrity",abbr:"ITY",color:"#1F3864"},Kemper:{name:"Kemper",abbr:"KMP",color:"#0033A0"},LibertyMutual:{name:"Liberty Mutual",abbr:"LM",color:"#FFD000"},LibertyNorthwest:{name:"Liberty Northwest",abbr:"LNW",color:"#FFD000"},Lloyds:{name:"Lloyd's",abbr:"LLY",color:"#003DA5"},MainStreetAmerica:{name:"Main Street America",abbr:"MSA",color:"#003DA5"},Mapfre:{name:"MAPFRE",abbr:"MAP",color:"#E31837"},MarkelInsuranceCompany:{name:"Markel",abbr:"MKL",color:"#003DA5"},Mendota:{name:"Mendota",abbr:"MND",color:"#1F3864"},MerchantsGroup:{name:"Merchants Group",abbr:"MRC",color:"#003DA5"},Mercury:{name:"Mercury",abbr:"MER",color:"#ED1C24"},Metlife:{name:"MetLife",abbr:"MET",color:"#0090DA"},Metropolitan:{name:"Metropolitan",abbr:"MTP",color:"#0090DA"},MidContinent:{name:"Mid-Continent",abbr:"MC",color:"#003DA5"},MidwesternIndemnity:{name:"Midwestern Indemnity",abbr:"MWI",color:"#003DA5"},Montgomery:{name:"Montgomery",abbr:"MTG",color:"#1F3864"},MSA:{name:"MSA",abbr:"MSA",color:"#003DA5"},MtWashington:{name:"Mt. Washington",abbr:"MTW",color:"#1F3864"},MutualBenefit:{name:"Mutual Benefit",abbr:"MB",color:"#1F3864"},NatGenPremier:{name:"NatGen Premier",abbr:"NGP",color:"#0033A0"},NationalGeneral:{name:"National General",abbr:"NG",color:"#0033A0"},Nationwide:{name:"Nationwide",abbr:"NW",color:"#204D9B"},NationwideScottsdale:{name:"Nationwide Scottsdale",abbr:"NWS",color:"#204D9B"},NewYorkCentralMutual:{name:"NY Central Mutual",abbr:"NYC",color:"#003DA5"},NJManufacturers:{name:"NJM Insurance",abbr:"NJM",color:"#003DA5"},NJSkylands:{name:"NJ Skylands",abbr:"NJS",color:"#003DA5"},Northstar:{name:"Northstar",abbr:"NST",color:"#1F3864"},Occidental:{name:"Occidental",abbr:"OCC",color:"#1F3864"},OhioCasualty:{name:"Ohio Casualty",abbr:"OHC",color:"#003DA5"},OmahaPC:{name:"Omaha P&C",abbr:"OMA",color:"#003DA5"},OneBeacon:{name:"OneBeacon",abbr:"OB",color:"#003DA5"},OregonMutual:{name:"Oregon Mutual",abbr:"ORE",color:"#003DA5"},Palisades:{name:"Palisades",abbr:"PAL",color:"#1F3864"},PeerlessMontgomery:{name:"Peerless Montgomery",abbr:"PRM",color:"#1F3864"},Pekin:{name:"Pekin",abbr:"PEK",color:"#003DA5"},Pemco:{name:"PEMCO",abbr:"PMC",color:"#0072CE"},PennNational:{name:"Penn National",abbr:"PN",color:"#003DA5"},PlymouthRock:{name:"Plymouth Rock",abbr:"PLR",color:"#003DA5"},PreferredMutual:{name:"Preferred Mutual",abbr:"PFM",color:"#003DA5"},Proformance:{name:"Proformance",abbr:"PRF",color:"#1F3864"},Progressive:{name:"Progressive",abbr:"PRG",color:"#0053BA"},Prudential:{name:"Prudential",abbr:"PRU",color:"#0033A0"},PureHighValue:{name:"PURE",abbr:"PUR",color:"#003DA5"},Republic:{name:"Republic",abbr:"REP",color:"#003DA5"},RockfordMutual:{name:"Rockford Mutual",abbr:"RKF",color:"#1F3864"},RoyalAndSunAlliance:{name:"Royal & SunAlliance",abbr:"RSA",color:"#003DA5"},Safeco:{name:"Safeco",abbr:"SFC",color:"#E4002B"},SECURA:{name:"SECURA",abbr:"SEC",color:"#003DA5"},Selective:{name:"Selective",abbr:"SEL",color:"#003DA5"},SouthernCounty:{name:"Southern County",abbr:"SCM",color:"#1F3864"},SouthernMutual:{name:"Southern Mutual",abbr:"SM",color:"#1F3864"},SouthernTrust:{name:"Southern Trust",abbr:"ST",color:"#1F3864"},StPaulTravelers:{name:"St. Paul Travelers",abbr:"SPT",color:"#C8102E"},StandardMutual:{name:"Standard Mutual",abbr:"STM",color:"#1F3864"},StarCasualty:{name:"Star Casualty",abbr:"SC",color:"#1F3864"},StateAuto:{name:"State Auto",abbr:"SA",color:"#003DA5"},StateFarm:{name:"State Farm",abbr:"SF",color:"#CC0717"},StateFarmFloridaInsuranceCompany:{name:"State Farm Florida",abbr:"SFF",color:"#CC0717"},SunshineStateInsuranceCompany:{name:"Sunshine State",abbr:"SSS",color:"#FFC72C"},Travelers:{name:"Travelers",abbr:"TRV",color:"#C8102E"},Tower:{name:"Tower",abbr:"TWR",color:"#1F3864"},TWFG:{name:"TWFG",abbr:"TWF",color:"#003DA5"},Unigard:{name:"Unigard",abbr:"UNG",color:"#1F3864"},UnitedFireAndCasualty:{name:"United Fire & Casualty",abbr:"UFC",color:"#003DA5"},Unitrin:{name:"Unitrin",abbr:"UTN",color:"#003DA5"},Universal:{name:"Universal",abbr:"UNV",color:"#003DA5"},USAA:{name:"USAA",abbr:"USA",color:"#1A3258"},UticaNational:{name:"Utica National",abbr:"UTC",color:"#003DA5"},Victoria:{name:"Victoria",abbr:"VIC",color:"#1F3864"},Wellington:{name:"Wellington",abbr:"WLG",color:"#1F3864"},WestBend:{name:"West Bend",abbr:"WB",color:"#003DA5"},WesternNational:{name:"Western National",abbr:"WN",color:"#003DA5"},WesternReserveGroup:{name:"Western Reserve",abbr:"WR",color:"#003DA5"},Westfield:{name:"Westfield",abbr:"WF",color:"#F05136"},WhiteMountains:{name:"White Mountains",abbr:"WM",color:"#1F3864"},WilsonMutual:{name:"Wilson Mutual",abbr:"WLM",color:"#1F3864"},Windsor:{name:"Windsor",abbr:"WIN",color:"#1F3864"},Zurich:{name:"Zurich",abbr:"ZUR",color:"#003399"}},z3=["#0369A1","#1D4ED8","#0F766E","#7C3AED","#B45309","#DC2626","#0891B2","#9333EA"];function rz(e){return e.replace(/[^A-Za-z0-9]/g,"").slice(0,3).toUpperCase()||"CAR"}function V5(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim()}function Ti(e){if(!e)return e;const t=H5[e];return t?t.name:V5(e)}function az(e){const t=new Set,n=[];return e.forEach((i,o)=>{const c=H5[i]??{name:V5(i),abbr:rz(i),color:z3[o%z3.length]};t.has(c.name)||(t.add(c.name),n.push(c))}),n}function iz(e,t){if(!e)return[];const n=[];return(t==="Auto"||t==="Bundle")&&Array.isArray(e.PersonalAuto)&&n.push(...e.PersonalAuto),(t==="Home"||t==="Bundle")&&Array.isArray(e.PersonalHome)&&n.push(...e.PersonalHome),az(n)}const oz="https://getcredify.com/privacy-policy";function lz({acknowledged:e,onChange:t,disabled:n=!1}){return v.jsx("div",{className:"privacy-notice-ack rounded-xl border border-slate-200 bg-slate-50 p-4","data-testid":"privacy-notice-acknowledgment",children:v.jsx(ji,{id:"privacy-notice-ack-checkbox",className:"privacy-notice-ack-checkbox",checked:e,onChange:i=>t(i.target.checked),disabled:n,label:v.jsxs(v.Fragment,{children:["I acknowledge I have received Credify’s"," ",v.jsx("a",{href:oz,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Notice"}),"."]})})})}function sz({carrierName:e,formattedPremium:t,lobLabel:n,acknowledged:i,onAcknowledgeChange:o,onCancel:s,onProceed:c,isProcessing:d,hasError:m}){const h=!i||d;return v.jsxs("div",{className:"bind-confirmation","data-testid":"bind-confirmation",role:"group","aria-label":"Confirm your bind request",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Confirm your bind request"}),v.jsxs("div",{className:"mt-4 rounded-xl border border-slate-200 bg-white p-4",children:[n&&v.jsx("div",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-slate-500",children:n}),v.jsx("p",{className:"font-semibold text-slate-900",children:e}),v.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:[t,v.jsx("span",{className:"ml-1 text-sm font-medium text-slate-500",children:"/month"})]})]}),v.jsx("div",{className:"mt-4",children:v.jsx(lz,{acknowledged:i,onChange:o,disabled:d})}),m&&v.jsx("p",{className:"mt-3 text-sm text-red-600",role:"alert",children:"Something went wrong while processing your bind request. Please try again."}),v.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[v.jsx("button",{type:"button","data-testid":"bind-confirmation-cancel",onClick:s,disabled:d,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"Cancel"}),v.jsxs("button",{type:"button","data-testid":"bind-confirmation-proceed",onClick:c,disabled:h,className:["h-12 rounded-full text-white font-bold transition","flex items-center justify-center gap-2","disabled:cursor-not-allowed",h?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[d&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),d?"Processing…":"Proceed"]})]})]})}const G5=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function Z5(e){const t=Number.isFinite(e.term_months)&&e.term_months>0?e.term_months:1;return e.monthly_premium_cents!=null?e.monthly_premium_cents:Math.round((e.premium_cents||0)/t)}const Ad={PersonalHome:"Homeowners",PersonalAuto:"Personal Auto",Flood:"Flood",ExcessFlood:"Excess Flood",_other:"Other"},wd=["PersonalHome","PersonalAuto","Flood","ExcessFlood"];function uz(e){if(e.length===0)return[];const t=(i,o)=>Ti(i.carrier_name).localeCompare(Ti(o.carrier_name));if(!e.some(i=>i.lob))return[{lob:null,title:"Not Quoted",rates:[...e].sort(t)}];const n=new Map;for(const i of e){const o=i.lob||"_other",s=n.get(o);s?s.push(i):n.set(o,[i])}return[...n.entries()].sort(([i],[o])=>{const s=wd.indexOf(i),c=wd.indexOf(o);return(s===-1?999:s)-(c===-1?999:c)}).map(([i,o])=>({lob:i,title:Ad[i]??i,rates:[...o].sort(t)}))}const Kr={admitted:{tab:"rates-tab-admitted",panel:"rates-panel-admitted"},non_admitted:{tab:"rates-tab-non-admitted",panel:"rates-panel-non-admitted"},not_quoted:{tab:"rates-tab-not-quoted",panel:"rates-panel-not-quoted"}};function U3({onBack:e}){const t=()=>{Yj(),e?.()};return v.jsx("button",{type:"button",onClick:t,className:"credify-btn-back credify-btn-back-rates h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition w-full",children:"Back"})}function cz({rate:e,status:t,onRequestBind:n,disabled:i,showLobLabel:o=!0,className:s}){const c=Z5(e)/100,d=G5.format(c),m=t==="loading",h=t==="success",y=!!i||m||h,g=!!(e.effective_date&&e.policy_end_date),E=e.lob?Ad[e.lob]||e.lob:null,S=(e.coverages??[]).filter(D=>!!D&&typeof D.label=="string"&&D.label.trim()!==""&&typeof D.value=="string"&&D.value.trim()!=="");return v.jsxs("div",{className:`flex h-full w-full flex-col rounded-xl border border-slate-200 bg-white p-6 shadow-sm transition hover:shadow-md${s?` ${s}`:""}`,children:[o&&E&&v.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-slate-500",children:E}),v.jsxs("div",{className:"mb-4 flex flex-col items-start gap-2",children:[e.carrier_logo_base64?v.jsx("img",{src:`data:image/png;base64,${e.carrier_logo_base64}`,alt:Ti(e.carrier_name),className:"h-12 w-auto max-w-full object-contain"}):v.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500",children:Ti(e.carrier_name).charAt(0).toUpperCase()}),v.jsx("h4",{className:"w-full break-words text-left font-semibold text-slate-900",children:Ti(e.carrier_name)})]}),v.jsx("div",{className:"mb-2",children:v.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:[d,v.jsx("span",{className:"ml-1 text-sm font-medium text-slate-500",children:"/month"})]})}),g&&v.jsx("div",{className:"mb-2",children:v.jsxs("p",{className:"text-xs text-slate-500",children:["Effective ",e.effective_date," - ",e.policy_end_date]})}),e.carrier_quote_id&&v.jsx("div",{className:"mb-4",children:v.jsxs("p",{className:"text-xs text-slate-400",children:["Quote ID: ",e.carrier_quote_id]})}),S.length>0&&v.jsx("div",{className:"mb-2 border-t border-slate-200 pt-3",children:v.jsx("dl",{children:S.map((D,x)=>v.jsxs("div",{className:"flex items-baseline justify-between gap-2 py-1",children:[v.jsx("dt",{className:"text-xs text-slate-600",children:D.label}),v.jsx("dd",{className:"text-right text-xs font-semibold text-slate-900",children:D.value})]},`${D.label}-${x}`))})}),v.jsxs("div",{className:"mt-auto pt-4",children:[v.jsx("button",{type:"button",onClick:n,disabled:y,className:`rates-bind-btn w-full cursor-pointer rounded-full px-4 py-2.5 text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 disabled:cursor-not-allowed ${h?"rates-bind-btn-requested":"hover:bg-blue-600/90 disabled:bg-slate-300 disabled:text-slate-500"}`,children:m?"Requesting…":h?"Requested":"Request Bind"}),t==="error"&&v.jsx("p",{className:"mt-2 text-xs text-red-600",role:"alert",children:"Something went wrong. Please try again."}),t==="success"&&v.jsx("p",{className:"mt-2 text-xs text-emerald-600",role:"status","aria-live":"polite",children:"We received your bind request."})]})]})}function dz({item:e}){const t=Ti(e.carrier_name),n=(e.decline_reasons??[]).filter(Boolean);return v.jsxs("div",{className:"flex w-full gap-4 rounded-xl border border-slate-200 bg-white p-4 shadow-sm",children:[v.jsx("div",{className:"shrink-0",children:e.carrier_logo_base64?v.jsx("img",{src:`data:image/png;base64,${e.carrier_logo_base64}`,alt:t,className:"h-10 w-auto max-w-[7rem] object-contain"}):v.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500",children:t.charAt(0).toUpperCase()})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("div",{className:"flex flex-wrap items-center gap-2",children:v.jsx("h4",{className:"break-words font-semibold text-slate-900",children:t})}),n.length>0?v.jsx("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-sm text-slate-600",children:n.map((i,o)=>v.jsx("li",{children:i},o))}):v.jsx("p",{className:"mt-2 text-sm text-slate-500",children:"This carrier did not return a quote."})]})]})}function fz({rates:e,onBack:t,isBundleFlow:n=!1,quoteId:i,initialPhone:o="",requirePursueVerification:s=!1,onSubScreenChange:c}){const d=b.useMemo(()=>Array.isArray(e)?e:[],[e]),m=d.length>0,[h,y]=b.useState({}),[g,E]=b.useState("admitted"),[S,D]=b.useState(!1),[x,w]=b.useState(null),[R,I]=b.useState(!1),[A,L]=b.useState(null),[M,Z]=b.useState(!1),[V,fe]=b.useState(o),[ne,pe]=b.useState(""),[J,ye]=b.useState("phone"),[Ae,j]=b.useState("idle"),[de,k]=b.useState(null),B=!!(A||x);b.useEffect(()=>{c?.(B)},[B,c]),b.useEffect(()=>()=>c?.(!1),[c]);const X=b.useMemo(()=>d.some(re=>re.lob==="PersonalAuto"),[d]),F=b.useMemo(()=>d.some(re=>re.lob==="PersonalHome"),[d]),G=b.useMemo(()=>{if(!n)return[];const re=[];return X&&re.push("PersonalAuto"),F&&re.push("PersonalHome"),re},[n,X,F]),C=b.useMemo(()=>{const re=new Set;for(const oe of d){const Ce=oe.lob??null;Ce&&h[oe.quote_rate_id]==="success"&&re.add(Ce)}return re},[d,h]),U=b.useMemo(()=>Object.values(h).some(re=>re==="success"),[h]),W=b.useMemo(()=>S?!0:!n||G.length===0?U:G.every(re=>C.has(re)),[S,n,U,G,C]),Y=b.useMemo(()=>m?d.filter(re=>(re.admitted_status??"admitted")==="admitted"):[],[d,m]),te=b.useMemo(()=>m?d.filter(re=>re.admitted_status==="non_admitted"):[],[d,m]),z=b.useMemo(()=>m?d.filter(re=>re.admitted_status==="not_quoted"):[],[d,m]),T=Y.length,N=te.length,ie=z.length,ge=T+N>0,Se=ge||ie>0,he=b.useMemo(()=>uz(z),[z]);b.useEffect(()=>{Se&&g==="admitted"&&T===0&&(N>0?E("non_admitted"):ie>0&&E("not_quoted"))},[g,T,N,ie,Se]);const we=b.useMemo(()=>ge?g==="admitted"?Y:g==="non_admitted"?te:[]:[],[ge,g,Y,te]),Ie=re=>{if(re.key!=="ArrowLeft"&&re.key!=="ArrowRight"&&re.key!=="Home"&&re.key!=="End")return;re.preventDefault();const oe=re.key==="Home"?"admitted":re.key==="End"||g==="admitted"?"non_admitted":"admitted";E(oe),window.setTimeout(()=>document.getElementById(Kr[oe].tab)?.focus(),0)};b.useEffect(()=>{Qc()},[]),b.useEffect(()=>{!W||S||(OF(),T5(),D(!0))},[W,S]);const me=b.useMemo(()=>{if(we.length===0)return[];if(!we.some(Ee=>Ee.lob))return[{lob:null,title:"Rates",rates:[...we].sort((Te,Re)=>{const ke=Number.isFinite(Te.term_months)&&Te.term_months>0?Te.term_months:1,qe=Number.isFinite(Re.term_months)&&Re.term_months>0?Re.term_months:1,Ue=Te.monthly_premium_cents??Math.round((Te.premium_cents||0)/ke),ze=Re.monthly_premium_cents??Math.round((Re.premium_cents||0)/qe);return Ue-ze})}];const oe=new Map;for(const Ee of we){const Te=Ee.lob||"_other",Re=oe.get(Te);Re?Re.push(Ee):oe.set(Te,[Ee])}return[...oe.entries()].sort(([Ee],[Te])=>{const Re=wd.indexOf(Ee),ke=wd.indexOf(Te);return(Re===-1?999:Re)-(ke===-1?999:ke)}).map(([Ee,Te])=>({lob:Ee,title:Ad[Ee]??Ee,rates:[...Te].sort((Re,ke)=>{const qe=Number.isFinite(Re.term_months)&&Re.term_months>0?Re.term_months:1,Ue=Number.isFinite(ke.term_months)&&ke.term_months>0?ke.term_months:1,ze=Re.monthly_premium_cents??Math.round((Re.premium_cents||0)/qe),tt=ke.monthly_premium_cents??Math.round((ke.premium_cents||0)/Ue);return ze-tt})}))},[we]),De=b.useMemo(()=>{if(!n)return[];const re=d.some(Ee=>Ee.lob==="PersonalAuto"),oe=d.some(Ee=>Ee.lob==="PersonalHome"),Ce=[];return re||Ce.push("Sorry, no rates found for Personal Auto."),oe||Ce.push("Sorry, no rates found for Homeowners."),Ce},[n,d]);if(!Se)return v.jsxs("section",{className:"mt-8",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Rates"}),v.jsx("p",{className:"mt-2 text-sm text-slate-500",children:"Sorry, no rates are available at this time."}),t&&v.jsx(U3,{onBack:t})]});const se=re=>{if(y(oe=>({...oe,[re.quote_rate_id]:"idle"})),I(!1),Qc(),!M&&(s||!Jr())){fe(o),pe(""),ye("phone"),j("idle"),k(null),L({cardKey:re.quote_rate_id,rate:re});return}w({cardKey:re.quote_rate_id,rate:re})},_e=()=>{w(null),I(!1)},be=()=>{L(null),k(null),j("idle")},xe=async()=>{if(!A||!i)return;const re=V.trim();if(!re){k("Please enter your phone number.");return}j("sending"),k(null);try{await N5(i,re),ye("code"),j("sent")}catch{j("idle"),k("We could not send a code to that number. Please check it and try again.")}},$e=async()=>{if(!A||!i)return;const re=ne.trim();if(!re){k("Please enter the code we texted you.");return}j("verifying"),k(null);try{const{isVerified:oe,token:Ce}=await g0(i,re);if(!oe||!Ce){j("sent"),k("That code was incorrect. Please try again.");return}Wc(Ce);const Ee=A;Z(!0),L(null),j("idle"),w(Ee)}catch{j("sent"),k("Something went wrong verifying your code. Please try again.")}},Me=async()=>{if(!x||!R)return;const re=x.cardKey;y(oe=>({...oe,[re]:"loading"}));try{if(Qc(),!Jr())throw new Error("Authentication required. Please verify your phone number first.");if(!((await uj(re,!0))?.success!==!1))throw new Error("Request failed");y(Te=>({...Te,[re]:"success"})),w(null),I(!1)}catch{y(oe=>({...oe,[re]:"error"}))}};if(A){const re=Ae==="sending"||Ae==="verifying",oe=["h-12 rounded-full text-white font-bold transition","flex items-center justify-center gap-2","disabled:cursor-not-allowed",re?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),Ce="credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed";return v.jsx("section",{className:"mt-8",children:J==="phone"?v.jsxs(v.Fragment,{children:[v.jsx(zE,{id:"phone",label:"What is your phone number?",value:V,onChange:Ee=>fe(Ee.currentTarget.value),error:de??void 0}),v.jsxs("div",{className:"mt-3 text-xs text-slate-600 space-y-1",children:[v.jsx("p",{children:"We'll text you a 6-digit code to confirm your number. This is just to confirm your number, not a sales call."}),v.jsx("p",{children:"Message & data rates may apply. One message per request."}),v.jsxs("p",{children:["See our"," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","and"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"}),"."]})]}),v.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[v.jsx("button",{type:"button",onClick:be,className:Ce,children:"Back to rates"}),v.jsx("button",{type:"button",onClick:xe,disabled:re,className:oe,children:Ae==="sending"?"Sending…":"Send code"})]})]}):v.jsxs(v.Fragment,{children:[v.jsx(jc,{id:"sms_code",label:"Please enter the code we sent to your phone number.",value:ne,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,autoComplete:"one-time-code",onChange:Ee=>pe(Ee.currentTarget.value.replace(/\D+/g,"").slice(0,6)),error:de??void 0}),v.jsx(k5,{stageKey:"SMSVerification"}),v.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[v.jsx("button",{type:"button",onClick:()=>{ye("phone"),k(null)},className:Ce,children:"Change number"}),v.jsx("button",{type:"button",onClick:$e,disabled:re,className:oe,children:Ae==="verifying"?"Verifying…":"Verify & continue"})]})]})})}if(x){const re=x.rate.lob?Ad[x.rate.lob]||x.rate.lob:null;return v.jsx("section",{className:"mt-8",children:v.jsx(sz,{carrierName:Ti(x.rate.carrier_name),formattedPremium:G5.format(Z5(x.rate)/100),lobLabel:re,acknowledged:R,onAcknowledgeChange:I,onCancel:_e,onProceed:Me,isProcessing:h[x.cardKey]==="loading",hasError:h[x.cardKey]==="error"})})}return v.jsxs("section",{className:"mt-8",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Rates"}),De.length>0&&v.jsx("div",{className:"mt-3 space-y-1",children:De.map(re=>v.jsx("p",{className:"text-sm text-slate-600",children:re},re))}),v.jsx("div",{className:"mt-4 border-b border-slate-200",children:v.jsxs("div",{className:"flex items-center gap-6",role:"tablist","aria-label":"Rate market type",children:[v.jsxs("button",{id:Kr.admitted.tab,type:"button",role:"tab","aria-selected":g==="admitted","aria-controls":Kr.admitted.panel,onClick:()=>E("admitted"),onKeyDown:Ie,className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="admitted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Admitted (",T,")"]}),v.jsxs("button",{id:Kr.non_admitted.tab,type:"button",role:"tab","aria-selected":g==="non_admitted","aria-controls":Kr.non_admitted.panel,onClick:()=>E("non_admitted"),onKeyDown:Ie,className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="non_admitted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Non-admitted (",N,")"]}),ie>0&&v.jsxs("button",{id:Kr.not_quoted.tab,type:"button",role:"tab","aria-selected":g==="not_quoted","aria-controls":Kr.not_quoted.panel,onClick:()=>E("not_quoted"),className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="not_quoted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Not Quoted (",ie,")"]})]})}),v.jsx("div",{id:Kr[g].panel,role:"tabpanel","aria-labelledby":Kr[g].tab,tabIndex:0,children:g==="not_quoted"?he.map(re=>v.jsxs("div",{className:"mt-6",children:[re.lob!=null&&v.jsx("h4",{className:"mb-3 text-center text-base font-semibold text-slate-800",children:re.title}),v.jsx("div",{className:"space-y-3",children:re.rates.map(oe=>v.jsx(dz,{item:oe},oe.quote_rate_id))})]},re.lob??"all")):v.jsxs(v.Fragment,{children:[we.length===0&&v.jsx("p",{className:"mt-4 text-sm text-slate-500",children:g==="admitted"?"Sorry, no admitted rates are available at this time.":"Sorry, no non-admitted rates are available at this time."}),we.length>0&&me.map(re=>v.jsxs("div",{className:"mt-6",children:[v.jsx("h4",{className:"mb-3 text-center text-base font-semibold text-slate-800",children:re.title}),v.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:re.rates.map(oe=>v.jsx("div",{className:"w-full min-w-0 sm:w-[calc(50%-0.5rem)] lg:w-[calc(33.333%-0.667rem)] xl:w-[calc(25%-0.75rem)]",children:v.jsx(cz,{rate:oe,showLobLabel:re.lob==null,status:h[oe.quote_rate_id]??"idle",disabled:W||(n?!!(oe.lob&&G.includes(oe.lob)&&C.has(oe.lob)):U),onRequestBind:()=>se(oe)})},oe.quote_rate_id))})]},re.lob??"all"))]})}),t&&v.jsx(U3,{onBack:t})]})}function mz({stageKey:e,title:t,questions:n,values:i,onChangeValues:o,review:s,quoteId:c,fetchVehicleOptions:d}){const m=b.useMemo(()=>new Set(Object.keys(s.errorsByKey)),[s.errorsByKey]);return v.jsxs("section",{id:`review-section-${e}`,"data-testid":`review-section-${e}`,className:`review-section rounded-lg border p-4 ${s.hasIssues?"border-amber-300 bg-amber-50/40":"border-slate-200"}`,children:[v.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[v.jsx("h3",{className:"text-base font-semibold text-text-primary",children:t}),s.hasIssues?v.jsxs("span",{"data-testid":`review-section-${e}-badge`,className:"shrink-0 rounded-full bg-amber-100 border border-amber-300 text-amber-800 text-xs font-semibold px-2.5 py-1",children:[s.issues.length," ",s.issues.length===1?"field needs":"fields need"," attention"]}):v.jsx("svg",{"data-testid":`review-section-${e}-ok`,className:"h-5 w-5 shrink-0 text-emerald-600",viewBox:"0 0 20 20",fill:"currentColor",role:"img","aria-label":"Section complete",children:v.jsx("path",{fillRule:"evenodd",d:"M16.704 5.29a1 1 0 010 1.415l-7.5 7.5a1 1 0 01-1.415 0l-3.5-3.5a1 1 0 011.415-1.415l2.792 2.793 6.793-6.793a1 1 0 011.415 0z",clipRule:"evenodd"})})]}),s.hasIssues&&v.jsx("ul",{className:"mb-3 list-disc list-inside space-y-0.5 text-sm text-amber-800","data-testid":`review-section-${e}-issues`,children:s.issues.map(h=>v.jsxs("li",{children:[h.label,": ",h.message]},h.key))}),v.jsx(O5,{questions:n,controlledValues:i,onChangeValues:o,onSubmit:()=>{},quoteId:c,widgetStageKey:e,invalidValueKeys:m,fetchVehicleOptions:d})]})}const H3=new Set(["make","model","body_style","occupation","co_applicant_occupation","quote_vehicle_id"]),V3={vehicles:"Vehicle",drivers:"Driver",driver_accidents:"Accident",driver_violations:"Violation",losses:"Loss",home_losses:"Loss"};function G3(e){const t=e.options;return Array.isArray(t)?t.map(n=>n&&typeof n=="object"&&"value"in n?String(n.value):String(n)):[]}const pz=new Set(["SMSVerification","CanopyConnect","Phone"]);function hz({stageKey:e,questions:t,values:n}){const i=of(t,n,e),o=Fs(i,n),s=new Map(i.map((h,y)=>[Ya(h,y),h])),c={},d=[];for(const[h,y]of Object.entries(o))!y||!s.has(h)||(c[h]=y,d.push({key:h,label:s.get(h)?.question??h,message:y}));i.forEach((h,y)=>{const g=Ya(h,y);if(c[g]||h.inputType!=="select"&&h.inputType!=="radio"||H3.has(String(h.key??"")))return;const E=G3(h);if(E.length===0)return;const S=n[g];Cr(S,h.inputType)||E.includes(String(S))||(c[g]="Not a valid option",d.push({key:g,label:h.question??g,message:"Choose a valid option from the list"}))}),v0(t,n,e,(h,y,g)=>{h.forEach(E=>{if(E.inputType!=="select"&&E.inputType!=="radio")return;const S=String(E.key??"");if(!S||H3.has(S))return;const D=G3(E);if(D.length===0)return;const x=y[S];if(!Cr(x,E.inputType)&&!D.includes(String(x))){const w=V3[g.groupKey]??g.groupKey,R=`${g.groupKey}__items.${g.index}.${S}`;c[R]="Not a valid option",d.push({key:R,label:`${w} ${g.index+1} — ${E.question??S}`,message:"Choose a valid option from the list"})}})});for(const h of ez(t,n,e)){const y=V3[h.groupKey]??h.groupKey;if(h.index<0){d.push({key:`${h.groupKey}__missing`,label:y,message:"Add at least one entry"});continue}const g=`${h.groupKey}__items.${h.index}.${h.fieldKey}`;if(c[g])continue;c[g]=h.message;const E=h.fieldLabel?`${y} ${h.index+1} — ${h.fieldLabel}`:`${y} ${h.index+1}`;d.push({key:g,label:E,message:h.message})}if(i.some(h=>String(h.key??"")==="vehicle_policy_selections")&&U5(n)&&d.push({key:"__vehicle_policy",label:"Vehicle coverage selections",message:"Coverage selections are incomplete"}),_z(n,i)&&d.push({key:"__dva",label:"Driver usage",message:"Driver usage percentages must total 100% (50/50 is not allowed)"}),i.some(h=>h.inputType==="address"&&String(h.key??"")==="address")){const h=vz(n);h&&d.push(h)}return{stageKey:e,errorsByKey:c,issues:d,hasIssues:d.length>0}}async function yz(e,t){const n=e.vehicles__items??[];if(!Array.isArray(n)||n.length===0)return[];const i=[];for(const[o,s]of n.entries()){if(typeof s!="object"||s===null)continue;const c=Number(s.year),d=typeof s.make=="string"?s.make.trim():"",m=typeof s.model=="string"?s.model.trim():"",h=typeof s.body_style=="string"?s.body_style.trim():"";if(!(!Number.isFinite(c)||!c||!d))try{const{makes:y}=await t({year:c});if(Array.isArray(y)&&y.length>0&&!y.includes(d)){i.push({key:`vehicles__items.${o}.make`,label:`Vehicle ${o+1} — Make`,message:`"${d}" isn't available for ${c} — choose the make from the list`});continue}if(!m)continue;const{models:g}=await t({year:c,make:d});if(Array.isArray(g)&&g.length>0&&!g.includes(m)){i.push({key:`vehicles__items.${o}.model`,label:`Vehicle ${o+1} — Model`,message:`"${m}" isn't a listed model for the ${c} ${d} — choose the model from the list`});continue}if(!h)continue;const{bodyStyles:E}=await t({year:c,make:d,model:m});Array.isArray(E)&&E.length>0&&!E.includes(h)&&i.push({key:`vehicles__items.${o}.body_style`,label:`Vehicle ${o+1} — Body style`,message:"Choose the body style from the list"})}catch{}}return i}const gz=/^[A-Z]{2}$/,bz=/^\d{5}(-\d{4})?$/;function vz(e){if(!(typeof e.address=="string"?e.address.trim():""))return null;const n=typeof e.state=="string"?e.state.trim().toUpperCase():"",i=e.postal_code==null?"":String(e.postal_code).trim();return gz.test(n)&&bz.test(i)?null:{key:"__address",label:"Property address",message:"Select your address from the dropdown suggestions so we can verify the state and ZIP code"}}function _z(e,t){if(!t.some(s=>String(s.key??"")==="driver_vehicle_assignments"||String(s.key??"")==="vehicle_policy_selections"))return!1;const n=e.driver_vehicle_assignments,i=e.drivers__items??[];if(!n||i.length<2)return!1;const o=e.vehicles__items??[];for(let s=0;s<o.length;s++){const c=n[`v${s}`];if(!c)continue;const d=i.map((y,g)=>c[`d${g}`]??0),m=d.filter(y=>y>0);if(m.length>=2&&m.every(y=>y===50))return!0;const h=d.reduce((y,g)=>y+g,0);if(h>0&&h!==100)return!0}return!1}function xi(e){const t={},n=h=>{if(typeof h=="string"){if(h==="Yes")return!0;if(h==="No")return!1}return h},i=Object.keys(e).filter(h=>!h.includes("__items")),o=new Set,s=new Set;for(const[h,y]of Object.entries(e))if(h.endsWith("__items")&&Array.isArray(y)){const g=h.replace("__items","");s.add(g),i.includes(g)&&y.forEach(E=>{typeof E=="object"&&E!==null&&Object.keys(E).forEach(S=>{o.add(S)})})}for(const[h,y]of Object.entries(e))if(h.endsWith("__items")){const g=h.replace("__items","");if(i.includes(g)){const S=Array.isArray(y)?y.map(D=>xi(D)):y;t[g]=S}}else if(!h.includes("__items")){if(s.has(h))continue;o.has(h)||(t[h]=n(y))}const c=t.auto_prior_carrier_name;if(typeof c=="string"&&c.trim()!==""){const h=c==="NoPriorInsurance";t.auto_has_prior_insurance=!h,h&&(delete t.auto_prior_years,delete t.auto_prior_months,delete t.auto_prior_expiration_date,delete t.auto_prior_liability_limit,delete t.auto_continuous_coverage_years,delete t.auto_cancelled_declined_refused_to_renew,delete t.auto_current_annual_premium_cents)}const d=t.home_prior_carrier_name;if(typeof d=="string"&&d.trim()!==""){const h=d==="NoPriorInsurance";t.home_has_prior_insurance=!h,h&&(delete t.home_prior_years,delete t.home_continuous_coverage_years,delete t.home_prior_expiration_date,delete t.property_insurance_cancelled)}Array.isArray(t.drivers)&&(t.drivers=t.drivers.map(h=>{if(!h||typeof h!="object")return h;const y={...h};return y.industry=Dd(y.industry),y.education_level=S5(y.education_level),y.occupation=D5(y.occupation),y}));const m=21474836;if("sale_price_cents"in t){const h=t.sale_price_cents;if(typeof h=="number"&&Number.isFinite(h)){const y=Math.trunc(h);if(y>=1){const g=Math.min(y,m);t.sale_price_cents=g*100}}}return Array.isArray(t.home_losses)&&(t.home_losses=t.home_losses.map(h=>{if(!h||typeof h!="object")return h;const y=h,g=y.amount_paid_cents;if(typeof g!="number"||!Number.isFinite(g))return y;const E=Math.trunc(g),S=Math.min(Math.max(E,0),m);return{...y,amount_paid_cents:S*100}})),t}const Ez={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming",PR:"Puerto Rico"};function Y5(e){const t=e?.trim().toUpperCase();if(!t)return"your state";const n=Ez[t];return n?`${n} (${t})`:"your state"}const Sz=1500,Dz=800;function $z(e){const t=e.vehicles__items??[];return Array.isArray(t)?t.map(n=>[n?.year,n?.make,n?.model,n?.body_style].map(i=>String(i??"")).join("|")).join(";"):""}function xz({stages:e,initialValues:t,quoteId:n,isSubmitting:i,onConfirmed:o}){const s=b.useMemo(()=>e.filter(te=>!pz.has(String(te.key))),[e]),[c,d]=b.useState(t),[m,h]=b.useState({}),[y,g]=b.useState(null),[E,S]=b.useState(!0),[D,x]=b.useState(0),[w,R]=b.useState(!1),[I,A]=b.useState(null),[L,M]=b.useState(!1);b.useEffect(()=>{let te=!1;return S(!0),g(null),Promise.all(s.map(async z=>{const T=await z.loadQuestions();return[String(z.key),[...T]]})).then(z=>{te||h(Object.fromEntries(z))}).catch(z=>{te||g(z instanceof Error?z.message:"Failed to load your review")}).finally(()=>{te||S(!1)}),()=>{te=!0}},[s,D]);const Z=b.useRef(null),V=b.useRef(!0);b.useEffect(()=>{if(V.current){V.current=!1;return}return Z.current&&window.clearTimeout(Z.current),Z.current=window.setTimeout(()=>{La(xi(c),!1).catch(te=>{console.warn("Review autosave failed (will retry on next edit / submit)",te)})},Sz),()=>{Z.current&&window.clearTimeout(Z.current)}},[c]);const fe=b.useCallback(te=>{d(z=>({...z,...te}))},[]),ne=b.useMemo(()=>{for(const[te,z]of Object.entries(m))if(z.some(T=>String(T.key??"")==="vehicles"))return te;return null},[m]),[pe,J]=b.useState([]),[ye,Ae]=b.useState(!1),j=b.useRef(0),de=$z(c),k=b.useRef(new Map),B=b.useRef(Promise.resolve()),X=b.useCallback(te=>{const z=`${te.year??""}|${te.make??""}|${te.model??""}`,T=k.current,N=T.get(z);if(N)return N;const ie=B.current.catch(()=>{}).then(()=>R5({quoteId:n,...te}));B.current=ie.catch(()=>{});const ge=ie.catch(Se=>{throw T.delete(z),Se});return T.set(z,ge),ge},[n]);b.useEffect(()=>{if(!ne||!de){J([]),Ae(!1);return}const te=++j.current;Ae(!0);const z=window.setTimeout(()=>{yz(c,X).then(T=>{j.current===te&&J(T)}).finally(()=>{j.current===te&&Ae(!1)})},Dz);return()=>window.clearTimeout(z)},[ne,de,n,X]);const F=b.useMemo(()=>{const te={};for(const z of s){const T=String(z.key),N=m[T];N&&(te[T]=hz({stageKey:T,questions:N,values:c}))}if(ne&&te[ne]&&pe.length>0){const z=te[ne];te[ne]={...z,errorsByKey:{...z.errorsByKey,...Object.fromEntries(pe.map(T=>[T.key,T.message]))},issues:[...z.issues,...pe],hasIssues:!0}}return te},[s,m,c,ne,pe]),G=b.useMemo(()=>Object.values(F).reduce((te,z)=>te+z.issues.length,0),[F]),C=i||L,U=!E&&!y&&G===0&&w&&!C&&!ye,W=b.useCallback(()=>{const te=s.find(z=>F[String(z.key)]?.hasIssues);te&&document.getElementById(`review-section-${String(te.key)}`)?.scrollIntoView({behavior:"smooth",block:"start"})},[s,F]),Y=b.useCallback(async()=>{if(U){A(null),M(!0);try{const te=typeof c.state=="string"?c.state:"";if(te){const{isSupported:z}=await M5(te);if(!z){A(`Sorry, Credify Corporation doesn't currently offer insurance in ${Y5(te)}. We're expanding our coverage and hope to serve your state soon.`);return}}await o(c)}catch{A("Oops, something went wrong. Please try again later.")}finally{M(!1)}}},[U,c,o]);return E?v.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"review-loading",children:v.jsx("div",{className:"text-slate-600",children:"Loading your details..."})}):y?v.jsxs("div",{className:"text-red-600 text-sm","data-testid":"review-load-error",children:[v.jsx("div",{children:y}),v.jsx("button",{type:"button",className:"credify-retry-btn underline mt-1 font-bold",onClick:()=>x(te=>te+1),children:"Retry"})]}):v.jsxs("div",{className:"space-y-6","data-testid":"review-screen",children:[v.jsxs("div",{className:"text-center",children:[v.jsx("h3",{className:"text-lg font-semibold text-text-primary",children:"Review your information"}),v.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Here's what we collected during your conversation. Please review each section, fix anything we got wrong, and fill in anything missing — then confirm below to see your quotes."})]}),G>0&&v.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between gap-3 rounded-md border border-amber-300 bg-amber-50 px-4 py-2.5 text-sm text-amber-800",role:"status","data-testid":"review-issue-summary",children:[v.jsxs("span",{children:[G," ",G===1?"field needs":"fields need"," your attention before you can continue."]}),v.jsx("button",{type:"button",onClick:W,className:"shrink-0 font-bold underline text-amber-800 hover:text-amber-900",children:"Show me"})]}),s.map(te=>{const z=String(te.key),T=m[z],N=F[z];return!T||!N?null:v.jsx(mz,{stageKey:z,title:te.title,questions:T,values:c,onChangeValues:fe,review:N,quoteId:n,fetchVehicleOptions:X},z)}),v.jsxs("div",{className:"rounded-lg border border-slate-200 p-4 space-y-4","data-testid":"review-consent-block",children:[v.jsx(ji,{id:"review-terms-checkbox","data-testid":"review-terms-checkbox",checked:w,onChange:te=>R(te.target.checked),disabled:i,label:"I have reviewed my information and confirm it is accurate, and I agree to the Terms of Service and Privacy Policy."}),v.jsxs("p",{className:"text-sm text-slate-600",children:["Credify Corporation – Texas #3309669."," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","|"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"})]})]}),I&&v.jsx("div",{className:"text-red-600 text-sm",role:"alert","data-testid":"review-submit-error",children:I}),v.jsxs("button",{type:"button","data-testid":"review-submit","data-widget-ctrl":"review-submit",onClick:Y,disabled:!U,className:["form-wizard-next-btn w-full","h-12 rounded-full text-white font-bold transition","cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",U?"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40":"bg-gray-300"].join(" "),children:[C&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Confirm & See My Quotes"]})]})}const fh=["Validating your details...","Checking underwriting rules...","Applying eligible discounts...","Reviewing your risk profile...","Calculating premium...","Check complete"],Z3={Auto:{label:"Auto Policy",icon:"🚗",accent:"#0369A1"},Home:{label:"Home Policy",icon:"🏠",accent:"#059669"},Bundle:{label:"Home + Auto Bundle",icon:"🔗",accent:"#7C3AED"}},Y3={Auto:6e4,Home:9e4,Bundle:12e4};function Cz({progress:e,color:t,size:n=80}){const i=(n-10)/2,o=2*Math.PI*i,s=o-e/100*o;return v.jsxs("svg",{width:n,height:n,style:{transform:"rotate(-90deg)"},"aria-hidden":"true",children:[v.jsx("circle",{cx:n/2,cy:n/2,r:i,fill:"none",stroke:"#F1F5F9",strokeWidth:6}),v.jsx("circle",{cx:n/2,cy:n/2,r:i,fill:"none",stroke:t,strokeWidth:6,strokeLinecap:"round",strokeDasharray:o,strokeDashoffset:s,style:{transition:"stroke-dashoffset 0.2s linear"}})]})}function Az({providers:e=[],totalTime:t=6e4,flow:n="Auto",isComplete:i=!1,onComplete:o}){const s=Z3[n]??Z3.Auto,c=Y3[n]??Y3.Auto,d=e.length>0?Math.floor(c/e.length):t,[m,h]=b.useState(0),[y,g]=b.useState(0),[E,S]=b.useState(0),[D,x]=b.useState(0),[w,R]=b.useState(!0),I=b.useRef(i),A=b.useRef(o),L=b.useRef(m),M=b.useRef(e.length),Z=b.useRef(!1),V=b.useRef(!1);b.useEffect(()=>{I.current=i,i&&e.length===0&&!Z.current&&(Z.current=!0,A.current?.())},[i,e.length]),b.useEffect(()=>{A.current=o},[o]),b.useEffect(()=>{L.current=m},[m]),b.useEffect(()=>{M.current=e.length,e.length>0&&(V.current=!1,h(0),g(0),S(0),x(0),R(!0))},[e.length]),b.useEffect(()=>{if(e.length===0){I.current&&!Z.current&&(Z.current=!0,A.current?.());return}V.current=!1;const J=100,ye=100/(d/J),Ae=setInterval(()=>{S(j=>{if(V.current||Z.current)return j;const de=j+ye;return de<100?de:(V.current=!0,setTimeout(()=>{if(I.current){if(Z.current)return;Z.current=!0,A.current?.();return}const B=L.current===M.current-1;R(!1),setTimeout(()=>{B?(h(0),g(X=>X+1)):h(X=>X+1),S(0),x(0),R(!0)},300)},400),100)})},J);return()=>clearInterval(Ae)},[m,d,e.length]),b.useEffect(()=>{if(e.length===0)return;const J=Math.floor(d/fh.length),ye=setInterval(()=>x(Ae=>Math.min(Ae+1,fh.length-1)),J);return()=>clearInterval(ye)},[m,d,e.length]);const fe=e.length===0,ne=fe?null:e[Math.min(m,e.length-1)],pe=y>0;return v.jsxs(v.Fragment,{children:[v.jsx("style",{children:`
122
122
  @keyframes providerPulse {
123
123
  0%, 100% { transform: scale(1); }
124
124
  50% { transform: scale(1.05); }
@@ -160,5 +160,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
160
160
  transition-duration: 0.001ms !important;
161
161
  }
162
162
  }
163
- `}),v.jsx("div",{style:{background:"#F8FAFC",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem",fontFamily:"'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",height:"100%",minHeight:400,overflowY:"auto"},children:v.jsxs("div",{style:{width:"100%",maxWidth:560},children:[v.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[v.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:u.accent+"12",border:`1px solid ${u.accent}30`,borderRadius:100,padding:"6px 16px",marginBottom:16},children:[v.jsx("span",{style:{fontSize:14},"aria-hidden":"true",children:u.icon}),v.jsx("span",{style:{fontSize:12,fontWeight:700,color:u.accent,letterSpacing:"0.1em",textTransform:"uppercase"},children:u.label})]}),v.jsx("h1",{style:{fontSize:26,fontWeight:700,color:"#0F172A",margin:0,letterSpacing:"-0.02em",lineHeight:1.3},children:fe?"Connecting to top carriers":"Fetching your best rates"}),v.jsx("p",{style:{fontSize:14,color:"#64748B",marginTop:8,marginBottom:0},children:fe?"Identifying the carriers eligible for your quote...":pe?"Still gathering — a few carriers are taking a little longer...":"We're reaching out to multiple insurers on your behalf"})]}),v.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:32},children:fe?v.jsx("div",{style:{display:"flex",gap:20},children:[0,1,2,3,4].map(J=>v.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[v.jsx("div",{style:{width:48,height:48,borderRadius:14,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${J*.12}s`}}),v.jsx("div",{style:{width:40,height:8,borderRadius:4,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${J*.12}s`}})]},`skeleton-${J}`))}):ne?v.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[v.jsxs("div",{style:{width:64,height:64,borderRadius:18,background:ne.color+"18",border:`2px solid ${ne.color}`,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16,color:ne.color,position:"relative",animation:"providerPulse 1.8s ease-in-out infinite"},children:[ne.abbr,v.jsx("div",{style:{position:"absolute",inset:-5,borderRadius:22,border:`2px solid ${ne.color}`,pointerEvents:"none",animation:"ringPulse 1.6s ease-in-out infinite"},"aria-hidden":"true"})]}),v.jsx("span",{style:{fontSize:13,fontWeight:600,color:ne.color,letterSpacing:"0.04em"},children:ne.name})]}):null}),v.jsxs("div",{className:`iq-card-fade ${w?"iq-card-visible":"iq-card-hidden"}`,style:{background:"#FFFFFF",borderRadius:24,border:"1px solid #E2E8F0",padding:32},children:[v.jsx("div",{style:{display:"flex",alignItems:"center",gap:20,marginBottom:28},children:fe||!ne?v.jsxs("div",{style:{flex:1,textAlign:"center",padding:"8px 0"},children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 6px"},children:"Please wait"}),v.jsx("h2",{style:{fontSize:18,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:"Checking eligible providers"}),v.jsx("p",{style:{fontSize:13,color:"#64748B",margin:0},children:"Reviewing your details against our carrier network"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{style:{position:"relative",flexShrink:0},children:[v.jsx(Cz,{progress:E,color:ne.color,size:80}),v.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsxs("span",{style:{fontSize:14,fontWeight:700,color:ne.color},"aria-hidden":"true",children:[Math.round(E),"%"]})})]}),v.jsxs("div",{style:{flex:1},children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 4px"},children:pe?"Still checking":"Now checking"}),v.jsx("h2",{style:{fontSize:20,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:ne.name}),v.jsx("p",{className:"iq-status-text",style:{fontSize:13,color:"#64748B",margin:0},role:"status","aria-live":"polite",children:fh[D]},`${m}-${D}`)]})]})}),v.jsxs("div",{children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.08em",textTransform:"uppercase",margin:"0 0 8px"},children:fe?"Initializing":"Gathering quotes"}),v.jsx("div",{style:{height:6,background:"#F1F5F9",borderRadius:100,overflow:"hidden"},children:v.jsx("div",{style:{height:"100%",width:"35%",background:u.accent,borderRadius:100,animation:"shimmerSlide 1.4s ease-in-out infinite"},"aria-hidden":"true"})})]})]})]})})]})}function q5({onGoBack:e}){return v.jsxs("section",{className:"mt-4",role:"alert","aria-labelledby":"submission-error-title",children:[v.jsxs("div",{className:"rounded-xl border border-red-200 bg-red-50 p-5",children:[v.jsx("h3",{id:"submission-error-title",className:"text-base font-semibold text-red-700",children:"Sorry, quote submission failed"}),v.jsx("p",{className:"mt-2 text-sm text-red-700",children:"We ran into an issue submitting your quote. Our team will investigate and get back to you soon."})]}),v.jsx("div",{className:"mt-5",children:v.jsx("button",{type:"button",onClick:e,className:"h-12 w-full rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",children:"Go back"})})]})}var mh={intercomAppId:"",cobrowseLicense:""};function wz(){try{return typeof mh<"u"&&mh?mh:{}}catch{return{}}}function Tz(e){const t=wz(),n=t.intercomAppId,i=t.cobrowseLicense;return{enabled:!!(n||i),intercomAppId:n||void 0,cobrowseLicense:i||void 0,proactiveOnError:!0}}const ph=new Map;function K5(e){if(typeof document>"u")return Promise.reject(new Error("loadScript called without a document"));const t=ph.get(e);if(t)return t;const n=new Promise((i,o)=>{const u=document.createElement("script");u.src=e,u.async=!0,u.onload=()=>i(),u.onerror=()=>{ph.delete(e),o(new Error(`Failed to load script: ${e}`))},document.head.appendChild(u)});return ph.set(e,n),n}let _0=!1;function Nz(){if(typeof window.Intercom=="function")return window.Intercom;const e=function(...t){e.c?.(t)};return e.q=[],e.c=t=>{e.q.push(t)},window.Intercom=e,e}function Mz(e){const t={app_id:e,hide_default_launcher:!0},n=rf();return n&&(t.quote_id=n),t}function W5(e){if(typeof window>"u")return;Nz();const t=Mz(e);if(window.intercomSettings=t,_0){window.Intercom("update",t);return}window.Intercom("boot",t),_0=!0,K5(`https://widget.intercom.io/widget/${e}`).catch(()=>{})}function Rz(){typeof window?.Intercom=="function"&&window.Intercom("show")}function Oz(e){typeof window?.Intercom=="function"&&window.Intercom("showNewMessage",e)}function kz(e){typeof window?.Intercom=="function"&&window.Intercom("update",e)}function Bz(){if(typeof window?.Intercom=="function")try{window.Intercom("shutdown")}catch{}_0=!1}const Lz="https://js.cobrowse.io/CobrowseIO.js";let E0=!1;async function Pz(e){await K5(Lz);const t=window.CobrowseIO;if(!t)return null;if(!E0){t.license=e,t.redactedViews=["input","select","textarea","[data-credify-redact]"],t.customData={quote_id:rf()??void 0,device_name:"Credify Insurance Widget"},t.confirmSession=()=>Promise.resolve(typeof window<"u"?window.confirm("Allow a Credify support agent to view your screen?"):!1);try{await t.client?.()}catch{}t.start?.(),E0=!0}return t}async function Iz(e){if(typeof window>"u")return null;try{const t=await Pz(e);return t?.createSessionCode?await t.createSessionCode():null}catch{return null}}function Fz(){try{window.CobrowseIO?.stop?.()}catch{}E0=!1}const jz="Hi! It looks like something went wrong submitting your quote. We're here to help — tell us what you were trying to do and we'll jump in.";let ur=null,Xc=null,S0=!1;function zz(e){Gz();const t=Tz();if(ur=t,!!t.enabled&&t.proactiveOnError&&t.intercomAppId){const n=i=>{S0||(S0=!0,W5(t.intercomAppId),kz({last_quote_error:i?.reason??"unknown"}),Oz(jz))};P5("submissionFailed",n),Xc=n}}function Q5(){!ur?.enabled||!ur.intercomAppId||(W5(ur.intercomAppId),Rz())}function Uz(){return!ur?.enabled||!ur.cobrowseLicense?Promise.resolve(null):Iz(ur.cobrowseLicense)}function Hz(){return!!(ur?.enabled&&ur.intercomAppId)}function Vz(){return!!(ur?.enabled&&ur.cobrowseLicense)}function Gz(){Xc&&(I5("submissionFailed",Xc),Xc=null),Bz(),Fz(),S0=!1,ur=null}const Zz="Chat with our support team in real time — we'll help you finish your quote.",Yz="Share your screen with a support agent so they can see what you see and guide you in real time. We'll generate a secure code — share it with your agent to begin. Your personal information stays hidden.",q3="inline-flex h-9 w-9 items-center justify-center rounded-full text-slate-500 hover:bg-slate-100 hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 disabled:opacity-60",K3="pointer-events-none absolute bottom-full left-1/2 z-10 mb-2 w-60 -translate-x-1/2 rounded-lg bg-slate-800 px-3 py-2 text-center text-xs leading-snug text-white shadow-lg transition-opacity duration-150";function qz(){const e=Hz(),t=Vz(),[n,i]=b.useState(null),[o,u]=b.useState(!1),[c,d]=b.useState(!1),[m,h]=b.useState(null),y=b.useCallback(async()=>{u(!0),d(!1);try{const g=await Uz();g?i(g):d(!0)}finally{u(!1)}},[]);return!e&&!t?null:v.jsxs("div",{className:"flex flex-col items-center gap-1.5 text-sm text-slate-500",children:[v.jsx("span",{className:"font-medium",children:"Need help?"}),v.jsxs("div",{className:"inline-flex items-center gap-1",children:[e&&v.jsxs("span",{className:"relative inline-flex",onMouseEnter:()=>h("chat"),onMouseLeave:()=>h(null),children:[v.jsx("button",{type:"button",onClick:Q5,onFocus:()=>h("chat"),onBlur:()=>h(null),onKeyDown:g=>{g.key==="Escape"&&(g.stopPropagation(),h(null))},"aria-label":"Chat with support","aria-describedby":"credify-chat-tooltip",className:q3,children:v.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:v.jsx("path",{d:"M21 11.5a8.38 8.38 0 0 1-8.5 8.5 9 9 0 0 1-3.8-.8L3 21l1.3-4.2A8.38 8.38 0 0 1 3.5 11.5 8.5 8.5 0 0 1 12 3a8.38 8.38 0 0 1 9 8.5Z",strokeLinejoin:"round"})})}),v.jsx("span",{id:"credify-chat-tooltip",role:"tooltip",className:`${K3} ${m==="chat"?"opacity-100":"opacity-0"}`,children:Zz})]}),e&&t&&v.jsx("span",{className:"mx-1 h-6 w-px bg-slate-200","aria-hidden":"true"}),t&&v.jsxs("span",{className:"relative inline-flex",onMouseEnter:()=>h("screen"),onMouseLeave:()=>h(null),children:[v.jsx("button",{type:"button",onClick:y,disabled:o,onFocus:()=>h("screen"),onBlur:()=>h(null),onKeyDown:g=>{g.key==="Escape"&&(g.stopPropagation(),h(null))},"aria-label":"Share your screen with an agent","aria-describedby":"credify-cobrowse-tooltip",className:q3,children:o?v.jsx("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-slate-300 border-t-slate-600","aria-hidden":"true"}):v.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[v.jsx("rect",{x:"2.5",y:"4",width:"19",height:"13",rx:"2"}),v.jsx("path",{d:"M8 21h8M12 17v4",strokeLinecap:"round"}),v.jsx("path",{d:"M12 13V8m0 0-2 2m2-2 2 2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),v.jsx("span",{id:"credify-cobrowse-tooltip",role:"tooltip",className:`${K3} ${m==="screen"?"opacity-100":"opacity-0"}`,children:Yz})]})]}),n&&v.jsxs("span",{children:["Read this code to your agent: ",v.jsx("strong",{className:"tracking-widest text-text-primary",children:n})]}),c&&v.jsx("span",{className:"text-red-600",children:"Couldn't start screen sharing. Please try chat instead."})]})}let W3=null;function Kz(){const e=W3;return W3=null,e}let Wz=!1;function Qz(){return Wz}function He(e){if(e===!0)return"Yes";if(e===!1)return"No"}function $n(e){if(e)try{const t=typeof e=="string"?new Date(e):e;return isNaN(t.getTime())?void 0:t.toISOString().split("T")[0]}catch{return}}function Jz(e){const t=e,n={};t.phone&&(n.phone=t.phone),t.first_name&&(n.first_name=t.first_name),t.last_name&&(n.last_name=t.last_name),t.email&&(n.email=t.email),t.date_of_birth&&(n.date_of_birth=$n(t.date_of_birth)),t.product&&(n.product=t.product),t.state&&(n.state=t.state),t.postal_code&&(n.postal_code=t.postal_code);const i=[];t.line_1&&i.push(t.line_1),t.line_2&&i.push(t.line_2),t.city&&i.push(t.city),t.state&&i.push(t.state),t.postal_code&&i.push(t.postal_code),i.length>0&&(n.address=i.join(", ")),typeof t.ssn_display=="string"&&(n.ssn_display=t.ssn_display),t.years_at_address!==null&&t.years_at_address!==void 0&&(n.years_at_address=t.years_at_address),t.months_at_address!==null&&t.months_at_address!==void 0&&(n.months_at_address=t.months_at_address),t.move_in_date&&(n.move_in_date=$n(t.move_in_date));const o=[];t.prior_line_1&&o.push(t.prior_line_1),t.prior_line_2&&o.push(t.prior_line_2),t.prior_city&&o.push(t.prior_city),t.prior_state&&o.push(t.prior_state),t.prior_postal_code&&o.push(t.prior_postal_code),o.length>0&&(n.prior_address=o.join(", ")),t.years_at_prior_address!==null&&t.years_at_prior_address!==void 0&&(n.years_at_prior_address=t.years_at_prior_address),t.is_mailing_address_different!==null&&t.is_mailing_address_different!==void 0&&(n.is_mailing_address_different=He(t.is_mailing_address_different)),t.mailing_address&&(n.mailing_address=t.mailing_address),t.effective_date&&(n.effective_date=$n(t.effective_date)),t.auto_has_prior_insurance!==null&&t.auto_has_prior_insurance!==void 0&&(n.auto_has_prior_insurance=He(t.auto_has_prior_insurance)),t.auto_prior_expiration_date&&(n.auto_prior_expiration_date=$n(t.auto_prior_expiration_date)),t.auto_prior_carrier_name&&(n.auto_prior_carrier_name=t.auto_prior_carrier_name),t.auto_prior_liability_limit&&(n.auto_prior_liability_limit=t.auto_prior_liability_limit),t.auto_reason_for_no_insurance&&(n.auto_reason_for_no_insurance=t.auto_reason_for_no_insurance),t.auto_prior_years!==null&&t.auto_prior_years!==void 0&&(n.auto_prior_years=t.auto_prior_years),t.auto_prior_months!==null&&t.auto_prior_months!==void 0&&(n.auto_prior_months=t.auto_prior_months),t.auto_continuous_coverage_years!==null&&t.auto_continuous_coverage_years!==void 0&&(n.auto_continuous_coverage_years=t.auto_continuous_coverage_years),t.auto_cancelled_declined_refused_to_renew!==null&&t.auto_cancelled_declined_refused_to_renew!==void 0&&(n.auto_cancelled_declined_refused_to_renew=He(t.auto_cancelled_declined_refused_to_renew)),t.auto_current_annual_premium_cents!==null&&t.auto_current_annual_premium_cents!==void 0&&(n.auto_current_annual_premium_cents=t.auto_current_annual_premium_cents),t.policy_bi&&(n.policy_bi=t.policy_bi),t.policy_um&&(n.policy_um=t.policy_um),t.policy_pd&&(n.policy_pd=t.policy_pd),t.policy_mp&&(n.policy_mp=t.policy_mp),t.policy_umpd&&(n.policy_umpd=t.policy_umpd),t.policy_pip&&(n.policy_pip=t.policy_pip),t.policy_auto_death_indemnity&&(n.policy_auto_death_indemnity=t.policy_auto_death_indemnity),t.driver_vehicle_assignments&&(n.driver_vehicle_assignments=t.driver_vehicle_assignments),t.home_has_prior_insurance!==null&&t.home_has_prior_insurance!==void 0&&(n.home_has_prior_insurance=He(t.home_has_prior_insurance)),t.home_prior_expiration_date&&(n.home_prior_expiration_date=$n(t.home_prior_expiration_date)),t.home_prior_carrier_name&&(n.home_prior_carrier_name=t.home_prior_carrier_name),t.home_prior_years!==null&&t.home_prior_years!==void 0&&(n.home_prior_years=t.home_prior_years),t.home_continuous_coverage_years!==null&&t.home_continuous_coverage_years!==void 0&&(n.home_continuous_coverage_years=t.home_continuous_coverage_years),t.property_insurance_cancelled!==null&&t.property_insurance_cancelled!==void 0&&(n.property_insurance_cancelled=He(t.property_insurance_cancelled)),t.lapse_in_coverage!==null&&t.lapse_in_coverage!==void 0&&(n.lapse_in_coverage=He(t.lapse_in_coverage)),t.year_built!==null&&t.year_built!==void 0&&(n.year_built=t.year_built),t.number_of_units!==null&&t.number_of_units!==void 0&&(n.number_of_units=t.number_of_units),t.number_of_stories!==null&&t.number_of_stories!==void 0&&(n.number_of_stories=t.number_of_stories),t.number_of_beds!==null&&t.number_of_beds!==void 0&&(n.number_of_beds=t.number_of_beds),t.number_of_full_baths!==null&&t.number_of_full_baths!==void 0&&(n.number_of_full_baths=t.number_of_full_baths),t.number_of_partial_baths!==null&&t.number_of_partial_baths!==void 0&&(n.number_of_partial_baths=t.number_of_partial_baths),t.under_construction!==null&&t.under_construction!==void 0&&(n.under_construction=He(t.under_construction)),t.distance_from_fire_hydrant_ft&&(n.distance_from_fire_hydrant_ft=t.distance_from_fire_hydrant_ft),t.distance_from_fire_station_miles&&(n.distance_from_fire_station_miles=t.distance_from_fire_station_miles),t.architectural_style&&(n.architectural_style=t.architectural_style),t.dwelling_type&&(n.dwelling_type=t.dwelling_type),t.construction_quality&&(n.construction_quality=t.construction_quality),t.located_over_water!==null&&t.located_over_water!==void 0&&(n.located_over_water=t.located_over_water),t.construction_type&&(n.construction_type=t.construction_type),t.exterior_wall_type&&(n.exterior_wall_type=t.exterior_wall_type),t.foundation_type&&(n.foundation_type=t.foundation_type),t.roof_material_type&&(n.roof_material_type=t.roof_material_type),t.roof_shape&&(n.roof_shape=t.roof_shape),t.roof_updated_type&&(n.roof_updated_type=t.roof_updated_type),t.year_roof_updated!==null&&t.year_roof_updated!==void 0&&(n.year_roof_updated=t.year_roof_updated),t.mit_credit_form!==null&&t.mit_credit_form!==void 0&&(n.mit_credit_form=He(t.mit_credit_form)),t.storm_shutters!==null&&t.storm_shutters!==void 0&&(n.storm_shutters=He(t.storm_shutters)),t.heating_type&&(n.heating_type=t.heating_type),t.oil_tank_location&&(n.oil_tank_location=t.oil_tank_location),t.heating_fuel_type&&(n.heating_fuel_type=t.heating_fuel_type),t.number_of_fireplaces!==null&&t.number_of_fireplaces!==void 0&&(n.number_of_fireplaces=t.number_of_fireplaces),t.basement_type&&(n.basement_type=t.basement_type),t.parking_type&&(n.parking_type=t.parking_type),t.number_of_parking_spaces!==null&&t.number_of_parking_spaces!==void 0&&(n.number_of_parking_spaces=t.number_of_parking_spaces),t.plumbing_type&&(n.plumbing_type=t.plumbing_type),t.pool_type&&(n.pool_type=t.pool_type),t.total_area_sq_ft!==null&&t.total_area_sq_ft!==void 0&&(n.total_area_sq_ft=t.total_area_sq_ft),t.parcel_area_sq_ft!==null&&t.parcel_area_sq_ft!==void 0&&(n.parcel_area_sq_ft=t.parcel_area_sq_ft),t.residence_type&&(n.residence_type=t.residence_type),t.usage_type&&(n.usage_type=t.usage_type),t.household_size!==null&&t.household_size!==void 0&&(n.household_size=t.household_size),t.number_of_mortgagees!==null&&t.number_of_mortgagees!==void 0&&(n.number_of_mortgagees=t.number_of_mortgagees),t.has_dog!==null&&t.has_dog!==void 0&&(n.has_dog=He(t.has_dog)),t.dog_breed_type&&(n.dog_breed_type=t.dog_breed_type),t.number_of_dogs!==null&&t.number_of_dogs!==void 0&&(n.number_of_dogs=t.number_of_dogs),t.has_vicious_animals!==null&&t.has_vicious_animals!==void 0&&(n.has_vicious_animals=He(t.has_vicious_animals)),t.has_business_on_premises!==null&&t.has_business_on_premises!==void 0&&(n.has_business_on_premises=He(t.has_business_on_premises)),t.business_class&&(n.business_class=t.business_class),t.occupancy_type&&(n.occupancy_type=t.occupancy_type),t.short_term_rental!==null&&t.short_term_rental!==void 0&&(n.short_term_rental=He(t.short_term_rental)),t.sale_price_cents!==null&&t.sale_price_cents!==void 0&&(n.sale_price_cents=Math.round(Number(t.sale_price_cents)/100)),t.number_of_families!==null&&t.number_of_families!==void 0&&(n.number_of_families=t.number_of_families),t.number_of_units_in_firewall!==null&&t.number_of_units_in_firewall!==void 0&&(n.number_of_units_in_firewall=t.number_of_units_in_firewall),t.heating_update_yn!==null&&t.heating_update_yn!==void 0&&(n.heating_update_yn=He(t.heating_update_yn)),t.heating_update_type&&(n.heating_update_type=t.heating_update_type),t.heating_update_year!==null&&t.heating_update_year!==void 0&&(n.heating_update_year=t.heating_update_year),t.plumbing_update_yn!==null&&t.plumbing_update_yn!==void 0&&(n.plumbing_update_yn=He(t.plumbing_update_yn)),t.plumbing_update_type&&(n.plumbing_update_type=t.plumbing_update_type),t.plumbing_update_year!==null&&t.plumbing_update_year!==void 0&&(n.plumbing_update_year=t.plumbing_update_year),t.electrical_update_yn!==null&&t.electrical_update_yn!==void 0&&(n.electrical_update_yn=He(t.electrical_update_yn)),t.electrical_update_type&&(n.electrical_update_type=t.electrical_update_type),t.electrical_update_year!==null&&t.electrical_update_year!==void 0&&(n.electrical_update_year=t.electrical_update_year),t.electric_circuit_breaker!==null&&t.electric_circuit_breaker!==void 0&&(n.electric_circuit_breaker=He(t.electric_circuit_breaker)),t.dwelling_replacement_cost!==null&&t.dwelling_replacement_cost!==void 0&&(n.dwelling_replacement_cost=t.dwelling_replacement_cost),t.other_structures_coverage!==null&&t.other_structures_coverage!==void 0&&(n.other_structures_coverage=t.other_structures_coverage),t.personal_property_coverage!==null&&t.personal_property_coverage!==void 0&&(n.personal_property_coverage=t.personal_property_coverage),t.loss_of_use_coverage!==null&&t.loss_of_use_coverage!==void 0&&(n.loss_of_use_coverage=t.loss_of_use_coverage),t.personal_liability&&(n.personal_liability=t.personal_liability),t.dwelling_medical_payments&&(n.dwelling_medical_payments=t.dwelling_medical_payments),t.all_perils_deductible&&(n.all_perils_deductible=t.all_perils_deductible),t.windstorm_deductible&&(n.windstorm_deductible=t.windstorm_deductible),t.has_garage!==null&&t.has_garage!==void 0&&(n.has_garage=He(t.has_garage)),t.has_pool!==null&&t.has_pool!==void 0&&(n.has_pool=He(t.has_pool)),t.has_trampoline!==null&&t.has_trampoline!==void 0&&(n.has_trampoline=He(t.has_trampoline)),t.gender&&(n.gender=t.gender),t.marital_status&&(n.marital_status=t.marital_status),t.employment_industry&&(n.employment_industry=t.employment_industry),t.occupation&&(n.occupation=t.occupation),t.has_co_applicant!==null&&t.has_co_applicant!==void 0&&(n.has_co_applicant=He(t.has_co_applicant)),t.co_applicant_first_name&&(n.co_applicant_first_name=t.co_applicant_first_name),t.co_applicant_middle_name&&(n.co_applicant_middle_name=t.co_applicant_middle_name),t.co_applicant_last_name&&(n.co_applicant_last_name=t.co_applicant_last_name),t.co_applicant_gender&&(n.co_applicant_gender=t.co_applicant_gender),t.co_applicant_marital_status&&(n.co_applicant_marital_status=t.co_applicant_marital_status),t.co_applicant_relationship&&(n.co_applicant_relationship=t.co_applicant_relationship),t.co_applicant_date_of_birth&&(n.co_applicant_date_of_birth=$n(t.co_applicant_date_of_birth)),t.co_applicant_employment_industry&&(n.co_applicant_employment_industry=t.co_applicant_employment_industry),t.co_applicant_occupation&&(n.co_applicant_occupation=t.co_applicant_occupation),t.retiree_discount!==null&&t.retiree_discount!==void 0&&(n.retiree_discount=He(t.retiree_discount)),t.gated_community_discount!==null&&t.gated_community_discount!==void 0&&(n.gated_community_discount=He(t.gated_community_discount)),t.multi_policy_discount!==null&&t.multi_policy_discount!==void 0&&(n.multi_policy_discount=He(t.multi_policy_discount)),t.non_smoker_discount!==null&&t.non_smoker_discount!==void 0&&(n.non_smoker_discount=He(t.non_smoker_discount)),t.first_time_buyer_discount!==null&&t.first_time_buyer_discount!==void 0&&(n.first_time_buyer_discount=He(t.first_time_buyer_discount)),t.fire_detection_system!==null&&t.fire_detection_system!==void 0&&(n.fire_detection_system=He(t.fire_detection_system)),t.burglar_alarm_system!==null&&t.burglar_alarm_system!==void 0&&(n.burglar_alarm_system=He(t.burglar_alarm_system)),t.burglar_alarm_system_type&&(n.burglar_alarm_system_type=t.burglar_alarm_system_type),t.smoke_detectors!==null&&t.smoke_detectors!==void 0&&(n.smoke_detectors=He(t.smoke_detectors)),t.sprinkler_system!==null&&t.sprinkler_system!==void 0&&(n.sprinkler_system=He(t.sprinkler_system)),t.sprinkler_system_type&&(n.sprinkler_system_type=t.sprinkler_system_type),t.gas_leakage_detector!==null&&t.gas_leakage_detector!==void 0&&(n.gas_leakage_detector=He(t.gas_leakage_detector)),t.deadbolt_locks!==null&&t.deadbolt_locks!==void 0&&(n.deadbolt_locks=He(t.deadbolt_locks)),t.fire_extinguisher!==null&&t.fire_extinguisher!==void 0&&(n.fire_extinguisher=He(t.fire_extinguisher)),t.order_credit_authorized!==null&&t.order_credit_authorized!==void 0&&(n.order_credit_authorized=He(t.order_credit_authorized)),t.has_health_insurance_auto_accident!==null&&t.has_health_insurance_auto_accident!==void 0&&(n.has_health_insurance_auto_accident=He(t.has_health_insurance_auto_accident)),t.is_corporation!==null&&t.is_corporation!==void 0&&(n.is_corporation=He(t.is_corporation)),t.named_insured_foreclosure_repo_bankruptcy!==null&&t.named_insured_foreclosure_repo_bankruptcy!==void 0&&(n.named_insured_foreclosure_repo_bankruptcy=He(t.named_insured_foreclosure_repo_bankruptcy)),t.named_insured_convicted_insurance_fraud!==null&&t.named_insured_convicted_insurance_fraud!==void 0&&(n.named_insured_convicted_insurance_fraud=He(t.named_insured_convicted_insurance_fraud));const u={};if(t.vehicles)for(const c of t.vehicles)c.quote_vehicle_id&&c.vin&&(u[c.quote_vehicle_id]=c.vin);return t.drivers&&t.drivers.length>0?(n.drivers="Yes",n.drivers__items=t.drivers.map(c=>{const d=c,m={};d.first_name&&(m.first_name=d.first_name),d.middle_name&&(m.middle_name=d.middle_name),d.last_name&&(m.last_name=d.last_name),d.date_of_birth&&(m.date_of_birth=$n(d.date_of_birth)),d.gender&&(m.gender=d.gender),d.marital_status&&(m.marital_status=d.marital_status),d.relationship_to_insured&&(m.relationship_to_insured=d.relationship_to_insured),d.is_registered_owner!==null&&d.is_registered_owner!==void 0&&(m.is_registered_owner=d.is_registered_owner?"Yes":"No"),d.license_state&&(m.license_state=d.license_state),d.license_status&&(m.license_status=d.license_status),d.license_number&&(m.license_number=d.license_number),d.date_first_licensed&&(m.date_first_licensed=$n(d.date_first_licensed)),d.education_level&&(m.education_level=S5(d.education_level)),d.occupation&&(m.occupation=D5(d.occupation)),d.industry&&(m.industry=Dd(d.industry)),d.employment_status&&(m.employment_status=d.employment_status),d.last_5_years_license_suspended_or_revoked!==null&&d.last_5_years_license_suspended_or_revoked!==void 0&&(m.last_5_years_license_suspended_or_revoked=He(d.last_5_years_license_suspended_or_revoked)),d.accident_prevention_course!==null&&d.accident_prevention_course!==void 0&&(m.accident_prevention_course=He(d.accident_prevention_course)),d.accident_prevention_course_date&&(m.accident_prevention_course_date=$n(d.accident_prevention_course_date)),d.sr22!==null&&d.sr22!==void 0&&(m.sr22=He(d.sr22));const h=d.ssn_display;typeof h=="string"&&(m.ssn_display=h);const y=d.driver_violations;y&&y.length>0&&(m.driver_violations="Yes",m.driver_violations__items=y.map(S=>{const D={};return S.code&&(D.code=S.code),S.occurred_at&&(D.occurred_at=$n(S.occurred_at)),D}));const g=d.driver_accidents;g&&g.length>0&&(m.driver_accidents="Yes",m.driver_accidents__items=g.map(S=>{const D={};return S.occurred_at&&(D.occurred_at=$n(S.occurred_at)),S.description&&(D.description=S.description),S.quote_vehicle_id&&(D.quote_vehicle_id=u[S.quote_vehicle_id]??S.quote_vehicle_id),S.property_damage_amount_paid_cents!==null&&S.property_damage_amount_paid_cents!==void 0&&(D.property_damage_amount_paid_cents=S.property_damage_amount_paid_cents),S.personal_injury_amount_paid_cents!==null&&S.personal_injury_amount_paid_cents!==void 0&&(D.personal_injury_amount_paid_cents=S.personal_injury_amount_paid_cents),D}));const E=d.losses;return E&&E.length>0&&(m.losses="Yes",m.losses__items=E.map(S=>{const D={};return S.description&&(D.description=S.description),S.date_of_incident&&(D.date_of_incident=$n(S.date_of_incident)),S.amount_paid_cents!==null&&S.amount_paid_cents!==void 0&&(D.amount_paid_cents=S.amount_paid_cents),S.quote_vehicle_id&&(D.quote_vehicle_id=u[S.quote_vehicle_id]??S.quote_vehicle_id),D})),m})):n.drivers="No",t.vehicles&&t.vehicles.length>0?(n.vehicles="Yes",n.vehicles__items=t.vehicles.map(c=>{const d=c,m={};d.vin&&(m.vin=d.vin),d.year!==null&&d.year!==void 0&&(m.year=String(d.year)),d.make&&(m.make=d.make),d.model&&(m.model=d.model),d.body_style&&(m.body_style=d.body_style),d.ownership_type&&(m.ownership_type=d.ownership_type),d.usage&&(m.usage=d.usage),d.annual_mileage!==null&&d.annual_mileage!==void 0&&(m.annual_mileage=d.annual_mileage),d.miles_to_work!==null&&d.miles_to_work!==void 0&&(m.miles_to_work=d.miles_to_work),d.percent_to_work!==null&&d.percent_to_work!==void 0&&(m.percent_to_work=d.percent_to_work);const h=[];return d.garaging_address_line_1&&h.push(d.garaging_address_line_1),d.garaging_address_line_2&&h.push(d.garaging_address_line_2),d.garaging_address_city&&h.push(d.garaging_address_city),d.garaging_address_state&&h.push(d.garaging_address_state),d.garaging_address_postal_code&&h.push(d.garaging_address_postal_code),h.length>0&&(m.garaging_address=h.join(", ")),d.new_when_purchased!==null&&d.new_when_purchased!==void 0&&(m.new_when_purchased=He(d.new_when_purchased)),d.purchase_date&&(m.purchase_date=$n(d.purchase_date)),d.anti_theft_type&&(m.anti_theft_type=d.anti_theft_type),d.passive_restraint_type&&(m.passive_restraint_type=d.passive_restraint_type),d.anti_lock_brakes!==null&&d.anti_lock_brakes!==void 0&&(m.anti_lock_brakes=He(d.anti_lock_brakes)),d.daytime_running_lights!==null&&d.daytime_running_lights!==void 0&&(m.daytime_running_lights=He(d.daytime_running_lights)),d.custom_equipment_value_cents!==null&&d.custom_equipment_value_cents!==void 0&&(m.custom_equipment_value_cents=d.custom_equipment_value_cents),d.cost_new_value_cents!==null&&d.cost_new_value_cents!==void 0&&(m.cost_new_value_cents=d.cost_new_value_cents),d.stated_value_amount_cents!==null&&d.stated_value_amount_cents!==void 0&&(m.stated_value_amount_cents=d.stated_value_amount_cents),d.vehicle_has_modifications!==null&&d.vehicle_has_modifications!==void 0&&(m.vehicle_has_modifications=He(d.vehicle_has_modifications)),d.vehicle_garaged_at_residence!==null&&d.vehicle_garaged_at_residence!==void 0&&(m.vehicle_garaged_at_residence=He(d.vehicle_garaged_at_residence)),d.vehicle_comp_deductible&&(m.vehicle_comp_deductible=d.vehicle_comp_deductible),d.vehicle_coll_deductible&&(m.vehicle_coll_deductible=d.vehicle_coll_deductible),d.vehicle_towing_and_labor&&(m.vehicle_towing_and_labor=d.vehicle_towing_and_labor),d.vehicle_transportation_expense&&(m.vehicle_transportation_expense=d.vehicle_transportation_expense),d.vehicle_full_glass!==null&&d.vehicle_full_glass!==void 0&&(m.vehicle_full_glass=He(d.vehicle_full_glass)),d.vehicle_loan_lease!==null&&d.vehicle_loan_lease!==void 0&&(m.vehicle_loan_lease=He(d.vehicle_loan_lease)),d.coverages&&d.coverages.length>0&&(m.coverages__items=d.coverages.map(y=>{const g={};return y.type&&(g.type=y.type),y.per_person_limit_cents!==null&&y.per_person_limit_cents!==void 0&&(g.per_person_limit_cents=y.per_person_limit_cents),y.per_incident_limit_cents!==null&&y.per_incident_limit_cents!==void 0&&(g.per_incident_limit_cents=y.per_incident_limit_cents),y.per_incident_limit_percent!==null&&y.per_incident_limit_percent!==void 0&&(g.per_incident_limit_percent=y.per_incident_limit_percent),y.per_day_limit_cents!==null&&y.per_day_limit_cents!==void 0&&(g.per_day_limit_cents=y.per_day_limit_cents),y.deductible_cents!==null&&y.deductible_cents!==void 0&&(g.deductible_cents=y.deductible_cents),y.is_declined!==null&&y.is_declined!==void 0&&(g.is_declined=He(y.is_declined)),g})),d.vehicle_lienholders&&d.vehicle_lienholders.length>0&&(m.vehicle_lienholders__items=d.vehicle_lienholders.map(y=>{const g={};return y.name&&(g.name=y.name),y.type&&(g.type=y.type),y.line_1&&(g.line_1=y.line_1),y.line_2&&(g.line_2=y.line_2),y.city&&(g.city=y.city),y.state&&(g.state=y.state),y.postal_code&&(g.postal_code=y.postal_code),y.phone&&(g.phone=y.phone),y.fax&&(g.fax=y.fax),g})),m})):n.vehicles="No",t.losses&&t.losses.length>0?(n.home_losses="Yes",n.home_losses__items=t.losses.map(c=>{const d={};return c.description&&(d.description=c.description),c.date_of_incident&&(d.date_of_incident=$n(c.date_of_incident)),c.amount_paid_cents!==null&&c.amount_paid_cents!==void 0&&(d.amount_paid_cents=Math.round(Number(c.amount_paid_cents)/100)),d})):n.home_losses="No",n}const Xz={Zip:"ZIP Code",Email:"Email",Product:"Product & Address",Home:"Home Details",Vehicle:"Vehicle",Name:"Name & DOB",Driver:"Operator",AutoCurrentCarrier:"Policy",HomeCurrentCarrier:"Policy",HomePolicy:"Policy",BundlePolicy:"Policy",Demographics:"Applicant",Ssn:"SSN",Phone:"Phone",SMSVerification:"Verify",AutoPolicy:"Policy",Customer:"Applicant",HomeCustomer:"Applicant",BundleCustomer:"Applicant",HomeConstruction:"Structure",HomeFeatures:"Features"};function eU(e){return Xz[e]||e}const Q3=new Set(["Zip","Product","Driver","Vehicle"]);function tU(e){return e?Array.isArray(e.drivers__items)?e.drivers__items.length:Array.isArray(e.drivers)?e.drivers.length:null:null}function J3(e,t){const n=tU(t),i=e.filter(u=>u.key!=="AutoPolicy"),o=i.length>0?i:e;return o}function nU(e,t){const n=e.findIndex(o=>o.key===t);return n<0?t:e[n+1]?.key??t}function J5(e){return e.some(t=>String(t.key)==="BundlePolicy"||String(t.key)==="BundleCustomer")}function X3(e){return J5(e)?"Bundle":e.some(t=>String(t.key)==="Vehicle"||String(t.key)==="Driver")?"Auto":"Home"}const rU={Auto:45e3,Home:5e4,Bundle:1e5},eE=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function aU(e,t){if(e!=="AutoCurrentCarrier")return t;const n=t.some(u=>String(u.key)==="auto_cancelled_declined_refused_to_renew"),i=t.some(u=>String(u.key)==="vehicle_policy_selections"),o=[...t];return n||o.push({question:"Has any auto insurance company cancelled, declined or refused to renew you in the last 5 years?",inputType:"radio",options:["Yes","No"],key:"auto_cancelled_declined_refused_to_renew",required:!0}),i||o.push({question:"Vehicle coverage selections",inputType:"custom",key:"vehicle_policy_selections",required:!1}),o}function iU(e,t){if(e!=="Vehicle")return t;const n=i=>i.map(o=>{const u=o.conditionals?.map(c=>{const d=c.conditionalQuestions??[];return d.length?{...c,conditionalQuestions:n(d)}:c});return String(o.key)!=="vin"?u?{...o,conditionals:u}:o:{...o,required:!1,...u?{conditionals:u}:{}}});return n(t)}function oU({isOpen:e,onClose:t}){const[n,i]=b.useState([]),[o,u]=b.useState(null),c=b.useRef(null);b.useEffect(()=>{c.current=o},[o]);const[d,m]=b.useState(null),[h,y]=b.useState(!1),[g,E]=b.useState(!1),[S,D]=b.useState(!1),[x,w]=b.useState(!1),[R,I]=b.useState([]),A=b.useRef(null),[L,M]=b.useState(null),[Z,V]=b.useState(void 0),[fe,ne]=b.useState(!1),[pe,J]=b.useState(null),[ye,Ae]=b.useState(null),[j,de]=b.useState(!1),[k,B]=b.useState(!1),[X,F]=b.useState(!1),G=b.useRef(!1),C=b.useRef(null),U=b.useRef(null),W=b.useRef(null),Y=b.useRef(null),[te,z]=b.useState(!1);b.useEffect(()=>{if(!S||x)return;const ue=X3(n);let _e=!1;const be=[];let xe=0,$e=0;const Me=66,re=3,oe=5e3;let Ce=!1;const Ee=async()=>{if(_e)return;xe++;try{const{quote:Re}=await S3(o??void 0);if(_e)return;if($e=0,!Ce){const qe=Re?.appetites??null,Ue=iz(qe,ue);Ue.length>0&&(I(Ue),Ce=!0)}const ke=Re?.rates_status??null;if(ke==="completed"){const{rates:qe}=await lh(o??void 0);if(_e)return;A.current=qe,w(!0);return}if(ke==="no_rates"){A.current=[],w(!0);return}if(ke==="failed"){Uo(new Error("Quote failed: rate-generation worker reported rates_status=failed"),{quoteId:c.current??void 0,phase:"rates_status_failed"}),pu({reason:"submission"}),J({message:"submission_failed"}),D(!1);return}}catch(Re){if($e++,console.warn("Provider polling: getQuote failed",{attempt:xe,consecutiveFailures:$e,error:Re}),$e>=re){Re?.__sentryReported||Uo(Re,{quoteId:c.current??void 0,phase:"rates_polling",message:`Quote failed: ${re} consecutive get-quote poll failures`}),pu({reason:"network"}),J({message:"submission_failed"}),D(!1);return}}if(_e)return;if(xe>=Me){Uo(new Error(`Quote failed: rate-generation timed out after ${Me} polls`),{quoteId:c.current??void 0,phase:"rates_polling_timeout"}),pu({reason:"timeout"}),J({message:"submission_failed"}),D(!1);return}const Te=window.setTimeout(Ee,oe);be.push(Te)};return Ee(),()=>{_e=!0,be.forEach(Te=>window.clearTimeout(Te))}},[S,x,n,o]);function T(ue){return ue.map(be=>({key:be,title:eU(be),loadQuestions:async()=>{const xe=await XF(be,c.current??void 0);let $e=aU(be,xe.questions);return $e=iU(be,$e),$e}}))}b.useEffect(()=>{const ue=async()=>{try{const _e=Kz();if(_e)try{const{token:xe,quoteId:$e}=await tj(_e);xe&&$e&&(Wc(xe),f3($e))}catch(xe){xe.statusCode===401&&B(!0)}const be=rf();if(Qc(),be){ne(!0),u(be);try{const xe=Jr(),$e=await S3(xe?void 0:be);if(!$e||!$e.quote)throw new Error("Invalid response from getQuote: missing quote data");const{quote:Me}=$e,{stages:re}=await Bc(be),oe=T(re);i(oe);let Ce;try{Ce=Jz(Me),M(Ce)}catch(Ue){throw new Error(`Failed to transform quote data: ${Ue instanceof Error?Ue.message:"Unknown error"}`)}const Ee=J3(oe,Ce);i(Ee);const Te=Me?.review_status??null;if(E(Te!=null),Te==="pending_review"&&Jr()){F(!0);return}const Re=Me?.rates_status??null,ke=Jr()!=null;if(ke||Te===null){if(Re==="completed")try{const{rates:Ue}=await lh(ke?void 0:be);m(Ue);return}catch(Ue){console.warn("Failed to fetch completed rates on resume",Ue)}else if(Re==="no_rates"){m([]);return}else if(Re==="processing"){I([]),w(!1),A.current=null,D(!0);return}}V(0)}catch(xe){const $e=xe;if($e.statusCode===404)$5(),u(null);else if($e.statusCode===401){T5();try{const{stages:Me}=await Bc(be),re=T(Me);i(re);const oe=re.findIndex(Ce=>Ce.key==="SMSVerification");V(oe>=0?oe:re.length-1)}catch{}}}finally{ne(!1)}}else{const{stages:xe}=await Bc();i(T(xe))}}catch{ne(!1)}};e&&!G.current&&(G.current=!0,ue())},[e]),b.useEffect(()=>{if(!e)return;const{overflow:ue}=document.body.style;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=ue}},[e]),b.useEffect(()=>{if(!e)return;Y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const ue=window.setTimeout(()=>{const _e=C.current;if(!_e)return;(_e.querySelector(eE)??_e).focus()},0);return()=>{window.clearTimeout(ue);const _e=Y.current;Y.current=null,_e&&document.contains(_e)&&_e.focus()}},[e]);const N=b.useCallback(ue=>{if(ue.key==="Escape"){te?(ue.preventDefault(),z(!1)):(ue.preventDefault(),z(!0));return}if(ue.key!=="Tab")return;const _e=te?U.current:C.current;if(!_e)return;const be=Array.from(_e.querySelectorAll(eE)).filter(re=>!re.hasAttribute("disabled")&&re.getAttribute("aria-hidden")!=="true");if(be.length===0){ue.preventDefault(),_e.focus();return}const xe=be[0],$e=be[be.length-1],Me=document.activeElement;ue.shiftKey&&Me===xe?(ue.preventDefault(),$e.focus()):!ue.shiftKey&&Me===$e&&(ue.preventDefault(),xe.focus())},[te]);b.useEffect(()=>{if(e)return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[e,N]),b.useEffect(()=>{if(!te)return;const ue=window.setTimeout(()=>{W.current?.focus()},0);return()=>window.clearTimeout(ue)},[te]),b.useEffect(()=>{e||(M(null),V(void 0),ne(!1),D(!1),Ae(null),de(!1),z(!1))},[e]),b.useEffect(()=>{e&&Uj()},[e]),b.useEffect(()=>{d&&Array.isArray(d)&&Zj({rateCount:d.length})},[d]);const ie=b.useCallback(()=>{J(null),V(Math.max(0,n.length-1))},[n.length]),ge=b.useCallback(async(ue,_e)=>{try{I([]),w(!1),A.current=null,D(!0);let be;try{be=await La(ue,!0,o??void 0)}catch(Me){throw D(!1),Me}if(be.status==="submission_failed"){Uo(new Error(`Quote failed at submission: ${be.message}`),{quoteId:o??void 0,phase:_e}),D(!1),w(!1),A.current=null,pu({reason:"submission"}),J({message:be.message});return}if(be.status==="success")try{const{rates:Me}=await lh(o??void 0);A.current=Me,w(!0)}catch(Me){throw D(!1),Me}const xe=n.length,$e=n[xe-1];L3({stageKey:$e?.key??"unknown",stageTitle:$e?.title??"unknown",stepIndex:xe,totalSteps:xe}),Gj()}catch(be){be?.__sentryReported||Uo(be,{quoteId:o??void 0,phase:_e}),D(!1),pu({reason:"submission"}),J({message:"Oops, something went wrong. Please try again later."})}},[o,n]),Se=b.useCallback(async ue=>{if(!(!ye||!o||j)){de(!0);try{const be={...xi(ye.allValues),communications_consent:ue};Ae(null),await ge(be,"consent_submit")}finally{de(!1)}}},[ye,o,j,ge]),he=b.useCallback(async ue=>{if(!(!o||j)){de(!0);try{M(ue);const _e={...xi(ue),customer_review_confirmed:!0};await ge(_e,"review_submit")}finally{de(!1)}}},[o,j,ge]);if(!e)return null;const we=()=>{z(!0)},Ie=()=>{z(!1)},me=()=>{Hj(),t()},De=!!(!pe&&d&&o&&!h);return v.jsxs("div",{ref:C,className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true","aria-labelledby":"insurance-modal-title",tabIndex:-1,children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsxs("div",{className:`modal-panel bg-white relative w-full flex flex-col max-h-[90vh] overflow-hidden ${De?"max-w-6xl":"max-w-2xl"}`,role:"document",children:[v.jsx("h2",{id:"insurance-modal-title",className:"sr-only",children:"Credify insurance quote widget"}),v.jsx("button",{onClick:we,className:"modal-close-btn absolute top-4 right-4","aria-label":"Close quote form",type:"button",children:v.jsx("span",{"aria-hidden":"true",children:"×"})}),!S&&!pe&&v.jsx("div",{className:"widget-modal-header text-center",children:v.jsx("h2",{className:"h1-title",children:"Let's shop multiple leading carriers for you"})}),v.jsxs("div",{className:"panel-body flex-1 min-h-0 overflow-hidden",children:[k&&v.jsxs("div",{className:"mb-4 flex items-start justify-between gap-3 rounded-md border border-amber-300 bg-amber-50 px-4 py-3 text-sm text-amber-800",role:"alert",children:[v.jsx("span",{children:"This resume link has expired or is no longer valid. For your security, emailed links only work for a limited time — you can continue your quote below."}),v.jsx("button",{type:"button",onClick:()=>B(!1),className:"shrink-0 font-bold text-amber-800 hover:text-amber-900","aria-label":"Dismiss",children:"×"})]}),pe&&v.jsx(q5,{onGoBack:ie}),!pe&&S&&(()=>{const ue=X3(n);return v.jsx(Az,{providers:R,totalTime:rU[ue],flow:ue,isComplete:x,onComplete:()=>{D(!1),w(!1),I([]),A.current&&(m(A.current),A.current=null)}})})(),!pe&&!S&&ye&&v.jsx(kO,{onChoose:Se,isSubmitting:j}),!pe&&!d&&!S&&!ye&&v.jsx(v.Fragment,{children:fe||n.length===0?v.jsx("div",{className:"flex items-center justify-center py-12",children:v.jsx("div",{className:"text-slate-600",children:"Loading..."})}):X&&o?v.jsx(xz,{stages:n,initialValues:L??{},quoteId:o,isSubmitting:j,onConfirmed:he}):v.jsx(nz,{stages:n,initialValues:L??void 0,initialActive:Z,quoteId:o??void 0,nonTerminalStageKeys:Q3,onStageComplete:async(ue,_e)=>{try{const be=xi(ue);let xe=o,$e=n;const Me=$e.findIndex(Ce=>Ce.key===_e),re=$e[Me],oe=nU($e,_e);if(xe)if(_e==="Phone"){const Ce=be.phone;if(!Ce)throw new Error("Phone number is required.");const Ee=Jr();await La({...be,current_stage:oe},!1,Ee?void 0:xe),await N5(xe,Ce)}else if(_e==="SMSVerification"){const{isVerified:Ce,token:Ee}=await g0(xe,be.sms_code);if(!Ce)throw new Error("Invalid SMS code");Ee&&Wc(Ee),await La({current_stage:oe},!1)}else if(_e==="Product"){const Ce=Jr(),{isSupported:Ee}=await M5(be.state,Ce?void 0:xe??void 0);if(await La({...be,current_stage:Ee?oe:_e},!1,Ce?void 0:xe),!Ee){const Te=Y5(be.state);throw new Error(`Sorry, Credify Corporation doesn't currently offer insurance in ${Te}. We're expanding our coverage and hope to serve your state soon.`)}}else{const Ce=Jr();await La({...be,current_stage:oe},!1,Ce?void 0:xe||void 0)}else{const Ce=be.postal_code??"";if(!Ce)throw new Error("ZIP code is required to start a quote.");const Te=(await ej(Ce,Qz()))?.quoteId;if(!Te||typeof Te!="string"||Te.trim()==="")throw new Error(`Failed to create quote - invalid quoteId returned: ${Te}`);xe=Te,u(Te),f3(Te),await La({...be,current_stage:oe},!1,Te)}if(_e==="Name"&&xe){const Ce=String(ue.product??"");(Ce==="Auto"||Ce==="Both")&&Nj(xe)}if(_e==="Vehicle"&&xe&&Oj(xe),Q3.has(_e))try{const{stages:Ce}=await Bc(xe||void 0);$e=T(Ce),$e=J3($e,ue),i($e)}catch(Ce){console.warn("Unable to refresh stages after flow-shaping step",Ce)}return L3({stageKey:_e,stageTitle:re?.title??_e,stepIndex:Me+1,totalSteps:$e.length}),{success:!0,latestStages:$e}}catch(be){return{success:!1,error:be instanceof Error?be.message:"An error occurred"}}},onComplete:async(ue,_e)=>{if(!o)return{success:!1,error:"Oops, something went wrong. Please try again later."};M(ue);try{if(_e==="Phone"){const be=xi(ue);if(!be.phone)return{success:!1,error:"Phone number is required."};const $e=Jr();return await La({...be,suppress_verification_sms:!0},!1,$e?void 0:o),Ae({allValues:ue}),{success:!0}}if(_e==="SMSVerification"){const be=xi(ue),{isVerified:xe,token:$e}=await g0(o,be.sms_code);return xe?($e&&Wc($e),Ae({allValues:ue}),{success:!0}):{success:!1,error:"Invalid SMS code"}}return Ae({allValues:ue}),{success:!0}}catch{const xe="Oops, something went wrong. Please try again later.";return J({message:xe}),{success:!1,error:xe}}}})})," ",!pe&&d&&o&&v.jsx(fz,{rates:d,onBack:()=>m(null),isBundleFlow:J5(n),quoteId:o,initialPhone:L?.phone??"",requirePursueVerification:g,onSubScreenChange:y})]}),v.jsxs("div",{className:"widget-legal-footer space-y-1.5",children:[v.jsx(qz,{}),v.jsx("p",{className:"text-center text-sm text-slate-500",children:"Insurance products offered through Credify Corporation, a licensed insurance agency."})]}),te&&v.jsx("div",{className:"close-confirm-backdrop",role:"presentation",children:v.jsxs("div",{ref:U,className:"close-confirm-dialog",role:"alertdialog","aria-modal":"true","aria-labelledby":"close-confirm-title","aria-describedby":"close-confirm-description",tabIndex:-1,children:[v.jsx("h3",{id:"close-confirm-title",children:"Close quote form?"}),v.jsx("p",{id:"close-confirm-description",children:"Your answers in this session will be lost if you close this window."}),v.jsxs("div",{className:"close-confirm-actions",children:[v.jsx("button",{ref:W,type:"button",className:"btn-outline",onClick:Ie,children:"Keep editing"}),v.jsx("button",{type:"button",className:"btn-primary close-confirm-danger",onClick:me,children:"Close form"})]})]})})]})]})}function lU({onClose:e}){return v.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true",children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsx("div",{className:"modal-panel bg-white relative w-full max-w-2xl p-6",children:v.jsx(q5,{onGoBack:e})})]})}var hh={dsn:"",environment:"production",release:"57ea74a8604e737cd511c4d889deefd328468da7"};function uU(){try{return typeof hh<"u"&&hh?hh:{}}catch{return{}}}let tE=!1;function sU(e,t){if(!e)return t;const n=Number(e);return Number.isFinite(n)&&n>=0&&n<=1?n:t}function cU(e={}){if(tE)return!0;if(typeof window>"u")return!1;const t=uU(),n=e.dsn??t.dsn;return!n||e.enabled===!1?!1:(HF({baseUrl:Rt}),I7({dsn:n,environment:e.environment??t.environment??"production",release:e.release??t.release,sendDefaultPii:!1,maxBreadcrumbs:50,tracesSampleRate:e.tracesSampleRate??sU(t.tracesSampleRate,.1),tracePropagationTargets:[Rt],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSend:i=>g3(i),beforeBreadcrumb:i=>i&&(g3({breadcrumbs:[i]}),i)}),tE=!0,L7("replayIntegration").then(i=>{try{hT(i({maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,networkDetailAllowUrls:[Rt],networkCaptureBodies:!1}))}catch{}}).catch(()=>{}),!0)}function dU(){const[e,t]=b.useState(!1);b.useEffect(()=>{cU(),zz()},[]);const n=b.useCallback(o=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:o,source:"credify-insurance-widget"},"*")},[]);b.useEffect(()=>{const o=(c,d,m)=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:"event",source:"credify-insurance-widget",event:c,data:d,meta:m},"*")},u=jj.map(c=>{const d=(m,h)=>o(c,m,h);return P5(c,d),[c,d]});return()=>{for(const[c,d]of u)I5(c,d)}},[]),b.useEffect(()=>{const o=u=>{if(u.data?.source==="credify-insurance-widget")switch(u.data.type){case"open":t(!0),n("opened");break;case"close":t(!1),n("closed");break;case"init":n("ready");break;case"support-open":Q5();break}};return window.addEventListener("message",o),n("ready"),()=>{window.removeEventListener("message",o)}},[n]);const i=b.useCallback(()=>{t(!1),n("closed")},[n]);return v.jsx(P0,{fallback:v.jsx(lU,{onClose:i}),children:v.jsx(oU,{isOpen:e,onClose:i})})}const fU="modulepreload",mU=function(e){return"/iframe/"+e},nE={},pU=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){let h=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};var c=h;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");o=h(n.map(y=>{if(y=mU(y),y in nE)return;nE[y]=!0;const g=y.endsWith(".css"),E=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${E}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":fU,g||(S.as="script"),S.crossOrigin="",S.href=y,m&&S.setAttribute("nonce",m),document.head.appendChild(S),g)return new Promise((D,x)=>{S.addEventListener("load",D),S.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return o.then(d=>{for(const m of d||[])m.status==="rejected"&&u(m.reason);return t().catch(u)})};var rE={key:""};const hU="mock";function yU(){try{typeof rE<"u"&&rE?.key;return}catch{return}}function gU(){const e=yU();if(!e||typeof window>"u"||!window.location)return!1;try{return new URLSearchParams(window.location.search).get(hU)===e}catch{return!1}}const bU=new Set(["/create-quote","/get-stages-for-quote","/get-questions-by-stage","/update-quote","/verify-quote","/is-supported-state","/get-rates","/get-quote","/get-vehicle-options","/request-bind"]);let aE=!1;function vU(e){try{if(typeof e=="string")return new URL(e,window.location.href).pathname;if(e instanceof URL)return e.pathname;if(e instanceof Request)return new URL(e.url,window.location.href).pathname}catch{return null}return null}async function _U(e,t){try{if(t?.body&&typeof t.body=="string")return JSON.parse(t.body);if(e instanceof Request){const n=await e.clone().text();return n?JSON.parse(n):{}}}catch{return{}}return{}}function iE(e,t=200){return new Response(JSON.stringify(e),{status:t,headers:{"Content-Type":"application/json"}})}function EU(){try{if(typeof document>"u"||document.getElementById("credify-mock-badge"))return;const e=()=>{const t=document.createElement("div");t.id="credify-mock-badge",t.textContent="MOCK MODE",t.setAttribute("aria-hidden","true"),t.style.cssText=["position:fixed","bottom:12px","left:12px","z-index:2147483647","background:#b91c1c","color:#fff","font:600 11px/1 system-ui,sans-serif","letter-spacing:0.08em","padding:6px 10px","border-radius:9999px","box-shadow:0 1px 4px rgba(0,0,0,0.3)","pointer-events:none","user-select:none"].join(";"),document.body.appendChild(t)};document.body?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}catch{}}function SU(){if(aE||typeof window>"u"||typeof window.fetch!="function"||!gU())return;aE=!0;const e=window.fetch.bind(window),t=pU(()=>import("./backend-CY4n4nTm.js"),[]);window.fetch=async(n,i)=>{const o=vU(n);if(!o||!bU.has(o))return e(n,i);const u=await _U(n,i),{handleMockRequest:c}=await t;await new Promise(d=>window.setTimeout(d,120));try{return iE(c(o,u))}catch(d){return iE({error:d instanceof Error?d.message:"Mock handler error"},404)}},EU(),typeof console<"u"&&console.info("[Credify] Mock mode active — all API calls are served from in-memory fixtures.")}SU();bA.createRoot(document.getElementById("root")).render(v.jsx(b.StrictMode,{children:v.jsx(dU,{})}));
164
- //# sourceMappingURL=iframe-CszwzNOZ.js.map
163
+ `}),v.jsx("div",{style:{background:"#F8FAFC",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem",fontFamily:"'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",height:"100%",minHeight:400,overflowY:"auto"},children:v.jsxs("div",{style:{width:"100%",maxWidth:560},children:[v.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[v.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:s.accent+"12",border:`1px solid ${s.accent}30`,borderRadius:100,padding:"6px 16px",marginBottom:16},children:[v.jsx("span",{style:{fontSize:14},"aria-hidden":"true",children:s.icon}),v.jsx("span",{style:{fontSize:12,fontWeight:700,color:s.accent,letterSpacing:"0.1em",textTransform:"uppercase"},children:s.label})]}),v.jsx("h1",{style:{fontSize:26,fontWeight:700,color:"#0F172A",margin:0,letterSpacing:"-0.02em",lineHeight:1.3},children:fe?"Connecting to top carriers":"Fetching your best rates"}),v.jsx("p",{style:{fontSize:14,color:"#64748B",marginTop:8,marginBottom:0},children:fe?"Identifying the carriers eligible for your quote...":pe?"Still gathering — a few carriers are taking a little longer...":"We're reaching out to multiple insurers on your behalf"})]}),v.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:32},children:fe?v.jsx("div",{style:{display:"flex",gap:20},children:[0,1,2,3,4].map(J=>v.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[v.jsx("div",{style:{width:48,height:48,borderRadius:14,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${J*.12}s`}}),v.jsx("div",{style:{width:40,height:8,borderRadius:4,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${J*.12}s`}})]},`skeleton-${J}`))}):ne?v.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[v.jsxs("div",{style:{width:64,height:64,borderRadius:18,background:ne.color+"18",border:`2px solid ${ne.color}`,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16,color:ne.color,position:"relative",animation:"providerPulse 1.8s ease-in-out infinite"},children:[ne.abbr,v.jsx("div",{style:{position:"absolute",inset:-5,borderRadius:22,border:`2px solid ${ne.color}`,pointerEvents:"none",animation:"ringPulse 1.6s ease-in-out infinite"},"aria-hidden":"true"})]}),v.jsx("span",{style:{fontSize:13,fontWeight:600,color:ne.color,letterSpacing:"0.04em"},children:ne.name})]}):null}),v.jsxs("div",{className:`iq-card-fade ${w?"iq-card-visible":"iq-card-hidden"}`,style:{background:"#FFFFFF",borderRadius:24,border:"1px solid #E2E8F0",padding:32},children:[v.jsx("div",{style:{display:"flex",alignItems:"center",gap:20,marginBottom:28},children:fe||!ne?v.jsxs("div",{style:{flex:1,textAlign:"center",padding:"8px 0"},children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 6px"},children:"Please wait"}),v.jsx("h2",{style:{fontSize:18,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:"Checking eligible providers"}),v.jsx("p",{style:{fontSize:13,color:"#64748B",margin:0},children:"Reviewing your details against our carrier network"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{style:{position:"relative",flexShrink:0},children:[v.jsx(Cz,{progress:E,color:ne.color,size:80}),v.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsxs("span",{style:{fontSize:14,fontWeight:700,color:ne.color},"aria-hidden":"true",children:[Math.round(E),"%"]})})]}),v.jsxs("div",{style:{flex:1},children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 4px"},children:pe?"Still checking":"Now checking"}),v.jsx("h2",{style:{fontSize:20,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:ne.name}),v.jsx("p",{className:"iq-status-text",style:{fontSize:13,color:"#64748B",margin:0},role:"status","aria-live":"polite",children:fh[D]},`${m}-${D}`)]})]})}),v.jsxs("div",{children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.08em",textTransform:"uppercase",margin:"0 0 8px"},children:fe?"Initializing":"Gathering quotes"}),v.jsx("div",{style:{height:6,background:"#F1F5F9",borderRadius:100,overflow:"hidden"},children:v.jsx("div",{style:{height:"100%",width:"35%",background:s.accent,borderRadius:100,animation:"shimmerSlide 1.4s ease-in-out infinite"},"aria-hidden":"true"})})]})]})]})})]})}function q5({onGoBack:e}){return v.jsxs("section",{className:"mt-4",role:"alert","aria-labelledby":"submission-error-title",children:[v.jsxs("div",{className:"rounded-xl border border-red-200 bg-red-50 p-5",children:[v.jsx("h3",{id:"submission-error-title",className:"text-base font-semibold text-red-700",children:"Sorry, quote submission failed"}),v.jsx("p",{className:"mt-2 text-sm text-red-700",children:"We ran into an issue submitting your quote. Our team will investigate and get back to you soon."})]}),v.jsx("div",{className:"mt-5",children:v.jsx("button",{type:"button",onClick:e,className:"h-12 w-full rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",children:"Go back"})})]})}var mh={intercomAppId:"",cobrowseLicense:""};function wz(){try{return typeof mh<"u"&&mh?mh:{}}catch{return{}}}function Tz(e){const t=wz(),n=t.intercomAppId,i=t.cobrowseLicense;return{enabled:!!(n||i),intercomAppId:n||void 0,cobrowseLicense:i||void 0,proactiveOnError:!0}}const ph=new Map;function K5(e){if(typeof document>"u")return Promise.reject(new Error("loadScript called without a document"));const t=ph.get(e);if(t)return t;const n=new Promise((i,o)=>{const s=document.createElement("script");s.src=e,s.async=!0,s.onload=()=>i(),s.onerror=()=>{ph.delete(e),o(new Error(`Failed to load script: ${e}`))},document.head.appendChild(s)});return ph.set(e,n),n}let _0=!1;function Nz(){if(typeof window.Intercom=="function")return window.Intercom;const e=function(...t){e.c?.(t)};return e.q=[],e.c=t=>{e.q.push(t)},window.Intercom=e,e}function Mz(e){const t={app_id:e,hide_default_launcher:!0},n=rf();return n&&(t.quote_id=n),t}function W5(e){if(typeof window>"u")return;Nz();const t=Mz(e);if(window.intercomSettings=t,_0){window.Intercom("update",t);return}window.Intercom("boot",t),_0=!0,K5(`https://widget.intercom.io/widget/${e}`).catch(()=>{})}function Rz(){typeof window?.Intercom=="function"&&window.Intercom("show")}function Oz(e){typeof window?.Intercom=="function"&&window.Intercom("showNewMessage",e)}function kz(e){typeof window?.Intercom=="function"&&window.Intercom("update",e)}function Bz(){if(typeof window?.Intercom=="function")try{window.Intercom("shutdown")}catch{}_0=!1}const Lz="https://js.cobrowse.io/CobrowseIO.js";let E0=!1;async function Pz(e){await K5(Lz);const t=window.CobrowseIO;if(!t)return null;if(!E0){t.license=e,t.redactedViews=["input","select","textarea","[data-credify-redact]"],t.customData={quote_id:rf()??void 0,device_name:"Credify Insurance Widget"},t.confirmSession=()=>Promise.resolve(typeof window<"u"?window.confirm("Allow a Credify support agent to view your screen?"):!1);try{await t.client?.()}catch{}t.start?.(),E0=!0}return t}async function Iz(e){if(typeof window>"u")return null;try{const t=await Pz(e);return t?.createSessionCode?await t.createSessionCode():null}catch{return null}}function Fz(){try{window.CobrowseIO?.stop?.()}catch{}E0=!1}const jz="Hi! It looks like something went wrong submitting your quote. We're here to help — tell us what you were trying to do and we'll jump in.";let sr=null,Xc=null,S0=!1;function zz(e){Gz();const t=Tz();if(sr=t,!!t.enabled&&t.proactiveOnError&&t.intercomAppId){const n=i=>{S0||(S0=!0,W5(t.intercomAppId),kz({last_quote_error:i?.reason??"unknown"}),Oz(jz))};P5("submissionFailed",n),Xc=n}}function Q5(){!sr?.enabled||!sr.intercomAppId||(W5(sr.intercomAppId),Rz())}function Uz(){return!sr?.enabled||!sr.cobrowseLicense?Promise.resolve(null):Iz(sr.cobrowseLicense)}function Hz(){return!!(sr?.enabled&&sr.intercomAppId)}function Vz(){return!!(sr?.enabled&&sr.cobrowseLicense)}function Gz(){Xc&&(I5("submissionFailed",Xc),Xc=null),Bz(),Fz(),S0=!1,sr=null}const Zz="Chat with our support team in real time — we'll help you finish your quote.",Yz="Share your screen with a support agent so they can see what you see and guide you in real time. We'll generate a secure code — share it with your agent to begin. Your personal information stays hidden.",q3="inline-flex h-9 w-9 items-center justify-center rounded-full text-slate-500 hover:bg-slate-100 hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 disabled:opacity-60",K3="pointer-events-none absolute bottom-full left-1/2 z-10 mb-2 w-60 -translate-x-1/2 rounded-lg bg-slate-800 px-3 py-2 text-center text-xs leading-snug text-white shadow-lg transition-opacity duration-150";function qz(){const e=Hz(),t=Vz(),[n,i]=b.useState(null),[o,s]=b.useState(!1),[c,d]=b.useState(!1),[m,h]=b.useState(null),y=b.useCallback(async()=>{s(!0),d(!1);try{const g=await Uz();g?i(g):d(!0)}finally{s(!1)}},[]);return!e&&!t?null:v.jsxs("div",{className:"flex flex-col items-center gap-1.5 text-sm text-slate-500",children:[v.jsx("span",{className:"font-medium",children:"Need help?"}),v.jsxs("div",{className:"inline-flex items-center gap-1",children:[e&&v.jsxs("span",{className:"relative inline-flex",onMouseEnter:()=>h("chat"),onMouseLeave:()=>h(null),children:[v.jsx("button",{type:"button",onClick:Q5,onFocus:()=>h("chat"),onBlur:()=>h(null),onKeyDown:g=>{g.key==="Escape"&&(g.stopPropagation(),h(null))},"aria-label":"Chat with support","aria-describedby":"credify-chat-tooltip",className:q3,children:v.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:v.jsx("path",{d:"M21 11.5a8.38 8.38 0 0 1-8.5 8.5 9 9 0 0 1-3.8-.8L3 21l1.3-4.2A8.38 8.38 0 0 1 3.5 11.5 8.5 8.5 0 0 1 12 3a8.38 8.38 0 0 1 9 8.5Z",strokeLinejoin:"round"})})}),v.jsx("span",{id:"credify-chat-tooltip",role:"tooltip",className:`${K3} ${m==="chat"?"opacity-100":"opacity-0"}`,children:Zz})]}),e&&t&&v.jsx("span",{className:"mx-1 h-6 w-px bg-slate-200","aria-hidden":"true"}),t&&v.jsxs("span",{className:"relative inline-flex",onMouseEnter:()=>h("screen"),onMouseLeave:()=>h(null),children:[v.jsx("button",{type:"button",onClick:y,disabled:o,onFocus:()=>h("screen"),onBlur:()=>h(null),onKeyDown:g=>{g.key==="Escape"&&(g.stopPropagation(),h(null))},"aria-label":"Share your screen with an agent","aria-describedby":"credify-cobrowse-tooltip",className:q3,children:o?v.jsx("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-slate-300 border-t-slate-600","aria-hidden":"true"}):v.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[v.jsx("rect",{x:"2.5",y:"4",width:"19",height:"13",rx:"2"}),v.jsx("path",{d:"M8 21h8M12 17v4",strokeLinecap:"round"}),v.jsx("path",{d:"M12 13V8m0 0-2 2m2-2 2 2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),v.jsx("span",{id:"credify-cobrowse-tooltip",role:"tooltip",className:`${K3} ${m==="screen"?"opacity-100":"opacity-0"}`,children:Yz})]})]}),n&&v.jsxs("span",{children:["Read this code to your agent: ",v.jsx("strong",{className:"tracking-widest text-text-primary",children:n})]}),c&&v.jsx("span",{className:"text-red-600",children:"Couldn't start screen sharing. Please try chat instead."})]})}let W3=null;function Kz(){const e=W3;return W3=null,e}let Wz=!1;function Qz(){return Wz}function He(e){if(e===!0)return"Yes";if(e===!1)return"No"}function $n(e){if(e)try{const t=typeof e=="string"?new Date(e):e;return isNaN(t.getTime())?void 0:t.toISOString().split("T")[0]}catch{return}}function Jz(e){const t=e,n={};t.phone&&(n.phone=t.phone),t.first_name&&(n.first_name=t.first_name),t.last_name&&(n.last_name=t.last_name),t.email&&(n.email=t.email),t.date_of_birth&&(n.date_of_birth=$n(t.date_of_birth)),t.product&&(n.product=t.product),t.state&&(n.state=t.state),t.postal_code&&(n.postal_code=t.postal_code);const i=[];t.line_1&&i.push(t.line_1),t.line_2&&i.push(t.line_2),t.city&&i.push(t.city),t.state&&i.push(t.state),t.postal_code&&i.push(t.postal_code),i.length>0&&(n.address=i.join(", ")),typeof t.ssn_display=="string"&&(n.ssn_display=t.ssn_display),t.years_at_address!==null&&t.years_at_address!==void 0&&(n.years_at_address=t.years_at_address),t.months_at_address!==null&&t.months_at_address!==void 0&&(n.months_at_address=t.months_at_address),t.move_in_date&&(n.move_in_date=$n(t.move_in_date));const o=[];t.prior_line_1&&o.push(t.prior_line_1),t.prior_line_2&&o.push(t.prior_line_2),t.prior_city&&o.push(t.prior_city),t.prior_state&&o.push(t.prior_state),t.prior_postal_code&&o.push(t.prior_postal_code),o.length>0&&(n.prior_address=o.join(", ")),t.years_at_prior_address!==null&&t.years_at_prior_address!==void 0&&(n.years_at_prior_address=t.years_at_prior_address),t.is_mailing_address_different!==null&&t.is_mailing_address_different!==void 0&&(n.is_mailing_address_different=He(t.is_mailing_address_different)),t.mailing_address&&(n.mailing_address=t.mailing_address),t.effective_date&&(n.effective_date=$n(t.effective_date)),t.auto_has_prior_insurance!==null&&t.auto_has_prior_insurance!==void 0&&(n.auto_has_prior_insurance=He(t.auto_has_prior_insurance)),t.auto_prior_expiration_date&&(n.auto_prior_expiration_date=$n(t.auto_prior_expiration_date)),t.auto_prior_carrier_name&&(n.auto_prior_carrier_name=t.auto_prior_carrier_name),t.auto_prior_liability_limit&&(n.auto_prior_liability_limit=t.auto_prior_liability_limit),t.auto_reason_for_no_insurance&&(n.auto_reason_for_no_insurance=t.auto_reason_for_no_insurance),t.auto_prior_years!==null&&t.auto_prior_years!==void 0&&(n.auto_prior_years=t.auto_prior_years),t.auto_prior_months!==null&&t.auto_prior_months!==void 0&&(n.auto_prior_months=t.auto_prior_months),t.auto_continuous_coverage_years!==null&&t.auto_continuous_coverage_years!==void 0&&(n.auto_continuous_coverage_years=t.auto_continuous_coverage_years),t.auto_cancelled_declined_refused_to_renew!==null&&t.auto_cancelled_declined_refused_to_renew!==void 0&&(n.auto_cancelled_declined_refused_to_renew=He(t.auto_cancelled_declined_refused_to_renew)),t.auto_current_annual_premium_cents!==null&&t.auto_current_annual_premium_cents!==void 0&&(n.auto_current_annual_premium_cents=t.auto_current_annual_premium_cents),t.policy_bi&&(n.policy_bi=t.policy_bi),t.policy_um&&(n.policy_um=t.policy_um),t.policy_pd&&(n.policy_pd=t.policy_pd),t.policy_mp&&(n.policy_mp=t.policy_mp),t.policy_umpd&&(n.policy_umpd=t.policy_umpd),t.policy_pip&&(n.policy_pip=t.policy_pip),t.policy_auto_death_indemnity&&(n.policy_auto_death_indemnity=t.policy_auto_death_indemnity),t.driver_vehicle_assignments&&(n.driver_vehicle_assignments=t.driver_vehicle_assignments),t.home_has_prior_insurance!==null&&t.home_has_prior_insurance!==void 0&&(n.home_has_prior_insurance=He(t.home_has_prior_insurance)),t.home_prior_expiration_date&&(n.home_prior_expiration_date=$n(t.home_prior_expiration_date)),t.home_prior_carrier_name&&(n.home_prior_carrier_name=t.home_prior_carrier_name),t.home_prior_years!==null&&t.home_prior_years!==void 0&&(n.home_prior_years=t.home_prior_years),t.home_continuous_coverage_years!==null&&t.home_continuous_coverage_years!==void 0&&(n.home_continuous_coverage_years=t.home_continuous_coverage_years),t.property_insurance_cancelled!==null&&t.property_insurance_cancelled!==void 0&&(n.property_insurance_cancelled=He(t.property_insurance_cancelled)),t.lapse_in_coverage!==null&&t.lapse_in_coverage!==void 0&&(n.lapse_in_coverage=He(t.lapse_in_coverage)),t.year_built!==null&&t.year_built!==void 0&&(n.year_built=t.year_built),t.number_of_units!==null&&t.number_of_units!==void 0&&(n.number_of_units=t.number_of_units),t.number_of_stories!==null&&t.number_of_stories!==void 0&&(n.number_of_stories=t.number_of_stories),t.number_of_beds!==null&&t.number_of_beds!==void 0&&(n.number_of_beds=t.number_of_beds),t.number_of_full_baths!==null&&t.number_of_full_baths!==void 0&&(n.number_of_full_baths=t.number_of_full_baths),t.number_of_partial_baths!==null&&t.number_of_partial_baths!==void 0&&(n.number_of_partial_baths=t.number_of_partial_baths),t.under_construction!==null&&t.under_construction!==void 0&&(n.under_construction=He(t.under_construction)),t.distance_from_fire_hydrant_ft&&(n.distance_from_fire_hydrant_ft=t.distance_from_fire_hydrant_ft),t.distance_from_fire_station_miles&&(n.distance_from_fire_station_miles=t.distance_from_fire_station_miles),t.architectural_style&&(n.architectural_style=t.architectural_style),t.dwelling_type&&(n.dwelling_type=t.dwelling_type),t.construction_quality&&(n.construction_quality=t.construction_quality),t.located_over_water!==null&&t.located_over_water!==void 0&&(n.located_over_water=t.located_over_water),t.construction_type&&(n.construction_type=t.construction_type),t.exterior_wall_type&&(n.exterior_wall_type=t.exterior_wall_type),t.foundation_type&&(n.foundation_type=t.foundation_type),t.roof_material_type&&(n.roof_material_type=t.roof_material_type),t.roof_shape&&(n.roof_shape=t.roof_shape),t.roof_updated_type&&(n.roof_updated_type=t.roof_updated_type),t.year_roof_updated!==null&&t.year_roof_updated!==void 0&&(n.year_roof_updated=t.year_roof_updated),t.mit_credit_form!==null&&t.mit_credit_form!==void 0&&(n.mit_credit_form=He(t.mit_credit_form)),t.storm_shutters!==null&&t.storm_shutters!==void 0&&(n.storm_shutters=He(t.storm_shutters)),t.heating_type&&(n.heating_type=t.heating_type),t.oil_tank_location&&(n.oil_tank_location=t.oil_tank_location),t.heating_fuel_type&&(n.heating_fuel_type=t.heating_fuel_type),t.number_of_fireplaces!==null&&t.number_of_fireplaces!==void 0&&(n.number_of_fireplaces=t.number_of_fireplaces),t.basement_type&&(n.basement_type=t.basement_type),t.parking_type&&(n.parking_type=t.parking_type),t.garage_type&&(n.garage_type=t.garage_type),t.number_of_parking_spaces!==null&&t.number_of_parking_spaces!==void 0&&(n.number_of_parking_spaces=t.number_of_parking_spaces),t.plumbing_type&&(n.plumbing_type=t.plumbing_type),t.pool_type&&(n.pool_type=t.pool_type),t.total_area_sq_ft!==null&&t.total_area_sq_ft!==void 0&&(n.total_area_sq_ft=t.total_area_sq_ft),t.parcel_area_sq_ft!==null&&t.parcel_area_sq_ft!==void 0&&(n.parcel_area_sq_ft=t.parcel_area_sq_ft),t.residence_type&&(n.residence_type=t.residence_type),t.usage_type&&(n.usage_type=t.usage_type),t.household_size!==null&&t.household_size!==void 0&&(n.household_size=t.household_size),t.number_of_mortgagees!==null&&t.number_of_mortgagees!==void 0&&(n.number_of_mortgagees=t.number_of_mortgagees),t.has_dog!==null&&t.has_dog!==void 0&&(n.has_dog=He(t.has_dog)),t.dog_breed_type&&(n.dog_breed_type=t.dog_breed_type),t.number_of_dogs!==null&&t.number_of_dogs!==void 0&&(n.number_of_dogs=t.number_of_dogs),t.has_vicious_animals!==null&&t.has_vicious_animals!==void 0&&(n.has_vicious_animals=He(t.has_vicious_animals)),t.has_business_on_premises!==null&&t.has_business_on_premises!==void 0&&(n.has_business_on_premises=He(t.has_business_on_premises)),t.business_class&&(n.business_class=t.business_class),t.occupancy_type&&(n.occupancy_type=t.occupancy_type),t.short_term_rental!==null&&t.short_term_rental!==void 0&&(n.short_term_rental=He(t.short_term_rental)),t.sale_price_cents!==null&&t.sale_price_cents!==void 0&&(n.sale_price_cents=Math.round(Number(t.sale_price_cents)/100)),t.number_of_families!==null&&t.number_of_families!==void 0&&(n.number_of_families=t.number_of_families),t.number_of_units_in_firewall!==null&&t.number_of_units_in_firewall!==void 0&&(n.number_of_units_in_firewall=t.number_of_units_in_firewall),t.heating_update_yn!==null&&t.heating_update_yn!==void 0&&(n.heating_update_yn=He(t.heating_update_yn)),t.heating_update_type&&(n.heating_update_type=t.heating_update_type),t.heating_update_year!==null&&t.heating_update_year!==void 0&&(n.heating_update_year=t.heating_update_year),t.plumbing_update_yn!==null&&t.plumbing_update_yn!==void 0&&(n.plumbing_update_yn=He(t.plumbing_update_yn)),t.plumbing_update_type&&(n.plumbing_update_type=t.plumbing_update_type),t.plumbing_update_year!==null&&t.plumbing_update_year!==void 0&&(n.plumbing_update_year=t.plumbing_update_year),t.electrical_update_yn!==null&&t.electrical_update_yn!==void 0&&(n.electrical_update_yn=He(t.electrical_update_yn)),t.electrical_update_type&&(n.electrical_update_type=t.electrical_update_type),t.electrical_update_year!==null&&t.electrical_update_year!==void 0&&(n.electrical_update_year=t.electrical_update_year),t.electric_circuit_breaker!==null&&t.electric_circuit_breaker!==void 0&&(n.electric_circuit_breaker=He(t.electric_circuit_breaker)),t.dwelling_replacement_cost!==null&&t.dwelling_replacement_cost!==void 0&&(n.dwelling_replacement_cost=t.dwelling_replacement_cost),t.other_structures_coverage!==null&&t.other_structures_coverage!==void 0&&(n.other_structures_coverage=t.other_structures_coverage),t.personal_property_coverage!==null&&t.personal_property_coverage!==void 0&&(n.personal_property_coverage=t.personal_property_coverage),t.loss_of_use_coverage!==null&&t.loss_of_use_coverage!==void 0&&(n.loss_of_use_coverage=t.loss_of_use_coverage),t.personal_liability&&(n.personal_liability=t.personal_liability),t.dwelling_medical_payments&&(n.dwelling_medical_payments=t.dwelling_medical_payments),t.all_perils_deductible&&(n.all_perils_deductible=t.all_perils_deductible),t.windstorm_deductible&&(n.windstorm_deductible=t.windstorm_deductible),t.has_garage!==null&&t.has_garage!==void 0&&(n.has_garage=He(t.has_garage)),t.has_pool!==null&&t.has_pool!==void 0&&(n.has_pool=He(t.has_pool)),t.has_trampoline!==null&&t.has_trampoline!==void 0&&(n.has_trampoline=He(t.has_trampoline)),t.gender&&(n.gender=t.gender),t.marital_status&&(n.marital_status=t.marital_status),t.employment_industry&&(n.employment_industry=t.employment_industry),t.occupation&&(n.occupation=t.occupation),t.has_co_applicant!==null&&t.has_co_applicant!==void 0&&(n.has_co_applicant=He(t.has_co_applicant)),t.co_applicant_first_name&&(n.co_applicant_first_name=t.co_applicant_first_name),t.co_applicant_middle_name&&(n.co_applicant_middle_name=t.co_applicant_middle_name),t.co_applicant_last_name&&(n.co_applicant_last_name=t.co_applicant_last_name),t.co_applicant_gender&&(n.co_applicant_gender=t.co_applicant_gender),t.co_applicant_marital_status&&(n.co_applicant_marital_status=t.co_applicant_marital_status),t.co_applicant_relationship&&(n.co_applicant_relationship=t.co_applicant_relationship),t.co_applicant_date_of_birth&&(n.co_applicant_date_of_birth=$n(t.co_applicant_date_of_birth)),t.co_applicant_employment_industry&&(n.co_applicant_employment_industry=t.co_applicant_employment_industry),t.co_applicant_occupation&&(n.co_applicant_occupation=t.co_applicant_occupation),t.retiree_discount!==null&&t.retiree_discount!==void 0&&(n.retiree_discount=He(t.retiree_discount)),t.gated_community_discount!==null&&t.gated_community_discount!==void 0&&(n.gated_community_discount=He(t.gated_community_discount)),t.multi_policy_discount!==null&&t.multi_policy_discount!==void 0&&(n.multi_policy_discount=He(t.multi_policy_discount)),t.non_smoker_discount!==null&&t.non_smoker_discount!==void 0&&(n.non_smoker_discount=He(t.non_smoker_discount)),t.first_time_buyer_discount!==null&&t.first_time_buyer_discount!==void 0&&(n.first_time_buyer_discount=He(t.first_time_buyer_discount)),t.fire_detection_system!==null&&t.fire_detection_system!==void 0&&(n.fire_detection_system=He(t.fire_detection_system)),t.fire_detection_system_type&&(n.fire_detection_system_type=t.fire_detection_system_type),t.burglar_alarm_system!==null&&t.burglar_alarm_system!==void 0&&(n.burglar_alarm_system=He(t.burglar_alarm_system)),t.burglar_alarm_system_type&&(n.burglar_alarm_system_type=t.burglar_alarm_system_type),t.smoke_detectors!==null&&t.smoke_detectors!==void 0&&(n.smoke_detectors=He(t.smoke_detectors)),t.sprinkler_system!==null&&t.sprinkler_system!==void 0&&(n.sprinkler_system=He(t.sprinkler_system)),t.sprinkler_system_type&&(n.sprinkler_system_type=t.sprinkler_system_type),t.gas_leakage_detector!==null&&t.gas_leakage_detector!==void 0&&(n.gas_leakage_detector=He(t.gas_leakage_detector)),t.deadbolt_locks!==null&&t.deadbolt_locks!==void 0&&(n.deadbolt_locks=He(t.deadbolt_locks)),t.fire_extinguisher!==null&&t.fire_extinguisher!==void 0&&(n.fire_extinguisher=He(t.fire_extinguisher)),t.order_credit_authorized!==null&&t.order_credit_authorized!==void 0&&(n.order_credit_authorized=He(t.order_credit_authorized)),t.has_health_insurance_auto_accident!==null&&t.has_health_insurance_auto_accident!==void 0&&(n.has_health_insurance_auto_accident=He(t.has_health_insurance_auto_accident)),t.is_corporation!==null&&t.is_corporation!==void 0&&(n.is_corporation=He(t.is_corporation)),t.named_insured_foreclosure_repo_bankruptcy!==null&&t.named_insured_foreclosure_repo_bankruptcy!==void 0&&(n.named_insured_foreclosure_repo_bankruptcy=He(t.named_insured_foreclosure_repo_bankruptcy)),t.named_insured_convicted_insurance_fraud!==null&&t.named_insured_convicted_insurance_fraud!==void 0&&(n.named_insured_convicted_insurance_fraud=He(t.named_insured_convicted_insurance_fraud));const s={};if(t.vehicles)for(const c of t.vehicles)c.quote_vehicle_id&&c.vin&&(s[c.quote_vehicle_id]=c.vin);return t.drivers&&t.drivers.length>0?(n.drivers="Yes",n.drivers__items=t.drivers.map(c=>{const d=c,m={};d.first_name&&(m.first_name=d.first_name),d.middle_name&&(m.middle_name=d.middle_name),d.last_name&&(m.last_name=d.last_name),d.date_of_birth&&(m.date_of_birth=$n(d.date_of_birth)),d.gender&&(m.gender=d.gender),d.marital_status&&(m.marital_status=d.marital_status),d.relationship_to_insured&&(m.relationship_to_insured=d.relationship_to_insured),d.is_registered_owner!==null&&d.is_registered_owner!==void 0&&(m.is_registered_owner=d.is_registered_owner?"Yes":"No"),d.license_state&&(m.license_state=d.license_state),d.license_status&&(m.license_status=d.license_status),d.license_number&&(m.license_number=d.license_number),d.date_first_licensed&&(m.date_first_licensed=$n(d.date_first_licensed)),d.education_level&&(m.education_level=S5(d.education_level)),d.occupation&&(m.occupation=D5(d.occupation)),d.industry&&(m.industry=Dd(d.industry)),d.employment_status&&(m.employment_status=d.employment_status),d.last_5_years_license_suspended_or_revoked!==null&&d.last_5_years_license_suspended_or_revoked!==void 0&&(m.last_5_years_license_suspended_or_revoked=He(d.last_5_years_license_suspended_or_revoked)),d.accident_prevention_course!==null&&d.accident_prevention_course!==void 0&&(m.accident_prevention_course=He(d.accident_prevention_course)),d.accident_prevention_course_date&&(m.accident_prevention_course_date=$n(d.accident_prevention_course_date)),d.sr22!==null&&d.sr22!==void 0&&(m.sr22=He(d.sr22));const h=d.ssn_display;typeof h=="string"&&(m.ssn_display=h);const y=d.driver_violations;y&&y.length>0&&(m.driver_violations="Yes",m.driver_violations__items=y.map(S=>{const D={};return S.code&&(D.code=S.code),S.occurred_at&&(D.occurred_at=$n(S.occurred_at)),D}));const g=d.driver_accidents;g&&g.length>0&&(m.driver_accidents="Yes",m.driver_accidents__items=g.map(S=>{const D={};return S.occurred_at&&(D.occurred_at=$n(S.occurred_at)),S.description&&(D.description=S.description),S.quote_vehicle_id&&(D.quote_vehicle_id=s[S.quote_vehicle_id]??S.quote_vehicle_id),S.property_damage_amount_paid_cents!==null&&S.property_damage_amount_paid_cents!==void 0&&(D.property_damage_amount_paid_cents=S.property_damage_amount_paid_cents),S.personal_injury_amount_paid_cents!==null&&S.personal_injury_amount_paid_cents!==void 0&&(D.personal_injury_amount_paid_cents=S.personal_injury_amount_paid_cents),D}));const E=d.losses;return E&&E.length>0&&(m.losses="Yes",m.losses__items=E.map(S=>{const D={};return S.description&&(D.description=S.description),S.date_of_incident&&(D.date_of_incident=$n(S.date_of_incident)),S.amount_paid_cents!==null&&S.amount_paid_cents!==void 0&&(D.amount_paid_cents=S.amount_paid_cents),S.quote_vehicle_id&&(D.quote_vehicle_id=s[S.quote_vehicle_id]??S.quote_vehicle_id),D})),m})):n.drivers="No",t.vehicles&&t.vehicles.length>0?(n.vehicles="Yes",n.vehicles__items=t.vehicles.map(c=>{const d=c,m={};d.vin&&(m.vin=d.vin),d.year!==null&&d.year!==void 0&&(m.year=String(d.year)),d.make&&(m.make=d.make),d.model&&(m.model=d.model),d.body_style&&(m.body_style=d.body_style),d.ownership_type&&(m.ownership_type=d.ownership_type),d.usage&&(m.usage=d.usage),d.annual_mileage!==null&&d.annual_mileage!==void 0&&(m.annual_mileage=d.annual_mileage),d.miles_to_work!==null&&d.miles_to_work!==void 0&&(m.miles_to_work=d.miles_to_work),d.percent_to_work!==null&&d.percent_to_work!==void 0&&(m.percent_to_work=d.percent_to_work);const h=[];return d.garaging_address_line_1&&h.push(d.garaging_address_line_1),d.garaging_address_line_2&&h.push(d.garaging_address_line_2),d.garaging_address_city&&h.push(d.garaging_address_city),d.garaging_address_state&&h.push(d.garaging_address_state),d.garaging_address_postal_code&&h.push(d.garaging_address_postal_code),h.length>0&&(m.garaging_address=h.join(", ")),d.new_when_purchased!==null&&d.new_when_purchased!==void 0&&(m.new_when_purchased=He(d.new_when_purchased)),d.purchase_date&&(m.purchase_date=$n(d.purchase_date)),d.anti_theft_type&&(m.anti_theft_type=d.anti_theft_type),d.passive_restraint_type&&(m.passive_restraint_type=d.passive_restraint_type),d.anti_lock_brakes!==null&&d.anti_lock_brakes!==void 0&&(m.anti_lock_brakes=He(d.anti_lock_brakes)),d.daytime_running_lights!==null&&d.daytime_running_lights!==void 0&&(m.daytime_running_lights=He(d.daytime_running_lights)),d.custom_equipment_value_cents!==null&&d.custom_equipment_value_cents!==void 0&&(m.custom_equipment_value_cents=d.custom_equipment_value_cents),d.cost_new_value_cents!==null&&d.cost_new_value_cents!==void 0&&(m.cost_new_value_cents=d.cost_new_value_cents),d.stated_value_amount_cents!==null&&d.stated_value_amount_cents!==void 0&&(m.stated_value_amount_cents=d.stated_value_amount_cents),d.vehicle_has_modifications!==null&&d.vehicle_has_modifications!==void 0&&(m.vehicle_has_modifications=He(d.vehicle_has_modifications)),d.vehicle_garaged_at_residence!==null&&d.vehicle_garaged_at_residence!==void 0&&(m.vehicle_garaged_at_residence=He(d.vehicle_garaged_at_residence)),d.vehicle_comp_deductible&&(m.vehicle_comp_deductible=d.vehicle_comp_deductible),d.vehicle_coll_deductible&&(m.vehicle_coll_deductible=d.vehicle_coll_deductible),d.vehicle_towing_and_labor&&(m.vehicle_towing_and_labor=d.vehicle_towing_and_labor),d.vehicle_transportation_expense&&(m.vehicle_transportation_expense=d.vehicle_transportation_expense),d.vehicle_full_glass!==null&&d.vehicle_full_glass!==void 0&&(m.vehicle_full_glass=He(d.vehicle_full_glass)),d.vehicle_loan_lease!==null&&d.vehicle_loan_lease!==void 0&&(m.vehicle_loan_lease=He(d.vehicle_loan_lease)),d.coverages&&d.coverages.length>0&&(m.coverages__items=d.coverages.map(y=>{const g={};return y.type&&(g.type=y.type),y.per_person_limit_cents!==null&&y.per_person_limit_cents!==void 0&&(g.per_person_limit_cents=y.per_person_limit_cents),y.per_incident_limit_cents!==null&&y.per_incident_limit_cents!==void 0&&(g.per_incident_limit_cents=y.per_incident_limit_cents),y.per_incident_limit_percent!==null&&y.per_incident_limit_percent!==void 0&&(g.per_incident_limit_percent=y.per_incident_limit_percent),y.per_day_limit_cents!==null&&y.per_day_limit_cents!==void 0&&(g.per_day_limit_cents=y.per_day_limit_cents),y.deductible_cents!==null&&y.deductible_cents!==void 0&&(g.deductible_cents=y.deductible_cents),y.is_declined!==null&&y.is_declined!==void 0&&(g.is_declined=He(y.is_declined)),g})),d.vehicle_lienholders&&d.vehicle_lienholders.length>0&&(m.vehicle_lienholders__items=d.vehicle_lienholders.map(y=>{const g={};return y.name&&(g.name=y.name),y.type&&(g.type=y.type),y.line_1&&(g.line_1=y.line_1),y.line_2&&(g.line_2=y.line_2),y.city&&(g.city=y.city),y.state&&(g.state=y.state),y.postal_code&&(g.postal_code=y.postal_code),y.phone&&(g.phone=y.phone),y.fax&&(g.fax=y.fax),g})),m})):n.vehicles="No",t.losses&&t.losses.length>0?(n.home_losses="Yes",n.home_losses__items=t.losses.map(c=>{const d={};return c.description&&(d.description=c.description),c.date_of_incident&&(d.date_of_incident=$n(c.date_of_incident)),c.amount_paid_cents!==null&&c.amount_paid_cents!==void 0&&(d.amount_paid_cents=Math.round(Number(c.amount_paid_cents)/100)),d})):n.home_losses="No",n}const Xz={Zip:"ZIP Code",Email:"Email",Product:"Product & Address",Home:"Home Details",Vehicle:"Vehicle",Name:"Name & DOB",Driver:"Operator",AutoCurrentCarrier:"Policy",HomeCurrentCarrier:"Policy",HomePolicy:"Policy",BundlePolicy:"Policy",Demographics:"Applicant",Ssn:"SSN",Phone:"Phone",SMSVerification:"Verify",AutoPolicy:"Policy",Customer:"Applicant",HomeCustomer:"Applicant",BundleCustomer:"Applicant",HomeConstruction:"Structure",HomeFeatures:"Features"};function eU(e){return Xz[e]||e}const Q3=new Set(["Zip","Product","Driver","Vehicle"]);function tU(e){return e?Array.isArray(e.drivers__items)?e.drivers__items.length:Array.isArray(e.drivers)?e.drivers.length:null:null}function J3(e,t){const n=tU(t),i=e.filter(s=>s.key!=="AutoPolicy"),o=i.length>0?i:e;return o}function nU(e,t){const n=e.findIndex(o=>o.key===t);return n<0?t:e[n+1]?.key??t}function J5(e){return e.some(t=>String(t.key)==="BundlePolicy"||String(t.key)==="BundleCustomer")}function X3(e){return J5(e)?"Bundle":e.some(t=>String(t.key)==="Vehicle"||String(t.key)==="Driver")?"Auto":"Home"}const rU={Auto:45e3,Home:5e4,Bundle:1e5},eE=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function aU(e,t){if(e!=="AutoCurrentCarrier")return t;const n=t.some(s=>String(s.key)==="auto_cancelled_declined_refused_to_renew"),i=t.some(s=>String(s.key)==="vehicle_policy_selections"),o=[...t];return n||o.push({question:"Has any auto insurance company cancelled, declined or refused to renew you in the last 5 years?",inputType:"radio",options:["Yes","No"],key:"auto_cancelled_declined_refused_to_renew",required:!0}),i||o.push({question:"Vehicle coverage selections",inputType:"custom",key:"vehicle_policy_selections",required:!1}),o}function iU(e,t){if(e!=="Vehicle")return t;const n=i=>i.map(o=>{const s=o.conditionals?.map(c=>{const d=c.conditionalQuestions??[];return d.length?{...c,conditionalQuestions:n(d)}:c});return String(o.key)!=="vin"?s?{...o,conditionals:s}:o:{...o,required:!1,...s?{conditionals:s}:{}}});return n(t)}function oU({isOpen:e,onClose:t}){const[n,i]=b.useState([]),[o,s]=b.useState(null),c=b.useRef(null);b.useEffect(()=>{c.current=o},[o]);const[d,m]=b.useState(null),[h,y]=b.useState(!1),[g,E]=b.useState(!1),[S,D]=b.useState(!1),[x,w]=b.useState(!1),[R,I]=b.useState([]),A=b.useRef(null),[L,M]=b.useState(null),[Z,V]=b.useState(void 0),[fe,ne]=b.useState(!1),[pe,J]=b.useState(null),[ye,Ae]=b.useState(null),[j,de]=b.useState(!1),[k,B]=b.useState(!1),[X,F]=b.useState(!1),G=b.useRef(!1),C=b.useRef(null),U=b.useRef(null),W=b.useRef(null),Y=b.useRef(null),[te,z]=b.useState(!1);b.useEffect(()=>{if(!S||x)return;const se=X3(n);let _e=!1;const be=[];let xe=0,$e=0;const Me=66,re=3,oe=5e3;let Ce=!1;const Ee=async()=>{if(_e)return;xe++;try{const{quote:Re}=await S3(o??void 0);if(_e)return;if($e=0,!Ce){const qe=Re?.appetites??null,Ue=iz(qe,se);Ue.length>0&&(I(Ue),Ce=!0)}const ke=Re?.rates_status??null;if(ke==="completed"){const{rates:qe}=await lh(o??void 0);if(_e)return;A.current=qe,w(!0);return}if(ke==="no_rates"){A.current=[],w(!0);return}if(ke==="failed"){Uo(new Error("Quote failed: rate-generation worker reported rates_status=failed"),{quoteId:c.current??void 0,phase:"rates_status_failed"}),ps({reason:"submission"}),J({message:"submission_failed"}),D(!1);return}}catch(Re){if($e++,console.warn("Provider polling: getQuote failed",{attempt:xe,consecutiveFailures:$e,error:Re}),$e>=re){Re?.__sentryReported||Uo(Re,{quoteId:c.current??void 0,phase:"rates_polling",message:`Quote failed: ${re} consecutive get-quote poll failures`}),ps({reason:"network"}),J({message:"submission_failed"}),D(!1);return}}if(_e)return;if(xe>=Me){Uo(new Error(`Quote failed: rate-generation timed out after ${Me} polls`),{quoteId:c.current??void 0,phase:"rates_polling_timeout"}),ps({reason:"timeout"}),J({message:"submission_failed"}),D(!1);return}const Te=window.setTimeout(Ee,oe);be.push(Te)};return Ee(),()=>{_e=!0,be.forEach(Te=>window.clearTimeout(Te))}},[S,x,n,o]);function T(se){return se.map(be=>({key:be,title:eU(be),loadQuestions:async()=>{const xe=await XF(be,c.current??void 0);let $e=aU(be,xe.questions);return $e=iU(be,$e),$e}}))}b.useEffect(()=>{const se=async()=>{try{const _e=Kz();if(_e)try{const{token:xe,quoteId:$e}=await tj(_e);xe&&$e&&(Wc(xe),f3($e))}catch(xe){xe.statusCode===401&&B(!0)}const be=rf();if(Qc(),be){ne(!0),s(be);try{const xe=Jr(),$e=await S3(xe?void 0:be);if(!$e||!$e.quote)throw new Error("Invalid response from getQuote: missing quote data");const{quote:Me}=$e,{stages:re}=await Bc(be),oe=T(re);i(oe);let Ce;try{Ce=Jz(Me),M(Ce)}catch(Ue){throw new Error(`Failed to transform quote data: ${Ue instanceof Error?Ue.message:"Unknown error"}`)}const Ee=J3(oe,Ce);i(Ee);const Te=Me?.review_status??null;if(E(Te!=null),Te==="pending_review"&&Jr()){F(!0);return}const Re=Me?.rates_status??null,ke=Jr()!=null;if(ke||Te===null){if(Re==="completed")try{const{rates:Ue}=await lh(ke?void 0:be);m(Ue);return}catch(Ue){console.warn("Failed to fetch completed rates on resume",Ue)}else if(Re==="no_rates"){m([]);return}else if(Re==="processing"){I([]),w(!1),A.current=null,D(!0);return}}V(0)}catch(xe){const $e=xe;if($e.statusCode===404)$5(),s(null);else if($e.statusCode===401){T5();try{const{stages:Me}=await Bc(be),re=T(Me);i(re);const oe=re.findIndex(Ce=>Ce.key==="SMSVerification");V(oe>=0?oe:re.length-1)}catch{}}}finally{ne(!1)}}else{const{stages:xe}=await Bc();i(T(xe))}}catch{ne(!1)}};e&&!G.current&&(G.current=!0,se())},[e]),b.useEffect(()=>{if(!e)return;const{overflow:se}=document.body.style;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=se}},[e]),b.useEffect(()=>{if(!e)return;Y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const se=window.setTimeout(()=>{const _e=C.current;if(!_e)return;(_e.querySelector(eE)??_e).focus()},0);return()=>{window.clearTimeout(se);const _e=Y.current;Y.current=null,_e&&document.contains(_e)&&_e.focus()}},[e]);const N=b.useCallback(se=>{if(se.key==="Escape"){te?(se.preventDefault(),z(!1)):(se.preventDefault(),z(!0));return}if(se.key!=="Tab")return;const _e=te?U.current:C.current;if(!_e)return;const be=Array.from(_e.querySelectorAll(eE)).filter(re=>!re.hasAttribute("disabled")&&re.getAttribute("aria-hidden")!=="true");if(be.length===0){se.preventDefault(),_e.focus();return}const xe=be[0],$e=be[be.length-1],Me=document.activeElement;se.shiftKey&&Me===xe?(se.preventDefault(),$e.focus()):!se.shiftKey&&Me===$e&&(se.preventDefault(),xe.focus())},[te]);b.useEffect(()=>{if(e)return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[e,N]),b.useEffect(()=>{if(!te)return;const se=window.setTimeout(()=>{W.current?.focus()},0);return()=>window.clearTimeout(se)},[te]),b.useEffect(()=>{e||(M(null),V(void 0),ne(!1),D(!1),Ae(null),de(!1),z(!1))},[e]),b.useEffect(()=>{e&&Uj()},[e]),b.useEffect(()=>{d&&Array.isArray(d)&&Zj({rateCount:d.length})},[d]);const ie=b.useCallback(()=>{J(null),V(Math.max(0,n.length-1))},[n.length]),ge=b.useCallback(async(se,_e)=>{try{I([]),w(!1),A.current=null,D(!0);let be;try{be=await La(se,!0,o??void 0)}catch(Me){throw D(!1),Me}if(be.status==="submission_failed"){Uo(new Error(`Quote failed at submission: ${be.message}`),{quoteId:o??void 0,phase:_e}),D(!1),w(!1),A.current=null,ps({reason:"submission"}),J({message:be.message});return}if(be.status==="success")try{const{rates:Me}=await lh(o??void 0);A.current=Me,w(!0)}catch(Me){throw D(!1),Me}const xe=n.length,$e=n[xe-1];L3({stageKey:$e?.key??"unknown",stageTitle:$e?.title??"unknown",stepIndex:xe,totalSteps:xe}),Gj()}catch(be){be?.__sentryReported||Uo(be,{quoteId:o??void 0,phase:_e}),D(!1),ps({reason:"submission"}),J({message:"Oops, something went wrong. Please try again later."})}},[o,n]),Se=b.useCallback(async se=>{if(!(!ye||!o||j)){de(!0);try{const be={...xi(ye.allValues),communications_consent:se};Ae(null),await ge(be,"consent_submit")}finally{de(!1)}}},[ye,o,j,ge]),he=b.useCallback(async se=>{if(!(!o||j)){de(!0);try{M(se);const _e={...xi(se),customer_review_confirmed:!0};await ge(_e,"review_submit")}finally{de(!1)}}},[o,j,ge]);if(!e)return null;const we=()=>{z(!0)},Ie=()=>{z(!1)},me=()=>{Hj(),t()},De=!!(!pe&&d&&o&&!h);return v.jsxs("div",{ref:C,className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true","aria-labelledby":"insurance-modal-title",tabIndex:-1,children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsxs("div",{className:`modal-panel bg-white relative w-full flex flex-col max-h-[90vh] overflow-hidden ${De?"max-w-6xl":"max-w-2xl"}`,role:"document",children:[v.jsx("h2",{id:"insurance-modal-title",className:"sr-only",children:"Credify insurance quote widget"}),v.jsx("button",{onClick:we,className:"modal-close-btn absolute top-4 right-4","aria-label":"Close quote form",type:"button",children:v.jsx("span",{"aria-hidden":"true",children:"×"})}),!S&&!pe&&v.jsx("div",{className:"widget-modal-header text-center",children:v.jsx("h2",{className:"h1-title",children:"Let's shop multiple leading carriers for you"})}),v.jsxs("div",{className:"panel-body flex-1 min-h-0 overflow-hidden",children:[k&&v.jsxs("div",{className:"mb-4 flex items-start justify-between gap-3 rounded-md border border-amber-300 bg-amber-50 px-4 py-3 text-sm text-amber-800",role:"alert",children:[v.jsx("span",{children:"This resume link has expired or is no longer valid. For your security, emailed links only work for a limited time — you can continue your quote below."}),v.jsx("button",{type:"button",onClick:()=>B(!1),className:"shrink-0 font-bold text-amber-800 hover:text-amber-900","aria-label":"Dismiss",children:"×"})]}),pe&&v.jsx(q5,{onGoBack:ie}),!pe&&S&&(()=>{const se=X3(n);return v.jsx(Az,{providers:R,totalTime:rU[se],flow:se,isComplete:x,onComplete:()=>{D(!1),w(!1),I([]),A.current&&(m(A.current),A.current=null)}})})(),!pe&&!S&&ye&&v.jsx(kO,{onChoose:Se,isSubmitting:j}),!pe&&!d&&!S&&!ye&&v.jsx(v.Fragment,{children:fe||n.length===0?v.jsx("div",{className:"flex items-center justify-center py-12",children:v.jsx("div",{className:"text-slate-600",children:"Loading..."})}):X&&o?v.jsx(xz,{stages:n,initialValues:L??{},quoteId:o,isSubmitting:j,onConfirmed:he}):v.jsx(nz,{stages:n,initialValues:L??void 0,initialActive:Z,quoteId:o??void 0,nonTerminalStageKeys:Q3,onStageComplete:async(se,_e)=>{try{const be=xi(se);let xe=o,$e=n;const Me=$e.findIndex(Ce=>Ce.key===_e),re=$e[Me],oe=nU($e,_e);if(xe)if(_e==="Phone"){const Ce=be.phone;if(!Ce)throw new Error("Phone number is required.");const Ee=Jr();await La({...be,current_stage:oe},!1,Ee?void 0:xe),await N5(xe,Ce)}else if(_e==="SMSVerification"){const{isVerified:Ce,token:Ee}=await g0(xe,be.sms_code);if(!Ce)throw new Error("Invalid SMS code");Ee&&Wc(Ee),await La({current_stage:oe},!1)}else if(_e==="Product"){const Ce=Jr(),{isSupported:Ee}=await M5(be.state,Ce?void 0:xe??void 0);if(await La({...be,current_stage:Ee?oe:_e},!1,Ce?void 0:xe),!Ee){const Te=Y5(be.state);throw new Error(`Sorry, Credify Corporation doesn't currently offer insurance in ${Te}. We're expanding our coverage and hope to serve your state soon.`)}}else{const Ce=Jr();await La({...be,current_stage:oe},!1,Ce?void 0:xe||void 0)}else{const Ce=be.postal_code??"";if(!Ce)throw new Error("ZIP code is required to start a quote.");const Te=(await ej(Ce,Qz()))?.quoteId;if(!Te||typeof Te!="string"||Te.trim()==="")throw new Error(`Failed to create quote - invalid quoteId returned: ${Te}`);xe=Te,s(Te),f3(Te),await La({...be,current_stage:oe},!1,Te)}if(_e==="Name"&&xe){const Ce=String(se.product??"");(Ce==="Auto"||Ce==="Both")&&Nj(xe)}if(_e==="Vehicle"&&xe&&Oj(xe),Q3.has(_e))try{const{stages:Ce}=await Bc(xe||void 0);$e=T(Ce),$e=J3($e,se),i($e)}catch(Ce){console.warn("Unable to refresh stages after flow-shaping step",Ce)}return L3({stageKey:_e,stageTitle:re?.title??_e,stepIndex:Me+1,totalSteps:$e.length}),{success:!0,latestStages:$e}}catch(be){return{success:!1,error:be instanceof Error?be.message:"An error occurred"}}},onComplete:async(se,_e)=>{if(!o)return{success:!1,error:"Oops, something went wrong. Please try again later."};M(se);try{if(_e==="Phone"){const be=xi(se);if(!be.phone)return{success:!1,error:"Phone number is required."};const $e=Jr();return await La({...be,suppress_verification_sms:!0},!1,$e?void 0:o),Ae({allValues:se}),{success:!0}}if(_e==="SMSVerification"){const be=xi(se),{isVerified:xe,token:$e}=await g0(o,be.sms_code);return xe?($e&&Wc($e),Ae({allValues:se}),{success:!0}):{success:!1,error:"Invalid SMS code"}}return Ae({allValues:se}),{success:!0}}catch{const xe="Oops, something went wrong. Please try again later.";return J({message:xe}),{success:!1,error:xe}}}})})," ",!pe&&d&&o&&v.jsx(fz,{rates:d,onBack:()=>m(null),isBundleFlow:J5(n),quoteId:o,initialPhone:L?.phone??"",requirePursueVerification:g,onSubScreenChange:y})]}),v.jsxs("div",{className:"widget-legal-footer space-y-1.5",children:[v.jsx(qz,{}),v.jsx("p",{className:"text-center text-sm text-slate-500",children:"Insurance products offered through Credify Corporation, a licensed insurance agency."})]}),te&&v.jsx("div",{className:"close-confirm-backdrop",role:"presentation",children:v.jsxs("div",{ref:U,className:"close-confirm-dialog",role:"alertdialog","aria-modal":"true","aria-labelledby":"close-confirm-title","aria-describedby":"close-confirm-description",tabIndex:-1,children:[v.jsx("h3",{id:"close-confirm-title",children:"Close quote form?"}),v.jsx("p",{id:"close-confirm-description",children:"Your answers in this session will be lost if you close this window."}),v.jsxs("div",{className:"close-confirm-actions",children:[v.jsx("button",{ref:W,type:"button",className:"btn-outline",onClick:Ie,children:"Keep editing"}),v.jsx("button",{type:"button",className:"btn-primary close-confirm-danger",onClick:me,children:"Close form"})]})]})})]})]})}function lU({onClose:e}){return v.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true",children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsx("div",{className:"modal-panel bg-white relative w-full max-w-2xl p-6",children:v.jsx(q5,{onGoBack:e})})]})}var hh={dsn:"",environment:"production",release:"d9af5afa9b45f9b580135d355b0c26800fe8ccc7"};function sU(){try{return typeof hh<"u"&&hh?hh:{}}catch{return{}}}let tE=!1;function uU(e,t){if(!e)return t;const n=Number(e);return Number.isFinite(n)&&n>=0&&n<=1?n:t}function cU(e={}){if(tE)return!0;if(typeof window>"u")return!1;const t=sU(),n=e.dsn??t.dsn;return!n||e.enabled===!1?!1:(HF({baseUrl:Rt}),I7({dsn:n,environment:e.environment??t.environment??"production",release:e.release??t.release,sendDefaultPii:!1,maxBreadcrumbs:50,tracesSampleRate:e.tracesSampleRate??uU(t.tracesSampleRate,.1),tracePropagationTargets:[Rt],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSend:i=>g3(i),beforeBreadcrumb:i=>i&&(g3({breadcrumbs:[i]}),i)}),tE=!0,L7("replayIntegration").then(i=>{try{hT(i({maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,networkDetailAllowUrls:[Rt],networkCaptureBodies:!1}))}catch{}}).catch(()=>{}),!0)}function dU(){const[e,t]=b.useState(!1);b.useEffect(()=>{cU(),zz()},[]);const n=b.useCallback(o=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:o,source:"credify-insurance-widget"},"*")},[]);b.useEffect(()=>{const o=(c,d,m)=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:"event",source:"credify-insurance-widget",event:c,data:d,meta:m},"*")},s=jj.map(c=>{const d=(m,h)=>o(c,m,h);return P5(c,d),[c,d]});return()=>{for(const[c,d]of s)I5(c,d)}},[]),b.useEffect(()=>{const o=s=>{if(s.data?.source==="credify-insurance-widget")switch(s.data.type){case"open":t(!0),n("opened");break;case"close":t(!1),n("closed");break;case"init":n("ready");break;case"support-open":Q5();break}};return window.addEventListener("message",o),n("ready"),()=>{window.removeEventListener("message",o)}},[n]);const i=b.useCallback(()=>{t(!1),n("closed")},[n]);return v.jsx(P0,{fallback:v.jsx(lU,{onClose:i}),children:v.jsx(oU,{isOpen:e,onClose:i})})}const fU="modulepreload",mU=function(e){return"/iframe/"+e},nE={},pU=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){let h=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};var c=h;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");o=h(n.map(y=>{if(y=mU(y),y in nE)return;nE[y]=!0;const g=y.endsWith(".css"),E=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${E}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":fU,g||(S.as="script"),S.crossOrigin="",S.href=y,m&&S.setAttribute("nonce",m),document.head.appendChild(S),g)return new Promise((D,x)=>{S.addEventListener("load",D),S.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${y}`)))})}))}function s(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return o.then(d=>{for(const m of d||[])m.status==="rejected"&&s(m.reason);return t().catch(s)})};var rE={key:""};const hU="mock";function yU(){try{typeof rE<"u"&&rE?.key;return}catch{return}}function gU(){const e=yU();if(!e||typeof window>"u"||!window.location)return!1;try{return new URLSearchParams(window.location.search).get(hU)===e}catch{return!1}}const bU=new Set(["/create-quote","/get-stages-for-quote","/get-questions-by-stage","/update-quote","/verify-quote","/is-supported-state","/get-rates","/get-quote","/get-vehicle-options","/request-bind"]);let aE=!1;function vU(e){try{if(typeof e=="string")return new URL(e,window.location.href).pathname;if(e instanceof URL)return e.pathname;if(e instanceof Request)return new URL(e.url,window.location.href).pathname}catch{return null}return null}async function _U(e,t){try{if(t?.body&&typeof t.body=="string")return JSON.parse(t.body);if(e instanceof Request){const n=await e.clone().text();return n?JSON.parse(n):{}}}catch{return{}}return{}}function iE(e,t=200){return new Response(JSON.stringify(e),{status:t,headers:{"Content-Type":"application/json"}})}function EU(){try{if(typeof document>"u"||document.getElementById("credify-mock-badge"))return;const e=()=>{const t=document.createElement("div");t.id="credify-mock-badge",t.textContent="MOCK MODE",t.setAttribute("aria-hidden","true"),t.style.cssText=["position:fixed","bottom:12px","left:12px","z-index:2147483647","background:#b91c1c","color:#fff","font:600 11px/1 system-ui,sans-serif","letter-spacing:0.08em","padding:6px 10px","border-radius:9999px","box-shadow:0 1px 4px rgba(0,0,0,0.3)","pointer-events:none","user-select:none"].join(";"),document.body.appendChild(t)};document.body?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}catch{}}function SU(){if(aE||typeof window>"u"||typeof window.fetch!="function"||!gU())return;aE=!0;const e=window.fetch.bind(window),t=pU(()=>import("./backend-CY4n4nTm.js"),[]);window.fetch=async(n,i)=>{const o=vU(n);if(!o||!bU.has(o))return e(n,i);const s=await _U(n,i),{handleMockRequest:c}=await t;await new Promise(d=>window.setTimeout(d,120));try{return iE(c(o,s))}catch(d){return iE({error:d instanceof Error?d.message:"Mock handler error"},404)}},EU(),typeof console<"u"&&console.info("[Credify] Mock mode active — all API calls are served from in-memory fixtures.")}SU();bA.createRoot(document.getElementById("root")).render(v.jsx(b.StrictMode,{children:v.jsx(dU,{})}));
164
+ //# sourceMappingURL=iframe-CK4NkRx1.js.map